/* MARK VI analysis cockpit — the landing-page lens language, extended to data tools. */
body.tw-analysis{
  color-scheme:dark;
  --analysis-midnight:#0B1320;
  --analysis-graphite:#1F2A3A;
  --analysis-cloud:#F6F7F9;
  --analysis-coral:#FF6B3D;
  --analysis-coral-hot:#ff8a66;
  --analysis-city:#8B96A5;
  --analysis-line:rgba(246,247,249,.16);
  --analysis-line-strong:rgba(246,247,249,.28);
  --analysis-glass:linear-gradient(135deg,rgba(31,42,58,.88),rgba(11,19,32,.76));
  --analysis-glass-solid:linear-gradient(145deg,rgba(31,42,58,.98),rgba(11,19,32,.97));
  --analysis-shadow:0 18px 46px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.07);
  --places-navy:#183074;
  --places-ink:#172b60;
  --places-muted:#617087;
  --analysis-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  --analysis-ease:cubic-bezier(.22,.8,.24,1);
  margin:0;
  overflow:hidden;
  background:#000;
  color:var(--analysis-cloud);
}

body.tw-analysis #app{
  color:var(--analysis-cloud);
  background:
    radial-gradient(circle at 62% 30%,rgba(255,107,61,.04),transparent 30%),
    #000;
}

body.tw-analysis #scene{background:#000;filter:saturate(.92) contrast(1.05)}

body.tw-analysis button,
body.tw-analysis input,
body.tw-analysis select{font-family:inherit}

body.tw-analysis button,
body.tw-analysis a,
body.tw-analysis input,
body.tw-analysis select{transition:color 180ms ease,background-color 180ms ease,border-color 180ms ease,transform 180ms var(--analysis-ease),box-shadow 180ms ease}

body.tw-analysis :is(button,a,input,select,summary,canvas):focus-visible{
  outline:2px solid var(--analysis-coral)!important;
  outline-offset:3px!important;
}

body.tw-analysis ::selection{color:var(--analysis-midnight);background:var(--analysis-coral)}

/* Separated signature and navigation capsules. */
body.tw-analysis .analysis-header{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  width:auto;
  height:58px;
  padding:0;
  overflow:visible;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  z-index:9;
}

body.tw-analysis .analysis-signature{
  position:relative;
  min-height:58px;
  margin-left:12px;
  padding:0;
  gap:14px;
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}

body.tw-analysis .analysis-signature .brand-icon{
  display:block;
  width:50px;
  height:50px;
  min-width:50px;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 0 16px rgba(255,107,61,.22));
  transform-origin:center;
  animation:analysis-mark-arrive 820ms var(--analysis-ease) both;
}

body.tw-analysis .analysis-signature .brand-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform 260ms var(--analysis-ease);
}

body.tw-analysis .analysis-signature .brand-wordmark{
  display:inline-flex;
  align-items:baseline;
  margin:0;
  color:var(--analysis-cloud);
  font-size:32px;
  font-weight:520;
  line-height:1;
  letter-spacing:-.055em;
  text-shadow:0 8px 28px rgba(0,0,0,.34);
  animation:analysis-wordmark-arrive 820ms 80ms var(--analysis-ease) both;
}

body.tw-analysis .analysis-signature .brand-wordmark span{color:var(--analysis-cloud);font-size:inherit;font-weight:520}
body.tw-analysis .analysis-signature .brand-wordmark strong{color:var(--analysis-coral);font-weight:620}
body.tw-analysis .analysis-signature .tw-version{display:none}
body.tw-analysis .analysis-signature:hover .brand-icon{filter:drop-shadow(0 0 22px rgba(255,107,61,.4))}
body.tw-analysis .analysis-signature:hover .brand-icon img{transform:translateX(3px) rotate(2deg) scale(1.04)}

body.tw-analysis .header-right{display:flex;align-items:center;gap:18px;height:58px}
body.tw-analysis .version{
  max-width:220px;
  color:rgba(246,247,249,.62);
  font:600 9px/1.35 var(--analysis-mono);
  letter-spacing:.09em;
  text-transform:uppercase;
}

body.tw-analysis .analysis-nav{display:flex;align-items:center;gap:12px;height:58px;overflow:visible}
body.tw-analysis .analysis-nav-core{
  position:relative;
  display:flex;
  align-items:center;
  height:58px;
  padding:0 8px;
  border:1px solid var(--analysis-line);
  border-radius:14px;
  color:var(--analysis-cloud);
  background:var(--analysis-glass);
  box-shadow:var(--analysis-shadow);
  -webkit-backdrop-filter:blur(22px) saturate(130%);
  backdrop-filter:blur(22px) saturate(130%);
  animation:analysis-nav-arrive 700ms 70ms var(--analysis-ease) both;
}

body.tw-analysis .analysis-nav-link{
  position:relative;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:78px;
  min-height:46px;
  padding:0 12px!important;
  overflow:hidden;
  color:var(--analysis-cloud)!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
  font:600 12px/1 var(--analysis-mono)!important;
  letter-spacing:.035em;
  text-decoration:none;
  text-transform:uppercase;
}

body.tw-analysis .analysis-nav-link::before{
  content:"";
  position:absolute;
  inset:6px 3px;
  z-index:-1;
  border-radius:9px;
  background:var(--analysis-cloud);
  opacity:0;
  transform:scale3d(.88,.62,1);
  transition:transform 200ms cubic-bezier(.645,.045,.355,1),opacity 200ms cubic-bezier(.645,.045,.355,1);
}

body.tw-analysis .analysis-nav-link:hover,
body.tw-analysis .analysis-nav-link:focus-visible{color:var(--analysis-midnight)!important;border-color:transparent!important;background:transparent!important;transform:translateY(-1px)}
body.tw-analysis .analysis-nav-link:hover::before,
body.tw-analysis .analysis-nav-link:focus-visible::before{opacity:1;transform:scale3d(1,1,1)}
body.tw-analysis .analysis-nav .analysis-nav-link[aria-current="page"]{color:var(--analysis-cloud)!important;border-color:transparent!important;background:transparent!important;box-shadow:none!important}

body.tw-analysis .analysis-active-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--analysis-coral);
  box-shadow:0 0 13px rgba(255,107,61,.74);
}

body.tw-analysis .analysis-nav-action{
  position:relative;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:94px;
  min-height:58px!important;
  padding:0 18px!important;
  overflow:hidden;
  border:1px solid transparent!important;
  border-radius:14px!important;
  box-shadow:0 14px 34px rgba(0,0,0,.22)!important;
  font:600 12px/1 var(--analysis-mono)!important;
  letter-spacing:.045em!important;
  text-decoration:none;
  text-transform:uppercase;
  animation:analysis-nav-arrive 700ms var(--analysis-ease) both;
}

body.tw-analysis .analysis-nav-action::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  opacity:0;
  transform:scale3d(.9,.7,1);
  transition:transform 200ms cubic-bezier(.645,.045,.355,1),opacity 200ms cubic-bezier(.645,.045,.355,1);
}

body.tw-analysis .analysis-nav-action:hover,
body.tw-analysis .analysis-nav-action:focus-visible{transform:translateY(-2px);box-shadow:0 18px 40px rgba(0,0,0,.3)!important}
body.tw-analysis .analysis-nav-action:hover::before,
body.tw-analysis .analysis-nav-action:focus-visible::before{opacity:1;transform:scale3d(1,1,1)}
body.tw-analysis .analysis-nav-compare{color:var(--analysis-midnight)!important;background:rgba(246,247,249,.82)!important;border-color:rgba(255,255,255,.38)!important;animation-delay:140ms}
body.tw-analysis .analysis-nav-compare::before{background:var(--analysis-city)}
body.tw-analysis .analysis-nav-primary{min-width:108px;color:var(--analysis-midnight)!important;background:var(--analysis-coral)!important;border-color:rgba(255,107,61,.72)!important;animation-delay:210ms;cursor:pointer}
body.tw-analysis .analysis-nav-primary::before{background:var(--analysis-coral-hot)}

/* Scene annotation. */
body.tw-analysis .scene-vignette{
  display:block;
  inset:0;
  background:
    linear-gradient(180deg,rgba(11,19,32,.2),transparent 24%,transparent 75%,rgba(11,19,32,.2)),
    radial-gradient(ellipse at 48% 43%,transparent 30%,rgba(4,9,16,.18) 94%);
}

body.tw-analysis .map-title{top:108px;left:132px;color:var(--analysis-cloud);text-shadow:0 8px 28px rgba(0,0,0,.42)}
body.tw-analysis .map-title .eyebrow{
  display:flex;
  align-items:center;
  gap:9px;
  color:rgba(246,247,249,.66);
  font:650 10px/1 var(--analysis-mono);
  letter-spacing:.14em;
}
body.tw-analysis .map-title .eyebrow::before{content:"";width:18px;height:2px;border-radius:2px;background:var(--analysis-coral);box-shadow:0 0 12px rgba(255,107,61,.5)}
body.tw-analysis .map-title h1{margin:10px 0 7px;color:var(--analysis-cloud);font-size:32px;font-weight:630;letter-spacing:-.055em}
body.tw-analysis .map-title p{color:rgba(246,247,249,.68);font-size:13px}

/* Shared glass treatment for every workspace surface. */
body.tw-analysis :is(.modes,.panel,.timeline,.places-tool,.view-controls,.surface-control,.map-tools button,.panel-reopen,.building-data){
  border-color:var(--analysis-line)!important;
  background:var(--analysis-glass)!important;
  box-shadow:var(--analysis-shadow)!important;
  -webkit-backdrop-filter:blur(22px) saturate(128%);
  backdrop-filter:blur(22px) saturate(128%);
}

/* Left analysis rail. */
body.tw-analysis .modes{
  left:18px;
  top:96px;
  bottom:calc(var(--timeline-height) + var(--timeline-bottom) + 30px);
  width:94px;
  gap:4px;
  padding:6px;
  overflow-x:hidden;
  border:1px solid var(--analysis-line);
  border-radius:18px;
  scrollbar-color:rgba(255,107,61,.48) transparent;
  animation:analysis-rail-arrive 760ms 120ms var(--analysis-ease) both;
}

body.tw-analysis .modes button{
  position:relative;
  isolation:isolate;
  width:80px;
  min-height:53px;
  flex-shrink:0;
  gap:4px;
  padding:7px 3px;
  overflow:hidden;
  border:1px solid transparent!important;
  border-radius:12px;
  background:transparent!important;
  color:rgba(246,247,249,.82)!important;
  box-shadow:none!important;
  font-size:12px;
  animation:analysis-mode-arrive 520ms var(--analysis-ease) both;
}

body.tw-analysis .modes button::before{
  content:"";
  position:absolute;
  inset:4px;
  z-index:0;
  border-radius:10px;
  background:var(--analysis-cloud);
  opacity:0;
  transform:scale3d(.84,.62,1);
  transition:transform 200ms cubic-bezier(.645,.045,.355,1),opacity 200ms cubic-bezier(.645,.045,.355,1),background-color 200ms ease;
}

body.tw-analysis .modes button::after{
  content:"";
  position:absolute;
  inset:5px;
  z-index:0;
  border:1px solid rgba(255,107,61,.72);
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  transform:scale(.68);
}

body.tw-analysis .modes button>span,
body.tw-analysis .modes button>b{position:relative;z-index:1}
body.tw-analysis .modes #incidenceSolar>span{display:flex!important;opacity:1!important;visibility:visible!important}

body.tw-analysis .modes button:hover,
body.tw-analysis .modes button:focus-visible{
  color:var(--analysis-midnight)!important;
  border-color:transparent!important;
  background:transparent!important;
  transform:translateX(2px);
}

body.tw-analysis .modes button:hover::before,
body.tw-analysis .modes button:focus-visible::before{opacity:1;transform:scale3d(1,1,1)}

body.tw-analysis .modes button.active,
body.tw-analysis .modes button[aria-expanded="true"]{
  color:var(--analysis-midnight)!important;
  border-color:var(--analysis-coral)!important;
  background:var(--analysis-coral)!important;
  box-shadow:0 8px 20px rgba(255,107,61,.2)!important;
}
body.tw-analysis .modes button.active::before,
body.tw-analysis .modes button[aria-expanded="true"]::before{background:transparent!important;opacity:0!important;transform:scale3d(1,1,1)}
body.tw-analysis .modes button.active>span,
body.tw-analysis .modes button.active>b{color:var(--analysis-midnight)!important;opacity:1!important;visibility:visible!important}
body.tw-analysis .modes button:active{transform:scale(.92)}
body.tw-analysis .modes button.is-tapping{animation:analysis-mode-tap 430ms cubic-bezier(.2,.9,.25,1) both}
body.tw-analysis .modes button.is-tapping::after{animation:analysis-mode-ring 430ms ease-out both}
body.tw-analysis .modes button.is-tapping>span{animation:analysis-mode-icon-tap 430ms cubic-bezier(.2,.9,.25,1) both}
body.tw-analysis .modes button:nth-child(2){animation-delay:35ms}
body.tw-analysis .modes button:nth-child(3){animation-delay:70ms}
body.tw-analysis .modes button:nth-child(4){animation-delay:105ms}
body.tw-analysis .modes button:nth-child(5){animation-delay:140ms}
body.tw-analysis .modes button:nth-child(6){animation-delay:175ms}
body.tw-analysis .modes button:nth-child(7){animation-delay:210ms}
body.tw-analysis .modes button:nth-child(8){animation-delay:245ms}
body.tw-analysis .modes button:nth-child(9){animation-delay:280ms}
body.tw-analysis .modes button:nth-child(10){animation-delay:315ms}
body.tw-analysis .modes button b{font:600 10px/1.1 var(--analysis-mono);letter-spacing:.01em}
body.tw-analysis .modes svg{stroke-width:1.7}

/* Floating view and surface controls. */
body.tw-analysis .surface-control{left:132px;top:211px;padding:4px;border:1px solid var(--analysis-line);border-radius:13px}
body.tw-analysis .surface-control button,
body.tw-analysis .view-controls button{
  min-height:38px;
  border:1px solid transparent!important;
  border-radius:9px;
  background:transparent!important;
  color:rgba(246,247,249,.66)!important;
  font:600 11px/1 var(--analysis-mono);
  letter-spacing:.02em;
}
body.tw-analysis .surface-control button:hover,
body.tw-analysis .view-controls button:hover{color:var(--analysis-cloud)!important;background:rgba(246,247,249,.08)!important}
body.tw-analysis .surface-control button[aria-pressed="true"],
body.tw-analysis .view-controls button[aria-pressed="true"]{color:var(--analysis-cloud)!important;border-color:rgba(255,107,61,.36)!important;background:rgba(255,107,61,.16)!important;box-shadow:inset 0 -2px 0 var(--analysis-coral)}
body.tw-analysis .view-controls{left:46%;gap:3px;padding:5px;border:1px solid var(--analysis-line);border-radius:14px}
body.tw-analysis .view-controls .view-separator{border-color:var(--analysis-line)}

body.tw-analysis .map-tools{right:360px;top:100px;gap:7px}
body.tw-analysis .map-tools{transition:right 280ms var(--analysis-ease)}
body.tw-analysis .map-tools button,
body.tw-analysis .panel-reopen{
  color:rgba(246,247,249,.76)!important;
  border:1px solid var(--analysis-line)!important;
  border-radius:11px!important;
}
body.tw-analysis .map-tools button:hover,
body.tw-analysis .panel-reopen:hover{color:var(--analysis-midnight)!important;background:var(--analysis-cloud)!important;transform:translateY(-1px)}
body.tw-analysis #compassNeedle{color:var(--analysis-coral)}
body.tw-analysis #app:has(.panel[hidden]) .map-tools{right:18px;top:96px}

/* Address and route popover. */
body.tw-analysis .places-tool{
  --places-navy:#183074;
  --places-ink:#172b60;
  --places-muted:#617087;
  left:132px;
  top:266px;
  width:clamp(318px,24vw,350px);
  padding:0;
  overflow:auto;
  border:1px solid rgba(255,255,255,.8)!important;
  border-radius:18px;
  background:#f8f9fb!important;
  color:var(--places-ink);
  box-shadow:0 22px 58px rgba(0,0,0,.34)!important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  scrollbar-color:#a6b0bf transparent;
  transition:width 260ms var(--analysis-ease),max-height 260ms var(--analysis-ease),box-shadow 180ms ease;
  animation:analysis-panel-arrive 720ms 170ms var(--analysis-ease) both;
}
body.tw-analysis section.places-tool{background:#f8f9fb!important}
body.tw-analysis .places-heading{min-height:52px;padding:0 14px 0 17px;color:var(--places-navy);border-bottom:1px solid #dce2e8;background:#fff;font:700 12px/1.2 var(--analysis-mono);letter-spacing:.05em;text-transform:uppercase}
body.tw-analysis .places-heading button,
body.tw-analysis .place-close{color:var(--places-navy)!important;background:transparent!important;border:0!important}
body.tw-analysis .places-heading button:hover,
body.tw-analysis .place-close:hover{color:var(--analysis-coral)!important;transform:rotate(4deg)}
body.tw-analysis #placesBody3d{padding:12px 14px 14px;transition:opacity 160ms ease,transform 260ms var(--analysis-ease)}
body.tw-analysis .places-tabs{margin:0 0 12px;padding:0 0 10px;border-color:#dce2e8}
body.tw-analysis .places-tabs button,
body.tw-analysis .route-profiles-3d button,
body.tw-analysis .route-actions-3d button,
body.tw-analysis .place-detail-3d>div button{
  min-height:38px;
  color:var(--places-ink)!important;
  border:1px solid #d8dfe7!important;
  background:#fff!important;
  font:650 12px/1 var(--analysis-mono);
}
body.tw-analysis .places-tabs button[aria-pressed="true"],
body.tw-analysis .route-profiles-3d button[aria-pressed="true"],
body.tw-analysis .route-actions-3d .place-primary{
  color:#fff!important;
  border-color:var(--places-navy)!important;
  background:var(--places-navy)!important;
}
body.tw-analysis .street-tools-body select,
body.tw-analysis .field select,
body.tw-analysis .field input[type="number"],
body.tw-analysis .bd-field input,
body.tw-analysis .bd-field select,
body.tw-analysis #compareMetric{
  color:var(--analysis-cloud)!important;
  border:1px solid var(--analysis-line)!important;
  border-radius:10px!important;
  background:rgba(11,19,32,.78)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
body.tw-analysis .places-tool .place-input{
  display:block;
  min-height:56px;
  padding:0 17px;
  color:var(--places-ink)!important;
  border:2px solid #cfd7e0!important;
  border-radius:14px!important;
  background:#eef1f4!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  font:560 15px/1.25 var(--analysis-mono);
}
body.tw-analysis .places-tool .place-input:focus{
  border-color:var(--analysis-coral)!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(255,107,61,.16),inset 0 1px 0 #fff;
  outline:0!important;
}
body.tw-analysis .places-tool .place-input::placeholder{color:#7b8798;opacity:1}
body.tw-analysis :is(select,input)::placeholder{color:rgba(246,247,249,.42)}
body.tw-analysis select option{color:var(--analysis-cloud);background:var(--analysis-graphite)}
body.tw-analysis .place-results{
  max-height:340px;
  margin-top:8px;
  overflow:auto;
  border:1px solid #dce2e8;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 28px rgba(25,48,89,.12);
}
body.tw-analysis .place-results button.place-result{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) 18px;
  align-items:center;
  gap:13px;
  width:100%;
  min-height:84px;
  padding:12px 14px;
  color:var(--places-ink);
  border:0;
  border-bottom:1px solid #e6eaef;
  border-radius:0;
  background:#fff;
  text-align:left;
}
body.tw-analysis .place-results button.place-result:last-child{border-bottom:0}
body.tw-analysis .place-results button:hover,
body.tw-analysis .place-results button[aria-selected="true"]{color:var(--places-ink);background:#fff0eb;box-shadow:inset 4px 0 0 var(--analysis-coral)}
body.tw-analysis .place-result-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:12px;background:#eef1f4;color:var(--places-navy);transition:color 180ms ease,background-color 180ms ease,transform 180ms var(--analysis-ease)}
body.tw-analysis .place-result-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.tw-analysis .place-result-copy{display:block;min-width:0}
body.tw-analysis .place-result-copy strong{display:block;overflow:hidden;color:var(--places-navy);font:650 15px/1.28 var(--analysis-mono);text-overflow:ellipsis;white-space:nowrap}
body.tw-analysis .place-result-copy small{display:-webkit-box;margin-top:5px;overflow:hidden;color:var(--places-muted);font:520 12px/1.35 var(--analysis-mono);-webkit-box-orient:vertical;-webkit-line-clamp:2}
body.tw-analysis .place-result-arrow{color:#8a95a6;font-size:14px;transition:color 180ms ease,transform 180ms var(--analysis-ease)}
body.tw-analysis .place-results button:hover .place-result-icon,
body.tw-analysis .place-results button[aria-selected="true"] .place-result-icon{color:#fff;background:var(--analysis-coral);transform:scale(1.04)}
body.tw-analysis .place-results button:hover .place-result-arrow,
body.tw-analysis .place-results button[aria-selected="true"] .place-result-arrow{color:var(--analysis-coral);transform:translate(2px,-2px)}
body.tw-analysis .place-results p{padding:16px;color:var(--places-muted);font:550 13px/1.45 var(--analysis-mono)}
body.tw-analysis .place-source,
body.tw-analysis #routeStatus3d,
body.tw-analysis #routeCoverage3d,
body.tw-analysis .place-detail-3d p{color:var(--places-muted)}
body.tw-analysis .place-detail-3d,
body.tw-analysis #routeResult3d details{border-color:#dce2e8;color:var(--places-muted)}
body.tw-analysis .place-detail-3d strong,
body.tw-analysis #routeMetrics3d{color:var(--places-navy)}
body.tw-analysis .route-field-3d label{color:var(--analysis-coral);font:750 13px/1 var(--analysis-mono)}
body.tw-analysis #routePreview3d{background:#eef1f4;border:1px solid #d7dee6}

/* Right inspector: one vertical coral signal anchors the hierarchy. */
body.tw-analysis .panel{
  top:96px;
  right:18px;
  width:clamp(282px,22vw,312px);
  max-height:calc(100% - 124px - var(--timeline-height) - var(--timeline-bottom));
  padding:22px;
  overflow-x:hidden;
  border:1px solid var(--analysis-line);
  border-radius:18px;
  color:var(--analysis-cloud);
  scrollbar-color:rgba(255,107,61,.48) transparent;
  transition:clip-path 300ms var(--analysis-ease),-webkit-clip-path 300ms var(--analysis-ease),box-shadow 180ms ease;
  animation:analysis-panel-arrive 720ms 140ms var(--analysis-ease) both;
}
body.tw-analysis #panel{
  border-color:var(--analysis-line)!important;
  background:var(--analysis-glass)!important;
  box-shadow:var(--analysis-shadow)!important;
}
body.tw-analysis .panel::after{
  content:"INFOS";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  display:grid;
  width:48px;
  place-items:center;
  color:rgba(246,247,249,.72);
  border-left:1px solid var(--analysis-line);
  background:linear-gradient(180deg,rgba(255,107,61,.16),rgba(11,19,32,.92) 24%,rgba(11,19,32,.92) 76%,rgba(255,107,61,.12));
  font:700 9px/1 var(--analysis-mono);
  letter-spacing:.18em;
  opacity:0;
  pointer-events:none;
  text-orientation:mixed;
  transform:rotate(180deg);
  transition:opacity 150ms ease;
  writing-mode:vertical-rl;
}
body.tw-analysis .panel>*{transition:opacity 150ms ease}
body.tw-analysis .panel::before,
body.tw-analysis .building-data::before{
  content:"";
  position:absolute;
  top:20px;
  bottom:20px;
  left:0;
  width:2px;
  border-radius:0 2px 2px 0;
  background:linear-gradient(180deg,transparent,var(--analysis-coral) 18%,var(--analysis-coral) 82%,transparent);
  opacity:.78;
  pointer-events:none;
}
body.tw-analysis .panel-head .eyebrow,
body.tw-analysis .panel .eyebrow{color:var(--analysis-coral);font:650 10px/1 var(--analysis-mono);letter-spacing:.13em}
body.tw-analysis .panel-head .icon-button{color:rgba(246,247,249,.62)!important;background:transparent!important;border:0!important}
body.tw-analysis .panel-head .icon-button:hover{color:var(--analysis-coral)!important;transform:rotate(4deg)}
body.tw-analysis .panel h2{color:var(--analysis-cloud);font-size:25px;font-weight:610;letter-spacing:-.045em}
body.tw-analysis .panel p,
body.tw-analysis .panel .street-context,
body.tw-analysis .panel .street-method p{color:rgba(246,247,249,.62)}
body.tw-analysis .panel a{color:var(--analysis-coral)}
body.tw-analysis .panel summary{color:rgba(246,247,249,.8)}
body.tw-analysis .panel details{border-color:var(--analysis-line)}
body.tw-analysis .stat-grid dt,
body.tw-analysis .layer,
body.tw-analysis .field{color:rgba(246,247,249,.58)}
body.tw-analysis .stat-grid dd{color:var(--analysis-cloud)}
body.tw-analysis input[type="checkbox"],
body.tw-analysis input[type="radio"]{accent-color:var(--analysis-coral)}
body.tw-analysis .note{color:rgba(246,247,249,.6)!important;border-color:var(--analysis-coral)}
body.tw-analysis :is(.button-wide,#landscapeFocus,#buildingsOnly,.street-actions button){
  color:rgba(246,247,249,.78)!important;
  border-color:var(--analysis-line)!important;
  background:rgba(246,247,249,.05)!important;
}
body.tw-analysis :is(.button-wide,#landscapeFocus,#buildingsOnly,.street-actions button):hover{color:var(--analysis-midnight)!important;border-color:var(--analysis-coral)!important;background:var(--analysis-coral)!important}

body.tw-analysis .panel details.analysis-streets{
  margin:0 0 20px;
  border:1px solid var(--analysis-line)!important;
  border-radius:13px;
  background:rgba(11,19,32,.42)!important;
}
body.tw-analysis .analysis-streets>summary{color:var(--analysis-cloud);font:650 11px/1.3 var(--analysis-mono);letter-spacing:.03em}
body.tw-analysis .analysis-streets>summary>span,
body.tw-analysis .street-tools-body>label,
body.tw-analysis #analysisStreetSummary,
body.tw-analysis #analysisStreetQualityNote,
body.tw-analysis #analysisStreetLegend{color:rgba(246,247,249,.52)!important}
body.tw-analysis .street-layer-grid{color:rgba(246,247,249,.68)}
body.tw-analysis #analysisStreetDetails article,
body.tw-analysis .panel .street-method{border-color:var(--analysis-line)}
body.tw-analysis #analysisStreetDetails :is(strong,span,small){color:rgba(246,247,249,.62)}
body.tw-analysis #analysisStreetDetails strong{color:var(--analysis-coral)}

/* The data drawer follows the same inspector logic. */
body.tw-analysis .building-data{
  top:96px;
  right:18px;
  width:382px;
  border:1px solid var(--analysis-line);
  border-radius:18px;
  color:var(--analysis-cloud);
  animation:analysis-panel-arrive 560ms var(--analysis-ease) both;
}
body.tw-analysis .bd-head{padding:17px 19px;border-color:var(--analysis-line);background:rgba(11,19,32,.32)}
body.tw-analysis .bd-head h2,
body.tw-analysis .bd-detail h3,
body.tw-analysis .bd-stats strong{color:var(--analysis-cloud)}
body.tw-analysis .bd-head p{color:var(--analysis-coral);font:650 9px/1.3 var(--analysis-mono);letter-spacing:.09em;text-transform:uppercase}
body.tw-analysis .bd-head button{color:rgba(246,247,249,.7);border-color:var(--analysis-line);background:rgba(246,247,249,.04)}
body.tw-analysis .bd-head button:hover{color:var(--analysis-midnight);border-color:var(--analysis-coral);background:var(--analysis-coral);transform:rotate(4deg)}
body.tw-analysis #buildingDataBody{scrollbar-color:rgba(255,107,61,.48) transparent}
body.tw-analysis .building-data .bd-note,
body.tw-analysis .bd-source,
body.tw-analysis .building-data dt,
body.tw-analysis .bd-id,
body.tw-analysis .bd-field{color:rgba(246,247,249,.78)!important}
body.tw-analysis .building-data dd,
body.tw-analysis .bd-list button,
body.tw-analysis .bd-legend button,
body.tw-analysis .building-data summary{color:rgba(246,247,249,.92)!important}
body.tw-analysis .bd-stats{
  border-color:rgba(246,247,249,.2)!important;
  background:linear-gradient(145deg,rgba(31,42,58,.94),rgba(11,19,32,.9))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
body.tw-analysis .bd-head h2,
body.tw-analysis .bd-detail h3,
body.tw-analysis .bd-stats strong{color:var(--analysis-cloud)!important}
body.tw-analysis .bd-stats span,
body.tw-analysis .bd-stats p,
body.tw-analysis .bd-legend b,
body.tw-analysis .bd-list small{color:rgba(246,247,249,.8)!important}
body.tw-analysis .bd-themes button,
body.tw-analysis .bd-legend button,
body.tw-analysis .bd-chips button,
body.tw-analysis .bd-action{
  color:rgba(246,247,249,.7);
  border-color:var(--analysis-line);
  background:rgba(246,247,249,.04);
}
body.tw-analysis .bd-themes button:hover,
body.tw-analysis .bd-legend button:hover,
body.tw-analysis .bd-list button:hover{background:rgba(246,247,249,.08)}
body.tw-analysis .bd-themes button[aria-pressed="true"],
body.tw-analysis .bd-legend button[aria-pressed="true"],
body.tw-analysis .bd-action{color:var(--analysis-midnight);border-color:var(--analysis-coral);background:var(--analysis-coral)}
body.tw-analysis .building-data :is(details,.bd-detail,.bd-source,.bd-list button,dl>div){border-color:var(--analysis-line)}
body.tw-analysis .bd-reset,
body.tw-analysis .bd-source a{color:var(--analysis-coral)}
body.tw-analysis #app.building-data-open .map-tools{right:418px}

/* Timeline dock: a long-form counterpart to the lens control dock. */
body.tw-analysis .timeline{
  width:min(1060px,calc(100% - 44px));
  bottom:18px;
  padding:12px 18px 10px;
  overflow:visible;
  border:1px solid var(--analysis-line);
  border-radius:18px;
  color:var(--analysis-cloud);
  animation:analysis-timeline-arrive 760ms 210ms var(--analysis-ease) both;
}
body.tw-analysis .timeline::before{
  content:"";
  position:absolute;
  top:-1px;
  left:22px;
  width:112px;
  height:2px;
  border-radius:0 0 2px 2px;
  background:linear-gradient(90deg,var(--analysis-coral),transparent);
}
body.tw-analysis .timeline-top{gap:20px}
body.tw-analysis .date-trigger{
  min-height:38px;
  padding:6px 10px;
  color:var(--analysis-cloud);
  border:1px solid var(--analysis-line);
  border-radius:10px;
  background:rgba(246,247,249,.055);
  font:600 14px/1 var(--analysis-mono);
}
body.tw-analysis .date-trigger::after{color:var(--analysis-coral)}
body.tw-analysis .date-trigger:hover,
body.tw-analysis .date-trigger[aria-expanded="true"]{border-color:rgba(255,107,61,.55);background:rgba(255,107,61,.12)}
body.tw-analysis .date-popup{
  padding:0;
  color:var(--places-ink)!important;
  border:1px solid #dce2e8!important;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(238,241,244,.96))!important;
  box-shadow:0 12px 28px rgba(25,48,89,.18),inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(26px) saturate(130%);
  backdrop-filter:blur(26px) saturate(130%);
  scrollbar-color:rgba(255,107,61,.5) transparent;
}
body.tw-analysis .date-popup:not([hidden]){animation:analysis-picker-open 180ms var(--analysis-ease) both;transform-origin:50% 100%}
body.tw-analysis .date-popup [role="option"]{
  min-height:38px;
  padding:9px 12px;
  color:var(--places-navy)!important;
  border-bottom:1px solid #e6eaef;
  border-radius:0;
  background:rgba(255,255,255,.92)!important;
  font:600 13px/1.4 var(--analysis-mono);
}
body.tw-analysis .date-popup [role="option"]:last-child{border-bottom:0}
body.tw-analysis .date-popup [role="option"]:hover,
body.tw-analysis .date-popup .keyboard-active,
body.tw-analysis .date-popup [aria-selected="true"]{color:var(--places-ink)!important;background:#fff0eb!important;box-shadow:inset 4px 0 0 var(--analysis-coral)!important}
body.tw-analysis #dayTrigger{
  color:var(--places-navy);
  border-color:#cfd7e0;
  background:#eef1f4;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
body.tw-analysis #dayTrigger:hover,
body.tw-analysis #dayTrigger[aria-expanded="true"]{border-color:var(--analysis-coral);background:#fff;box-shadow:0 0 0 3px rgba(255,107,61,.14)}
body.tw-analysis .date-popup[data-picker="day"]{
  scroll-padding-block:68px;
  scroll-snap-type:y proximity;
}
body.tw-analysis .date-popup[data-picker="day"] [role="option"]{
  display:grid;
  min-height:34px;
  padding:6px 11px;
  place-items:center;
  font-variant-numeric:tabular-nums;
  scroll-snap-align:center;
}
body.tw-analysis #clock{color:var(--analysis-cloud);font:500 26px/1 var(--analysis-mono);letter-spacing:-.055em}
body.tw-analysis #timeBasis,
body.tw-analysis #summaryCondition,
body.tw-analysis .timeline-foot,
body.tw-analysis .time-ticks{color:rgba(246,247,249,.5)}
body.tw-analysis #summaryTemp{color:var(--analysis-cloud);font-weight:540}
body.tw-analysis .timeline-actions button{
  color:rgba(246,247,249,.72);
  border:1px solid var(--analysis-line);
  border-radius:10px;
  background:rgba(246,247,249,.045);
}
body.tw-analysis .timeline-actions button:hover{color:var(--analysis-midnight);border-color:var(--analysis-cloud);background:var(--analysis-cloud);transform:translateY(-1px)}
body.tw-analysis .timeline-actions #play{
  color:var(--analysis-midnight);
  border-color:var(--analysis-coral);
  border-radius:11px;
  background:var(--analysis-coral);
  box-shadow:0 8px 22px rgba(255,107,61,.24);
}
body.tw-analysis .timeline-actions #play:hover{border-color:var(--analysis-coral-hot);background:var(--analysis-coral-hot)}
body.tw-analysis .scrub svg{opacity:.28;filter:saturate(.2) sepia(.4) hue-rotate(320deg)}
body.tw-analysis #hour{height:2px;background:linear-gradient(90deg,var(--analysis-coral),rgba(246,247,249,.32))}
body.tw-analysis #hour::-webkit-slider-thumb{width:13px;height:13px;background:var(--analysis-coral);box-shadow:0 0 0 5px rgba(255,107,61,.17),0 0 18px rgba(255,107,61,.42)}
body.tw-analysis #hour::-moz-range-thumb{width:13px;height:13px;background:var(--analysis-coral);box-shadow:0 0 0 5px rgba(255,107,61,.17),0 0 18px rgba(255,107,61,.42)}

body.tw-analysis .map-caption{color:rgba(246,247,249,.5);font:600 10px/1.3 var(--analysis-mono)}
body.tw-analysis .scale-bar{border-color:rgba(246,247,249,.54)}
body.tw-analysis .selection,
body.tw-analysis .toast,
body.tw-analysis .compare-summary,
body.tw-analysis .compare-label{
  color:var(--analysis-cloud);
  border:1px solid var(--analysis-line);
  border-radius:13px;
  background:var(--analysis-glass-solid);
  box-shadow:var(--analysis-shadow);
}
body.tw-analysis .selection strong,
body.tw-analysis .selection small{color:var(--analysis-coral)}

/* Sources dialog and loading state. */
body.tw-analysis dialog{
  color:var(--analysis-cloud);
  border:1px solid var(--analysis-line);
  border-radius:20px;
  background:var(--analysis-glass-solid);
  box-shadow:0 34px 100px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.06);
}
body.tw-analysis dialog::backdrop{background:rgba(4,8,14,.76);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.tw-analysis dialog h2,
body.tw-analysis dialog h3{color:var(--analysis-cloud)}
body.tw-analysis dialog p,
body.tw-analysis dialog small{color:rgba(246,247,249,.62)}
body.tw-analysis dialog a{color:var(--analysis-coral)}
body.tw-analysis .file-row{border-color:var(--analysis-line)}
body.tw-analysis dialog code{color:var(--analysis-coral-hot);background:rgba(255,107,61,.09);border-radius:4px;padding:1px 4px}
body.tw-analysis .loading{
  z-index:60;
  background:
    radial-gradient(circle at 50% 48%,rgba(255,107,61,.1),transparent 23%),
    radial-gradient(circle at 50% 45%,var(--analysis-graphite),var(--analysis-midnight) 68%);
}
body.tw-analysis .loading::after{display:none}
body.tw-analysis .analysis-loading-logo{display:flex;align-items:center;gap:16px;animation:analysis-loader-pulse 1.8s ease-in-out infinite}
body.tw-analysis .analysis-loading-logo img{width:70px;height:70px;filter:drop-shadow(0 0 24px rgba(255,107,61,.25))}
body.tw-analysis .analysis-loading-logo span{color:var(--analysis-cloud);font-size:45px;font-weight:520;letter-spacing:-.055em}
body.tw-analysis .analysis-loading-logo strong{color:var(--analysis-coral);font-weight:620}
body.tw-analysis .loading .fallback-link{margin-top:28px;color:var(--analysis-coral)}

@keyframes analysis-nav-arrive{
  from{opacity:0;filter:blur(8px);transform:translateY(-18px)}
  to{opacity:1;filter:blur(0);transform:translateY(0)}
}
@keyframes analysis-mark-arrive{
  from{opacity:0;filter:blur(8px) drop-shadow(0 0 0 rgba(255,107,61,0));transform:translateX(-14px) rotate(-7deg) scale(.82)}
  to{opacity:1;filter:blur(0) drop-shadow(0 0 16px rgba(255,107,61,.22));transform:translateX(0) rotate(0) scale(1)}
}
@keyframes analysis-wordmark-arrive{
  from{opacity:0;filter:blur(7px);transform:translateX(-10px)}
  to{opacity:1;filter:blur(0);transform:translateX(0)}
}
@keyframes analysis-rail-arrive{
  from{opacity:0;filter:blur(7px);transform:translateX(-16px)}
  to{opacity:1;filter:blur(0);transform:translateX(0)}
}
@keyframes analysis-mode-arrive{
  from{opacity:0;filter:blur(5px);transform:translateX(-9px) scale(.96)}
  to{opacity:1;filter:blur(0);transform:translateX(0) scale(1)}
}
@keyframes analysis-mode-tap{
  0%{transform:scale(1)}
  34%{transform:scale(.91)}
  68%{transform:scale(1.055)}
  100%{transform:scale(1)}
}
@keyframes analysis-mode-icon-tap{
  0%{transform:scale(1)}
  38%{transform:scale(.82)}
  72%{transform:scale(1.12)}
  100%{transform:scale(1)}
}
@keyframes analysis-mode-ring{
  0%{opacity:.68;transform:scale(.62)}
  100%{opacity:0;transform:scale(1.12)}
}
@keyframes analysis-picker-open{
  from{opacity:0;filter:blur(5px);transform:translateY(8px) scale(.96)}
  to{opacity:1;filter:blur(0);transform:translateY(0) scale(1)}
}
@keyframes analysis-panel-arrive{
  from{opacity:0;filter:blur(7px);transform:translateX(18px)}
  to{opacity:1;filter:blur(0);transform:translateX(0)}
}
@keyframes analysis-timeline-arrive{
  from{opacity:0;filter:blur(7px);transform:translate(-50%,18px)}
  to{opacity:1;filter:blur(0);transform:translate(-50%,0)}
}
@keyframes analysis-loader-pulse{
  0%,100%{opacity:.76;transform:scale(.985)}
  50%{opacity:1;transform:scale(1)}
}

@media(max-width:1260px){
  body.tw-analysis .version{display:none}
  body.tw-analysis .analysis-nav-link{min-width:70px;padding:0 9px!important}
  body.tw-analysis .analysis-nav-action{padding:0 14px!important}
}

@media(max-width:1000px){
  body.tw-analysis .analysis-nav-compare{display:none}
  body.tw-analysis .analysis-nav-link:not([aria-current="page"]){display:none}
  body.tw-analysis .panel{width:clamp(274px,32vw,292px)}
  body.tw-analysis .map-tools{right:328px}
  body.tw-analysis .map-title{left:126px}
  body.tw-analysis .surface-control{left:126px}
  body.tw-analysis .places-tool{left:126px;width:clamp(280px,35vw,320px)}
}

/* Desktop progressive disclosure: the map stays primary until a panel is requested. */
@media (hover:hover) and (pointer:fine) and (min-width:721px){
  body.tw-analysis .places-tool:not(:hover):not(:focus-within),
  body.tw-analysis .places-tool:has(#placesBody3d[hidden]){
    width:210px;
    max-height:52px;
    overflow:hidden;
  }
  body.tw-analysis .places-tool:not(:hover):not(:focus-within) #placesBody3d{
    opacity:0;
    pointer-events:none;
    transform:translateY(-7px);
  }
  body.tw-analysis .places-tool:not(:hover):not(:focus-within) .places-heading{
    border-bottom-color:transparent;
  }

  body.tw-analysis .panel:not([hidden]):not(:hover):not(:focus-within){
    -webkit-clip-path:inset(0 0 0 calc(100% - 48px));
    clip-path:inset(0 0 0 calc(100% - 48px));
  }
  body.tw-analysis .panel:not([hidden]):not(:hover):not(:focus-within)>*{
    opacity:0;
    pointer-events:none;
  }
  body.tw-analysis .panel:not([hidden]):not(:hover):not(:focus-within)::after{opacity:1}
  body.tw-analysis #app:has(.panel:not([hidden]):not(:hover):not(:focus-within)) .map-tools{right:72px}
}

@media(max-width:720px){
  body.tw-analysis .analysis-header{top:8px;left:8px;right:8px;height:54px}
  body.tw-analysis .analysis-signature{min-height:54px;margin-left:4px;gap:10px}
  body.tw-analysis .analysis-signature .brand-icon{width:42px;height:42px;min-width:42px}
  body.tw-analysis .analysis-signature .brand-wordmark{font-size:25px}
  body.tw-analysis .header-right,
  body.tw-analysis .analysis-nav{height:54px;gap:7px}
  body.tw-analysis .analysis-nav-core{height:54px;padding:0 5px;border-radius:13px}
  body.tw-analysis .analysis-nav-link{min-width:76px;min-height:44px;padding:0 9px!important;font-size:10px!important}
  body.tw-analysis .analysis-nav-primary{min-width:82px;min-height:54px!important;padding:0 11px!important;border-radius:13px!important;font-size:10px!important}

  body.tw-analysis .map-title{top:82px;left:72px}
  body.tw-analysis .map-title h1{font-size:23px}
  body.tw-analysis .surface-control{top:150px;left:72px}
  body.tw-analysis .modes{left:8px;top:78px;width:54px;padding:5px;bottom:calc(var(--timeline-height) + var(--timeline-bottom) + 20px);border-radius:15px}
  body.tw-analysis .modes button{width:42px;min-height:44px;height:44px;padding:9px}
  body.tw-analysis .modes button b{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  body.tw-analysis .modes button:hover{transform:none}

  body.tw-analysis .panel{top:76px;right:8px;width:calc(100vw - 76px);max-width:310px;padding:18px;border-radius:16px}
  body.tw-analysis .panel-reopen{top:82px;right:9px}
  body.tw-analysis .map-tools,
  body.tw-analysis #app:has(.panel[hidden]) .map-tools{right:8px;top:196px}
  body.tw-analysis .view-controls{left:50%;max-width:calc(100% - 16px);padding:4px;border-radius:13px}
  body.tw-analysis .view-controls button{padding:8px 9px;font-size:10px}
  body.tw-analysis .places-tool{left:64px;right:8px;width:auto;border-radius:15px}
  body.tw-analysis .place-results button.place-result{grid-template-columns:48px minmax(0,1fr) 16px;min-height:72px;gap:10px;padding:10px}
  body.tw-analysis .place-result-icon{width:48px;height:48px}
  body.tw-analysis .place-result-icon svg{width:24px;height:24px}

  body.tw-analysis .timeline{width:calc(100% - 16px);bottom:8px;padding:10px 11px 9px;border-radius:16px}
  body.tw-analysis .timeline-top{gap:8px 10px}
  body.tw-analysis .date-trigger{min-height:36px;padding:5px 7px;font-size:12px}
  body.tw-analysis #dayTrigger{min-width:48px}
  body.tw-analysis #monthTrigger{min-width:105px}
  body.tw-analysis #clock{font-size:21px}
  body.tw-analysis .timeline-actions button{border-radius:9px}
  body.tw-analysis .timeline-actions #play{border-radius:10px}

  body.tw-analysis .building-data{top:auto;right:8px;left:64px;width:auto;border-radius:16px}
  body.tw-analysis #app.building-data-open .map-tools{right:8px}
  body.tw-analysis .analysis-loading-logo img{width:54px;height:54px}
  body.tw-analysis .analysis-loading-logo span{font-size:36px}
}

@media(max-width:520px){
  body.tw-analysis .analysis-signature .brand-wordmark{display:none}
  body.tw-analysis .analysis-nav-link{display:none!important}
  body.tw-analysis .analysis-nav-core{display:none}
  body.tw-analysis .analysis-nav-primary{min-width:76px}
  body.tw-analysis .surface-control button{padding:8px 9px;font-size:9px}
}

/* Analyses embedded in Carte keep a single, quiet Sources control. */
html.embedded-analysis body.tw-analysis .analysis-header{
  display:flex;
  top:0;
  left:0;
  right:0;
  height:42px;
  padding:4px 12px;
  pointer-events:none;
}
html.embedded-analysis body.tw-analysis .analysis-signature,
html.embedded-analysis body.tw-analysis .version,
html.embedded-analysis body.tw-analysis .analysis-nav-core,
html.embedded-analysis body.tw-analysis .analysis-nav-compare{display:none}
html.embedded-analysis body.tw-analysis .header-right{height:34px;margin-left:auto}
html.embedded-analysis body.tw-analysis .analysis-nav{height:34px}
html.embedded-analysis body.tw-analysis .analysis-nav-primary{
  display:inline-flex;
  min-width:82px;
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:10px!important;
  pointer-events:auto;
  animation:none;
}

@media(prefers-reduced-transparency:reduce){
  body.tw-analysis :is(.analysis-nav-core,.modes,.panel,.timeline,.places-tool,.view-controls,.surface-control,.map-tools button,.panel-reopen,.building-data,.date-popup,dialog){
    background:var(--analysis-graphite)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}

@media(prefers-contrast:more){
  body.tw-analysis{--analysis-line:rgba(246,247,249,.42)}
  body.tw-analysis .analysis-nav-link,
  body.tw-analysis .modes button,
  body.tw-analysis .panel p{color:var(--analysis-cloud)!important}
}

@media(prefers-reduced-motion:reduce){
  body.tw-analysis *,
  body.tw-analysis *::before,
  body.tw-analysis *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

/* MARK VI coherence pass: vegetation evidence, calculation scenarios and living copy. */
body.tw-analysis .panel-head-actions{display:flex;align-items:center;gap:5px}
body.tw-analysis .panel-source{
  min-height:30px;
  padding:0 9px;
  color:rgba(246,247,249,.58);
  border:1px solid var(--analysis-line);
  border-radius:8px;
  background:rgba(246,247,249,.035);
  font:650 9px/1 var(--analysis-mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.tw-analysis .panel-source:hover{color:var(--analysis-midnight);border-color:var(--analysis-coral);background:var(--analysis-coral);transform:translateY(-1px)}

body.tw-analysis .panel details.analysis-vegetation{
  margin:0 0 12px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(147,201,91,.32)!important;
  border-radius:13px;
  background:linear-gradient(145deg,rgba(34,72,45,.24),rgba(11,19,32,.48))!important;
  box-shadow:inset 0 1px 0 rgba(147,201,91,.08);
}
body.tw-analysis .analysis-vegetation>summary{padding:12px 13px;color:var(--analysis-cloud);font:650 11px/1.3 var(--analysis-mono);letter-spacing:.03em;cursor:pointer}
body.tw-analysis .analysis-vegetation>summary>span{margin-left:6px;color:rgba(147,201,91,.72);font-size:10px;font-weight:520}
body.tw-analysis .vegetation-tools-body{padding:0 13px 13px}
body.tw-analysis #analysisVegetationSummary{margin:0 0 11px;color:rgba(246,247,249,.62);font-size:12px;line-height:1.5}
body.tw-analysis .vegetation-toggle{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:rgba(246,247,249,.78);font-size:12px;line-height:1.35}
body.tw-analysis .vegetation-toggle input{width:16px;height:16px;flex:0 0 auto;accent-color:#93c95b}
body.tw-analysis .vegetation-legend{display:grid;gap:7px;margin:10px 0 12px}
body.tw-analysis .vegetation-legend span{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;min-width:0}
body.tw-analysis .vegetation-legend i{width:9px;height:9px;border-radius:50%;background:var(--vegetation-color);box-shadow:0 0 11px color-mix(in srgb,var(--vegetation-color),transparent 34%)}
body.tw-analysis .vegetation-legend b{overflow:hidden;color:rgba(246,247,249,.76);font-size:11px;font-weight:560;text-overflow:ellipsis;white-space:nowrap}
body.tw-analysis .vegetation-legend small{color:rgba(246,247,249,.46);font:600 9px/1 var(--analysis-mono);white-space:nowrap}
body.tw-analysis .vegetation-calculation{margin:12px 0 0!important;padding:9px 10px;border-left:2px solid #93c95b;background:rgba(147,201,91,.07);color:rgba(246,247,249,.66)!important;font-size:11px!important;line-height:1.55!important}
body.tw-analysis .vegetation-calculation strong{color:#b8df88;font-weight:680}
body.tw-analysis #analysisVegetationContext strong{color:#b8df88}

body.tw-analysis .material-scenario{display:grid;gap:7px;margin:15px 0;padding:0;border:0}
body.tw-analysis .material-scenario legend{margin-bottom:2px;color:var(--analysis-coral);font:650 10px/1.4 var(--analysis-mono);letter-spacing:.1em;text-transform:uppercase}
body.tw-analysis .material-scenario label{position:relative;display:block;cursor:pointer}
body.tw-analysis .material-scenario input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
body.tw-analysis .material-scenario span{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 11px;color:rgba(246,247,249,.68);border:1px solid var(--analysis-line);border-radius:11px;background:rgba(246,247,249,.035);transition:color 180ms ease,border-color 180ms ease,background-color 180ms ease,transform 180ms var(--analysis-ease)}
body.tw-analysis .material-scenario b{color:var(--analysis-cloud);font-size:12px;font-weight:620}
body.tw-analysis .material-scenario em{align-self:center;color:rgba(246,247,249,.46);font:650 9px/1 var(--analysis-mono);font-style:normal;white-space:nowrap}
body.tw-analysis .material-scenario small{grid-column:1/-1;color:rgba(246,247,249,.49);font-size:10px;line-height:1.45}
body.tw-analysis .material-scenario label:hover span{border-color:rgba(255,107,61,.4);transform:translateX(2px)}
body.tw-analysis .material-scenario input:focus-visible+span{outline:2px solid var(--analysis-coral);outline-offset:2px}
body.tw-analysis .material-scenario input:checked+span{color:var(--analysis-cloud);border-color:var(--analysis-coral);background:rgba(255,107,61,.13);box-shadow:inset 3px 0 0 var(--analysis-coral)}
body.tw-analysis .material-scenario input:checked+span em{color:var(--analysis-coral-hot)}
body.tw-analysis .scenario-proof{display:flex;align-items:center;gap:8px;margin:10px 0;color:rgba(246,247,249,.62);font:600 10px/1.45 var(--analysis-mono)}
body.tw-analysis .scenario-proof::before{content:"";width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#93c95b;box-shadow:0 0 12px rgba(147,201,91,.6)}
body.tw-analysis .material-key{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 12px}
body.tw-analysis .material-key span{padding:8px 9px;color:rgba(246,247,249,.72);border:1px solid var(--analysis-line);border-radius:9px;background:rgba(246,247,249,.035);font-size:10px;line-height:1.35}
body.tw-analysis .material-key b{display:block;color:var(--analysis-coral);font:700 10px/1.2 var(--analysis-mono)}

body.tw-analysis .map-title>*{animation:analysis-copy-arrive 680ms var(--analysis-ease) both}
body.tw-analysis .map-title h1{animation-delay:70ms}
body.tw-analysis .map-title p{animation-delay:130ms}
body.tw-analysis #panelBody>*{animation:analysis-copy-arrive 420ms var(--analysis-ease) both}
body.tw-analysis #panelBody>*:nth-child(2){animation-delay:35ms}
body.tw-analysis #panelBody>*:nth-child(3){animation-delay:70ms}
body.tw-analysis .markvi-text-refresh{animation:analysis-copy-refresh 360ms var(--analysis-ease) both!important}
@keyframes analysis-copy-arrive{from{opacity:0;filter:blur(6px);transform:translateY(10px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}
@keyframes analysis-copy-refresh{0%{opacity:.25;filter:blur(5px);transform:translateY(5px)}100%{opacity:1;filter:blur(0);transform:translateY(0)}}

/* Carte is absorbed by Plan: OSM places, route criteria and ground evidence share one inspector. */
body.tw-analysis .plan-overview{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}
body.tw-analysis .plan-overview>div{padding:11px;border:1px solid var(--analysis-line);border-radius:11px;background:rgba(246,247,249,.04)}
body.tw-analysis .plan-overview strong{display:block;color:var(--analysis-cloud);font:650 21px/1 var(--analysis-mono);letter-spacing:-.04em}
body.tw-analysis .plan-overview span{display:block;margin-top:6px;color:rgba(246,247,249,.76);font-size:11px;line-height:1.35}
body.tw-analysis .plan-section-title{margin:16px 0 8px;color:var(--analysis-coral);font:650 10px/1.4 var(--analysis-mono);letter-spacing:.1em;text-transform:uppercase}
body.tw-analysis .plan-place-groups{display:grid;grid-template-columns:1fr 1fr;gap:6px}
body.tw-analysis .plan-place-groups button{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:8px 9px;color:rgba(246,247,249,.82)!important;border:1px solid var(--analysis-line)!important;border-radius:9px;background:rgba(246,247,249,.035)!important;font-size:11px;text-align:left}
body.tw-analysis .plan-place-groups button:hover,
body.tw-analysis .plan-place-groups button:focus-visible{color:var(--analysis-midnight)!important;border-color:var(--analysis-coral)!important;background:var(--analysis-coral)!important;transform:translateY(-1px)}
body.tw-analysis .plan-place-groups b{color:inherit;font:650 10px/1 var(--analysis-mono)}
body.tw-analysis .plan-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
body.tw-analysis .plan-actions .button-wide{margin:0;min-height:44px}
body.tw-analysis .plan-route-criteria{margin:10px 0;color:rgba(246,247,249,.78);font-size:11px;line-height:1.55}
body.tw-analysis .plan-route-criteria strong{color:var(--analysis-cloud)}
body.tw-analysis .plan-vegetation-key{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px}
body.tw-analysis .plan-vegetation-key span{display:grid;grid-template-columns:11px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:36px;padding:7px 8px;border:1px solid rgba(246,247,249,.13);border-radius:9px;background:rgba(246,247,249,.035)}
body.tw-analysis .plan-vegetation-key i{width:10px;height:10px;border-radius:3px;background:var(--plan-vegetation);box-shadow:0 0 10px color-mix(in srgb,var(--plan-vegetation),transparent 42%)}
body.tw-analysis .plan-vegetation-key b{overflow:hidden;color:rgba(246,247,249,.88);font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
body.tw-analysis .plan-vegetation-key small{color:rgba(246,247,249,.68);font:650 9px/1 var(--analysis-mono);white-space:nowrap}
body.tw-analysis .plan-evidence{margin:10px 0 13px!important;padding:10px 11px;border-left:2px solid #78b957;background:rgba(120,185,87,.08);color:rgba(246,247,249,.78)!important;font-size:11px!important;line-height:1.55!important}
body.tw-analysis .plan-evidence strong{color:#c2e6a9}

@media(max-width:720px){
  body.tw-analysis .analysis-vegetation>summary>span{display:none}
  body.tw-analysis .vegetation-legend small{display:none}
  body.tw-analysis .panel-source{padding:0 7px}

  /* Mobile Lite: the scene stays usable while controls become touch-first. */
  body.tw-analysis .modes{
    top:auto;
    left:8px;
    right:8px;
    bottom:calc(var(--timeline-height) + var(--timeline-bottom) + 8px);
    width:auto;
    height:62px;
    min-height:62px;
    max-height:62px;
    flex-direction:row;
    gap:3px;
    padding:5px;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius:16px;
    z-index:7;
    scroll-snap-type:x proximity;
  }
  body.tw-analysis .modes #openBuildingData,
  body.tw-analysis .modes #incidenceSolar{display:none}
  body.tw-analysis .modes button{
    width:58px;
    min-width:58px;
    height:50px;
    min-height:50px;
    flex-direction:column;
    gap:3px;
    padding:5px 3px;
    scroll-snap-align:start;
  }
  body.tw-analysis .modes button b{
    position:relative;
    width:auto;
    height:auto;
    overflow:visible;
    clip-path:none;
    font-size:8px;
    white-space:nowrap;
  }
  body.tw-analysis .modes button>span{width:19px;height:19px}
  body.tw-analysis .modes svg{width:19px;height:19px}
  body.tw-analysis .panel{
    top:auto;
    left:8px;
    right:8px;
    bottom:calc(var(--timeline-height) + var(--timeline-bottom) + 78px);
    width:auto;
    max-width:none;
    max-height:min(46dvh,430px);
    padding:18px;
    border-radius:20px 20px 15px 15px;
    z-index:8;
    animation:analysis-mobile-sheet-arrive 300ms var(--analysis-ease) both;
  }
  body.tw-analysis .panel-reopen{top:auto;right:10px;bottom:calc(var(--timeline-height) + var(--timeline-bottom) + 81px);z-index:8}
  body.tw-analysis .view-controls{display:none}
  body.tw-analysis .places-tool{
    top:194px;
    left:8px;
    right:8px;
    bottom:auto;
    max-height:min(38dvh,360px);
  }
  body.tw-analysis .map-title{left:12px;top:76px}
  body.tw-analysis .map-title h1{font-size:21px}
  body.tw-analysis .surface-control{left:12px;top:132px}
  body.tw-analysis .map-tools,
  body.tw-analysis #app:has(.panel[hidden]) .map-tools{right:8px;top:138px}
  body.tw-analysis .map-caption{display:none}
  body.tw-analysis .selection,
  body.tw-analysis .toast,
  body.tw-analysis .compare-summary{bottom:calc(var(--timeline-height) + var(--timeline-bottom) + 150px)}
  body.tw-analysis .material-key{grid-template-columns:1fr}
}

@keyframes analysis-mobile-sheet-arrive{
  from{opacity:0;filter:blur(5px);transform:translateY(18px)}
  to{opacity:1;filter:blur(0);transform:translateY(0)}
}
