.ofg-control { width: max-content; max-width: min(320px, calc(100vw - 38px)); color: #263c34; font: 13px/1.4 var(--font, system-ui, sans-serif); }
.leaflet-container .ofg-control button { width: auto; min-height: 35px; padding: 7px 10px; border: 1px solid #c1d0c4; border-radius: 6px; background: #fff; color: #263c34; cursor: pointer; font: inherit; }
.leaflet-container .ofg-control button:hover { background: #edf4ed; }
.leaflet-container .ofg-control button:focus-visible, .ofg-popup button:focus-visible { outline: 3px solid #287465; outline-offset: 2px; }
.leaflet-container .ofg-control button:disabled, .ofg-popup button:disabled { opacity: .5; cursor: default; }
.leaflet-container .ofg-control .ofg-toggle[aria-pressed="true"] { color: #fff; background: #236b60; border-color: #236b60; }
.ofg-selection, .ofg-message { margin: 7px 0 0; border: 1px solid #c1d0c4; border-radius: 7px; padding: 10px; background: #fffffff7; box-shadow: 0 3px 14px #183a2920; }
.ofg-selected-count { display: block; font-size: 13px; }
.ofg-actions { display: flex; gap: 7px; margin-top: 8px; }
.leaflet-container .ofg-control .ofg-combine { color: #fff; background: #236b60; border-color: #236b60; }
.ofg-message { max-width: 280px; font-size: 12px; }
.ofg-control [hidden] { display: none !important; }
.ofg-group-marker { background: none; border: 0; }
.ofg-group-count { display: grid; place-items: center; width: 30px; height: 30px; margin: 2px; border: 3px solid var(--ofg-color, #df6659); border-radius: 50%; box-sizing: border-box; background: #fff; color: #17352f; font: 700 12px/1 system-ui, sans-serif; box-shadow: 0 1px 5px #162c2b66; }
.ofg-group-marker.is-selected .ofg-group-count { outline: 4px solid #152f2c; outline-offset: 2px; box-shadow: 0 0 0 8px #fff; }
.ofg-group-marker:focus-visible { outline: 3px solid #152f2c; outline-offset: 7px; border-radius: 50%; }
.ofg-fault-marker { background: none; border: 0; border-radius: 50%; }
.ofg-fault-dot { display: block; width: 16px; height: 16px; margin: 4px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: var(--ofg-color, #df6659); box-shadow: 0 1px 3px #162c2b33; }
.ofg-fault-marker.is-selected .ofg-fault-dot { width: 20px; height: 20px; margin: 2px; border: 3px solid #152f2c; box-shadow: 0 0 0 2px #fff; }
.ofg-fault-marker:focus-visible { outline: 3px solid #152f2c; outline-offset: 3px; }
.ofg-popup { color: #263c34; font: 13px/1.45 var(--font, system-ui, sans-serif); overflow-wrap: anywhere; }
.ofg-popup-title { display: block; font-size: 15px; }
.ofg-popup .ofg-popup-explanation { margin: 7px 0 10px; color: #4f625a; font-size: 12px; }
.ofg-members { list-style: none; padding: 0; margin: 0; }
.ofg-member { padding: 9px 0; border-top: 1px solid #dce5dc; }
.ofg-member-open { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; width: 100%; padding: 0; border: 0; background: none; color: #216b60; text-align: left; cursor: pointer; font: inherit; }
.ofg-member-open:hover { text-decoration: underline; }
.ofg-member-status { display: inline-block; margin-top: 5px; }
.ofg-member-root { display: inline-block; margin: 5px 7px 0 0; padding: 1px 6px; border: 1px solid #a6bbb3; border-radius: 4px; color: #263c34; background: #edf4ed; font-size: 12px; font-weight: 600; }
.ofg-popup .ofg-root-position-note { margin: 7px 0 10px; padding: 7px 9px; border-left: 3px solid #9a784a; background: #fff6e8; color: #604a2b; font-size: 12px; }
.leaflet-overview-group-links-pane, .ofg-passive-shape { pointer-events: none !important; }
/* Leaflet supplies geographic SVG dimensions; global icon styles must not shrink them. */
.leaflet-overview-group-links-pane > svg { width: auto; height: auto; max-width: none; max-height: none; overflow: visible; }
.overview-map-legend .ofg-link-legend[hidden] { display: none; }
.overview-map-legend .ofg-link-swatch { display: inline-block; flex: 0 0 16px; width: 16px; height: 2px; position: relative; background: #737e7a; }
.overview-map-legend .ofg-link-swatch::before { content: ''; position: absolute; left: 0; top: -3px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #737e7a; }
.ofg-popup .ofg-member-address { margin: 4px 0 0; color: #4f625a; font-size: 12px; }
.ofg-pager { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 10px; }
.ofg-pager button { min-height: 32px; padding: 5px 9px; border: 1px solid #c1d0c4; border-radius: 5px; background: #fff; color: #216b60; cursor: pointer; font: inherit; }
.ofg-popup .ofg-popup-note { margin: 8px 0 0; font-size: 12px; color: #4f625a; }
.overview-combine-list small { display: block; margin-top: 3px; color: #4f625a; font-size: 12px; line-height: 1.4; }
.public-reception .overview-map-canvas .ofg-control { margin-left: 17px; }
@media (max-width: 760px) {
  .overview-map-canvas .ofg-control { margin-left: 10px; }
  .public-reception .overview-map-canvas .ofg-control { margin-top: 110px; margin-left: 10px; }
  .ofg-control { max-width: min(280px, calc(100vw - 30px)); }
  .leaflet-container .ofg-control .ofg-toggle { width: 44px; min-height: 44px; padding: 5px; font-size: 0; }
  .leaflet-container .ofg-control .ofg-toggle::before { content: '✓+'; font: 700 18px/1 system-ui, sans-serif; }
}
