:root{
  --tw-midnight:#0B1320;
  --tw-graphite:#1F2A3A;
  --tw-city-gray:#8B96A5;
  --tw-cloud:#F6F7F9;
  --tw-coral:#FF6B3D;
  --tw-coral-ui:#C9401D;
  --tw-coral-soft:#FFF1EC;
  --tw-muted:#667180;
  --tw-border:#D8DDE4;
  --tw-panel:rgba(246,247,249,.72);
  --tw-glass-light:rgba(246,247,249,.72);
  --tw-glass-light-strong:rgba(255,255,255,.86);
  --tw-glass-dark:rgba(11,19,32,.70);
  --tw-glass-dark-strong:rgba(31,42,58,.84);
  --tw-glass-border-light:rgba(139,150,165,.24);
  --tw-glass-border-dark:rgba(246,247,249,.16);
  --tw-glass-blur:24px;
  --tw-shadow:0 14px 40px rgba(11,19,32,.14),inset 0 1px 0 rgba(255,255,255,.78);
  --tw-shadow-dark:0 16px 44px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.10);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",sans-serif;
}
body{font-family:inherit}
.tw-light{color:var(--tw-midnight);background:radial-gradient(circle at 9% 8%,rgba(255,107,61,.10),transparent 26rem),radial-gradient(circle at 91% 15%,rgba(139,150,165,.18),transparent 30rem),var(--tw-cloud)}
::selection{background:var(--tw-coral);color:var(--tw-midnight)}
.tw-light a{color:var(--tw-coral-ui)}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--tw-coral-ui);outline-offset:2px}
.tw-brand{display:inline-flex;align-items:center;gap:9px;min-height:44px;color:inherit;text-decoration:none;letter-spacing:0}
.tw-light .tw-brand{color:var(--tw-midnight)}
.tw-brand .brand-icon{display:block;width:36px;height:36px;min-width:36px;padding:0;background:transparent;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px rgba(11,19,32,.14)}
.tw-brand .brand-icon img{display:block;width:100%;height:100%}
.tw-brand .brand-wordmark,.tw-brand .brand-wordmark span{color:var(--tw-midnight)}
.tw-brand .brand-wordmark{font-size:21px;font-weight:700;letter-spacing:-.045em;line-height:1;white-space:nowrap}
.tw-brand .brand-wordmark strong{color:var(--tw-coral);font-weight:700}
.tw-brand .tw-version{margin-left:3px;color:var(--tw-muted);font-size:11px;font-weight:600;line-height:16px;letter-spacing:.08em;white-space:nowrap}
header nav a[aria-current="page"],.workspace-switch a[aria-current="page"],.analysis-nav a[aria-current="page"]{background:var(--tw-coral-soft);color:var(--tw-midnight);box-shadow:inset 0 -2px 0 var(--tw-coral-ui)}
.tw-light .eyebrow{font-size:11px;line-height:16px;font-weight:600;letter-spacing:.12em;color:var(--tw-muted)}
body:not(.tw-light) .tw-brand .tw-version{color:var(--tw-border)}

/* Shared light UI. Scientific and categorical palettes deliberately stay local. */
.tw-light #loading{background:var(--tw-cloud)}
.tw-light header{border-color:rgba(139,150,165,.28)}
.tw-light header:not(.topbar):not(.site-header) .brand,.tw-light header:not(.topbar):not(.site-header) nav{background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(246,247,249,.58));border-color:var(--tw-glass-border-light);box-shadow:var(--tw-shadow)}
.tw-light .topbar,.tw-light .site-header{background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(246,247,249,.60));border-color:var(--tw-glass-border-light);box-shadow:0 9px 34px rgba(11,19,32,.09),inset 0 1px 0 rgba(255,255,255,.82)}
.tw-light header nav a,.tw-light .workspace-switch a,.tw-light .site-header nav a{color:var(--tw-graphite);border-radius:8px;text-decoration:none}
.tw-light .site-header nav a[aria-current="page"],.tw-light .workspace-switch a[aria-current="page"]{background:var(--tw-coral-soft);color:var(--tw-midnight);box-shadow:inset 0 -2px 0 var(--tw-coral-ui)}
.tw-light .places-tool,.tw-light #panel,.tw-light .planner,.tw-light .filters,.tw-light .results,.tw-light .detail{background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(246,247,249,.60));border-color:var(--tw-glass-border-light);box-shadow:var(--tw-shadow)}
.tw-light .primary,.tw-light #streetFocus,.tw-light #calculate{background:var(--tw-midnight);border-color:var(--tw-midnight);color:var(--tw-cloud)}
.tw-light .primary:hover,.tw-light #streetFocus:hover,.tw-light #calculate:hover{background:var(--tw-graphite);border-color:var(--tw-graphite);color:var(--tw-cloud)}
.tw-light button[aria-pressed="true"]:not([data-profile="green"]):not([data-profile="activity"]),.tw-light .record[aria-current="true"]{background:var(--tw-coral-soft);border-color:rgba(201,64,29,.35);color:var(--tw-midnight)}
.tw-light input[type="checkbox"]{accent-color:var(--tw-coral-ui)}
.tw-light .loadmark{color:var(--tw-midnight);font-weight:700}
.tw-light .loadmark span{color:var(--tw-coral);font-weight:700}

/* Map and data workspace chrome. */
.tw-light .workspace-switch{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.tw-light .workspace-switch button,.tw-light .workspace-switch a,.tw-light .site-header nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.tw-light .map-filters button[aria-pressed="true"],.tw-light .segments button[aria-pressed="true"],.tw-light .legend button[aria-pressed="true"]{background:var(--tw-coral-soft);border-color:rgba(201,64,29,.38);color:var(--tw-midnight)}
.tw-light .intro-copy{max-width:580px;color:var(--tw-muted);line-height:1.55}
.tw-light .intro-copy p{margin:0 0 10px}
.tw-light .open-3d{display:inline-flex;align-items:center;min-height:44px;color:var(--tw-coral-ui);font-weight:600}
.tw-light .legend-route{background:var(--tw-coral)}
.tw-light .route-field-3d label,.tw-light .place-link{color:var(--tw-coral-ui)}
.tw-light .route-actions-3d .place-primary{background:var(--tw-midnight);color:var(--tw-cloud)}

/* Dark analytical workspace: same identity, without touching data ramps. */
.analysis-nav a{padding:8px 10px;border-radius:8px;color:var(--tw-cloud);text-decoration:none}
.analysis-nav a[aria-current="page"]{background:rgba(255,107,61,.16);color:var(--tw-cloud);box-shadow:inset 0 -2px 0 var(--tw-coral)}
.analysis-nav a:hover{background:rgba(255,107,61,.10)}
.modes button.active{border-color:rgba(255,107,61,.78);box-shadow:inset 3px 0 0 var(--tw-coral),inset 0 1px 0 rgba(255,255,255,.08)}
.fallback-page{color:var(--tw-cloud);background:radial-gradient(circle at 15% 8%,rgba(255,107,61,.12),transparent 27rem),var(--tw-midnight)}
.fallback-page .tw-brand .brand-wordmark,.fallback-page .tw-brand .brand-wordmark span{color:var(--tw-cloud)}
.fallback-page .eyebrow{color:#D8DDE4}
@media(max-width:760px){.tw-brand .brand-wordmark{font-size:18px}.tw-brand .tw-version{display:none}.tw-brand .brand-icon{width:34px;height:34px;min-width:34px}}

/* ThisWay Liquid Glass — iOS 27-inspired chrome, never applied to data ramps. */
body:not(.fallback-page) header:not(.topbar):not(.site-header) .brand,
body:not(.fallback-page) header:not(.topbar):not(.site-header) nav,
.tw-light .topbar,
.tw-light .site-header,
body:not(.tw-light):not(.fallback-page) header,
body:not(.fallback-page) .places-tool,
body:not(.fallback-page) #panel,
.tw-light .planner,
.tw-light .filters,
.tw-light .results,
.tw-light .detail,
body:not(.fallback-page) .building-data,
body:not(.fallback-page) .timeline,
.tw-light .climate-dock,
.tw-light .climate-panel,
.tw-light .climate-layers,
.tw-light .legend,
.tw-light .place-popup{
  -webkit-backdrop-filter:blur(var(--tw-glass-blur)) saturate(135%);
  backdrop-filter:blur(var(--tw-glass-blur)) saturate(135%);
}

body:not(.tw-light):not(.fallback-page) header{
  background:linear-gradient(180deg,rgba(246,247,249,.76),rgba(246,247,249,.54))!important;
  border-color:var(--tw-glass-border-light)!important;
  box-shadow:0 9px 34px rgba(11,19,32,.09),inset 0 1px 0 rgba(255,255,255,.82);
}

body:not(.fallback-page) .places-tool,
body:not(.fallback-page) #panel,
body:not(.fallback-page) .timeline,
body:not(.fallback-page) .building-data,
.tw-light .planner,
.tw-light .filters,
.tw-light .results,
.tw-light .detail,
.tw-light .climate-dock,
.tw-light .climate-panel,
.tw-light .place-popup{
  background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(246,247,249,.60))!important;
  border-color:var(--tw-glass-border-light)!important;
  border-radius:20px;
  box-shadow:var(--tw-shadow)!important;
}

body:not(.fallback-page) .building-data,
body:not(.fallback-page) dialog,
body:not(.fallback-page) .date-popup,
body:not(.fallback-page) .place-results{
  background:linear-gradient(135deg,rgba(255,255,255,.93),var(--tw-glass-light-strong))!important;
  border-color:var(--tw-glass-border-light)!important;
  -webkit-backdrop-filter:blur(32px) saturate(135%);
  backdrop-filter:blur(32px) saturate(135%);
}

body:not(.fallback-page) .view-controls,
body:not(.fallback-page) .surface-control,
body:not(.fallback-page) .workspace-switch,
body:not(.fallback-page) .climate-layers,
body:not(.fallback-page) .map-tools button,
body:not(.fallback-page) .panel-reopen{
  background:rgba(246,247,249,.68)!important;
  border-color:var(--tw-glass-border-light)!important;
  border-radius:14px;
  box-shadow:0 8px 26px rgba(11,19,32,.10),inset 0 1px 0 rgba(255,255,255,.76);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
  backdrop-filter:blur(16px) saturate(135%);
}

body:not(.fallback-page) .analysis-nav a,
.tw-light header nav a,
.tw-light .workspace-switch a,
.tw-light .workspace-switch button,
.tw-light .site-header nav a{
  color:var(--tw-graphite);
  border-radius:12px;
  transition:background-color 160ms ease-out,border-color 160ms ease-out,color 160ms ease-out,transform 160ms ease-out;
}

body:not(.fallback-page) .analysis-nav a[aria-current="page"],
.tw-light .site-header nav a[aria-current="page"],
.tw-light .workspace-switch a[aria-current="page"],
.tw-light .workspace-switch button[aria-pressed="true"],
.tw-light button[aria-pressed="true"]:not([data-profile="green"]):not([data-profile="activity"]),
.tw-light .record[aria-current="true"]{
  background:rgba(255,107,61,.14)!important;
  border-color:var(--tw-coral-ui)!important;
  color:var(--tw-midnight)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62),inset 0 -2px 0 var(--tw-coral-ui)!important;
}

body:not(.fallback-page) input:not([type="range"]),
body:not(.fallback-page) select,
body:not(.fallback-page) textarea,
body:not(.fallback-page) .bd-stats,
body:not(.fallback-page) .route-climate,
body:not(.fallback-page) .analysis-streets{
  background:rgba(255,255,255,.86)!important;
  border-color:rgba(139,150,165,.30)!important;
}

body:not(.fallback-page) .bd-head{
  background:rgba(246,247,249,.62)!important;
  border-color:var(--tw-glass-border-light)!important;
}

.fallback-page header,
.fallback-page .panel,
.fallback-page .timeline,
.fallback-page .map-tools button{
  background:linear-gradient(135deg,var(--tw-glass-dark-strong),var(--tw-glass-dark))!important;
  border-color:var(--tw-glass-border-dark)!important;
  box-shadow:var(--tw-shadow-dark)!important;
  -webkit-backdrop-filter:blur(var(--tw-glass-blur)) saturate(135%);
  backdrop-filter:blur(var(--tw-glass-blur)) saturate(135%);
}

.fallback-page button:focus-visible,
.fallback-page a:focus-visible,
.fallback-page input:focus-visible,
.fallback-page select:focus-visible,
.fallback-page [tabindex]:focus-visible{outline-color:var(--tw-coral)}

@media(hover:hover){
  body:not(.fallback-page) .analysis-nav a:hover,
  .tw-light header nav a:hover,
  .tw-light .workspace-switch a:hover,
  .tw-light .workspace-switch button:hover{background:rgba(255,255,255,.34);border-color:rgba(139,150,165,.34)}
}

@media(max-width:760px){
  :root{--tw-glass-blur:18px}
  body:not(.fallback-page) .places-tool,
  body:not(.fallback-page) #panel,
  body:not(.fallback-page) .building-data,
  .tw-light .planner,
  .tw-light .filters,
  .tw-light .results,
  .tw-light .detail{border-radius:18px}
}

@media(prefers-contrast:more){
  :root{--tw-panel:rgba(255,255,255,.98);--tw-glass-border-light:#667180}
  body:not(.fallback-page) .places-tool,
  body:not(.fallback-page) #panel,
  body:not(.fallback-page) .timeline,
  body:not(.fallback-page) .building-data,
  .tw-light .planner,
  .tw-light .filters,
  .tw-light .results,
  .tw-light .detail{background:rgba(255,255,255,.98)!important}
}

@media(prefers-reduced-transparency:reduce){
  :root{--tw-panel:#fff}
  body:not(.fallback-page) header,
  body:not(.fallback-page) header .brand,
  body:not(.fallback-page) header nav,
  body:not(.fallback-page) .places-tool,
  body:not(.fallback-page) #panel,
  body:not(.fallback-page) .timeline,
  body:not(.fallback-page) .building-data,
  .tw-light .planner,
  .tw-light .filters,
  .tw-light .results,
  .tw-light .detail{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .fallback-page header,.fallback-page .panel,.fallback-page .timeline{background:var(--tw-midnight)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

@media(prefers-reduced-motion:reduce){
  body:not(.fallback-page) .analysis-nav a,
  .tw-light header nav a,
  .tw-light .workspace-switch a,
  .tw-light .workspace-switch button{transition:none}
}
