.wf-world-view{padding:0}
.wf-world-shell{display:block}
#wfWorldEngine{position:relative;width:100%;height:calc(100vh - 86px);min-height:640px;overflow:hidden;background:#000106;outline:none;cursor:grab;touch-action:none}
#wfWorldEngine.dragging{cursor:grabbing}
.wf-engine-space,.wf-engine-earth{position:absolute;inset:0;transition:opacity .85s ease;overflow:hidden;background:#000106}
.wf-engine-space{
  background:
    radial-gradient(circle at 50% 50%,rgba(255,186,92,.14) 0 1.2%,rgba(255,140,50,.055) 2.2%,transparent 7%),
    radial-gradient(circle at 18% 22%,rgba(220,234,255,.78) 0 1px,transparent 1.5px),
    radial-gradient(circle at 76% 31%,rgba(255,255,255,.72) 0 1px,transparent 1.5px),
    radial-gradient(circle at 61% 74%,rgba(189,213,255,.66) 0 1px,transparent 1.5px),
    radial-gradient(circle at 31% 68%,rgba(255,239,214,.62) 0 1px,transparent 1.5px),
    radial-gradient(ellipse at 52% 56%,rgba(49,62,88,.22),transparent 54%),
    #000106;
  background-size:auto,137px 113px,173px 149px,211px 181px,257px 223px,auto,auto;
}
.wf-engine-space canvas,.wf-engine-earth canvas{display:block;width:100%!important;height:100%!important}
.wf-engine-earth{opacity:0;pointer-events:none}
.wf-engine[data-mode="earth"] .wf-engine-space{opacity:0;pointer-events:none}
.wf-engine[data-mode="earth"] .wf-engine-earth{opacity:1;pointer-events:auto}
.wf-engine-vignette{position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(circle at center,transparent 48%,rgba(0,0,0,.2) 76%,rgba(0,0,0,.72) 118%)}
.wf-engine-hud{position:absolute;z-index:8;left:22px;top:20px;display:grid;gap:6px;padding:12px 14px;border-left:2px solid var(--accent,#d8ff45);background:linear-gradient(90deg,rgba(3,6,10,.72),rgba(3,6,10,.18),transparent);pointer-events:none;max-width:min(520px,64vw)}
.wf-engine-loc{display:grid;gap:2px}.wf-engine-loc span{font-size:.60rem;letter-spacing:.18em;color:#9aa8b7}.wf-engine-loc strong{font-size:1.14rem;letter-spacing:.02em}
.wf-engine-breadcrumb{font-size:.68rem;color:#c5ced8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-engine-scale{
  justify-self:start;
  pointer-events:auto;
  border:0;padding:0;background:transparent;
  color:#9fb0bf;font:inherit;font-size:.62rem;
  text-align:left;cursor:pointer
}
.wf-engine-scale:hover,.wf-engine-scale:focus-visible{
  color:var(--accent,#d8ff45);outline:none
}
.wf-engine-status{font-size:.54rem;color:#8090a0}
#wfEngineStatus,#wfEngineAssets{display:none}
.wf-engine-surface{
  width:fit-content;max-width:min(420px,calc(100vw - 50px));
  padding:3px 7px;cursor:pointer;pointer-events:auto;text-align:left;
  border:1px solid rgba(116,159,188,.29);border-radius:8px;
  background:rgba(6,18,32,.65);color:#a7bed1;
  font:500 .57rem/1.35 system-ui,sans-serif;
  letter-spacing:.015em;white-space:normal
}
.wf-engine-surface:hover{border-color:rgba(155,211,236,.70);color:#f1f9ff}
.wf-engine-surface:focus-visible{outline:2px solid #aadfff;outline-offset:2px}
.wf-engine-surface[aria-pressed="true"]{color:#d3e8ce;border-color:rgba(167,215,174,.52)}
.wf-engine-surface[hidden]{display:none}
.wf-engine-navreadout{
  color:#9aabb8;
  font-size:.49rem;
  letter-spacing:.035em;
  font-variant-numeric:tabular-nums
}
.wf-engine-navreadout[hidden]{display:none}
.wf-engine-temporal{
  display:flex;align-items:center;gap:7px;margin-top:2px;
  color:#cbd4dd;font-size:.56rem;letter-spacing:.015em
}
.wf-engine-temporal::before{
  content:"";display:block;width:46px;height:5px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08)
}
.wf-engine-temporal[data-heat-mode="level"]::before{
  background:linear-gradient(90deg,#24465d,#efb65b)
}
.wf-engine-temporal[data-heat-mode="change"]::before{
  background:linear-gradient(90deg,#4b8fc8,#b8b7b0 50%,#dc744e)
}
.wf-engine-temporal[data-heat-mode="none"]::before{opacity:.32}
.wf-engine-temporal[hidden]{display:none}
.wf-engine-temporal-key{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:1px;
  color:#8e9aa6;
  font-size:.49rem;
  letter-spacing:.02em
}
.wf-engine-temporal-key[hidden]{display:none}
.wf-engine-temporal-key span{
  display:inline-flex;
  align-items:center;
  gap:4px
}
.wf-engine-temporal-key span[hidden]{display:none}
.wf-engine-temporal-key span::before{
  content:"";
  display:inline-block;
  flex:0 0 auto
}
.wf-engine-temporal-key [data-temporal-mark="flows"]::before{
  width:15px;height:2px;border-radius:999px;background:#d8ff45
}
.wf-engine-temporal-key [data-temporal-mark="events"]::before{
  width:5px;height:5px;border-radius:50%;background:#90caf9
}
.wf-engine-temporal-key [data-temporal-mark="projects"]::before{
  width:5px;height:5px;border-radius:50%;background:#f3c969
}
.wf-engine-layer-key{
  display:flex;gap:5px;flex-wrap:wrap;margin-top:2px;
  color:#aeb9c4;font-size:.50rem;
  pointer-events:auto
}
.wf-engine-layer-key[hidden]{display:none}
.wf-engine-layer-key button{
  display:inline-flex;align-items:center;gap:4px;
  border:0;padding:2px 4px;border-radius:4px;
  background:transparent;color:#66727d;
  font:inherit;cursor:pointer;opacity:.62
}
.wf-engine-layer-key button[hidden]{display:none}
.wf-engine-layer-key button:hover,.wf-engine-layer-key button:focus-visible{
  color:#dce5ec;background:rgba(255,255,255,.055)
}
.wf-engine-layer-key button.active{
  color:#aeb9c4;opacity:1
}
.wf-engine-layer-key button::before{
  content:"";display:inline-block;width:13px;height:2px;border-radius:99px;background:#8f99a3;opacity:.48
}
.wf-engine-layer-key button.active::before{opacity:1}
.wf-engine-layer-key [data-infra-layer="interstate_us_highways"]::before{background:#f3c969;height:3px}
.wf-engine-layer-key [data-infra-layer="primary_roads"]::before{background:#e8e2d3}
.wf-engine-layer-key [data-infra-layer="railroads"]::before{background:#d8ff45}
.wf-engine-layer-key [data-infra-layer="hydrography"]::before{background:#68a9d3}
.wf-engine-layer-key [data-infra-layer="airports"]::before{width:5px;height:5px;border-radius:50%;background:#f2f4f6}
.wf-engine-layer-key [data-infra-layer="terminals"]::before{width:5px;height:5px;border-radius:50%;background:#e58a68}
.wf-engine-layer-key [data-infra-layer="local_roads"]::before{background:#aeb9c4;height:1px}
.wf-engine-reticle{position:absolute;z-index:7;left:50%;top:50%;width:26px;height:26px;transform:translate(-50%,-50%);pointer-events:none;opacity:.55}
.wf-engine-reticle:before,.wf-engine-reticle:after,.wf-engine-reticle i:before,.wf-engine-reticle i:after{content:"";position:absolute;background:rgba(255,255,255,.58)}
.wf-engine-reticle:before{left:12px;top:0;width:1px;height:7px}.wf-engine-reticle:after{left:12px;bottom:0;width:1px;height:7px}
.wf-engine-reticle i:before{left:0;top:12px;width:7px;height:1px}.wf-engine-reticle i:after{right:0;top:12px;width:7px;height:1px}
.wf-engine[data-mode="earth"] .wf-engine-reticle{opacity:0}
.wf-engine-controls{position:absolute;z-index:9;right:18px;bottom:18px;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:min(720px,78vw)}
.wf-engine-controls button,.wf-engine-fallback button{border:1px solid rgba(255,255,255,.15);background:rgba(5,8,12,.72);backdrop-filter:blur(10px);color:#dbe5ef;border-radius:999px;padding:8px 11px;font:inherit;font-size:.63rem;cursor:pointer}
.wf-engine-controls button:hover,.wf-engine-controls button:focus-visible{border-color:var(--accent,#d8ff45);color:var(--accent,#d8ff45)}
.wf-engine-controls [data-world-story],
.wf-engine-controls [data-world-enter-earth],
.wf-engine-controls [data-world-data]{
  border-color:rgba(216,255,69,.44);
  background:rgba(18,26,11,.78);
}
.wf-engine-controls [data-world-story]{color:var(--accent,#d8ff45)}
.wf-engine-help{position:absolute;z-index:8;left:22px;bottom:18px;color:#a0acb8;font-size:.62rem;pointer-events:none}
.wf-engine-fallback{position:absolute;z-index:12;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;gap:8px;text-align:center;padding:22px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(2,5,9,.92)}
.wf-engine-fallback[hidden]{display:none}
.wf-engine-fallback span{font-size:.72rem;color:#9aa8b7}
.wf-engine-fallback small{max-width:min(620px,78vw);font-size:.62rem;line-height:1.45;color:#b6c2ce;overflow-wrap:anywhere}
.wf-engine-fallback>div{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.wf-engine-earth .cesium-viewer,.wf-engine-earth .cesium-viewer-cesiumWidgetContainer,.wf-engine-earth .cesium-widget{width:100%;height:100%}
.wf-engine-earth .cesium-viewer-bottom,.wf-engine-earth .cesium-viewer-toolbar{display:none!important}
.wf-engine-earth .cesium-widget-credits{font-size:9px!important;opacity:.6}
@media(max-width:800px){
  #wfWorldEngine{height:calc(100dvh - 72px);min-height:560px}
  .wf-engine-hud{left:10px;top:10px;max-width:72vw}
  .wf-engine-controls{left:10px;right:10px;bottom:10px;justify-content:flex-start;max-width:none}
  .wf-engine-help{display:none}
}
@media(prefers-reduced-motion:reduce){.wf-engine-space,.wf-engine-earth{transition:none}}

/* v5 physical-runtime pass: the World owns the viewport, not the document column. */
main:has(#world.active){max-width:none;width:100%;margin:0;padding:0;min-height:0}
#world.active{width:100%;margin:0;padding:0}
body:has(#world.active) footer{display:none}
body:has(#world.active){overflow:hidden}
body:has(#world.active) #wfWorldEngine{height:100dvh;min-height:0;border-radius:0}
body:has(#world.active) #wfWorldEngine .wf-engine-hud{top:62px}
@media(max-width:800px){
  body:has(#world.active) #wfWorldEngine{height:100dvh;min-height:0}
  body:has(#world.active) #wfWorldEngine .wf-engine-hud{top:52px}
}

#wfEngineAssets[data-state="local"]{color:#d8ff45}
#wfEngineAssets[data-state="fallback"]{color:#9aa8b7}

#wfEngineHover{
  position:absolute;z-index:11;pointer-events:none;
  padding:5px 8px;border:1px solid rgba(216,255,69,.34);
  border-radius:999px;background:rgba(2,5,9,.86);
  color:#e7edf3;font-size:.58rem;letter-spacing:.02em;
  white-space:nowrap;backdrop-filter:blur(8px);
}
#wfEngineHover[hidden]{display:none}


/* Earth + Time reuses the same continuous World engine inside the data workspace. */
#map.active #earthTimeWorldSlot #wfWorldEngine{
  height:min(78dvh,860px);
  min-height:580px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
}
#map.active #earthTimeWorldSlot .wf-engine-help{display:none}
#map.active #earthTimeWorldSlot .wf-engine-controls{bottom:14px;right:14px}
#wfWorldEngine[data-workspace="earth-time"] .wf-engine-hud{
  top:14px;
  left:14px;
}
@media(max-width:800px){
  #map.active #earthTimeWorldSlot #wfWorldEngine{
    height:64dvh;
    min-height:460px;
    border-radius:10px;
  }
}


/* Target handoff is staged while the Earth renderer is still hidden. */
.wf-engine[data-transition="earth"] .wf-engine-space{opacity:.86}
.wf-engine[data-transition="earth"] .wf-engine-vignette{background:radial-gradient(circle at center,transparent 34%,rgba(0,0,0,.30) 68%,rgba(0,0,0,.84) 112%)}
.wf-engine[data-transition="earth"] .wf-engine-controls{opacity:.35;pointer-events:none}



/* Earth + Time is a cockpit, not a narrow report column. */
main:has(#map.active){max-width:none;width:100%;padding:24px 28px 90px}
#map.active{width:100%;max-width:none}
#map.active .earth-time-stage{margin-top:0}
#map.active .earth-time-heading{top:22px;left:22px;width:min(500px,calc(100% - 44px));padding:14px 16px 16px}
#map.active .earth-time-heading h1{font-size:clamp(1.25rem,2.2vw,1.8rem)}
#map.active .earth-time-heading p{font-size:.82rem;max-width:460px}

/* Contextual learning / evidence inspector
   This should read as part of the optical instrument, not a floating dashboard card. */
.wf-engine-inspector{
  position:absolute;
  z-index:22;
  top:68px;
  right:0;
  width:min(360px,calc(100% - 34px));
  max-height:calc(100% - 142px);
  overflow:auto;
  padding:14px 18px 14px 20px;
  border:0;
  border-left:1px solid rgba(216,255,69,.22);
  border-radius:0;
  background:
    linear-gradient(90deg,rgba(2,5,9,.06),rgba(2,5,9,.78) 18%,rgba(2,5,9,.93));
  box-shadow:-30px 0 54px rgba(0,0,0,.18);
  backdrop-filter:blur(12px);
  color:#e8edf2;
  scrollbar-width:thin;
}
.wf-engine-inspector::before{
  content:"";
  position:sticky;
  display:block;
  top:0;
  height:1px;
  margin:-14px -18px 12px -20px;
  background:linear-gradient(90deg,var(--accent,#d8ff45),rgba(216,255,69,.14),transparent);
  pointer-events:none
}
.wf-engine-inspector[hidden]{display:none}
.wf-engine-inspector-close{
  position:absolute;top:8px;right:10px;
  width:28px;height:28px;padding:0;
  border:0;border-radius:50%;
  background:transparent;
  color:#8794a3;font-size:1rem;line-height:1;
  cursor:pointer
}
.wf-engine-inspector-close:hover,.wf-engine-inspector-close:focus-visible{
  color:#fff;background:rgba(255,255,255,.07)
}
.wf-engine-inspector-eyebrow{
  padding-right:32px;
  color:var(--accent,#d8ff45);
  font-size:.47rem;
  letter-spacing:.15em;
  text-transform:uppercase
}
.wf-engine-inspector h2{
  margin:4px 32px 12px 0;
  font-size:1.15rem;
  line-height:1.05;
  letter-spacing:-.02em
}
.wf-engine-inspector dl{margin:0}
.wf-engine-inspector dl>div{
  display:grid;
  grid-template-columns:minmax(92px,.8fr) minmax(0,1.35fr);
  gap:12px;
  padding:6px 0;
  border-top:1px solid rgba(255,255,255,.055)
}
.wf-engine-inspector dt{
  color:#778590;
  font-size:.52rem;
  line-height:1.35
}
.wf-engine-inspector dd{
  margin:0;
  color:#d7dfe6;
  font-size:.59rem;
  line-height:1.35;
  text-align:right;
  overflow-wrap:anywhere
}
.wf-engine-inspector-note{
  margin:10px 0 0;
  color:#aeb8c2;
  font-size:.55rem;
  line-height:1.5
}
.wf-engine-inspector-source{
  margin:9px 0 0;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.07);
  color:#71808b;
  font-size:.48rem;
  line-height:1.45
}
@media(max-width:700px){
  .wf-engine-inspector{
    top:auto;right:0;bottom:50px;left:0;
    width:auto;max-height:min(44dvh,390px);
    padding:12px 14px 13px;
    border:0;border-top:1px solid rgba(216,255,69,.20);
    background:linear-gradient(180deg,rgba(2,5,9,.74),rgba(2,5,9,.96) 28%);
    box-shadow:0 -22px 46px rgba(0,0,0,.24);
    border-radius:0
  }
  .wf-engine-inspector::before{margin:-12px -14px 10px}
}
