:root {
  color-scheme: light;
  --paper: #fff;
  --paper-muted: #f5f7fa;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --blue: #0b57d0;
  --blue-accent: #1a73e8;
  --blue-soft: #e8f0fe;
  --blue-line: #c5d9fb;
  --blue-hover: #d7e6fd;
  --teal: #006c5d;
  --violet: #5734a9;
  --shadow: 0 3px 12px #12263738, 0 1px 3px #12263722;
  font: 16px/1.4 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #dce8ee;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, select:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; }
a { color: var(--blue); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atlas, .viewport { height: 100vh; height: 100dvh; }
.viewport { position: relative; overflow: hidden; isolation: isolate; background: #527986; }
#globe, .pin-labels { position: absolute; inset: 0; }
.cesium-widget-credits { display: none !important; }
.float-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.masthead { position: absolute; inset: 16px auto auto 16px; z-index: 3; width: 364px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border-radius: 13px; }
.brand-icon { width: 30px; height: 30px; flex: 0 0 30px; display: flex; gap: 2px; align-items: flex-end; justify-content: center; padding: 6px 0; background: var(--blue-soft); color: var(--blue-accent); border-radius: 9px; }
.brand-icon i { width: 3px; height: 10px; background: currentColor; border-radius: 1px; }
.brand-icon i:nth-child(2) { height: 17px; }
.brand-icon i:nth-child(3) { height: 13px; }
.brand-copy { min-width: 0; }
h1 { font-size: 1.07rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.reference-note { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.15; }
.share { flex: none; margin-left: auto; display: flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 8px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-size: .77rem; font-weight: 650; white-space: nowrap; }
.share span:first-child { font-size: 1rem; line-height: 1; }
.share:hover { background: #0846ad; }
.icon-button:hover { background: var(--blue-soft); }
.map-message { z-index: 2; position: absolute; inset: 16px auto auto 50%; transform: translateX(-50%); max-width: calc(100% - 455px); width: max-content; padding: 7px 10px; background: var(--paper); border-radius: 9px; box-shadow: var(--shadow); font-size: .78rem; text-align: center; pointer-events: none; }
.inspector, .view-panel, .layer-options { position: absolute; z-index: 3; border-radius: 14px; }
.inspector { inset: 86px auto auto 16px; width: 364px; max-height: calc(100% - 172px); display: flex; flex-direction: column; }
.inspector-header, .sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inspector-header { padding: 9px 12px 7px 15px; }
.inspector h2, .sheet-header h2 { font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.icon-button { flex: none; width: 36px; height: 34px; border: 0; border-radius: 8px; background: var(--paper-muted); font-size: 1.2rem; line-height: 1; }
#panel-body, .project-directory { display: flex; flex-direction: column; min-height: 0; }
.project-search { display: flex; gap: 8px; align-items: center; margin: 0 11px 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-muted); }
.project-search:focus-within { border-color: var(--blue-accent); }
.project-search input { flex: 1; min-width: 0; width: 100%; height: 38px; outline: 0; border: 0; background: transparent; font-size: .87rem; }
.project-search input:focus-visible { outline: 0; }
.project-search input::placeholder { color: var(--muted); }
.search-icon { position: relative; display: inline-block; flex: 0 0 13px; width: 13px; height: 13px; border: 1.7px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.7px; right: -4px; bottom: -2px; background: currentColor; transform: rotate(46deg); border-radius: 2px; }
.layers-icon { position: relative; display: inline-block; width: 15px; height: 14px; color: currentColor; flex: 0 0 15px; }
.layers-icon::before, .layers-icon::after { content: ""; position: absolute; top: 0; left: 3px; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 1px; transform: rotate(45deg) skew(-5deg,-5deg); }
.layers-icon::after { top: 4px; border-top: 0; border-left: 0; }
.views-icon { width: 13px; height: 13px; flex: 0 0 13px; display: inline-grid; place-items: center; border: 1.6px solid currentColor; border-radius: 50%; }
.views-icon::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.projects, .details, .layer-options { overflow: auto; overscroll-behavior: contain; scrollbar-color: #a7b9cc transparent; }
.projects { padding: 2px 9px 8px; }
.project-heading { padding: 9px 7px 4px; color: var(--muted); font-size: .74rem; font-weight: 670; }
.project { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; width: 100%; min-height: 47px; padding: 8px 7px; border: 0; border-bottom: 1px solid #edf1f6; background: transparent; text-align: left; border-radius: 5px; }
.project:hover, .tower-list button:hover { background: var(--paper-muted); }
.project.featured { background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 8px; }
.project.featured:hover { background: var(--blue-hover); }
.project .key { margin-top: 6px; }
.project strong { display: block; font-size: .9rem; font-weight: 660; line-height: 1.27; }
.project small { display: block; margin-top: 2px; color: var(--muted); font-size: .755rem; }
.empty { padding: 12px; color: var(--muted); font-size: .88rem; }
.details { padding: 8px 15px 16px; }
.back { padding: 4px 0; border: 0; background: transparent; color: var(--blue); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.details h3 { margin: 6px 0 4px; font-size: 1.17rem; letter-spacing: -.02em; line-height: 1.23; }
.details .status { color: var(--violet); font-size: .81rem; font-weight: 650; }
.details .status.approved { color: var(--teal); }
.details .status.existing { color: var(--muted); }
.details p, .details dt, .details dd { font-size: .875rem; }
.details p { margin-top: 9px; color: var(--muted); }
.details dl { display: grid; grid-template-columns: minmax(78px, 35%) 1fr; margin: 11px 0 0; }
.details dt, .details dd { border-top: 1px solid var(--line); padding: 6px 0; margin: 0; }
.details dt { color: var(--muted); }
.details dd { padding-left: 8px; }
.details .source-links, .details .tower-list { display: grid; gap: 5px; font-size: .84rem; margin-top: 9px; }
.tower-list button { text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; padding: 8px; }
.feature-actions, .visual-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feature-actions button, .visual-actions button, .visual-actions a { padding: 7px 9px; border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--blue); border-radius: 7px; font-size: .8rem; font-weight: 630; text-align: left; }
.feature-actions button:hover, .visual-actions button:hover, .visual-actions a:hover { background: var(--blue-hover); }
.detail-section { padding-top: 3px; font-size: .8rem; color: var(--muted); font-weight: 680; }
.map-controls { z-index: 2; position: absolute; right: 16px; top: 16px; display: grid; gap: 8px; justify-items: end; }
.map-controls button { background: var(--paper); border: 0; display: grid; place-items: center; width: 42px; height: 40px; font-weight: 590; font-size: 1.3rem; }
.map-controls button:hover { background: var(--paper-muted); }
.map-controls .desktop-layers { width: auto; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--blue); border-radius: 10px; }
.desktop-layers[aria-expanded="true"] { background: var(--blue-soft); }
.map-controls .compass, .map-controls .tilt { border-radius: 50%; height: 42px; }
.map-controls .tilt { font-size: .8rem; font-weight: 720; color: var(--blue); }
.compass span { display: inline-flex; flex-direction: column; align-items: center; gap: 0; color: #a04343; font-size: .64rem; line-height: 1.15; font-weight: 760; }
.compass span::before { content: ""; border-bottom: 9px solid #ad4545; border-inline: 5px solid transparent; }
.control-group { border-radius: 10px; overflow: hidden; }
.control-group button + button { border-top: 1px solid var(--line); }
.control-group button:focus-visible { outline-offset: -3px; }
.view-panel { left: 16px; bottom: 34px; padding: 5px; }
.view-panel .sheet-header, .map-dock { display: none; }
.viewpoints { display: flex; gap: 3px; flex-wrap: wrap; }
.viewpoints button, .scenarios button { border: 0; background: transparent; border-radius: 8px; min-height: 35px; padding: 6px 10px; font-size: .84rem; font-weight: 620; white-space: nowrap; }
.viewpoints button:hover, .scenarios button:hover { background: var(--paper-muted); }
.viewpoints button[aria-pressed="true"], .scenarios button[aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); }
.layer-options { right: 110px; top: 16px; width: 312px; max-height: calc(100% - 52px); padding: 12px; }
.layer-options .sheet-header { margin-bottom: 8px; }
.scenarios { display: flex; gap: 2px; background: var(--paper-muted); padding: 3px; border-radius: 9px; }
.scenarios button { flex: 1; min-height: 34px; padding: 5px; font-size: .77rem; }
.layer-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.layer-bar button { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border: 1px solid var(--line); background: var(--paper-muted); border-radius: 6px; font-size: .7rem; }
.layer-bar button[aria-pressed="false"] { background: var(--paper); color: var(--muted); }
.layer-bar button[aria-pressed="false"] .key { opacity: .5; }
.key { flex: none; width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #738398; }
.key.approved { background: #008a78; }
.key.proposed { background: #7951dc; }
.scene-options { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 5px 0; font-size: .78rem; }
.scene-options select { min-width: 0; min-height: 29px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-muted); padding: 2px 4px; color: var(--ink); }
.scheme-picker select, .labels-option { margin-left: auto; }
.labels-option { display: flex; align-items: center; gap: 3px; }
.labels-option input { accent-color: var(--blue); }
.map-key { display: grid; gap: 5px; padding: 8px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.key-line { display: flex; align-items: center; gap: 8px; }
.cap-mark, .height-ramp, .route-mark { width: 27px; height: 6px; flex: none; border-radius: 2px; }
.cap-mark { background: #9d83fa; }
.route-mark { border-block: 1px dashed #06867a; }
.height-ramp { background: linear-gradient(to right, #526e71, #81c4bd, #f0d887); }
.layer-footer { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 8px; }
.layer-footer button { border: 0; padding: 2px 0; color: var(--blue); background: transparent; font-size: .77rem; text-decoration: underline; text-underline-offset: 3px; }
.timeline-note { color: var(--muted); font-size: .73rem; margin-top: 8px; }
.pin-labels { z-index: 1; overflow: hidden; pointer-events: none; }
.pin { position: absolute; pointer-events: auto; left: 0; top: 0; max-width: 192px; border: 1px solid #e4eaf3; background: #fff; box-shadow: 0 1px 3px #10233865; border-radius: 6px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1c2d42; font-size: .78rem; line-height: 1.14; font-weight: 670; }
.pin.proposed { color: var(--violet); }
.pin.approved { color: var(--teal); }
.pin.selected, .pin:hover { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.attribution { position: absolute; z-index: 4; inset: auto 0 0; display: flex; justify-content: space-between; gap: 8px; background: #f6f9fd; padding: 3px 13px calc(3px + env(safe-area-inset-bottom)); color: #35485c; font-size: .67rem; }
.attribution a { display: flex; align-items: center; gap: 4px; color: inherit; }
.attribution img { width: 14px; height: 14px; object-fit: contain; }
.attribution span { font-variant-numeric: tabular-nums; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 19px; max-width: min(610px, calc(100% - 24px)); max-height: min(85dvh, 720px); box-shadow: 0 12px 48px #10233860; }
dialog::backdrop { background: #17253873; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
dialog h2 { font-size: 1.28rem; line-height: 1.18; }
dialog p, dialog li { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-top: 9px; }
dialog ul { padding-left: 22px; }
dialog.visuals { width: min(685px, calc(100% - 24px)); max-width: none; max-height: 91dvh; }
.visual-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.visual-tabs button { padding: 6px 9px; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; font-size: .84rem; }
.visual-tabs button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.visual-preview { display: grid; gap: 7px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-muted); }
.visual-preview h3 { font-size: 1rem; }
.visual-preview p, .visual-actions { margin-top: 0; }
.visual-actions a { text-decoration: none; }
.visual-preview img { width: 100%; max-height: 56dvh; object-fit: contain; border-radius: 7px; }
.toast { position: fixed; z-index: 10; top: 16px; left: 50%; transform: translateX(-50%); padding: 9px 14px; color: var(--blue); background: var(--paper); box-shadow: var(--shadow); border-radius: 9px; }
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .masthead { inset: calc(9px + env(safe-area-inset-top)) auto auto max(9px, env(safe-area-inset-left)); max-width: calc(100% - 62px); width: auto; gap: 7px; padding: 5px 6px; border-radius: 11px; }
  h1 { font-size: clamp(.89rem, 4vw, 1.07rem); }
  .brand-icon { width: 25px; height: 27px; flex-basis: 25px; }
  .share { min-width: 35px; min-height: 36px; padding: 5px 8px; justify-content: center; }
  .share span:last-child { display: none; }
  .map-message { top: calc(76px + env(safe-area-inset-top)); left: 10px; transform: none; max-width: calc(100% - 68px); }
  .map-controls { top: calc(9px + env(safe-area-inset-top)); right: max(9px, env(safe-area-inset-right)); gap: 7px; }
  .map-controls .desktop-layers, .map-controls .control-group { display: none; }
  .pin { max-width: 147px; font-size: .75rem; }
  .map-dock { position: absolute; z-index: 3; bottom: calc(29px + env(safe-area-inset-bottom)); left: max(9px, env(safe-area-inset-left)); display: flex; gap: 3px; border-radius: 11px; padding: 3px; }
  .map-dock button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 0; padding: 0 9px; border-radius: 7px; background: var(--paper); font-size: .78rem; font-weight: 660; }
  .map-dock button[aria-expanded="true"] { color: var(--blue); background: var(--blue-soft); }
  .inspector, .view-panel, .layer-options { display: none; inset: auto max(9px, env(safe-area-inset-right)) calc(82px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); width: auto; max-height: min(47dvh, 430px); }
  [data-drawer="explore"] .inspector { display: flex; }
  [data-drawer="views"] .view-panel, [data-drawer="layers"] .layer-options { display: block; }
  .inspector-header, .sheet-header { min-height: 44px; }
  .icon-button { min-height: 40px; width: 42px; }
  .project-search input { font-size: 1rem; }
  .view-panel { padding: 9px 11px; }
  .view-panel .sheet-header { display: flex; }
  .viewpoints { gap: 5px; }
  .viewpoints button { min-height: 40px; border: 1px solid var(--line); }
  .attribution-extra, #coordinates { display: none; }
}
