
/* The Living System — a miniature business, with connected working districts. */
.dl-living{--living-color:#50dcff;position:relative;isolation:isolate;background:#07111f;color:#eaf5ff}
.elementor-13:not(.dds-world-body) #darby-living{box-sizing:border-box;width:calc(100% - 64px);max-width:1216px;margin:32px auto;padding:48px clamp(24px,4vw,56px);border:1px solid #284156;border-radius:16px}
.dl-invitation{max-width:800px}.dl-code{font:500 10px/1.7 monospace;letter-spacing:.15em;color:var(--living-color);margin:0 0 14px}
.dl-invitation h2{font-size:clamp(30px,4vw,56px);line-height:1.06;letter-spacing:-.04em;color:#fff;margin:18px 0}
.dl-invitation>p:last-child{font-size:17px;line-height:1.8;color:#a9bfd4}
.dl-app{display:none}
.dds-world[data-world="living"]{background:radial-gradient(ellipse at 65% 35%,#163443,#050c17 75%)}
.dds-world[data-world="living"] .dds-world-body{padding:0!important}
.dds-world[data-world="living"] #darby-living{padding:0;width:100%;max-width:none;min-height:100%;margin:0;background:transparent}
.dds-world[data-world="living"] .dl-invitation{display:none}
.dds-world[data-world="living"] .dl-app{display:flex;flex-direction:column;height:calc(100dvh - 238px);min-height:0}
.dl-toolbar{display:flex;align-items:center;gap:18px;min-height:42px;padding:8px clamp(24px,4vw,64px) 0;box-sizing:border-box}
.dl-toolbar .dl-code{margin:0;color:#83a6be;font-size:9px}
dialog.dds-world .dl-back{padding:7px 10px;min-height:36px;background:#0b2234;border-color:#45657d;font-size:10px}
.dl-back[hidden]{display:none!important}
.dl-main{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.3fr);align-items:center;gap:3vw;padding:12px clamp(24px,4vw,64px) 18px;min-height:0;overflow-y:auto;flex:1}
.dl-copy{min-width:0;position:relative;z-index:2}
.dl-copy h2{font-size:clamp(32px,3.4vw,54px);line-height:1.03;letter-spacing:-.045em;color:#fff;margin:0 0 18px}
.dl-description{color:#acc2d5;font:clamp(14px,1.15vw,17px)/1.75 Arial,sans-serif;margin:0 0 20px}
.dl-detail{border-left:2px solid var(--living-color);padding-left:14px;margin:16px 0;max-width:500px}
.dl-context-line strong{font:600 12px/1.5 Arial,sans-serif;color:#def0fc}.dl-context-line p{font:12px/1.7 Arial,sans-serif;color:#9bb7cc;margin:6px 0 0}
.dl-status{font:11px/1.65 monospace;color:#bce8d8;margin:10px 0;min-height:0}
.dl-status:empty{margin:0}
.dl-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
dialog.dds-world .dl-actions button{margin:0;min-height:46px;padding:12px 16px;border-radius:6px;text-align:left;font-size:11px}
dialog.dds-world .dl-primary{border-color:var(--living-color);background:linear-gradient(120deg,color-mix(in srgb,var(--living-color) 25%,#14528c),#0e385b);box-shadow:0 0 25px color-mix(in srgb,var(--living-color) 12%,transparent)}
dialog.dds-world .dl-secondary{background:#0c2030;border-color:#45627c;color:#bad0e2}
.dl-stage{position:relative;min-width:0;height:clamp(330px,49vh,610px);overflow:hidden;border:1px solid #35536a;border-radius:24px;background:radial-gradient(ellipse at 50% 58%,color-mix(in srgb,var(--living-color) 11%,#071521),#030a12 80%);box-shadow:inset 0 0 85px #0005,0 25px 80px #0003;perspective:1000px}
.dl-stage:before{content:'';position:absolute;left:-40%;right:-40%;height:150%;top:25%;background-image:linear-gradient(#50dcff0a 1px,transparent 1px),linear-gradient(90deg,#50dcff0a 1px,transparent 1px);background-size:40px 40px;transform:rotateX(58deg);transform-origin:50% 20%;mask-image:radial-gradient(ellipse,#000,transparent 68%);pointer-events:none}
.dl-sky{position:absolute;inset:0;pointer-events:none;opacity:.5}
.dl-sky i{position:absolute;left:calc(5% + mod(var(--star)*31,90)*1%);top:calc(5% + mod(var(--star)*17,70)*1%);width:2px;height:2px;background:#99e7ff;box-shadow:0 0 9px #50dcff;animation:dl-star-light 6s calc(var(--star)*-.6s) ease-in-out infinite}
.dl-canvas{position:absolute;inset:0 0 38px;transform-style:preserve-3d}
.dl-readout{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid #284454;background:#06111de8;font:8px/1.5 monospace;letter-spacing:.08em;color:#7fabc4}
.dl-readout strong{font:9px/1.5 monospace;color:var(--living-color)}
.dl-routes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.dl-routes path{fill:none;stroke:#50dcff;vector-effect:non-scaling-stroke}
.dl-route-base{stroke-width:1;opacity:.23}.dl-route-signal{stroke-width:2;stroke-dasharray:2 98;animation:dl-signal-travel 7s var(--route-delay) linear infinite;filter:drop-shadow(0 0 5px #50dcff)}
.dl-city-horizon{position:absolute;inset:5% 4% 15%;pointer-events:none;opacity:.2}
.dl-city-horizon i{position:absolute;bottom:40%;left:calc(var(--tower)*9%);width:6%;height:calc(15% + mod(var(--tower)*7,25)*1%);border:1px solid #50dcff44;background:linear-gradient(#50dcff08,#50dcff01);transform:skewY(-15deg)}
dialog.dds-world .dl-building{position:absolute;left:var(--x);top:var(--y);translate:-50% -50%;width:128px;min-height:130px;padding:0 4px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;z-index:2;white-space:normal}
dialog.dds-world .dl-building:hover,dialog.dds-world .dl-building:focus{background:transparent;border:0;box-shadow:none}
.dl-building strong{font:600 11px/1.4 Arial,sans-serif;color:#c9dae9}
.dl-building small{font:8px/1.4 monospace;color:#7e9db5}
.dl-structure{position:relative;display:block;width:75px;height:65px;margin:0 0 9px;transition:translate .35s,filter .35s;filter:drop-shadow(0 0 10px color-mix(in srgb,var(--district) 12%,transparent))}
.dl-building:hover .dl-structure{translate:0 -8px;filter:drop-shadow(0 0 20px color-mix(in srgb,var(--district) 35%,transparent))}
.dl-structure i{position:absolute;border:1px solid color-mix(in srgb,var(--district) 60%,#1b3c51)}
.dl-building-base{left:0;right:0;bottom:-8px;height:45px;transform:rotateX(55deg) rotateZ(-35deg);border-radius:5px;background:color-mix(in srgb,var(--district) 8%,#071521)}
.dl-building-face{left:12px;right:12px;bottom:5px;height:48px;transform:skewY(-12deg);border-radius:5px;background:linear-gradient(130deg,color-mix(in srgb,var(--district) 14%,#102336),#0a1b2b)}
.dl-building-roof{left:12px;right:12px;top:3px;height:30px;transform:rotateX(55deg) rotateZ(-25deg);background:color-mix(in srgb,var(--district) 17%,#0e2435);border-radius:4px}
.dl-structure b{position:absolute;inset:12px 0 0;display:grid;place-items:center;color:var(--district);font:25px/1 monospace;text-shadow:0 0 15px color-mix(in srgb,var(--district) 40%,transparent)}
.dl-building.is-connected .dl-structure{filter:drop-shadow(0 0 19px color-mix(in srgb,var(--district) 40%,transparent))}
.dl-building.is-connected small{color:var(--district)}
.dl-city-core{position:absolute;left:50%;top:52%;translate:-50% -50%;width:68px;height:68px;display:grid;place-items:center;border:1px solid #50dcff77;background:linear-gradient(135deg,#1a5983,#0b1c2b);border-radius:13px;transform:rotate(-8deg);box-shadow:0 0 45px #50dcff33;pointer-events:none}
.dl-city-core span{font:bold 36px/1 Arial,sans-serif;color:#dff7ff}.dl-city-core i{position:absolute;inset:-17px;border:1px dashed #50dcff33;border-radius:50%;animation:dl-core-turn 24s linear infinite}
.dl-districts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:8px clamp(18px,4vw,64px) 12px;flex:0 0 auto}
dialog.dds-world .dl-districts button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 8px;min-height:44px;white-space:normal;font-size:10px;border-color:#2a465e;background:#091b2c}
.dl-districts button>span:first-child{font:17px/1 monospace;color:var(--district)}
dialog.dds-world .dl-districts button.is-current{border-color:var(--district);box-shadow:inset 0 -2px var(--district)}
.dl-inquiry-card,.dl-review-card,.dl-report{position:absolute;left:50%;top:50%;translate:-50% -50%;box-sizing:border-box;width:82%;max-width:480px;padding:clamp(18px,2.5vw,32px);border:1px solid color-mix(in srgb,var(--living-color) 60%,#28445a);border-radius:17px;background:linear-gradient(135deg,#17394ba8,#081623f5);box-shadow:20px 20px 0 color-mix(in srgb,var(--living-color) 4%,transparent),0 0 65px color-mix(in srgb,var(--living-color) 8%,transparent)}
.dl-inquiry-card h3,.dl-review-card h3,.dl-report h3{font-size:clamp(20px,2.2vw,30px);line-height:1.15;color:#edf8ff;letter-spacing:-.025em;margin:0 0 18px}
.dl-inquiry-card .dl-context-line{padding:8px 0;border-bottom:1px solid #50dcff19}
.dl-inquiry-card .dl-context-line p{font-size:11px}.dl-inquiry-card .dl-context-line strong{font:9px/1.5 monospace;color:#7fb4ca}
.dl-card-state{display:block;margin-top:16px;font:10px/1.5 monospace;color:#80ddbb}
.dl-work-node{position:absolute;top:50%;translate:-50% -50%;width:115px;padding:18px 8px;box-sizing:border-box;border:1px solid #4d576c;border-radius:12px;display:grid;gap:12px;justify-items:center;text-align:center;background:#101e30;color:#a0b7cd}
.dl-work-node>span{font:30px/1 monospace;color:#b39aff}.dl-work-node strong{font:600 13px/1.5 Arial,sans-serif;color:#d9e7f4}.dl-work-node small{font:10px/1.5 Arial,sans-serif;color:#8ea8c2}
.dl-work-node.is-connected{border-color:#b39aff;box-shadow:0 0 30px #b39aff22}
.dl-knowledge-core{position:absolute;left:50%;top:50%;translate:-50% -50%;display:grid;justify-items:center;gap:15px;width:125px;height:110px;align-content:center;border:1px solid #ffc56d;border-radius:18px;background:radial-gradient(ellipse,#ffc56d22,#162333);box-shadow:0 0 60px #ffc56d22}
.dl-knowledge-core>span{font:38px/1 monospace;color:#ffe1af}.dl-knowledge-core strong{font:10px/1.5 monospace;color:#e0c9a5}
dialog.dds-world .dl-source{position:absolute;translate:-50% -50%;width:120px;min-height:75px;padding:12px;display:grid;gap:9px;justify-items:center;border-color:#716149;background:#211f26;white-space:normal;text-align:center}
.dl-source>span{font:24px/1 monospace;color:#ffc56d}.dl-source strong{font:11px/1.4 Arial,sans-serif;color:#d6c8b4}
dialog.dds-world .dl-source[aria-pressed="true"]{border-color:#ffc56d;background:#423a2c;box-shadow:0 0 28px #ffc56d22}
.dl-review-icon{font:42px/1 monospace;color:#f18bbd;display:block;margin-bottom:15px}
.dl-check{display:flex;align-items:center;gap:12px;margin:12px 0;font:12px/1.5 Arial,sans-serif;color:#bdcddd}
.dl-check>span:first-child{font:18px/1 monospace;color:#f18bbd}.dl-review-card>small{display:block;color:#8da7bc;font:10px/1.6 Arial,sans-serif;margin-top:20px}
.dl-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.dl-stats>div{display:grid;gap:7px}.dl-stats strong{font:32px/1 monospace;color:#74e5b1}.dl-stats span{font:10px/1.4 Arial,sans-serif;color:#a0baaa}
.dl-log{padding-left:18px;font:11px/1.7 Arial,sans-serif;color:#aec8bd;margin:0}.dl-log li{margin:4px 0}
.dl-diving .dl-canvas{animation:dl-camera-dive 1.05s cubic-bezier(.2,.7,.2,1) both}
.dl-living[data-view="overview"] .dl-diving .dl-canvas{animation-name:dl-camera-rise}
.dl-ripple{position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(ellipse at center,transparent 25%,#50dcff22 45%,#74e5b118 60%,transparent 75%);animation:dl-decision-ripple 1.8s ease-out both}
.dl-living:not(.dl-active) *,.dl-living.dl-hidden *{animation-play-state:paused!important}
@keyframes dl-star-light{0%,100%{opacity:.2}50%{opacity:.8}}
@keyframes dl-signal-travel{to{stroke-dashoffset:-100}}
@keyframes dl-core-turn{to{rotate:360deg}}
@keyframes dl-camera-dive{from{opacity:0;transform:scale(1.3) translateY(20px);filter:blur(7px)}to{opacity:1;transform:none;filter:none}}
@keyframes dl-camera-rise{from{opacity:0;transform:scale(.7);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes dl-decision-ripple{from{scale:.1;opacity:0}20%{opacity:1}to{scale:3;opacity:0}}
@media(min-width:768px) and (max-height:800px){.dl-copy h2{font-size:36px}.dl-description{font-size:13px;line-height:1.6;margin-bottom:12px}.dl-detail{margin:12px 0}.dl-stage{height:350px}.dl-inquiry-card,.dl-review-card,.dl-report{padding:18px}.dl-inquiry-card h3,.dl-review-card h3,.dl-report h3{font-size:23px;margin-bottom:12px}.dl-inquiry-card .dl-context-line{padding:5px 0}.dl-check{margin:9px 0}}
@media(max-width:900px){
 .dl-main{grid-template-columns:1fr;align-content:start;align-items:start;gap:20px}
 .dl-copy{display:contents}.dl-copy>.dl-code{margin-bottom:-12px}.dl-copy h2{font-size:38px;margin-bottom:0}.dl-description{margin:0}
 .dl-stage{grid-row:4;min-height:380px;height:400px}
 .dl-detail{margin:0}.dl-status{margin:0}.dl-actions{margin:0}
 .dl-districts{display:flex;overflow-x:auto;scrollbar-width:none;gap:8px;padding:8px 16px 12px}
 dialog.dds-world .dl-districts button{flex:0 0 auto;min-width:110px}
 .dl-toolbar{padding:10px 20px 0;flex-wrap:wrap;gap:8px}
 .dds-world[data-world="living"] .dl-app{height:calc(100dvh - 238px)}
}
@media(max-width:767px){
 .elementor-13:not(.dds-world-body) #darby-living{width:calc(100% - 32px);padding:30px 20px;margin:24px auto;border-radius:12px}
 .dds-world[data-world="living"] .dl-app{height:calc(100dvh - 142px)}
 .dl-main{padding:16px;gap:18px}.dl-copy h2{font-size:36px}.dl-description{font-size:14px}
 .dl-stage{min-height:360px;height:380px;border-radius:18px}
 dialog.dds-world .dl-building{width:91px;min-height:105px;gap:5px}
 .dl-structure{width:54px;height:47px;margin-bottom:4px}.dl-building-base{height:33px;bottom:-6px}.dl-building-face{height:35px;left:8px;right:8px}.dl-building-roof{height:22px;left:8px;right:8px}.dl-structure b{font-size:20px;inset:6px 0 0}
 .dl-building strong{font-size:9px}.dl-building small{font-size:6px}
 .dl-city-core{width:45px;height:45px}.dl-city-core span{font-size:24px}
 .dl-inquiry-card,.dl-review-card,.dl-report{width:88%;padding:18px}
 .dl-inquiry-card h3,.dl-review-card h3,.dl-report h3{font-size:22px;margin-bottom:12px}
 .dl-inquiry-card .dl-code,.dl-review-card .dl-code,.dl-report .dl-code{font-size:8px;letter-spacing:.05em;margin-bottom:10px}
 .dl-inquiry-card .dl-context-line{padding:5px 0}.dl-context-line p{font-size:11px}
 .dl-work-node{width:82px;padding:13px 6px;gap:10px}.dl-work-node strong{font-size:11px}.dl-work-node small{font-size:8px}
 dialog.dds-world .dl-source{width:90px;padding:10px;min-height:72px}.dl-source strong{font-size:9px}.dl-knowledge-core{width:100px;height:90px}
 .dl-review-icon{font-size:32px;margin-bottom:12px}.dl-check{font-size:11px;margin:10px 0}
 .dl-stats{gap:8px}.dl-stats strong{font-size:27px}.dl-stats span{font-size:9px}.dl-log{font-size:10px}
 .dl-readout{font-size:7px;letter-spacing:.03em;padding:10px}.dl-readout strong{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.dl-living *,.dl-living *:before,.dl-living *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.dl-ripple{display:none!important}}

.dl-knowledge-core strong{max-width:100%;text-align:center;font-size:9px}

/* A persistent fictional inquiry connects district visits and their consequences. */
.dl-living[data-view="overview"] .dl-route-signal:not(.is-live){animation:none;opacity:.04}
.dl-living[data-view="overview"] .dl-route-base.is-complete{stroke:#74e5b1;opacity:.5}
.dl-living[data-view="overview"] .dl-route-signal.is-live{stroke:#8cedda;stroke-width:2.5}
.dl-building.is-next small{color:#d8f3ff}
.dl-building.is-next .dl-building-base{border-color:var(--district);box-shadow:0 0 22px color-mix(in srgb,var(--district) 30%,transparent)}
.dl-live-inquiry{position:absolute;translate:-50% -50%;width:12px;height:12px;background:#efffff;border-radius:50%;box-shadow:0 0 15px white,0 0 45px var(--district);pointer-events:none;z-index:3}
.dl-live-inquiry:after{content:'1042';position:absolute;left:50%;top:-24px;translate:-50% 0;font:8px/1.4 monospace;letter-spacing:.1em;color:#a9e9ed}
.dl-stage:has(>.dl-ripple) .dl-building.is-connected .dl-structure{animation:dl-city-restoration 1.8s calc(var(--district-order)*.09s) ease both}
.dl-stage:has(>.dl-ripple) .dl-route-base.is-complete{animation:dl-route-restoration 1.8s ease both}
.dl-travel-overlay{position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:5;pointer-events:none;animation:dl-travel-lifetime 1.4s linear both}
.dl-map-departure{position:absolute;inset:0 0 38px;background:linear-gradient(135deg,#071622ef,#040d18e8);animation:dl-travel-away 1s cubic-bezier(.3,0,.2,1) both;pointer-events:none}
.dl-map-departure *{pointer-events:none!important;animation-play-state:paused!important}
.dl-travel-request{position:absolute;width:12px;height:12px;translate:-50% -50%;border-radius:50%;background:white;box-shadow:0 0 16px white,0 0 55px #50dcff;animation:dl-request-arrive 1.3s cubic-bezier(.3,0,.2,1) both}
.dl-travel-caption{position:absolute;left:15px;right:15px;bottom:50px;text-align:center;color:#b7e8ed;font:8px/1.5 monospace;letter-spacing:.1em;animation:dl-travel-caption 1.4s both}
@keyframes dl-city-restoration{0%,100%{filter:drop-shadow(0 0 12px color-mix(in srgb,var(--district) 15%,transparent));translate:0 0}45%{filter:drop-shadow(0 0 35px var(--district));translate:0 -7px}}
@keyframes dl-route-restoration{0%,100%{stroke-width:1}45%{stroke-width:3;opacity:1}}
@keyframes dl-travel-lifetime{from{opacity:1}to{opacity:1}}
@keyframes dl-travel-away{from{opacity:1;transform:none;filter:none}to{opacity:0;transform:scale(2.4);filter:blur(7px)}}
@keyframes dl-request-arrive{0%{left:var(--from-x);top:var(--from-y);opacity:0;scale:.5}15%{opacity:1}75%{left:50%;top:48%;opacity:1;scale:1.3}100%{left:50%;top:48%;opacity:0;scale:.7}}
@keyframes dl-travel-caption{0%,100%{opacity:0}30%,70%{opacity:.8}}
@media(max-width:480px){.dl-live-inquiry,.dl-travel-request{width:8px;height:8px}.dl-live-inquiry:after{font-size:6px;top:-18px}.dl-travel-caption{font-size:6px;letter-spacing:.04em}}
@media(prefers-reduced-motion:reduce){.dl-travel-overlay{display:none!important}.dl-stage .dl-building .dl-structure,.dl-stage .dl-route-base{animation:none!important}}

/* District buildings separate into their working layers, then reassemble on return. */
.dl-structure-transition{position:absolute;inset:0;z-index:6;overflow:hidden;pointer-events:none;border-radius:inherit;animation:dl-structure-lifetime 1.85s linear both}
.dl-unfold-building{position:absolute;left:50%;top:46%;width:170px;height:160px;translate:-50% -50%;perspective:800px}
.dl-structure-plane{position:absolute;inset:0;border:1px solid var(--structure-color);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--structure-color) 16%,#13283b),#081522ed);box-shadow:0 0 28px color-mix(in srgb,var(--structure-color) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;transform:translateY(calc((var(--layer) - 1.5)*17px)) rotateX(52deg) rotateZ(-28deg);transform-style:preserve-3d}
.dl-plane-icon{font:32px/1 monospace;color:var(--structure-color)}
.dl-plane-label{font:9px/1.5 monospace;letter-spacing:.1em;text-align:center;color:#d3e7f5}
.dl-plane-detail{display:block;width:50%;height:2px;background:var(--structure-color);opacity:.5}
.dl-structure-caption{position:absolute;left:12px;right:12px;bottom:48px;text-align:center;font:8px/1.5 monospace;letter-spacing:.15em;color:var(--structure-color);animation:dl-structure-caption 1.85s ease both}
.dl-structure-transition[data-phase="enter"] .dl-structure-plane{animation-duration:1.7s;animation-timing-function:cubic-bezier(.2,.7,.2,1);animation-fill-mode:both}
.dl-structure-transition[data-district="gateway"][data-phase="enter"] .dl-structure-plane{animation-name:dl-gateway-unfold}
.dl-structure-transition[data-district="work"][data-phase="enter"] .dl-structure-plane{animation-name:dl-work-unfold}
.dl-structure-transition[data-district="knowledge"][data-phase="enter"] .dl-structure-plane{animation-name:dl-knowledge-unfold}
.dl-structure-transition[data-district="review"][data-phase="enter"] .dl-structure-plane{animation-name:dl-review-unfold}
.dl-structure-transition[data-district="insight"][data-phase="enter"] .dl-structure-plane{animation-name:dl-insight-unfold}
.dl-structure-transition[data-phase="return"] .dl-structure-plane{animation:dl-layer-reassemble 1.35s cubic-bezier(.2,.8,.2,1) both}
.dl-structure-transition[data-phase="return"] .dl-unfold-building{animation:dl-building-return 1.8s cubic-bezier(.4,0,.2,1) both}
.dl-stage.dl-structure-travel>.dl-canvas{animation:dl-interior-reveal 1.8s ease both}
.dl-stage.dl-structure-travel .dl-map-departure{display:none}
@keyframes dl-structure-lifetime{from{opacity:1}to{opacity:1}}
@keyframes dl-structure-caption{0%,100%{opacity:0}15%,65%{opacity:.8}}
@keyframes dl-gateway-unfold{
 0%{opacity:0;scale:.5}20%{opacity:1;scale:1;transform:translateY(calc((var(--layer) - 1.5)*17px)) rotateX(52deg) rotateZ(-28deg)}
 70%{opacity:.85;transform:translate(calc((var(--layer) - 1.5)*100px),calc((var(--layer) - 1.5)*35px)) rotateY(-25deg)}
 100%{opacity:0;transform:translate(calc((var(--layer) - 1.5)*135px),calc((var(--layer) - 1.5)*45px)) rotateY(-25deg);scale:1.2}
}
@keyframes dl-work-unfold{
 0%{opacity:0;scale:.5}20%{opacity:1;scale:1}
 70%{opacity:.85;transform:translateX(calc((var(--layer) - 1.5)*115px)) rotateX(25deg) rotateZ(-8deg)}
 100%{opacity:0;transform:translateX(calc((var(--layer) - 1.5)*160px)) rotateX(25deg) rotateZ(-8deg);scale:.9}
}
@keyframes dl-knowledge-unfold{
 0%{opacity:0;scale:.5}20%{opacity:1;scale:1}
 70%{opacity:.85;transform:translate(calc((var(--layer) - 1.5)*65px),calc((var(--layer) - 1.5)*-30px)) rotateZ(calc((var(--layer) - 1.5)*28deg))}
 100%{opacity:0;transform:translate(calc((var(--layer) - 1.5)*105px),calc((var(--layer) - 1.5)*-50px)) rotateZ(calc((var(--layer) - 1.5)*40deg));filter:blur(3px)}
}
@keyframes dl-review-unfold{
 0%{opacity:0;scale:.5}20%{opacity:1;scale:1}
 70%{opacity:.85;transform:translateY(calc((var(--layer) - 1.5)*85px)) rotateX(calc((var(--layer) - 1.5)*35deg))}
 100%{opacity:0;transform:translateY(calc((var(--layer) - 1.5)*135px)) rotateX(calc((var(--layer) - 1.5)*45deg))}
}
@keyframes dl-insight-unfold{
 0%{opacity:0;scale:.5}20%{opacity:1;scale:1}
 70%{opacity:.85;transform:translate(calc((var(--layer) - 1.5)*70px),calc(var(--layer)*-28px)) rotateY(-20deg);scale:1 calc(.65 + var(--layer)*.2)}
 100%{opacity:0;transform:translate(calc((var(--layer) - 1.5)*100px),calc(var(--layer)*-45px)) rotateY(-20deg);scale:1 calc(.65 + var(--layer)*.2)}
}
@keyframes dl-layer-reassemble{
 from{opacity:0;transform:translate(calc((var(--layer) - 1.5)*90px),calc((var(--layer) - 1.5)*40px)) rotateZ(calc((var(--layer) - 1.5)*20deg))}
 35%{opacity:.9}to{opacity:1;transform:translateY(calc((var(--layer) - 1.5)*17px)) rotateX(52deg) rotateZ(-28deg)}
}
@keyframes dl-building-return{0%,35%{left:50%;top:46%;scale:1}80%{left:var(--target-x);top:var(--target-y);scale:.4;opacity:1}100%{left:var(--target-x);top:var(--target-y);scale:.35;opacity:0}}
@keyframes dl-interior-reveal{0%,25%{opacity:.1;filter:blur(5px)}70%{opacity:.8}100%{opacity:1;filter:none}}
@media(max-width:480px){.dl-unfold-building{width:112px;height:108px}.dl-plane-icon{font-size:25px}.dl-plane-label{font-size:7px}.dl-structure-plane{gap:9px}.dl-structure-caption{font-size:6px;letter-spacing:.06em}}
@media(prefers-reduced-motion:reduce){.dl-structure-transition{display:none!important}.dl-stage.dl-structure-travel>.dl-canvas{animation:none!important}}

/* After-hours scenario: preparation continues; human approval still waits. */
dialog.dds-world .dl-night-toggle{margin-left:auto;min-height:36px;padding:8px 11px;border:1px solid #4d637f;background:#101d32;color:#bfcbe6;font:10px/1.4 monospace;white-space:nowrap}
dialog.dds-world .dl-night-toggle[aria-pressed="true"]{border-color:#b39aff;color:#e1d5ff;background:#271e40;box-shadow:0 0 20px #b39aff19}
.dl-living[data-after-hours="true"] .dl-stage{background:radial-gradient(ellipse at 60% 30%,#2b214b77,#020711 75%);border-color:#51436b}
.dl-living[data-after-hours="true"][data-view="overview"] .dl-stage:after{content:'';position:absolute;right:28px;top:22px;width:26px;height:26px;border-radius:50%;background:transparent;box-shadow:-7px 4px 0 #d3c6ff99;pointer-events:none;z-index:0}
.dl-living[data-after-hours="true"] .dl-sky{opacity:.9}
.dl-living[data-after-hours="true"] .dl-city-horizon{opacity:.4}
.dl-living[data-after-hours="true"] .dl-building-face:after{content:'';position:absolute;inset:9px 7px;background:repeating-linear-gradient(90deg,#ffd58966 0 3px,transparent 3px 9px);opacity:.4}
.dl-living[data-after-hours="true"][data-reviewer-online="false"] .dl-building[aria-label="Enter Human Review"] .dl-structure{filter:grayscale(.6);opacity:.4}
.dl-living[data-after-hours="true"][data-reviewer-online="false"] .dl-building[aria-label="Enter Human Review"] small{color:#ddba8f}
.dl-route-signal.is-waiting{animation-play-state:paused!important;opacity:.2!important;stroke:#ffc56d}
.dl-route-base.is-waiting{stroke:#ffc56d;stroke-dasharray:3 3;opacity:.4}
.dl-living[data-after-hours="true"][data-reviewer-online="false"] .dl-review-card{border-color:#d7ae7f;background:linear-gradient(135deg,#302339,#081623f5)}
@media(max-width:767px){dialog.dds-world .dl-night-toggle{font-size:9px;padding:8px;min-height:36px}.dl-toolbar{gap:8px}.dl-toolbar .dl-code{font-size:8px;letter-spacing:.05em}}

/* Broken routes dim their dependent districts until the sample handoff is repaired. */
.dl-living[data-fault]:not([data-fault=""]) .dl-stage{border-color:#a46760;background:radial-gradient(ellipse at 55% 45%,#45233344,#030a14 75%)}
.dl-building.is-disrupted .dl-structure{filter:grayscale(.7);opacity:.28}
.dl-building.is-disrupted strong{color:#6f8295}
.dl-building.is-disrupted small{color:#a48783}
.dl-building.is-fault-origin .dl-building-base{border-color:#f1a083;box-shadow:0 0 18px #f1a08322}
.dl-route-signal.is-broken,.dl-route-signal.is-downstream{animation-play-state:paused!important;opacity:0!important}
.dl-route-base.is-broken{stroke:#f19c82!important;stroke-dasharray:2 5;opacity:.65!important}
.dl-route-base.is-downstream{opacity:.09!important}
.dl-route-fault{position:absolute;translate:-50% -50%;z-index:4;pointer-events:none;text-align:center;display:grid;justify-items:center;gap:5px}
.dl-route-fault strong{display:grid;place-items:center;width:23px;height:23px;border:1px solid #f19c82;border-radius:6px;background:#332130;color:#ffd0bc;font:19px/1 monospace;box-shadow:0 0 22px #f19c8222}
.dl-route-fault small{max-width:120px;background:#08121de8;padding:3px 5px;border-radius:4px;color:#ddac9b;font:8px/1.4 monospace}
@media(max-width:480px){.dl-route-fault strong{width:18px;height:18px;font-size:16px}.dl-route-fault small{max-width:90px;font-size:6px}}
