:root{color-scheme:dark;--bg:#080f18;--surface:#111d2c;--stroke:#203447;--type:#e9f2f7;--muted:#8398a9;--accent:#efc27b;--blue:#9ccfea}
*{box-sizing:border-box}html,body{margin:0;overflow:hidden;overscroll-behavior:none;background:var(--bg);color:var(--type);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;line-height:1.45}button,input{font:inherit}.wrap{width:min(1280px,100%);margin:0 auto;padding:22px 24px 28px}.header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.brand{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.brand-lockup{display:block;height:54px;width:auto;max-width:min(42vw,420px);object-fit:contain}.subtitle{font-size:12px;color:#8b9fac;margin-top:0}.key{font-size:11px;color:#7b94a5;text-align:right;white-space:nowrap}.key strong{font-size:12px;color:#b6cdd6;font-variant-numeric:tabular-nums;font-weight:550}.workbench{background:#0e1a28;border:1px solid #263849;border-radius:14px;overflow:hidden;box-shadow:0 20px 75px #00000035}.editing-bar{padding:10px 13px;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid #213344}.editing-bar .cluster{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.section-label{color:#6f8596;text-transform:uppercase;font-weight:650;letter-spacing:1.45px;font-size:9px;margin-right:8px}.separator{width:1px;height:19px;background:#344656;margin:0 8px}button{border:1px solid transparent;background:transparent;color:#a6bac8;border-radius:7px;padding:8px 11px;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border .15s}button:hover{background:#233747;color:#f1f7fa}button:focus-visible,input:focus-visible{outline:2px solid #edc689;outline-offset:2px}button.active{background:#253e4b;color:#d7f4fc;border-color:#4b7b87}button.primary{background:#eed1a2;color:#152333;font-weight:700;padding:9px 15px}button.primary:hover{background:#ffe1ac}button.tool{font-weight:500}button.tool-bolt{background:#23394a;color:#f0f5f7;border:1px solid #355266;font-weight:650;padding:8px 14px}button.tool-bolt.active{background:#efd0a2;color:#152633;border-color:#efd0a2}button.muted{color:#70899b}.view{position:relative;background:#06172c;overflow:hidden;touch-action:none}canvas{width:100%;height:auto;display:block;touch-action:none;cursor:crosshair}.status{position:absolute;left:20px;top:19px;display:flex;gap:0;background:#081827b8;backdrop-filter:none;border:1px solid #36546b63;border-radius:9px;pointer-events:none}.stat{padding:9px 17px;min-width:116px}.stat+.stat{border-left:1px solid #31465977}.stat label{display:block;text-transform:uppercase;font-size:9px;letter-spacing:1px;color:#8aa0b1}.stat strong{display:block;font-size:16px;font-weight:590;letter-spacing:-.3px;font-variant-numeric:tabular-nums;color:#e6eef3}.stat strong.gold{color:#f1c986}.hint{position:absolute;bottom:15px;left:18px;padding:7px 10px;font-size:11px;color:#9bb9cc;background:#08182d94;border-radius:6px;pointer-events:none}.view:active .hint{opacity:.5}.under-canvas{padding:15px 18px 12px;background:#0e1a28}.transport{display:flex;align-items:center;gap:18px}.controls{display:flex;gap:7px;align-items:center}.controls #play{min-width:92px}.time{font:500 12px ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;color:#d8e8f0;white-space:nowrap;letter-spacing:-.4px}.time .dim{color:#597385}.timeline{min-width:140px;flex:1;display:flex;align-items:center;gap:11px}.timeline input{flex:1;min-width:70px;accent-color:#ecc78c;cursor:pointer;height:22px}.speed-group{display:inline-flex;gap:2px;padding:2px;border:1px solid #2e4353;background:#091622;border-radius:9px}.speed-group button{padding:6px 9px;font-size:11px;min-width:36px}.speed-group button.active{background:#324b5b;color:#effaff;border-color:transparent}.speed-label{display:none}.preferences{display:flex;align-items:center;flex-wrap:wrap;gap:16px;justify-content:space-between;padding-top:12px;margin-top:13px;border-top:1px solid #203140}.options{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.segmented{display:inline-flex;gap:1px;background:#091723;border:1px solid #294051;border-radius:8px;padding:2px}.segmented button{font-size:11px;padding:6px 10px}.segmented button.active{background:#29465b;color:#e5f2fa;border-color:transparent}.segmented .selected-mode{color:var(--blue)}.heat-scale{display:flex;gap:9px;align-items:center;color:#7891a3;font-size:10px}.heat-gradient{width:105px;height:5px;border-radius:6px;background:linear-gradient(90deg,#1766bb,#17bbf1,#c1eeb5,#f8e063,#f58e35,#f52640)}.heat-gradient.blue{background:linear-gradient(90deg,#084e60,#168ba4,#43b7e6,#b1efff)}.bottom-line{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:11px}.tool-note{color:#8198aa;font-size:11px}.sound-status{font-size:10px;color:#5f8594}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:20px;color:#768fa0;font-size:10px;padding:11px 4px 0}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px}.foot{font-size:11px;color:#62798b;padding:12px 2px}.foot span{color:#8fa6b4}@media(max-width:790px){.wrap{padding:12px 10px}.header{gap:10px}.key{display:none}.editing-bar{align-items:flex-start}.section-label{display:none}.transport{flex-wrap:wrap;gap:10px}.timeline{order:5;flex-basis:100%}.under-canvas{padding:11px}.preferences{gap:10px}.bottom-line{display:none}}@media(max-width:480px){.brand-lockup{height:36px;max-width:58vw}.subtitle{font-size:10px}.editing-bar{padding:8px}.editing-bar .cluster{gap:3px}.editing-bar button{padding:7px}.separator{margin:0 3px}.status{left:7px;top:7px}.stat{padding:5px 8px;min-width:auto}.stat label{font-size:8px}.stat strong{font-size:12px}.hint{display:none}.speed-group button{min-width:29px;padding:5px}.legend{gap:10px}}

.fixed-field{padding-top:9px;margin-top:10px}.field-caption{font-size:10px;letter-spacing:1px;color:#7893a2;font-weight:650}.field-caption span{font-weight:450;letter-spacing:.1px;color:#b5ccda;margin-left:7px}.foot{text-align:center;padding:18px 0 0;font-size:11px;color:#638091}.controls #restart{border-color:#31485a}.controls #restart:hover{background:#20394a}.field-options{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.bolt-mode button{font-size:11px;letter-spacing:.01em;padding:7px 12px}.fixed-field{gap:14px}.field-caption{white-space:nowrap}@media(max-width:700px){.field-options{width:100%;justify-content:space-between}.fixed-field .heat-scale{width:100%;justify-content:flex-end}}


/* Public experience: discreet utility controls, visual focus stays on the field. */
.editing-bar{gap:8px}.editing-bar .cluster:last-child{justify-content:flex-end}.editing-bar button{font-size:12px}
.render-mode button{padding:6px 9px}.acoustic-meter{position:absolute;right:18px;top:20px;pointer-events:none;width:138px;background:#081827b8;border:1px solid #36546b63;border-radius:8px;padding:9px 11px;backdrop-filter:none}
.meter-label{font-size:9px;letter-spacing:1px;color:#93a7b6}.meter-track{margin-top:7px;height:3px;border-radius:5px;background:#293a47;overflow:hidden}.meter-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#1b9ebd,#84d9ef,#fff6b7);border-radius:5px;transition:width 80ms}
.physics-note{margin-left:auto;opacity:.8}.controls #recordVideo{color:#9ab8c9;border:1px solid #2e4455}.controls #recordVideo.recording{color:#ff8e8e;border-color:#9e4b4b;background:#382329}.controls #shareScene{color:#c2dbdf}
@media(max-width:900px){.acoustic-meter{top:auto;bottom:16px;right:11px;width:125px}.preferences{gap:7px}.fixed-field{align-items:flex-start}.physics-note{display:none}}
@media(max-width:700px){.view{min-height:240px}.editing-bar{padding:8px}.editing-bar .cluster{gap:3px}.editing-bar button{padding:8px 9px;min-height:37px}.transport{gap:10px}.controls{flex-wrap:wrap}.controls button{min-height:40px}.fixed-field .field-options{align-items:flex-start;gap:8px}.bolt-mode{max-width:100%;flex-wrap:wrap}.bolt-mode button{padding:8px}.render-mode{align-self:flex-start}.acoustic-meter{display:none}}
@media(max-width:480px){.wrap{padding:7px}.header{margin:7px 2px 10px}.subtitle{max-width:260px}.workbench{border-radius:11px}.editing-bar{flex-wrap:wrap}.editing-bar .cluster:last-child{flex:1}.controls #recordVideo,.controls #shareScene{font-size:11px}.preferences{margin-top:8px}.field-caption{display:none}}

.grid-picker{display:flex;align-items:center;gap:8px;white-space:nowrap}
.grid-label{font-size:10px;letter-spacing:.10em;font-weight:650;color:#7893a2}
.grid-options{display:flex;gap:0}.grid-options button{font-size:11px;min-width:34px;padding:7px 9px}
.grid-progress{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);
  z-index:4;background:rgba(7,22,34,.86);color:#b6dce8;border:1px solid #40647870;
  border-radius:8px;padding:8px 13px;font-size:11px;letter-spacing:.02em;
  pointer-events:none;white-space:nowrap;backdrop-filter:none}
.grid-progress[hidden]{display:none}
@media(max-width:700px){.grid-picker{margin-left:auto}.grid-options button{padding:8px 9px}}

.heat-scale{display:flex;gap:10px;align-items:center}.heat-scale label{font-size:10px;letter-spacing:.12em;color:#849da9;font-weight:650}
#paletteMode{background:#112332;color:#cce2ee;border:1px solid #355166;border-radius:7px;padding:6px 24px 6px 9px;font-size:11px;outline-offset:2px}
.meter-label{display:flex;align-items:center;justify-content:space-between;gap:5px;white-space:nowrap;font-size:8px}
.meter-label strong{font-size:10px;color:#efd18b;font-variant-numeric:tabular-nums;font-weight:600}
.acoustic-meter{width:178px}.grid-picker{margin-left:auto}
@media(max-width:700px){.acoustic-meter{display:block;right:9px;top:9px;bottom:auto;width:151px;padding:7px 8px}.meter-label{font-size:7px}.meter-label strong{font-size:9px}}

/* v1.7: leave the scene unobstructed, and draw raw strokes on a compositor layer. */
#strokeOverlay { position:absolute;inset:0;width:100%;height:auto;z-index:2;pointer-events:none;touch-action:none; }
.view > .status { z-index:3; }
.view > .hint { display:none!important; }
.status .stat:last-child { min-width:126px; }
.status .stat:last-child strong { white-space:nowrap; }
.acoustic-meter { display:none!important; }
.grid-progress {position:absolute;z-index:5;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);
  min-width:min(245px,80%);padding:15px 18px 14px;text-align:center;display:flex;flex-direction:column;gap:12px;
  border:1px solid rgba(109,187,164,.26);background:rgba(4,19,28,.94);box-shadow:0 12px 55px #0008;
  border-radius:12px;font-size:12px;color:#cfebe3;letter-spacing:.01em;white-space:normal;backdrop-filter:none;}
.grid-progress[hidden] {display:none!important;}
.grid-progress-rail {height:4px;width:100%;border-radius:20px;overflow:hidden;background:#25433e;display:block;}
#gridProgressFill {width:0%;height:100%;border-radius:20px;display:block;background:linear-gradient(90deg,#43aa81,#7de9ae);transition:width .1s linear;}
@media(max-width:700px){.status{z-index:3}.stat{padding:6px 9px}.stat label{letter-spacing:.03em}}

/* WAKE THE CITY / mode-specific presentation */
.mode-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;background:#0d2030;border:1px solid #294255;border-radius:10px;margin-left:auto}
.mode-switch button{font-size:11px;letter-spacing:.02em;font-weight:600;padding:7px 12px;min-height:32px;color:#839dad}
.mode-switch button.active{background:#36546a;color:#eef8ff;border-color:transparent}
#wakePanel[hidden],#wakeHud[hidden],#wakeResult[hidden]{display:none!important}
#wakePanel{display:flex;flex-direction:column;gap:0;padding:10px 16px;background:linear-gradient(#131a2d,#0e1628);border-bottom:1px solid #93805f70}
.wake-level-head{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:nowrap}
.wake-level-intro{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.wake-level-head h2{font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:400;letter-spacing:.03em;margin:0;color:#f0d3a1;line-height:1.15;white-space:nowrap;display:block}
.wake-level-head #wakeLevelHint{color:#bca88b;font-size:12px;margin:0;max-width:min(22rem,42vw);line-height:1.35;display:block}
.wake-level-choices{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;flex:0 1 auto}
.wake-level-choices button{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1px;text-align:left;padding:6px 10px;border:1px solid #85745165;border-radius:5px;background:#131b2b;min-width:0;white-space:nowrap}
.wake-level-choices button strong{color:#e8d4ae;font-size:12px;font-weight:600}
.wake-level-choices button small{color:#ad9a7c;font-size:11px}
.wake-level-choices button.active{background:linear-gradient(#554730,#2c2630);border-color:#b28c50;color:#f4d59b}
#wakeHud{position:static;display:flex;align-items:center;pointer-events:none;z-index:auto;flex:0 0 auto;margin-left:auto}
.wake-count{display:flex;align-items:center;gap:8px;background:#0e1425;border:1px solid #85745165;border-radius:5px;padding:6px 12px;text-align:left;min-width:0;white-space:nowrap}
.wake-count strong{display:inline;color:#f6cf88;font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums}
.wake-count small{display:none}
#wakeStars{font-size:16px;letter-spacing:.12em;color:#f6cf88;white-space:nowrap;margin:0;line-height:1}
#wakeQuiet{font-size:10px;color:#edaa99;white-space:nowrap}
#wakeResult{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:#021018d0;backdrop-filter:none}
.welcome{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:#07101ccc;pointer-events:auto}
.welcome[hidden]{display:none}
.welcome-card{width:min(420px,88%);padding:26px 24px 22px;border-radius:8px;background:linear-gradient(150deg,#1b2943,#101426);border:1px solid #a38e6755;box-shadow:0 22px 75px #000b;text-align:center;color:#eee2cb}
.welcome-card h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:26px;color:#f0d3a1;letter-spacing:.03em;margin:0 0 8px}
.welcome-card p{font-size:14px;color:#b5c6d1;line-height:1.55;margin:0 0 18px}
#thunderLab .welcome-card button.highlight,#thunderLab .welcome-card button.highlight:hover{background:#eccb99;color:#14283b;font-weight:700;border-color:#eccb99;padding:10px 18px}
.wake-intro{z-index:7;background:#07101c99;pointer-events:auto}
.wake-intro-card{position:relative;box-shadow:0 18px 55px #0009;padding-top:32px}
.wake-intro-close{position:absolute;top:10px;right:10px;width:32px;height:32px;padding:0;border-radius:6px;border:1px solid #85745165;background:#131b2b;color:#e8d4ae;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}
.wake-intro-close:hover,.wake-intro-close:focus-visible{background:#474032;color:#f1d4a0;border-color:#b28c50}
#wakeIntroDraw{margin-top:4px}
.wake-result-inner{width:min(430px,90%);padding:26px;border-radius:8px;background:linear-gradient(150deg,#1b2943,#101426);border:1px solid #a38e6755;box-shadow:0 22px 75px #000b;text-align:center;color:#eee2cb}
#thunderLab .wake-result-inner h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#f0d3a1;letter-spacing:.03em}
.wake-result-inner .stars{font-size:34px;letter-spacing:.19em;color:#f7c777;margin-bottom:5px}
.wake-result-inner h2{font-size:26px;font-weight:690;margin:7px 0;letter-spacing:-.04em}
.wake-result-inner p{font-size:12px;color:#b5c6d1;line-height:1.6;margin:6px 0 17px}
.wake-result-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.wake-result-actions button{border:1px solid #50748b;background:#233e52;color:#e4f2f7;padding:10px 14px}
.wake-result-actions button.highlight{background:#eccb99;color:#14283b;font-weight:700;border-color:#eccb99}
#thunderLab.wake-mode .header{margin-bottom:0}
#thunderLab.wake-mode .canvas-tools #buildings{display:none}
#thunderLab.wake-mode .view{background:#142340}
#thunderLab.wake-mode .preferences.fixed-field{padding-top:10px}
#thunderLab.wake-mode .legend .physics-note{display:none}
@media(max-width:760px){.mode-switch{margin-left:0}.header{flex-wrap:wrap}.wake-level-head{gap:8px;align-items:center;flex-wrap:wrap}.wake-level-choices{flex-wrap:wrap}.wake-level-choices button{min-width:95px;padding:7px 8px}.wake-level-head h2{font-size:18px}.wake-level-head p{font-size:11px}#wakePanel{padding:10px 12px}#wakeHud{position:static;left:auto;right:auto;top:auto;margin-left:0}.wake-count{padding:5px 8px}.wake-count strong{font-size:16px}.wake-count small{font-size:8px}}


/* Zeus: the same controls, dressed in a classical illustrated night theme. */
.header-right{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}.zeus-brand{display:none}
#thunderLab .mode-switch{flex-shrink:0}
.wake-level-left{display:flex;align-items:center;flex:0 0 auto;min-width:0}
#thunderLab{--bg:#0c1021;--type:#eee2cb;--accent:#e1b56b;position:relative;color:#d9cbb5;max-width:1240px;}
#thunderLab .header{background:linear-gradient(110deg,#1b2943,#101426 48%,#111729);border:1px solid #a38e674d;border-radius:8px 8px 0 0;padding:0 19px 0 0;margin-bottom:0;min-height:86px;align-items:center;overflow:hidden;box-shadow:0 0 0 3px #151926 inset;position:relative;}
#thunderLab .header .brand{display:none}#thunderLab .zeus-brand{display:flex;align-items:center;gap:4px;min-width:0;flex:1}.zeus-brand img{display:block;width:110px;height:127px;object-fit:contain;object-position:center bottom;align-self:center;margin:0 0 -18px -2px}.zeus-wordmark{padding:0;min-width:0;text-shadow:0 2px 8px #0009;display:flex;flex-direction:column;justify-content:center}
#thunderLab .header-right{align-self:center;padding-bottom:0}.zeus-title{margin:0;font:400 clamp(24px,3.2vw,39px)/1 Georgia,'Times New Roman',serif;letter-spacing:.04em;color:#f0d3a1;white-space:nowrap}.zeus-subtitle{margin:6px 0 0;color:#bca88b;font:600 12px/1.35 Georgia,serif;letter-spacing:.03em;max-width:22rem}
#thunderLab .key{color:#a59c89}#thunderLab .key strong{color:#e3c78c}#thunderLab .mode-switch{background:#0e1425;border-color:#78694e75;border-radius:5px;padding:4px}#thunderLab .mode-switch button{color:#adadbb;border-radius:3px}#thunderLab .mode-switch button.active{background:linear-gradient(#554730,#2c2630);border:1px solid #b28c50;color:#f4d59b}
#thunderLab .workbench{border-radius:0 0 8px 8px;border-color:#a38e6755;background:#101729;box-shadow:0 17px 70px #030811b0}#thunderLab .editing-bar{background:linear-gradient(#131a2d,#0e1628);border-bottom:1px solid #93805f70;padding:14px 18px}#thunderLab .section-label,#thunderLab .heat-scale label,#thunderLab .grid-label{color:#beac89;letter-spacing:.14em}#thunderLab button{color:#b9b6bf;border-radius:4px;transition:background .28s ease,color .28s ease,border-color .28s ease,box-shadow .28s ease,opacity .28s ease,filter .28s ease}#thunderLab button:hover{background:#2d3040;color:#ffdeb1}#thunderLab button.active,#thunderLab button.tool-bolt.active{background:linear-gradient(#4d402c,#272331);border-color:#c89e5c;color:#f2d39a}#thunderLab button.tool-bolt{background:#242a3c;border-color:#8b77545c;color:#e4cfaa}#thunderLab .separator{background:#77664e66}#thunderLab .view{background:#142340}
#thunderLab .status{background:linear-gradient(120deg,#14213ae9,#11192de8);border:1px solid #c2a36a99;border-radius:4px;box-shadow:0 0 0 2px #101828 inset,0 6px 22px #0003;left:auto;right:16px;margin-right:5px;bottom:auto}#thunderLab .stat{padding:3px 16px 4px}#thunderLab .stat+.stat{border-color:#a48b5e44}#thunderLab .stat label{color:#d9b982;font-size:9px}#thunderLab .stat strong{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:21px;color:#f0e3cd}#thunderLab .stat strong.gold{color:#f6cf88}
#thunderLab .under-canvas{background:linear-gradient(#111b2d,#0e1525);border-top:1px solid #9f896255}#thunderLab .transport .primary{background:linear-gradient(135deg,#efca87,#b78645);border:1px solid #fae1aa;box-shadow:0 0 0 2px #3d3027 inset;color:#231c1b;border-radius:6px}#thunderLab .transport .primary:disabled{background:#241e18;border-color:#4d4336;box-shadow:none;color:#8a7d6c;cursor:default;filter:none}#thunderLab .preferences{border-top-color:#85765142}#thunderLab .timeline input{accent-color:#e4b46b}#thunderLab .time{color:#e2d1b3}#thunderLab .segmented,#thunderLab .speed-group,#thunderLab #paletteMode{background:#131b2b;border-color:#85745165;color:#d8c6a5;border-radius:5px}#thunderLab .speed-group button.active,#thunderLab .segmented button.active{background:#474032;color:#f1d4a0}#thunderLab .legend,#thunderLab .foot{color:#ad9a7c}#thunderLab .grid-progress{background:#10192de8;border-color:#c3a16d70;color:#e8d4ae}
@media(max-width:790px){.header-right{gap:5px}.header .mode-switch{margin:0}#thunderLab .header{min-height:60px;padding-right:7px;align-items:center}#thunderLab .header-right{padding-bottom:0}.zeus-brand img{width:65px;height:85px;margin-bottom:-12px}.zeus-title{font-size:clamp(21px,4.8vw,29px)}.zeus-subtitle{font-size:10px;max-width:16rem}#thunderLab .stat{padding:6px 9px}#thunderLab .stat strong{font-size:15px}#thunderLab .status{right:12px;margin-right:5px;bottom:auto}.mode-switch button{padding:6px 8px;font-size:10px}}
@media(max-width:480px){.header{flex-wrap:wrap}.header-right{width:100%;justify-content:flex-start}#thunderLab .header-right{padding:0 8px 8px}#thunderLab .zeus-brand{flex-basis:100%}#thunderLab .stat strong{font-size:13px}}

.audio-model,.cloud-toggle{display:none!important}

/* Zeus ornamental readouts and illuminated tool hover. */
#thunderLab .status{--laurel:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2240%22%20height%3D%2276%22%20viewBox%3D%220%200%2036%2070%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20x2%3D%22.9%22%20y1%3D%221%22%20y2%3D%220%22%3E%3Cstop%20stop-color%3D%22%23987649%22%2F%3E%3Cstop%20offset%3D%22.58%22%20stop-color%3D%22%23e8c37c%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23b99759%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23g%29%22%20stroke%3D%22none%22%3E%3Cpath%20d%3D%22M24%2066%20C18%2051%2016%2037%2017%2023%20C18%2012%2021%206%2024%202%22%20fill%3D%22none%22%20stroke%3D%22%23cfa765%22%20stroke-width%3D%22.95%22%2F%3E%3Cpath%20transform%3D%22translate%2820%2010%29%20rotate%2812%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2820%2010%29%20rotate%28-72%29%20scale%28-1%201%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2818%2018%29%20rotate%284%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2818%2018%29%20rotate%28-80%29%20scale%28-1%201%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2817%2026%29%20rotate%28-4%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2817%2026%29%20rotate%28-88%29%20scale%28-1%201%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2817%2034%29%20rotate%28-12%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2817%2034%29%20rotate%28-96%29%20scale%28-1%201%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2818%2042%29%20rotate%28-20%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2818%2042%29%20rotate%28-104%29%20scale%28-1%201%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2820%2050%29%20rotate%28-30%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2820%2050%29%20rotate%28-114%29%20scale%28-1%201%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2822%2057%29%20rotate%28-40%29%20scale%28.9%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3Cpath%20transform%3D%22translate%2822%2057%29%20rotate%28-126%29%20scale%28-.9%20.9%29%22%20d%3D%22M0%200%20C-1%20-5%202%20-10%205%20-12%20C7%20-7%205%20-2%200%200Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  position:absolute;left:auto;right:16px;margin-right:5px;bottom:auto;overflow:visible;background:linear-gradient(120deg,#111e34e8,#10192bea);border:1px solid #c2a36a70;box-shadow:0 0 0 2px #101828 inset,0 6px 22px #0003;gap:0;padding:3px 10px;border-radius:3px;top:var(--canvas-overlay-mid);transform:translateY(-50%) scale(.675);transform-origin:right center;}
#thunderLab .status::before,#thunderLab .status::after{content:'';position:absolute;top:50%;width:36px;height:72px;background:var(--laurel) center/contain no-repeat;pointer-events:none;z-index:2;}
#thunderLab .status::before{left:0;transform:translate(-58%,-50%);}
#thunderLab .status::after{right:0;transform:translate(58%,-50%) scaleX(-1);}
#thunderLab .stat{position:relative;text-align:center;min-width:118px;padding:3px 16px 4px;}
#thunderLab .status .stat:last-child{min-width:118px;}
#thunderLab .stat::before{content:none;display:none;}
#thunderLab .stat+.stat{border-left:1px solid #a48b5e25;}
#thunderLab .stat label{font-family:Georgia,'Times New Roman',serif;letter-spacing:.065em;}
#thunderLab .canvas-tools button,#thunderLab .mode-switch button,#thunderLab .controls button,#thunderLab .wake-level-choices button,#thunderLab .wake-result-actions button{position:relative;isolation:isolate;overflow:hidden;}
#thunderLab .canvas-tools button:not(:disabled):hover,#thunderLab .canvas-tools button:not(:disabled):focus-visible,#thunderLab .mode-switch button:not(:disabled):hover,#thunderLab .controls button:not(.primary):not(:disabled):hover{background:radial-gradient(ellipse at 50% 106%,#d7ac5c32 0%,#b58c4820 30%,transparent 75%),#192032;color:#ffe5b3;border-color:#94774940;box-shadow:inset 0 -1px 0 #ad854d44;}
#thunderLab .transport .primary:not(:disabled):hover{filter:brightness(1.08);}
#thunderLab .canvas-tools button:not(:disabled)::after,#thunderLab .mode-switch button:not(:disabled)::after,#thunderLab .controls button:not(:disabled)::after{position:absolute;content:'';bottom:0;left:5%;right:5%;height:2px;background:linear-gradient(90deg,transparent,#b78d50 28%,#ffe2a1 50%,#b78d50 72%,transparent);box-shadow:0 -2px 9px #ffd48799;opacity:0;transition:opacity .28s ease;pointer-events:none;}
#thunderLab .canvas-tools button:not(:disabled):hover::after,#thunderLab .canvas-tools button:not(:disabled):focus-visible::after,#thunderLab .canvas-tools button.active::after,#thunderLab .mode-switch button:not(:disabled):hover::after,#thunderLab .mode-switch button.active::after,#thunderLab .controls button:not(:disabled):hover::after,#thunderLab .controls button.active::after{opacity:1;}
#thunderLab .canvas-tools #buildings{display:none!important}
#thunderLab #sandboxMode{display:none!important}
#thunderLab .zeus-brand img{object-fit:contain;mix-blend-mode:normal;background:none;}
@media(max-width:790px){#thunderLab .status{right:12px;margin-right:5px;bottom:auto;padding:2px 6px;}#thunderLab .status::before,#thunderLab .status::after{width:26px;height:54px;}#thunderLab .stat,#thunderLab .status .stat:last-child{min-width:88px;padding:2px 10px 3px;}#thunderLab .stat label{font-size:7px;}}
@media(max-width:420px){#thunderLab .stat,#thunderLab .status .stat:last-child{min-width:72px;padding:5px 8px 6px;}#thunderLab .status{right:18px;margin-right:5px;}}

#thunderLab .view{--canvas-overlay-top:14px;--canvas-overlay-mid:calc(var(--canvas-overlay-top) + 24px)}
#thunderLab .canvas-tools{top:var(--canvas-overlay-top)}
.bolt-draw-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;pointer-events:none;padding:8px 15px;border-radius:5px;font-size:12px;letter-spacing:.01em;color:#e4cfaa;white-space:nowrap;background:linear-gradient(#131a2de8,#0e1628e0);border:1px solid #93805f70;box-shadow:0 8px 22px #0005}
.bolt-draw-hint[hidden]{display:none!important}
.canvas-tools{position:absolute;top:14px;left:16px;right:auto;z-index:5;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:5px;padding:5px 7px;background:linear-gradient(#131a2de8,#0e1628e0);border:1px solid #93805f70;border-radius:5px;pointer-events:auto;max-width:min(92%,720px)}
.canvas-tools .tool{font-size:12px;padding:9px 13px}
.canvas-tools .tool-bolt{padding:9px 14px;font-size:12px}
#thunderLab .canvas-tools{box-shadow:0 8px 22px #0005}

html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto;font-size:15px;line-height:1.5}
#thunderLab{transform:none;transform-origin:top center;width:65vw;max-width:none;margin:0 auto;padding:28px 0 44px}
.wrap{width:65vw;max-width:none;padding:28px 0 44px}
.view{isolation:isolate}
.status,.wake-count{backdrop-filter:none;-webkit-backdrop-filter:none}
.grid-progress{backdrop-filter:none;-webkit-backdrop-filter:none}

/* Larger chrome: header modes, create tools, transport, and labels. */
button{padding:10px 15px}
.subtitle{font-size:14px}
.key{font-size:13px}.key strong{font-size:14px}
.mode-switch{gap:4px;padding:4px}
.mode-switch button{font-size:14px;padding:10px 16px;min-height:42px;letter-spacing:.02em}
#thunderLab .header{min-height:96px;padding-right:22px;align-items:center}
.zeus-subtitle{font-size:13px}
.zeus-title{font-size:clamp(28px,2.4vw,42px)}
.canvas-tools{gap:7px}
.canvas-tools button{font-size:12px;padding:9px 13px}
.canvas-tools button.tool-bolt{padding:9px 14px;font-size:12px}
.section-label{font-size:11px;margin-right:10px}
.separator{height:22px;margin:0 10px}
.under-canvas{padding:18px 22px 16px}
.transport{gap:20px}
#thunderLab .transport .timeline{flex:1 1 0;min-width:200px;max-width:100%}
#thunderLab .transport .timeline input{min-width:120px}
.controls{gap:9px}
.controls button{font-size:14px;padding:10px 15px}
.controls #play{min-width:118px;padding:12px 20px;font-size:16px}
.time{font-size:14px}
.speed-group button{font-size:13px;padding:8px 12px;min-width:44px}
.segmented button,.render-mode button,.grid-options button{font-size:13px;padding:8px 13px}
.grid-options button{min-width:42px}
.heat-scale,.heat-scale label,.grid-label,.legend,.tool-note{font-size:12px}
#paletteMode{font-size:13px;padding:8px 28px 8px 11px}
.preferences{gap:14px 18px;padding-top:14px;margin-top:14px;width:100%;align-items:center}
#thunderLab .preferences.pref-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;margin-top:12px;margin-left:0;margin-right:0;width:100%}
#thunderLab .preferences.pref-toolbar .render-mode,
#thunderLab .preferences.pref-toolbar .grid-picker,
#thunderLab .preferences.pref-toolbar .heat-scale,
#thunderLab .preferences.pref-toolbar .about-open{flex:0 0 auto;margin:0;justify-self:auto;max-width:none}
#thunderLab .preferences.pref-toolbar .grid-picker{gap:6px}
#thunderLab .preferences.pref-toolbar .heat-scale{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:auto;white-space:nowrap;gap:8px}
#thunderLab .preferences.pref-toolbar .heat-scale label{flex:0 0 auto}
#thunderLab .preferences.pref-toolbar .heat-scale #paletteMode{flex:0 0 auto;min-width:7.6em;width:auto;max-width:none}
#thunderLab .preferences.pref-toolbar .heat-gradient{width:72px;height:5px;flex:0 0 auto;align-self:center}
#thunderLab .preferences.pref-toolbar .grid-options button{min-width:36px;padding:8px 10px}
.grid-picker{margin-left:0;flex:0 0 auto}
.legend{gap:22px;padding-top:14px}
.foot{font-size:13px;padding:16px 2px 0}
.foot a{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:currentColor;text-underline-offset:.15em}
.foot a:hover,.foot a:focus-visible{color:inherit;text-decoration-style:dotted}
#thunderLab .stat label{font-size:10px}
#thunderLab .stat strong{font-size:22px}
@media(max-width:800px){
  html,body{font-size:14px}
  #thunderLab,.wrap{width:calc(100% - 16px);padding:14px 0 28px}
  .mode-switch button{font-size:13px;padding:8px 12px;min-height:38px}
  .editing-bar button,.controls button{font-size:13px}
}
.pref-end{margin-left:auto;display:flex;align-items:center;gap:12px;flex:0 0 auto;white-space:nowrap}
.pref-end .key{text-align:left;font-size:11px;line-height:1.2;letter-spacing:.04em}
#thunderLab .pref-end .key{color:#beac89}
#thunderLab .pref-end .key strong{font-size:12px;color:#e3c78c}
.about-open{display:inline-flex;align-items:center;font-size:13px;padding:8px 13px;border:1px solid #85745165;background:#131b2b;color:#d8c6a5;border-radius:5px;letter-spacing:.02em;text-decoration:none}
#thunderLab .about-open:hover{background:#474032;color:#f1d4a0;border-color:#c2a36a99}
.about-scrim{position:fixed;inset:0;z-index:80;background:#040b16a8;opacity:0;pointer-events:none;transition:opacity .32s ease}
.about-scrim.open{opacity:1;pointer-events:auto}
.about-panel{position:fixed;top:0;right:0;bottom:0;z-index:81;width:min(500px,94vw);display:flex;flex-direction:column;background:linear-gradient(180deg,#151d2e,#0e1525);border-left:1px solid #c2a36a99;box-shadow:-18px 0 60px #0008;color:#e2d1b3;transform:translateX(100%);transition:transform .38s cubic-bezier(.22,.8,.32,1);pointer-events:none}
.about-panel.open{transform:translateX(0);pointer-events:auto}
.about-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px 14px;border-bottom:1px solid #85765142;flex:0 0 auto}
.about-head h1,.about-head h2{margin:0;min-width:0;font:400 26px/1.15 Georgia,'Times New Roman',serif;letter-spacing:.03em;color:#f0d3a1}
.about-close{flex:0 0 auto;font-size:13px;padding:8px 14px;border:1px solid #85745165;background:#131b2b;color:#d8c6a5;border-radius:5px}
#thunderLab .about-close:hover{background:#474032;color:#f1d4a0}
.about-body{flex:1;overflow:auto;padding:8px 24px 36px;-webkit-overflow-scrolling:touch}
.about-body h2{font:400 20px/1.25 Georgia,'Times New Roman',serif;color:#f0d3a1;letter-spacing:.02em;margin:26px 0 10px}
.about-body h3{font:400 16px/1.3 Georgia,'Times New Roman',serif;color:#efca87;letter-spacing:.015em;margin:22px 0 8px}
.about-body p,.about-body li{color:#d4c4a8;font-size:14px;line-height:1.55;margin:0 0 12px}
.about-body ul{margin:0 0 14px;padding-left:1.2em}
.about-body a{color:#efca87;overflow-wrap:anywhere;word-break:break-word}
.about-body a:hover{color:#fae1aa}
@media(max-width:900px){#thunderLab .preferences.pref-toolbar{flex-wrap:wrap;row-gap:12px;column-gap:16px;justify-content:space-between}#thunderLab .preferences.pref-toolbar .about-open{text-align:center}#thunderLab .preferences.pref-toolbar .heat-scale{flex-wrap:nowrap}}
.about-public{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.about-public .about-kicker{margin:0 0 18px;color:#efca87;font:600 15px/1.4 Georgia,'Times New Roman',serif;letter-spacing:.02em}
.about-public h2{font:400 26px/1.2 Georgia,'Times New Roman',serif;color:#f0d3a1;letter-spacing:.02em;margin:28px 0 10px}
.about-public h2:first-child{margin-top:0}
.about-public h3{font:400 17px/1.3 Georgia,'Times New Roman',serif;color:#efca87;margin:22px 0 8px}
.about-public p,.about-public li{font-size:15px;line-height:1.6;margin:0 0 12px;color:#d4c4a8}
.about-public ul{margin:0 0 14px;padding-left:1.2em}
.about-public a{color:#efca87;overflow-wrap:anywhere;word-break:break-word}
.about-public a:hover{color:#fae1aa}
