.theme-picker{display:flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap;flex-shrink:0;color:var(--muted)}.theme-picker select{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:9px 12px;max-width:155px;cursor:pointer}.theme-picker select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1050px){.theme-picker>span{display:none}.header{gap:12px}}@media(max-width:600px){.header{height:auto;min-height:110px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px;gap:12px}.header nav{order:4;flex-basis:100%;justify-content:center}.theme-picker{margin-left:auto}.theme-picker select{max-width:138px;padding:8px;font-size:13px}.header .demo-pill{font-size:13px;padding:8px}.brand>span{font-size:25px}}
:root{--surface:#141414;--panel:#191919;--line:#363636;--ink:#fafafa;--muted:#b0b0b0;--accent:#ff4608;--wash:#222}
html[data-theme=light]{--surface:#fff;--panel:#f5f5f5;--line:#d7d7d7;--ink:#161616;--muted:#626262;--accent:#bb2500;--wash:#ededed}
html body{background:#090909}
html[data-theme=light] body{background:#fff}
html .primary,html[data-theme=light] .primary{background:#ff4608;border-color:#ff4608;color:#111!important}
html .primary:hover{box-shadow:0 0 24px #ff460840}
html .brand-dot,html[data-theme=light] .brand-dot{background:#ff4608;box-shadow:0 0 12px #ff460866}
html :focus-visible{outline-color:var(--accent)}
html nav a.active{color:var(--accent)}
html nav a.active:after{background:#ff4608;box-shadow:0 0 16px #ff460866}

/* Firelight: a hot core, orange edge and restrained red halo. */
:root{--accent:#ff4912;--ink:#f5f1e9;--muted:#b5afa6;--line:#39332d;--surface:#151311;--panel:#1b1714;--wash:#241b15;--fire:#ff2a0b;--fire-core:#ffaa6c}
html[data-theme=light]{--surface:#f6f3ec;--panel:#f0ede5;--line:#d3ccc0;--ink:#201d19;--muted:#686156;--accent:#c71a00;--wash:#e5dfd3}
html body{background:#0c0b0a;color:var(--ink)}
html[data-theme=light] body{background:#ebe9e3}
html .primary,html[data-theme=light] .primary{background:linear-gradient(115deg,#ff7f1d 0%,#ff4611 38%,#ff210b 100%);border:1px solid #ff7228;color:#211006!important;box-shadow:inset 0 1px 0 #ffcea7bb,0 0 12px #ff460830,0 5px 24px #ff19081c}
html .primary:hover{box-shadow:inset 0 1px 0 #fff0cf,0 0 18px #ff4e0865,0 0 42px #ff190830}
html .brand-dot,html[data-theme=light] .brand-dot,html .demo-pill i{background:#ffc998;box-shadow:0 0 4px #ff7f28,0 0 10px #ff4b08,0 0 22px #ff190878}
html nav a.active:after{background:#ff8b43;box-shadow:0 0 5px #ff651a,0 0 14px #ff2a0baa}
html[data-theme=light] :is(.project-card,.stats,.table-wrap,.plan-view,dialog,input,select,.ghost,.secondary,.excel-preview,.quiet-panel){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme=light] :is(th,.demo-banner,.dropzone,.empty-state){background:var(--wash);color:var(--ink);border-color:var(--line)}
html[data-theme=light] :is(.header,footer,.home-strip,.workflow){border-color:var(--line)}

html .project-universe,html .drawing-universe{background:radial-gradient(ellipse at 50% 49%,#ff41080e 0%,transparent 52%),linear-gradient(145deg,#161310,#0b0a09 70%);border-color:#403329}
html .project-universe::before{background:linear-gradient(#ff56160c 1px,transparent 1px),linear-gradient(90deg,#ff56160c 1px,transparent 1px);background-size:52px 52px;opacity:.55}
html .project-universe::after{filter:sepia(1) saturate(2);opacity:.3}
html .project-universe .orbit-ring{border-color:#ff4e1538;box-shadow:0 0 8px #ff2a0b08}
html .project-universe .orbit-core.planet-hub,html .project-universe .orbit-core.planet-hub.object-hub,html .project-universe .orbit-node .node-disc.planet-surface,html .warp-stage .warp-gate.planet-surface,html .focus-planet{background:radial-gradient(circle at 30% 23%,#7c1600 0%,#281a12 34%,#100d0a 75%);border:1px solid #ff945e;box-shadow:inset 0 0 8px #ff5c1466,inset -9px -10px 17px #080604cc,0 0 3px #ffc28a,0 0 11px #ff4f08b0,0 0 29px #ff210844}
html .project-universe .orbit-core.planet-hub{width:76px;height:76px}
html .project-universe .orbit-node .node-disc.planet-surface{width:52px;height:52px}
html .project-universe .orbit-node:hover .node-disc.planet-surface,html .project-universe .orbit-node:focus-visible .node-disc.planet-surface{box-shadow:inset 0 0 10px #ff641d70,0 0 4px #fff0c7,0 0 16px #ff5b08,0 0 40px #ff260860}
html .project-universe .orbit-core.planet-hub::after,html .project-universe .orbit-node .node-disc.planet-surface::after{background:radial-gradient(circle at 30% 22%,#ffc9a02b,transparent 33%),radial-gradient(circle,transparent 40%,#14090370);opacity:1}
html .project-universe .cad-plan svg{color:#ff823c;filter:drop-shadow(0 0 2px #ff410880)}
html .project-universe .cad-plan::before{background:repeating-linear-gradient(0deg,transparent 0 8px,#ff70243d 8px 9px),repeating-linear-gradient(90deg,transparent 0 9px,#ff702433 9px 10px)}
html .project-universe :is(.hub-caption small,.orbit-node small){color:#ff7432}
html .project-universe :is(.hub-caption strong,.orbit-node strong){color:#f5f1e9;text-shadow:0 2px 8px #000}
html .project-universe .planet-entry{background:#fff0c7;border-color:#ffe3a6;box-shadow:0 0 5px #ff7f1e,0 0 13px #ff3408}
html[data-theme=light] .project-universe,html[data-theme=light] .drawing-universe{background:radial-gradient(ellipse at 50% 48%,#ff6a1512,transparent 58%),linear-gradient(145deg,#f5f2eb,#e5e0d6);border-color:#cfc5b7}
html[data-theme=light] .project-universe::before{opacity:.35}
html[data-theme=light] .project-universe::after{opacity:.12}
html[data-theme=light] .project-universe :is(.hub-caption strong,.orbit-node strong){color:#28211a;text-shadow:0 1px 4px #f5f2eb}
html[data-theme=light] .project-universe :is(.hub-caption small,.orbit-node small){color:#a72000}
html[data-theme=light] .project-universe .orbit-ring{border-color:#f1330035}
html .project-universe .universe-grid{background-image:linear-gradient(#ff5f1812 1px,transparent 1px),linear-gradient(90deg,#ff5f1812 1px,transparent 1px);mask-image:radial-gradient(ellipse,#0009,transparent 68%);opacity:.5}
html .project-universe .universe-grid::after{background:none}
html[data-theme=light] .project-universe .universe-grid{opacity:.28;background-image:linear-gradient(#df460025 1px,transparent 1px),linear-gradient(90deg,#df460025 1px,transparent 1px)}
html[data-theme=light] .project-universe .orbit-core.planet-hub,html[data-theme=light] .project-universe .orbit-core.planet-hub.object-hub,html[data-theme=light] .project-universe .orbit-node .node-disc.planet-surface{background:radial-gradient(circle at 30% 23%,#992000,#332116 40%,#17100b 80%);border-color:#ff945e;box-shadow:inset 0 0 8px #ff5c1455,inset -9px -10px 17px #080604bb,0 0 3px #ffc28a,0 0 10px #ff4f0880,0 0 24px #ff210825}
/* Neon accent: glow on the headline accent and the main button in the dark theme only. */
html:not([data-theme=light]) .preview-copy em{text-shadow:0 0 14px #ff460866,0 0 38px #ff21082e}
html:not([data-theme=light]) .primary{box-shadow:inset 0 1px 0 #ffcea7bb,0 0 18px #ff460870,0 0 44px #ff210833}
