:root{
  --tw-ease:cubic-bezier(.22,1,.36,1);
  --tw-fast:180ms;
  --tw-medium:520ms;
  --tw-slow:1100ms;
}

/* One navigation plane across Carte, Maquette and Analyses. */
body.tw-experience:not(.fallback-page) header{
  top:16px;
  left:16px;
  right:16px;
  width:auto;
  height:64px;
  padding:0 16px;
  border:1px solid var(--tw-glass-border-dark)!important;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(31,42,58,.84),rgba(11,19,32,.68))!important;
  box-shadow:0 16px 44px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.10)!important;
  -webkit-backdrop-filter:blur(24px) saturate(125%)!important;
  backdrop-filter:blur(24px) saturate(125%)!important;
  z-index:30;
}
body.tw-experience header .brand,
body.tw-experience header nav,
body.tw-experience header .workspace-switch{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.tw-experience header .brand{padding:0;color:var(--tw-cloud)}
body.tw-experience header .tw-brand .brand-wordmark,
body.tw-experience header .tw-brand .brand-wordmark span{color:var(--tw-cloud)}
body.tw-experience header .tw-brand .brand-wordmark strong{color:var(--tw-coral)}
body.tw-experience header .tw-brand .tw-version{color:var(--tw-city-gray)}
body.tw-experience header nav{display:flex;align-items:center;gap:4px}
body.tw-experience header nav a,
body.tw-experience header .workspace-switch a,
body.tw-experience header .workspace-switch button{
  min-height:44px;
  padding:0 13px;
  color:var(--tw-cloud)!important;
  border:1px solid transparent!important;
  border-radius:12px;
  background:transparent!important;
  text-decoration:none;
  font-size:14px;
  font-weight:550;
  letter-spacing:-.01em;
  transition:background-color var(--tw-fast) ease-out,color var(--tw-fast) ease-out,border-color var(--tw-fast) ease-out;
}
body.tw-experience header nav a:hover,
body.tw-experience header .workspace-switch a:hover,
body.tw-experience header .workspace-switch button:hover{background:rgba(246,247,249,.09)!important;border-color:rgba(246,247,249,.12)!important}
body.tw-experience header nav a[aria-current="page"],
body.tw-experience header .workspace-switch a[aria-current="page"],
body.tw-experience header .workspace-switch button[aria-pressed="true"]{
  color:var(--tw-midnight)!important;
  background:var(--tw-coral)!important;
  border-color:var(--tw-coral)!important;
  box-shadow:none!important;
}
body.tw-experience header .round-button,
body.tw-experience header .subtle{
  color:var(--tw-cloud)!important;
  background:rgba(246,247,249,.08)!important;
  border-color:rgba(246,247,249,.14)!important;
}

/* Coral carries interface intent on the light map; categorical data keep their own palettes. */
body.tw-light.tw-experience{--blue:var(--tw-coral-ui)}
body.tw-light.tw-experience .map-filters button[aria-pressed="true"],
body.tw-light.tw-experience .profiles button[aria-pressed="true"],
body.tw-light.tw-experience .route-card[aria-pressed="true"],
body.tw-light.tw-experience .climate-layers button[aria-pressed="true"]{background:var(--tw-coral-soft);border-color:rgba(201,64,29,.42)}
body.tw-light.tw-experience .play-climate{background:var(--tw-coral-ui)}
body.tw-light.tw-experience .climate-scrub input{accent-color:var(--tw-coral-ui)}
body.tw-light.tw-experience .map-hint{background:var(--tw-midnight)}
body.tw-light.tw-experience .example-route{color:var(--tw-graphite);background:var(--tw-coral-soft)}
body.tw-light.tw-experience .example-route span{color:var(--tw-muted)}

/* Cinematic 3D surface: the scene is primary and chrome appears on intent. */
body.tw-cinematic{color:var(--tw-cloud);background:var(--tw-midnight)}
body.tw-cinematic #app{background:var(--tw-midnight)}
body.tw-cinematic #scene{background:var(--tw-midnight)}
body.tw-cinematic header{pointer-events:auto}
body.tw-cinematic header .brand{font-size:18px;letter-spacing:0}
body.tw-cinematic header .brand-icon{width:38px;height:38px;min-width:38px;padding:0;border-radius:11px}
body.tw-cinematic .cinematic-intro{
  position:absolute;
  inset:0;
  z-index:6;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  padding:118px clamp(24px,4.7vw,72px) clamp(30px,4.2vw,62px);
  overflow:hidden;
  pointer-events:none;
  isolation:isolate;
  transition:opacity var(--tw-medium) var(--tw-ease),transform var(--tw-medium) var(--tw-ease),visibility var(--tw-medium);
}
body.tw-cinematic .cinematic-intro::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(circle at 78% 47%,rgba(255,107,61,.11),transparent 24rem),
    linear-gradient(90deg,rgba(11,19,32,.97) 0%,rgba(11,19,32,.87) 37%,rgba(11,19,32,.40) 61%,rgba(11,19,32,.04) 82%);
}
body.tw-cinematic .cinematic-intro::after{
  content:"";
  position:absolute;
  left:clamp(24px,4.7vw,72px);
  right:clamp(24px,4.7vw,72px);
  bottom:88px;
  z-index:-1;
  height:1px;
  background:linear-gradient(90deg,var(--tw-coral),rgba(246,247,249,.16) 18%,rgba(246,247,249,.05));
  transform:scaleX(.22);
  transform-origin:left;
  transition:transform 900ms var(--tw-ease);
}
body.tw-cinematic .cinematic-copy{
  grid-column:1/9;
  align-self:end;
  padding-bottom:88px;
  max-width:1060px;
}
body.tw-cinematic .cinematic-kicker{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 24px;
  color:var(--tw-border);
  font-size:12px;
  font-weight:650;
  letter-spacing:.16em;
}
body.tw-cinematic .cinematic-kicker span{width:28px;height:2px;background:var(--tw-coral)}
body.tw-cinematic .cinematic-intro h1{
  margin:0;
  color:var(--tw-cloud);
  font-size:clamp(64px,9.5vw,150px);
  font-weight:650;
  line-height:.84;
  letter-spacing:-.068em;
  text-wrap:balance;
}
body.tw-cinematic .cinematic-intro h1>span{display:block;overflow:hidden;padding-right:.08em}
body.tw-cinematic .cinematic-intro h1 em{color:var(--tw-coral);font-style:normal}
body.tw-cinematic .cinematic-lede{max-width:40ch;margin:28px 0 0;color:var(--tw-border);font-size:18px;line-height:1.52}
body.tw-cinematic .cinematic-actions{display:flex;align-items:center;gap:10px;margin-top:30px;pointer-events:auto}
body.tw-cinematic .cinematic-actions button{
  min-height:50px;
  padding:0 19px;
  border-radius:14px;
  font-size:14px;
  font-weight:650;
  transition:transform var(--tw-fast) ease-out,background-color var(--tw-fast) ease-out,border-color var(--tw-fast) ease-out,color var(--tw-fast) ease-out;
}
body.tw-cinematic .cinematic-actions button:hover{transform:translateY(-2px)}
body.tw-cinematic .cinematic-primary{color:var(--tw-midnight);background:var(--tw-coral);border-color:var(--tw-coral)}
body.tw-cinematic .cinematic-primary:hover{color:var(--tw-midnight);background:#ff805b;border-color:#ff805b}
body.tw-cinematic .cinematic-signal{display:inline-flex;align-items:center;gap:10px;color:var(--tw-cloud);background:rgba(246,247,249,.06);border-color:rgba(246,247,249,.18)}
body.tw-cinematic .cinematic-signal span{width:8px;height:8px;border-radius:50%;background:var(--tw-coral);box-shadow:0 0 0 0 rgba(255,107,61,.32);transition:box-shadow var(--tw-medium) var(--tw-ease)}
body.tw-cinematic .cinematic-signal[aria-pressed="true"]{background:rgba(255,107,61,.14);border-color:rgba(255,107,61,.54)}
body.tw-cinematic .cinematic-signal[aria-pressed="true"] span{box-shadow:0 0 0 11px rgba(255,107,61,.10)}
body.tw-cinematic .cinematic-meta{
  position:absolute;
  left:clamp(24px,4.7vw,72px);
  right:clamp(24px,4.7vw,72px);
  bottom:38px;
  display:flex;
  justify-content:space-between;
  gap:24px;
  color:var(--tw-city-gray);
  font:600 11px/16px ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.08em;
}
body.tw-cinematic.is-signal .cinematic-intro::after{transform:scaleX(1)}
body.tw-cinematic.is-signal .cinematic-intro::before{background:radial-gradient(circle at 72% 49%,rgba(255,107,61,.19),transparent 31rem),linear-gradient(90deg,rgba(11,19,32,.97),rgba(11,19,32,.78) 43%,rgba(11,19,32,.12) 83%)}
body.tw-cinematic.is-workspace .cinematic-intro{opacity:0;visibility:hidden;transform:scale(1.015)}

body.tw-cinematic:not(.is-workspace) .map-title,
body.tw-cinematic:not(.is-workspace) .places-tool,
body.tw-cinematic:not(.is-workspace) #panel,
body.tw-cinematic:not(.is-workspace) .map-tools,
body.tw-cinematic:not(.is-workspace) .view-controls,
body.tw-cinematic:not(.is-workspace) footer,
body.tw-cinematic:not(.is-workspace) .shared-route-note{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(12px);
}
body.tw-cinematic .map-title,
body.tw-cinematic .places-tool,
body.tw-cinematic #panel,
body.tw-cinematic .map-tools,
body.tw-cinematic .view-controls,
body.tw-cinematic footer{
  transition:opacity 420ms var(--tw-ease),transform 420ms var(--tw-ease),visibility 420ms;
}
body.tw-cinematic .map-title{color:var(--tw-cloud);text-shadow:0 4px 28px rgba(0,0,0,.30)}
body.tw-cinematic .map-title h1{color:var(--tw-cloud)}
body.tw-cinematic .map-title p,body.tw-cinematic .map-title .eyebrow{color:var(--tw-border)}
body.tw-cinematic .places-tool,
body.tw-cinematic #panel,
body.tw-cinematic .view-controls,
body.tw-cinematic #selection{
  color:var(--tw-cloud);
  background:linear-gradient(135deg,rgba(31,42,58,.86),rgba(11,19,32,.72))!important;
  border-color:var(--tw-glass-border-dark)!important;
  box-shadow:var(--tw-shadow-dark)!important;
}
body.tw-cinematic .places-heading,
body.tw-cinematic #panel h2,
body.tw-cinematic #panel summary,
body.tw-cinematic #selection strong{color:var(--tw-cloud)}
body.tw-cinematic #panel .eyebrow,
body.tw-cinematic #panel .note,
body.tw-cinematic #panel details p,
body.tw-cinematic #selection small,
body.tw-cinematic footer{color:var(--tw-city-gray)}
body.tw-cinematic .street-modes,
body.tw-cinematic .view-controls{background:rgba(11,19,32,.62)!important;border-color:var(--tw-glass-border-dark)!important}
body.tw-cinematic .street-modes button,
body.tw-cinematic .view-controls button{color:var(--tw-border);background:transparent}
body.tw-cinematic .street-modes button[aria-pressed="true"],
body.tw-cinematic .view-controls button[aria-pressed="true"]{color:var(--tw-midnight);background:var(--tw-coral);border-color:var(--tw-coral)}
body.tw-cinematic .map-tools button{color:var(--tw-cloud);background:rgba(11,19,32,.72)!important;border-color:var(--tw-glass-border-dark)!important}
body.tw-cinematic .shared-route-note{color:var(--tw-cloud);background:rgba(11,19,32,.76);border-color:rgba(255,107,61,.38)}
body.tw-cinematic #loading{
  color:var(--tw-cloud);
  background:radial-gradient(circle at 50% 44%,rgba(31,42,58,.92),var(--tw-midnight) 58%);
}
body.tw-cinematic #loading::after{content:"";width:min(260px,62vw);height:2px;margin-top:24px;background:linear-gradient(90deg,transparent,var(--tw-coral),transparent);animation:tw-loading 1.3s var(--tw-ease) infinite}
body.tw-cinematic #loading .loadmark{color:var(--tw-cloud);font-size:clamp(42px,6vw,72px);font-weight:650;letter-spacing:-.065em}
body.tw-cinematic #loading .loadmark span{color:var(--tw-coral);font-size:12px;letter-spacing:.12em}
body.tw-cinematic #loading p{color:var(--tw-city-gray)}
body.tw-cinematic #loading a{color:var(--tw-cloud)}
body.tw-cinematic #loading[data-failed="true"]{
  position:absolute;
  inset:auto 32px 32px auto;
  align-items:flex-start;
  width:min(430px,calc(100% - 64px));
  min-height:0;
  padding:24px;
  border:1px solid var(--tw-glass-border-dark);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(31,42,58,.94),rgba(11,19,32,.88))!important;
  box-shadow:0 24px 72px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.1);
  text-align:left;
  -webkit-backdrop-filter:blur(24px) saturate(125%);
  backdrop-filter:blur(24px) saturate(125%);
}
body.tw-cinematic #loading[data-failed="true"]::after{display:none}
body.tw-cinematic #loading[data-failed="true"] .loadmark{font-size:28px}
body.tw-cinematic #loading[data-failed="true"] nav{justify-content:flex-start}
@keyframes tw-loading{0%{transform:scaleX(.2);opacity:.3}55%{transform:scaleX(1);opacity:1}100%{transform:scaleX(.2);opacity:.3}}

/* Keep embedded Analyses compact when it is opened inside Carte. */
html.embedded-analysis body.tw-experience header{
  top:0;
  left:0;
  right:0;
  height:42px;
  padding:4px 26px;
  border:0!important;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

@media(max-width:760px){
  body.tw-experience header{top:8px;left:8px;right:8px;height:54px;padding:0 8px;border-radius:15px}
  body.tw-experience header .tw-brand{gap:6px;min-height:44px}
  body.tw-experience header .brand-wordmark{font-size:16px}
  body.tw-experience header nav a,
  body.tw-experience header .workspace-switch a,
  body.tw-experience header .workspace-switch button{padding:0 8px;font-size:12px}
  body.tw-cinematic .cinematic-intro{padding:88px 18px 24px}
  body.tw-cinematic .cinematic-copy{grid-column:1/-1;padding-bottom:100px}
  body.tw-cinematic .cinematic-intro h1{font-size:clamp(52px,17vw,82px);line-height:.87}
  body.tw-cinematic .cinematic-lede{max-width:31ch;margin-top:20px;font-size:16px}
  body.tw-cinematic .cinematic-actions{align-items:stretch;flex-direction:column;width:min(100%,310px);margin-top:22px}
  body.tw-cinematic .cinematic-actions button{justify-content:center;width:100%}
  body.tw-cinematic .cinematic-intro::after{left:18px;right:18px;bottom:66px}
  body.tw-cinematic .cinematic-meta{left:18px;right:18px;bottom:20px}
  body.tw-cinematic .cinematic-meta span:last-child{display:none}
  body.tw-cinematic #loading[data-failed="true"]{inset:auto 12px 12px;width:calc(100% - 24px);padding:18px}
}
@media(max-width:560px){
  body.tw-experience header .brand-wordmark,
  body.tw-experience header .tw-version{display:none}
  body.tw-experience header nav a,
  body.tw-experience header .workspace-switch a,
  body.tw-experience header .workspace-switch button{padding:0 6px;font-size:11px}
  body.tw-cinematic .cinematic-kicker{margin-bottom:18px;font-size:10px}
}
@media(prefers-reduced-transparency:reduce){
  body.tw-experience:not(.fallback-page) header,
  body.tw-cinematic .places-tool,
  body.tw-cinematic #panel,
  body.tw-cinematic .view-controls,
  body.tw-cinematic #selection{background:var(--tw-midnight)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
@media(prefers-contrast:more){
  body.tw-experience:not(.fallback-page) header{background:var(--tw-midnight)!important;border-color:var(--tw-cloud)!important}
  body.tw-cinematic .places-tool,body.tw-cinematic #panel,body.tw-cinematic .view-controls{background:var(--tw-midnight)!important;border-color:var(--tw-cloud)!important}
}
@media(prefers-reduced-motion:reduce){
  body.tw-cinematic .cinematic-intro,
  body.tw-cinematic .map-title,
  body.tw-cinematic .places-tool,
  body.tw-cinematic #panel,
  body.tw-cinematic .map-tools,
  body.tw-cinematic .view-controls,
  body.tw-cinematic footer{transition:none}
  body.tw-cinematic #loading::after{animation:none;transform:none;opacity:1}
}
