:root {
  color-scheme: dark;
  --bg: #0b1926;
  --panel: #112432;
  --panel-raised: #142a3a;
  --line: #2a4050;
  --text: #f2f7f8;
  --muted: #a5bbc7;
  --accent: #d2f574;
  --city: #e1f579;
  --sea: #6bd9e9;
  --port: #ffa97f;
  --check: #ffcd82;
  --radius: 19px;
  font-family: "Aptos", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 12px; background: var(--accent); color: var(--bg); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: min(100% - 80px, 1352px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #203745; }
.topbar { min-height: 69px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 650; white-space: nowrap; }
.brand strong { font-size: 21px; letter-spacing: -.07em; }
.brand-icon { display: grid; place-items: center; background: var(--accent); color: #17271d; width: 35px; height: 35px; border-radius: 10px; }
.brand-icon svg { width: 22px; height: 22px; }
.brand-divider { width: 1px; height: 22px; background: var(--line); margin-left: 3px; }
.quiet-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 11px; background: transparent; border: 0; color: var(--muted); font-size: 14px; border-radius: 8px; }
.quiet-button:hover { color: var(--text); background: var(--panel); }
svg.icon { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; padding-block: 42px 31px; }
.hero h1 { font-size: clamp(2.35rem, 5.15vw, 4.65rem); line-height: .99; letter-spacing: -.068em; margin: 0; font-weight: 730; }
.hero p { margin: 16px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.stats { display: flex; gap: clamp(15px, 2.4vw, 38px); align-items: flex-end; padding-bottom: 1px; }
.stats > div { display: grid; gap: 6px; border-left: 1px solid var(--line); padding-left: clamp(11px, 1.45vw, 23px); }
.stats strong { font-size: 1.75rem; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats > div:first-child strong { color: var(--accent); }
.stats span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.filters { margin-bottom: 18px; }
.primary-filters { display: grid; grid-template-columns: 1fr minmax(220px, 26%); gap: 12px; margin-bottom: 13px; }
.search-box, .region-box { position: relative; display: flex; align-items: center; min-width: 0; min-height: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; color: var(--muted); }
.search-box > span:first-child, .region-box > span:first-child { position: absolute; left: 15px; pointer-events: none; }
.search-box input, .region-box select { appearance: none; border: 0; width: 100%; height: 50px; color: var(--text); border-radius: 10px; background: transparent; padding: 0 16px 0 45px; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.region-box select { padding-right: 41px; cursor: pointer; font-size: 15px; }
.region-box option { background: var(--panel); }
.select-chevron { position: absolute; right: 13px; pointer-events: none; }
.secondary-filters { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 14px; }
.segmented { display: flex; gap: 5px; }
.segmented button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.segmented button:not([aria-pressed="true"]):hover { background: var(--panel-raised); color: var(--text); }
.segmented button[aria-pressed="true"] { background: #253b37; border-color: #4e6540; color: var(--accent); }
.type-filters button { border-color: #2a4050; }
.type-filters svg, .mobile-view svg { width: 16px; height: 16px; }
.status-filters { background: #0e202d; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.status-filters button { min-height: 34px; }
.status-filters button[data-status="check"][aria-pressed="true"] { background: #3b3025; color: #ffdc9d; border-color: #6b5034; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #aeda75; flex: none; }
[data-status="check"] .status-dot { background: var(--check); }
.filter-count { font-size: 12px; min-width: 20px; text-align: center; padding: 1px 4px; border-radius: 5px; background: #233745; color: #c6d8df; }
.mobile-view { display: none; }
.explorer { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(305px, 1fr); gap: 17px; align-items: stretch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-heading { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 1rem; letter-spacing: -.02em; }
.panel-heading h2 svg { color: var(--accent); width: 17px; height: 17px; }
.map-legend { display: flex; gap: 13px; color: #cbdae0; font-size: 13px; }
.map-legend span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--type); }
.city { --type: var(--city); }
.sea { --type: var(--sea); }
.port { --type: var(--port); }
.map-viewport { height: clamp(410px, 37vw, 538px); position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 34% 11%, #193b4e 0, #143344 42%, #102937 100%); cursor: grab; touch-action: pan-y; }
.map-viewport.dragging { cursor: grabbing; touch-action: none; }
.map-viewport.zoomed { touch-action: none; }
.map-art, .map-markers { position: absolute; inset: 0; user-select: none; pointer-events: none; }
.map-art svg { position: absolute; display: block; overflow: visible; }
.map-grid { stroke: #9db8ba; opacity: .12; stroke-dasharray: 3 5; }
.map-land { fill: #294946; stroke: #668d78; stroke-width: 1.12px; stroke-linejoin: round; }
.map-neighbor { fill: #223b3b; stroke: #4c6a68; stroke-width: 1px; opacity: .55; }
.map-label { fill: #a7c1b7; font-weight: 690; font-size: 14px; letter-spacing: .045em; text-anchor: middle; paint-order: stroke; stroke: #193836; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }
.map-label.water { fill: #81aebc; font-size: 13px; letter-spacing: .22em; stroke: #193746; }
.map-label.island { fill: #9cbbac; font-size: 12px; }
.map-marker { position: absolute; transform: translate(-50%, -50%); z-index: 1; pointer-events: auto; padding: 0; width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; color: #0d202a; }
.marker-core { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--type, var(--accent)); border: 2px solid #112d38; box-shadow: 0 0 0 1px #dce8d449, 0 2px 6px #060f16c7; }
.marker-core svg { width: 16px; height: 16px; stroke-width: 2; }
.map-marker:hover, .map-marker:focus-visible { z-index: 3; }
.map-marker:hover .marker-core, .map-marker:focus-visible .marker-core { box-shadow: 0 0 0 3px #f8ffdb87, 0 3px 9px #060f16; }
.map-marker.cluster .marker-core { width: 35px; height: 35px; font-size: 14px; font-weight: 760; background: #d1e6dc; }
.map-marker.pending-marker .marker-core { background: #173342; color: var(--type, var(--check)); border: 2px dashed var(--type, var(--check)); box-shadow: 0 2px 6px #060f16; }
.zoom-controls { position: absolute; z-index: 4; bottom: 34px; right: 13px; display: grid; border-radius: 11px; border: 1px solid #57717d; overflow: hidden; box-shadow: 0 3px 11px #0a172750; }
.zoom-controls button { width: 43px; height: 43px; border: 0; background: #102735; color: var(--text); display: grid; place-items: center; }
.zoom-controls button + button { border-top: 1px solid #365261; }
.zoom-controls button:hover:not(:disabled) { background: #274756; }
.zoom-controls button:focus-visible { outline-offset: -4px; }
.zoom-controls button:disabled { opacity: .66; cursor: default; color: var(--muted); }
.map-credit { position: absolute; z-index: 2; bottom: 9px; right: 11px; border-radius: 5px; padding: 4px 6px; background: #0d2431eb; color: #aec4cf; font-size: 11px; pointer-events: none; }
.map-popover { position: absolute; z-index: 4; left: 13px; bottom: 34px; max-width: calc(100% - 26px); width: 260px; max-height: 52%; overflow: auto; padding: 8px; border: 1px solid #5a7581; border-radius: 10px; background: var(--panel); box-shadow: 0 5px 25px #050d13b0; cursor: default; }
.map-popover button { display: block; width: 100%; padding: 8px 10px; text-align: left; background: transparent; color: var(--text); border: 0; min-height: 41px; border-radius: 6px; }
.map-popover button:hover { background: var(--panel-raised); }
.result-count { color: var(--accent); background: #283d35; font-size: 13px; font-weight: 720; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.results-list { max-height: clamp(410px, 37vw, 538px); overflow: auto; scrollbar-color: #466070 #112432; scrollbar-width: thin; }
.camera-row { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 40px; align-items: center; gap: 11px; padding: 13px 12px 13px 15px; min-height: 82px; }
.camera-row + .camera-row { border-top: 1px solid #263c4a; }
.camera-row:hover, .camera-row:focus-within { background: var(--panel-raised); }
.camera-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: var(--type); border: 1px solid color-mix(in srgb, var(--type), var(--panel) 74%); background: color-mix(in srgb, var(--type), var(--panel) 90%); }
.camera-row h4 { font-size: .95rem; margin: 0; line-height: 1.28; letter-spacing: -.019em; overflow-wrap: anywhere; }
.camera-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.camera-row .camera-source { font-size: 12px; color: #a8bfcb; }
.camera-row .camera-source.pending { color: var(--check); }
.icon-button { display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; width: 43px; height: 43px; padding: 0; }
.icon-button:hover { color: var(--text); border-color: var(--line); background: var(--panel-raised); }
.camera-open::before { content: ""; position: absolute; inset: 0; }
.empty { padding: 28px 17px; color: var(--muted); line-height: 1.5; }
.empty strong { display: block; color: var(--text); margin-bottom: 7px; }
.empty button { margin-top: 12px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 25px; padding: 16px 1px 26px; color: var(--muted); font-size: 13px; }
.site-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.site-footer svg { width: 15px; height: 15px; }
.dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100% - 30px); border: 1px solid #45616f; border-radius: 18px; padding: 0; color: var(--text); background: var(--panel); box-shadow: 0 18px 100px #020a10c0; }
.dialog::backdrop { background: #040d17ca; }
.dialog-inner { position: relative; padding: 26px; }
.close-dialog { position: absolute; right: 10px; top: 10px; }
.dialog h2 { margin: 0 43px 8px 0; font-size: clamp(1.45rem, 6vw, 2.15rem); letter-spacing: -.045em; line-height: 1.13; }
.dialog p { color: var(--muted); line-height: 1.55; }
.camera-meta { font-size: 14px; }
.camera-meta span { color: var(--type); font-weight: 680; }
.dialog-notice { border: 1px solid #6b5034; background: #302923; padding: 13px; border-radius: 9px; color: #ffdc9d !important; }
.status-explanation { margin-block: 16px; }
.status-explanation dt { color: var(--accent); font-weight: 720; margin-top: 12px; }
.status-explanation dd { color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.action { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 7px 13px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 720; border: 1px solid #44606e; background: #1b3443; color: var(--text); }
.action:hover { background: #284655; }
.action.primary { background: var(--accent); color: #1a2b20; border-color: var(--accent); }
.action.primary:hover { background: #e4ffad; }
.camera-player { display: grid; place-items: center; min-height: 160px; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; background: #0b1d2a; overflow: hidden; }
.camera-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.camera-player[data-compact] { aspect-ratio: auto; min-height: 98px; }
.camera-player .action { max-width: calc(100% - 24px); }
@media (max-width: 1050px) {
  .container { width: calc(100% - 50px); }
  .hero { gap: 16px; }
  .explorer { gap: 12px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 30px); }
  .topbar { min-height: 56px; }
  .hero { display: block; padding-block: 27px 20px; }
  .hero h1 { font-size: clamp(2.15rem, 8vw, 3.65rem); }
  .hero p { margin-top: 9px; }
  .stats { margin-top: 15px; gap: 15px; }
  .stats > div { padding-left: 10px; gap: 3px; }
  .stats strong { font-size: 1.35rem; }
  .stats span { font-size: 12px; }
  .primary-filters { grid-template-columns: 1fr; gap: 7px; margin-bottom: 8px; }
  .search-box, .region-box { min-height: 44px; }
  .search-box input, .region-box select { height: 42px; padding-left: 39px; }
  .search-box > span:first-child, .region-box > span:first-child { left: 12px; }
  .secondary-filters { gap: 6px; }
  .type-filters { width: 100%; }
  .type-filters button { flex: 1 1 0; min-width: 0; padding: 0 4px; }
  .status-filters { width: 100%; }
  .status-filters button { flex: 1 1 0; min-width: 0; padding: 0 5px; min-height: 39px; }
  .filters { margin-bottom: 9px; }
  .mobile-view { display: flex; margin-bottom: 8px; }
  .mobile-view button { flex: 1; border: 1px solid var(--line); min-height: 44px; }
  .explorer { display: block; }
  .explorer[data-view="map"] .results-panel, .explorer[data-view="list"] .map-panel { display: none; }
  .panel-heading { padding-inline: 11px; min-height: 46px; }
  .map-legend { gap: 7px; font-size: 12px; }
  .map-viewport { height: clamp(295px, 72vw, 440px); }
  .results-list { max-height: none; }
  .site-footer { padding-top: 11px; }
}
@media (max-width: 355px) {
  .container { width: calc(100% - 22px); }
  .segmented button { font-size: 13px; gap: 4px; }
  .map-legend { gap: 5px; }
  .dialog-inner { padding: 19px; }
}
.group-heading { margin: 0; padding: 9px 15px; color: #c4d8de; font-size: 13px; font-weight: 720; letter-spacing: .025em; background: #0e202d; border-bottom: 1px solid #263c4a; }
.camera-group + .camera-group { border-top: 1px solid #263c4a; }
.map-empty { position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 70px); padding: 14px 12px; border: 1px solid #53707b; border-radius: 10px; background: #102735f5; color: var(--text); text-align: center; cursor: default; }
.map-empty strong { display: block; margin-bottom: 9px; }
.map-lake { fill: #153743; stroke: #4c716d; stroke-width: .8px; }
