:root {
  --ink: #173e40;
  --teal: #143f43;
  --teal-mid: #49716a;
  --muted: #6c7973;
  --faint: #8c958d;
  --ivory: #f7f7ef;
  --paper: #fffef8;
  --line: #dfe3d8;
  --sea: #d9eaec;
  --mint: #e7efe6;
  --coral: #b9583c;
  --coral-soft: #f5e7dc;
  --amber: #8b622b;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(26, 62, 61, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; }
body { color: var(--ink); background: var(--ivory); font-size: 13px; line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select, input[type="range"], input[type="checkbox"] { cursor: pointer; }
button { color: inherit; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-underline-offset: 3px; }
button, a, select, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid #b9583c; }
button { transition: background-color .16s, color .16s, border-color .16s, box-shadow .16s; }
h1, h2, h3, h4, p { margin-top: 0; }
svg { display: block; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.app-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; flex: 0 0 auto; }
.icon-button:hover { background: rgba(20, 63, 67, .07); }
.mobile-only, .mobile-menu, .mobile-bottom-nav, .map-filter-button { display: none; }

/* The navigation stays quiet so the coast remains the main event. */
.topbar { height: 72px; min-height: 72px; padding: 0 26px; background: var(--teal); color: #fbfcf3; display: flex; align-items: center; gap: 42px; position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; text-align: left; flex: 0 0 auto; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #e6ae91; }
.brand-mark .icon { width: 33px; height: 33px; stroke-width: 1.4; }
.brand-word { display: block; font-size: 29px; line-height: .95; font-weight: 640; letter-spacing: -1.35px; }
.brand-caption { display: block; padding-top: 7px; font-size: 7.5px; line-height: 1; font-weight: 500; letter-spacing: 1.75px; color: #bfd0c5; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 29px; margin-left: 12px; }
.nav-item { position: relative; display: flex; gap: 8px; align-items: center; padding: 0 0 1px; color: #c8d7cf; font-size: 12px; font-weight: 500; white-space: nowrap; }
.nav-item:hover, .nav-item.active { color: #fffef7; }
.nav-item.active::after { content: ""; position: absolute; bottom: 0; height: 3px; background: #e2a184; left: 0; right: 0; border-radius: 2px 2px 0 0; }
.count-badge { min-width: 17px; height: 17px; padding: 0 4px; display: inline-flex; justify-content: center; align-items: center; border-radius: 5px; font-size: 9px; font-weight: 600; background: rgba(255,255,255,.12); color: #e5ebe2; }
.topbar-end { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; white-space: nowrap; }
.text-button .icon { width: 16px; height: 16px; }
.sources-top { color: #d4dfd5; }
.sources-top:hover { color: white; }
.island-badge { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.19); display: flex; align-items: center; gap: 8px; font-size: 10px; color: #d7e2d8; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #aad5be; }
.preview-strip { height: 36px; min-height: 36px; padding: 0 27px; display: flex; align-items: center; gap: 13px; background: #eeeadd; border-bottom: 1px solid #e3dfd1; color: #686c5d; font-size: 11px; }
.preview-label { display: inline-flex; align-items: center; gap: 6px; color: #85654a; font-size: 9px; font-weight: 750; letter-spacing: 1px; white-space: nowrap; }
.preview-label::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #b6875c; }
.preview-strip > button { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: 11px; color: #635e4d; white-space: nowrap; }
.preview-strip > button:hover { color: var(--coral); }
.preview-strip .icon { width: 13px; height: 13px; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; position: relative; overflow: hidden; }

/* Area discovery */
.sidebar { background: var(--ivory); border-right: 1px solid #d8e0d5; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; z-index: 8; }
.sidebar-inner { padding: 25px 22px 22px; }
.sidebar-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.eyebrow { margin: 0 0 8px; color: #778371; font-size: 8px; line-height: 1.5; font-weight: 650; letter-spacing: 1.2px; }
h1 { margin: 0 0 23px; font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 400; line-height: 1.12; letter-spacing: -1.2px; }
h1 em { font-weight: 400; color: #597767; }
.search-field { display: flex; align-items: center; gap: 9px; height: 41px; border: 1px solid #d9dfd2; background: #fdfdf7; padding: 0 12px; border-radius: 8px; }
.search-field:focus-within { border-color: #8eaaa0; box-shadow: 0 0 0 2px rgba(73, 113, 106, .08); }
.search-field .icon { width: 16px; height: 16px; color: #839185; }
.search-field input { border: 0; outline: none; width: 100%; min-width: 0; background: transparent; color: var(--ink); font-size: 12px; padding: 8px 0; }
.search-field input::placeholder { color: #91998c; opacity: 1; }
.field-label { margin: 19px 0 9px; font-size: 11px; font-weight: 650; color: #526657; }
.mode-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mode-button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; height: 61px; padding: 8px 2px; border: 1px solid #dce1d5; border-radius: 8px; background: #fafaf3; color: #7b8979; font-size: 11px; font-weight: 500; }
.mode-button .icon { width: 21px; height: 21px; }
.mode-button:hover { background: #edf1e7; border-color: #b8c7b6; }
.mode-button.active { background: #e8efe4; color: #355e50; border-color: #6f927b; box-shadow: inset 0 0 0 .5px #6f927b; }
.water-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 18px 0 17px; padding: 3px; border-radius: 7px; background: #eaece2; gap: 2px; }
.water-tabs button { min-height: 30px; padding: 5px 3px; font-size: 11px; font-weight: 500; color: #75806e; border-radius: 5px; white-space: nowrap; }
.water-tabs button.active { color: #365a48; background: #fffef7; box-shadow: 0 1px 4px rgba(40, 58, 35, .08); }
.water-tabs button:hover:not(.active) { color: #355e50; }
.filter-pair { display: grid; grid-template-columns: 1.18fr 1fr; gap: 9px; }
.select-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.select-field > span { color: #74806e; font-size: 11px; }
.select-field select { width: 100%; min-width: 0; height: 36px; appearance: none; padding: 0 25px 0 10px; border: 1px solid #dbe1d4; border-radius: 7px; color: #395d4e; font-size: 11px; background: #fbfcf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%236d816f' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 9px center; text-overflow: ellipsis; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-top: 1px solid #e0e4d8; margin: 23px 0 13px; padding-top: 20px; }
.results-heading .eyebrow { margin-bottom: 5px; font-size: 7.5px; letter-spacing: 1.1px; }
.results-heading h2 { font-size: 15px; letter-spacing: -.3px; font-weight: 620; line-height: 1.25; margin: 0; }
.result-count { align-self: flex-end; margin-bottom: 1px; font-size: 10px; color: #85907c; white-space: nowrap; }
.area-list { display: flex; flex-direction: column; gap: 10px; }
.area-card { position: relative; border: 1px solid #dde2d5; border-radius: 10px; padding: 12px 13px; background: #fcfdf5; text-align: left; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.area-card:hover { border-color: #aabfac; background: #fffef7; transform: translateY(-1px); }
.area-card.selected { background: #fffdf6; border-color: #cc8b6d; box-shadow: 0 3px 12px rgba(115, 80, 53, .06); }
.area-card.selected::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; background: #c87553; border-radius: 0 3px 3px 0; }
.area-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.area-number { height: 23px; min-width: 23px; padding: 0 6px; display: inline-flex; justify-content: center; align-items: center; border-radius: 7px; background: #e7eee2; color: #52715b; font-size: 10px; font-weight: 650; }
.selected .area-number { background: #f0dfd2; color: #a45d3d; }
.save-area { width: 27px; height: 27px; display: grid; place-items: center; padding: 5px; color: #8c9a87; border-radius: 50%; margin: -3px -3px -3px 0; }
.save-area .icon { width: 15px; height: 15px; }
.save-area:hover { background: #f1e8dd; color: var(--coral); }
.save-area.saved { color: var(--coral); }
.save-area.saved .icon { fill: #e4a084; }
.area-title { margin: 0 0 3px; font-size: 13px; font-weight: 650; line-height: 1.35; letter-spacing: -.15px; }
.area-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; width: 100%; text-align: left; }
.area-title > .icon { width: 13px; height: 13px; color: #a1ad94; }
.selected .area-title > .icon { color: #b47855; }
.area-card-top .area-coast { margin-right: auto; font-size: 10px; }
.area-coast { margin: 0; color: #89947d; font-size: 10px; line-height: 1.5; }
.area-description { margin: 8px 0 10px; color: #74816e; font-size: 12px; line-height: 1.6; }
.area-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: #657a61; font-size: 10.5px; }
.area-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.area-meta .icon { width: 12px; height: 12px; stroke-width: 1.5; }
.area-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; padding: 3px 6px; border-radius: 4px; background: #f2ecdb; color: #896d3c; font-size: 10px; line-height: 1.4; font-weight: 500; }
.area-status .icon { width: 10px; height: 10px; }
.area-status { background: transparent; padding: 0; color: #6a865b; gap: 5px; font-size: 10px; }
.area-status .status-dot { background: #8ba775; width: 4px; height: 4px; }
.mini-demo { margin-left: auto; padding: 2px 4px; background: #f0ecde; border-radius: 3px; color: #a19676; font-size: 8px; letter-spacing: .5px; line-height: 1.2; }
.empty-state { padding: 30px 10px; text-align: center; color: #73816d; border: 1px dashed #cbd8c6; border-radius: 10px; }
.empty-state > .icon { width: 29px; height: 29px; margin: 0 auto 12px; color: #87a083; }
.empty-state h3 { font-size: 14px; color: #46634b; margin-bottom: 7px; }
.empty-state p { font-size: 12px; margin-bottom: 17px; line-height: 1.6; }
.reset-filters { padding: 8px 12px; border-radius: 7px; font-size: 11px; font-weight: 600; background: #e6eee0; color: #3d674d; }
.reset-filters:hover { background: #d7e6ce; }
.sidebar-foot { border-top: 1px solid #e0e4d8; margin-top: 21px; padding-top: 17px; display: flex; align-items: flex-start; gap: 10px; color: #78866d; }
.sidebar-foot > .icon { width: 17px; height: 17px; margin-top: 1px; color: #8d9e80; }
.sidebar-foot strong { display: block; font-size: 10.5px; font-weight: 550; line-height: 1.5; color: #74836b; }
.sidebar-foot p { margin: 5px 0 0; font-size: 10.5px; line-height: 1.7; color: #8b9580; }

/* An intentionally quiet, geographically grounded map. */
.map-section { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--sea); isolation: isolate; }
.island-map { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 160px); touch-action: none; cursor: grab; }
.island-map:active { cursor: grabbing; }
.map-topbar { position: absolute; z-index: 4; top: 19px; left: 20px; right: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.map-topbar > * { pointer-events: auto; }
.map-title { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 9px; background: rgba(253,254,247,.91); box-shadow: 0 3px 10px rgba(37, 87, 87, .04); }
.map-title > .icon { width: 16px; height: 16px; color: #648778; }
.map-title > span { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.1; }
.map-title small { display: block; margin-top: 5px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #8a9c8a; font-size: 9px; line-height: 1.1; letter-spacing: .1px; }
.map-tools { display: flex; align-items: center; gap: 7px; }
.map-tool-button, .map-filter-button { align-items: center; justify-content: center; gap: 7px; height: 35px; padding: 0 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 7px; background: rgba(253,254,247,.91); box-shadow: 0 2px 7px rgba(37, 87, 87, .04); font-size: 11px; color: #536e60; }
.map-tool-button { display: inline-flex; }
.map-tool-button .icon, .map-filter-button .icon { width: 15px; height: 15px; }
.map-tool-button:hover, .map-filter-button:hover, .map-tool-button[aria-expanded="true"] { background: #fffef8; color: var(--ink); box-shadow: 0 3px 12px rgba(37,87,87,.08); }
.layers-menu { position: absolute; top: 65px; right: 20px; width: 236px; padding: 17px; z-index: 15; background: #fffef8; border: 1px solid #d7e2d8; border-radius: 10px; box-shadow: 0 12px 32px rgba(31,64,59,.14); }
.layers-menu h3 { font-size: 12px; font-weight: 650; margin-bottom: 14px; }
.layers-menu label { display: flex; gap: 9px; align-items: center; padding: 7px 0; font-size: 12px; color: #61725e; cursor: pointer; }
.layers-menu input { accent-color: #46745b; width: 14px; height: 14px; margin: 0; }
.layers-menu p { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #e9ece0; font-size: 10.5px; line-height: 1.7; color: #8b9680; }
.land-shadow { fill: #adc9c2; opacity: .6; stroke: none; }
.land-shape { fill: url(#landFill); stroke: #f7f8e9; stroke-width: 2; stroke-linejoin: round; }
.road-line { fill: none; stroke: #fcfcef; stroke-width: 1.5; opacity: .88; stroke-linecap: round; stroke-linejoin: round; }
.place-label { fill: #6d836d; font-size: 11px; font-weight: 500; letter-spacing: .25px; paint-order: stroke; stroke: #e4e8d9; stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.place-sub-label { fill: #93a288; font-size: 10px; font-family: Georgia, serif; font-style: italic; letter-spacing: 1px; paint-order: stroke; stroke: #e4e8d9; stroke-width: 2; stroke-linejoin: round; pointer-events: none; }
.map-marker { cursor: pointer; outline: none; }
.marker-halo { fill: #cb7c5d; opacity: 0; transition: opacity .15s; }
.marker-circle { fill: #456f5e; stroke: #fffef7; stroke-width: 4; filter: url(#pinShadow); transition: fill .16s; }
.marker-number { fill: #fffef7; font-size: 12px; font-weight: 650; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.marker-label { fill: #365d50; font-size: 11px; font-weight: 600; paint-order: stroke; stroke: #f3f6ec; stroke-width: 4; stroke-linejoin: round; pointer-events: none; }
.map-marker:hover .marker-circle { fill: #285541; }
.map-marker:hover .marker-halo { opacity: .15; }
.map-marker.selected .marker-circle { fill: var(--coral); stroke-width: 4.5; }
.map-marker.selected .marker-halo { opacity: .17; }
.map-marker.selected .marker-label { fill: #8e4d34; }
.map-marker.protected .marker-circle { fill: #8b6b63; stroke-width: 3; }
.map-marker.protected.selected .marker-circle { fill: #8d5143; }
.map-marker:focus-visible .marker-circle { stroke: #e9a56a; stroke-width: 6; }
.marker-circle { filter: none; }
.marker-number { dominant-baseline: auto; }
.marker-halo-outer { fill: none; stroke: #be7655; stroke-width: 1; opacity: .2; }
.marker-label-bg { fill: #fffdf4; stroke: #e2dfcd; stroke-width: .7; }
.marker-label { stroke: none; font-size: 10px; letter-spacing: .05px; }
.protected-marker-shape { fill: #f5e7de; stroke: #c99c87; stroke-width: 1.5; }
.map-marker.protected:hover .protected-marker-shape, .map-marker.protected.selected .protected-marker-shape { fill: #edd0bf; stroke: #b5785b; }
.water-label { fill: #84a7aa; font-size: 10px; font-weight: 450; letter-spacing: 2.5px; stroke: none; }
.island-label { fill: #819371; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 28px; letter-spacing: 7px; stroke-width: 2; stroke: #e0e6d4; }
.map-loading { position: absolute; top: 47%; left: 50%; transform: translate(-50%,-50%); padding: 11px 18px; border: 1px solid #c5d9d5; border-radius: 9px; background: rgba(251,253,244,.93); font-family: Georgia, serif; font-size: 16px; color: #628477; z-index: 3; box-shadow: var(--shadow); }
.ocean-caption { position: absolute; left: 8%; bottom: 31%; z-index: 1; font-size: 10px; font-weight: 500; letter-spacing: 3.5px; color: #81a8af; text-align: center; pointer-events: none; }
.ocean-caption span { display: block; margin-top: 9px; font-size: 7px; font-weight: 400; letter-spacing: 1.6px; color: #90b2b7; }
.map-zoom { position: absolute; right: 21px; bottom: 211px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.9); border-radius: 8px; background: rgba(253,254,247,.95); box-shadow: 0 3px 10px rgba(37,87,87,.06); overflow: hidden; z-index: 4; }
.map-zoom button { width: 33px; height: 33px; display: grid; place-items: center; color: #5b7c6c; }
.map-zoom button + button { border-top: 1px solid #e5ebe0; }
.map-zoom button:hover { background: #eaf1e7; }
.map-zoom .icon { width: 15px; height: 15px; }
.north-arrow { position: absolute; top: 90px; right: 29px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #62877e; font-size: 8px; font-weight: 650; pointer-events: none; }
.map-legend { position: absolute; left: 23px; bottom: 177px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; color: #638579; z-index: 3; font-size: 9px; }
.map-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 .5px rgba(72,109,98,.1); }
.legend-dot.coral { background: #bd6a49; }
.legend-dot.green { background: #4d7961; }
.legend-diamond { width: 5px; height: 5px; margin: 0 1px; display: inline-block; transform: rotate(45deg); background: #8e7067; border: .5px solid white; }
.timeline-card { position: absolute; z-index: 4; bottom: 34px; left: 20px; right: 20px; padding: 16px 17px 13px; background: rgba(253,254,247,.95); border: 1px solid rgba(255,255,255,.95); border-radius: 11px; box-shadow: 0 5px 20px rgba(32,80,76,.06); }
.timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline-top > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.timeline-top .icon { width: 15px; height: 15px; color: #ba8c54; }
.timeline-top strong { font-size: 11px; font-weight: 600; white-space: nowrap; }
.demo-chip { display: inline-block; padding: 2px 5px; border-radius: 3px; background: #eeeade; color: #8c805e; font-size: 9px; line-height: 1.4; white-space: nowrap; }
.timeline-time { color: #6a816c; font-size: 11px; font-weight: 550; white-space: nowrap; }
#timeSlider { width: 100%; height: 3px; appearance: none; border: 0; border-radius: 3px; margin: 21px 0 10px; background: #cedcd0; vertical-align: top; }
#timeSlider::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border: 3px solid #fffef7; border-radius: 50%; background: #bc6a48; box-shadow: 0 0 0 1px #cc9b7d, 0 2px 4px rgba(58,78,45,.1); }
#timeSlider::-moz-range-thumb { width: 9px; height: 9px; border: 3px solid #fffef7; border-radius: 50%; background: #bc6a48; box-shadow: 0 0 0 1px #cc9b7d; }
.timeline-labels { display: flex; justify-content: space-between; font-size: 9px; line-height: 1; color: #91a08a; }
.timeline-summary { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #e4eade; color: #72866f; font-size: 10.5px; }
.timeline-summary > span { display: inline-flex; gap: 5px; align-items: center; }
.timeline-summary .icon { width: 12px; height: 12px; color: #8da082; }
.timeline-summary strong { color: #526f54; font-weight: 550; }
.map-attribution { position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 4; display: flex; justify-content: space-between; gap: 10px; color: #7b9c98; font-size: 6.5px; line-height: 1.4; }
.map-attribution button { padding: 0; font-size: inherit; color: #5f877e; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.mobile-detail-peek { display: none; }

/* Selected-area reading panel */
.detail-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; border-left: 1px solid #dbe3d8; background: #fbfcf5; position: relative; z-index: 9; }
.detail-close { display: none; }
.detail-hero { position: relative; padding: 24px 23px 20px; background: linear-gradient(130deg, #edf2e7, #f6f6e9); border-bottom: 1px solid #e0e7d7; flex: 0 0 auto; }
.detail-hero { height: 117px; overflow: hidden; background: #e9eddd; padding-top: 19px; }
.protected-hero { background: #eee4d9; }
.hero-waves { position: absolute; left: 0; bottom: -19px; width: 100%; height: 101px; fill: none; stroke: #b5c6a6; stroke-width: .8; opacity: .46; pointer-events: none; }
.protected-hero .hero-waves { stroke: #c3a08b; }
.detail-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; color: #6f8b68; font-size: 7.5px; font-weight: 650; letter-spacing: 1.25px; text-transform: uppercase; }
.detail-eyebrow .icon { width: 13px; height: 13px; }
.detail-coordinate { color: #97a38b; font-size: 7px; font-weight: 400; letter-spacing: .3px; white-space: nowrap; }
.detail-coordinate { position: absolute; bottom: 16px; left: 23px; right: 23px; display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 1; }
.detail-coordinate > span { color: #96a087; font-size: 6.5px; letter-spacing: .1px; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.detail-panel > .detail-heading { padding: 21px 23px 0; flex: 0 0 auto; }
.detail-heading .eyebrow { display: block; margin-bottom: 8px; font-size: 7px; letter-spacing: 1.15px; color: #8e9e80; }
.detail-tagline { padding: 0 23px 16px; margin: 0; font-size: 12px; line-height: 1.75; color: #8b9a7a; flex: 0 0 auto; }
.detail-title { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.08; font-weight: 400; letter-spacing: -.85px; color: #2a5146; }
.detail-hero > p, .detail-heading p { color: #8b9a7b; font-size: 10px; line-height: 1.6; margin: 0 0 13px; }
.detail-save { width: 33px; height: 33px; min-width: 33px; display: grid; place-items: center; margin-top: -3px; border: 1px solid #d9e2cf; border-radius: 50%; background: #fafcf2; color: #879a78; }
.detail-save .icon { width: 16px; height: 16px; }
.detail-save:hover { border-color: #d6a789; color: var(--coral); }
.detail-save.saved { color: var(--coral); background: #f8e8da; border-color: #e9c6af; }
.detail-save.saved .icon { fill: #e4a084; }
.detail-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag, .pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 4px 7px; font-size: 10px; font-weight: 500; line-height: 1.35; background: #e4eddf; color: #66815a; }
.tag .icon, .pill .icon { width: 11px; height: 11px; }
.pill.amber { background: #f2e9d4; color: #927036; }
.pill.green { background: #e3eddd; color: #587b4e; }
.pill.coral { background: #f0dfd3; color: #9a6347; }
.detail-tabs { display: flex; gap: 19px; padding: 0 23px; border-bottom: 1px solid #e5e9dd; flex: 0 0 auto; background: #fbfcf5; }
.detail-tabs > button { position: relative; padding: 14px 0 12px; font-size: 11px; color: #8b9a7e; white-space: nowrap; }
.detail-tabs > button.active { color: #4c7256; font-weight: 600; }
.detail-tabs > button.active::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: -1px; background: #7c9d6e; border-radius: 2px; }
.detail-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 23px 20px; scrollbar-gutter: stable; }
.detail-tab-content { min-width: 0; }
.detail-section { padding: 21px 0 19px; border-bottom: 1px solid #e5e9dc; }
.detail-section:last-child { border-bottom: 0; padding-bottom: 1px; }
.detail-section-title { display: flex; gap: 7px; align-items: center; justify-content: space-between; margin: 0 0 13px; font-size: 12px; font-weight: 650; color: #577350; }
.detail-section-title > .icon { width: 14px; height: 14px; }
.detail-section-title > span { font-size: 9px; font-weight: 400; color: #95a187; }
.detail-section-title > h3 { font-size: inherit; font-weight: inherit; line-height: 1.5; margin: 0; }
.detail-section p { color: #819075; font-size: 12px; line-height: 1.75; margin-bottom: 10px; }
.condition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.condition-cell { padding: 12px 7px 10px; background: #f0f4e9; border: 1px solid #e2e9d8; border-radius: 7px; text-align: center; }
.condition-cell > .icon { width: 16px; height: 16px; margin: 0 auto 8px; color: #91a67d; }
.condition-value { color: #436542; display: block; font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.7px; }
.condition-value small, .condition-value span { font-size: 10px; letter-spacing: 0; font-weight: 400; margin-left: 2px; color: #91a282; }
.condition-label { display: block; color: #8b9d7c; font-size: 10px; margin-top: 5px; }
.conditions-caption { margin: 10px 0 0 !important; color: #99a58c !important; font-size: 10px !important; line-height: 1.65 !important; }
.reason-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.reason-list > li { position: relative; padding-left: 16px; color: #7d906f; font-size: 12px; line-height: 1.7; }
.reason-list > li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 5px; height: 5px; border: 1px solid #a5b893; border-radius: 50%; }
.reason-list .icon { width: 12px; height: 12px; position: absolute; left: 0; top: 3px; color: #94a67d; }
.reason-list > li:has(> .icon)::before { display: none; }
.reason-list > li:has(.icon)::before { display: none; }
.reason-list > li > span:first-child { position: static; }
.reason-list strong { color: #53704b; font-weight: 600; }
.technique-card { margin: 0 0 9px; padding: 11px 12px; border: 1px solid #e3e9da; border-radius: 7px; background: #f6f8ee; color: #7c8e6d; font-size: 12px; line-height: 1.7; }
.technique-card:last-child { margin-bottom: 0; }
.technique-card h4, .technique-card strong { display: block; color: #5a754c; font-size: 12px; font-weight: 600; margin: 0 0 4px; }
.technique-card p { font-size: 11px; margin: 0; color: #8d9c7a; }
.rule-callout { border: 1px solid #e8dcbc; border-radius: 8px; background: #f7f1e0; color: #917a4b; padding: 13px 12px; font-size: 11px; line-height: 1.7; }
.rule-callout { display: flex; align-items: flex-start; gap: 9px; }
.rule-callout > .icon { margin-top: 1px; }
.rules-heading { font-family: Georgia, serif; font-weight: 400; font-size: 21px; color: #557548; letter-spacing: -.4px; margin: 16px 0 10px; }
.detail-intro { font-size: 12px; line-height: 1.8; color: #8a9a77; }
.rule-callout > .icon { width: 15px; height: 15px; margin-bottom: 9px; color: #aa8c55; }
.rule-callout p { color: #978359; margin: 6px 0 0; font-size: 11px; }
.rule-callout strong { color: #8a713f; font-size: 12px; font-weight: 600; }
.rule-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 550; color: #7b8b5e; text-decoration: none; }
.rule-link:hover { color: #466238; text-decoration: underline; }
.rule-link .icon { width: 11px; height: 11px; }
.source-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 11px; color: #91a17c; font-size: 10.5px; }
.source-inline > a, .source-inline > button { font-size: 10px; padding: 3px 6px; color: #7e9865; background: #edf2e3; border-radius: 3px; text-decoration: none; }
.source-inline > a:hover, .source-inline > button:hover { color: #4c6e39; background: #e3ecd6; }
.source-inline .icon { width: 10px; height: 10px; }
.detail-footer { flex: 0 0 auto; padding: 15px 23px 17px; border-top: 1px solid #e2e8d7; background: #f7f9ef; box-shadow: 0 -5px 16px rgba(52,73,31,.02); }
.detail-footer > p { margin: 8px 0 0; text-align: center; color: #9aa68b; font-size: 10px; line-height: 1.6; }
.detail-footer > span { display: block; text-align: center; margin-top: 8px; font-size: 10px; color: #9aa68b; line-height: 1.6; }
.protected-footer { display: flex; align-items: center; justify-content: center; gap: 8px; color: #9c795d; font-size: 11px; padding: 7px 0; }
.protected-footer .icon { width: 14px; height: 14px; }
.detail-scroll .source-card + .source-card { margin-top: 10px; }
.detail-scroll .source-card + .secondary-button { margin-top: 14px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 16px; border-radius: 7px; font-size: 12px; line-height: 1.4; font-weight: 550; text-align: center; }
.primary-button { background: var(--coral); border: 1px solid var(--coral); color: #fffaf0; box-shadow: 0 2px 5px rgba(116,52,30,.08); }
.primary-button:hover { background: #a34b32; border-color: #a34b32; }
.secondary-button { background: #fffef6; border: 1px solid #d3dec8; color: #547748; }
.secondary-button:hover { background: #eaf1e0; border-color: #a9bf97; }
.primary-button .icon, .secondary-button .icon { width: 15px; height: 15px; }
.detail-footer .primary-button, .detail-footer > .secondary-button { width: 100%; }

/* Sources, saved areas and the sample trip */
.app-dialog { width: min(760px, calc(100vw - 40px)); max-height: calc(100dvh - 70px); padding: 0; border: 1px solid #e0e4d6; border-radius: 16px; background: #f9faf2; color: var(--ink); overflow: hidden; box-shadow: 0 25px 100px rgba(12,43,42,.25); }
.app-dialog::backdrop { background: rgba(16,49,49,.43); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 33px; overscroll-behavior: contain; }
.dialog-close { position: absolute; right: 20px; top: 20px; z-index: 2; border: 1px solid #dce4d2; background: #fbfdf2; color: #6f8862; }
.dialog-close:hover { background: #e8efdd; }
.dialog-close .icon { width: 17px; height: 17px; }
.dialog-header { padding-right: 35px; margin-bottom: 23px; }
.dialog-kicker, .dialog-eyebrow { color: #879775; font-size: 8px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 8px; }
.dialog-title, #dialogTitle { margin: 4px 40px 10px 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.8px; color: #2c5242; }
.dialog-description, .dialog-intro { color: #7d8f6c; font-size: 12px; line-height: 1.8; max-width: 590px; margin: 0 0 23px; }
.dialog-note { padding: 13px 15px; border: 1px solid #e6dcbf; border-radius: 8px; background: #f7f0df; color: #8c7950; font-size: 12px; line-height: 1.8; margin-top: 20px; }
.dialog-note p { margin: 7px 0; }
.dialog-note p:last-child { margin-bottom: 0; }
.dialog-note h3, .dialog-note strong { font-size: 12px; font-weight: 600; color: #846d42; }
.dialog-note h3 { margin-bottom: 8px; }
.dialog-note + .primary-button, .dialog-note + .secondary-button, .trip-empty + .primary-button { margin-top: 22px; }
.dialog-section { margin-top: 24px; }
.dialog-section > h3 { font-size: 14px; font-weight: 600; color: #587347; }
.dialog-footer { border-top: 1px solid #e1e7d5; margin-top: 24px; padding-top: 17px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-card { min-width: 0; padding: 17px; background: #fffef6; border: 1px solid #dfe5d2; border-radius: 10px; }
.source-kicker { display: block; color: #93a17e; font-size: 9px; line-height: 1.4; letter-spacing: 1.05px; text-transform: uppercase; margin: 0 0 8px; }
.source-card h3, .source-card h4 { font-size: 14px; font-weight: 600; line-height: 1.4; color: #486941; margin: 0 0 9px; }
.source-card p { margin: 0 0 12px; color: #869770; font-size: 12px; line-height: 1.8; }
.source-card a { display: inline-flex; align-items: center; gap: 6px; color: #63834d; font-size: 11px; font-weight: 550; text-decoration: none; overflow-wrap: anywhere; }
.source-card a:hover { color: #355d2c; text-decoration: underline; }
.source-card .icon { width: 12px; height: 12px; }
.source-card small { display: block; font-size: 10px; color: #9ca88b; margin-top: 8px; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-tile { border: 1px solid #dce6d3; background: #eef4e7; border-radius: 10px; padding: 18px; }
.about-tile > .icon { width: 22px; height: 22px; color: #809e65; margin-bottom: 12px; }
.about-tile h3 { font-size: 13px; font-weight: 600; color: #4d7040; margin: 0 0 8px; }
.about-tile p { font-size: 12px; color: #7b9266; line-height: 1.8; margin: 0; }
.trip-hero { background: #214a43; border: 1px solid #28574b; color: #edf3e3; border-radius: 12px; padding: 23px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.trip-hero h3 { color: #f6faeb; font-family: Georgia, serif; font-size: 24px; line-height: 1.2; font-weight: 400; margin: 0 0 7px; }
.trip-hero p { font-size: 12px; line-height: 1.8; margin: 0; color: #b2c9ae; }
.trip-hero > .icon { width: 36px; height: 36px; color: #cda481; stroke-width: 1.1; }
.trip-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0 23px; }
.trip-summary > div { border: 1px solid #dfe6d3; border-radius: 8px; background: #f2f6e9; padding: 12px 14px; }
.trip-summary strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 550; color: #4d7040; }
.trip-summary span, .trip-summary small { display: block; color: #879a71; font-size: 10px; line-height: 1.5; }
.trip-stops { display: flex; flex-direction: column; gap: 11px; margin: 14px 0; }
.trip-stop { padding: 15px; border: 1px solid #dde5d0; border-radius: 10px; background: #fffef6; display: flex; align-items: flex-start; gap: 12px; }
.trip-stop { display: block; padding: 18px; }
.trip-stop > div { flex: 1; min-width: 0; }
.trip-stop-time { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 53px; padding: 6px 7px; background: #eaf0df; border-radius: 5px; color: #719157; font-size: 10px; font-weight: 600; white-space: nowrap; }
.trip-stop > .trip-stop-time { display: flex; justify-content: flex-start; align-items: center; gap: 9px; width: 100%; padding: 0; background: transparent; margin: 0 0 14px; }
.trip-stop-time > span { width: 27px; height: 27px; background: #e7efdc; color: #6c8a54; border-radius: 6px; display: grid; place-items: center; font-size: 9px; }
.trip-stop-time > div { display: flex; align-items: center; gap: 9px; color: #78945e; font-size: 11px; }
.trip-stop-time strong { font-weight: 550; }
.trip-stop-time small { color: #9aa985; font-size: 10px; }
.trip-stop-time > .trip-remove { margin-left: auto; }
.trip-stop .trip-summary { display: flex; flex-wrap: wrap; gap: 14px; margin: 13px 0; padding: 10px 0; border-top: 1px solid #e6ecd9; border-bottom: 1px solid #e6ecd9; }
.trip-stop .trip-summary > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #82966b; }
.trip-stop .trip-summary .icon { width: 13px; height: 13px; color: #8eaa73; }
.trip-stop .text-button { margin-left: 16px; font-size: 11px; color: #8d9f76; }
.trip-stop .text-button .icon { width: 12px; height: 12px; }
.trip-stop .rule-callout { margin-top: 12px; }
.trip-stop h3, .trip-stop h4 { font-size: 13px; font-weight: 600; margin: 0 0 6px; color: #4c6e3e; }
.trip-stop p { margin: 0 0 5px; font-size: 12px; line-height: 1.7; color: #85986e; }
.trip-stop small { color: #95a480; font-size: 10px; }
.trip-remove { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; display: grid; place-items: center; color: #9ba78a; }
.trip-remove .icon { width: 14px; height: 14px; }
.trip-remove:hover { background: #f6e8dc; color: #b36e4b; }
.trip-empty { text-align: center; border: 1px dashed #cad9bd; border-radius: 12px; background: #f3f7e9; padding: 35px 25px; }
.trip-empty > .icon { width: 34px; height: 34px; margin: 0 auto 15px; color: #95ae7c; stroke-width: 1.2; }
.trip-empty h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; color: #537344; margin-bottom: 11px; }
.trip-empty p { max-width: 380px; margin: 0 auto 20px; color: #809769; font-size: 12px; line-height: 1.9; }
.saved-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.saved-grid .area-card { padding: 16px; }
.trip-actions { margin-top: 23px; padding-top: 18px; border-top: 1px solid #e0e7d2; display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.trip-actions > p { margin: 0 auto 0 0; max-width: 320px; font-size: 10px; color: #9aa886; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); max-width: calc(100vw - 36px); padding: 11px 18px; border-radius: 9px; border: 1px solid rgba(255,255,255,.15); background: #254c3b; color: #f1f7e8; box-shadow: 0 8px 25px rgba(14,40,23,.15); font-size: 11px; opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; text-align: center; }
.toast.show, .toast.visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-scrim { position: fixed; z-index: 35; inset: 108px 0 0; background: rgba(22,53,49,.22); backdrop-filter: blur(2px); }

/* Thin, reserved scrollbars keep the map feeling open. */
.sidebar, .detail-scroll, .dialog-shell { scrollbar-width: thin; scrollbar-color: #c6d1bc transparent; }
.sidebar::-webkit-scrollbar, .detail-scroll::-webkit-scrollbar, .dialog-shell::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb, .detail-scroll::-webkit-scrollbar-thumb, .dialog-shell::-webkit-scrollbar-thumb { background: #c6d1bc; border-radius: 4px; }
.sidebar::-webkit-scrollbar-track, .detail-scroll::-webkit-scrollbar-track, .dialog-shell::-webkit-scrollbar-track { background: transparent; }

@media (min-width: 1500px) {
  .workspace { grid-template-columns: 320px minmax(0, 1fr) 360px; }
  .sidebar-inner { padding-left: 26px; padding-right: 26px; }
  .detail-hero { padding-left: 26px; padding-right: 26px; }
  .detail-tabs { padding-left: 26px; padding-right: 26px; }
  .detail-scroll { padding-left: 26px; padding-right: 26px; }
  .detail-footer { padding-left: 26px; padding-right: 26px; }
  .map-topbar { left: 26px; right: 26px; top: 23px; }
  .timeline-card { left: 26px; right: 26px; bottom: 36px; }
  .map-legend { left: 29px; bottom: 182px; }
}

@media (max-width: 1199px) {
  .workspace { grid-template-columns: 290px minmax(0, 1fr); }
  .topbar { gap: 25px; padding: 0 22px; }
  .main-nav { margin-left: 0; gap: 23px; }
  .topbar-end { gap: 14px; }
  .island-badge { padding-left: 14px; }
  .sidebar-inner { padding-left: 21px; padding-right: 21px; }
  .detail-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 350px; max-width: calc(100% - 28px); z-index: 45; box-shadow: -12px 0 35px rgba(20,57,49,.12); transform: translateX(102%); visibility: hidden; transition: transform .23s ease, visibility .23s; }
  body.detail-open .detail-panel { transform: translateX(0); visibility: visible; }
  .detail-close { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #f9fcf0; border: 1px solid #d9e3cb; color: #829871; position: absolute; right: 12px; top: 11px; z-index: 3; }
  .detail-close .icon { width: 14px; height: 14px; }
  .detail-eyebrow { padding-right: 22px; }
  .detail-coordinate { font-size: 6.5px; }
  .mobile-detail-peek { position: absolute; z-index: 6; left: 20px; bottom: 212px; max-width: calc(100% - 92px); display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-align: left; border: 1px solid #fffef6; border-radius: 9px; background: #fbfdf3; box-shadow: 0 5px 18px rgba(26,71,57,.09); font-size: 11px; font-weight: 550; }
  .mobile-detail-peek .icon { width: 16px; height: 16px; color: #c47751; }
  .mobile-detail-peek span { display: block; font-size: 9px; color: #8ba079; font-weight: 400; margin-top: 3px; }
  .mobile-detail-peek > span { margin-top: 0; }
  .mobile-detail-peek > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
  .mobile-detail-peek strong { color: #526f49; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-detail-peek small { color: #96a680; font-size: 10px; margin-top: 3px; }
  .mobile-detail-peek .peek-number { display: grid; place-items: center; width: 29px; height: 29px; min-width: 29px; color: #af7652; font-size: 10px; font-weight: 600; background: #f2e4d6; border-radius: 6px; }
  body.detail-open .mobile-detail-peek { opacity: 0; pointer-events: none; }
}

@media (max-width: 980px) {
  .topbar { gap: 20px; }
  .main-nav { gap: 20px; }
  .sources-top { display: none; }
  .island-badge { border: 0; padding: 0; }
  .workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .sidebar-inner { padding-left: 18px; padding-right: 18px; }
  .timeline-top { flex-wrap: wrap; gap: 6px; }
  .timeline-top .demo-chip { font-size: 9px; }
  .timeline-time { margin-left: 22px; }
  .map-legend { gap: 7px 10px; font-size: 9px; bottom: 190px; }
  .map-zoom { bottom: 223px; }
  .mobile-detail-peek { bottom: 229px; }
  .timeline-card { padding-top: 13px; }
  .map-attribution { font-size: 6px; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; min-height: 64px; padding: 0 18px; gap: 15px; }
  .brand { gap: 8px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark .icon { width: 29px; height: 29px; }
  .brand-word { font-size: 26px; letter-spacing: -1.1px; }
  .brand-caption { font-size: 6px; letter-spacing: 1.4px; padding-top: 6px; }
  .main-nav { display: none; }
  .topbar-end { gap: 10px; }
  .island-badge { font-size: 9px; gap: 6px; }
  .mobile-menu { display: inline-flex; color: #d1e2c8; width: 30px; height: 30px; }
  .mobile-menu:hover { background: rgba(255,255,255,.09); }
  .mobile-menu .icon { width: 17px; height: 17px; }
  .preview-strip { height: 32px; min-height: 32px; padding: 0 17px; gap: 9px; font-size: 11px; }
  .preview-label { font-size: 9px; letter-spacing: .75px; gap: 4px; }
  .preview-strip > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .preview-strip > button { font-size: 0; gap: 0; padding: 6px 0 6px 6px; }
  .preview-strip > button .icon { width: 13px; height: 13px; }
  .workspace { display: block; min-height: 0; }
  .map-section { width: 100%; height: 100%; }
  .sidebar { position: absolute; z-index: 45; top: 0; left: 0; bottom: 0; width: 330px; max-width: calc(100% - 28px); transform: translateX(-102%); visibility: hidden; transition: transform .23s ease, visibility .23s; box-shadow: 12px 0 35px rgba(20,57,49,.12); }
  body.filters-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-inner { padding: 23px 24px; }
  .sidebar-heading .mobile-only { display: flex; width: 27px; height: 27px; color: #8a9c79; margin: -8px -10px 0 0; }
  .sidebar-heading .mobile-only .icon { width: 16px; height: 16px; }
  .mode-button { height: 65px; }
  .mode-button span, .water-tabs button { font-size: 11px; }
  .field-label { font-size: 11px; }
  .select-field > span { font-size: 11px; }
  .select-field select { height: 39px; font-size: 11px; }
  .search-field { height: 44px; }
  .search-field input { font-size: 12px; }
  .area-title { font-size: 14px; }
  .area-description { font-size: 12px; }
  .area-meta { font-size: 10.5px; }
  .area-status { font-size: 10px; }
  .detail-panel { width: 370px; max-width: 100%; border: 0; }
  .detail-hero { padding-top: 25px; padding-bottom: 19px; }
  .detail-title { font-size: 29px; }
  .detail-section p, .reason-list > li { font-size: 12px; }
  .detail-tabs > button { font-size: 11px; padding-top: 15px; padding-bottom: 13px; }
  .detail-section-title { font-size: 12px; }
  .technique-card { font-size: 12px; }
  .technique-card p { font-size: 11px; }
  .detail-footer { padding-bottom: 18px; }
  .detail-footer .primary-button { min-height: 44px; font-size: 12px; }
  .map-topbar { top: 15px; left: 15px; right: 15px; gap: 8px; }
  .map-title { padding: 9px 10px; gap: 7px; }
  .map-title > span { font-size: 16px; }
  .map-title small { font-size: 9px; margin-top: 4px; }
  .map-title > .icon { width: 14px; height: 14px; }
  .map-filter-button { display: inline-flex; }
  .map-tools { gap: 5px; }
  .map-tool-button, .map-filter-button { height: 33px; padding: 0 9px; gap: 5px; font-size: 11px; }
  .map-tool-button .icon, .map-filter-button .icon { width: 13px; height: 13px; }
  .layers-menu { top: 61px; right: 15px; }
  .north-arrow { right: 25px; top: 84px; }
  .island-map { top: 0; height: calc(100% - 160px); }
  .map-zoom { right: 15px; bottom: 224px; }
  .map-zoom button { width: 34px; height: 34px; }
  .map-legend { left: 18px; bottom: 171px; right: 15px; font-size: 9px; gap: 6px 11px; }
  .timeline-card { left: 15px; right: 15px; bottom: 29px; padding: 13px 14px 12px; border-radius: 10px; }
  .timeline-top { flex-wrap: nowrap; gap: 6px; }
  .timeline-top > div { gap: 5px; }
  .timeline-top strong { font-size: 11px; }
  .timeline-top .icon { width: 13px; height: 13px; }
  .timeline-top .demo-chip { font-size: 9px; padding: 2px 4px; }
  .timeline-time { font-size: 11px; margin-left: 0; }
  #timeSlider { margin-top: 20px; }
  .timeline-summary { font-size: 10.5px; gap: 6px 10px; }
  .timeline-summary .icon { width: 11px; height: 11px; }
  .map-attribution { bottom: 8px; left: 15px; right: 15px; font-size: 5.5px; }
  .ocean-caption { bottom: 40%; font-size: 8px; letter-spacing: 2.7px; }
  .ocean-caption span { font-size: 6px; }
  .mobile-detail-peek { left: 15px; bottom: 198px; max-width: calc(100% - 76px); font-size: 11px; padding: 10px 12px; }
  .mobile-detail-peek span { font-size: 8px; }
  .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: stretch; flex: 0 0 auto; min-height: 61px; padding: 4px 8px max(5px, env(safe-area-inset-bottom)); background: #fbfcf3; border-top: 1px solid #dbe5d1; position: relative; z-index: 50; }
  .mobile-bottom-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 5px 12px; min-width: 60px; color: #9aa88a; font-size: 10px; }
  .mobile-bottom-nav > button .icon { width: 18px; height: 18px; stroke-width: 1.5; }
  .mobile-bottom-nav > button.active { color: #486d3d; }
  .mobile-bottom-nav > button.active .icon { stroke-width: 1.9; }
  .mobile-bottom-nav > button:hover { color: #547c46; }
  .mobile-scrim { inset: 96px 0 61px; z-index: 35; }
  .app-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 38px); border-radius: 14px; }
  .dialog-shell { padding: 25px 20px; max-height: calc(100dvh - 40px); }
  .dialog-close { top: 14px; right: 13px; width: 30px; height: 30px; }
  .dialog-title, #dialogTitle { font-size: 27px; margin-right: 28px; }
  .dialog-description, .dialog-intro { font-size: 12px; }
  .source-grid, .about-grid { gap: 10px; }
  .source-card, .about-tile { padding: 14px; }
  .source-card h3 { font-size: 14px; }
  .source-card p { font-size: 12px; }
  .source-card a { font-size: 11px; }
  .trip-summary { gap: 7px; }
  .trip-summary > div { padding: 10px; }
  .trip-summary strong { font-size: 15px; }
  .trip-summary span { font-size: 10px; }
  .trip-hero { padding: 18px; }
  .trip-hero h3 { font-size: 22px; }
  .trip-hero p { font-size: 12px; }
  .trip-stop { padding: 12px; gap: 9px; }
  .trip-stop-time { min-width: 44px; font-size: 10px; padding: 5px; }
  .trip-stop h3 { font-size: 13px; }
  .trip-actions { flex-wrap: wrap; }
  .trip-actions > p { width: 100%; max-width: none; margin: 0 0 5px; }
  .toast { bottom: 78px; font-size: 11px; width: max-content; }
}

@media (max-width: 380px) {
  .topbar { padding-left: 13px; padding-right: 12px; }
  .island-badge { font-size: 8px; }
  .topbar-end { gap: 7px; }
  .preview-strip { padding: 0 13px; gap: 7px; }
  .map-topbar { left: 12px; right: 12px; }
  .map-filter-button { font-size: 0; width: 33px; padding: 0; gap: 0; }
  .timeline-top .demo-chip { display: none; }
  .map-legend { font-size: 9px; gap: 7px; }
  .timeline-card { left: 12px; right: 12px; }
  .timeline-summary { font-size: 10.5px; gap: 7px; }
  .source-grid, .about-grid, .saved-grid { grid-template-columns: 1fr; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .sidebar-inner { padding-top: 20px; }
  h1 { font-size: 29px; margin-bottom: 18px; }
  .field-label { margin-top: 14px; }
  .mode-button { height: 55px; }
  .water-tabs { margin-top: 14px; margin-bottom: 13px; }
  .results-heading { margin-top: 18px; padding-top: 16px; }
  .detail-hero { padding-top: 20px; padding-bottom: 16px; }
  .detail-title { font-size: 25px; }
  .detail-section { padding-top: 17px; padding-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
