/* ==========================================================================
   ProSoftIP — shared design system
   Graphite canvas · Fold violet · selective signal green · Gilroy + JetBrains Mono
   ========================================================================== */

/* ---------- self-hosted Gilroy (licensed, MyFonts build 4355227) ---------- */
@font-face { font-family: "Gilroy"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../../webFonts/GilroyRegular/font.woff2") format("woff2"), url("../../webFonts/GilroyRegular/font.woff") format("woff"); }
@font-face { font-family: "Gilroy"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../../webFonts/GilroyMedium/font.woff2") format("woff2"), url("../../webFonts/GilroyMedium/font.woff") format("woff"); }
@font-face { font-family: "Gilroy"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../../webFonts/GilroySemiBold/font.woff2") format("woff2"), url("../../webFonts/GilroySemiBold/font.woff") format("woff"); }
@font-face { font-family: "Gilroy"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../../webFonts/GilroyBold/font.woff2") format("woff2"), url("../../webFonts/GilroyBold/font.woff") format("woff"); }
@font-face { font-family: "Gilroy"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../../webFonts/GilroyExtraBold/font.woff2") format("woff2"), url("../../webFonts/GilroyExtraBold/font.woff") format("woff"); }

/* ---------- tokens ---------- */
:root {
  --ink-0: #0B0C14;
  --ink-1: #101429;
  --ink-2: #181625;
  --rule: #262A3D;
  --rule-strong: #343952;
  --slate: #8A91A8;
  --fog: #C9CDDC;
  --paper: #F7F6FC;

  --violet: #7435F5;
  --violet-dp: #5820CE;
  --violet-lt: #C18AFF;
  --violet-ink: #1A1033;

  --signal: #00FF66;
  --signal-dim: #00B84A;
  --signal-ink: #052A14;
  --alert: #FF5A3C;

  --font-sans: "Gilroy", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --d-micro: 120ms; --d-fast: 240ms; --d-base: 600ms; --d-slow: 900ms; --d-cinema: 1400ms;

  --radius: 3px;
  --radius-lg: 6px;
  --gutter: 32px;
  --nav-h: 72px;
  --wrap: 1280px;
}
@media (max-width: 640px) { :root { --gutter: 16px; --nav-h: 64px; } .hide-sm { display: none !important; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink-0); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-0); color: var(--fog); font-family: var(--font-sans); font-weight: 400; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--violet); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet-lt); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--paper); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--violet); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* type scale */
.display { font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -.03em; }
.h1 { font-weight: 800; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.025em; }
.h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; }
.h3 { font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--fog); font-weight: 400; }
.body { font-size: 17px; line-height: 1.6; color: var(--fog); }
.small { font-size: 14px; line-height: 1.5; }
.mono { font-family: var(--font-mono); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.tnum { font-variant-numeric: tabular-nums; }
.t-paper { color: var(--paper); } .t-fog { color: var(--fog); } .t-slate { color: var(--slate); } .t-signal { color: var(--signal); } .t-violet { color: var(--violet-lt); }
.measure { max-width: 56ch; } .measure-s { max-width: 40ch; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.col-12 { grid-column: span 12 / span 12; }
@media (min-width: 1200px) { .xl-col-8 { grid-column: span 8 / span 8; } .xl-col-4 { grid-column: span 4 / span 4; } }
@media (min-width: 1024px) {
  .lg-col-3 { grid-column: span 3 / span 3; } .lg-col-4 { grid-column: span 4 / span 4; } .lg-col-5 { grid-column: span 5 / span 5; }
  .lg-col-6 { grid-column: span 6 / span 6; } .lg-col-7 { grid-column: span 7 / span 7; } .lg-col-8 { grid-column: span 8 / span 8; }
  .lg-start-2 { grid-column-start: 2; } .lg-start-7 { grid-column-start: 7; } .lg-start-8 { grid-column-start: 8; } .lg-start-9 { grid-column-start: 9; } .lg-start-10 { grid-column-start: 10; }
}
.flex { display: flex; } .col { flex-direction: column; } .wrapflex { flex-wrap: wrap; }
.ac { align-items: center; } .ab { align-items: baseline; } .ae { align-items: flex-end; } .as { align-items: flex-start; }
.jb { justify-content: space-between; } .jc { justify-content: center; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g32 { gap: 32px; } .g48 { gap: 48px; }
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec-s { padding-top: 64px; padding-bottom: 64px; }
.page-hero { padding-top: 48px; padding-bottom: 36px; }
.sec-after { padding-top: 12px; padding-bottom: 72px; }
@media (min-width: 1024px) { .sec { padding-top: 128px; padding-bottom: 128px; } .sec-s { padding-top: 88px; padding-bottom: 88px; } .page-hero { padding-top: 64px; padding-bottom: 44px; } .sec-after { padding-top: 16px; padding-bottom: 96px; } }
.bt { border-top: 1px solid var(--rule); } .bb { border-bottom: 1px solid var(--rule); } .bl { border-left: 1px solid var(--rule); } .br { border-right: 1px solid var(--rule); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-40 { margin-bottom: 40px; } .mb-48 { margin-bottom: 48px; } .mb-64 { margin-bottom: 64px; }
.hide-lg { } .show-lg { display: none; }
@media (min-width: 1024px) { .hide-lg { display: none; } .show-lg { display: block; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* section header: slug line + headline + lead */
.slug { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
@media (max-width: 640px) { .slug { flex-direction: column; gap: 6px; align-items: flex-start; } }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-lt); }

/* ---------- motion defaults (JS toggles html.js-motion) ---------- */
html.js-motion [data-reveal], html.js-motion [data-stagger] > * { opacity: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 20, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { width: 168px; height: auto; }
@media (max-width: 640px) { .nav-logo img { width: 140px; } }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; font-weight: 500; font-size: 15px; color: var(--fog); border-radius: var(--radius); transition: color var(--d-micro) var(--ease-out-quart), background-color var(--d-micro) var(--ease-out-quart); }
.nav-links a:hover { color: var(--paper); background: var(--ink-2); }
.nav-links a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
.nav .nav-cta { display: none; }
@media (min-width: 480px) { .nav .nav-cta { display: inline-flex; } }
.nav-burger { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--radius); }
.nav-burger svg { width: 20px; height: 20px; stroke: var(--paper); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.nav-burger .x { display: none; }
.nav-burger[aria-expanded="true"] .bars { display: none; } .nav-burger[aria-expanded="true"] .x { display: block; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-burger { display: none; } }

.menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--ink-0); padding: 24px var(--gutter) 40px; overflow-y: auto; }
.menu.is-open { display: block; }
.menu a.menu-link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-weight: 700; font-size: 28px; color: var(--paper); letter-spacing: -.02em; }
.menu a.menu-link[aria-current="page"] { color: var(--violet-lt); }
.menu a.menu-link svg { width: 20px; height: 20px; stroke: var(--slate); fill: none; stroke-width: 1.8; }
.menu .menu-foot { margin-top: 28px; display: grid; gap: 12px; }
.menu .menu-foot a:not(.btn) { color: var(--slate); font-family: var(--font-mono); font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; border-radius: var(--radius); border: 1px solid transparent; white-space: nowrap;
  transition: background-color var(--d-micro) var(--ease-out-quart), border-color var(--d-micro) var(--ease-out-quart), color var(--d-micro) var(--ease-out-quart), transform var(--d-micro) var(--ease-out-quart); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: var(--paper); }
.btn-primary:hover { background: var(--violet-dp); }
.btn-ghost { border-color: var(--rule-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--violet-lt); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--violet-lt); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link:hover { color: var(--paper); }
.link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- status strip ---------- */
.strip { border-bottom: 1px solid var(--rule); }
.strip-in { height: 40px; display: flex; align-items: center; gap: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; }
.ping { position: relative; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal); animation-delay: var(--ping-delay, 0s); }
.ping::before { animation: ping-ring 1.8s var(--ease-in-out) infinite; }
.ping::after { animation: ping-core 1.8s var(--ease-in-out) infinite; }
@keyframes ping-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ping-core { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.15); } }

/* ---------- artwork ---------- */
.art { position: relative; }
.art img { width: 100%; height: auto; }
.art-blend img { -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 78% 70% at 50% 50%, #000 55%, transparent 100%); }

/* ---------- terminal ---------- */
.term { background: var(--ink-1); border: 1px solid var(--rule); border-radius: var(--radius-lg); font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--fog); position: relative; overflow: hidden; }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); opacity: var(--scan-opacity, 1); mix-blend-mode: screen; }
.term-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--rule); color: var(--slate); font-size: 12px; }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 8px; height: 8px; border: 1px solid var(--rule-strong); border-radius: 50%; display: block; }
.term-body { margin: 0; padding: 18px 18px 16px; white-space: pre-wrap; word-break: break-word; min-height: 12.5em; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; text-align: left; }
.tk-prompt { color: var(--slate); } .tk-cmd { color: var(--paper); } .tk-flag { color: var(--slate); } .tk-str { color: var(--fog); }
.tk-key { color: var(--slate); } .tk-num, .tk-ok { color: var(--signal); } .tk-url { color: var(--violet-lt); } .tk-dim { color: var(--slate); opacity: .75; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--violet); vertical-align: -.18em; margin-left: .04em; animation: blink 1s steps(2, start) infinite; }
.caret.hl-caret { width: .07em; height: .86em; vertical-align: -.04em; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ---------- cards / panels ---------- */
.panel { background: var(--ink-1); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.panel-pad { padding: 28px; }
@media (max-width: 640px) { .panel-pad { padding: 20px; } }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; }
.tag-new { color: var(--signal); background: var(--signal-ink); }
.tag-stable { color: var(--slate); border: 1px solid var(--rule); }
.tag-beta { color: var(--violet-lt); border: 1px solid var(--rule); }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 28px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat-num { font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--paper); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px; }
.stat-num.is-glow { animation: glow-drift 3.4s var(--ease-in-out) infinite; }
@keyframes glow-drift { 0%, 100% { text-shadow: 0 0 24px rgba(0,255,102,.08); } 50% { text-shadow: 0 0 24px rgba(0,255,102,.16); } }
.stat-num.is-zero { color: var(--violet-lt); }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; color: var(--paper); }
.field .hint { font-size: 13px; color: var(--slate); }
.input { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ink-0); border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--paper); transition: border-color var(--d-micro) var(--ease-out-quart); }
.input::placeholder { color: var(--slate); opacity: .8; }
.input:hover { border-color: var(--slate); }
.input:focus { outline: none; border-color: var(--violet-lt); box-shadow: 0 0 0 3px rgba(116,53,245,.25); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; color: var(--paper); }
.copy-btn:hover { border-color: var(--violet-lt); }
.copy-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.copy-btn.is-done { border-color: var(--signal-dim); color: var(--signal); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 400; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fog); font-size: 15px; }
.footer li a:hover { color: var(--paper); }
.footer address { font-style: normal; color: var(--fog); font-size: 15px; line-height: 1.7; }
.footer address a, .menu .menu-foot a { position: relative; display: inline-block; padding: 10px 0; margin: -10px 0; }
.link-big { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--slate); }

/* ---------- reduced motion: nothing loops ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .caret { animation: none; }
}

/* ==========================================================================
   Signal lab (home + catalog): illustrative transformations
   ========================================================================== */
.lab { background: var(--ink-1); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.lab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.lab-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lab-tabs::-webkit-scrollbar { display: none; }
.lab-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--slate); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--d-micro) var(--ease-out-quart), border-color var(--d-micro) var(--ease-out-quart); }
.lab-tab:hover { color: var(--paper); }
.lab-tab[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--violet); }
.lab-tab-k { font-family: var(--font-mono); font-size: 11px; color: var(--violet-lt); }
.lab-note { padding: 12px 0; white-space: nowrap; }
.lab-panel { padding: 24px 20px 20px; }
@media (min-width: 900px) { .lab-panel { padding: 28px 28px 24px; } }
.lab-io { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
@media (min-width: 900px) { .lab-io { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 24px; } }
.lab-in, .lab-out { background: var(--ink-0); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px; min-height: 172px; }
.lab-link { display: grid; place-items: center; }
.lab-link svg { width: 64px; height: 24px; overflow: visible; }
@media (max-width: 899px) { .lab-link svg { transform: rotate(90deg); width: 48px; height: 24px; } }
.lab-link-base { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; }
.lab-link-pkt { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.lab-link-arrow { fill: none; stroke: var(--slate); stroke-width: 1.5; }
.lab-text { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--paper); font-weight: 600; letter-spacing: -.01em; }
.lab-text .w { display: inline-block; }
.lab-quote { font-weight: 500; color: var(--fog); }
[data-tok] { border-radius: 3px; padding: 0 3px; margin: 0 -3px; transition: background-color var(--d-fast) var(--ease-out-quart), color var(--d-fast) var(--ease-out-quart), box-shadow var(--d-fast) var(--ease-out-quart); }
[data-tok].is-hot { background: var(--signal-ink); color: var(--signal); }
[data-tok].is-neg { background: rgba(255,90,60,.12); color: var(--alert); }
.lab-panel[data-lab-panel="time"] [data-tok].is-hot { background: transparent; color: var(--violet-lt); box-shadow: inset 0 -2px 0 var(--violet); }
.wave { width: 100%; height: 80px; display: block; }
.wave-bar { fill: var(--rule-strong); transition: fill var(--d-fast) var(--ease-out-quart); }
.wave-bar.is-hot { fill: var(--violet-lt); }
.wave-head { stroke: var(--signal); stroke-width: 1.5; opacity: .9; }
html:not(.js-motion) .wave-head { display: none; }
.gauge-track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,90,60,.35), var(--rule-strong) 50%, rgba(0,255,102,.35)); margin: 18px 0 8px; }
.gauge-tick { position: absolute; top: -4px; width: 1px; height: 18px; background: var(--rule-strong); }
.gauge-mark { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--ink-0), 0 0 16px rgba(0,255,102,.5); }
.gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate); letter-spacing: .06em; text-transform: uppercase; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { position: relative; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 2px 10px; text-align: center; min-height: 72px; overflow: hidden; transition: border-color var(--d-fast) var(--ease-out-quart), background-color var(--d-fast) var(--ease-out-quart); }
.day-n { display: block; font-weight: 700; font-size: 16px; color: var(--paper); }
.day-d { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--slate); letter-spacing: .06em; text-transform: uppercase; }
.day-tag { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .02em; margin-top: 6px; color: var(--violet-lt); line-height: 1.2; overflow-wrap: anywhere; }
.range-text { font-size: 15px; line-height: 1.5; }
.day.is-holiday.is-lit { border-color: var(--violet); background: var(--violet-ink); }
.day.is-target.is-lit { border-color: var(--signal-dim); }
.day-range { display: block; height: 6px; margin: 6px 4px 0; border-radius: 3px; background: var(--rule); overflow: hidden; }
.day-range i { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; }
.slot { display: inline-block; padding: 2px 8px; margin-left: 6px; border: 1px solid var(--signal-dim); border-radius: 3px; color: var(--signal); }
.lab-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.lab-foot .small { max-width: 60ch; }
/* no JS: every panel visible, final state, tabs are plain labels */
html:not(.js-motion) .lab-panel[hidden] { display: block; }
html:not(.js-motion) .lab-tabs { display: none; }
html:not(.js-motion) [data-lab-play] { display: none; }
html:not(.js-motion) .wave-bar { fill: var(--violet-lt); }
html:not(.js-motion) [data-tok] { color: var(--signal); }
html:not(.js-motion) [data-gauge] { left: 97%; }
html:not(.js-motion) .day.is-holiday { border-color: var(--violet); }
.lab-tab:focus-visible, .stage-tab:focus-visible { outline-offset: -3px; }
