:root {
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-display: 'Satoshi', 'Helvetica Neue', sans-serif;
  --text-xs: clamp(.75rem,.74rem + .05vw,.8rem);
  --text-sm: clamp(.875rem,.85rem + .08vw,.9375rem);
  --text-base: clamp(1rem,.98rem + .08vw,1.0625rem);
  --text-lg: clamp(1.125rem,1.05rem + .3vw,1.375rem);
  --text-xl: clamp(1.5rem,1.4rem + .3vw,1.75rem);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;
  --color-bg:#f5f5ee;--color-surface:#fbfbf7;--color-surface-2:#fffefa;--color-surface-offset:#eeeee5;--color-surface-dynamic:#e5e6dc;
  --color-text:#242c28;--color-text-muted:#657069;--color-border:#25372926;--color-divider:#25372917;
  --color-primary:#28604e;--color-primary-hover:#194734;--color-primary-highlight:#e7eee5;--color-text-inverse:#ffffff;
  --color-error:#924b35;--color-park:#c9cfbf;--color-map:#e8edeb;--map-0:#f1efe4;
  --map-1:#eee4c7;--map-2:#dfcda4;--map-3:#c7ab77;--map-4:#a7814f;--map-5:#795335;
  --radius-sm:4px;--radius-md:8px;--radius-lg:12px;
  --shadow-sm:0 2px 6px #28352c08;--shadow-lg:0 8px 32px #25362917;
  --transition-interactive:160ms ease;
}
[data-theme=dark] {
  --color-bg:#18211d;--color-surface:#202a24;--color-surface-2:#253029;--color-surface-offset:#2d382f;--color-surface-dynamic:#39443b;
  --color-text:#eeeae0;--color-text-muted:#b0b9ad;--color-border:#d8e2d42b;--color-divider:#d8e2d41a;
  --color-primary:#98c5aa;--color-primary-hover:#b9dec5;--color-primary-highlight:#344b3d;--color-text-inverse:#172c20;
  --color-error:#e5ab8d;--color-park:#546050;--color-map:#18201e;--map-0:#3b463d;
  --map-1:#70644b;--map-2:#97855a;--map-3:#bba575;--map-4:#d3bc87;--map-5:#ead4a6;
  --shadow-sm:0 2px 8px #0002;--shadow-lg:0 8px 32px #0004;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;text-size-adjust:none}
body{font-family:var(--font-body);font-size:var(--text-sm);line-height:1.45;color:var(--color-text);background:var(--color-bg)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
button:disabled,input:disabled,select:disabled{cursor:default;opacity:.5}
input,button,a,select{transition:color var(--transition-interactive),background var(--transition-interactive),border-color var(--transition-interactive)}
button:hover:not(:disabled){background:var(--color-surface-offset)}
a{color:var(--color-primary);text-underline-offset:3px}
h1,h2,h3{line-height:1.22;text-wrap:balance}
p,li{text-wrap:pretty}
h1{font-size:var(--text-lg);font-weight:700;letter-spacing:-.025em}
h2{font-size:var(--text-lg);font-weight:700;letter-spacing:-.025em}
h3{font-size:var(--text-sm);font-weight:700}
img,svg,canvas{display:block;max-width:100%}
table{border-collapse:collapse;width:100%}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px;border-radius:var(--radius-sm)}
::selection{background:var(--color-primary-highlight)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-100px;left:var(--space-4);z-index:2000;background:var(--color-surface);padding:var(--space-3);border:1px solid var(--color-primary)}
.skip-link:focus{top:var(--space-4)}
.eyebrow{font-size:var(--text-xs);font-weight:700;letter-spacing:.1em;color:var(--color-text-muted)}
.muted{color:var(--color-text-muted)}
.app-shell{display:grid;grid-template-columns:330px minmax(0,1fr);grid-template-rows:80px minmax(0,1fr);height:100dvh}
.app-header{grid-column:1/-1;display:flex;align-items:center;border-bottom:1px solid var(--color-border);background:var(--color-surface);z-index:800}
.brand{display:flex;align-items:center;gap:var(--space-3);width:330px;flex:none;padding:0 var(--space-6);color:var(--color-text);text-decoration:none;font-size:var(--text-lg);font-weight:900;letter-spacing:-.035em;line-height:1.1}
.brand-mark{width:37px;height:40px;flex:none;color:var(--color-primary)}
.brand-sub{display:block;font-size:var(--text-xs);font-weight:500;letter-spacing:.12em;margin-top:var(--space-1)}
.header-context{padding-left:var(--space-6);border-left:1px solid var(--color-divider)}
.header-context .eyebrow{font-size:var(--text-xs);letter-spacing:.09em;display:block;margin-bottom:var(--space-1)}
.header-actions{display:flex;gap:var(--space-4);align-items:center;margin-left:auto;padding:0 var(--space-6)}
.period-badge{border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:var(--space-1) var(--space-2);font-size:var(--text-xs);font-weight:700;white-space:nowrap}
.text-button{display:flex;align-items:center;gap:var(--space-2);min-height:44px;border-radius:var(--radius-sm);padding:0 var(--space-2);font-size:var(--text-sm)}
.info-icon{display:grid;place-items:center;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;font-size:var(--text-xs);font-weight:700}
.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:var(--radius-sm);font-size:var(--text-xl);flex:none}
.sidebar{grid-column:1;grid-row:2;display:flex;flex-direction:column;min-height:0;background:var(--color-surface);border-right:1px solid var(--color-border);z-index:790}
.sidebar-body{min-height:0;display:flex;flex-direction:column;flex:1}
.sidebar-controls{padding:var(--space-6) var(--space-5) var(--space-4);flex:none}
.sidebar-heading h2{font-size:var(--text-base);letter-spacing:-.02em}
.sidebar-heading p{margin-top:var(--space-1);font-size:var(--text-xs);color:var(--color-text-muted)}
.search-field{margin-top:var(--space-5);display:flex;align-items:center;position:relative;background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-md);height:44px}
.search-field:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-highlight)}
.search-icon{width:13px;height:13px;border:1.5px solid var(--color-text-muted);border-radius:50%;margin-left:var(--space-4);margin-right:var(--space-3);position:relative;flex:none}
.search-icon:after{content:"";position:absolute;width:5px;height:1.5px;background:var(--color-text-muted);right:-4px;bottom:-2px;transform:rotate(45deg)}
.search-field input{width:100%;min-width:0;height:100%;border:0;background:none;font-size:var(--text-sm);outline:none;padding-right:var(--space-8)}
.search-field input::-webkit-search-cancel-button{display:none}
.search-field input::placeholder{color:var(--color-text-muted);opacity:1}
.clear-search{position:absolute;right:0;top:0;width:40px;height:42px;font-size:var(--text-lg)}
.layer-fieldset{border:0;margin-top:var(--space-5);min-width:0}
.layer-fieldset legend{margin-bottom:var(--space-2)}
.layer-group{display:grid;gap:var(--space-1)}
.layer-option{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);min-height:41px;position:relative;cursor:pointer;border-radius:var(--radius-sm);border:1px solid transparent}
.layer-option input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;z-index:1}
.layer-option:has(input:focus-visible){outline:2px solid var(--color-primary);outline-offset:2px}
.layer-option:hover{background:var(--color-surface-offset)}
.layer-option.active{background:var(--color-primary-highlight);color:var(--color-primary);border-color:color-mix(in srgb,var(--color-primary) 18%,transparent);font-weight:700}
.layer-number{font-size:var(--text-xs);font-variant-numeric:tabular-nums;color:var(--color-text-muted)}
.layer-name{font-size:var(--text-sm);line-height:1.25}
.radio-mark{width:13px;height:13px;border:1px solid var(--color-border);border-radius:50%;margin-left:auto;flex:none}
.active .radio-mark{border:4px solid var(--color-primary);background:var(--color-surface)}
.street-layers{margin-top:var(--space-2);padding-top:var(--space-2);border-top:1px solid var(--color-divider)}
.normalization-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-top:var(--space-5)}
.segmented{display:flex;background:var(--color-surface-offset);padding:3px;border-radius:var(--radius-sm)}
.segmented button{min-height:34px;min-width:82px;font-size:var(--text-xs);font-weight:500;padding:var(--space-1) var(--space-2);border-radius:3px}
.segmented button[aria-pressed=true]{background:var(--color-surface-2);color:var(--color-primary);box-shadow:var(--shadow-sm);font-weight:700}
.layer-note{font-size:var(--text-xs);line-height:1.45;color:var(--color-text-muted);margin-top:var(--space-2)}
.explorer{min-height:0;display:flex;flex-direction:column;flex:1;border-top:1px solid var(--color-border)}
.explorer-heading{padding:var(--space-4) var(--space-5) var(--space-2);display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
.explorer-heading h2{font-size:var(--text-sm);display:flex;align-items:center;gap:var(--space-2);letter-spacing:0}
.count-chip{font-size:var(--text-xs);color:var(--color-text-muted);font-weight:500}
.explorer-heading select{font-size:var(--text-xs);background:transparent;border:0;color:var(--color-text-muted);max-width:106px;min-height:32px;cursor:pointer}
select option{background:var(--color-surface);color:var(--color-text)}
.list-caption{display:flex;justify-content:space-between;font-size:var(--text-xs);font-weight:500;letter-spacing:.04em;color:var(--color-text-muted);padding:var(--space-1) var(--space-5) var(--space-2) var(--space-12)}
.neighborhood-list{min-height:90px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}
.other-areas-heading{padding:var(--space-3) var(--space-5);background:var(--color-surface-offset);font-size:var(--text-xs);color:var(--color-text-muted);display:flex;justify-content:space-between;border-top:1px solid var(--color-divider)}
.neighborhood-row{display:flex;align-items:center;min-height:62px;border-top:1px solid var(--color-divider);padding-left:var(--space-3);padding-right:var(--space-4)}
.neighborhood-row.selected{background:var(--color-primary-highlight)}
.compare-check-label{display:grid;place-items:center;width:32px;align-self:stretch;flex:none;cursor:pointer}
.compare-check-label input{width:14px;height:14px;accent-color:var(--color-primary);cursor:pointer}
.neighborhood-button{flex:1;display:flex;align-items:center;gap:var(--space-2);text-align:left;align-self:stretch;min-width:0;padding:var(--space-2) 0}
.neighborhood-button:hover{background:none!important;color:var(--color-primary)}
.neighborhood-name{font-size:var(--text-sm);font-weight:500;line-height:1.3;flex:1}
.neighborhood-meta{display:block;font-size:var(--text-xs);color:var(--color-text-muted);font-weight:400;margin-top:2px}
.list-value{font-size:var(--text-sm);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;font-weight:700}
.value-dot{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:6px;vertical-align:middle}
.empty-state{padding:var(--space-6) var(--space-5);text-align:center;color:var(--color-text-muted)}
.empty-state h3{color:var(--color-text);margin-bottom:var(--space-2)}
.empty-state p{font-size:var(--text-xs)}
.empty-state button{margin-top:var(--space-3);padding:var(--space-2) var(--space-4);min-height:40px;color:var(--color-primary);border:1px solid var(--color-border);border-radius:var(--radius-sm)}
.sidebar-footer{border-top:1px solid var(--color-border);padding:var(--space-3) var(--space-5) var(--space-4);background:var(--color-surface);flex:none}
.compare-status{font-size:var(--text-xs);color:var(--color-text-muted);margin-bottom:var(--space-2)}
.footer-actions{display:flex;gap:var(--space-3)}
.primary-button{background:var(--color-primary);color:var(--color-text-inverse);border-radius:var(--radius-sm);padding:var(--space-3) var(--space-4);min-height:44px;display:flex;align-items:center;justify-content:center;gap:var(--space-2);font-size:var(--text-sm);font-weight:700}
.primary-button:hover:not(:disabled){background:var(--color-primary-hover)}
.primary-button:disabled{opacity:1;background:var(--color-surface-offset);color:var(--color-text-muted)}
.footer-actions .primary-button{flex:1}
#compare-count{display:inline-grid;place-items:center;min-width:18px;min-height:18px;background:#ffffff1a;border-radius:3px;font-size:var(--text-xs)}
.export-button{font-size:var(--text-xs);white-space:nowrap;padding:var(--space-2);border-radius:var(--radius-sm)}
.export-button span{font-size:var(--text-base);margin-right:var(--space-1)}
.map-region{grid-column:2;grid-row:2;position:relative;overflow:hidden;min-width:0;min-height:0;background:var(--color-map)}
#map{height:100%;width:100%;background:var(--color-map);z-index:0}
.map-heading{position:absolute;left:var(--space-6);top:var(--space-6);z-index:500;background:color-mix(in srgb,var(--color-surface) 95%,transparent);border:1px solid var(--color-border);padding:var(--space-4) var(--space-5);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);max-width:390px;pointer-events:none}
.map-heading .eyebrow{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-xs)}
.live-dot{width:6px;height:6px;border-radius:50%;background:var(--color-primary)}
.map-heading h2{font-size:var(--text-lg);margin-top:var(--space-2);margin-bottom:var(--space-1)}
.map-heading p{font-size:var(--text-xs);color:var(--color-text-muted)}
.map-tools{position:absolute;right:var(--space-6);top:var(--space-6);display:flex;flex-direction:column;gap:1px;z-index:500;border-radius:var(--radius-sm);filter:drop-shadow(0 2px 6px #293e2910)}
.map-tool{display:grid;place-items:center;width:44px;height:44px;background:var(--color-surface);border:1px solid var(--color-border);font-size:var(--text-xl)}
.map-tool:first-child{border-radius:var(--radius-sm) var(--radius-sm) 0 0}
.map-tool:nth-child(2){border-radius:0 0 var(--radius-sm) var(--radius-sm);border-top:0}
.reset-tool{margin-top:var(--space-2);border-radius:var(--radius-sm);font-size:var(--text-xl)}
.north-arrow{position:absolute;right:34px;top:199px;z-index:490;color:var(--color-text-muted);text-align:center;font-size:var(--text-xs);font-weight:700;display:flex;flex-direction:column;align-items:center;gap:var(--space-1);pointer-events:none}
.north-shape{display:block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:20px solid var(--color-text-muted)}
.map-bottom{position:absolute;left:var(--space-6);right:var(--space-6);bottom:var(--space-8);z-index:490;display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-6);pointer-events:none}
.map-legend{background:var(--color-surface);padding:var(--space-3) var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-md);width:348px;max-width:100%;box-shadow:var(--shadow-sm);pointer-events:auto}
.legend-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-2)}
.legend-title-row h3{font-size:var(--text-xs)}
.legend-info{border:1px solid var(--color-border);border-radius:50%;width:22px;height:22px;font-size:var(--text-xs);font-weight:700}
.legend-spectrum{display:flex;gap:3px;height:10px}
.legend-spectrum span{flex:1;background:var(--map-1)}
.legend-spectrum span:nth-child(2){background:var(--map-2)}.legend-spectrum span:nth-child(3){background:var(--map-3)}.legend-spectrum span:nth-child(4){background:var(--map-4)}.legend-spectrum span:nth-child(5){background:var(--map-5)}
.legend-endpoints{display:flex;justify-content:space-between;font-size:var(--text-xs);gap:var(--space-2);margin-top:var(--space-2)}
.legend-endpoints span:last-child{text-align:right}
.legend-footnote{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-2)}
.legend-unranked{font-size:var(--text-xs);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2)}
.legend-unranked span{display:inline-block;width:10px;height:10px;background:var(--color-park)}
.map-instruction{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:color-mix(in srgb,var(--color-surface) 94%,transparent);border-radius:var(--radius-sm);font-size:var(--text-xs);color:var(--color-text-muted);border:1px solid var(--color-border)}
.map-instruction strong{font-weight:500;color:var(--color-text)}
.selection-mark{width:15px;height:19px;border:1.5px solid var(--color-text-muted);transform:rotate(-20deg);clip-path:polygon(0 0,100% 62%,62% 66%,72% 100%,51% 100%,37% 73%,0 85%);background:var(--color-text-muted)}
.map-filter-indicator{position:absolute;top:calc(var(--space-6) + 108px);left:var(--space-6);bottom:auto;z-index:500;background:var(--color-surface);color:var(--color-primary);border:1px solid var(--color-border);padding:var(--space-2) var(--space-3);font-size:var(--text-xs);border-radius:var(--radius-sm)}
.map-loading{position:absolute;inset:0;z-index:600;background:color-mix(in srgb,var(--color-map) 86%,transparent);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--space-8)}
.map-loading h2{font-size:var(--text-lg);margin:var(--space-4) 0 var(--space-2)}
.map-loading p{color:var(--color-text-muted);font-size:var(--text-sm);max-width:36ch}
.map-loading .primary-button{margin-top:var(--space-5)}
.loading-spinner{width:28px;height:28px;border:2px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton-row{height:48px;margin:var(--space-3) var(--space-5);border-radius:var(--radius-sm);background:var(--color-surface-offset);animation:pulse 1.5s infinite alternate}
@keyframes pulse{to{opacity:.45}}
.detail-panel{position:absolute;top:var(--space-6);bottom:var(--space-6);right:var(--space-6);width:344px;z-index:700;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.map-region:has(.detail-panel:not([hidden])) .map-tools,.map-region:has(.detail-panel:not([hidden])) .north-arrow{right:392px}
.map-region:has(.detail-panel:not([hidden])) .map-instruction{display:none}
.detail-top{padding:var(--space-5);border-bottom:1px solid var(--color-divider)}
.detail-title-row{display:flex;justify-content:space-between;align-items:center}
.detail-title-row .icon-button{margin-right:calc(-1 * var(--space-2));margin-top:calc(-1 * var(--space-2))}
.detail-top h2{font-size:var(--text-lg);margin-bottom:var(--space-2);text-wrap:pretty}
.detail-meta{font-size:var(--text-xs);color:var(--color-text-muted)}
.detail-focus{padding:var(--space-5);background:var(--color-surface-offset)}
.detail-focus h3{font-size:var(--text-sm);font-weight:500}
.detail-value{font-size:var(--text-xl);font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:var(--space-2);line-height:1.2}
.detail-value small{font-size:var(--text-xs);font-weight:500;letter-spacing:0;color:var(--color-text-muted);margin-left:var(--space-2)}
.detail-median{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-2)}
.detail-section{padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--color-divider)}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
.section-title-row span{font-size:var(--text-xs);color:var(--color-text-muted)}
.indicators{margin-top:var(--space-2)}
.indicator-button{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;padding:var(--space-2) 0;gap:var(--space-4);border-bottom:1px solid var(--color-divider);min-height:42px}
.indicator-button:last-child{border-bottom:0}
.indicator-button.active{color:var(--color-primary);font-weight:700}
.indicator-button .indicator-label{font-size:var(--text-xs);max-width:185px;line-height:1.3}
.indicator-value{font-size:var(--text-sm);font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.monthly-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--space-1);height:110px;margin-top:var(--space-4);align-items:end;border-bottom:1px solid var(--color-border)}
.month-column{height:100%;position:relative;display:flex;align-items:flex-end;min-width:0}
.month-bar{display:block;width:100%;height:var(--bar-height);min-height:1px;background:var(--map-4);border-radius:2px 2px 0 0}
.month-column:hover .month-bar{background:var(--color-primary)}
.month-column:focus-visible .month-bar{background:var(--color-primary)}
.chart-months{display:flex;justify-content:space-between;color:var(--color-text-muted);font-size:var(--text-xs);margin-top:var(--space-1)}
.chart-caption{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-2)}
.detail-caveat{font-size:var(--text-xs);color:var(--color-text-muted);line-height:1.5;margin-top:var(--space-3)}
.detail-actions{padding:var(--space-4) var(--space-5);display:flex;gap:var(--space-2);align-items:center;flex-wrap:wrap}
.detail-actions .primary-button{flex:1;font-size:var(--text-xs)}
.detail-source{font-size:var(--text-xs);min-height:32px;display:inline-flex;align-items:center}
dialog{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:min(760px,calc(100vw - 32px));max-height:min(86dvh,900px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain}
dialog::backdrop{background:#17271ec4;backdrop-filter:blur(3px)}
dialog.comparison-dialog{width:min(1020px,calc(100vw - 32px))}
.dialog-top{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-5) var(--space-6);background:var(--color-surface);border-bottom:1px solid var(--color-border);z-index:2}
.dialog-top h2{margin-top:var(--space-1)}
.dialog-content{padding:var(--space-6)}
.dialog-intro{font-size:var(--text-base);color:var(--color-text-muted);line-height:1.6;margin-bottom:var(--space-6)}
.method-section{margin-bottom:var(--space-6)}
.method-section h3{font-size:var(--text-base);margin-bottom:var(--space-3)}
.method-section p,.method-section li{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.65}
.method-section ul,.method-section ol{padding-left:var(--space-5)}
.method-section li+li{margin-top:var(--space-2)}
.metric-definition{padding:var(--space-4) 0;border-bottom:1px solid var(--color-divider)}
.metric-definition:first-of-type{padding-top:0}
.metric-definition h4{font-size:var(--text-sm);margin-bottom:var(--space-1)}
.metric-definition p{font-size:var(--text-sm)}
.metric-definition a,.source-card a{display:inline-block;margin-top:var(--space-2);font-size:var(--text-xs);font-weight:700}
.source-card{padding:var(--space-3) 0;border-bottom:1px solid var(--color-divider)}
.source-card h4{font-size:var(--text-sm)}
.source-card p{font-size:var(--text-xs);margin-top:var(--space-1)}
.method-meta{padding-top:var(--space-4);border-top:1px solid var(--color-border);color:var(--color-text-muted);font-size:var(--text-xs)}
.coverage-table-wrap{overflow:auto;overscroll-behavior:contain;margin-top:var(--space-3)}
.coverage-table{font-size:var(--text-xs);min-width:460px}
.coverage-table th,.coverage-table td{padding:var(--space-3) var(--space-2);border-bottom:1px solid var(--color-border);text-align:right;font-variant-numeric:tabular-nums}
.coverage-table th:first-child{text-align:left}
.coverage-table thead{background:var(--color-surface-offset)}
.coverage-table tbody th{font-weight:500}
.coverage-table small{display:block;font-size:var(--text-xs);color:var(--color-text-muted);font-weight:400}
.coverage-note{margin-top:var(--space-3)}
.comparison-tools{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-4)}
.comparison-tools p{font-size:var(--text-sm);color:var(--color-text-muted)}
.comparison-table-wrap{overflow:auto;overscroll-behavior:contain}
.comparison-table{min-width:570px;font-size:var(--text-sm);table-layout:fixed}
.comparison-table th,.comparison-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--color-border);padding:var(--space-4);font-variant-numeric:tabular-nums}
.comparison-table th:first-child{width:25%}
.comparison-table th{font-weight:500;font-size:var(--text-xs);color:var(--color-text-muted)}
.comparison-table thead th{font-size:var(--text-sm);color:var(--color-text);font-weight:700;background:var(--color-surface-offset)}
.comparison-table td{font-size:var(--text-base);font-weight:700}
.comparison-table small{font-size:var(--text-xs);font-weight:400;color:var(--color-text-muted);display:block;margin-top:var(--space-1)}
.comparison-table button{font-size:var(--text-xs);color:var(--color-primary);font-weight:500;min-height:32px;text-decoration:underline;text-underline-offset:3px;margin-top:var(--space-2)}
.comparison-note{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-4);line-height:1.6}
.mobile-sheet-toggle{display:none}
@media(min-width:1600px){.map-heading{left:var(--space-8);top:var(--space-8)}.sidebar-controls{padding-top:var(--space-8)}.layer-option{min-height:46px}.sidebar-heading p{font-size:var(--text-sm)}}
@media(max-height:850px) and (min-width:761px){.sidebar-controls{padding-top:var(--space-4);padding-bottom:var(--space-3)}.sidebar-heading{display:none}.search-field{margin-top:0}.layer-fieldset{margin-top:var(--space-4)}.layer-option{min-height:36px}.normalization-row{margin-top:var(--space-3)}.neighborhood-row{min-height:54px}.sidebar-footer{padding-top:var(--space-2)}}
@media(max-width:1150px){.header-context .eyebrow{display:none}.header-context h1{font-size:var(--text-base)}.header-actions{gap:var(--space-2);padding-right:var(--space-4)}.sources-button span:last-child{display:none}.sources-button{width:44px;justify-content:center}.map-instruction{display:none}.map-heading{max-width:300px}.detail-panel{width:310px;right:var(--space-4)}.map-region:has(.detail-panel:not([hidden])) .map-tools,.map-region:has(.detail-panel:not([hidden])) .north-arrow{right:346px}.map-region:has(.detail-panel:not([hidden])) .map-heading{display:none}.map-region:has(.detail-panel:not([hidden])) .map-legend{max-width:240px}.map-region:has(.detail-panel:not([hidden])) .legend-endpoints{display:block}.map-region:has(.detail-panel:not([hidden])) .legend-endpoints span:last-child{float:right}}
@media(max-width:760px){
  .app-shell{grid-template-columns:1fr;grid-template-rows:68px minmax(0,1fr)}
  .app-header{grid-column:1;gap:var(--space-2)}.brand{width:auto;padding-left:var(--space-4);padding-right:0;font-size:var(--text-base);gap:var(--space-2)}.brand-mark{width:29px;height:34px}.brand-sub{font-size:var(--text-xs);letter-spacing:.07em}.header-context{display:none}.header-actions{padding-right:var(--space-2);gap:0}.period-badge{font-size:var(--text-xs);padding:var(--space-1)}.sources-button{width:40px}.header-actions .icon-button{width:36px}
  .map-region{grid-column:1;grid-row:2}.map-heading{left:var(--space-3);top:var(--space-3);max-width:calc(100% - 80px);padding:var(--space-3);border-radius:var(--radius-sm)}.map-heading .eyebrow{font-size:var(--text-xs);letter-spacing:.04em}.map-heading h2{font-size:var(--text-base);margin-top:var(--space-1)}.map-heading p{font-size:var(--text-xs)}.map-tools{right:var(--space-3);top:var(--space-3)}.map-tool{width:40px;height:40px}.north-arrow{display:none}.map-bottom{left:var(--space-3);right:var(--space-3);bottom:110px}.map-legend{width:100%;max-width:350px;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm)}.legend-title-row{margin-bottom:var(--space-1)}.legend-footnote{font-size:var(--text-xs);margin-top:var(--space-1)}.legend-unranked{display:none}.legend-spectrum{height:8px}.map-filter-indicator{top:calc(var(--space-3) + 84px);left:var(--space-3)}.maplibregl-ctrl-bottom-right{bottom:82px}.maplibregl-ctrl-bottom-left{display:none}.legend-points{display:none}
  .sidebar{position:fixed;left:0;right:0;bottom:0;height:80px;max-height:calc(100dvh - 128px);z-index:790;border:1px solid var(--color-border);border-bottom:0;border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 -6px 30px #17291a12;transition:height 230ms ease}
  .sidebar.expanded{height:73dvh}.sidebar-body{display:none}.sidebar.expanded .sidebar-body{display:flex;overflow:auto;overscroll-behavior:contain}.sidebar-footer{display:none}.sidebar.expanded .sidebar-footer{display:block}.mobile-sheet-toggle{display:flex;position:relative;align-items:center;text-align:left;gap:var(--space-2);padding:var(--space-5) var(--space-5) var(--space-3);min-height:78px;width:100%;flex:none;font-weight:700;font-size:var(--text-sm)}.mobile-sheet-toggle .muted{display:block;font-size:var(--text-xs);font-weight:400;margin-left:auto;margin-right:var(--space-3)}.sheet-handle{position:absolute;top:var(--space-2);left:calc(50% - 18px);width:36px;height:3px;border-radius:3px;background:var(--color-border)}.sheet-chevron{font-size:var(--text-lg)}.expanded .sheet-chevron{transform:rotate(180deg)}
  .sidebar-heading{display:none}.sidebar-controls{padding:0 var(--space-5) var(--space-4)}.search-field{margin-top:0}.layer-fieldset{margin-top:var(--space-4)}.layer-option{min-height:44px}.normalization-row{margin-top:var(--space-3)}.sidebar.expanded .explorer{flex:none;min-height:220px}.neighborhood-list{overflow:visible}.sidebar.expanded .sidebar-body{display:block}.explorer-heading{padding-top:var(--space-3)}.neighborhood-row{min-height:58px}.sidebar-footer{padding:var(--space-2) var(--space-5) max(var(--space-3),env(safe-area-inset-bottom))}.compare-check-label{width:40px}.compare-check-label input{width:17px;height:17px}
  .detail-panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:65dvh;max-height:calc(100dvh - 140px);z-index:810;border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 -6px 40px #17291a30}.detail-top{padding:var(--space-4) var(--space-5)}.detail-top h2{font-size:var(--text-lg)}.detail-focus{padding:var(--space-4) var(--space-5)}.detail-value{font-size:var(--text-xl)}.detail-panel .detail-section{padding-top:var(--space-4)}.map-region:has(.detail-panel:not([hidden])) .map-tools{right:var(--space-3)}.map-region:has(.detail-panel:not([hidden])) .map-legend{display:none}.map-region:has(.detail-panel:not([hidden])) .map-heading{display:block}.map-region:has(.detail-panel:not([hidden])) .map-filter-indicator{display:none}
  dialog{width:calc(100vw - 20px);max-height:90dvh;border-radius:var(--radius-md)}.dialog-top{padding:var(--space-4)}.dialog-content{padding:var(--space-4)}.dialog-intro{font-size:var(--text-sm)}.dialog-top h2{font-size:var(--text-lg)}.comparison-tools{align-items:flex-start}.comparison-tools p{font-size:var(--text-xs)}.comparison-table{min-width:540px}.comparison-table th,.comparison-table td{padding:var(--space-3)}.map-loading{padding-bottom:220px}
}

/* ---- v2: map engine, scale switcher, points, tooltip, popup ---- */
.maplibregl-map{font:inherit}
.maplibregl-canvas:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}
#map.picking .maplibregl-canvas{cursor:crosshair!important}
.maplibregl-ctrl-bottom-left{left:var(--space-6);bottom:var(--space-1)}
.maplibregl-ctrl-bottom-right{right:var(--space-6);bottom:var(--space-1)}
.maplibregl-ctrl-attrib{font-family:var(--font-body);font-size:var(--text-xs);background:color-mix(in srgb,var(--color-surface) 92%,transparent)!important;color:var(--color-text-muted);padding:2px 6px;border-radius:var(--radius-sm)}
.maplibregl-ctrl-attrib a{color:var(--color-primary)}
.maplibregl-ctrl-scale{background:color-mix(in srgb,var(--color-surface) 85%,transparent);border-color:var(--color-text-muted);color:var(--color-text);font-size:var(--text-xs);font-family:var(--font-body)}
.scale-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-top:var(--space-3)}
.scale-segmented button{min-width:0;flex:1;padding:var(--space-1) var(--space-2)}
.scale-segmented{flex:1;max-width:230px}
.points-toggle{display:flex;align-items:flex-start;gap:var(--space-3);margin-top:var(--space-3);padding:var(--space-2) var(--space-3);border:1px solid var(--color-divider);border-radius:var(--radius-sm);cursor:pointer}
.points-toggle:hover{background:var(--color-surface-offset)}
.points-toggle input{margin-top:3px;width:15px;height:15px;accent-color:var(--color-primary);flex:none;cursor:pointer}
.points-swatch{width:9px;height:9px;border-radius:50%;background:var(--color-text);border:1.5px solid var(--color-surface);box-shadow:0 0 0 1px var(--color-border);margin-top:5px;flex:none}
.points-text{font-size:var(--text-xs);font-weight:500;line-height:1.35}
.points-sub{display:block;color:var(--color-text-muted);font-weight:400;margin-top:1px}
.atlas-tooltip{position:absolute;top:0;left:0;z-index:650;pointer-events:none;background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);padding:var(--space-3) var(--space-4);box-shadow:var(--shadow-lg);border-radius:var(--radius-sm);font-size:var(--text-sm);width:240px;max-width:calc(100vw - 48px);white-space:normal}
.atlas-tooltip strong{display:block;line-height:1.3}.atlas-tooltip .tooltip-value{display:block;font-size:var(--text-lg);font-weight:700;margin-top:var(--space-2);font-variant-numeric:tabular-nums}.atlas-tooltip small{display:block;font-size:var(--text-xs);color:var(--color-text-muted)}.atlas-tooltip .tooltip-hint{margin-top:var(--space-2);color:var(--color-primary);font-weight:500}
.legend-breaks{display:flex;gap:3px;margin-top:3px}
.legend-breaks span{flex:1;font-size:.66rem;color:var(--color-text-muted);text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.legend-points{display:flex;align-items:flex-start;gap:var(--space-2);margin-top:var(--space-2);padding-top:var(--space-2);border-top:1px solid var(--color-divider);font-size:var(--text-xs);color:var(--color-text-muted);line-height:1.4}
.legend-dot{width:8px;height:8px;border-radius:50%;background:var(--color-text);flex:none;margin-top:4px;box-shadow:0 0 0 1.5px var(--color-surface),0 0 0 2.5px var(--color-border)}
.map-loading.compact{inset:auto;top:var(--space-6);left:50%;transform:translateX(-50%);flex-direction:row;gap:var(--space-2);padding:var(--space-2) var(--space-3);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);font-size:var(--text-xs);color:var(--color-text-muted);white-space:nowrap}
.loading-spinner.small{width:14px;height:14px;border-width:1.5px}
.maplibregl-map#map{z-index:auto}
.maplibregl-popup.atlas-popup{z-index:660;max-width:min(280px,calc(100vw - 32px))!important}
.atlas-popup .maplibregl-popup-content{font-family:var(--font-body);background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);padding:var(--space-3) var(--space-4) var(--space-3);font-size:var(--text-xs);line-height:1.45}
.atlas-popup .maplibregl-popup-tip{border-top-color:var(--color-surface);border-bottom-color:var(--color-surface)}
.atlas-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-right-color:var(--color-surface)}.atlas-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:var(--color-surface)}
.atlas-popup .maplibregl-popup-close-button{font-size:var(--text-lg);width:30px;height:30px;color:var(--color-text-muted);border-radius:var(--radius-sm);right:2px;top:2px}
.atlas-popup .maplibregl-popup-close-button:hover{background:var(--color-surface-offset);color:var(--color-text)}
.popup-eyebrow{font-size:.68rem;font-weight:700;letter-spacing:.08em;color:var(--color-text-muted);text-transform:uppercase;padding-right:var(--space-6)}
.atlas-popup h4{font-size:var(--text-sm);margin:var(--space-1) 0 var(--space-2);line-height:1.3;padding-right:var(--space-5)}
.popup-row{display:flex;justify-content:space-between;gap:var(--space-3);padding:3px 0;border-top:1px solid var(--color-divider)}
.popup-row span{color:var(--color-text-muted)}.popup-row strong{font-weight:700;text-align:right}
.popup-note{margin-top:var(--space-2);color:var(--color-text-muted);font-size:.72rem}
/* detail v2 */
.detail-chain{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1);font-size:var(--text-xs);color:var(--color-text-muted);margin-bottom:var(--space-2)}
.detail-chain button{color:var(--color-primary);font-weight:500;padding:2px 4px;border-radius:3px;text-decoration:underline;text-underline-offset:3px}
.detail-chain [aria-current]{font-weight:700;color:var(--color-text)}
.chain-sep{opacity:.6}
.indicator-value small{font-size:var(--text-xs);font-weight:400;color:var(--color-text-muted)}
.year-bars{display:grid;gap:var(--space-2);margin-top:var(--space-3)}
.year-row{display:grid;grid-template-columns:62px 1fr 64px;align-items:center;gap:var(--space-2);font-size:var(--text-xs)}
.year-label{color:var(--color-text-muted);font-weight:500}
.year-track{position:relative;height:12px;background:var(--color-surface-offset);border-radius:2px;overflow:hidden}
.year-bar{position:absolute;left:0;top:0;bottom:0;background:var(--map-4);border-radius:2px}
.year-row.projected .year-bar{background:repeating-linear-gradient(135deg,var(--map-3) 0 4px,transparent 4px 7px);border:1px solid var(--map-4)}
.year-range{position:absolute;top:2px;bottom:2px;border-left:1.5px solid var(--color-text);border-right:1.5px solid var(--color-text);background:color-mix(in srgb,var(--color-text) 12%,transparent)}
.year-value{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
.year-row.projected .year-value{font-weight:500;color:var(--color-text-muted)}
.outlook-line{font-size:var(--text-xs);margin-top:var(--space-3);line-height:1.5}
.outlook-line+.outlook-line{margin-top:var(--space-2)}
.outlook-tag{display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:3px;background:var(--color-surface-offset);color:var(--color-text-muted);margin-left:var(--space-1);vertical-align:middle}
.outlook-tag.notable{background:var(--color-primary-highlight);color:var(--color-primary)}
.policy-panel{padding:0}
.policy-toggle{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);width:100%;text-align:left;padding:var(--space-4) var(--space-5);min-height:56px}
.policy-toggle>span:first-child{display:flex;flex-direction:column;gap:2px}
.policy-title{font-size:var(--text-sm);font-weight:700}
.policy-sub{font-size:var(--text-xs);color:var(--color-text-muted)}
.policy-chevron{font-size:var(--text-lg);color:var(--color-text-muted);width:28px;text-align:center;flex:none}
.policy-body{padding:0 var(--space-5) var(--space-4)}
.policy-disclaimer{font-size:var(--text-xs);line-height:1.5;padding:var(--space-3);background:var(--color-surface-offset);border-left:3px solid var(--color-primary);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--color-text)}
.policy-group{margin-top:var(--space-4)}
.policy-group h4{font-size:var(--text-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--color-text-muted);margin-bottom:var(--space-2)}
.policy-item{padding:var(--space-3) 0;border-top:1px solid var(--color-divider)}
.policy-item h5{font-size:var(--text-sm);font-weight:700;line-height:1.3}
.policy-item time{display:block;font-size:var(--text-xs);color:var(--color-text-muted);margin:2px 0 var(--space-1)}
.policy-item p{font-size:var(--text-xs);line-height:1.55;color:var(--color-text)}
.policy-sources{margin-top:var(--space-1)!important;color:var(--color-text-muted)!important}
.policy-sources a{font-weight:700}
.policy-panel.in-dialog{margin-bottom:var(--space-6)}
.policy-panel.in-dialog .section-title-row h3{font-size:var(--text-base)}
.policy-panel.in-dialog .policy-body{padding:var(--space-3) 0 0}
.policy-panel.in-dialog .policy-item p,.policy-panel.in-dialog .policy-disclaimer{font-size:var(--text-sm)}
/* dialog v2 */
.borough-chart{display:flex;align-items:flex-end;gap:2px;height:120px;margin-top:var(--space-3);border-bottom:1px solid var(--color-border)}
.borough-bar{flex:1;height:var(--bar-height);min-height:1px;background:var(--map-3);border-radius:2px 2px 0 0}
.borough-bar.current{background:var(--color-primary)}
.borough-years{display:flex;font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-1)}
.borough-years span{text-align:left;border-left:1px solid var(--color-divider);padding-left:4px}
.borough-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--space-3);margin-top:var(--space-4)}
.borough-facts dt{font-size:var(--text-xs);color:var(--color-text-muted)}
.borough-facts dd{font-size:var(--text-base);font-weight:700;font-variant-numeric:tabular-nums;margin-top:2px}
.borough-facts dd small{display:block;font-size:var(--text-xs);font-weight:400;color:var(--color-text-muted)}
.method-text{margin-top:var(--space-4)}
[data-testid=outlook-dialog] .section-title-row{margin-bottom:var(--space-2)}
[data-testid=outlook-dialog] .section-title-row h3{margin-bottom:0}
.compact-empty{padding:var(--space-4) var(--space-5);text-align:left}
.list-more{padding:var(--space-3) var(--space-5);font-size:var(--text-xs);color:var(--color-text-muted);border-top:1px solid var(--color-divider)}
/* sidebar tabs + route check */
.sidebar-tabs{display:flex;gap:var(--space-1);padding:var(--space-4) var(--space-5) 0;flex:none}
.sidebar-tabs [role=tab]{flex:1;min-height:38px;border-radius:var(--radius-sm);font-size:var(--text-xs);font-weight:500;color:var(--color-text-muted);border:1px solid transparent;position:relative}
.sidebar-tabs [role=tab][aria-selected=true]{color:var(--color-primary);font-weight:700;background:var(--color-primary-highlight);border-color:color-mix(in srgb,var(--color-primary) 18%,transparent)}
.tab-pane{display:flex;flex-direction:column;flex:1;min-height:0}
.route-pane{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--space-4) var(--space-5) var(--space-6)}
.route-pane .sidebar-heading{display:block}
.route-form{display:flex;flex-direction:column;gap:var(--space-3)}
.route-form .sidebar-heading{margin-bottom:var(--space-1)}
.route-field{position:relative}
.route-field label{display:block;font-size:var(--text-xs);font-weight:700;letter-spacing:.08em;color:var(--color-text-muted);margin-bottom:var(--space-1)}
.route-input-row{display:flex;gap:var(--space-2)}
.route-input-row input{flex:1;min-width:0;height:44px;background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:0 var(--space-3);font-size:var(--text-sm);outline:none}
.route-input-row input:focus{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-highlight)}
.route-input-row input.searching{background-image:linear-gradient(90deg,transparent,var(--color-primary-highlight),transparent);background-size:200% 100%;animation:shimmer 1.2s linear infinite}
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.pick-button{width:44px;height:44px;flex:none;border:1px solid var(--color-border);border-radius:var(--radius-md);font-size:var(--text-xl);color:var(--color-text-muted)}
.pick-button[aria-pressed=true]{background:var(--color-primary);color:var(--color-text-inverse);border-color:var(--color-primary)}
.route-options{position:absolute;left:0;right:52px;top:100%;z-index:20;margin-top:4px;list-style:none;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);max-height:240px;overflow:auto}
.route-options li{padding:var(--space-2) var(--space-3);font-size:var(--text-xs);cursor:pointer;line-height:1.35;border-top:1px solid var(--color-divider)}
.route-options li:first-child{border-top:0}
.route-options li:hover,.route-options li.active{background:var(--color-primary-highlight);color:var(--color-primary)}
.route-options li small{display:block;color:var(--color-error);font-weight:700}
.route-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}
.route-row .segmented button{min-width:0;flex:1;padding:var(--space-1) var(--space-3)}
.route-row .segmented{flex:1;max-width:230px}
.route-go{margin-top:var(--space-1)}
.route-status{font-size:var(--text-xs);color:var(--color-text-muted);line-height:1.45;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--color-surface-offset)}
.route-status.error{color:var(--color-error);background:color-mix(in srgb,var(--color-error) 10%,transparent)}
.route-results{margin-top:var(--space-4)}
.route-skeleton .skeleton-row{margin:var(--space-2) 0}.route-skeleton .tall{height:88px}
.route-summary{padding:var(--space-4);background:var(--color-surface-offset);border-radius:var(--radius-md)}
.route-summary h3{font-size:var(--text-lg);letter-spacing:-.02em;margin-top:var(--space-1)}
.route-summary p{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-1);line-height:1.4}
.route-alts{display:flex;gap:var(--space-1);margin-top:var(--space-2)}
.route-alts button{flex:1;min-height:40px;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-size:var(--text-xs);font-weight:700;display:flex;flex-direction:column;align-items:center;padding:var(--space-1)}
.route-alts button small{font-weight:400;color:var(--color-text-muted)}
.route-alts button[aria-pressed=true]{background:var(--color-primary-highlight);color:var(--color-primary);border-color:color-mix(in srgb,var(--color-primary) 30%,transparent)}
.route-corridor-note{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-3)}
.route-metrics{margin-top:var(--space-2)}
.route-metric{display:grid;grid-template-columns:1fr auto;gap:var(--space-3);padding:var(--space-3) 0;border-top:1px solid var(--color-divider);align-items:start}
.route-metric.headline{display:block;padding:var(--space-4);margin-top:var(--space-2);background:var(--color-primary-highlight);border:1px solid color-mix(in srgb,var(--color-primary) 18%,transparent);border-radius:var(--radius-md)}
.route-metric-title{display:block;font-size:var(--text-xs);font-weight:700}
.route-metric.headline .route-metric-title{font-size:var(--text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--color-primary)}
.route-metric-sub{display:block;font-size:.72rem;color:var(--color-text-muted);line-height:1.35;margin-top:1px}
.route-metric-values{text-align:right;display:flex;flex-direction:column;gap:1px}
.route-metric.headline .route-metric-values{text-align:left;margin-top:var(--space-2)}
.route-ratio{font-size:var(--text-sm);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.route-metric.headline .route-ratio{font-size:var(--text-xl);letter-spacing:-.03em;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.route-count{font-size:var(--text-xs);color:var(--color-text);font-variant-numeric:tabular-nums}
.route-metric-values small{font-size:.68rem;color:var(--color-text-muted);line-height:1.35;max-width:220px}
.route-metric.headline .route-metric-values small{max-width:none}
.route-section{margin-top:var(--space-4);padding-top:var(--space-3);border-top:1px solid var(--color-divider)}
.route-section h4{font-size:var(--text-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-muted)}
.route-types{list-style:none;margin-top:var(--space-2)}
.route-types li{display:flex;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) 0;border-top:1px solid var(--color-divider);font-size:var(--text-xs)}
.route-types li:first-child{border-top:0}
.route-types small{display:block;color:var(--color-text-muted)}
.route-types strong{font-variant-numeric:tabular-nums}
.route-hoods{font-size:var(--text-xs);line-height:1.6;margin-top:var(--space-2)}
.route-actions{display:flex;gap:var(--space-2);margin-top:var(--space-4);flex-wrap:wrap}
.route-actions .export-button{border:1px solid var(--color-border);min-height:40px;flex:1}
.text-link{color:var(--color-primary);font-size:var(--text-xs);font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:32px;padding:0 var(--space-2);border-radius:var(--radius-sm)}
.route-compare{font-size:var(--text-xs);margin-top:var(--space-2);min-width:100%}
.route-compare th,.route-compare td{padding:var(--space-2);border-bottom:1px solid var(--color-divider);text-align:left;vertical-align:top;font-variant-numeric:tabular-nums}
.route-compare thead th{font-weight:700;background:var(--color-surface-offset)}
.route-compare thead small{display:block;font-weight:400;color:var(--color-text-muted);margin-top:2px}
.route-compare tbody th{font-weight:500;color:var(--color-text-muted)}
.route-compare td{font-weight:700;font-size:var(--text-sm)}
.route-compare td small{display:block;font-weight:400;color:var(--color-text-muted)}
.route-error h3{color:var(--color-error)}
.route-note,.route-attribution{font-size:var(--text-xs);color:var(--color-text-muted);line-height:1.5;margin-top:var(--space-4)}
.route-attribution{margin-top:var(--space-2)}
.sidebar.route-mode .sidebar-footer{display:none}
@media(max-height:850px) and (min-width:761px){.sidebar-tabs{padding-top:var(--space-3)}.scale-row,.points-toggle{margin-top:var(--space-2)}.points-toggle{padding:var(--space-1) var(--space-3)}}
@media(max-width:760px){.sidebar-tabs{padding-top:0}.route-pane{padding-top:var(--space-3)}.sidebar.expanded .route-pane{overflow:visible}.map-loading.compact{top:auto;bottom:118px;padding-bottom:var(--space-2)}.route-options{right:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* v2 desktop: explore pane is a single scroller so the list is always reachable */
@media(min-width:761px){
#explore-pane{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}
#explore-pane .explorer{flex:none;min-height:0}
#explore-pane .neighborhood-list{overflow:visible;min-height:0}
#explore-pane .explorer-heading{position:sticky;top:0;z-index:2;background:var(--color-surface)}
}
/* v3: two unmistakable score tasks; the original explorer remains intact. */
@media(min-width:761px){.app-shell{grid-template-columns:380px minmax(0,1fr)}.brand{width:380px}}
.sidebar-tabs{gap:4px;padding:12px 12px 8px;border-bottom:1px solid var(--color-divider);background:var(--color-surface);z-index:30}
.sidebar-tabs [role=tab]{min-height:44px}
.sidebar.score-mode .sidebar-footer{display:none}
.route-form .sidebar-heading h2{font-size:var(--text-lg);margin-top:8px}
.route-form .sidebar-heading p{margin-top:8px;line-height:1.5}
.route-form .sidebar-heading{margin-bottom:8px}
.input-hint{font-size:var(--text-xs);color:var(--color-text-muted);line-height:1.45;margin-top:6px}
.radius-hint{margin:0 auto 0 0}
#address-radius{background:var(--color-surface-2);border:1px solid var(--color-border);padding:8px;border-radius:var(--radius-sm);min-height:40px}
.score-intro{padding:20px 0;border-top:1px solid var(--color-border);margin-top:20px}
.score-intro p{font-size:var(--text-xs);color:var(--color-text-muted);line-height:1.6;margin-top:10px}
.score-intro .text-link{margin:8px 0 0;padding:0}
.route-results:empty{margin:0}
.has-result .route-results{margin-top:0}
.result-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.result-toolbar .text-link{padding-right:0;min-height:36px}
.score-card{border:1px solid color-mix(in srgb,var(--color-primary) 30%,transparent);background:var(--color-primary-highlight);border-radius:var(--radius-md);padding:18px}
.score-card h3{font-size:var(--text-sm);color:var(--color-primary)}
.score-value-row{display:flex;align-items:center;gap:16px;margin:8px 0}
.score-number{font-size:clamp(3rem,5vw,3.5rem);line-height:1;letter-spacing:-.055em;font-weight:900;font-variant-numeric:tabular-nums;color:var(--color-primary)}
.score-number small{font-size:var(--text-sm);font-weight:500;letter-spacing:0;margin-left:4px}
.score-direction{font-size:var(--text-xs);color:var(--color-text-muted);max-width:140px;line-height:1.4}
.score-anchor{font-size:var(--text-xs);font-weight:700;margin-top:12px}
.score-evidence{font-size:var(--text-xs);margin-top:8px;line-height:1.5}
.score-disclaimer{font-size:var(--text-xs);line-height:1.45;margin-top:10px;color:var(--color-text-muted)}
.score-unavailable{font-size:var(--text-xl);letter-spacing:-.02em}
.score-location{margin:14px 0;font-size:var(--text-sm);font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.score-location small{display:block;font-size:var(--text-xs);font-weight:400;color:var(--color-text-muted);margin-top:6px}
.score-method{border-block:1px solid var(--color-border);margin-top:16px;font-size:var(--text-xs);color:var(--color-text-muted)}
.score-method summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--color-primary);font-weight:700}
.score-method p{line-height:1.55;margin:0 0 12px}
.score-method a{overflow-wrap:anywhere}
.score-warning{border-left:3px solid var(--color-error);padding:10px 12px;background:var(--color-surface-offset);font-size:var(--text-xs);line-height:1.5;margin:12px 0;color:var(--color-error)}
.route-metric{display:block}
.route-metric-values{text-align:left;margin-top:6px}
.route-metric-values small{max-width:none;font-size:var(--text-xs)}
.route-metric-sub,.popup-note,.popup-eyebrow,.outlook-tag{font-size:var(--text-xs)}
.route-ratio{white-space:normal}
.route-options{right:0;max-height:220px}
.route-options li{min-height:44px;display:flex;flex-direction:column;justify-content:center}
.route-form:has(.route-options:not([hidden])){padding-bottom:100px}
.score-marker{width:20px;height:20px;border-radius:50%;background:var(--color-primary);border:4px solid var(--color-surface);box-shadow:0 0 0 2px var(--color-primary),0 3px 10px #0004}
.route-alts button .alt-score{font-size:var(--text-sm);color:var(--color-primary);margin:4px 0}
.route-attribution{overflow-wrap:anywhere}
@media(max-width:760px){
  .sidebar.expanded{height:70dvh;max-height:calc(100dvh - 150px)}
  .mobile-sheet-toggle{min-height:46px;padding:14px 16px 8px;font-size:var(--text-xs)}
  .sidebar:not(.expanded) .mobile-sheet-toggle{min-height:78px}
  .sidebar.expanded .sidebar-body{display:flex;overflow:hidden}
  .sidebar-tabs{padding:4px 10px 8px;position:relative}
  .sidebar.expanded .route-pane,.sidebar.expanded #explore-pane{overflow:auto;flex:1;min-height:0}
  .route-pane{padding:14px 18px 24px}
  .route-input-row input{font-size:16px}
  .route-form{gap:10px}
  .route-form .sidebar-heading{margin-bottom:2px}
  .route-form .sidebar-heading .eyebrow{display:none}
  .route-form .sidebar-heading h2{margin-top:0}
  .route-form .sidebar-heading p{margin-top:4px}
  .app-shell:has(.score-mode) .map-heading{display:none}
  .app-shell:has(.score-mode.expanded) .map-bottom{display:none}
  .app-shell:has(.score-mode) .map-tools{top:12px;right:12px;flex-direction:row}
  .app-shell:has(.score-mode) .reset-tool{margin:0 0 0 6px}
  .app-shell:has(.score-mode) .map-tool{border-radius:4px;border:1px solid var(--color-border);width:36px;height:36px}
  .score-card{padding:16px}
  .score-number{font-size:3rem}
  .score-location{margin:12px 0}
}

/* Area plates: height and a shared sequential green palette encode the same score. */
:root{--score-stone:#b8c5aa;--score-hover:#d6dec9;--score-selected:#dce5c8}
[data-theme="dark"]{--score-stone:#8f9f85;--score-hover:#bccbab;--score-selected:#cfdec1}
.score-map-controls{position:absolute;top:148px;left:24px;width:348px;z-index:510;padding:12px 14px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);font-size:var(--text-xs)}
.score-map-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.score-map-top .segmented{flex:1}
.score-map-top .segmented button{flex:1;white-space:nowrap;min-height:36px;padding:6px 9px}
#camera-toggle{font-size:var(--text-xs);min-height:36px;padding:6px;border-radius:4px}
#camera-toggle[aria-expanded="true"]{background:var(--color-surface-alt);font-weight:700}
.height-input-row{display:flex;align-items:center;gap:12px;min-height:40px}
.height-input-row label{font-weight:700;min-width:40px}
.height-input-row input{flex:1;min-width:0;accent-color:var(--color-primary);height:28px;cursor:pointer}
.height-input-row output{min-width:34px;font-variant-numeric:tabular-nums;text-align:right}
.mini-height-legend{display:flex;align-items:flex-end;gap:14px;line-height:1.3}
.mini-height-legend>span{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:18px;font-variant-numeric:tabular-nums}
.mini-height-legend>span:before{content:"";height:var(--score-bar);width:17px;background:var(--score-stone);border:1px solid var(--color-text-muted)}
.mini-height-legend small{font-size:var(--text-xs);color:var(--color-text-muted);margin-left:auto}
#map-control-note{font-size:var(--text-xs);line-height:1.45;margin-top:9px}
#camera-options{border-top:1px solid var(--color-border);margin-top:10px;padding-top:4px}
.camera-buttons{display:flex;align-items:center;justify-content:space-between;gap:4px}
.camera-buttons button{border:1px solid var(--color-border);border-radius:4px;padding:5px 8px;min-height:36px}
#camera-options p{color:var(--color-text-muted);margin-top:8px;font-size:var(--text-xs)}
.height-legend .legend-spectrum{height:48px;align-items:flex-end;justify-content:space-around;gap:28px;padding-bottom:20px;margin-top:6px}
.height-legend .legend-spectrum span{flex:none;width:30px;height:max(1px,var(--score-bar));background:var(--score-stone);border:1px solid var(--color-text-muted);position:relative}
.height-legend .legend-spectrum b{position:absolute;top:100%;left:0;right:0;text-align:center;font-size:var(--text-xs);font-weight:500;margin-top:2px}
.height-legend .legend-breaks{display:none}
.height-legend .legend-unranked span{background:var(--score-stone)}
.area-score{padding:16px 20px;border-bottom:1px solid var(--color-border);background:color-mix(in srgb,var(--score-stone) 16%,var(--color-surface))}
.area-score-value{font-size:2rem;font-weight:700;letter-spacing:-.04em;line-height:1.2;margin:6px 0}
.area-score-value small{font-size:var(--text-sm);letter-spacing:0;font-weight:500;color:var(--color-text-muted)}
.area-score p{font-size:var(--text-xs);line-height:1.5;margin-top:7px}
.area-score-caveat{font-weight:500;color:var(--color-text)}
.area-score.compact{padding:10px 0 4px;background:transparent;border:0}
.area-score.compact .area-score-value{font-size:1.8rem}
.atlas-tooltip:has(.area-score){max-width:290px;min-width:240px}
.pick-map-notice{position:absolute;left:24px;top:345px;z-index:550;max-width:348px;padding:12px;background:var(--color-surface);border:2px solid var(--color-primary);border-radius:6px;font-size:var(--text-xs);box-shadow:var(--shadow-sm)}
.pick-map-notice button{display:block;text-decoration:underline;padding-top:6px;font-weight:700}
.indicator-map-hint{padding-left:10px;border-left:2px solid var(--color-border)}
.map-context-note{display:none}
[data-map-mode="3d"] .map-heading{max-width:395px}
[data-map-mode="3d"] .map-instruction{max-width:290px}
@media(min-width:1600px){.score-map-controls{left:32px;top:156px}}
@media(max-width:1150px) and (min-width:761px){.score-map-controls{width:300px}.map-region:has(.detail-panel:not([hidden])) .score-map-controls{width:250px;top:24px}.map-region:has(.detail-panel:not([hidden])) .score-map-controls .score-map-top{flex-wrap:wrap}}
@media(max-width:760px){
  .sidebar.expanded{height:50dvh;max-height:calc(100dvh - 340px)}
  .sidebar.expanded .route-form .sidebar-heading{display:none}
  .score-map-controls{top:10px;left:10px;width:calc(100% - 20px);padding:8px 10px;border-radius:6px}
  .score-map-top .segmented button{min-height:34px}
  .height-input-row{min-height:34px}
  #map-control-note{margin-top:5px;font-size:12px}
  .mini-height-legend{gap:10px}
  .mini-height-legend small{font-size:12px}
  .map-heading{display:none!important}
  .app-shell .map-tools,.app-shell:has(.score-mode) .map-tools{top:180px;right:10px;flex-direction:row}
  .app-shell .map-tool{border-radius:4px;border:1px solid var(--color-border);width:36px;height:36px}
  .app-shell .reset-tool{margin:0 0 0 6px}
  .score-map-controls:has(#camera-options:not([hidden]))~.map-tools{top:310px}
  [data-map-mode="2d"] .app-shell .map-tools{top:100px}
  .app-shell:has(.sidebar.expanded) .map-bottom{display:none}
  .map-bottom{bottom:110px}
  .map-legend .legend-points{display:none}
  .pick-map-notice{top:180px;left:10px;max-width:230px;padding:8px}
  .map-filter-indicator{top:224px!important;left:10px}
  .map-context-note{display:block;position:absolute;top:180px;left:10px;max-width:225px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:4px;padding:6px 8px;font-size:12px;line-height:1.4;z-index:500}
  .score-map-controls:has(#camera-options:not([hidden]))~.map-context-note{display:none}
  .detail-panel{height:56dvh}
  .map-region:has(.detail-panel:not([hidden])) .score-map-controls{width:calc(100% - 20px)}
}
/* One compact control and one score scale. */
.map-heading,.map-instruction{display:none!important}
.score-map-controls{top:20px;left:20px;width:330px;padding:14px 16px}
.metric-selector label{display:block;font-size:12px;letter-spacing:.075em}
.metric-selector select{display:block;width:100%;font-weight:700;font-size:var(--text-base);height:44px;margin-top:4px;background:transparent;border:0;border-bottom:1px solid var(--color-border);padding-right:16px;cursor:pointer}
#metric-description{font-size:12px;color:var(--color-text-muted);line-height:1.4;margin:8px 0 12px;min-height:32px}
.score-map-top .segmented button,#camera-toggle{min-height:44px}
.score-map-top .segmented button{min-width:0;font-size:12px;padding-inline:6px}
.height-input-row{min-height:42px}
#map-control-note{font-weight:700;margin-top:0;font-size:12px}
#surface-status{font-size:12px;color:var(--color-text-muted);margin-top:5px;line-height:1.4}
.map-bottom{left:20px;right:20px;bottom:32px}
.map-legend{width:330px;padding:10px 14px}
.legend-title-row{margin-bottom:4px}
.legend-title-row h3{font-size:12px}
.legend-info{width:28px;height:28px;border:0}
.legend-spectrum{display:flex;height:24px;background:none;border-bottom:2px solid var(--color-primary);gap:0}
.legend-spectrum span,.legend-spectrum span:nth-child(n){background:none;position:relative;flex:1;font-size:12px;font-weight:700}
.legend-spectrum span:nth-child(2){text-align:center;flex:2}
.legend-spectrum span:nth-child(3){text-align:right}
.legend-spectrum span:after{content:"";display:block;position:absolute;height:5px;bottom:-2px;width:1px;background:var(--color-primary)}
.legend-spectrum span:nth-child(2):after{left:50%}
.legend-spectrum span:nth-child(3):after{right:0}
.legend-endpoints{margin-top:5px;font-size:12px}
.legend-footnote{margin-top:5px;font-size:12px;line-height:1.4}
.map-filter-indicator{top:310px!important}
.pick-map-notice{top:305px;left:20px;max-width:330px}
.atlas-tooltip{width:268px;pointer-events:none}
.explore-options{margin-top:14px;font-size:12px}
.explore-options>summary{color:var(--color-primary);cursor:pointer;min-height:36px;padding-block:8px}
.explore-options .layer-fieldset{margin-top:8px}
.raw-details{font-size:12px;font-weight:400;color:var(--color-text-muted)}
.raw-details summary{min-height:36px;padding-block:9px;cursor:pointer;color:var(--color-text-muted);font-size:12px}
.raw-details p{margin:4px 0 8px}
.score-card .raw-details{margin-top:8px;border-top:1px solid var(--color-border)}
.score-period{font-size:12px;color:var(--color-text-muted);margin-top:6px}
.score-map-fixed{font-size:12px;padding:8px;background:var(--color-surface);border-radius:4px;margin-top:8px}
.route-metric{padding:10px 0;border:0;border-top:1px solid var(--color-border);background:none;border-radius:0}
.route-metric.active{background:none}
.metric-score-button{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;align-items:center;gap:8px;padding:8px 0}
.metric-score-button .route-metric-title{font-size:14px}
.metric-score-button strong{font-size:22px;line-height:1}
.metric-score-button strong small{font-size:12px;font-weight:500;color:var(--color-text-muted)}
.metric-score-button[aria-pressed=true]{color:var(--color-primary)}
.component-track{position:relative;display:block;grid-column:1/-1;height:7px;background:var(--color-surface-offset);border-radius:1px;overflow:visible}
.component-track i{display:block;height:100%;background:var(--color-primary);border-radius:1px;opacity:.75}
.component-track b{position:absolute;left:50%;top:-3px;height:13px;width:1px;background:var(--color-text-muted)}
.indicator-button .component-track{flex-basis:100%;width:100%;margin-top:7px}
.indicator-button{flex-wrap:wrap}
.route-metric-sub{display:block;font-size:12px;line-height:1.45}
.route-metric-values{font-size:12px}
.list-value small{font-size:12px;color:var(--color-text-muted);font-weight:400;margin-left:3px}
.score-warning{border-left:0;border:1px solid var(--color-border)}
@media(min-width:1600px){.score-map-controls{top:20px;left:20px}}
@media(max-width:1150px) and (min-width:761px){.map-region:has(.detail-panel:not([hidden])) .score-map-controls{display:none}.score-map-controls{width:305px}}
@media(max-width:760px){
  .score-map-controls{left:10px;top:10px;width:calc(100% - 20px);padding:9px 12px}
  .metric-selector label{font-size:12px}
  .metric-selector select{height:38px;font-size:16px;margin-top:0}
  #metric-description{display:none}
  [data-score-metric="homeless"] #metric-description,[data-score-metric="trash"] #metric-description{display:block;min-height:0;margin:4px 0;font-size:12px}
  .score-map-top{margin-top:6px}
  .score-map-top .segmented button,#camera-toggle{min-height:40px}
  .height-input-row{min-height:34px}
  #surface-status{font-size:12px;white-space:normal;margin-top:3px}
  .app-shell .map-tools,.app-shell:has(.score-mode) .map-tools{top:240px;right:10px;flex-direction:column}
  .app-shell .map-tool,.app-shell:has(.score-mode) .map-tool{width:44px;height:44px}
  .app-shell .reset-tool,.app-shell:has(.score-mode) .reset-tool{margin:6px 0 0}
  [data-map-mode="2d"] .app-shell .map-tools{top:210px}
  .score-map-controls:has(#camera-options:not([hidden]))~.map-tools{top:385px}
  .map-bottom{bottom:100px;left:10px;right:64px}
  .map-legend{width:310px;padding:8px 10px}
  .legend-title-row{display:none}
  .map-legend .legend-footnote{font-size:12px}
  .map-legend .legend-endpoints{font-size:12px}
  .app-shell:has(.sidebar.expanded) .map-bottom{display:none}
  .sidebar.expanded{height:51dvh;max-height:calc(100dvh - 300px)}
  .pick-map-notice{top:240px;left:10px;max-width:260px}
  .map-context-note{display:none!important}
  .map-filter-indicator{top:235px!important;max-width:270px}
  .detail-panel{height:53dvh}
  .map-region:has(.detail-panel:not([hidden])) .score-map-controls{display:block}
}

/* V6: distinct area plates; real polygon footprints, one score palette in both modes. */
:root{
  --area-score-low:#edf0e3;--area-score-mid:#91b19b;--area-score-high:#255944;
  --area-outline:#f8faf1;--area-unavailable:#a6aaa7;
}
[data-theme="dark"]{
  --area-score-low:#d7e2d1;--area-score-mid:#88ad94;--area-score-high:#24513d;
  --area-outline:#17261e;--area-unavailable:#6e7972;
}
.area-scale-status{
  position:absolute;top:20px;left:20px;z-index:520;
  max-width:calc(100% - 100px);padding:8px 12px;margin:0;
  background:var(--color-surface);color:var(--color-text);
  border:1px solid var(--color-border);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-sm);font-size:12px;font-weight:700;line-height:1.4;
  pointer-events:none;
}
.score-map-controls{top:66px}
.legend-spectrum{background:linear-gradient(90deg,var(--area-score-low),var(--area-score-mid) 50%,var(--area-score-high));border:0;height:28px;padding:4px 6px;color:#173529}
.legend-spectrum span:nth-child(3){color:#fff}
.legend-spectrum span:after{display:none}
.legend-unranked span{background:var(--area-unavailable)}
.map-filter-indicator{top:358px!important}
.pick-map-notice{top:358px}
.score-map-controls:has(#camera-options:not([hidden]))~.map-filter-indicator{top:510px!important}
.atlas-tooltip .area-score.compact .eyebrow{font-size:12px}
.atlas-tooltip .area-score.compact p{margin-top:5px}
.score-marker:focus-visible{outline:3px solid var(--color-text);outline-offset:5px}
@media(min-width:1600px){.score-map-controls{top:66px}}
@media(max-width:1150px) and (min-width:761px){
  .map-region:has(.detail-panel:not([hidden])) .area-scale-status{max-width:calc(100% - 345px);min-width:100px}
}
@media(max-width:760px){
  .area-scale-status{left:10px;top:10px;max-width:calc(100% - 20px);padding:7px 10px}
  .score-map-controls{top:54px}
  .app-shell .map-tools,.app-shell:has(.score-mode) .map-tools{top:302px}
  [data-map-mode="2d"] .app-shell .map-tools{top:270px}
  .score-map-controls:has(#camera-options:not([hidden]))~.map-tools{top:446px}
  .pick-map-notice{top:300px}
  .map-filter-indicator{top:290px!important;max-width:calc(100% - 78px)}
  .score-map-controls:has(#camera-options:not([hidden]))~.map-filter-indicator{top:438px!important}
  .legend-unranked{display:flex;font-size:12px}
}
