/* =============================================================================
   KERNEL 2.1, by CEDIS Lab — css/components.css
   -----------------------------------------------------------------------------
   Reusable pieces, in page order: type styles and cards, the KERNEL wordmark,
   buttons, then the parts of each section. Built on the same components as
   the LiLi+ site.
   State is expressed with real attributes (aria-pressed, aria-current,
   [hidden]); js/app.js sets them.
   ============================================================================= */
/* Type styles and shared building blocks (same as LiLi+) */
.eyebrow { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--link); }
.h2 { font-size: clamp(2.4rem, 5.8vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.38; font-weight: 600; color: var(--fg-2); max-width: 36em; letter-spacing: -0.015em; }
.lead strong { color: var(--fg); font-weight: 600; }
.link { color: var(--link); text-decoration: none; font-size: 1.1rem; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--fg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 2.6vw, 30px); min-width: 0; }
.night { background: var(--tile); border: 1px solid var(--hair); color: var(--white); --fg: var(--white); --fg-2: var(--gray); --line: var(--hair); --cut: var(--tile); border-radius: 28px; padding: clamp(18px, 2.6vw, 30px); min-width: 0; }
.note { font-size: .85rem; color: var(--fg-2); }
.mono { font-family: var(--f-mono); }

/* Brand
     .lab    CEDIS Lab mark (inline SVG symbol #cedis-mark; the hub takes the
             fill: black on dark backgrounds, white on light) with the lab name
     .kw     KERNEL wordmark: stroked letters (#w-kernel) and the red "2.1" (#w-ver)
     .cut    parts of an icon that show the background through it */
.lab { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.lab .mark { width: 28px; height: 28px; flex: none; fill: #000000; }
.lab-n { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.lab-n b { font-weight: 500; color: var(--gray); }
.kw { display: block; height: 1em; width: auto; max-width: 100%; overflow: visible; }
.kw .w { stroke: currentColor; stroke-width: 6; fill: none; }
.kw .v { stroke: var(--ver); stroke-width: 6; fill: none; }
.cut { fill: var(--cut, #000); }
.cut-s { stroke: var(--cut, #000); }

/* Scroll-in reveal (only when scripts run) */
.js .rise { transition: transform 1s cubic-bezier(.2, .7, .1, 1); }
.js .rise:not(.in) { transform: translateY(36px); }

/* Buttons and controls (same as LiLi+, in KERNEL blue) */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 500 1.0625rem/1 var(--f); padding: 14px 24px; border-radius: 999px; background: var(--sig); color: var(--sig-ink); transition: filter .2s ease, box-shadow .2s ease; }
.pill-btn:hover { filter: brightness(1.08); box-shadow: 0 0 30px rgba(var(--sig-rgb), .45); }
.pill-btn svg { width: 20px; height: 20px; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #3A3A3C; background: transparent; color: var(--fg); border-radius: 999px; padding: 13px 22px; font: 500 1.0625rem/1 var(--f); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ghost-btn:hover { border-color: var(--sig); }
.ghost-btn svg { width: 20px; height: 20px; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 22px; background: #1C1C1E; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--gray); font-size: .92rem; font-weight: 500; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #3A3A3C; color: var(--white); }
.night .seg { background: #1C1C1E; }
.night .seg button { color: var(--gray); }
.night .seg button[aria-pressed="true"] { background: #3A3A3C; color: var(--white); box-shadow: none; }
.seg.on button[aria-pressed="true"].k-on { background: var(--sig); color: var(--sig-ink); box-shadow: 0 0 18px rgba(var(--sig-rgb), .45); }

/* Round icon badge: accent ring with a soft glow (features, lists) */
.ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; color: var(--link); border: 1.5px solid currentColor; box-shadow: 0 0 18px -4px rgba(var(--sig-rgb), .55), inset 0 0 12px -4px rgba(var(--sig-rgb), .4); }
.light .ic, .white .ic { box-shadow: none; background: var(--card); }
.white .ic { background: #FFFFFF; }
.ic svg { width: 62%; height: 62%; }

/* 1. Home
     .lockup     KERNEL wordmark and descriptor above the headline
     .curve      daily load line with the travelling dot (peak flattened);
                 .was the load without KERNEL (dashed)
     .site       line drawing: .st outlines (.f fainter), .ap energy resources
                 (.sel highlighted), .ping pulses, .cloud KERNEL as a cloud
                 app, .link its links down to each resource, .pk packets on
                 them (blue commands down, white .up readings back)
     .chip-f     floating chips; .res-cap caption under the picker */
.lockup { display: grid; gap: 10px; justify-items: center; }
.lockup .kw { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--white); }
.lockup .meta { font-size: .98rem; font-weight: 600; color: var(--gray); }
.curve { display: block; width: min(900px, 100%); height: auto; margin: clamp(10px, 2vw, 20px) auto 0; overflow: visible; }
.curve .was { fill: none; stroke: rgba(245, 245, 247, .55); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }
.curve .now { fill: none; stroke: url(#curveGrad); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(var(--sig-rgb), .8)); }
.curve circle { fill: #FFFFFF; filter: drop-shadow(0 0 8px var(--sig)); }
.curve text { fill: var(--gray); font: 500 11px var(--f-mono); }
.site-zoom { position: relative; z-index: 1; transform-origin: 50% 60%; will-change: transform; }
.site { display: block; width: 100%; height: auto; }
.site .st { fill: none; stroke: rgba(245, 245, 247, .28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site .st.f { stroke: rgba(245, 245, 247, .12); }
.site .ap { fill: rgba(var(--sig-rgb), .04); stroke: var(--sig); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--sig-rgb), .55)); transition: opacity .3s ease, stroke .3s ease, fill .3s ease; cursor: pointer; }
.site .ap .in { fill: none; }
.site.has-sel .ap { opacity: .35; }
.site.has-sel .ap.sel { opacity: 1; fill: rgba(var(--sig-rgb), .12); stroke: #FFFFFF; }
.site .ping { fill: var(--sig); transform-box: fill-box; transform-origin: center; animation: ping2 2.4s ease-out infinite; }
.site .dotc { fill: var(--sig); }
@keyframes ping2 { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.site .cloud { fill: rgba(var(--sig-rgb), .12); stroke: var(--sig); stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(var(--sig-rgb), .7)); }
.site .cloud-k { fill: #FFFFFF; font: 700 17px var(--f); letter-spacing: .14em; }
.site .cloud-s { fill: var(--gray); font: 500 9.5px var(--f-mono); letter-spacing: .06em; }
.site .link { fill: none; stroke: rgba(var(--sig-rgb), .42); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; transition: opacity .3s ease, stroke .3s ease; }
.site.has-sel .link { opacity: .3; }
.site.has-sel .link.sel { opacity: 1; stroke: rgba(var(--sig-rgb), .95); }
.site .pk { fill: var(--sig); filter: drop-shadow(0 0 4px var(--sig)); }
.site .pk.up { fill: #FFFFFF; opacity: .8; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8)); }
.site text.lbl { font-family: var(--f); font-size: 13px; fill: rgba(245, 245, 247, .7); }
.site .sun { fill: none; stroke: rgba(255, 214, 10, .35); stroke-width: 2; }
.chips-float { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chip-f { position: absolute; pointer-events: auto; text-align: left; background: rgba(22, 22, 24, .74); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 12px 14px; color: var(--white); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); text-decoration: none; }
.chip-score { left: 2%; top: 6%; display: flex; gap: 12px; align-items: center; }
.chip-score strong { display: block; font-size: 1.5rem; line-height: 1; }
.chip-score span { font-size: .78rem; color: var(--gray); }
.chip-note { right: 1%; top: 8%; width: min(300px, 32%); display: grid; gap: 3px; font-size: .875rem; line-height: 1.35; transition: border-color .2s ease; }
.chip-note:hover { border-color: rgba(var(--sig-rgb), .5); }
.chip-note .row { display: flex; justify-content: space-between; font-size: .72rem; color: var(--gray); }
.chip-note .app { display: inline-flex; gap: 6px; align-items: center; color: var(--white); font-weight: 600; }
.app-ic { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: var(--sig); color: var(--sig-ink); font: 800 10px/1 var(--f); }
.ring-s .bg { fill: none; stroke: rgba(255, 255, 255, .14); }
.ring-s .fg { fill: none; stroke: var(--sig); stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(var(--sig-rgb), .7)); }
/* Release pill above the headline, and the language line under the buttons */
.res-cap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 28px; color: var(--gray); font-size: 1rem; max-width: 42em; }
.res-cap b { color: var(--white); font-weight: 600; }
.st-chip { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; color: var(--sig); }

/* 2. Features: four cards with a round icon. */
.feat { display: grid; gap: 14px; align-content: start; }
.feat h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.12; }
.feat p { color: var(--fg-2); }
.feat .ic { width: 64px; height: 64px; }

/* 3. Live demo
     .sched-chart  the day chart (built by app.js): stacked site load, solar,
                   grid draw (white line), peak limit (dashed), peak-price band
     .lane         battery lane under the chart
     .tile         readouts beside the chart; .delta the change with KERNEL */
.sched-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sched-top .ctls { display: flex; gap: 10px; flex-wrap: wrap; }
.sched-chart { display: block; width: 100%; height: auto; }
.sched-chart .grid { stroke: #1E1E22; stroke-width: 1; }
.sched-chart .ax { fill: #8E8E93; font-family: var(--f-mono); font-size: 17px; }
.sched-chart .band { fill: rgba(255, 69, 58, .07); }
.sched-chart .band-t { fill: rgba(255, 105, 97, .85); font: 600 17px var(--f); }
.sched-chart .net { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.sched-chart .pv { fill: rgba(255, 214, 10, .08); stroke: var(--c-solar); stroke-width: 1.6; stroke-dasharray: 5 4; }
.sched-chart .lim { stroke: var(--sig); stroke-width: 1.4; stroke-dasharray: 6 5; }
.sched-chart .lim-t { fill: var(--sig); font: 600 17px var(--f); }
.sched-chart .pk { fill: #FFFFFF; }
.sched-chart .pk-t { fill: #FFFFFF; font: 700 18px var(--f-mono); }
.sched-chart .b-ch { fill: rgba(var(--sig-rgb), .55); }
.sched-chart .b-dis { fill: rgba(191, 90, 242, .75); }
.sched-chart .lane-t { fill: #8E8E93; font: 600 17px var(--f); }
.sched-chart .lim-t, .sched-chart .pk-t, .sched-chart .band-t { paint-order: stroke; stroke: var(--tile); stroke-width: 5px; stroke-linejoin: round; }
.sched-chart.compact .ax { font-size: 22px; }
.sched-chart.compact .band-t, .sched-chart.compact .lim-t, .sched-chart.compact .lane-t { font-size: 21px; }
.sched-chart.compact .pk-t { font-size: 23px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--gray); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend i.ln { height: 3px; border-radius: 2px; }
.legend i.dash { height: 0; border-top: 2px dashed currentColor; border-radius: 0; width: 14px; }
.tile { background: var(--tile-2); border: 1px solid var(--hair); border-radius: 20px; padding: 16px 18px; display: grid; gap: 2px; }
.tile .k { font-size: .8rem; color: var(--gray); }
.tile .v { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .v small { font-size: .5em; font-weight: 600; color: var(--gray); margin-left: 4px; letter-spacing: 0; }
.tile .delta { font-size: .8rem; font-weight: 600; color: var(--gray); min-height: 1.2em; }
.tile .delta.good { color: var(--green); }
.sched-note { color: var(--gray); font-size: .95rem; }
.sched-note b { color: var(--white); font-weight: 600; }

/* 4. Forecast
     .fc-chart   forecast card: range band, forecast line, measured line, "now"
     .pa         predictive-analytics diagram (bubbles bob gently)
     .load       the four load cards */
.fc-chart { display: grid; gap: 14px; align-content: start; }
.fc-svg { display: block; width: 100%; height: auto; }
.fc-svg .grid { stroke: #1E1E22; }
.fc-svg .ax { fill: #8E8E93; font: 12px var(--f-mono); }
.fc-svg .rng { fill: rgba(var(--sig-rgb), .16); }
.fc-svg .fcl { fill: none; stroke: var(--sig); stroke-width: 2.2; stroke-dasharray: 6 5; }
.fc-svg .act { fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linejoin: round; }
.fc-svg .nowl { stroke: rgba(255, 255, 255, .35); stroke-dasharray: 2 4; }
.fc-svg .now-t { fill: #A1A1A6; font: 600 12px var(--f); }
.fc-svg.compact .ax, .fc-svg.compact .now-t { font-size: 16px; }
.fc-cap { color: var(--gray); font-size: .98rem; min-height: 3em; }
.fc-cap b { color: var(--white); font-weight: 600; }
.fc-pa { display: grid; gap: 10px; align-content: center; justify-items: center; text-align: center; }
.fc-pa p { color: var(--fg-2); font-size: .95rem; max-width: 26em; }
.pa { display: block; width: 100%; max-width: 440px; overflow: visible; }
.pa text { font-family: var(--f); font-weight: 700; fill: #FFFFFF; }
.pa .bob { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.load { display: grid; gap: 12px; align-content: start; }
.load h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.load p { color: var(--fg-2); font-size: .95rem; }

/* 5. Intelligence
     .ci-item   method / capability buttons (aria-pressed lights one)
     .brain     canvas; the folds, the firing neurons and the spark are drawn
                by app.js
     .axons     lines from each method to the brain with signals travelling
                both ways (app.js; wide screens only)
     .ci-cap    explanation under the brain */
.ci-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; text-align: left; padding: 16px; border-radius: 20px; border: 1px solid var(--hair); background: var(--tile); color: var(--white); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.ci-item .ic { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; }
.ci-item b { grid-column: 2; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.ci-item .t { grid-column: 2; color: var(--gray); font-size: .88rem; line-height: 1.35; }
.ci-item:hover { border-color: #3a3a3e; }
.ci-item[aria-pressed="true"] { border-color: rgba(var(--sig-rgb), .7); background: rgba(var(--sig-rgb), .07); box-shadow: 0 0 26px -8px rgba(var(--sig-rgb), .7); }
.ci-col.left .ci-item { grid-template-columns: minmax(0, 1fr) auto; text-align: right; }
.ci-col.left .ci-item .ic { grid-column: 2; }
.ci-col.left .ci-item b, .ci-col.left .ci-item .t { grid-column: 1; }
.brain-wrap { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; }
.brain { display: block; width: 100%; height: auto; aspect-ratio: 260 / 330; }
.ci-col { position: relative; z-index: 1; }
.axons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.axons .ax-g { fill: none; stroke: rgba(var(--sig-rgb), .12); stroke-width: 6; stroke-linecap: round; }
.axons .ax { fill: none; stroke: rgba(var(--sig-rgb), .34); stroke-width: 1.3; stroke-linecap: round; transition: stroke .3s ease; }
.axons .ax.on { stroke: rgba(var(--sig-rgb), .85); }
.axons .ax-g.on { stroke: rgba(var(--sig-rgb), .25); }
.axons .pl { fill: #FFFFFF; filter: drop-shadow(0 0 4px var(--sig)) drop-shadow(0 0 8px var(--sig)); }
.axons .pl.t { opacity: .45; }
.axons .pl.out { fill: #FF8FB8; filter: drop-shadow(0 0 4px #FF4F9A) drop-shadow(0 0 8px #FF4F9A); }
.ci-item .ic { transition: filter .35s ease; }
.ci-item.zap .ic { filter: drop-shadow(0 0 10px rgba(var(--sig-rgb), .95)); }
.ci-cap { color: var(--gray); font-size: .95rem; text-align: center; min-height: 4.2em; }
.ci-cap b { color: var(--white); font-weight: 600; display: block; margin-bottom: 2px; }

/* 6. Control
     .sphere     illustration; dots drawn by app.js
     .wires      connectors from the sphere to each control (app.js)
     .ctl        control rows with a live status */
.sphere { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgba(60, 40, 140, .25)); }
.sphere .ring { transform-box: view-box; transform-origin: 200px 200px; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.wires .flow { opacity: .9; animation: wflow 1.6s linear infinite; }
.wires path.hl { stroke-width: 10; }
@keyframes wflow { to { stroke-dashoffset: -24; } }
.ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.ctl:hover, .ctl.hl { border-color: rgba(11, 99, 206, .35); box-shadow: 0 10px 30px -18px rgba(11, 99, 206, .6); }
.ctl .ic { grid-row: span 2; }
.ctl h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.ctl p { color: var(--ink-2); font-size: .92rem; grid-column: 2; }
.ctl .live { grid-row: 1 / span 2; grid-column: 3; font: 600 .75rem var(--f); padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctl .live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--green); vertical-align: 1px; }

/* 7. Library
     .code-card   a code window: bar (file name, tabs, copy), code, run bar, output
     .t-*         highlighted tokens (app.js HL): c comment, s string, k keyword,
                  n number, t type, p preprocessor, b built-in, y JSON key,
                  x command, f option */
.lib-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lib-what { color: var(--gray); font-size: .98rem; max-width: 34em; min-height: 3em; }
.code-card { background: var(--tile); border: 1px solid var(--hair); border-radius: 22px; overflow: hidden; min-width: 0; text-align: left; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--hair); min-height: 50px; }
.fname { font: 500 .78rem var(--f-mono); color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fname.sub { display: block; padding: 12px 18px 0; color: #8E8E93; }
.code-card .tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: -10px; }
.code-card .tabs::-webkit-scrollbar { display: none; }
.code-card .tabs button { border: 0; background: transparent; color: var(--gray); font: 500 .88rem var(--f); padding: 8px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.code-card .tabs button:hover { color: var(--white); }
.code-card .tabs button[aria-selected="true"] { background: #232326; color: var(--white); box-shadow: inset 0 -2px 0 var(--sig); }
.copy { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid #3A3A3C; background: transparent; color: var(--gray); border-radius: 999px; padding: 6px 12px; font: 500 .78rem var(--f); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.copy:hover { color: var(--white); border-color: #5A5A5E; }
.copy svg { width: 15px; height: 15px; }
.copy.copied { color: var(--green); border-color: rgba(48, 209, 88, .5); }
pre.code { margin: 0; padding: 12px 18px 20px; overflow-x: auto; font: 400 .76rem/1.62 var(--f-mono); color: #E5E5EA; tab-size: 4; white-space: pre; }
pre.code code { font: inherit; }
pre.code:focus-visible { outline-offset: -3px; }
.t-c { color: #8B949E; font-style: italic; }
.t-s { color: #A5D6FF; }
.t-k { color: #FF7B72; }
.t-n { color: #79C0FF; }
.t-t, .t-b { color: #D2A8FF; }
.t-p { color: #FFA657; }
.t-y { color: #7EE787; }
.t-x { color: var(--sig); font-weight: 600; }
.t-f { color: #FFA657; }
.run-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 18px; border-top: 1px solid var(--hair); }
.run { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 16px 9px 13px; background: var(--sig); color: var(--sig-ink); font: 600 .9rem var(--f); cursor: pointer; transition: filter .2s ease, box-shadow .2s ease; }
.run:hover { filter: brightness(1.08); box-shadow: 0 0 22px rgba(var(--sig-rgb), .45); }
.run svg { width: 16px; height: 16px; }
.run.busy svg { animation: blink 1s ease-in-out infinite; }
.run:disabled { cursor: default; }
@keyframes blink { 50% { opacity: .3; } }
.run-note { color: var(--gray); font-size: .8rem; flex: 1 1 16em; }
pre.out { margin: 0; padding: 14px 18px 18px; background: #050506; border-top: 1px solid var(--hair); overflow-x: auto; font: 400 .78rem/1.6 var(--f-mono); color: #C9F2D2; white-space: pre; min-height: 4.2em; }
.lib-facts li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--hair); }
.lib-facts b { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.lib-facts span { color: var(--gray); font-size: .92rem; }
.lib-facts code, .req code { font: 500 .85em var(--f-mono); color: var(--white); background: #232326; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.inl { color: var(--link); text-decoration: none; }
.inl:hover { text-decoration: underline; }

/* 8. Download */
.dl { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.dl .link { margin-left: 8px; }
.dl a[aria-disabled="true"] { opacity: .45; cursor: default; filter: none; box-shadow: none; }
.dl a.ghost-btn[aria-disabled="true"]:hover { border-color: #3A3A3C; }
.dl .pill-btn .sz { font-size: .82em; opacity: .7; margin-left: 2px; }
.rel-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -4px; }
.rel-tags .tag { color: var(--gray); border-color: #3A3A3C; }
.rel-tags .ver-tag { color: #FF6961; border-color: rgba(255, 59, 48, .55); font-family: var(--f-mono); }
.build-card { width: min(780px, 100%); display: grid; gap: 14px; text-align: left; margin-top: 10px; }
.build-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.build-top h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.build-card [data-os] { display: grid; gap: 12px; }
.build-card .code-card { background: #050506; border-radius: 16px; }
.build-card .code-bar { min-height: 42px; padding-block: 5px; }
.req { color: var(--gray); font-size: .92rem; }
.req.fine2 { font-size: .82rem; }
.sum { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; color: var(--gray); font-size: .8rem; }
.hash { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--gray); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.hash:hover { color: var(--white); }
.hash code { font: 500 .8rem var(--f-mono); }
.hash svg { width: 14px; height: 14px; }
.hash.copied { color: var(--green); }
.wl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: min(560px, 100%); margin-top: 18px; text-align: left; }
.wl .wl-h { grid-column: 1 / -1; font-weight: 600; font-size: 1.05rem; color: var(--white); padding-left: 8px; }
.wl input[type="email"] { width: 100%; min-width: 0; font: 400 1.0625rem/1.3 var(--f); color: var(--white); background: var(--tile-2); border: 1px solid #3A3A3C; border-radius: 999px; padding: 15px 20px; }
.wl input::placeholder { color: #8E8E93; }
.wl input[type="email"]:focus { outline: none; border-color: var(--sig); box-shadow: 0 0 0 3px rgba(var(--sig-rgb), .25); }
.wl .fine { grid-column: 1 / -1; color: var(--gray); font-size: .85rem; padding-left: 8px; }
.wl-msg { width: min(560px, 100%); padding: 12px 16px; border-radius: 14px; background: var(--tile-2); border: 1px solid rgba(48, 209, 88, .4); text-align: left; }
.wl-msg.err { border-color: rgba(255, 69, 58, .5); }

/* 9. Version history (releases.html): version, label and date on the left,
      the notes card on the right; a dot per release on a vertical line. */
.rel-back { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 24px; margin-top: 4px; }
.rel::before { content: ""; position: absolute; left: 0; top: 28px; z-index: 1; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: #FFFFFF; border: 3px solid #86868B; box-shadow: 0 0 0 5px #FFFFFF; }
.rel.latest::before { background: var(--ver); border-color: var(--ver); box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 9px rgba(255, 59, 48, .18); }
.rel:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 36px; width: 2px; height: calc(100% + 16px); background: #D2D2D7; }
.rel.latest::after { background: linear-gradient(var(--ver), #D2D2D7 60%); }
.rel-v { display: grid; gap: 8px; justify-items: start; padding-top: 24px; }
.rel-v .v { font: 700 clamp(1.15rem, 1.8vw, 1.4rem)/1 var(--f-mono); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.rel.latest .rel-v .v { color: var(--ver); }
.rel-v time { color: var(--ink-2); font-size: .9rem; }
.rel-v .tag.on { color: var(--sig-deep); border-color: rgba(11, 99, 206, .45); }
.rel-b { display: grid; gap: 10px; }
.rel-b h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.025em; }
.rel-b > p { color: var(--ink-2); max-width: 46em; }
.rel.latest .rel-b { box-shadow: inset 3px 0 0 var(--sig-deep); }
.rel-b details { border-top: 1px solid var(--hair-l); padding-top: 10px; }
.rel-b summary { cursor: pointer; list-style: none; color: var(--link); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.rel-b summary::-webkit-details-marker { display: none; }
.rel-b summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
.rel-b details[open] summary::before { transform: rotate(45deg); }
.rel-b ul { margin: 12px 0 2px; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
.rel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 4px; }
.rel-links .link { font-size: 1rem; }
.rel-links .note { font-size: .88rem; }

/* Toast (downloads, copy, coming-soon actions) */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: rgba(22, 22, 24, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .12); color: var(--white); font-size: .92rem; transition: opacity .3s ease, transform .3s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
