:root {
  --ink: #17251f; --ink-soft: #52625a; --fog: #e8ece7; --paper: #f8f6f0;
  --line: #d4d9d2; --line-strong: #b7c2b9; --spruce: #155744; --spruce-dark: #0d382c;
  --spruce-wash: #e2ede7; --amber: #c36f3e; --amber-dark: #7d3f24; --amber-wash: #f8e7dc;
  --shadow-sm: 0 4px 16px rgba(23, 37, 31, .08); --shadow-md: 0 16px 38px rgba(23, 37, 31, .16);
  color: var(--ink); background: var(--fog); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--fog); }
button, input, select, summary { font: inherit; }
button, input, select { border: 1px solid var(--line-strong); border-radius: 7px; color: inherit; }
button { min-height: 44px; padding: 0 14px; background: var(--paper); cursor: pointer; font-weight: 700; }
button:disabled { cursor: wait; opacity: .65; }
input, select { min-height: 44px; background: #fff; }
input { width: 100%; padding: 10px 13px; outline: none; }
select { width: 100%; padding: 8px 30px 8px 10px; }
button:hover { border-color: var(--spruce); }
:where(button, input, select, summary, [role="button"], a):focus-visible, .card[role="button"]:focus-visible, .card:focus-visible, .source-link:focus-visible, .map-tools button:focus-visible { outline: 3px solid #2c6f92; outline-offset: 2px; }

.app-shell { display: flex; min-height: 100vh; height: 100vh; flex-direction: column; }
.hero { position: relative; z-index: 20; display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 12px clamp(18px, 2.3vw, 34px); border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-content { display: flex; min-width: 0; flex: 1; align-items: center; gap: clamp(28px, 4vw, 56px); }
.hero-brand { display: flex; min-width: 0; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 12px 12px 12px 3px; background: var(--spruce-dark); color: #fff; font-family: Georgia, serif; font-size: 25px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); }
.eyebrow { margin: 0 0 3px; color: var(--spruce); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.lede { max-width: 330px; margin: 0; padding-left: clamp(22px, 3vw, 42px); border-left: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.surface-nav { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--fog); }
.surface-link { display: inline-flex; min-width: 66px; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 800; text-decoration: none; }
.surface-link:hover { background: #fff; color: var(--spruce); }
.surface-link[aria-current="page"] { background: var(--paper); color: var(--spruce-dark); box-shadow: 0 2px 5px rgba(23, 37, 31, .12); }
.surface-filters { display: none; }
.header-actions { display: flex; flex: 0 0 auto; gap: 7px; margin-left: 18px; }
.hero-toggle { min-height: 44px; padding: 0 12px; border-color: var(--spruce-dark); background: var(--spruce-dark); color: #f7faf6; font-size: 11px; }

.workspace { display: grid; min-height: 0; flex: 1 1 auto; grid-template-columns: clamp(400px, 29vw, 440px) minmax(0, 1fr); grid-template-areas: "rail map"; overflow: hidden; }
.workspace.results-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.workspace.results-collapsed .results-panel { display: none; }
.results-panel { position: relative; z-index: 2; grid-area: rail; min-height: 0; height: 100%; padding: 0 18px 48px; border-right: 1px solid var(--line); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-color: var(--line-strong) transparent; }
.results-panel:focus-visible { outline-offset: -3px; }
.hero-search { margin: 0 -18px; padding: 21px 18px 18px; border-bottom: 0; background: var(--spruce-dark); color: #f4f8f3; }
.results-panel.search-collapsed .hero-search { display: none; }
.query-label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 850; letter-spacing: .01em; }
.hero-search .query-label { color: #f4f8f3; }
.hero-search input, .hero-search select { color: var(--ink); }
.query-row { display: flex; gap: 7px; }
.query-row input { width: auto; min-width: 0; flex: 1 1 auto; border-color: #aebfb8; box-shadow: inset 0 1px 2px rgba(20, 37, 31, .04); }
.query-row input:focus { border-color: var(--spruce); box-shadow: 0 0 0 3px rgba(29, 90, 70, .13); }
#clear-query { flex: 0 0 auto; color: var(--ink-soft); font-size: 12px; }
.hero-search #clear-query, .hero-search #clear-developer-query { border-color: rgba(244, 248, 243, .36); background: transparent; color: #f4f8f3; }
.developer-filter { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(244, 248, 243, .2); }
.hero-search .developer-filter .query-label { color: #f4f8f3; }
#clear-developer-query { flex: 0 0 auto; color: var(--ink-soft); font-size: 12px; }
.developer-quick-select { display: grid; gap: 7px; margin-top: 9px; }
.developer-quick-select .quick-label { position: static; padding: 0; background: transparent; }
.developer-quick-select select { border-color: #aebfb8; box-shadow: inset 0 1px 2px rgba(20, 37, 31, .04); }
.developer-quick-select select:focus { border-color: var(--spruce); box-shadow: 0 0 0 3px rgba(29, 90, 70, .13); }
.agent-status { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; }
.quick-filters { display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.quick-label { position: sticky; left: 0; z-index: 1; flex: 0 0 auto; padding-right: 6px; background: #f1f6f3; color: #677871; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-filter { min-height: 40px; padding: 0 11px; border-color: var(--line); border-radius: 7px; background: rgba(255, 255, 255, .84); color: var(--ink-soft); font-size: 11px; }
.hero-search .quick-label { background: transparent; color: rgba(244, 248, 243, .66); }
.hero-search .quick-filter { border-color: rgba(244, 248, 243, .26); background: rgba(255, 255, 255, .08); color: #f4f8f3; }
.hero-search .quick-filter:hover, .hero-search .quick-filter[aria-pressed="true"] { border-color: #f4f8f3; background: #f4f8f3; color: var(--spruce-dark); }
.quick-filter:hover, .quick-filter[aria-pressed="true"] { border-color: var(--spruce); background: var(--spruce); color: #fff; }
.quick-drawer { margin-top: 7px; }
.quick-drawer > summary { display: flex; min-height: 42px; align-items: center; padding: 0 11px; border: 1px solid rgba(244, 248, 243, .24); border-radius: 7px; background: rgba(255, 255, 255, .07); color: #f4f8f3; cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
.quick-drawer > summary::-webkit-details-marker { display: none; }
.quick-drawer > summary::after { content: "+"; margin-left: auto; color: #f4f8f3; font-size: 17px; font-weight: 500; }
.quick-drawer[open] > summary::after { content: "−"; }
.quick-drawer .quick-filters { flex-wrap: wrap; overflow: visible; }
.quick-drawer .quick-label { position: static; flex-basis: 100%; background: transparent; }
.property-url-form { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(244, 248, 243, .2); }
.hero-search .property-url-form > label { color: #f4f8f3; }
.property-url-form > label { color: var(--ink); font-size: 12px; font-weight: 800; }
.property-url-row { display: flex; gap: 7px; }
.property-url-row input { min-width: 0; flex: 1 1 auto; }
#resolve-property-url { flex: 0 0 auto; padding-inline: 10px; color: var(--spruce-dark); font-size: 11px; }
#property-url-status { color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
#property-url-status.is-error { color: #9a4038; }
.chips { display: flex; min-height: 24px; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chips:empty { display: none; }
.chip { padding: 5px 9px; border: 1px solid #cbdad3; border-radius: 999px; background: var(--spruce-wash); color: var(--spruce-dark); font-size: 10px; font-weight: 700; }

.panel-heading { position: sticky; top: 0; z-index: 10; margin: 0 -18px 14px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); background: rgba(248, 246, 240, .96); backdrop-filter: blur(14px); }
.panel-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); align-items: end; gap: 3px 12px; }
.panel-title .eyebrow { grid-column: 1 / -1; }
h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; letter-spacing: -.035em; line-height: 1.02; }
.result-summary { max-width: 190px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.35; text-align: right; }
.saved-map-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 10px; }
#open-saved-google-maps { display: inline-flex; min-height: 44px; align-items: center; padding: 0 11px; border: 1px solid var(--spruce); border-radius: 8px; background: var(--spruce); color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
#open-saved-google-maps[aria-disabled="true"] { border-color: var(--line); background: var(--fog); color: var(--ink-soft); cursor: default; }
#saved-map-status { color: var(--ink-soft); font-size: 9px; line-height: 1.35; }
.filter-drawer { margin-top: 11px; }
.filter-drawer > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--spruce-dark); cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.filter-drawer > summary::-webkit-details-marker { display: none; }
.filter-drawer > summary::before { content: "+"; font-size: 18px; font-weight: 500; }
.filter-drawer[open] > summary::before { content: "−"; }
.filter-drawer > summary > span:first-child { margin-right: auto; }
.filter-count { padding: 3px 7px; border-radius: 999px; background: var(--spruce-wash); color: var(--spruce); font-size: 10px; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 12px 1px 2px; }
.filter-view { grid-column: 1 / -1; }
.trust-control { display: grid; gap: 4px; color: #677871; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.trust-control select { font-size: 12px; letter-spacing: normal; text-transform: none; }
.decision-panel { margin: 0 0 12px; padding: 12px; border: 1px solid #e6cf94; border-left: 4px solid var(--amber); border-radius: 8px; background: var(--amber-wash); color: #49370d; }
.decision-panel:empty { display: none; }
.decision-panel strong, .decision-panel small { display: block; }
.decision-panel strong { font-size: 13px; line-height: 1.35; }
.decision-panel small { margin-top: 4px; color: #6e603c; font-size: 10px; line-height: 1.45; }
.release-note { margin: 0 0 12px; padding: 10px 11px; border: 1px solid #e6cf94; border-left: 4px solid var(--amber); border-radius: 8px; background: var(--amber-wash); color: #49370d; font-size: 11px; line-height: 1.45; }
.decision-kicker { margin: 0 0 4px; color: var(--amber-dark); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

.results { display: grid; gap: 10px; }
.result-group { display: grid; gap: 10px; }
.result-group-heading { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; color: var(--ink-soft); }
.result-group-heading h3 { margin: 0; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.result-group-heading span { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 999px; background: var(--spruce-wash); color: var(--spruce-dark); font-size: 11px; font-weight: 850; }
.research-results { border: 1px solid var(--line); border-radius: 9px; background: #f7f9f8; }
.research-results > summary { display: grid; min-height: 52px; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; padding: 8px 11px; color: var(--spruce-dark); cursor: pointer; font-size: 12px; font-weight: 850; list-style-position: inside; }
.research-results > summary span:last-child { color: var(--ink-soft); font-size: 11px; font-weight: 650; text-align: right; }
.research-results .discovery-results { padding: 0 9px 9px; }
.results-end { margin: 20px 0 0; padding: 12px 8px 8px; border-top: 1px solid var(--line); color: #74827c; font-size: 10px; line-height: 1.45; text-align: center; }
.card { position: relative; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fffdfa; box-shadow: 0 1px 2px rgba(23, 37, 31, .03); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.card:hover { border-color: #aebfb8; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.card[role="button"] { cursor: pointer; }
.card[aria-current="true"] { border-color: var(--spruce); box-shadow: 0 0 0 3px rgba(29, 90, 70, .12); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-topline > div:first-child { min-width: 0; }
.card-top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.card-menu { position: relative; }
.card-menu > summary { display: grid; width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); cursor: pointer; font-size: 13px; font-weight: 850; letter-spacing: .08em; list-style: none; }
.card-menu > summary::-webkit-details-marker { display: none; }
.card-menu[open] > summary { border-color: var(--spruce); background: var(--fog); color: var(--spruce); }
.card-menu-popover { display: grid; position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 180px; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 18px; letter-spacing: -.015em; line-height: 1.15; }
.meta { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.save-toggle { min-height: 44px; flex: 0 0 auto; padding: 0 9px; border-color: var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.card-menu-popover .save-toggle { width: 100%; border-radius: 7px; text-align: left; }
.save-toggle:hover, .save-toggle.is-saved { border-color: #d4ae5f; background: var(--amber-wash); color: var(--amber-dark); }
.hide-toggle { width: 100%; min-height: 44px; padding: 0 10px; border-color: transparent; background: transparent; color: #64746d; font-size: 11px; font-weight: 750; text-align: left; }
.hide-toggle:hover { border-color: transparent; background: var(--fog); color: var(--ink); }
.hide-toggle.is-hidden { background: var(--spruce-wash); color: var(--spruce-dark); }
.card-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 11px 0; }
.card-media-photo { display: block; min-width: 0; }
.card-media-photo img { display: block; width: 100%; height: 70px; border-radius: 6px; background: var(--fog); object-fit: cover; }
.card-media-video { grid-column: 1 / -1; overflow: hidden; color: var(--spruce); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 11px 0; border-block: 1px solid #e6ece9; }
.fact { min-width: 0; padding: 9px 8px; border-right: 1px solid #e6ece9; }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; border-right: 0; }
.fact-label { display: block; margin-bottom: 3px; color: #788780; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fact-value { display: block; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.verification-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 9px; }
.trust-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 850; }
.trust-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.legal-state { color: #687871; font-size: 12px; }
.green { color: #1c6a47; } .yellow { color: #a56909; } .red { color: #9a4038; }
.badge { display: inline-flex; align-items: center; gap: 5px; margin: 11px 0 8px; padding: 5px 8px; border-radius: 999px; background: var(--fog); font-size: 11px; font-weight: 750; }
.badge.green { background: #ddf1e5; } .badge.yellow { background: var(--amber-wash); } .badge.red { background: #f8e1de; }
.tier-chip { display: inline-block; margin: 0 0 8px; padding: 4px 8px; border-radius: 999px; background: var(--fog); color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.card small { display: block; color: #6c7b75; font-size: 12px; line-height: 1.45; }
.distance { min-height: 15px; margin-bottom: 7px; }
.card-actions { display: flex; align-items: stretch; gap: 7px; margin: 10px 0; }
.map-action { min-height: 44px; flex: 1 1 0; padding: 7px 9px; border-color: var(--spruce); background: var(--spruce); color: #fff; font-size: 10px; font-weight: 850; }
.map-action:hover { border-color: var(--spruce-dark); background: var(--spruce-dark); }
.map-action.no-pin { border-color: var(--line); background: var(--fog); color: var(--ink-soft); }
.evidence-details { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e7ecea; }
.evidence-details > summary { display: flex; min-height: 44px; align-items: center; color: var(--spruce); cursor: pointer; font-size: 12px; font-weight: 800; }
.evidence-body { display: grid; gap: 7px; padding: 2px 0 4px; }
.coordinate-verify-action { width: 100%; min-height: 44px; border-color: var(--line); background: var(--fog); color: var(--spruce-dark); font-size: 12px; font-weight: 800; }
.source-link, .evidence-link, .popup-content a { display: inline-flex; min-height: 44px; align-items: center; color: var(--spruce); font-size: 12px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.evidence-link { display: flex; color: var(--ink-soft); }
.resale { display: grid; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.resale a { color: var(--spruce); text-decoration: none; }
.empty { padding: 24px 0; color: var(--ink-soft); line-height: 1.5; }

#map { position: relative; z-index: 1; grid-area: map; min-height: 0; height: 100%; background: #dbe5e0; overflow: hidden; }
.map-tools { position: absolute; top: 14px; right: 14px; z-index: 500; width: 214px; padding: 7px; border: 1px solid rgba(244, 248, 243, .28); border-radius: 12px; background: rgba(13, 56, 44, .94); color: #f4f8f3; box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.map-tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.map-tools button { min-height: 40px; min-height: 44px; padding: 6px 7px; border-color: rgba(244, 248, 243, .28); background: rgba(255, 255, 255, .08); color: #f4f8f3; font-size: 10px; }
#pick-location[aria-pressed="true"] { border-color: var(--spruce); background: var(--spruce); color: #fff; }
#location-status { display: block; padding: 7px 3px 3px; color: rgba(244, 248, 243, .7); font-size: 9px; line-height: 1.3; text-align: center; }
.transport-control { margin-top: 5px; border-top: 1px solid rgba(244, 248, 243, .2); color: #f4f8f3; font-size: 10px; }
.transport-control summary { display: flex; min-height: 44px; align-items: center; cursor: pointer; font-weight: 850; }
.transport-control summary::after { content: "+"; margin-left: auto; font-size: 16px; font-weight: 500; }
.transport-control[open] summary::after { content: "−"; }
.transport-control label { display: flex; min-height: 44px; align-items: center; gap: 8px; color: rgba(244, 248, 243, .8); }
.transport-control input { width: 17px; min-height: 17px; height: 17px; accent-color: var(--spruce); }
.transport-control small { display: block; padding: 6px 0 3px; color: rgba(244, 248, 243, .6); font-size: 9px; line-height: 1.35; }
#map.pick-location { cursor: crosshair; }
.evidence-dock { position: absolute; bottom: 20px; left: 14px; z-index: 500; width: min(520px, calc(100% - 28px)); filter: drop-shadow(0 8px 18px rgba(20, 37, 31, .16)); }
.evidence-key { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 13px; padding: 8px 11px; border: 1px solid rgba(184, 200, 193, .9); border-radius: 10px 10px 0 0; background: rgba(20, 37, 31, .94); color: #eff5f2; font-size: 9px; font-weight: 700; white-space: nowrap; }
.evidence-key-title { padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.evidence-key span { display: inline-flex; align-items: center; gap: 5px; }
.key-dot { width: 8px; height: 8px; border: 1.5px solid #fff; border-radius: 50%; }
.key-green { background: #3ba56f; } .key-yellow { background: #e5a72f; } .key-hollow { background: transparent; }
.map-note { max-width: 100%; padding: 9px 11px; border: 1px solid rgba(184, 200, 193, .9); border-top: 0; border-radius: 0 9px 9px 9px; background: rgba(251, 252, 251, .95); color: var(--ink-soft); font-size: 10px; line-height: 1.4; backdrop-filter: blur(12px); }
.transport-marker { display: grid; width: 27px; height: 27px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 2px 6px rgba(20, 37, 31, .4); }
.transport-marker.metro { background: #6b4bb6; } .transport-marker.airport { background: #1f7593; } .transport-marker.railway { background: #a2562b; } .transport-marker.bus { background: #2f8746; }
.transport-label { padding: 2px 5px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 5px; background: rgba(20, 37, 31, .9); color: #fff; font-size: 9px; font-weight: 750; white-space: nowrap; box-shadow: var(--shadow-sm); }
.transport-label::before { border-top-color: rgba(20, 37, 31, .9); }

.leaflet-popup-content-wrapper { max-height: 500px; overflow-y: auto; border-radius: 10px; box-shadow: var(--shadow-md); }
.popup-content { min-width: 230px; max-width: 310px; max-height: 460px; overflow-y: auto; color: var(--ink); line-height: 1.45; }
.popup-title { display: block; margin-bottom: 2px; font-family: Georgia, serif; font-size: 17px; }
.popup-meta { margin: 0 0 9px; color: var(--ink-soft); font-size: 11px; }
.popup-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; padding: 8px; border-radius: 7px; background: var(--fog); font-size: 10px; }
.popup-section { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10px; }
.popup-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 10px; }
.popup-gallery figure { margin: 0; }
.popup-gallery img { display: block; width: 100%; height: 78px; border-radius: 6px; background: var(--fog); object-fit: cover; }
.popup-gallery figcaption { margin-top: 2px; color: #718079; font-size: 8px; }
.popup-gallery figcaption a { color: var(--spruce); }
.photo-empty { margin: 8px 0 10px; padding: 10px; border-radius: 7px; background: var(--fog); color: #718079; font-size: 10px; }

@media (max-width: 920px) {
  .app-shell { height: 100dvh; min-height: 100vh; overflow: hidden; }
  .hero { position: relative; z-index: 1000; min-height: 60px; flex: 0 0 auto; padding: 8px 14px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  h1 { font-size: 18px; }
  .lede { display: none; }
  .surface-nav { margin-left: auto; }
  .surface-filters { display: inline-flex; }
  .header-actions { display: none; }
  .workspace { display: flex; min-height: 0; height: auto; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
  .workspace.results-collapsed .results-panel { display: none; }
  #map { order: 1; min-height: 0; height: 100%; flex: 1 1 auto; }
  .results-panel { order: 2; width: 100%; max-width: 100vw; min-height: 0; height: 100%; flex: 1 1 auto; padding-bottom: 44px; border-top: 1px solid var(--line); border-right: 0; overflow-x: hidden; overflow-y: auto; }
  .panel-heading { position: static; }
  .map-tools { width: 196px; }
  .evidence-dock { bottom: 12px; }
  .popup-content { max-height: 330px; }
}
@media (max-width: 560px) {
  .hero-content { display: none; }
  .surface-nav { width: 100%; gap: 2px; margin: 0; padding: 2px; }
  .surface-nav::before { content: "G"; display: grid; width: 40px; flex: 0 0 40px; place-items: center; border-radius: 7px 7px 7px 2px; background: var(--spruce); color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 800; }
  .surface-link { min-width: 0; flex: 1 1 0; padding-inline: 5px; font-size: 11px; }
  .hero-toggle { padding: 0 7px; font-size: 9px; }
  .results-panel { padding-inline: 14px; }
  .hero-search, .panel-heading { margin-inline: -14px; padding-inline: 14px; }
  .quick-filters { flex-wrap: nowrap; }
  .quick-label { flex-basis: auto; }
  .hero-search .quick-filters { padding-bottom: 2px; }
  .quick-filter { min-height: 44px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-view { grid-column: auto; }
  .panel-title { grid-template-columns: minmax(0, 1fr) minmax(0, 145px); }
  .result-summary { max-width: 145px; }
  #map { min-height: 0; height: 100%; }
  .map-tools { top: 10px; right: 10px; width: 178px; padding: 6px; }
  .map-tools button { min-height: 44px; font-size: 9px; }
  .evidence-dock { right: 10px; bottom: 10px; left: 10px; width: auto; }
  .evidence-key { width: 100%; gap: 9px; overflow-x: auto; }
  .evidence-key-title { padding-right: 7px; }
  .map-note { font-size: 9px; }
  .card { padding: 13px; }
  .card-actions { flex-direction: column; }
  .map-action { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .card:hover { transform: none; }
}
