/* STRATUM: layout idea, an instrument console looking down through three stacked planes.
   Single visual world (dark), so no light/dark switching. */
:root {
  --void: #04060A;
  --deep: #070B12;
  --panel: rgba(16, 24, 36, 0.55);
  --ink: #E6EDF3;
  --muted: #8592A1;
  --dim: #56636F;
  --line: rgba(140, 170, 210, 0.14);
  --line-hi: rgba(140, 170, 210, 0.32);
  --int: #5B8CFF;
  --log: #FF8A3D;
  --ent: #2FD6B5;
  --ok: #3BE08A;
  --warn: #FFC24B;
  --font-display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--ink); font: 300 17px/1.65 var(--font-body); overflow-x: hidden; }
.field { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 5% 35%, rgba(47, 214, 181, 0.07), transparent 60%),
    radial-gradient(800px 500px at 60% 110%, rgba(255, 138, 61, 0.08), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--void);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, rgba(0,0,0,0.35) 85%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, rgba(0,0,0,0.35) 85%); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--int); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; }
.dim { color: var(--dim); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--deep); padding: 8px 12px; z-index: 20; }

/* panel with corner brackets */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line-hi); pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* HUD header */
.hud-top { position: sticky; top: 0; z-index: 10; background: rgba(4, 6, 10, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 1rem var(--font-display); letter-spacing: 0.32em; }
.mark svg { width: 40px; height: 32px; }
.m-int { fill: var(--int); } .m-log { fill: var(--log); } .m-ent { fill: var(--ent); }
.site-nav { display: flex; gap: 2px; }
.lk { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 14px; font-weight: 400; font-size: 0.95rem; color: var(--muted); border: 1px solid transparent; transition: color .2s, border-color .2s; }
.lk:hover, .lk[aria-current] { color: var(--ink); border-color: var(--line); }
.lk-code { font: 500 0.7rem var(--font-mono); color: var(--dim); }
.lk-int[aria-current] .ic, .lk-int[aria-current] .lk-code { color: var(--int); } .lk-log[aria-current] .ic, .lk-log[aria-current] .lk-code { color: var(--log); } .lk-ent[aria-current] .ic, .lk-ent[aria-current] .lk-code { color: var(--ent); }
.hud-strip { display: flex; justify-content: space-between; gap: 16px; font: 400 0.68rem var(--font-mono); letter-spacing: 0.14em; color: var(--dim); padding-bottom: 6px; }
.nav-toggle { display: none; font: 500 0.8rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; background: none; color: var(--ink); border: 1px solid var(--line-hi); padding: 6px 12px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 88px; left: 0; right: 0; flex-direction: column; background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .hud-strip span:nth-child(3) { display: none; }
}

/* hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 0.72rem var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { background: linear-gradient(180deg, #FFFFFF 30%, #9FB4D8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin-top: 22px; }
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 34px 0 0; border: 1px solid var(--line); }
.telemetry div { padding: 12px 14px; border-right: 1px solid var(--line); }
.telemetry div:last-child { border-right: 0; }
.telemetry dt { font: 400 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.telemetry dd { margin: 2px 0 0; font: 500 1.9rem var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .telemetry { grid-template-columns: repeat(2, 1fr); } .telemetry div:nth-child(2) { border-right: 0; } .telemetry div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--void); text-decoration: none; padding: 11px 18px; font: 500 0.92rem var(--font-body); border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 5px 12px; font-size: 0.82rem; }

.lattice-wrap { margin: 0; width: 100%; display: grid; }
@media (min-width: 961px) { .lattice-wrap { min-height: 360px; } }
#lattice { width: 100%; height: 100%; display: block; cursor: crosshair; }
.lattice-wrap { grid-template-rows: minmax(0, 1fr) auto; }
.lattice-wrap figcaption { padding: 0 16px 12px; color: var(--dim); }
.lattice-tip { position: absolute; max-width: 260px; padding: 10px 12px; background: rgba(4, 6, 10, 0.92); border: 1px solid var(--line-hi); font-size: 0.85rem; pointer-events: none; }
.lattice-tip b { display: block; font-weight: 500; }
.lattice-tip span { color: var(--muted); display: block; }
.tip-act { display: block; margin-top: 6px; font: normal 500 0.7rem var(--font-mono); letter-spacing: 0.08em; color: var(--ok); }

/* sections */
.sect { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.sect-head { display: grid; grid-template-columns: 120px 1fr; column-gap: 24px; row-gap: 12px; margin-bottom: 40px; align-items: baseline; }
.sect-no { font: 500 0.78rem var(--font-mono); color: var(--dim); letter-spacing: 0.1em; grid-row: span 2; }
.sect-sub { color: var(--muted); max-width: 64ch; grid-column: 2; }
@media (max-width: 640px) { .sect-head { grid-template-columns: 1fr; } .sect-no, .sect-sub { grid-row: auto; grid-column: auto; } }

.layers { display: grid; gap: 20px; }
.layer { --c: var(--int); display: grid; grid-template-columns: 110px 1fr 1.25fr; gap: 28px; padding: 28px; border-left: 2px solid var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 40%), var(--panel); }
.layer-int { --c: var(--int); } .layer-log { --c: var(--log); } .layer-ent { --c: var(--ent); }
.layer > *, .mod > * { min-width: 0; }
@media (max-width: 960px) { .layer { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .layer { padding: 20px 16px; } .beacon { white-space: normal; } .module { padding: 18px 16px; } }
.layer-id { display: grid; align-content: start; justify-items: start; gap: 4px; }
.layer-code { font: 500 2.6rem var(--font-display); color: var(--c); line-height: 1; }
.layer-role { font: 500 0.72rem var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.layer-text { display: grid; gap: 12px; align-content: start; }
.layer-text h3 { font-size: 1.5rem; } .layer-text h3 a { text-decoration: none; }
.layer-text p { color: var(--muted); }
.enter { font: 500 0.8rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); text-decoration: none; margin-top: 6px; }
.enter:hover { text-decoration: underline; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mod { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: rgba(4, 6, 10, 0.45); transition: border-color .2s; }
.mod:hover { border-color: var(--c); }
.mod-body { display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.mod-top { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; }
.mod-code { font: 500 0.72rem var(--font-mono); color: var(--c); }
.mod-name { font-weight: 500; flex: 1; }
.mod-body:hover .mod-name { text-decoration: underline; }
.mod-tag { font-size: 0.86rem; color: var(--muted); }

/* symbols */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .f { fill: currentColor; }
.ic-tab { width: 16px; height: 16px; align-self: center; }
.ic-layer { width: 28px; height: 28px; color: var(--c); margin-bottom: 8px; }
.sym { --sc: var(--int); position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--sc); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--sc) 50%, transparent); background: color-mix(in srgb, var(--sc) 12%, var(--void));
  transition: box-shadow .2s, transform .2s, background .2s; }
.sym .ic { width: 55%; height: 55%; }
.sym:hover, .sym:focus-visible { box-shadow: 0 0 0 1px var(--sc), 0 0 22px color-mix(in srgb, var(--sc) 55%, transparent); transform: translateY(-2px); background: color-mix(in srgb, var(--sc) 22%, var(--void)); }
.sym-int { --sc: var(--int); } .sym-log { --sc: var(--log); } .sym-ent { --sc: var(--ent); }
.sym-sm { width: 40px; height: 40px; }
.sym-lg { width: 68px; height: 68px; }
.sym-sealed { border-style: dashed; background: transparent; color: color-mix(in srgb, var(--sc) 70%, var(--muted)); }
.ic-badge { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; padding: 2px; background: var(--void); border: 1px solid currentColor; stroke-width: 2; }
.sym-sm .ic-badge { width: 13px; height: 13px; }
.dock { margin-top: 30px; }
.dock ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.dock li { display: grid; justify-items: center; gap: 6px; width: 64px; }
.dock-label { font: 400 0.62rem var(--font-mono); color: var(--muted); text-align: center; line-height: 1.25; overflow-wrap: anywhere; }

/* beacons */
.beacon { display: inline-flex; align-items: center; gap: 7px; font: 500 0.66rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.beacon i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-live, .b-ready { color: var(--ok); } .b-live i, .b-ready i { box-shadow: 0 0 10px var(--ok); }
.b-pilot { color: var(--warn); } .b-pilot i { box-shadow: 0 0 10px var(--warn); }
.b-dev i { background: transparent; border: 1px dashed currentColor; }
.b-enterprise i, .b-private i { border-radius: 1px; }

/* protocol spec */
.spec { display: grid; }
.spec-row { display: grid; grid-template-columns: 160px 300px 1fr; gap: 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-row:last-child { border-bottom: 0; }
.spec-k { font: 500 0.72rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.spec-v { font: 500 1.02rem var(--font-display); letter-spacing: -0.01em; }
.spec-row p { color: var(--muted); }
@media (max-width: 900px) { .spec-row { grid-template-columns: 1fr; gap: 6px; } }

.axioms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .axioms { grid-template-columns: 1fr; } }
.axiom { padding: 28px; display: grid; gap: 12px; align-content: start; }
.ax-n { color: var(--int); }
.axiom p { color: var(--muted); }

.origin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
@media (max-width: 900px) { .origin-grid { grid-template-columns: 1fr; } }
.origin-text { font-size: 1.2rem; font-weight: 300; max-width: 60ch; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 400 0.78rem var(--font-mono); border: 1px solid var(--line); padding: 5px 10px; color: var(--muted); }

/* layer pages */
.suite-hero { --c: var(--int); padding: clamp(36px, 6vw, 72px) 0 44px; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 15% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.crumbs { color: var(--dim); margin-bottom: 22px; }
.gauge { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.g { --gc: var(--int); display: flex; gap: 8px; align-items: center; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); font: 400 0.75rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.g span, .g .ic { color: var(--gc); }
.g-int { --gc: var(--int); } .g-log { --gc: var(--log); } .g-ent { --gc: var(--ent); }
.g.on { border-color: var(--gc); color: var(--ink); background: color-mix(in srgb, var(--gc) 12%, transparent); }
.suite-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.toc { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: 1px solid var(--line); padding: 8px 14px; background: var(--panel); font-size: 0.92rem; }
.toc a .mono, .toc a .ic { color: var(--c); }
.toc a:hover { border-color: var(--c); }
body.tone-int { --c: var(--int); } body.tone-log { --c: var(--log); } body.tone-ent { --c: var(--ent); }
.modules { display: grid; gap: 24px; padding-top: 44px; padding-bottom: 80px; }
.module { padding: clamp(22px, 3vw, 36px); scroll-margin-top: 110px; border-top: 2px solid var(--c); }
.module.sealed { background: repeating-linear-gradient(-45deg, var(--panel) 0 14px, rgba(140, 170, 210, 0.04) 14px 15px); }
.module-head { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.module-title { display: grid; gap: 10px; flex: 1 1 320px; min-width: 0; }
.module-title h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.maker { font: 400 0.9rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.module-line { font-size: 1.1rem; max-width: 58ch; color: #C9D3DD; }
.module-meta { display: grid; gap: 10px; justify-items: end; align-content: start; text-align: right; }
@media (max-width: 680px) { .module-meta { justify-items: start; text-align: left; } }
.cta { display: grid; gap: 6px; justify-items: inherit; }
.module-spec { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin: 24px 0 0; }
@media (max-width: 960px) { .module-spec { grid-template-columns: 1fr; } }
.module-spec dt { font: 500 0.68rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.module-spec .dt2 { margin-top: 22px; }
.module-spec dd { margin: 0; color: #C9D3DD; }
.ticks, .yield, .road { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li, .yield li, .road li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--c); box-shadow: 0 0 6px var(--c); }
.yield li::before { content: "↗"; position: absolute; left: 0; color: var(--ok); }
.road li::before { content: "→"; position: absolute; left: 0; color: var(--dim); }

/* launch kit */
.kit { padding-top: 44px; padding-bottom: 80px; display: grid; gap: 24px; }
.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-card { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.kit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kit-head h3 { flex: 1; font-size: 1rem; }
.count { font: 400 0.75rem var(--font-mono); color: var(--dim); }
.kit pre { white-space: pre-wrap; font: 300 0.88rem/1.6 var(--font-body); margin: 0; background: rgba(4, 6, 10, 0.6); padding: 14px; border: 1px solid var(--line); }
.note { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.seo { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 0.88rem; background: var(--panel); }
.seo th, .seo td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.seo th { font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.seo small { color: var(--dim); font-family: var(--font-mono); }
.seo .ok { color: var(--ok); }

.hud-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* connective intelligence */
.sigs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .sigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sigs { grid-template-columns: minmax(0, 1fr); } }
.sig { padding: 20px; display: grid; gap: 10px; align-content: start; }
.sig-ends { display: flex; align-items: center; gap: 10px; }
.sig-wire { flex: 1; height: 1px; position: relative; background: linear-gradient(90deg, var(--line-hi), var(--ink), var(--line-hi)); overflow: hidden; }
.sig-wire i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #9FB4FF; animation: travel 2.6s linear infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 5px); } }
.sig-obj { color: var(--ink); }
.sig-line { color: var(--muted); font-size: 0.92rem; }

.diffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .diffs { grid-template-columns: minmax(0, 1fr); } }
.diff { background: var(--deep); padding: 28px; display: grid; gap: 10px; align-content: start; }
.diff-n { color: var(--log); }
.diff p { color: var(--muted); }

.hzs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .hzs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hzs { grid-template-columns: minmax(0, 1fr); } }
.hz { padding: 22px; display: grid; gap: 12px; align-content: start; }
.hz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.hz-top h3 { font-size: 1.02rem; }
.hz p { color: var(--muted); font-size: 0.93rem; }
.hz-apps { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.sym-xs { width: 32px; height: 32px; }
.sym-xs .ic-badge { width: 11px; height: 11px; top: -5px; right: -5px; padding: 1px; }
.lattice-wrap { aspect-ratio: 1 / 1.12; }

/* domain depth */
.doms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .doms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .doms { grid-template-columns: minmax(0, 1fr); } }
.dom { padding: 22px; display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--line-hi); }
.dom:nth-child(3n+1) { border-top-color: var(--int); } .dom:nth-child(3n+2) { border-top-color: var(--log); } .dom:nth-child(3n) { border-top-color: var(--ent); }
.dom-n { color: var(--dim); }
.dom h3 { font-size: 1.02rem; line-height: 1.25; }
.dom p { color: var(--muted); font-size: 0.92rem; }

/* ---------- tools hub ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 40px; padding-bottom: 80px; }
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tools-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-card { padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; border-top: 2px solid var(--log); transition: transform .2s, border-color .2s; }
a.tool-card:hover { transform: translateY(-3px); border-color: var(--log); }
.tool-card .ic-layer { color: var(--log); }
.tool-card.soon { opacity: .72; border-top-color: var(--line-hi); }
.tool-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- calculator ---------- */
.tool-hero .lead { max-width: 70ch; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }
.chip-btn { font: 400 0.82rem var(--font-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line-hi); padding: 7px 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.chip-btn:hover { border-color: var(--log); background: color-mix(in srgb, var(--log) 12%, transparent); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 24px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
@media (max-width: 1000px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { padding: 8px 22px 22px; }
.calc-in fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 20px 0; display: grid; gap: 14px; min-width: 0; }
.calc-in fieldset:last-child { border-bottom: 0; }
.calc-in legend { font: 500 1rem var(--font-display); padding: 0; margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; }
.step { color: var(--log); font-size: 0.75rem; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld[hidden] { display: none; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 460px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.lbl { font-size: 0.86rem; color: #C9D3DD; }
.cur-tag { color: var(--log); font-size: 0.72rem; margin-left: 4px; }
.hint { font-size: 0.8rem; color: var(--dim); }
.calc input[type="number"], .calc input[type="text"], .calc select {
  width: 100%; min-width: 0; font: 400 1rem var(--font-mono); color: var(--ink); background: rgba(4, 6, 10, 0.7);
  border: 1px solid var(--line-hi); padding: 10px 12px; border-radius: 0; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--log); box-shadow: 0 0 0 3px color-mix(in srgb, var(--log) 22%, transparent); }
.calc input:disabled { opacity: .4; }
.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-hi); width: max-content; max-width: 100%; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 16px; font: 500 0.82rem var(--font-mono); color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--log); color: var(--void); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }
.with-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tog { display: inline-flex; gap: 8px; align-items: center; font-size: 0.84rem; color: var(--muted); cursor: pointer; }
.tog input { accent-color: var(--log); width: 16px; height: 16px; }
.tog.wide { color: #C9D3DD; }
.more summary { cursor: pointer; font-size: 0.86rem; color: var(--muted); padding: 4px 0; }
.more[open] summary { margin-bottom: 12px; }

.calc-out { display: grid; gap: 16px; position: sticky; top: 104px; }
@media (max-width: 1000px) { .calc-out { position: static; } }
.calc-out .panel { padding: 20px; }
.out-main { border-top: 2px solid var(--log); background: linear-gradient(160deg, color-mix(in srgb, var(--log) 14%, transparent), transparent 55%), var(--panel); }
.big { font: 500 clamp(2rem, 5vw, 2.9rem) var(--font-display); margin: 4px 0 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.kpis div { padding: 10px 12px; border-right: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.kpis div:last-child { border-right: 0; }
.kpis b { font: 500 1.02rem var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 460px) { .kpis { grid-template-columns: minmax(0, 1fr); } .kpis div { border-right: 0; border-bottom: 1px solid var(--line); } }
.eff { margin-top: 16px; display: grid; gap: 8px; }
.eff-bar { position: relative; height: 10px; background: rgba(255, 255, 255, 0.05); }
.eff-bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
#o-eff-real { background: var(--log); box-shadow: 0 0 12px color-mix(in srgb, var(--log) 60%, transparent); }
#o-eff-head { background: rgba(255, 255, 255, 0.55); height: 4px; top: 3px; z-index: 1; }
.eff p { font-size: 0.86rem; color: var(--muted); }
.out-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.legend { font-size: 0.7rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.lg-cred { width: 12px; height: 12px; display: inline-block; border: 1px solid var(--ok); background: repeating-linear-gradient(45deg, rgba(59,224,138,.35) 0 2px, transparent 2px 5px); }
.out-chart { position: relative; }
#o-fall { width: 100%; height: auto; aspect-ratio: 560 / 300; display: block; }
#o-fall .grid { stroke: var(--line); stroke-width: 1; }
#o-fall .conn { stroke: var(--line-hi); stroke-width: 1; stroke-dasharray: 2 3; }
#o-fall .bar { cursor: pointer; transition: opacity .15s; }
#o-fall .bar:hover, #o-fall .bar:focus { opacity: .8; outline: none; }
#o-fall .bar-base { fill: color-mix(in srgb, var(--int) 70%, transparent); }
#o-fall .bar-duty { fill: var(--log); }
#o-fall .bar-credit { stroke: var(--ok); stroke-width: 1; }
#o-fall .bar-post { fill: color-mix(in srgb, var(--ent) 70%, transparent); }
#o-fall .bar-total { fill: rgba(230, 237, 243, 0.85); }
#o-fall .blabel { fill: var(--muted); font: 400 10px var(--font-mono); }
.fall-tip { position: absolute; background: rgba(4, 6, 10, 0.95); border: 1px solid var(--line-hi); padding: 6px 10px; font: 400 0.8rem var(--font-mono); pointer-events: none; white-space: nowrap; }
.out-rules { border-left: 2px solid var(--warn); }
.out-rules ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.88rem; color: #C9D3DD; }
.lines { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: 8px; }
.lines th, .lines td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lines thead th { font: 500 0.66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lines td { color: var(--muted); }
.lines .num { text-align: right; font-family: var(--font-mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines tr.sub th, .lines tr.sub .num { color: var(--ink); font-weight: 500; }
.lines tr.sub { background: rgba(255, 255, 255, 0.025); }
.lines tr.total th, .lines tr.total .num { color: var(--log); font-weight: 600; font-size: 0.95rem; }
input[type="range"]#fxShift { width: 100%; accent-color: var(--log); margin: 6px 0 10px; }
.ab { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ab-delta { margin-top: 10px; font-weight: 500; }
.ab-delta.good { color: var(--ok); } .ab-delta.bad { color: var(--warn); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { font-size: 0.78rem; color: var(--dim); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { padding: 0; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--log); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }

/* WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  background: #0E3B2A; color: #E8FFF1; border: 1px solid #25D366; text-decoration: none; box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,.5);
  animation: wa-pulse 3.2s ease-out infinite; transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: #25D366; stroke-width: 1.6; }
.wa-float svg .f { fill: #25D366; stroke: none; }
.wa-float span { display: grid; font: 500 0.86rem var(--font-body); line-height: 1.2; }
.wa-float small { font: 400 0.68rem var(--font-mono); color: #9FE8BE; }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,0); } }
@media (max-width: 600px) { .wa-float { right: 12px; bottom: 12px; padding: 10px; } .wa-float span { display: none; } }
.wa-ask { font: 500 0.78rem var(--font-mono); color: #25D366; text-decoration: none; letter-spacing: .04em; }
.wa-ask:hover { text-decoration: underline; }
.btn-wa { background: #0E3B2A; color: #E8FFF1; border-color: #25D366; }
.btn-wa:hover { background: transparent; color: #25D366; }
.calc-out > *, .calc > * { min-width: 0; }
.actions .btn { flex: 1 1 200px; justify-content: center; text-align: center; white-space: normal; }
.row2 { align-items: start; }

/* ---------- dangerous-goods readiness ---------- */
.dg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
.dg > * { min-width: 0; }
@media (max-width: 1000px) { .dg { grid-template-columns: minmax(0, 1fr); } }
.dg-in { padding: 8px 22px 22px; }
.dg-in fieldset { border: 0; margin: 0; padding: 20px 0 6px; display: grid; gap: 14px; min-width: 0; }
.dg-in legend { font: 500 1rem var(--font-display); padding: 0; margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; }
.dg-in input[type="number"], .dg-in input[type="text"], .dg-in input[type="tel"], .dg-in select {
  width: 100%; min-width: 0; font: 400 1rem var(--font-mono); color: var(--ink); background: rgba(4, 6, 10, 0.7); border: 1px solid var(--line-hi); padding: 10px 12px; border-radius: 0; }
.dg-in input:focus, .dg-in select:focus { outline: none; border-color: var(--log); box-shadow: 0 0 0 3px color-mix(in srgb, var(--log) 22%, transparent); }
.seg-wrap { display: flex; flex-wrap: wrap; width: auto; }
.seg-wrap label { flex: 1 1 auto; }
.dg-out { display: grid; gap: 16px; position: sticky; top: 104px; }
@media (max-width: 1000px) { .dg-out { position: static; } }
.dg-score { padding: 22px; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; border-top: 2px solid var(--log); }
@media (max-width: 460px) { .dg-score { grid-template-columns: minmax(0, 1fr); justify-items: start; } }
.score-ring { position: relative; width: 132px; height: 132px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--log); stroke-width: 10; stroke-linecap: round; transition: stroke .3s; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--log) 60%, transparent)); }
.ring-fg.full { stroke: var(--ok); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring-num b { font: 500 1.9rem var(--font-display); font-variant-numeric: tabular-nums; }
.verdict { font: 500 1.5rem var(--font-display); }
.verdict.good { color: var(--ok); } .verdict.bad { color: var(--warn); }
.dg-ident { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.dg-label { width: 64px; height: 64px; flex: none; }
.ident { font-size: 0.92rem; }
.dg-block { border-left: 2px solid var(--warn); }
.dg-block ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.88rem; color: #C9D3DD; }
.dg-checks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .dg-checks { grid-template-columns: minmax(0, 1fr); } }
.role-card { padding: 20px; display: grid; gap: 12px; align-content: start; transition: border-color .3s; }
.role-card.complete { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.role-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.role-count { color: var(--log); font-size: 0.85rem; }
.role-card.complete .role-count { color: var(--ok); }
.role-bar { height: 3px; background: rgba(255,255,255,.06); }
.role-bar i { display: block; height: 100%; background: var(--log); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.role-card.complete .role-bar i { background: var(--ok); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.check:hover { background: rgba(255,255,255,.03); border-color: var(--line); }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.cbox { width: 20px; height: 20px; border: 1.5px solid var(--line-hi); display: grid; place-items: center; margin-top: 2px; transition: background .15s, border-color .15s; }
.check input:focus-visible + .cbox { outline: 2px solid var(--log); outline-offset: 2px; }
.check.on .cbox { background: var(--ok); border-color: var(--ok); }
.check.on .cbox::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #04060A; border-bottom: 2px solid #04060A; transform: rotate(-45deg) translate(1px, -1px); }
.ctext { display: grid; gap: 3px; font-size: 0.92rem; }
.check.on .ctext > span:first-child { color: var(--muted); }
.cmeta { font-size: 0.7rem; color: var(--dim); letter-spacing: .02em; }
.dg-panels { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .dg-panels { grid-template-columns: minmax(0, 1fr); } }
.dg-panels .panel { padding: 20px; }
.eip { width: 100%; height: auto; display: block; margin: 6px 0 10px; }
.trem { white-space: pre-wrap; font: 400 0.82rem/1.6 var(--font-mono); background: rgba(4,6,10,.6); border: 1px solid var(--line); padding: 14px; margin: 6px 0 12px; color: #C9D3DD; overflow-x: auto; }
.dg-actions, .dg > .fine { grid-column: 1 / -1; }

.dg [hidden] { display: none !important; }

/* ---------- scrap reserve price ---------- */
.sc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding-top: 36px; padding-bottom: 72px; align-items: start; --a: var(--int); }
.sc > * { min-width: 0; }
@media (max-width: 1000px) { .sc { grid-template-columns: minmax(0, 1fr); } }
.sc .panel { padding: 20px 22px; }
.sc-h { font: 500 1rem var(--font-display); display: flex; gap: 10px; align-items: baseline; margin: 0; }
.sc .hint { margin: 6px 0 10px; }
.sc input[type="number"], .sc input[type="text"], .sc select { width: 100%; min-width: 0; font: 400 0.95rem var(--font-mono); color: var(--ink); background: rgba(4,6,10,.7); border: 1px solid var(--line-hi); padding: 9px 10px; border-radius: 0; }
.sc input:focus, .sc select:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 22%, transparent); }
.sc input[type="range"] { width: 100%; accent-color: var(--a); }
.sc .tog input { accent-color: var(--a); }
.sc-lots { grid-column: 1; }
.sc-cost { grid-column: 1; display: grid; gap: 14px; }
.sc-out { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 16px; position: sticky; top: 104px; }
@media (max-width: 1000px) { .sc-lots, .sc-cost, .sc-out { grid-column: 1; grid-row: auto; } .sc-out { position: static; } }
.sc-bids, .sc-inv { grid-column: 1 / -1; }
@media (min-width: 1001px) { .sc-bids { grid-column: 1; } .sc-inv { grid-column: 2; } }
.lot-head, .lot { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) 32px; gap: 8px; align-items: end; }
.lot-head { font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 0 0 6px; }
.lot { padding: 10px 0; border-top: 1px solid var(--line); animation: rise .35s ease both; }
.lot .cell { display: grid; gap: 4px; min-width: 0; }
.lot .cap { display: none; font-size: 0.62rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.lot-net { grid-column: 1 / -1; font-size: 0.74rem; color: var(--a); }
.x { width: 32px; height: 38px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.x:hover:not(:disabled) { border-color: var(--warn); color: var(--warn); }
.x:disabled { opacity: .3; cursor: default; }
@media (max-width: 640px) {
  .lot-head { display: none; }
  .lot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lot > select { grid-column: 1 / 4; grid-row: 1; } .lot > .x { grid-column: 4; grid-row: 1; justify-self: end; }
  .lot .cap { display: block; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sc-hero-out { border-top: 2px solid var(--a); }
.sc-hero-out .big { font: 500 clamp(2rem, 5vw, 2.8rem) var(--font-display); font-variant-numeric: tabular-nums; margin: 4px 0 14px; color: var(--ok); }
.band-track { position: relative; height: 10px; background: rgba(255,255,255,.06); }
.band-track i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 40%, var(--a))); transition: left .5s, width .5s; }
.band-track b { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); transition: left .5s; }
.band-lbl { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kv3 div { display: grid; gap: 4px; } .kv3 span { font-size: 0.64rem; letter-spacing: .08em; text-transform: uppercase; } .kv3 b { font: 500 1rem var(--font-mono); font-weight: 500; }
.fall { width: 100%; height: auto; display: block; }
.bid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) 32px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); animation: rise .35s ease both; }
@media (max-width: 640px) { .bid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; } .bid .tag { grid-column: 1 / -1; grid-row: 2; } }
.tag { font: 400 0.74rem var(--font-mono); padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); }
.tag.t-strong, .tag.t-fair { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.tag.t-floor { color: var(--log); border-color: color-mix(in srgb, var(--log) 45%, transparent); }
.tag.t-low { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.bidchart { width: 100%; height: auto; display: block; margin-top: 14px; }
.pulse-dot { animation: pdot 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pdot { 50% { transform: scale(1.45); } }
.bid-verdict { border-left: 2px solid var(--line-hi); padding: 8px 12px; color: #C9D3DD; font-size: 0.92rem; }
.bid-verdict.v-strong, .bid-verdict.v-fair { border-color: var(--ok); } .bid-verdict.v-floor { border-color: var(--log); } .bid-verdict.v-low { border-color: var(--warn); }
.sc .lines td:last-child { text-align: right; font-family: var(--font-mono); color: var(--ink); }
.sc .lines tr.sum td { color: var(--ink); font-weight: 600; border-bottom-color: var(--line-hi); }
.sc > .fine { grid-column: 1 / -1; }

/* ---------- society bill savings ---------- */
.ss { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding-top: 36px; padding-bottom: 72px; align-items: start; --a: var(--ent); }
.ss > * { min-width: 0; }
@media (max-width: 1000px) { .ss { grid-template-columns: minmax(0, 1fr); } }
.ss-in { display: grid; gap: 20px; min-width: 0; }
.ss .panel { padding: 20px 22px; }
.ss .panel > .sc-h { margin-bottom: 12px; }
.ss input[type="number"] { width: 100%; min-width: 0; font: 400 0.95rem var(--font-mono); color: var(--ink); background: rgba(4,6,10,.7); border: 1px solid var(--line-hi); padding: 9px 10px; border-radius: 0; }
.ss input:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 22%, transparent); }
.ss input[type="range"] { width: 100%; accent-color: var(--a); }
.ss .tog input { accent-color: var(--a); }
.ss .fld { margin-bottom: 12px; }
.coverage { margin-top: 4px; }
.cov-track { height: 6px; background: rgba(255,255,255,.06); }
.cov-track i { display: block; height: 100%; background: var(--a); transition: width .5s; }
.cov-track i.over { background: var(--warn); } .cov-track i.under { background: var(--log); }
.inv-row { padding: 12px 0; border-top: 1px solid var(--line); }
.inv-row:first-child { border-top: 0; padding-top: 0; }
.inv-name { font-size: 0.92rem; margin: 0 0 8px; }
.inv-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inv-f .cell { display: grid; gap: 4px; min-width: 0; }
.inv-f .cap { font-size: 0.62rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-out { display: grid; gap: 16px; position: sticky; top: 104px; }
@media (max-width: 1000px) { .ss-out { position: static; } }
.ss-hero { border-top: 2px solid var(--a); }
.ss-hero .big { font: 500 clamp(2rem, 5vw, 2.8rem) var(--font-display); font-variant-numeric: tabular-nums; margin: 4px 0 6px; color: var(--a); }
.ss-sub { color: var(--muted); margin: 0; } .ss-sub b { color: var(--ink); font-weight: 500; }
.ss-bars, .ss-cum { width: 100%; height: auto; display: block; }
.ss-measures { grid-column: 1 / -1; }
.measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
@media (max-width: 760px) { .measures { grid-template-columns: minmax(0, 1fr); } }
.measure { border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; background: rgba(255,255,255,.015); animation: rise .4s ease both; transition: opacity .25s, border-color .25s; }
.measure:hover { border-color: color-mix(in srgb, var(--a) 45%, transparent); }
.measure.solar { border-color: color-mix(in srgb, #F4D21F 35%, transparent); }
.measure.off { opacity: .45; }
.m-top { display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 10px; align-items: start; }
.m-top h3 { font: 500 0.95rem var(--font-body); margin: 0 0 4px; }
.m-top .hint { margin: 0; }
.m-rank { color: var(--a); font-size: 0.8rem; padding-top: 2px; }
.m-bar { height: 4px; background: rgba(255,255,255,.05); }
.m-bar i { display: block; height: 100%; width: 0; background: var(--a); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.measure.solar .m-bar i { background: #F4D21F; }
.m-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.m-kv div { display: grid; gap: 3px; min-width: 0; } .m-kv span { font-size: 0.6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); } .m-kv b { font-size: 0.82rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 420px) { .m-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.switch { position: relative; width: 40px; height: 22px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line-hi); background: rgba(255,255,255,.04); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + span { background: color-mix(in srgb, var(--a) 30%, transparent); border-color: var(--a); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--a); }
.switch input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
.ss > .fine { grid-column: 1 / -1; }
