  :root {
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

    --ground:      #F8FAFC;
    --surface:     #FFFFFF;
    --surface-2:   #F1F5F9;
    --ink:         #0F172A;
    --ink-2:       #334155;
    --ink-3:       #64748B;
    --rule:        #E2E8F0;
    --rule-strong: #CBD5E1;

    --accent:      #1D63ED;
    --accent-2:    #1851C4;
    --accent-wash: rgba(29, 99, 237, 0.08);

    --f-int:    #D97706;
    --f-len:    #0284C7;
    --f-str:    #0D9488;
    --f-float:  #7C3AED;
    --f-enum:   #DB2777;
    --f-bool:   #16A34A;

    --ok:       #15803D;
    --wip:      #D97706;
    --todo:     #DC2626;

    --measure: 100%;
    --rail: 6.5rem;
    --page: 1120px;

    --s-1: .35rem; --s-2: .6rem;  --s-3: 1rem;   --s-4: 1.6rem;
    --s-5: 2.4rem; --s-6: 3.6rem; --s-7: 5.5rem; --s-8: 8rem;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --ground:      #090D16;
      --surface:     #111726;
      --surface-2:   #182238;
      --ink:         #F1F5F9;
      --ink-2:       #94A3B8;
      --ink-3:       #64748B;
      --rule:        #1E293B;
      --rule-strong: #334155;

      --accent:      #3B82F6;
      --accent-2:    #60A5FA;
      --accent-wash: rgba(59, 130, 246, 0.12);

      --f-int:    #FBBF24;
      --f-len:    #38BDF8;
      --f-str:    #2DD4BF;
      --f-float:  #A897E0;
      --f-enum:   #F472B6;
      --f-bool:   #4ADE80;

      --ok:       #4ADE80;
      --wip:      #FBBF24;
      --todo:     #F87171;
    }
  }

  :root[data-theme="light"] {
    --ground:      #F8FAFC;
    --surface:     #FFFFFF;
    --surface-2:   #F1F5F9;
    --ink:         #0F172A;
    --ink-2:       #334155;
    --ink-3:       #64748B;
    --rule:        #E2E8F0;
    --rule-strong: #CBD5E1;

    --accent:      #1D63ED;
    --accent-2:    #1851C4;
    --accent-wash: rgba(29, 99, 237, 0.08);

    --f-int:    #D97706;
    --f-len:    #0284C7;
    --f-str:    #0D9488;
    --f-float:  #7C3AED;
    --f-enum:   #DB2777;
    --f-bool:   #16A34A;

    --ok:       #15803D;
    --wip:      #D97706;
    --todo:     #DC2626;
  }
  :root[data-theme="dark"] {
    --ground:      #090D16;
    --surface:     #111726;
    --surface-2:   #182238;
    --ink:         #F1F5F9;
    --ink-2:       #94A3B8;
    --ink-3:       #64748B;
    --rule:        #1E293B;
    --rule-strong: #334155;

    --accent:      #3B82F6;
    --accent-2:    #60A5FA;
    --accent-wash: rgba(59, 130, 246, 0.12);

    --f-int:    #FBBF24;
    --f-len:    #38BDF8;
    --f-str:    #2DD4BF;
    --f-float:  #A897E0;
    --f-enum:   #F472B6;
    --f-bool:   #4ADE80;

    --ok:       #4ADE80;
    --wip:      #FBBF24;
    --todo:     #F87171;
  }

  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; overflow-x: hidden; }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }

  body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--ground);
    background-image:
      linear-gradient(color-mix(in srgb, var(--rule) 50%, transparent) 1px, transparent 1px),
      linear-gradient(90deg, color-mix(in srgb, var(--rule) 50%, transparent) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .2s ease, color .2s ease;
  }
  body:not(.theme-ready), body:not(.theme-ready) * {
    transition: none !important;
  }
  h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--font-sans); }
  p { margin: 0; }
  a { color: inherit; }
  ul, ol { margin: 0; padding: 0; list-style: none; }

  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

  /* ---------- shell ---------- */

  .topbar {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--ground) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
  }
  .topbar-in {
    max-width: var(--page); margin: 0 auto; padding: .65rem var(--s-4);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .brand {
    font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800;
    letter-spacing: -.02em; text-decoration: none; color: var(--ink);
    display: flex; align-items: center; gap: .6rem; flex-shrink: 0;
  }

  .brand-logo {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
  }

  .topnav {
    display: flex; align-items: center; flex-wrap: nowrap;
    gap: .75rem; margin-left: auto; margin-right: .5rem;
  }
  .topnav a {
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
    font-weight: 500; text-transform: uppercase; text-decoration: none; color: var(--ink-3);
    white-space: nowrap; padding: .25rem .4rem; border-radius: 4px;
    transition: color .15s, background-color .15s;
  }
  .topnav a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

  .topbar-actions {
    display: flex; align-items: center; gap: .85rem; flex-shrink: 0;
  }

  .lang-switch {
    display: flex; align-items: center; gap: .35rem;
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .12em;
    margin: 0;
  }
  .lang-switch a { color: var(--ink-3); text-decoration: none; transition: color .15s; }
  .lang-switch a:hover { color: var(--ink); }
  .lang-switch [aria-current] { color: var(--accent); font-weight: 700; }
  .lang-switch .sep { color: var(--rule-strong); }

  .theme-btn {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    background: var(--surface); color: var(--ink-2);
    border: 1px solid var(--rule); border-radius: 6px;
    padding: .35rem .65rem; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: color .15s, border-color .15s, background-color .15s, transform .1s;
    margin: 0;
  }
  .theme-btn:hover { color: var(--ink); border-color: var(--rule-strong); background: var(--surface-2); }
  .theme-btn:active { transform: scale(0.97); }
  .theme-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
  .theme-icon-sun { display: none; }
  .theme-icon-moon { display: inline-block; }
  :root[data-theme="dark"] .theme-icon-sun { display: inline-block; }
  :root[data-theme="dark"] .theme-icon-moon { display: none; }

  @media (max-width: 1120px) {
    .topbar-in {
      flex-wrap: wrap;
      padding: .6rem var(--s-4) .45rem;
      gap: .5rem 1rem;
    }
    .brand {
      order: 1;
    }
    .topbar-actions {
      order: 2;
      margin-left: auto;
    }
    .topnav {
      order: 3;
      width: 100%;
      margin: 0;
      padding: .45rem 0 .2rem;
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      gap: .45rem;
      border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
    }
    .topnav::-webkit-scrollbar {
      display: none;
    }
    .topnav a {
      padding: .3rem .65rem;
      background: var(--surface-2);
      border: 1px solid var(--rule);
      border-radius: 6px;
      font-size: .6875rem;
      flex-shrink: 0;
    }
    .topnav a:hover {
      background: var(--surface);
      border-color: var(--accent);
    }
  }

  /* ---------- section scaffold ---------- */

  .band { border-bottom: 1px solid var(--rule); }
  .band-in {
    max-width: var(--page); margin: 0 auto; padding: var(--s-7) var(--s-4);
    display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--s-5);
  }
  @media (max-width: 820px) {
    .band-in { grid-template-columns: minmax(0,1fr); gap: var(--s-4); padding: var(--s-6) var(--s-4); }
  }

  .offset {
    font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .16em;
    font-weight: 600; text-transform: uppercase; color: var(--ink-3);
    position: sticky; top: 5rem; align-self: start;
  }
  @media (max-width: 820px) {
    .offset { position: static; }
  }

  .col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
  .stack { display: flex; flex-direction: column; gap: var(--s-3); }
  .stack-lg { display: flex; flex-direction: column; gap: var(--s-5); }

  .h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800;
    letter-spacing: -.025em; line-height: 1.2; color: var(--ink);
  }
  .h3 {
    font-family: var(--font-mono); font-size: .875rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  }
  .h3 em { font-style: normal; color: var(--todo); }
  .lede { font-size: 1.15rem; line-height: 1.65; color: var(--ink-2); max-width: 100%; }
  .body { max-width: 100%; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
  .body strong { color: var(--ink); font-weight: 600; }
  .body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); transition: border-color .15s; }
  .body a:hover { border-bottom-color: var(--accent); }

  code {
    font-family: var(--font-mono); font-size: .875em;
    background: color-mix(in srgb, var(--surface-2) 80%, transparent);
    padding: .15em .4em; border-radius: 4px; border: 1px solid var(--rule);
  }

  /* ---------- hero ---------- */

  .hero { border-bottom: 1px solid var(--rule); }
  .hero-in {
    max-width: var(--page); margin: 0 auto;
    padding: clamp(4rem, 11vw, 8.5rem) var(--s-4) clamp(4rem, 10vw, 7rem);
    display: flex; flex-direction: column; gap: var(--s-4);
  }
  .eyebrow {
    font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .18em;
    font-weight: 600; text-transform: uppercase; color: var(--accent);
  }
  .h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6.5vw, 4.4rem); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.06; color: var(--ink);
  }
  .hero-line {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2.8vw, 1.75rem); line-height: 1.45;
    letter-spacing: -.015em; font-weight: 500; color: var(--ink);
  }
  .hero-line em { font-style: normal; color: var(--accent); font-weight: 600; }
  .hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.6;
    color: var(--ink-2); max-width: 100%;
  }

  .ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--s-2); }

  .proof {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
    background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03); margin-top: var(--s-2);
  }
  @media (min-width: 860px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .proof a {
    background: var(--surface); padding: var(--s-3) var(--s-4); min-width: 0;
    display: flex; flex-direction: column; gap: .3rem; text-decoration: none; transition: background .15s;
  }
  .proof a:hover { background: var(--surface-2); }
  .proof-n {
    font-family: var(--font-sans); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums;
  }
  .proof-t { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
  @media (max-width: 480px) { .proof a { padding: var(--s-3); } }
  .btn {
    font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none; font-weight: 600;
    padding: .8rem 1.4rem; border-radius: 6px;
    border: 1px solid var(--rule-strong);
    display: inline-flex; align-items: center; gap: .55rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
  .btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #FFFFFF; }
  .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn .arrow { font-size: .95em; opacity: .85; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
  }

  /* ---------- specification first ---------- */

  .statement {
    font-family: var(--font-sans);
    font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.08; color: var(--accent);
  }

  .flow-pair { display: grid; gap: var(--s-4); align-items: start; }
  @media (min-width: 880px) { .flow-pair { grid-template-columns: 1.35fr 1fr; } }

  .flow {
    border: 1px solid var(--rule); background: var(--surface); border-radius: 8px;
    padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  .flow-right { border-color: var(--accent); background: var(--accent-wash); }
  .flow-cap {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-3);
  }
  .flow-right .flow-cap { color: var(--accent); }
  .flow-note { font-size: .875rem; color: var(--ink-3); }

  .chain { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
  .chain li { display: flex; align-items: center; gap: .55rem; }
  .chain li + li::before {
    content: "→"; font-family: var(--font-mono); color: var(--ink-3); font-size: .875rem;
  }
  .node {
    font-family: var(--font-mono); font-size: .8125rem; font-weight: 600;
    letter-spacing: .04em; padding: .45rem .8rem; border-radius: 6px;
    border: 1px solid var(--rule-strong); background: var(--surface);
  }
  .flow-right .node { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
  .flow-wrong .node { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--todo); }

  .chain-vert { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .chain-vert li { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .chain-vert li + li::before { content: "↓"; }
  .chain-vert li { flex-direction: column; align-items: center; gap: .4rem; }
  .chain-vert li + li::before { content: "↓"; text-align: center; }
  .chain-vert .node { min-width: 9rem; text-align: center; }
  .node-accent { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }

  /* ---------- what is fomoxa ---------- */

  .what-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 780px) { .what-grid { grid-template-columns: 1fr 1fr; } }
  .nots, .only {
    background: var(--surface); padding: var(--s-4);
    display: flex; flex-direction: column; gap: var(--s-3);
  }
  .not-list { display: flex; flex-direction: column; gap: .6rem; }
  .not-list li {
    font-family: var(--font-mono); font-size: .9375rem; color: var(--ink-2);
    display: flex; align-items: baseline; gap: .7rem;
  }
  .not-list .x { color: var(--todo); font-weight: 700; }

  /* ---------- documents ---------- */

  .docs { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 900px) { .docs { grid-template-columns: repeat(3, 1fr); } }
  .doc {
    background: var(--surface); padding: var(--s-4); text-decoration: none;
    display: flex; flex-direction: column; gap: .45rem; transition: background .15s, transform .12s;
  }
  .doc:hover { background: var(--surface-2); }
  .doc .id { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
  .doc .t { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
  .doc .d { font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
  .doc .go {
    margin-top: auto; padding-top: .6rem;
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent);
  }

  /* ---------- wire format ---------- */

  .wire {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  @media (min-width: 860px) {
    .wire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  .wf {
    background: var(--surface);
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-width: 0;
  }
  .wf-h {
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .wf-p { font-size: .9375rem; color: var(--ink-2); }
  .wf-p strong { color: var(--ink); font-weight: 600; }
  .wf-b {
    margin: 0;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.75;
    background: var(--surface-2);
    padding: .85rem;
    overflow-x: auto;
    color: var(--ink);
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
  }
  .wf-b::-webkit-scrollbar { height: 4px; }
  .wf-b::-webkit-scrollbar-track { background: transparent; }
  .wf-b::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 2px; }
  .wf-b::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
  .wf-b .by { color: var(--f-len); font-weight: 600; }
  .wf-b .bad { color: var(--todo); font-weight: 600; }
  .wf-n { font-size: .8125rem; color: var(--ink-3); margin-top: auto; }

  .schema {
    margin: 0;
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.7;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: var(--s-4);
    overflow-x: auto;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
  }
  .schema::-webkit-scrollbar { height: 4px; }
  .schema::-webkit-scrollbar-track { background: transparent; }
  .schema::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 2px; }
  .schema::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

  /* ---------- byte map ---------- */

  .map { display: grid; gap: var(--s-4); min-width: 0; }

  .map-panel {
    border: 1px solid var(--rule);
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    min-width: 0;
    position: relative;
  }
  .map-head {
    padding: .7rem var(--s-3);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .map-head #mapStatus { color: var(--accent); font-weight: 700; }
  .map-body {
    padding: var(--s-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
  }
  .map-body::-webkit-scrollbar { height: 6px; }
  .map-body::-webkit-scrollbar-track { background: color-mix(in srgb, var(--rule) 40%, transparent); border-radius: 3px; }
  .map-body::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
  .map-body::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
  .rows {
    min-width: max-content;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding-right: var(--s-3);
  }
  .row { display: flex; gap: .6rem; align-items: center; }
  .row .addr {
    font-family: var(--font-mono);
    font-size: .6875rem;
    color: var(--ink-3);
    width: 4.4rem;
    flex: none;
    font-variant-numeric: tabular-nums;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    padding-right: .35rem;
    box-shadow: 1px 0 0 var(--rule);
  }
  .row .cells { display: flex; gap: .25rem; }

  .cell {
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 600;
    padding: .45rem .32rem;
    min-width: 2.1rem;
    text-align: center;
    border: 1px solid var(--rule);
    background: var(--surface-2);
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: opacity .12s, outline-color .12s, transform .1s;
    user-select: none;
  }
  .cell[data-f="int"]   { color: var(--f-int);   border-color: color-mix(in srgb, var(--f-int) 45%, transparent);   background: color-mix(in srgb, var(--f-int) 12%, transparent); }
  .cell[data-f="len"]   { color: var(--f-len);   border-color: color-mix(in srgb, var(--f-len) 45%, transparent);   background: color-mix(in srgb, var(--f-len) 12%, transparent); }
  .cell[data-f="str"]   { color: var(--f-str);   border-color: color-mix(in srgb, var(--f-str) 45%, transparent);   background: color-mix(in srgb, var(--f-str) 12%, transparent); }
  .cell[data-f="float"] { color: var(--f-float); border-color: color-mix(in srgb, var(--f-float) 45%, transparent); background: color-mix(in srgb, var(--f-float) 12%, transparent); }
  .cell[data-f="enum"]  { color: var(--f-enum);  border-color: color-mix(in srgb, var(--f-enum) 45%, transparent);  background: color-mix(in srgb, var(--f-enum) 12%, transparent); }
  .cell[data-f="bool"]  { color: var(--f-bool);  border-color: color-mix(in srgb, var(--f-bool) 45%, transparent);  background: color-mix(in srgb, var(--f-bool) 12%, transparent); }
  .cell.dim { opacity: .25; }
  .cell.hot { outline: 2px solid var(--accent); outline-offset: 1px; }

  @media (max-width: 768px) {
    .row { gap: .4rem; }
    .row .addr { width: 3.8rem; font-size: .625rem; }
    .row .cells { gap: .18rem; }
    .cell { min-width: 1.85rem; padding: .38rem .2rem; font-size: .75rem; }
  }
  @media (max-width: 480px) {
    .row { gap: .3rem; }
    .row .addr { width: 3.3rem; font-size: .5625rem; padding-right: .2rem; }
    .row .cells { gap: .12rem; }
    .cell { min-width: 1.6rem; padding: .32rem .12rem; font-size: .6875rem; border-radius: 3px; }
  }

  .fields {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    min-width: 0;
  }
  .field {
    background: var(--surface);
    border: 0;
    width: 100%;
    text-align: left;
    padding: .55rem .8rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: grid;
    grid-template-columns: 3.2rem minmax(0,1fr) auto;
    gap: .7rem;
    align-items: baseline;
    transition: background .12s;
  }
  .field:hover, .field.active { background: var(--surface-2); }
  .field .fa { font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
  .field .fn { font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; min-width: 0; }
  .field .ft { display: block; font-family: var(--font-sans); font-size: .75rem; font-weight: 400; color: var(--ink-3); word-break: break-word; }
  .field .fs { font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
  .field[data-f="int"]   .fn { color: var(--f-int); }
  .field[data-f="len"]   .fn { color: var(--f-len); }
  .field[data-f="str"]   .fn { color: var(--f-str); }
  .field[data-f="float"] .fn { color: var(--f-float); }
  .field[data-f="enum"]  .fn { color: var(--f-enum); }
  .field[data-f="bool"]  .fn { color: var(--f-bool); }

  .total {
    display: flex;
    justify-content: space-between;
    padding: .6rem .8rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    border: 1px solid var(--rule);
    border-top: 0;
    background: var(--surface-2);
    border-radius: 0 0 8px 8px;
  }
  .total b { color: var(--accent); }

  /* ---------- test vectors ---------- */

  .tv-legend {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .tv-legend .arrow { color: var(--accent); }

  .tv-group { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
  .tv-h {
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: .7rem;
  }
  .tv-note {
    font-size: .875rem;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 100%;
    padding: .75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  }
  .tv-note strong { color: var(--ink); font-weight: 600; }
  .tv-note code {
    color: var(--ink);
    background: var(--surface-2);
    padding: .1em .35em;
    border-radius: 4px;
    font-size: .8125em;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rule);
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
  }
  .table-scroll::-webkit-scrollbar { height: 6px; }
  .table-scroll::-webkit-scrollbar-track { background: color-mix(in srgb, var(--rule) 40%, transparent); border-radius: 3px; }
  .table-scroll::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
  .table-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

  table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 600px; }
  thead th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    padding: .8rem var(--s-3);
    border-bottom: 1px solid var(--rule-strong);
    white-space: nowrap;
    background: var(--surface);
  }
  tbody td {
    padding: .7rem var(--s-3);
    border-bottom: 1px solid var(--rule);
    font-size: .9375rem;
    vertical-align: baseline;
    background: var(--surface);
  }
  tbody tr:last-child td { border-bottom: 0; }
  tbody tr { transition: background .12s; }
  tbody tr:hover td { background: var(--surface-2); }

  .tv th:first-child,
  .tv td.vid {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--rule);
  }
  .tv tbody tr:hover td.vid {
    background: var(--surface-2);
  }

  .tv .vid {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    color: var(--ink-3);
    white-space: nowrap;
    width: 4.5rem;
  }
  .tv .vin { color: var(--ink-2); font-size: .875rem; }
  .tv .vin code { color: var(--ink); white-space: nowrap; }
  .tv .vout {
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--f-len);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .tv .vout .nil { color: var(--ink-3); font-style: italic; letter-spacing: 0; }
  .tv .rej {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--todo);
    font-weight: 600;
  }
  .tv-reject .vout { color: var(--ink-2); }
  .tv-reject .vout code { color: var(--ink-3); }

  @media (max-width: 640px) {
    table { min-width: 480px; }
    thead th { padding: .65rem var(--s-2); font-size: .625rem; }
    tbody td { padding: .55rem var(--s-2); font-size: .875rem; }
    .tv .vid { width: 3.8rem; font-size: .625rem; }
    .tv .vin { font-size: .8125rem; }
    .tv .vout { font-size: .75rem; }
  }

  /* ---------- conformance ---------- */

  .conform {
    border: 1px solid var(--accent); background: var(--accent-wash); border-radius: 8px;
    padding: var(--s-4); display: grid; gap: var(--s-4); align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  @media (min-width: 780px) { .conform { grid-template-columns: 1.2fr auto; } }
  .conform-def { font-size: 1.0625rem; color: var(--ink); max-width: 100%; }
  .conform-def strong { color: var(--accent); font-weight: 700; }
  .reqs { display: flex; flex-direction: column; gap: .55rem; }
  .reqs li {
    font-family: var(--font-mono); font-size: .875rem; font-weight: 600;
    display: flex; align-items: baseline; gap: .7rem; white-space: nowrap;
  }
  .reqs .tick { color: var(--ok); font-weight: 700; }

  .verdict-line {
    font-family: var(--font-mono); font-size: .8125rem; line-height: 1.8; color: var(--ink-2);
    border: 1px solid var(--rule); background: var(--surface); border-radius: 6px;
    padding: var(--s-3) var(--s-4); max-width: 100%;
  }
  .verdict-line strong { color: var(--ink); }

  /* ---------- official tools ---------- */

  .disclaimer {
    border: 1px solid var(--rule);
    border-left: 3px solid var(--todo);
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    max-width: 100%;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    font-family: var(--font-mono); font-size: .875rem; line-height: 1.7; color: var(--ink-2);
  }
  .disclaimer strong { color: var(--ink); }

  .tools { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 860px) { .tools { grid-template-columns: repeat(3, 1fr); } }
  .tool { background: var(--surface); padding: var(--s-4); display: flex; flex-direction: column; gap: .5rem; }
  .tool-t { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--ink); }
  .tool-d { font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
  .status {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; white-space: nowrap; margin-top: auto; padding-top: .4rem;
    display: inline-flex; align-items: center; gap: .5rem;
  }
  .status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }
  .status.s-wip  { color: var(--wip); }

  /* ---------- the path ---------- */

  .band-close { border-bottom: 0; }
  .path { display: flex; flex-direction: column; gap: 0; }
  .path li { display: flex; flex-direction: column; }
  .path li + li::before {
    content: "↓"; font-family: var(--font-mono); font-size: .875rem; color: var(--accent);
    padding: .5rem 0 .5rem 1.15rem;
  }
  .step {
    text-decoration: none; border: 1px solid var(--rule); background: var(--surface); border-radius: 6px;
    padding: var(--s-3) var(--s-4);
    display: grid; grid-template-columns: 2.6rem minmax(0,1fr); column-gap: var(--s-3);
    align-items: baseline; transition: background .12s, border-color .12s, transform .12s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  }
  .step:hover { background: var(--surface-2); border-color: var(--rule-strong); transform: translateX(3px); }
  .step-n {
    font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em;
    color: var(--ink-3); font-variant-numeric: tabular-nums;
  }
  .step-t { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
  .step-d { grid-column: 2; font-size: .875rem; color: var(--ink-2); }
  .step-last { border-color: var(--accent); background: var(--accent-wash); }
  .step-last:hover { background: var(--accent-wash); border-color: var(--accent); }
  .step-last .step-t { color: var(--accent); }

  /* ---------- github ---------- */

  .repos { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 780px) { .repos { grid-template-columns: repeat(2, 1fr); } }
  .repo {
    background: var(--surface); padding: var(--s-3) var(--s-4); text-decoration: none;
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline;
    column-gap: var(--s-3); transition: background .15s;
  }
  .repo:hover { background: var(--surface-2); }
  .repo-t { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--ink); }
  .repo-d { grid-column: 1; font-size: .8125rem; color: var(--ink-3); }
  .repo .arrow { grid-row: 1 / span 2; color: var(--accent); font-size: .875rem; }

  /* ---------- philosophy ---------- */

  .principles { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 780px) { .principles { grid-template-columns: repeat(2, 1fr); } }
  .principle {
    background: var(--surface); padding: var(--s-3) var(--s-4);
    display: grid; grid-template-columns: 2.2rem minmax(0,1fr); column-gap: var(--s-3);
    align-items: baseline;
  }
  .principle .n {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
    color: var(--ink-3); font-variant-numeric: tabular-nums;
  }
  .principle .t {
    font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
    display: flex; flex-direction: column; gap: .3rem;
  }
  .principle .d {
    font-family: var(--font-sans); font-size: .875rem; font-weight: 400;
    letter-spacing: 0; color: var(--ink-2); line-height: 1.55;
  }
  .principle.key { background: var(--accent-wash); }
  .principle.key .t { color: var(--accent); }

  .layer-note {
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    max-width: 100%;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    font-family: var(--font-mono); font-size: .875rem; line-height: 1.7; color: var(--ink-2);
  }
  .layer-note strong { color: var(--ink); }

  /* ---------- trade-offs ---------- */

  .tradeoffs { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 860px) { .tradeoffs { grid-template-columns: repeat(2, 1fr); } }
  .tradeoff {
    background: var(--surface); padding: var(--s-4);
    display: grid; grid-template-columns: 1.3rem minmax(0,1fr); column-gap: var(--s-3);
  }
  .tradeoff .x { color: var(--todo); font-family: var(--font-mono); font-weight: 700; line-height: 1.5; }
  .tradeoff h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-bottom: .45rem; color: var(--ink); }
  .tradeoff p { font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
  .tradeoff strong { color: var(--ink); font-weight: 600; }
  .tradeoff code {
    font-family: var(--font-mono); font-size: .8125em;
    background: var(--surface-2); padding: .1em .4em; border-radius: 4px;
  }


  /* ---------- footer ---------- */

  footer { padding: var(--s-6) var(--s-4) var(--s-7); }
  .foot-in {
    max-width: var(--page); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
    font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3);
  }
  .foot-in strong { color: var(--ink-2); font-weight: 600; }
  .foot-brand { color: var(--ink); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .foot-copy {
    max-width: var(--page); margin: var(--s-4) auto 0;
    padding-top: var(--s-3); border-top: 1px solid var(--rule);
    font-family: var(--font-mono); font-size: .6875rem;
    letter-spacing: .12em; color: var(--ink-3);
  }
  .foot-copy a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
  .foot-copy a:hover { color: var(--accent); border-bottom-color: var(--accent); }


  .topnav a[aria-current="page"] { color: var(--accent); background: var(--accent-wash); }
  @media (max-width: 1120px) {
    .topnav a[aria-current="page"] { border-color: var(--accent); background: var(--accent-wash); }
  }

  .hero-page .hero-in { padding: clamp(3rem, 8vw, 5.5rem) var(--s-4) clamp(2.5rem, 6vw, 4rem); }
  .hero-page .h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }

  .status.s-ok   { color: var(--ok); }
  .status.s-next { color: var(--accent); }
  .status.s-plan { color: var(--ink-3); }
  .status.inline { margin-top: 0; padding-top: 0; }

  .note-line {
    font-size: .875rem; line-height: 1.65; color: var(--ink-2);
    padding: .75rem 1rem; background: var(--surface);
    border: 1px solid var(--rule); border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  }
  .note-line strong { color: var(--ink); font-weight: 600; }
  .note-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
  .note-warn { border-left-color: var(--wip); }


  .code {
    margin: 0;
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.7;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: var(--s-3) var(--s-4);
    overflow-x: auto;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
  }
  .code .c  { color: var(--ink-3); }
  .code .k  { color: var(--f-enum); }
  .code .s  { color: var(--f-str); }
  .code .by { color: var(--f-len); font-weight: 600; }
  .code .ok { color: var(--ok); }

  .copy-wrap { position: relative; min-width: 0; }
  .copy-wrap > pre { padding-right: 4.5rem; }
  .copy-btn {
    position: absolute; top: .45rem; right: .45rem;
    font-family: var(--font-mono); font-size: .625rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    background: var(--surface); color: var(--ink-3);
    border: 1px solid var(--rule); border-radius: 4px;
    padding: .25rem .5rem; cursor: pointer;
    opacity: 0; transition: opacity .15s, color .15s, border-color .15s;
  }
  .copy-wrap:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.is-done { opacity: 1; }
  .copy-btn:hover { color: var(--accent); border-color: var(--accent); }
  .copy-btn.is-done { color: var(--ok); border-color: var(--ok); }
  @media (hover: none) { .copy-btn { opacity: 1; } }

  .tabs {
    border: 1px solid var(--rule); border-radius: 8px; background: var(--surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03); min-width: 0; overflow: hidden;
  }
  .tab-list {
    display: flex; gap: .25rem; padding: .45rem .5rem 0;
    border-bottom: 1px solid var(--rule); background: var(--surface-2);
    overflow-x: auto; scrollbar-width: none;
  }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list [role="tab"] {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
    background: transparent; color: var(--ink-3); cursor: pointer; white-space: nowrap;
    border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0;
    padding: .45rem .75rem; margin-bottom: -1px; transition: color .15s, background-color .15s;
  }
  .tab-list [role="tab"]:hover { color: var(--ink); }
  .tab-list [role="tab"][aria-selected="true"] {
    color: var(--accent); background: var(--surface); border-color: var(--rule);
  }
  .tab-panel .code { border: 0; border-radius: 0; box-shadow: none; }
  .tab-panel .code-note { padding: 0 var(--s-4) var(--s-3); font-size: .8125rem; color: var(--ink-3); }


  .gs-steps { display: flex; flex-direction: column; gap: var(--s-6); counter-reset: gs; }
  .gs-step { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
  .gs-step > .h3 { display: flex; align-items: baseline; gap: .7rem; }
  .gs-step > .h3::before {
    counter-increment: gs; content: counter(gs, decimal-leading-zero);
    color: var(--accent); font-variant-numeric: tabular-nums;
  }


  .cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
  @media (min-width: 860px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .card { background: var(--surface); padding: var(--s-4); display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
  .card-k { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .card-t { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
  .card-d { font-size: .875rem; color: var(--ink-2); line-height: 1.6; }
  .card-d code { font-size: .8125em; }
  .card-list { display: flex; flex-direction: column; gap: .4rem; font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
  .card-list li { position: relative; padding-left: 1.35rem; }
  .card-list li::before {
    position: absolute; left: 0; top: 0;
    content: "→"; font-family: var(--font-mono); color: var(--accent); font-size: .8125rem; line-height: inherit;
  }
  .card-list.neg li::before { content: "×"; color: var(--todo); font-weight: 700; }
  .card-list.ordered { counter-reset: card-step; }
  .card-list.ordered li { counter-increment: card-step; padding-left: 1.9rem; }
  .card-list.ordered li::before { content: counter(card-step, decimal-leading-zero); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .card-list a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); transition: border-color .15s; }
  .card-list a:hover { border-bottom-color: var(--accent); }
  .card-a { margin-top: auto; padding-top: .4rem; font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
  .card-a:hover { color: var(--accent-2); }
  .card-accent { background: var(--accent-wash); }


  .tiers { display: flex; flex-direction: column; gap: 0; }
  .tier {
    border: 1px solid var(--rule); background: var(--surface); border-radius: 8px;
    padding: var(--s-3) var(--s-4);
    display: grid; grid-template-columns: 7.5rem minmax(0,1fr); gap: .3rem var(--s-3); align-items: baseline;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  }
  .tier + .tier { margin-top: 1.9rem; position: relative; }
  .tier + .tier::before {
    content: "↓"; position: absolute; top: -1.65rem; left: 1.4rem;
    font-family: var(--font-mono); font-size: .875rem; color: var(--ink-3);
  }
  .tier-k { font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .tier-t { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
  .tier-d { grid-column: 2; font-size: .875rem; color: var(--ink-2); }
  .tier-spec { border-color: var(--accent); background: var(--accent-wash); }
  .tier-spec .tier-k, .tier-spec .tier-t { color: var(--accent); }
  @media (max-width: 560px) {
    .tier { grid-template-columns: minmax(0,1fr); }
    .tier-d { grid-column: 1; }
  }

  .eco td .pkg { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); white-space: nowrap; }
  .eco td .sub { display: block; font-size: .75rem; color: var(--ink-3); }
  .eco td a { color: var(--accent); text-decoration: none; }
  .eco td a:hover { text-decoration: underline; }
  .eco .num { font-family: var(--font-mono); font-size: .8125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .eco .yes { color: var(--ok); font-weight: 700; font-family: var(--font-mono); }
  .eco .dash { color: var(--ink-3); font-family: var(--font-mono); }
  .eco th:first-child, .eco td:first-child {
    position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--rule);
  }
  .eco td:first-child { font-weight: 600; white-space: nowrap; }
  .eco tbody tr:hover td:first-child { background: var(--surface-2); }


  .cmp th.us, .cmp td.us { background: var(--accent-wash); }
  .cmp thead th.us { color: var(--accent); }
  .cmp tbody tr:hover td.us { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
  .cmp td { font-size: .8125rem; color: var(--ink-2); line-height: 1.5; min-width: 9rem; }
  .cmp td b { display: block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--ink); font-weight: 600; }
  .cmp td:first-child { min-width: 8rem; }
  .cmp .src { font-size: .75rem; color: var(--ink-3); }
  .cmp .src a { color: inherit; }

  .bytes-vs { display: grid; gap: var(--s-3); }
  @media (min-width: 860px) { .bytes-vs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .bytes-vs .code { height: 100%; }


  .timeline { display: flex; flex-direction: column; position: relative; }
  .phase {
    display: grid; grid-template-columns: 1.5rem minmax(0,1fr); gap: var(--s-3);
    position: relative; padding-bottom: var(--s-5);
  }
  .phase:last-child { padding-bottom: 0; }
  .phase::before {
    content: ""; position: absolute; left: .7rem; top: 1.1rem; bottom: 0;
    width: 1px; background: var(--rule-strong);
  }
  .phase:last-child::before { display: none; }
  .phase-dot {
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    border: 2px solid var(--rule-strong); background: var(--surface);
    position: relative; z-index: 1; margin-top: .05rem;
  }
  .phase-done .phase-dot { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px var(--surface); }
  .phase-now .phase-dot { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 4px var(--accent-wash); }
  .phase-body { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
  .phase-when { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .phase-now .phase-when { color: var(--accent); }
  .phase-done .phase-when { color: var(--ok); }
  .phase-t { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
  .phase .card-list { margin-top: .2rem; }


  .insp { display: grid; gap: var(--s-4); min-width: 0; }
  .insp-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .chip {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
    background: var(--surface); color: var(--ink-2);
    border: 1px solid var(--rule); border-radius: 999px;
    padding: .3rem .75rem; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s;
  }
  .chip:hover { color: var(--accent); border-color: var(--accent); }
  .chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
  .chip-label { font-family: var(--font-mono); font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: .25rem; }

  .seg {
    display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface);
  }
  .seg button {
    font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    border: 0; background: transparent; color: var(--ink-3); padding: .45rem .9rem; cursor: pointer;
  }
  .seg button + button { border-left: 1px solid var(--rule); }
  .seg button[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }

  .insp-form {
    display: grid; gap: var(--s-3);
    border: 1px solid var(--rule); background: var(--surface); border-radius: 8px;
    padding: var(--s-4); box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  @media (min-width: 900px) { .insp-form { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
  .insp-col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
  .ctl { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
  .ctl > span {
    font-family: var(--font-mono); font-size: .625rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-3);
  }
  .ctl > span small { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--font-sans); font-size: .75rem; }
  .ctl input, .ctl textarea, .ctl select {
    font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6;
    color: var(--ink); background: var(--surface-2);
    border: 1px solid var(--rule); border-radius: 6px;
    padding: .5rem .65rem; width: 100%; min-width: 0;
    transition: border-color .15s, background-color .15s;
  }
  .ctl textarea { resize: vertical; min-height: 5.5rem; tab-size: 2; }
  .ctl input:focus, .ctl textarea:focus, .ctl select:focus { outline: none; border-color: var(--accent); background: var(--surface); }
  .ctl.has-error input, .ctl.has-error textarea { border-color: var(--todo); }

  .msg {
    font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6;
    padding: .6rem .85rem; border-radius: 0 6px 6px 0;
    border: 1px solid var(--rule); border-left: 3px solid var(--rule-strong);
    background: var(--surface); color: var(--ink-2); word-break: break-word;
  }
  .msg[hidden] { display: none; }
  .msg b { color: var(--ink); }
  .msg-err { border-left-color: var(--todo); }
  .msg-err b { color: var(--todo); }
  .msg-ok { border-left-color: var(--ok); }
  .msg-ok b { color: var(--ok); }
  .msg-warn { border-left-color: var(--wip); }
  .msg-warn b { color: var(--wip); }

  .insp-out { display: grid; gap: var(--s-3); min-width: 0; }
  .insp-out .fields { max-height: 28rem; overflow-y: auto; }
  @media (min-width: 900px) { .insp-out .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; } }
  .insp-out .field { cursor: default; }
  .insp-out .field.absent .fn { color: var(--ink-3); text-decoration: line-through; }
  .field[data-f="pad"] .fn { color: var(--todo); }
  .cell[data-f="pad"] { color: var(--todo); border-style: dashed; border-color: color-mix(in srgb, var(--todo) 45%, transparent); background: transparent; }
  .cell[data-f="none"] { color: var(--ink-3); }
  .cell.diff { box-shadow: 0 0 0 2px var(--todo); }
  .cell.extra { border-style: dashed; }
  .cell.err { color: #FFFFFF; background: var(--todo); border-color: var(--todo); }
  .insp .map-body { max-height: 26rem; overflow: auto; }
  .map-empty { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3); padding: .3rem 0; }
  .insp-cmp { display: grid; gap: var(--s-3); min-width: 0; }
  .insp-cmp .map-head b { color: var(--todo); }
  .bug-desc { font-size: .875rem; color: var(--ink-2); }
  .bug-desc code { font-size: .8125em; }
  @media (min-width: 900px) { .insp-out .fields::after { content: ""; background: var(--surface); } }
  a.card { text-decoration: none; transition: background .15s; }
  a.card:hover { background: var(--surface-2); }
  .lede a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
  .lede a:hover { border-bottom-color: var(--accent); }
  a.tool { text-decoration: none; transition: background .15s; }
  a.tool:hover { background: var(--surface-2); }
