:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #0d1821;
  --panel-2: #111f2a;
  --line: #263946;
  --line-bright: #405766;
  --ink: #f1f2ec;
  --muted: #91a2ae;
  --gold: #efb34c;
  --mint: #63d0aa;
  --cyan: #72bce3;
  --magenta: #d58acb;
  --orange: #ef8d62;
  --red: #ed7a6a;
  --topbar: 68px;
  --left: 268px;
  --right: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell {
  display: grid;
  grid-template: var(--topbar) minmax(0, 1fr) / var(--left) minmax(300px, 1fr) var(--right);
  width: 100vw;
  height: 100vh;
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--left) auto minmax(220px, 520px) auto;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, .97);
  box-shadow: 0 8px 30px #0006;
  z-index: 30;
}

.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #725722;
  color: #17130b; background: var(--gold); font: 900 12px ui-monospace, monospace; letter-spacing: -.08em;
}
.brand b { display: block; font-size: 14px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.mode-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #050b10; }
.mode-button {
  height: 36px; padding: 0 13px; border: 0; border-radius: 6px; color: var(--muted);
  background: transparent; font-size: 12px; font-weight: 750; cursor: pointer;
}
.mode-button span { margin-right: 5px; color: var(--cyan); }
.mode-button.active { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px #ffffff0d; }
.mode-button[data-mode="underground"].active span { color: var(--magenta); }

.search-shell { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #050b10; }
.search-shell > span { color: var(--mint); font-size: 20px; line-height: 1; }
.search-shell input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-shell input::placeholder { color: #667a88; }
.search-results { position: absolute; z-index: 80; top: 44px; left: 0; right: 0; max-height: 340px; overflow: auto; padding: 6px; border: 1px solid var(--line-bright); border-radius: 9px; background: #0b151d; box-shadow: 0 20px 60px #000c; }
.search-results button { display: block; width: 100%; padding: 9px; border: 0; border-radius: 6px; text-align: left; color: var(--ink); background: transparent; cursor: pointer; }
.search-results button:hover { background: #172733; }
.search-results small { display: block; margin-top: 2px; color: var(--muted); }
.top-actions { display: flex; gap: 8px; justify-content: flex-end; }
.quiet-button { display: inline-grid; place-items: center; min-height: 35px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; text-decoration: none; font-size: 11px; cursor: pointer; }
.quiet-button:hover { color: var(--ink); border-color: var(--line-bright); }

.panel { min-height: 0; overflow: auto; background: var(--panel); scrollbar-color: #364c5a transparent; scrollbar-width: thin; }
.panel-close { display: none; }
.left-panel { grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); padding: 6px 15px 38px; }
.right-panel { grid-column: 3; grid-row: 2; border-left: 1px solid var(--line); padding: 25px 20px 48px; }
.left-panel section { padding: 18px 2px; border-bottom: 1px solid #1f303b; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.section-heading small { color: #647887; font-size: 8px; font-weight: 650; }
.check-row { display: flex; align-items: center; min-height: 31px; color: #b6c2ca; font-size: 11px; cursor: pointer; }
.check-row input { width: 14px; height: 14px; margin: 0 9px 0 0; accent-color: var(--mint); }
.check-row span { display: flex; gap: 8px; align-items: center; }
.swatch { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.swatch.built { border: 1px solid var(--cyan); background: #72bce329; }
.swatch.route { height: 3px; background: var(--gold); }
.swatch.place { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.swatch.protected { border: 1px dashed var(--red); background: #ed7a6a1f; }
.swatch.zone { border: 1px solid var(--mint); background: #63d0aa26; }
.swatch.construction { background: linear-gradient(90deg,var(--magenta) 0 33%,var(--cyan) 33% 66%,var(--mint) 66%); }
.swatch.areas { border: 1px dashed var(--cyan); background: #72bce30c; }
.swatch.entrance { width: 0; height: 0; border-right: 6px solid transparent; border-bottom: 10px solid var(--orange); border-left: 6px solid transparent; border-radius: 0; }
.swatch.sign { width: 7px; height: 7px; background: var(--ink); }

.deck-buttons { display: grid; gap: 6px; }
.deck-buttons button { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #09121a; text-align: left; font-size: 10px; cursor: pointer; }
.deck-buttons button.active { color: var(--ink); border-color: #607585; background: #14232e; }
.deck-buttons i { width: 8px; height: 8px; border-radius: 50%; }
.deck-buttons small { color: #728694; }
.text-link { display: inline-block; margin-top: 8px; color: var(--cyan); font-size: 9px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.subheading { margin: 17px 0 8px; color: #c2ccd2; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.detail-picker select { height: 38px; min-width: 0; font-size: 10px; }
.detail-picker button { min-width: 52px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #14232e; font-size: 10px; font-weight: 800; cursor: pointer; }
.detail-summary { margin-top: 9px; padding: 9px; border-left: 2px solid var(--cyan); color: var(--muted); background: #09131b; font-size: 9px; line-height: 1.5; }
.detail-summary b { display: block; margin-bottom: 3px; color: var(--ink); }

.draw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.draw-grid button, .wide-button, .edit-actions button, .resize-row button { min-height: 38px; border: 1px solid var(--line); border-radius: 7px; color: #bbc7ce; background: #0a141c; font-size: 10px; font-weight: 750; cursor: pointer; }
.draw-grid button:hover, .wide-button:hover, .edit-actions button:hover, .resize-row button:hover { color: var(--ink); border-color: var(--line-bright); }
.draw-grid button.active { color: #17130b; border-color: var(--gold); background: var(--gold); }
.draw-grid b { margin-right: 5px; font-size: 15px; }
.wide-button { width: 100%; }
.wide-button:disabled { opacity: .4; cursor: default; }
.fine-print { margin: 9px 0 0; color: #6f818d; font-size: 9px; line-height: 1.5; }
.summary-row { display: flex; justify-content: space-between; margin-top: 11px; color: var(--muted); font-size: 9px; }
.summary-row b { color: #cbd4d9; font: 700 9px ui-monospace, monospace; }
.hidden-plan-list { display: grid; gap: 6px; margin-top: 9px; color: #6f818d; font-size: 9px; line-height: 1.45; }
.hidden-plan-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: #cbd4d9; }
.hidden-plan-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden-plan-row button { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #526573; background: #15222c; color: #d6e0e5; font-size: 9px; }
.plan-workspace-entry { border-left: 2px solid var(--gold); padding-left: 10px !important; }
#planning-controls[hidden] { display: none; }
.history-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.activity-list { display: grid; gap: 6px; max-height: 178px; overflow: auto; margin-top: 9px; color: #9eb0bb; font-size: 9px; line-height: 1.35; }
.activity-row { padding: 7px 8px; border-left: 2px solid #587a8a; background: #09131b; }
.activity-row time { display: block; margin-top: 3px; color: #667c88; font: 700 8px ui-monospace, monospace; }
.quiet-danger-button { width: 100%; min-height: 32px; margin-top: 9px; border: 1px solid #5d3838; border-radius: 7px; color: #dc9993; background: #211314; font-size: 9px; font-weight: 750; cursor: pointer; }
.quiet-danger-button:hover:not(:disabled) { border-color: #a55b56; color: #ffc1ba; }
.quiet-danger-button:disabled { opacity: .45; cursor: default; }
.legend-block p { display: grid; grid-template-columns: 24px 66px 1fr; align-items: center; margin: 8px 0; color: var(--muted); font-size: 9px; }
.legend-block b { color: #cbd4d9; line-height: 1.25; }
.legend-line { width: 18px; height: 3px; background: var(--cyan); }
.legend-line.planned { background: repeating-linear-gradient(90deg,var(--gold) 0 4px,transparent 4px 7px); }
.legend-line.under-construction { height: 6px; border: 1px dashed var(--cyan); background: #72bce326; }
.legend-line.conditional { background: repeating-linear-gradient(90deg,var(--orange) 0 2px,transparent 2px 5px); }
.legend-line.protected { height: 8px; border: 1px dashed var(--red); background: #ed7a6a1c; }
.legend-symbol { display: inline-grid; place-items: center; width: 15px; height: 15px; color: #071018; background: var(--legend-color,var(--cyan)); font-size: 8px; font-weight: 900; }
.legend-symbol.circle { border-radius: 50%; }
.legend-symbol.diamond { width: 11px; height: 11px; margin-left: 2px; transform: rotate(45deg); }
.legend-symbol.triangle { width: 0; height: 0; border-right: 7px solid transparent; border-bottom: 13px solid var(--legend-color,var(--orange)); border-left: 7px solid transparent; background: transparent; }
.legend-symbol.octagon { clip-path: polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%); }
.atlas-links { display: grid; gap: 7px; }
.atlas-links a, .atlas-links button { padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; color: #c4d0d6; background: #09131b; font-size: 10px; text-align: left; text-decoration: none; cursor: pointer; }
.atlas-links a::after { content: " ↗"; color: var(--mint); }
.atlas-links button::after { content: " →"; color: var(--mint); }
.atlas-links a:hover, .atlas-links button:hover { border-color: var(--line-bright); color: var(--ink); }

.map { position: relative; grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; outline: 0; background: #03070a; cursor: grab; touch-action: none; }
.map.dragging { cursor: grabbing; }
.map.drawing { cursor: crosshair; }
#map-canvas, #zone-overlay, .map-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-canvas { image-rendering: pixelated; }
#zone-overlay { overflow: visible; pointer-events: none; }
#zone-overlay .zone-shape { pointer-events: all; cursor: pointer; vector-effect: non-scaling-stroke; }
#zone-overlay .zone-shape.selected { stroke-width: 3; filter: drop-shadow(0 0 6px #000); }
#zone-overlay .zone-handle { pointer-events: all; cursor: move; fill: #f4f0e8; stroke: #071018; stroke-width: 2; }
#zone-overlay .draw-preview { fill: #efb34c2b; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 7 5; }
.map-grid { pointer-events: none; opacity: .2; background-image: linear-gradient(#ffffff0b 1px,transparent 1px),linear-gradient(90deg,#ffffff0b 1px,transparent 1px); background-size: 64px 64px; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 25px; height: 25px; transform: translate(-50%,-50%); pointer-events: none; filter: drop-shadow(0 1px 2px #000); }
.crosshair i { position: absolute; display: block; background: #f5eee0; }
.crosshair i:first-child { left: 12px; top: 0; width: 1px; height: 25px; }
.crosshair i:last-child { top: 12px; left: 0; height: 1px; width: 25px; }
.map-badge { position: absolute; left: 15px; bottom: 15px; display: flex; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid #ffffff20; border-radius: 7px; color: var(--ink); background: #071018dc; box-shadow: 0 6px 20px #0008; font-size: 10px; }
.map-badge span { color: var(--muted); }
.map-badge b { color: var(--mint); }
.zoom-controls { position: absolute; top: 15px; right: 15px; display: grid; border: 1px solid #ffffff20; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px #0008; }
.zoom-controls button { width: 36px; height: 34px; border: 0; border-bottom: 1px solid #ffffff14; color: var(--ink); background: #071018e8; font-weight: 800; cursor: pointer; }
.zoom-controls button:last-child { border-bottom: 0; }
.zoom-controls button:hover { background: #172733; }
.map-toast { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); padding: 9px 13px; border: 1px solid #ffffff20; border-radius: 7px; color: var(--ink); background: #071018ef; box-shadow: 0 10px 30px #000b; font-size: 10px; }
.mobile-actions { display: none; }
.panel-scrim { display: none; }

.eyebrow { display: block; color: var(--mint); font: 750 9px ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.empty-inspector h2, #feature-inspector h2 { margin: 10px 0 9px; font-size: 30px; line-height: .98; letter-spacing: -.045em; }
.empty-inspector > p, #feature-summary { color: var(--muted); font-size: 12px; line-height: 1.6; }
.inspector-tip { margin-top: 28px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #09131b; }
.inspector-tip b { font-size: 11px; }
.inspector-tip p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inspector-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.dirty-badge { padding: 3px 6px; border-radius: 4px; color: #1b1409; background: var(--gold); font-size: 8px; font-weight: 850; text-transform: uppercase; }
#zone-form > label, .field-pair label, .bounds-grid label { display: grid; gap: 5px; margin-bottom: 11px; color: #8396a3; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #071018; }
input, select { height: 35px; padding: 0 9px; }
textarea { padding: 9px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: #5a7485; box-shadow: 0 0 0 2px #72bce313; }
input[type="color"] { padding: 4px; cursor: pointer; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bounds-title { display: flex; justify-content: space-between; margin: 9px 0 8px; color: #c2ccd2; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bounds-title small { color: #657987; font-size: 8px; font-weight: 600; }
.bounds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.resize-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: end; margin: 12px 0; }
.resize-row label { color: #8396a3; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.resize-row input { margin-top: 5px; }
.resize-row button { min-height: 35px; padding: 0 8px; }
.edit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 11px 0 20px; }
.save-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.save-actions button { min-height: 40px; border-radius: 7px; font-weight: 850; cursor: pointer; }
.danger-button { padding: 0 13px; border: 1px solid #6a3a37; color: #ef9a8f; background: #281514; }
.primary-button { border: 0; color: #17130b; background: var(--gold); }
.status-pill { display: inline-block; margin: 4px 0 12px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-pill[data-status="planned_not_built"] { border-color: #8a6527; color: var(--gold); background: #efb34c12; }
.status-pill[data-status="scan_backed"] { border-color: #2d725d; color: var(--mint); background: #63d0aa0d; }
.status-pill[data-status="built_verified"] { border-color: #3d9275; color: var(--mint); background: #63d0aa1c; }
.status-pill[data-status="under_construction"] { border-color: #397594; color: var(--cyan); background: #72bce316; }
#feature-facts { display: grid; grid-template-columns: 85px 1fr; gap: 7px; margin: 20px 0; font-size: 10px; }
#feature-facts dt { color: #718592; }
#feature-facts dd { margin: 0; color: #d2dade; overflow-wrap: anywhere; }
.feature-copy-actions { display: grid; gap: 7px; }

@media (max-width: 1120px) {
  :root { --left: 230px; --right: 285px; }
  .topbar { grid-template-columns: var(--left) auto 1fr; }
  .top-actions { display: none; }
}

@media (max-width: 860px) {
  :root { --left: 0px; --right: 0px; --topbar: 112px; }
  .app-shell { display: block; }
  .topbar { height: var(--topbar); grid-template-columns: 1fr auto; grid-template-rows: 55px 45px; gap: 0 8px; padding: 0 10px; }
  .mode-switch { justify-self: end; }
  .mode-button { padding: 0 9px; }
  .search-shell { grid-column: 1 / -1; grid-row: 2; }
  .left-panel { position: absolute; z-index: 40; left: 8px; top: 122px; width: 210px; max-height: calc(100vh - 140px); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 15px 50px #000b; transform: translateX(calc(-100% - 15px)); transition: transform .2s; }
  .left-panel.open { transform: none; }
  .right-panel { position: absolute; z-index: 41; right: 8px; top: 122px; width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 140px); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 15px 50px #000b; transform: translateX(calc(100% + 15px)); transition: transform .2s; }
  .right-panel.open { transform: none; }
  .map { position: absolute; inset: var(--topbar) 0 0; }
  .mobile-actions { position: absolute; z-index: 42; top: 13px; left: 13px; display: flex; gap: 6px; }
  body.panel-open .mobile-actions { display: none; }
  .mobile-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #ffffff20; border-radius: 7px; color: var(--ink); background: #071018e8; box-shadow: 0 8px 24px #0008; font-size: 9px; font-weight: 800; }
  .zoom-controls { top: 57px; }
  .panel-close { position: sticky; z-index: 3; top: 5px; float: right; display: grid; place-items: center; width: 38px; height: 38px; margin: 5px -5px -43px 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #071018; font-size: 20px; cursor: pointer; }
  .panel-scrim { position: absolute; z-index: 39; inset: var(--topbar) 0 0; background: #020609a8; backdrop-filter: blur(2px); }
  .panel-scrim.open { display: block; }
  .left-panel { width: min(330px, calc(100vw - 16px)); padding-top: 10px; }
  .right-panel { padding-top: 18px; }
  .check-row, .atlas-links a { min-height: 42px; }
  .deck-buttons button, .detail-picker select, .detail-picker button, .draw-grid button, .wide-button, .edit-actions button { min-height: 44px; }
}

@media (max-width: 440px) {
  .brand small { display: none; }
  .brand-mark { width: 31px; height: 31px; }
  .mode-button { padding: 0 7px; font-size: 10px; }
  .mobile-actions button { min-height: 40px; }
  .map-badge { left: 10px; bottom: 10px; }
}

/* Atlas 2: the map is the desk.  Tools and evidence appear only when asked
   for, keeping the spatial record visible while preserving every capability. */
:root { --topbar: 64px; --drawer-gap: 12px; }
.app-shell { grid-template: var(--topbar) minmax(0, 1fr) / minmax(0, 1fr); }
.topbar {
  grid-column: 1; grid-row: 1;
  grid-template-columns: minmax(186px, .7fr) auto minmax(240px, 520px) auto;
  gap: 14px; padding: 0 16px;
}
.topbar::after { content: ""; position: absolute; inset: 100% 0 auto; height: 18px; pointer-events: none; background: linear-gradient(#0008, transparent); }
.left-panel, .right-panel { grid-column: 1; grid-row: 2; border: 1px solid var(--line); }
.map { grid-column: 1; grid-row: 2; }

.atlas-drawer {
  position: fixed; z-index: 41; top: calc(var(--topbar) + var(--drawer-gap)); bottom: var(--drawer-gap);
  width: min(360px, calc(100vw - 24px)); border-radius: 12px; background: rgba(10, 22, 31, .985);
  box-shadow: 0 24px 70px #000b; transition: transform .24s ease, opacity .2s ease;
}
.left-panel.atlas-drawer { left: var(--drawer-gap); padding: 12px 18px 36px; transform: translateX(calc(-100% - 30px)); }
.right-panel.atlas-drawer { right: var(--drawer-gap); padding: 24px 22px 46px; transform: translateX(calc(100% + 30px)); }
.left-panel.atlas-drawer.open, .right-panel.atlas-drawer.open { transform: translateX(0); }
.atlas-drawer .panel-close {
  position: sticky; z-index: 3; top: 0; float: right; display: grid; place-items: center; width: 34px; height: 34px;
  margin: -5px -8px -35px 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #0a151d; font-size: 19px; cursor: pointer;
}
.atlas-drawer .panel-close:hover { border-color: var(--line-bright); background: #162733; }
.panel-scrim { position: fixed; z-index: 39; inset: var(--topbar) 0 0; background: #02070a42; backdrop-filter: blur(1px); }
.panel-scrim.open { display: block; }

.map-actions { position: absolute; z-index: 12; top: 16px; left: 16px; display: flex; gap: 7px; }
.map-actions button {
  min-height: 36px; padding: 0 12px; border: 1px solid #ffffff27; border-radius: 8px; color: var(--ink);
  background: #071018e8; box-shadow: 0 9px 24px #0009; font-size: 10px; font-weight: 850; letter-spacing: .02em; cursor: pointer;
}
.map-actions button:hover { border-color: #a6c3d1; background: #172a36; }
.map-actions button span { margin-right: 5px; color: var(--mint); font-size: 14px; }
.map-actions .landmark-action { border-color: #8c682d; color: #fff0c8; background: #211a0de8; }
.map-actions .landmark-action span { color: var(--gold); }
.map-actions .landmark-action:hover { border-color: var(--gold); background: #332611; }

.atlas-welcome {
  position: absolute; z-index: 11; left: 16px; bottom: 28px; width: min(390px, calc(100% - 32px)); padding: 21px 21px 16px;
  border: 1px solid #4a5f69; border-radius: 13px; background: linear-gradient(145deg, #0e202bfa, #071018f5 76%); box-shadow: 0 20px 60px #000a;
}
.atlas-welcome[hidden] { display: none; }
.atlas-welcome h1 { max-width: 300px; margin: 8px 0 10px; font-size: 28px; line-height: .96; letter-spacing: -.055em; }
.atlas-welcome p { margin: 0; color: #b3c2ca; font-size: 11px; line-height: 1.55; }
.welcome-actions { display: flex; gap: 8px; margin-top: 16px; }
.welcome-actions button { min-height: 35px; padding: 0 10px; border-radius: 7px; font-size: 10px; font-weight: 850; cursor: pointer; }
.welcome-actions .primary-button { border: 0; }
.text-button { border: 1px solid var(--line); color: #b9c6cd; background: transparent; }
.text-button:hover { border-color: var(--line-bright); color: var(--ink); }
.world-key { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 17px; padding-top: 12px; border-top: 1px solid #ffffff14; color: #9aabb5; font-size: 8px; font-weight: 750; letter-spacing: .025em; }
.world-key span { display: inline-flex; align-items: center; gap: 5px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.status-dot.verified { background: var(--mint); box-shadow: 0 0 0 3px #63d0aa1c; }
.status-dot.planned { background: var(--gold); box-shadow: 0 0 0 3px #efb34c1c; }
.status-dot.protected { background: var(--red); box-shadow: 0 0 0 3px #ed7a6a1c; }
.selection-hint { position: absolute; z-index: 10; top: 62px; left: 16px; padding: 7px 10px; border-left: 2px solid var(--gold); color: #d7e0e5; background: #071018dc; box-shadow: 0 6px 18px #0008; font-size: 9px; }
.selection-hint span { margin-right: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.selection-hint b { color: #fff1ce; }

.map-badge { left: auto; right: 64px; bottom: 16px; }
.zoom-controls { top: 16px; right: 16px; }
.feature-preview { position: relative; min-height: 94px; overflow: hidden; margin: 15px 0 16px; padding: 14px; border: 1px solid #3d5663; border-radius: 10px; background: linear-gradient(130deg, #102936, #0c1922); }
.feature-preview::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(#72bce31b 1px, transparent 1px), linear-gradient(90deg, #72bce31b 1px, transparent 1px); background-size: 13px 13px; }
.feature-preview > * { position: relative; z-index: 1; }
.feature-preview span { display: block; color: #8eabb8; font: 750 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.feature-preview b { display: block; margin-top: 6px; color: #fff0c7; font: 800 16px ui-monospace, monospace; letter-spacing: -.05em; }
.feature-preview small { display: block; max-width: 220px; margin-top: 6px; color: #b7c6cd; font-size: 9px; line-height: 1.35; }
.feature-preview i { position: absolute; z-index: 2; right: 31px; top: 27px; width: 11px; height: 11px; border: 2px solid #071018; border-radius: 50% 50% 50% 0; background: var(--gold); box-shadow: 0 0 0 5px #efb34c33; transform: rotate(-45deg); }
#feature-inspector[data-landmark="grand-central"] .feature-preview { border-color: #9c7838; background: linear-gradient(130deg, #382a14, #111c22); }
#feature-inspector[data-landmark="grand-central"] .feature-preview i { width: 14px; height: 14px; background: #f2d078; box-shadow: 0 0 0 7px #efb34c38; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: minmax(175px, .7fr) auto minmax(190px, 1fr); }
}

@media (max-width: 860px) {
  :root { --topbar: 104px; --drawer-gap: 8px; }
  .app-shell { display: grid; }
  .topbar { height: var(--topbar); grid-template-columns: 1fr auto; grid-template-rows: 54px 42px; padding: 0 10px; }
  .atlas-drawer { top: calc(var(--topbar) + var(--drawer-gap)); bottom: var(--drawer-gap); width: min(352px, calc(100vw - 16px)); }
  .left-panel.atlas-drawer { left: var(--drawer-gap); }
  .right-panel.atlas-drawer { right: var(--drawer-gap); }
  .panel-scrim { inset: var(--topbar) 0 0; }
  .map-actions { top: 12px; left: 12px; }
  .map-actions button { min-height: 34px; padding: 0 9px; font-size: 9px; }
  .atlas-welcome { left: 12px; bottom: 54px; width: min(375px, calc(100% - 24px)); }
  .map-badge { right: 57px; bottom: 10px; }
  .zoom-controls { top: 55px; right: 12px; }
  .selection-hint { top: 55px; left: 12px; }
}

@media (max-width: 520px) {
  .brand b { font-size: 12px; }
  .mode-button { padding: 0 7px; font-size: 10px; }
  .atlas-welcome { padding: 17px; }
  .atlas-welcome h1 { font-size: 25px; }
  .world-key { gap: 6px 8px; }
  .map-actions .landmark-action { display: none; }
  .selection-hint { max-width: calc(100% - 74px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-drawer { transition: none; }
}

/* Atlas 3: one spatial workspace with an indexed plans-and-records reader. */
:where(button, a, input, select, textarea, .map):focus-visible {
  outline: 2px solid #f4ca75;
  outline-offset: 2px;
}
.records-button span { margin-right: 6px; color: var(--mint); }
.context-tabs {
  position: sticky; z-index: 2; top: -24px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; margin: 0 38px 22px 0; padding: 3px; border: 1px solid var(--line);
  border-radius: 8px; background: #071018f5; backdrop-filter: blur(10px);
}
.context-tabs button {
  min-height: 34px; border: 0; border-radius: 5px; color: var(--muted); background: transparent;
  font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.context-tabs button.active { color: var(--ink); background: #172733; box-shadow: inset 0 0 0 1px #ffffff0c; }
.right-panel.records-mode { width: min(790px, calc(100vw - 24px)); }
.records-pane[hidden], #place-pane[hidden] { display: none; }
.records-header { padding: 2px 2px 17px; border-bottom: 1px solid var(--line); }
.records-header h2 { margin: 8px 0 7px; font-size: 29px; line-height: 1; letter-spacing: -.045em; }
.records-header p { max-width: 530px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.records-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100% - 98px); }
.records-browser { padding: 18px 16px 30px 2px; border-right: 1px solid var(--line); }
.library-search { display: grid; gap: 6px; color: #8fa2ae; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.library-search input { min-height: 40px; text-transform: none; }
.library-filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.library-filters button {
  min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px;
  color: #93a4af; background: #09131b; font-size: 8px; font-weight: 800; cursor: pointer;
}
.library-filters button.active { border-color: #8e6b30; color: #ffe3a5; background: #2a2010; }
.library-count { margin: 0 0 9px; color: #718692; font: 700 8px ui-monospace, monospace; text-transform: uppercase; }
.library-list { display: grid; gap: 7px; }
.library-card {
  width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  background: #09131b; text-align: left; cursor: pointer;
}
.library-card:hover, .library-card.active { border-color: #627887; background: #12232e; }
.library-card.active { box-shadow: inset 2px 0 var(--gold); }
.library-card span { display: flex; justify-content: space-between; gap: 8px; color: var(--mint); font: 750 8px ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.library-card span i { color: #70848f; font-style: normal; }
.library-card b { display: block; margin-top: 7px; font-size: 11px; line-height: 1.25; }
.library-card small { display: block; margin-top: 5px; color: #899ca8; font-size: 9px; line-height: 1.4; }
.library-card[data-lifecycle="historical"] span { color: #d49d7c; }
.library-empty { padding: 18px 11px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.record-reader { min-width: 0; padding: 19px 2px 50px 24px; }
.record-empty { max-width: 320px; margin: 72px auto 0; text-align: center; }
.record-empty > span { display: block; color: var(--gold); font-size: 34px; }
.record-empty h3 { margin: 13px 0 7px; font-size: 21px; }
.record-empty p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.record-back { display: none; margin-bottom: 14px; border: 0; color: var(--cyan); background: transparent; font-size: 10px; cursor: pointer; }
.record-title-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.record-title-row h2 { margin: 7px 0 0; font-size: clamp(25px, 3vw, 36px); line-height: .98; letter-spacing: -.05em; }
.record-status { flex: 0 0 auto; max-width: 150px; padding: 5px 7px; border: 1px solid #39765f; border-radius: 999px; color: var(--mint); background: #63d0aa0d; font-size: 8px; font-weight: 850; line-height: 1.2; text-align: center; text-transform: uppercase; }
.record-status[data-lifecycle="historical"] { border-color: #815139; color: #eba982; background: #6b351817; }
.record-summary { margin: 13px 0; color: #b1c0c8; font-size: 11px; line-height: 1.6; }
.record-meta { display: grid; grid-template-columns: 86px 1fr; gap: 5px 10px; margin: 15px 0; padding: 12px 0; border-block: 1px solid var(--line); font-size: 9px; }
.record-meta dt { color: #6f838f; }
.record-meta dd { margin: 0; color: #c7d1d6; }
.record-actions { display: flex; gap: 7px; margin: 0 0 20px; }
.record-actions a { width: auto; min-height: 35px; padding: 0 12px; text-decoration: none; }
.record-body { color: #c5d0d6; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.record-body h1, .record-body h2, .record-body h3, .record-body h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.025em; }
.record-body h1 { margin: 28px 0 12px; font-size: 25px; }
.record-body h2 { margin: 27px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 19px; }
.record-body h3 { margin: 22px 0 8px; font-size: 15px; }
.record-body h4 { margin: 18px 0 7px; font-size: 12px; }
.record-body p { margin: 9px 0; }
.record-body ul, .record-body ol { padding-left: 22px; }
.record-body li { margin: 4px 0; }
.record-body a { color: var(--cyan); }
.record-body code { padding: 2px 4px; border-radius: 3px; color: #ffe0a1; background: #050b10; font: 10px ui-monospace, monospace; }
.record-body pre { overflow: auto; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #050b10; }
.record-body pre code { padding: 0; color: #c9d4da; background: transparent; }
.record-body blockquote { margin: 14px 0; padding: 1px 13px; border-left: 2px solid var(--gold); color: #aebec6; background: #09131b; }
.record-body hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.record-body table { width: 100%; border-collapse: collapse; font-size: 10px; }
.record-body th, .record-body td { padding: 7px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.record-body th { color: var(--ink); background: #12212b; }
.record-external { padding: 17px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #09131b; }
.record-external b { display: block; margin-bottom: 7px; color: var(--ink); }
.feature-records { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.feature-record-list { display: grid; gap: 6px; }
.feature-record-list button { padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: #cbd5da; background: #09131b; text-align: left; font-size: 9px; cursor: pointer; }
.feature-record-list button:hover { border-color: var(--line-bright); color: var(--ink); }
.feature-record-list button small { display: block; margin-top: 3px; color: #70848f; }

@media (max-width: 860px) {
  .right-panel.records-mode { width: calc(100vw - 16px); }
  .context-tabs { top: -18px; }
  .records-workspace { grid-template-columns: 1fr; }
  .records-browser { padding-right: 2px; border-right: 0; }
  .record-reader { padding: 10px 2px 40px; }
  .right-panel.document-open .records-browser { display: none; }
  .right-panel.document-open .records-header { display: none; }
  .record-back { display: inline-block; }
  .library-filters button, .library-card, .context-tabs button { min-height: 44px; }
}

@media (max-width: 520px) {
  .map-actions { max-width: calc(100% - 62px); flex-wrap: wrap; }
  .welcome-actions { flex-wrap: wrap; }
  .record-title-row { display: block; }
  .record-status { display: inline-block; margin-top: 10px; }
}

/* Atlas 4: one City Plan shell. View, operator, and lifecycle are independent
   controls; evidence and owner curation remain available without displacing
   the map as the primary workspace. */
:root { --topbar: 118px; }

.topbar {
  position: relative;
  grid-template-columns: minmax(165px, .52fr) minmax(430px, 1.4fr) minmax(235px, .75fr) auto;
  grid-template-rows: 64px 53px;
  gap: 0 14px;
  padding: 0 14px;
}
.brand { min-width: 0; }
.brand > span:last-child { min-width: 0; }
.brand b, .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand b { font-size: 15px; }
.brand small { color: #c39b53; letter-spacing: .16em; }

.primary-navigation {
  display: flex; min-width: 0; align-items: center; gap: 2px; overflow-x: auto;
  scrollbar-width: none;
}
.primary-navigation::-webkit-scrollbar, .atlas-controlbar::-webkit-scrollbar { display: none; }
.primary-navigation button {
  flex: 0 0 auto; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px;
  color: #8fa1ad; background: transparent; font-size: 10px; font-weight: 820;
  letter-spacing: .025em; cursor: pointer;
}
.primary-navigation button:hover { color: var(--ink); background: #14232d; }
.primary-navigation button.active, .primary-navigation button[aria-current="page"] {
  color: #fff0c8; background: #2b2111; box-shadow: inset 0 0 0 1px #8e6b30;
}

.atlas-controlbar {
  grid-column: 1 / -1; grid-row: 2; display: flex; min-width: 0; align-items: center;
  gap: 13px; overflow-x: auto; border-top: 1px solid #1d2d37; white-space: nowrap;
  scrollbar-width: none;
}
.control-cluster { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.control-label {
  color: #687e8b; font: 750 8px ui-monospace, monospace; letter-spacing: .12em;
  text-transform: uppercase;
}
.atlas-controlbar .mode-switch { padding: 2px; border-radius: 7px; }
.atlas-controlbar .mode-button { height: 30px; padding: 0 9px; font-size: 9px; }
.atlas-controlbar .mode-button small {
  margin-left: 3px; color: #677b88; font-size: 7px; font-weight: 750; text-transform: uppercase;
}
.mode-button:disabled, .future-control { opacity: .55; cursor: not-allowed; }

.segmented-control { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #050b10; }
.segmented-control button {
  min-height: 30px; padding: 0 8px; border: 0; border-radius: 5px; color: #8396a2;
  background: transparent; font-size: 8px; font-weight: 800; cursor: pointer;
}
.segmented-control button:hover { color: var(--ink); background: #101e27; }
.segmented-control button.active, .segmented-control button[aria-pressed="true"] {
  color: var(--ink); background: #182935; box-shadow: inset 0 0 0 1px #ffffff0d;
}
#system-passageway[aria-pressed="true"] { color: #f1c5ea; box-shadow: inset 0 0 0 1px #8a527f; }
#system-trainway[aria-pressed="true"] { color: #b7e0f5; box-shadow: inset 0 0 0 1px #477c99; }
#lifecycle-proposed[aria-pressed="true"] { color: #ffe0a0; box-shadow: inset 0 0 0 1px #8e6b30; }
#lifecycle-historical[aria-pressed="true"] { color: #e9ad8a; box-shadow: inset 0 0 0 1px #82533a; }

.editor-access { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; margin-left: auto; }
.editor-status {
  display: inline-flex; align-items: center; gap: 6px; color: #8194a0;
  font: 750 8px ui-monospace, monospace; letter-spacing: .045em; text-transform: uppercase;
}
.editor-status i { width: 7px; height: 7px; border-radius: 50%; background: #687985; box-shadow: 0 0 0 3px #6879851d; }
.editor-access[data-authenticated="true"] .editor-status { color: var(--mint); }
.editor-access[data-authenticated="true"] .editor-status i { background: var(--mint); box-shadow: 0 0 0 3px #63d0aa1d; }
.editor-access-button {
  min-height: 30px; padding: 0 9px; border: 1px solid #6f572a; border-radius: 6px;
  color: #ffe0a0; background: #21190d; font-size: 8px; font-weight: 850; cursor: pointer;
}
.editor-access-button:hover { border-color: var(--gold); background: #30230e; }

.swatch.evidence {
  border: 1px dashed #738895; background: repeating-linear-gradient(135deg,#7388952b 0 3px,transparent 3px 6px);
}
.evidence-layer-row { color: #8799a4; }
.correct-record-button {
  margin: 0 0 14px; border-color: #775d2b; color: #ffe0a2; background: #20190e;
}
.correct-record-button span { margin-right: 5px; color: var(--gold); }
.correct-record-button:hover { border-color: var(--gold); background: #30230f; }

.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
  border: 0 !important;
}

.right-panel.workspace-mode { width: min(620px, calc(100vw - 24px)); }
.context-tabs[hidden] { display: none; }
.city-workspace[hidden], .workspace-pane[hidden] { display: none; }
.workspace-header { padding: 2px 2px 17px; border-bottom: 1px solid var(--line); }
.workspace-header h2 { margin: 8px 0 7px; font-size: 32px; line-height: .95; letter-spacing: -.05em; }
.workspace-header p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.workspace-section-navigation {
  position: sticky; z-index: 2; top: -24px; display: flex; gap: 3px; overflow-x: auto;
  margin: 0 -2px 20px; padding: 8px 2px; background: #0a161feF; backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.workspace-section-navigation button {
  flex: 0 0 auto; min-height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px;
  color: #8396a2; background: #08121a; font-size: 8px; font-weight: 820; cursor: pointer;
}
.workspace-section-navigation button.active, .workspace-section-navigation button[aria-pressed="true"] {
  border-color: #8d6b30; color: #ffe3a6; background: #2a2010;
}
.workspace-section-heading {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 5px 0 11px;
  color: var(--ink); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.workspace-section-heading small { color: #687d89; font-size: 8px; font-weight: 700; }
.workspace-summary-card, .workspace-media-slot, .workspace-filter-slot, .workspace-list {
  margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; background: #09131b;
}
.workspace-summary-card { padding: 14px; border-left: 2px solid var(--mint); }
.workspace-summary-card b { font-size: 13px; }
.workspace-summary-card p, .workspace-guidance { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.workspace-media-slot { min-height: 118px; background-image: linear-gradient(#72bce30c 1px,transparent 1px),linear-gradient(90deg,#72bce30c 1px,transparent 1px); background-size: 18px 18px; }
.workspace-filter-slot:empty, .workspace-list:empty { display: none; }
.operator-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 11px; }
.operator-cards button {
  min-height: 92px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink);
  background: #09131b; text-align: left; cursor: pointer;
}
.operator-cards button:first-child { border-top-color: #9a5e90; }
.operator-cards button:last-child { border-top-color: #4f8aa8; }
.operator-cards span, .operator-cards small { display: block; color: #718692; font-size: 8px; }
.operator-cards b { display: block; margin: 7px 0 5px; font-size: 15px; }
.workspace-list { overflow: hidden; }
.workspace-item {
  display: grid; width: 100%; gap: 4px; padding: 12px; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); background: transparent; text-align: left; font: inherit;
}
.workspace-item:last-child { border-bottom: 0; }
button.workspace-item { cursor: pointer; }
button.workspace-item:hover, button.workspace-item:focus-visible { background: #12212b; outline: none; }
.workspace-item b { font-size: 11px; }
.workspace-item span { color: #9aabb5; font-size: 9px; line-height: 1.45; }
.workspace-item small { color: #657b88; font: 750 8px ui-monospace, monospace; text-transform: uppercase; }
.workspace-media-slot .workspace-item { min-height: 116px; align-content: center; }
.place-command-intro {
  position: relative; overflow: hidden; margin: 0 0 10px; padding: 16px;
  border: 1px solid #3e7280; border-radius: 10px; background: linear-gradient(135deg,#0e2630,#0a171f 72%);
}
.place-command-intro::after { content:"/tp"; position:absolute; right:14px; bottom:-10px; color:#77d5ca18; font:900 58px/1 ui-monospace,monospace; letter-spacing:-.12em; }
.place-command-intro .eyebrow { color:#74d8c8; font-size:8px; letter-spacing:.13em; }
.place-command-intro h3 { position:relative; margin:7px 0 6px; color:#edf9f6; font-size:17px; line-height:1.1; letter-spacing:-.035em; }
.place-command-intro p { position:relative; max-width:450px; margin:0; color:#a9c5c8; font-size:10px; line-height:1.55; }
.place-directory-tools { padding:10px; }
.place-filter-search { display:block; position:relative; }
.place-filter-search::before { content:"⌕"; position:absolute; z-index:1; left:11px; top:8px; color:#72a9b5; font-size:15px; }
.place-filter-search input { width:100%; min-height:34px; padding:0 10px 0 31px; border:1px solid #35505e; border-radius:7px; color:#edf6f4; background:#0b1820; font:11px inherit; }
.place-filter-search input:focus { outline:2px solid #51b6ab66; outline-offset:1px; border-color:#5fc9bd; }
.place-arrival-filters { display:flex; gap:5px; margin-top:8px; overflow-x:auto; }
.place-arrival-filters button { flex:0 0 auto; min-height:28px; padding:0 8px; border:1px solid #354e5a; border-radius:14px; color:#94aab5; background:#0b1720; font-size:8px; font-weight:800; cursor:pointer; }
.place-arrival-filters button:hover,.place-arrival-filters button:focus-visible { color:#dceeea; border-color:#75b6b0; outline:none; }
.place-arrival-filters button.active { color:#07211f; background:#78d1c3; border-color:#78d1c3; }
.place-scope-filters { display:flex; gap:5px; margin-top:6px; }
.place-scope-filters button { flex:1; min-height:29px; padding:0 8px; border:1px solid #354e5a; color:#a9c2ca; background:#10212a; font-size:8px; font-weight:850; cursor:pointer; }
.place-scope-filters button:first-child { border-radius:6px 0 0 6px; }.place-scope-filters button:last-child { border-radius:0 6px 6px 0; }
.place-scope-filters button.active { color:#edfdf9; background:#246d6a; border-color:#40978f; }
.place-command-card { display:grid; grid-template-columns:minmax(0,1fr) 104px; min-height:118px; border-bottom:1px solid var(--line); background:#0b1720; }
.place-command-card:last-child { border-bottom:0; }
.place-command-card[data-arrival="verified"] { box-shadow:inset 3px 0 #57c5a8; }
.place-command-card[data-arrival="reference"] { box-shadow:inset 3px 0 #5399be; }
.place-command-details { display:grid; align-content:center; gap:6px; min-width:0; padding:13px 14px 13px 17px; border:0; color:var(--ink); background:transparent; text-align:left; cursor:pointer; }
.place-command-details:hover,.place-command-details:focus-visible { background:#132632; outline:none; }
.place-command-details>b { overflow:hidden; color:#f0f7f6; font-size:12px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.place-command-details>small { overflow:hidden; color:#87a5af; font:800 8px ui-monospace,monospace; letter-spacing:.03em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.place-coordinate-triplet { display:flex; gap:5px; }
.place-coordinate-triplet i { display:flex; align-items:baseline; gap:3px; min-width:0; padding:3px 5px; border:1px solid #304953; border-radius:4px; color:#d7ece9; background:#0d2028; font-style:normal; }
.place-coordinate-triplet em { color:#62c6bc; font:800 8px ui-monospace,monospace; font-style:normal; }
.place-coordinate-triplet strong { overflow:hidden; font:700 10px ui-monospace,monospace; text-overflow:ellipsis; white-space:nowrap; }
.place-command-details code { overflow:hidden; color:#c2dbe0; font:9px ui-monospace,monospace; text-overflow:ellipsis; white-space:nowrap; }
.copy-place-command { display:grid; align-content:center; justify-items:center; gap:3px; padding:10px 6px; border:0; border-left:1px solid #314b57; color:#d8fbf3; background:#143b40; cursor:pointer; }
.place-command-card[data-arrival="reference"] .copy-place-command { color:#d7effa; background:#173747; }
.copy-place-command:hover,.copy-place-command:focus-visible { color:white; background:#1d565a; outline:2px solid #78d1c3; outline-offset:-3px; }
.place-command-card[data-arrival="reference"] .copy-place-command:hover,.place-command-card[data-arrival="reference"] .copy-place-command:focus-visible { background:#23536b; outline-color:#8acbe9; }
.copy-place-command span { font-size:20px; line-height:1; }.copy-place-command b { font-size:10px; }.copy-place-command small { color:inherit; opacity:.72; font-size:7px; text-transform:uppercase; }
.place-directory-empty { margin:0; padding:22px; color:#94a9b1; font-size:11px; line-height:1.5; }
.place-directory-more { display:block; width:calc(100% - 20px); min-height:38px; margin:10px; border:1px solid #40717a; border-radius:7px; color:#a5e7e0; background:#10272e; font-size:10px; font-weight:800; cursor:pointer; }
.place-directory-more:hover,.place-directory-more:focus-visible { color:white; background:#19434a; outline:2px solid #78d1c3; outline-offset:1px; }
.correction-history li { margin-bottom: 10px; }
.correction-history li > b, .correction-history li > span, .correction-history li > small { display: block; }
.correction-history li > b { color: var(--ink); }
.correction-history li > small { margin-top: 3px; color: #78909d; }
.correction-history li > button { margin-top: 7px; border: 1px solid #6f572a; color: #ffe0a0; background: #21190d; cursor: pointer; }

.atlas-dialog {
  width: min(480px, calc(100vw - 28px)); max-height: min(780px, calc(100vh - 28px)); overflow: auto;
  padding: 0; border: 1px solid #4a606d; border-radius: 14px; color: var(--ink);
  background: #0a161f; box-shadow: 0 28px 90px #000d;
}
.atlas-dialog::backdrop { background: #020609bd; backdrop-filter: blur(4px); }
.atlas-dialog form { padding: 24px; }
.atlas-dialog .dialog-heading { margin-bottom: 19px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.atlas-dialog .dialog-heading h2 { margin: 8px 0; font-size: 28px; line-height: .98; letter-spacing: -.045em; }
.atlas-dialog .dialog-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.atlas-dialog form > label, .atlas-dialog .field-pair label, .atlas-dialog .bounds-grid label {
  display: grid; gap: 5px; margin-bottom: 12px; color: #8da0ac; font-size: 9px;
  font-weight: 780; letter-spacing: .055em; text-transform: uppercase;
}
.dialog-actions { display: grid; grid-template-columns: auto minmax(140px, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.dialog-actions button { min-height: 42px; border-radius: 7px; font-size: 10px; font-weight: 850; cursor: pointer; }
.form-message { margin: 11px 0 0; color: #8094a0; font-size: 9px; line-height: 1.5; }
.correction-dialog { width: min(760px, calc(100vw - 28px)); }
.correction-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 17px; }
.correction-comparison article { min-height: 96px; padding: 12px; border: 1px solid #4a5961; border-radius: 9px; background: #0c151b; }
.correction-comparison article.curated-preview { border-color: #6f572a; background: #19150e; }
.correction-comparison span, .correction-comparison small { display: block; color: #758893; font-size: 8px; line-height: 1.4; }
.correction-comparison span { margin-bottom: 8px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.correction-comparison b { display: block; margin-bottom: 5px; font-size: 12px; }
.correction-history-block { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #08121a; }
.correction-history { margin: 0; padding-left: 20px; color: #8fa1ac; font-size: 9px; line-height: 1.5; }

@media (max-width: 1280px) {
  .topbar { grid-template-columns: minmax(155px, .45fr) minmax(390px, 1.25fr) minmax(210px, .72fr) auto; gap: 0 9px; }
  .primary-navigation button { padding-inline: 8px; }
  #copy-xz { display: none; }
}

@media (max-width: 1120px) {
  :root { --topbar: 118px; }
  .topbar { grid-template-columns: minmax(155px, .45fr) minmax(390px, 1.35fr) minmax(195px, .65fr); }
  .top-actions { display: none; }
}

@media (max-width: 860px) {
  :root { --topbar: 154px; --drawer-gap: 8px; }
  .topbar {
    height: var(--topbar); grid-template-columns: minmax(125px, .42fr) minmax(0, 1fr);
    grid-template-rows: 53px 42px 58px; gap: 0 8px; padding: 0 9px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .search-shell { grid-column: 2; grid-row: 1; min-width: 0; }
  .primary-navigation { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #182934; }
  .atlas-controlbar { grid-column: 1 / -1; grid-row: 3; gap: 12px; }
  .editor-access { order: -1; margin-left: 0; }
  .editor-status { display: none; }
  .atlas-drawer { top: calc(var(--topbar) + var(--drawer-gap)); }
  .panel-scrim { inset: var(--topbar) 0 0; }
  .right-panel.workspace-mode { width: calc(100vw - 16px); }
  .workspace-section-navigation { top: -18px; }
  .atlas-dialog form { padding: 19px; }
}

@media (max-width: 560px) {
  :root { --topbar: 154px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand b { font-size: 12px; }
  .brand small { display: block; font-size: 7px; }
  .search-shell { padding-inline: 8px; }
  .search-shell input { font-size: 10px; }
  .primary-navigation button { min-height: 34px; padding-inline: 8px; font-size: 9px; }
  .control-label { display: none; }
  .atlas-controlbar .mode-button { padding-inline: 7px; }
  .segmented-control button { padding-inline: 7px; }
  .operator-cards, .correction-comparison, .field-pair { grid-template-columns: 1fr; }
  .correction-dialog { width: calc(100vw - 16px); }
  .dialog-actions { grid-template-columns: 1fr 1fr; }
}

/* Map-first explorer: navigation is quiet; discovery, places and evidence are
   readable floating surfaces. The underlying world coordinate canvas is retained. */
:root { --topbar:112px; }
#feature-summary{color:#4c687a;font-size:14px;line-height:1.7}#feature-facts dd{color:#3e5a6e;font-size:12px}#feature-facts dt{color:#718695;font-size:11px}#feature-status{color:#287761;background:#e6f4ee;border-color:#9ccbbb;font-size:10px}#feature-status[data-status="planned_not_built"]{color:#8c601b;background:#fff3df;border-color:#dbbf86}
.topbar { grid-template-columns:180px minmax(300px,1fr) auto;grid-template-rows:60px 52px;background:#f8fafb;color:#193243;border-color:#d4dfe4;box-shadow:0 2px 12px #09232b20; }
.brand { grid-column:1;grid-row:1;color:#18384b; }.brand small{color:#617883;font-size:8px;letter-spacing:.01em;text-transform:none}.brand-mark{background:#1676aa;color:white;border:0;border-radius:10px;font-size:13px}
.search-shell{grid-column:2;grid-row:1;max-width:650px;height:44px;border-radius:24px;background:white;border-color:#c8d8df;box-shadow:0 2px 5px #112e3d0c}.search-shell input{font-size:14px;color:#18384b}.search-shell input::placeholder{color:#65808d}.search-shell>span{color:#197caf}
.search-results{top:49px;border-radius:14px;background:#fff;border-color:#ccdae0;box-shadow:0 12px 35px #16394730}.search-results button{min-height:58px;color:#1b3548;font-size:14px;padding:12px}.search-results small{color:#607886;font-size:11px;line-height:1.5}.search-results button:hover,.search-results button[aria-selected="true"]{background:#eaf3f8}.search-empty{padding:16px;font-size:13px;line-height:1.6;color:#637985}
.primary-navigation{grid-column:3;grid-row:1}.primary-navigation button{font-size:12px;color:#496774;letter-spacing:0;padding:0 11px}.primary-navigation button.active{background:#e5f0f7;color:#086797;border:0}.top-actions{display:none}
.atlas-controlbar{grid-column:1/-1;grid-row:2;border-top:1px solid #dde6ea;gap:24px}.control-label{color:#647b89}.mode-switch{background:#edf2f5;border-color:#d3dee5}.mode-button{color:#4a6270;font-size:12px}.mode-button.active{color:#126c98;background:white}.mode-button span{color:#307f9f}.future-control{display:none}.segmented-control{background:#edf2f5;border-color:#d3dee5}.segmented-control button{font-size:12px;color:#536d7b}.segmented-control button.active{background:#fff;color:#156e99;border-color:#a6c3d3}.editor-status{color:#607582}.editor-access-button{background:white;color:#516b78;border-color:#d5dfe5}.editor-access{margin-left:auto}.control-cluster{flex-shrink:0}
.explore-browser{position:fixed;z-index:20;left:16px;top:calc(var(--topbar) + 64px);bottom:26px;width:345px;background:#fbfcfd;color:#203c4d;border:1px solid #ccdce3;border-radius:16px;box-shadow:0 8px 32px #0a26343b;display:flex;flex-direction:column;overflow:hidden}
.explore-browser[hidden],.restore-explorer[hidden]{display:none}.explore-heading{display:flex;justify-content:space-between;align-items:center;padding:23px 21px 0}.explore-heading .eyebrow{color:#287a9b;font-size:9px;letter-spacing:.12em}.explore-heading h1{font-size:24px;letter-spacing:-.055em;margin:7px 0 0}.explore-heading button{border:0;background:#edf3f6;color:#426371;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer}.explore-intro{font-size:13px;line-height:1.6;color:#607986;margin:10px 21px 17px}.explore-categories{display:flex;gap:6px;padding:0 17px 16px;flex-wrap:wrap}.explore-categories button{border:1px solid #ccdae1;border-radius:18px;background:white;color:#4a687a;min-height:34px;padding:0 11px;font-size:11px;cursor:pointer}.explore-categories button[aria-pressed="true"]{background:#e6f2fa;color:#126b9c;border-color:#8ebad2}.explore-result-heading{display:flex;justify-content:space-between;padding:13px 18px;border-block:1px solid #e3e9ed;font-size:11px;color:#66808d}.explore-result-heading button,.explore-browser footer button{border:0;background:transparent;color:#1376aa;font-size:11px;cursor:pointer}.explore-list{overflow:auto;flex:1;min-height:0}.explore-place{display:grid;grid-template-columns:34px 1fr 12px;gap:10px;width:100%;padding:17px;border:0;border-bottom:1px solid #e1eaef;background:transparent;text-align:left;color:#244456;cursor:pointer}.explore-place:hover{background:#eaf3f8}.explore-place b{display:block;font-size:14px;line-height:1.4;font-weight:650}.explore-place small{display:block;font-size:10px;color:#3e7c95;margin-top:5px}.explore-place em{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.5;color:#6b818d;font-style:normal;margin-top:6px}.place-symbol{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#e4f0f6;color:#167caf;font-size:20px}.explore-place[data-lifecycle="proposed"] .place-symbol{background:#fff2d8;color:#a66c16}.explore-browser footer{padding:13px 16px;border-top:1px solid #dde7ed;display:grid;gap:7px;font-size:9px;color:#708792}.explore-browser footer button{text-align:left;padding:0}.restore-explorer{position:fixed;top:calc(var(--topbar) + 65px);left:16px;z-index:20;background:white;color:#246d92;padding:12px 18px;border:1px solid #bfd3df;border-radius:22px;cursor:pointer}
.map-actions button{background:#fff;color:#385a6c;border-color:#d2e0e6;border-radius:20px;box-shadow:0 2px 8px #112b3830;font-size:12px;min-height:38px}.map-actions button:hover{background:#eaf3f8;color:#246483}.map-actions button span{color:#2885a7}.map-actions .landmark-action{background:#fff;color:#647586;border-color:#d2e0e6}.map-actions .landmark-action span{color:#a97824}.zoom-controls button{background:#fff;color:#23516b}.map-badge{font-size:11px}.crosshair{opacity:.35}
.right-panel.atlas-drawer{width:420px;background:#fbfcfd;color:#244151;border-color:#d2dfe5;box-shadow:0 8px 35px #112b3840}.right-panel.records-mode{width:min(760px,calc(100vw - 24px))}.right-panel .context-tabs{background:#eff4f7;border-color:#d4e1e7}.context-tabs button{font-size:11px;color:#647f8e}.context-tabs button.active{background:white;color:#1476a6}.right-panel h2,.right-panel h3,.right-panel .section-heading{color:#234254}.right-panel .eyebrow{color:#34809f}.right-panel p,.right-panel dd{color:#586f7f;font-size:13px;line-height:1.65}.right-panel dt{color:#78909b;font-size:11px}.right-panel .panel-close{background:white;color:#496b7c;border-color:#d4e0e7}.feature-preview{display:none}.correct-record-button{margin-top:18px;font-size:11px;background:#eff4f6;color:#64808f;border-color:#d4e0e5}.feature-copy-actions .wide-button{font-size:11px;background:#eef4f7;color:#426b81;border-color:#cddde6}.place-primary-actions{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.place-primary-actions button,.place-primary-actions a,.place-connections button{min-height:38px;padding:8px 12px;border:1px solid #bfd6e2;border-radius:8px;background:#edf6fb;color:#1377a6;font-size:12px;text-decoration:none;cursor:pointer}.place-primary-actions a{width:100%;text-align:center;background:#147baa;color:white;border:0}.place-connections{padding:10px 0 20px}.place-connections h3{font-size:15px}.place-connections button{width:100%;margin-bottom:6px;text-align:left}.feature-records{border-color:#d8e4eb}.feature-record-list button{background:white;color:#28546b;border-color:#d3e1e9;font-size:12px;padding:13px}.feature-record-list small{font-size:10px;color:#728a98}
.right-panel.records-mode .record-reader{padding:18px 0}.right-panel.document-open .records-browser,.right-panel.document-open .records-header{display:none}.records-workspace{grid-template-columns:1fr}.record-back{display:block;color:#187ba7;font-size:12px}.record-body{color:#3c5868;font-size:14px}.record-body h1,.record-body h2,.record-body h3{color:#28495c}.record-body a{color:#1177a6}.record-body code{color:#486577;background:#eaf2f6}.record-body pre{background:#edf3f6;border-color:#d3e0e6}.record-body th{background:#e5eef4;color:#355a70}.record-body td,.record-body th{border-color:#cadce7}.record-body blockquote,.record-external{background:#eef5f9;color:#546f7e;border-color:#c5dbe7}.record-external{margin-top:12px}.record-external b{color:#385c71}.record-image{display:block;width:100%;height:auto;border:1px solid #d2dfe6;border-radius:8px}.record-frame{display:block;width:100%;height:65vh;border:1px solid #c6dae5;border-radius:8px;background:white}.record-actions{flex-wrap:wrap}.record-actions .wide-button{background:#ecf4f8;color:#1978a1;border:1px solid #c3dbe8;border-radius:8px;padding:8px 13px;cursor:pointer}.record-summary{font-size:13px}.record-meta{border-color:#d9e4e9}.record-title-row h2{font-size:27px;line-height:1.15}.library-search input{background:white;color:#31556b;border-color:#cedee7}.library-card{background:white;color:#294a5e;border-color:#d7e4eb;padding:16px}.library-card b{font-size:14px}.library-card small{font-size:12px;color:#668090}.library-card:hover,.library-card.active{background:#eaf4fa;border-color:#b7d3e3}.library-card span{color:#3c849f}.library-filters button{background:#eef4f8;color:#58778b;border-color:#cbdde7}.library-filters button.active{background:#dceff9;color:#176c94}.library-empty{border-color:#ccdee7;color:#658093}.record-status[data-lifecycle="proposed"]{background:#fff3dd;color:#95691f;border-color:#dfc38b}
@media(min-width:861px){.atlas-controlbar{overflow:visible}.search-shell{width:100%}.right-panel.workspace-mode{background:#10202b;color:#eff4f5}.right-panel.workspace-mode h2,.right-panel.workspace-mode h3{color:#eef4f6}.right-panel.workspace-mode p{color:#a4b8c4}}
@media(max-width:1180px) and (min-width:861px){.topbar{grid-template-columns:155px minmax(260px,1fr) auto;gap:0 10px}.primary-navigation button{padding:0 7px;font-size:11px}.atlas-controlbar{gap:12px}.editor-status{display:none}}
@media(max-width:860px){:root{--topbar:154px}.topbar{height:154px;grid-template-columns:1fr;grid-template-rows:58px 43px 53px;padding:0 12px}.brand{display:none}.search-shell{grid-column:1;grid-row:1;max-width:none;width:100%;height:44px}.search-shell input{font-size:14px}.primary-navigation{grid-column:1;grid-row:2;justify-content:space-between;border-color:#dce5ea}.primary-navigation button{font-size:12px;padding:0 9px}.atlas-controlbar{grid-column:1;grid-row:3;overflow-x:auto;gap:15px}.editor-access{order:5}.control-label{display:none}.explore-browser{left:8px;right:8px;bottom:8px;top:auto;width:auto;max-height:38vh;border-radius:17px}.explore-heading{padding:14px 16px 0}.explore-heading h1{font-size:20px}.explore-heading .eyebrow,.explore-intro,.explore-browser footer{display:none}.explore-categories{padding:10px 14px;flex-wrap:nowrap}.explore-categories button{min-height:36px}.explore-result-heading{padding:10px 15px}.explore-list{min-height:80px}.explore-place{padding:13px}.map-actions{left:10px;top:12px}.map-actions button{font-size:11px}.right-panel.atlas-drawer{left:8px;right:8px;top:auto;bottom:8px;width:auto;max-height:57vh;padding:18px;transform:translateY(calc(100% + 25px));border-radius:18px}.right-panel.atlas-drawer.open{transform:translateY(0)}.right-panel.records-mode,.right-panel.workspace-mode{width:auto;max-height:72vh}.panel-scrim.open{display:none}.left-panel.atlas-drawer{z-index:45;max-height:calc(100dvh - var(--topbar) - 18px)}.right-panel .context-tabs{top:-18px}.record-frame{height:52vh}.search-results{max-height:55vh}.restore-explorer{top:auto;bottom:20px;left:15px}.feature-record-list button,.place-connections button{min-height:44px}}
@media(max-width:480px){.place-command-card{grid-template-columns:minmax(0,1fr) 88px;min-height:112px}.place-command-details{padding:12px 10px 12px 15px}.place-coordinate-triplet{gap:3px}.place-coordinate-triplet i{padding:3px 4px}.place-coordinate-triplet strong{font-size:9px}.copy-place-command b{font-size:9px}.copy-place-command small{font-size:6px}.place-command-intro{padding:14px}.place-command-intro h3{font-size:16px}}

/* A workspace is part of the bright explorer, not a second dark application.
   The primary navigation remains the one section switcher; this sheet simply
   gives the player a clear way back to the map. */
.workspace-section-navigation { display:none; }
.right-panel.workspace-mode { background:#fbfcfd; color:#244151; }
.right-panel.workspace-mode h2,.right-panel.workspace-mode h3 { color:#234254; }
.right-panel.workspace-mode p { color:#586f7f; }
.workspace-header { display:flex; align-items:start; justify-content:space-between; gap:18px; padding:2px 2px 17px; border-color:#dbe6eb; }
.workspace-header h2 { color:#234254; }.workspace-header .eyebrow { color:#34809f; }
.workspace-back { flex:0 0 auto; min-height:34px; padding:0 10px; border:1px solid #c9dce5; border-radius:7px; color:#26749a; background:white; font-size:10px; font-weight:750; cursor:pointer; }
.workspace-back:hover,.workspace-back:focus-visible { color:#075e87; border-color:#73adc7; background:#eaf5fa; outline:none; }
.workspace-summary-card,.workspace-media-slot,.workspace-filter-slot,.workspace-list { border-color:#d8e4e9; background:white; }
.workspace-summary-card { border-left-color:#3aa58b; }.workspace-summary-card p,.workspace-guidance { color:#607886; }
.workspace-section-heading { color:#345467; }.workspace-section-heading small { color:#718895; }
.workspace-item { color:#294b5e; border-color:#e0e9ed; }.workspace-item span { color:#607988; }.workspace-item small { color:#718994; }.workspace-item:hover,.workspace-item:focus-visible { background:#eaf4f8; }
.place-command-intro { border-color:#b7d9d2; background:linear-gradient(135deg,#effaf7,#f8fcfc 72%); }.place-command-intro::after { color:#2a917b10; }.place-command-intro .eyebrow { color:#1d8672; }.place-command-intro h3 { color:#234d55; }.place-command-intro p { color:#52717a; }
.place-directory-tools { background:#f6fafb; }.place-filter-search input { border-color:#cadce4; color:#294a5b; background:white; }.place-filter-search input::placeholder { color:#78909c; }.place-arrival-filters button { border-color:#cbdde4; color:#547582; background:white; }.place-arrival-filters button.active { color:white; background:#227d77; border-color:#227d77; }.place-scope-filters button { border-color:#cbdde4; color:#547582; background:white; }.place-scope-filters button.active { color:white; background:#287a9b; border-color:#287a9b; }
.place-command-card { background:white; border-color:#e0eaee; }.place-command-card[data-arrival="verified"] { box-shadow:inset 3px 0 #2eaa87; }.place-command-card[data-arrival="reference"] { box-shadow:inset 3px 0 #398ec0; }.place-command-details { color:#244858; }.place-command-details:hover,.place-command-details:focus-visible { background:#edf8f8; }.place-command-details>b { color:#254456; }.place-command-details>small { color:#668391; }.place-coordinate-triplet i { border-color:#cfe0e4; color:#315d6a; background:#f6fafb; }.place-coordinate-triplet em { color:#248b7b; }.place-command-details code { color:#51717e; }.copy-place-command { color:#fff; border-color:#cfe0e4; background:#238874; }.place-command-card[data-arrival="reference"] .copy-place-command { color:#fff; background:#297ba5; }.copy-place-command:hover,.copy-place-command:focus-visible { background:#176b5b; outline-color:#176b5b; }.place-command-card[data-arrival="reference"] .copy-place-command:hover,.place-command-card[data-arrival="reference"] .copy-place-command:focus-visible { background:#1c5d7f; outline-color:#1c5d7f; }.place-directory-empty { color:#657f8c; }.place-directory-more { border-color:#a9cbd7; color:#176e8f; background:#eff8fb; }.place-directory-more:hover,.place-directory-more:focus-visible { color:#075b7b; background:#dff1f7; outline-color:#4d9aba; }
@media(max-width:860px){.right-panel.workspace-mode{max-height:82vh}.workspace-header{position:sticky;z-index:2;top:-18px;margin:-18px -18px 0;padding:18px;background:#fbfcfdf5;backdrop-filter:blur(10px)}.workspace-header h2{font-size:27px}.workspace-back{min-height:32px;font-size:9px}}

/* Explorer release: one visual language for discovery, map controls, and place
   actions. The information hierarchy is deliberately player-facing first. */
:root { --atlas-ink:#173647; --atlas-muted:#617e8d; --atlas-line:#d3e1e7; --atlas-sky:#eaf5f9; --atlas-blue:#1479a8; --atlas-teal:#157d70; --atlas-gold:#b47a20; }
.topbar { grid-template-columns:180px minmax(280px,1fr) minmax(250px,560px); }
.primary-navigation { display:flex; align-items:center; gap:2px; position:relative; }
.primary-navigation button,.nav-more summary { min-height:34px; padding:0 10px; border:0; border-radius:8px; color:#55717f; background:transparent; font-size:11px; font-weight:750; cursor:pointer; list-style:none; }
.nav-more summary::-webkit-details-marker { display:none; }.nav-more summary span { margin-left:3px; color:#8ba1ab; }
.primary-navigation button:hover,.nav-more summary:hover,.nav-more[open] summary { color:var(--atlas-blue); background:#e8f3f8; }
.primary-navigation button.active { color:#0870a1; background:#ddecf5; }
.nav-more-menu { position:absolute; z-index:80; top:40px; right:0; display:grid; min-width:142px; padding:5px; border:1px solid var(--atlas-line); border-radius:10px; background:#fff; box-shadow:0 14px 32px #17364724; }
.nav-more-menu button,.nav-more-menu .nav-master-plan { width:100%; text-align:left; }
.nav-more-menu .nav-master-plan { display:block; min-height:34px; padding:0 10px; border-radius:7px; color:#216e91; font-size:11px; font-weight:800; line-height:34px; text-decoration:none; }
.nav-more-menu .nav-master-plan:hover,.nav-more-menu .nav-master-plan:focus-visible { color:#075b82; background:#e7f4f8; outline:none; }
.nav-master-plan span { float:right; color:#6f9caf; }
.atlas-controlbar { gap:12px; }.map-filter-menu { position:relative; }.map-filter-menu summary { display:flex; align-items:center; gap:6px; min-height:34px; padding:0 10px; border:1px solid #d1e0e6; border-radius:18px; color:#416473; background:#fff; font-size:10px; font-weight:750; cursor:pointer; list-style:none; }.map-filter-menu summary::-webkit-details-marker {display:none}.map-filter-menu summary>span{color:#167aa4}.map-filter-menu summary small{color:#78919d;font-size:9px;font-weight:650}.map-filter-popover{position:absolute;z-index:70;top:41px;right:0;display:grid;gap:12px;width:min(420px,calc(100vw - 28px));padding:13px;border:1px solid var(--atlas-line);border-radius:12px;background:#fff;box-shadow:0 18px 38px #17364724}.map-filter-popover .control-cluster{display:grid;gap:5px}.map-filter-popover .control-label{display:block;font-size:9px}.map-filter-popover .segmented-control{justify-content:flex-start;background:#eff5f7}.map-filter-popover .segmented-control button{font-size:10px}.editor-access{margin-left:0}
.explore-browser { width:365px; border-color:#cbdde5; background:#fff; box-shadow:0 14px 38px #1433462e; }.explore-heading{padding:24px 22px 0}.explore-heading .eyebrow{color:var(--atlas-teal)}.explore-heading h1{color:var(--atlas-ink);font-size:28px}.explore-intro{margin:10px 22px 16px;color:var(--atlas-muted);font-size:13px}.explore-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 18px 17px}.explore-quick-actions button{display:grid;gap:3px;min-height:82px;padding:12px;border:1px solid #cbe0e5;border-radius:11px;color:#285063;background:#f7fbfc;text-align:left;cursor:pointer}.explore-quick-actions button:hover,.explore-quick-actions button:focus-visible{border-color:#74b8c9;background:#eaf6f9;outline:none}.explore-quick-actions span{color:#1b89a4;font-size:18px}.explore-quick-actions b{font-size:11px}.explore-quick-actions small{color:#668490;font-size:9px}.explore-result-heading{background:#f8fbfc}.explore-place{min-height:86px}.explore-place:focus-visible{outline:2px solid #298bb0;outline-offset:-3px}.explore-browser footer{background:#fbfdfe}
.map-key{position:absolute;z-index:12;right:16px;bottom:16px;display:flex;gap:10px;padding:8px 10px;border:1px solid #c8dce4;border-radius:20px;color:#466673;background:#fffffff0;box-shadow:0 3px 12px #1736471c;font-size:9px;font-weight:750}.map-key span{display:flex;align-items:center;gap:5px}.map-key i{width:8px;height:8px;border:1px solid #143242;border-radius:50%;background:#58c79d}.map-key i[data-key="station"]{width:8px;height:8px;border-radius:1px;transform:rotate(45deg);background:#f0b34e}.map-key i[data-key="reference"]{background:#62b7e0}.map-badge{border-color:#cbdde5;background:#fffffff0;color:#51717e;box-shadow:0 3px 12px #1736471c}.map-badge b{color:#1d6f90}.selection-hint{border-color:#2d9a87;background:#fffffff0;color:#41606d;box-shadow:0 3px 12px #1736471c}.selection-hint b{color:#1b607d}
.feature-preview{display:block;margin:12px 0 16px;border-color:#c9dde4;background:linear-gradient(130deg,#edf8fa,#f9fcfd)}.feature-preview span{color:#5f8190}.feature-preview b{color:#24566a}.feature-preview small{color:#597380}.feature-preview i{border-color:#fff;background:#2f9d89;box-shadow:0 0 0 5px #2f9d8926}.right-panel #feature-status[data-status="verified_arrival"]{color:#136f60;background:#e6f6f1;border-color:#a6d8ca}.right-panel #feature-status[data-status="reference_arrival"]{color:#27749a;background:#e7f3fa;border-color:#b1d4e6}.place-primary-actions{margin:12px 0}.place-primary-actions .place-go-action{width:100%;font-weight:800}.place-primary-actions .place-go-action.verified{color:#fff;background:#157d70;border-color:#157d70}.place-primary-actions .place-go-action.reference{color:#fff;background:#287ba5;border-color:#287ba5}.feature-copy-actions{padding-top:12px;border-top:1px solid #dbe6ea}.feature-copy-actions #feature-tp{color:#fff;background:#157d70;border-color:#157d70}
@media(max-width:860px){:root{--topbar:148px}.topbar{grid-template-columns:1fr;grid-template-rows:53px 42px 53px}.brand{display:none}.primary-navigation{grid-column:1;grid-row:1;justify-content:space-between}.primary-navigation button,.nav-more summary{font-size:11px;padding:0 9px}.search-shell{grid-column:1;grid-row:2}.atlas-controlbar{grid-column:1;grid-row:3;justify-content:space-between;overflow:visible}.atlas-controlbar .view-cluster{display:block}.map-filter-menu summary{min-height:32px}.editor-access{display:none}.map-filter-popover{position:fixed;top:calc(var(--topbar) + 8px);right:8px;left:8px;width:auto}.explore-browser{max-height:54vh}.explore-quick-actions{padding-bottom:12px}.map-key{right:12px;bottom:10px;font-size:8px;gap:7px}.map-key span:nth-child(3){display:none}.right-panel.workspace-mode{max-height:88vh}.feature-preview{display:block}}
@media(max-width:430px){.primary-navigation button,.nav-more summary{font-size:10px;padding:0 7px}.explore-quick-actions{grid-template-columns:1fr 1fr}.map-key span:nth-child(2){display:none}}

/* Atlas navigation deck: the map is the product. Panels are instrument glass,
   not separate pages competing for attention. */
:root{--atlas-night:#071314;--atlas-night-2:#0b2021;--atlas-glass:#0c2022e8;--atlas-edge:#31575a;--atlas-text:#e9f4ed;--atlas-dim:#9ab5ad;--atlas-signal:#66d5b1;--atlas-route:#83cbed;}
.app-shell{background:#061112;color:var(--atlas-text)}
.topbar{background:linear-gradient(100deg,#071718f5,#0a2122f2);border-color:#2a5051;box-shadow:0 7px 26px #0008;color:var(--atlas-text)}
.brand{color:#f0faf2}.brand small{color:#9ebbb3}.brand-mark{background:linear-gradient(145deg,#72dbb6,#237d71);box-shadow:0 5px 14px #0005}
.search-shell{background:#10282a;border-color:#3a6264;box-shadow:inset 0 1px #ffffff10}.search-shell input{color:#f0faf2}.search-shell input::placeholder{color:#90aaa6}.search-shell>span{color:#75d8bb}.search-results{background:#102426;border-color:#456b6d;box-shadow:0 20px 48px #0009}.search-results button{color:#eaf5ef}.search-results small,.search-empty{color:#9eb8b0}.search-results button:hover,.search-results button[aria-selected="true"]{background:#19383a}
.primary-navigation{gap:3px}.primary-navigation button,.primary-navigation>.nav-master-plan,.nav-more summary{color:#a9c2ba}.primary-navigation>.nav-master-plan{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:8px;font-size:11px;font-weight:750;text-decoration:none}.primary-navigation button:hover,.primary-navigation>.nav-master-plan:hover,.primary-navigation>.nav-master-plan:focus-visible,.nav-more summary:hover,.nav-more[open] summary{color:#dffcf1;background:#1a3b3b;outline:none}.primary-navigation button.active{color:#061313;background:#71d9b6}.nav-more-menu{background:#102628;border-color:#45686a;box-shadow:0 18px 40px #000a}.nav-more-menu button{color:#b9d0c8}.nav-more-menu button:hover{background:#1c3d3e;color:#effcf5}.atlas-controlbar{background:#091c1e;border-top-color:#28494b}.mode-switch,.segmented-control{background:#10292b;border-color:#395c5e}.mode-button,.segmented-control button{color:#a9c1ba}.mode-button.active,.segmented-control button.active{background:#183c3d;color:#dffcf1;border-color:#5fb99e}.map-filter-menu summary{border-color:#426b6c;color:#cae1d9;background:#102a2c}.map-filter-menu summary small{color:#8db3a8}.map-filter-popover{background:#112a2c;border-color:#496d6f;box-shadow:0 18px 40px #000b}.map-filter-popover .segmented-control{background:#0b1e20}.editor-status{color:#a7c3ba}.editor-access-button{background:#102a2c;color:#c2dad2;border-color:#456c6d}
.map{background:radial-gradient(circle at 65% 28%,#173c3c,#071314 70%)}.map-grid{opacity:.32}.crosshair{opacity:.5}.map-badge{top:14px;right:15px;border-color:#41686a;background:#0c2325e8;color:#a8c2ba;box-shadow:0 8px 22px #0007}.map-badge b{color:#78d9bc}.map-survey-hud{position:absolute;z-index:13;right:16px;bottom:61px;display:grid;gap:2px;min-width:196px;padding:10px 12px;border:1px solid #41686a;border-radius:10px;background:#0b2022e8;box-shadow:0 9px 24px #0008}.map-survey-hud span{color:#9eb8b0;font:800 8px ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}.map-survey-hud b{color:#e7f6ed;font-size:10px}.map-survey-hud code{color:#6ed7b5;font:800 10px ui-monospace,monospace}.map-actions button,.zoom-controls button{border-color:#456c6d;background:#10292b;color:#d8ece4;box-shadow:0 5px 16px #0007}.map-actions button:hover,.zoom-controls button:hover{background:#1b4142;color:#fff}.map-actions .landmark-action{background:#153536;color:#8bdabe}.map-key{border-color:#41686a;background:#0c2325e8;color:#b9d0c8;box-shadow:0 7px 20px #0007}.selection-hint{border-color:#58bd9d;background:#102b2de8;color:#cce0d9}
.explore-browser{top:calc(var(--topbar) + 18px);bottom:18px;width:382px;border-color:#41686a;background:linear-gradient(160deg,#10292bed,#0a1d1ee8);box-shadow:0 22px 54px #000a;color:var(--atlas-text)}.explore-heading{padding:22px 21px 0}.explore-heading .eyebrow{color:#72d8b6}.explore-heading h1{color:#f0faf2;font-size:31px}.explore-heading button{background:#17383a;color:#cae7dc}.explore-intro{color:#a5c0b7;margin:10px 21px 14px}.explore-trust-strip{display:flex;gap:0;margin:0 18px 14px;border:1px solid #365e60;border-radius:9px;overflow:hidden;background:#0a1e20}.explore-trust-strip span{flex:1;padding:8px 7px;border-right:1px solid #365e60;color:#91afa6;font:700 8px/1.35 ui-monospace,monospace;text-align:center}.explore-trust-strip span:last-child{border:0}.explore-trust-strip b{display:block;color:#72d8b6;font-size:12px}.explore-quick-actions{grid-template-columns:repeat(3,1fr);gap:6px;padding:0 18px 14px}.explore-quick-actions button{min-height:86px;padding:10px 8px;border-color:#3d6869;background:#133033;color:#dff2e9}.explore-quick-actions button:hover,.explore-quick-actions button:focus-visible{border-color:#75d9bb;background:#1c4142}.explore-quick-actions span{color:#7bdbbd}.explore-quick-actions b{font-size:10px}.explore-quick-actions small{color:#9bb8af;font-size:8px}.explore-categories{padding:0 17px 13px}.explore-categories button{border-color:#3f686a;background:#10292b;color:#b9d0c8}.explore-categories button[aria-pressed="true"]{border-color:#68c9aa;background:#1a4140;color:#eafff5}.explore-result-heading{border-color:#33585a;background:#0b2022;color:#9ab8ae}.explore-result-heading button,.explore-browser footer button{color:#73d8b7}.explore-place{border-color:#294d4f;color:#e3f2eb}.explore-place:hover{background:#163537}.explore-place b{color:#eefaf3}.explore-place small{color:#77cfb1}.explore-place em{color:#a1bbb2}.place-symbol{background:#183c3e;color:#7cddbf}.explore-browser footer{border-color:#33585a;background:#0a1b1d;color:#8faea4}.restore-explorer{border-color:#4d7d7c;background:#10292b;color:#88dabe}
.right-panel.atlas-drawer,.right-panel.workspace-mode{background:#0d2224;color:#e6f3ec;border-color:#42686a;box-shadow:0 18px 46px #000b}.right-panel.workspace-mode h2,.right-panel.workspace-mode h3,.right-panel h2,.right-panel h3,.right-panel .section-heading{color:#eef9f2}.right-panel.workspace-mode p,.right-panel p,.right-panel dd{color:#a9c1b8}.workspace-header{border-color:#36595b}.workspace-back{border-color:#476f70;background:#153335;color:#92dfc2}.workspace-summary-card,.workspace-media-slot,.workspace-filter-slot,.workspace-list{border-color:#355a5c;background:#102729}.workspace-item{color:#e0f0e8;border-color:#294d4f}.workspace-item span{color:#a3bbb3}.workspace-item small{color:#78a89c}.workspace-item:hover,.workspace-item:focus-visible{background:#19393a}.place-command-intro{border-color:#3e7471;background:linear-gradient(140deg,#123432,#0d2324)}.place-command-intro h3{color:#e9faf2}.place-command-intro p{color:#aac6bc}.place-directory-tools{background:#0b2022}.place-filter-search input,.place-arrival-filters button,.place-scope-filters button{border-color:#3d6769;background:#102a2c;color:#b7d0c7}.place-arrival-filters button.active{background:#287d70;border-color:#4fbc9e}.place-scope-filters button.active{background:#226787;border-color:#5aa4c4}.place-command-card{background:#102729;border-color:#2f5355}.place-command-details{color:#e6f5ed}.place-command-details:hover,.place-command-details:focus-visible{background:#183a3b}.place-command-details>b{color:#f0fbf4}.place-coordinate-triplet i{border-color:#396063;background:#0b2022;color:#c5ddd4}.place-command-details code{color:#9fc5c1}.copy-place-command{background:#21816e}.place-command-card[data-arrival="reference"] .copy-place-command{background:#246d91}
@media(max-width:860px){.primary-navigation>.nav-master-plan{font-size:10px;padding:0 7px}.map-survey-hud{right:11px;bottom:54px;min-width:174px}.explore-browser{top:auto;bottom:8px;max-height:57vh;background:#0b2022f2}.explore-trust-strip{margin-bottom:10px}.explore-quick-actions{padding-bottom:10px}.explore-quick-actions button{min-height:72px}.map-key{bottom:8px;left:10px;right:auto}.map-survey-hud{display:none}.right-panel.workspace-mode{background:#0d2224}}
@media(max-width:430px){.primary-navigation>.nav-master-plan{font-size:9px;padding:0 5px}.explore-quick-actions{grid-template-columns:repeat(3,1fr)}.explore-quick-actions small{display:none}.explore-trust-strip span{font-size:7px;padding:7px 4px}}

/* Spatial detail system: district layers are a first-class part of the map,
   with an explicit drill-down affordance instead of a hidden raster swap. */
.map-detail-card{position:absolute;z-index:14;right:16px;bottom:145px;width:254px;padding:14px;border:1px solid #69c7aa;border-radius:12px;background:linear-gradient(145deg,#103534f2,#0a2021f2);box-shadow:0 14px 36px #000a}.map-detail-card[hidden]{display:none}.map-detail-card span{display:block;color:#76d7b8;font:800 8px ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase}.map-detail-card b{display:block;margin:6px 0;color:#ecfbf3;font-size:12px;line-height:1.25}.map-detail-card p{margin:0;color:#b2cbc1;font-size:10px;line-height:1.45}.map-detail-card div{display:flex;gap:6px;margin-top:11px}.map-detail-card button{min-height:31px;padding:0 8px;border:1px solid #58b99e;border-radius:6px;background:#1d675c;color:#f0fff7;font-size:9px;font-weight:800;cursor:pointer}.map-detail-card button+button{border-color:#537f91;background:#173d4f;color:#d8f1fb}.map-detail-card button:hover,.map-detail-card button:focus-visible{filter:brightness(1.15);outline:2px solid #8ae0c5;outline-offset:1px}
.route-board{position:absolute;z-index:14;top:66px;right:16px;display:grid;gap:5px;width:278px;padding:13px;border:1px solid #e0b659;border-radius:12px;background:linear-gradient(145deg,#132a2aeF,#0a1d1feF);box-shadow:0 14px 36px #000a}.route-board[hidden]{display:none}.route-board>span{color:#e7c36d;font:800 8px ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}.route-board>b{margin:1px 0 5px;color:#f3fbf6;font-size:12px}.route-board button{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:7px;min-height:34px;padding:6px 7px;border:1px solid #3a6565;border-radius:7px;background:#0e292a;color:#e5f3ed;text-align:left;cursor:pointer}.route-board button:hover,.route-board button:focus-visible{border-color:#78d6b8;background:#194042;outline:none}.route-board i{color:#e9c76e;font:800 8px ui-monospace,monospace;font-style:normal;text-transform:uppercase}.route-board strong{font-size:9px;line-height:1.25}.route-board em{padding:3px 5px;border-radius:4px;background:#1c705e;color:#dffff2;font:800 7px ui-monospace,monospace;font-style:normal;text-transform:uppercase}.route-board button[data-route-status="verify"] em{background:#6e4c1a;color:#ffefbd}.route-board small{margin-top:4px;color:#9db7ae;font-size:8px;line-height:1.35}
@media(max-width:860px){.map-detail-card{right:10px;bottom:55px;width:min(254px,calc(100vw - 20px))}}
@media(max-width:860px){.route-board{top:10px;right:10px;width:min(278px,calc(100vw - 20px))}.route-board small{display:none}}
