:root{color-scheme:dark;--bg:#0b1424;--paper:#16243a;--secondary:#101c2e;--edge:#40536c;--white:#f6f6f8;--mute:#c1ccdc;--teal:#9de0dd;--gold:#ecd099;--action:#285d69}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--white);font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.55}a{color:var(--teal)}.skip{position:absolute;left:-9999px}.skip:focus{top:1rem;left:1rem;z-index:20;color:#000;background:#fff;padding:1rem}header.hero{padding:3rem max(1rem,calc((100% - 1180px)/2));background:linear-gradient(120deg,#1d344f,#0b1424 68%)}.eyebrow{font-size:.76rem;letter-spacing:.16em;color:var(--gold);text-transform:uppercase;font-weight:800}h1{font-size:clamp(3rem,9vw,6rem);letter-spacing:.03em;line-height:1;margin:0 0 1rem}h2{font-size:clamp(1.25rem,3vw,1.8rem);margin:.2rem 0 1rem}h3{margin:.1rem 0 .6rem}.lead{font-size:1.16rem;color:var(--mute);max-width:820px}.mantra{font-size:clamp(.95rem,2.6vw,1.45rem);font-weight:800;letter-spacing:.04em;display:flex;gap:.5rem;flex-wrap:wrap}.mantra span{color:var(--teal)}nav{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}main{max-width:1220px;padding:1rem;margin:auto}.intro{display:grid;grid-template-columns:2fr 1fr;gap:1rem;align-items:center;padding:1rem}.math{display:grid;grid-template-columns:1fr auto;gap:.3rem;border:1px solid var(--edge);border-radius:14px;padding:1.2rem}.math b{font-size:1.4rem}.math span{color:var(--gold);font-size:.75rem;align-self:center}.panel{background:var(--paper);padding:clamp(1rem,2.6vw,1.7rem);border:1px solid var(--edge);border-radius:16px;margin:1rem 0}.heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}.status-tag{border:1px solid var(--edge);border-radius:99px;padding:.3rem .7rem;white-space:nowrap;color:var(--teal)}label{display:block;font-weight:600;margin:.7rem 0}input:not([type=checkbox]),textarea{display:block;background:#101b2d;color:var(--white);border:1px solid #60728b;border-radius:8px;padding:.7rem;font:inherit;width:100%;margin-top:.3rem}textarea{resize:vertical}button,.importButton{cursor:pointer;background:var(--action);color:#fff;border:1px solid #77c2c6;border-radius:9px;font:inherit;font-weight:700;padding:.65rem .9rem;display:inline-block}button:hover,.importButton:hover{filter:brightness(1.18)}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #fff2a0;outline-offset:3px}.secondary{background:#1e334d}.danger{background:#66343c}.step-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem;margin:1.3rem 0}.step-card{background:var(--secondary);min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-color:var(--edge);font-size:.9rem;text-align:center;padding:.5rem}.step-card small{font-size:.73rem;color:var(--mute)}.step-card[aria-current=step]{background:#23546d;border-color:#cde9ed;box-shadow:0 0 0 2px var(--teal) inset}.active-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:1rem}.current{background:var(--secondary);padding:1.1rem;border-radius:12px}.current h3{font-size:2rem;color:var(--gold)}.operation{font-weight:700;color:var(--teal)}.actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.subheading{margin-top:1.5rem}.history{border-top:1px solid var(--edge);padding:.5rem 0}.history article{border-bottom:1px solid var(--edge);padding:.55rem 0}.history small,.fine{color:var(--mute);font-size:.89rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;min-width:630px;width:100%}th,td{padding:.65rem;border:1px solid var(--edge);text-align:center;font-size:.88rem}thead{background:#253955}td.selected{background:#285f68;font-weight:700}.custom-planes{display:grid;grid-template-columns:1fr 1fr auto;gap:1rem;align-items:end;margin:1rem 0}.hardware-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.leds{display:flex;gap:.7rem;flex-wrap:wrap;margin:1.4rem 0}.led{display:grid;gap:.3rem;justify-items:center;font-size:.73rem}.bulb{width:27px;height:27px;border-radius:50%;border:2px solid #52647b;background:#283244}.bulb.active{background:var(--teal);border-color:#f8ffff;box-shadow:0 0 18px var(--teal)}.command{background:#0d1b29;border:1px solid var(--edge);padding:.9rem;border-radius:10px;white-space:pre-wrap}.tech-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.7rem}.tech-grid article{padding:1rem;background:var(--secondary);border:1px solid var(--edge);border-radius:9px}.tech-grid h3{font-size:1rem}.tech-grid small{color:var(--gold)}.choice{display:flex;gap:.5rem;align-items:center}.importButton input{display:none}.feedback{color:var(--teal)}.limits{padding:1.5rem;border-top:1px solid var(--edge);color:var(--mute)}footer{margin:1rem auto;max-width:1200px;padding:1.5rem;color:var(--mute);font-size:.85rem}@media(max-width:780px){.intro,.active-grid,.hardware-grid,.custom-planes{grid-template-columns:1fr}.step-cards{grid-template-columns:repeat(3,1fr)}.heading{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Sovereign micro/macro graph, added without changing existing theme tokens */
select{display:block;background:#101b2d;color:var(--white);border:1px solid #60728b;border-radius:8px;padding:.7rem;font:inherit;width:100%;margin-top:.3rem}
.topology-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.topology-node{background:var(--secondary);border:1px solid var(--edge);border-radius:8px;padding:.65rem;display:grid;gap:.1rem;font-size:.84rem}
.topology-node small{color:var(--gold)}.topology-node span{color:var(--teal)}
.micro-log-row{border-bottom:1px solid var(--edge);padding:.35rem 0;font-size:.8rem;color:var(--mute)}
@media(max-width:600px){.topology-grid{grid-template-columns:1fr}}
