﻿/* ==========================================================================
   The Vial Room — design system
   A terminal-adjacent chat client. Deep charcoal app frame, lime signal,
   cyan links, JetBrains Mono as a co-equal typeface with Inter Tight.
   Written from scratch for this site. Dark is the default; light is a
   genuine re-authoring rather than an inversion.
   ========================================================================== */

@import url('google-fonts.css');

/* ---------------------------------------------------------------- tokens */
:root {
  /* surfaces */
  --app: #101216;
  --surface: #15181D;
  --raised: #1B1F26;
  --raised-2: #21262E;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .16);

  /* ink */
  --ink: #E6E8EC;
  --ink-2: #B9C0CB;
  /* The dim/mute/faint ramp is measured against --raised-2, the lightest
     surface any of them lands on (.chip, .embed, .attach, .code). Measuring
     against --app flatters every value by ~0.9:1 and hides the real failures.
     On --raised-2: dim 6.73:1, mute 5.53:1, faint 4.60:1 — three visibly
     separated steps (1.22 / 1.20 apart), all clear of AA 4.5:1. */
  --ink-dim: #A6ADB9;    /* was #98A0AE — 5.77:1 on --raised-2 */
  --ink-mute: #939DAA;   /* was #8792A0 — 4.81:1 on --raised-2 */
  --ink-faint: #868E9B;  /* was #7B8492 — 4.02:1 on --raised-2, 4.37:1 on .msg:hover */

  /* brand + semantics */
  --signal: #A3E635;
  --signal-dim: #7CB518;
  /* Wash alphas are a contrast term, not decoration. A targeted message paints
     --signal-wash over --surface, and at .12 that composite (#263120) dropped
     --ink-faint metadata to 4.12:1 — every one of the archive's cross-day anchor
     links lands on exactly that state. At .07 the composite is #1F261F and the
     same text reads 4.69:1; the 2px lime inset bar carries the affordance, so the
     tint does not have to. Same reasoning for --warn-wash on .note (4.40 -> 4.71). */
  --signal-wash: rgba(163, 230, 53, .07);
  --link: #38BDF8;
  --link-hover: #7DD3FC;
  --warn: #FBBF24;
  --warn-wash: rgba(251, 191, 36, .07);
  --danger: #F87171;
  --danger-wash: rgba(248, 113, 113, .10);
  --ok: #34D399;
  --violet: #A78BFA;
  --magenta: #F472B6;
  --cyan: #22D3EE;

  /* role colours */
  --role-founder: #A3E635;
  --role-mod: #FBBF24;
  --role-lab: #22D3EE;
  --role-archivist: #A78BFA;
  --role-bot: #F472B6;

  /* seeded handle palette — tuned to similar perceived lightness */
  --h0: #F0A6A6; --h1: #E9B978; --h2: #D9CF7A; --h3: #A8D98B;
  --h4: #83D7B0; --h5: #7CD1D9; --h6: #8FC4F0; --h7: #A9B4F2;
  --h8: #C5AAF0; --h9: #E5A6E0; --h10: #EFA8C4; --h11: #D8B69A;
  --h12: #B7C99C; --h13: #9AC9C0;

  /* type scale — 1.200 minor third off 15px */
  --fs-3xs: 10.5px;
  --fs-2xs: 11.5px;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-base: 15px;
  --fs-md: 16.5px;
  --fs-lg: 19px;
  --fs-xl: 23px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --fs-4xl: 41px;

  --ff: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* geometry + motion */
  --r-xs: 3px;
  --r: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .16s;

  /* layout */
  --sidebar-w: 264px;
  --rail-w: 292px;
  --topbar-h: 46px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, .8);

  color-scheme: dark;
}

/* light mode — re-authored, not inverted */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --app: #EDEFEA;
    --surface: #FFFFFF;
    --raised: #F7F8F4;
    --raised-2: #EFF1EB;
    --line: rgba(16, 18, 22, .09);
    --line-2: rgba(16, 18, 22, .14);
    --line-strong: rgba(16, 18, 22, .24);
    --ink: #16191D;
    --ink-2: #33383F;
    /* Light ramp measured against --app, the darkest surface here (the rail).
       The previous three values sat 1.11:1 and 1.08:1 apart — a hierarchy on
       paper only. Now 8.33 / 6.41 / 4.94 on --app, 1.30:1 between steps. */
    --ink-dim: #40454D;    /* was #545B65 — 5.92:1, indistinguishable from mute */
    --ink-mute: #4F565F;   /* was #5A626C — 5.34:1, indistinguishable from faint */
    --ink-faint: #5F6772;  /* 4.94:1 on --app — the floor, unchanged */
    /* Both were sized against --surface (white), where they scraped past at
       4.99 and 4.92. Against --app #EDEFEA — the rail and the topbar, which is
       where the kicker, the channel marker and the pinned icon actually sit —
       they were 4.31 and 4.25. Re-sized against --app: 5.13 and 5.23, and still
       a clear step lighter than --signal-dim (1.19:1). */
    --signal: #456F0D;
    --signal-dim: #3F6212;
    --signal-wash: rgba(69, 111, 13, .10);
    --link: #0369A1;
    --link-hover: #075985;
    --warn: #8F5507;
    --warn-wash: rgba(143, 85, 7, .10);
    --danger: #B91C1C;
    --danger-wash: rgba(185, 28, 28, .08);
    --ok: #047857;
    --violet: #6D28D9;
    --magenta: #BE185D;
    --cyan: #0E7490;
    --role-founder: #3F6212;
    --role-mod: #92400E;
    --role-lab: #0E7490;
    --role-archivist: #5B21B6;
    --role-bot: #9D174D;
    --h0: #A13C3C; --h1: #8A5514; --h2: #6B6410; --h3: #3F6B1E;
    --h4: #106B4C; --h5: #0F6274; --h6: #1A5A94; --h7: #35429E;
    --h8: #6A3AA8; --h9: #96328E; --h10: #A32D5E; --h11: #7A5326;
    --h12: #4E6420; --h13: #21625C;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -14px rgba(16, 24, 40, .18);
    --shadow-lg: 0 24px 64px -24px rgba(16, 24, 40, .28);
    color-scheme: light;
  }
}

/* explicit toggle wins in both directions */
:root[data-theme="light"] {
  --app: #EDEFEA; --surface: #FFFFFF; --raised: #F7F8F4; --raised-2: #EFF1EB;
  --line: rgba(16, 18, 22, .09); --line-2: rgba(16, 18, 22, .14); --line-strong: rgba(16, 18, 22, .24);
  --ink: #16191D; --ink-2: #33383F; --ink-dim: #40454D; --ink-mute: #4F565F; --ink-faint: #5F6772;
  --signal: #456F0D; --signal-dim: #3F6212; --signal-wash: rgba(69, 111, 13, .10);
  --link: #0369A1; --link-hover: #075985;
  --warn: #8F5507; --warn-wash: rgba(143, 85, 7, .10);
  --danger: #B91C1C; --danger-wash: rgba(185, 28, 28, .08);
  --ok: #047857; --violet: #6D28D9; --magenta: #BE185D; --cyan: #0E7490;
  --role-founder: #3F6212; --role-mod: #92400E; --role-lab: #0E7490;
  --role-archivist: #5B21B6; --role-bot: #9D174D;
  --h0: #A13C3C; --h1: #8A5514; --h2: #6B6410; --h3: #3F6B1E;
  --h4: #106B4C; --h5: #0F6274; --h6: #1A5A94; --h7: #35429E;
  --h8: #6A3AA8; --h9: #96328E; --h10: #A32D5E; --h11: #7A5326;
  --h12: #4E6420; --h13: #21625C;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -14px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 64px -24px rgba(16, 24, 40, .28);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--ff);
  font-size: var(--fs-base);
  line-height: 1.58;
  color: var(--ink);
  background: var(--app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: none;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 2px; }
b, strong { font-weight: 650; color: var(--ink); }
em { font-style: italic; }
code, kbd, samp, pre { font-family: var(--ff-mono); font-size: .92em; }
ul, ol { padding-left: 1.15em; }
li { margin: .2em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
img, svg { max-width: 100%; }
table { border-collapse: collapse; }

::selection { background: var(--signal-wash); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); background-clip: content-box; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--signal); color: #10140A; font-weight: 700; font-size: var(--fs-sm);
  padding: 10px 16px; border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; text-decoration: none; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--app) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .top { background: var(--app); } }

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 26px; height: 26px; }
.brand-name {
  font-family: var(--ff-mono); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: -.01em; color: var(--ink); white-space: nowrap;
}
.brand-name .dim { color: var(--signal); }

.top-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; min-width: 0; }
.top-nav a {
  font-family: var(--ff-mono); font-size: var(--fs-2xs); letter-spacing: .02em;
  color: var(--ink-dim); padding: 6px 9px; border-radius: var(--r);
  white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.top-nav a:hover { background: var(--raised); color: var(--ink); text-decoration: none; }
.top-nav a[aria-current] { color: var(--signal); background: var(--signal-wash); }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-search {
  display: flex; align-items: center; gap: 7px;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r); padding: 5px 9px; min-width: 0;
  transition: border-color var(--dur) var(--ease);
}
.top-search:focus-within { border-color: var(--signal); }
.top-search input {
  background: none; border: 0; color: var(--ink);
  font-family: var(--ff-mono); font-size: var(--fs-2xs); width: 152px; min-width: 0;
}
.top-search input::placeholder { color: var(--ink-faint); }
.top-search input:focus { outline: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink-dim); cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--signal); border-color: var(--line-2); }
.drawer-btn { display: none; }

/* ---------------------------------------------------------------- app frame */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w);
  align-items: start;
  max-width: 1720px; margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
}
.app.no-rail { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.app.wide { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }

/* ---------------------------------------------------------------- sidebar */
.side {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 8px 40px 12px;
  border-right: 1px solid var(--line);
  background: var(--app);
}
.side-h {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); padding: 12px 8px 5px;
}
.side-h:first-child { padding-top: 2px; }
.ch-link {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--ff-mono); font-size: var(--fs-xs);
  color: var(--ink-dim); padding: 4px 8px; border-radius: var(--r);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ch-link:hover { background: var(--raised); color: var(--ink); text-decoration: none; }
.ch-link[aria-current] { background: var(--signal-wash); color: var(--signal); font-weight: 600; }
.ch-link .hash { color: var(--ink-faint); }
.ch-link[aria-current] .hash { color: var(--signal-dim); }
.ch-link .n { margin-left: auto; font-size: var(--fs-3xs); color: var(--ink-faint); }
.side-foot {
  margin-top: 18px; padding: 12px 8px 0; border-top: 1px solid var(--line);
  font-size: var(--fs-2xs); color: var(--ink-faint); line-height: 1.5;
}
.side-foot a { color: var(--ink-dim); }

/* ---------------------------------------------------------------- main */
.main { min-width: 0; background: var(--surface); border-right: 1px solid var(--line); }
.app.no-rail .main, .app.wide .main { border-right: 0; }
.pad { padding: 22px 26px 64px; }
.pad-tight { padding: 16px 26px 48px; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: var(--fs-2xs);
  color: var(--ink-faint); margin-bottom: 14px;
}
.crumbs a { color: var(--ink-dim); }
/* an opacity multiplier here silently cancels the token: --ink-faint at .6
   composites to 2.51:1. Colour the glyph instead. */
.crumbs .sep { color: var(--ink-faint); }

h1, h2, h3, h4 { line-height: 1.24; letter-spacing: -.015em; font-weight: 650; color: var(--ink); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-lg); margin: 30px 0 10px; }
h3 { font-size: var(--fs-md); margin: 22px 0 7px; }
h4 { font-size: var(--fs-base); margin: 18px 0 5px; }
.page-h1 { font-size: var(--fs-3xl); letter-spacing: -.028em; }
.mono-h1 { font-family: var(--ff-mono); font-weight: 700; letter-spacing: -.03em; }
.lede { font-size: var(--fs-md); color: var(--ink-2); max-width: 68ch; margin-top: 8px; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 13px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 13px; color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }

.kicker {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .12em; color: var(--signal);
  display: block; margin-bottom: 7px;
}
.muted { color: var(--ink-mute); }
.dim { color: var(--ink-dim); }
.num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- day header */
.day-head {
  position: sticky; top: var(--topbar-h); z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 26px;
}
@supports not (backdrop-filter: blur(1px)) { .day-head { background: var(--surface); } }
.day-head-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.day-title {
  font-family: var(--ff-mono); font-size: var(--fs-xl); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1;
}
.day-title .ch { color: var(--signal); }
.day-sub {
  font-family: var(--ff-mono); font-size: var(--fs-2xs); color: var(--ink-mute);
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px;
}
.day-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-mono); font-size: var(--fs-2xs);
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r); padding: 4px 9px; color: var(--ink-dim);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.pill:hover { color: var(--signal); border-color: var(--line-2); text-decoration: none; }
/* .38 opacity read at 2.04:1 dark / 1.79:1 light. A dead pagination control is
   still a label people read, so dim it with the token floor, not with alpha. */
.pill.off { color: var(--ink-faint); }
.pill.on { color: var(--signal); border-color: var(--signal-dim); background: var(--signal-wash); }

/* ---------------------------------------------------------------- highlights */
.hl {
  margin: 18px 26px 6px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--signal);
  border-radius: var(--r-md);
  background: var(--raised);
  padding: 13px 16px;
}
.hl-h {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .11em; color: var(--signal);
  margin-bottom: 7px;
}
.hl ul { list-style: none; padding: 0; }
.hl li {
  font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 5px;
  padding-left: 15px; position: relative; line-height: 1.5;
}
.hl li:last-child { margin-bottom: 0; }
.hl li::before {
  content: '›'; position: absolute; left: 0; top: -1px;
  color: var(--signal); font-family: var(--ff-mono);
}
.hl li a { font-family: var(--ff-mono); font-size: var(--fs-2xs); color: var(--ink-mute); }
.hl li .who { font-family: var(--ff-mono); font-size: var(--fs-2xs); }

/* ---------------------------------------------------------------- transcript */
.log { padding: 8px 0 56px; }
.msg {
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px; padding: 3px 26px; position: relative;
  scroll-margin-top: calc(var(--topbar-h) + 78px);
}
.msg:hover { background: var(--raised); }
.msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg:target { background: var(--signal-wash); box-shadow: inset 2px 0 0 var(--signal); }
.msg-av { grid-column: 1; padding-top: 3px; }
.msg-av svg { display: block; border-radius: var(--r); }
.msg-body { grid-column: 2; min-width: 0; }
.msg.grouped .msg-body { grid-column: 2; }

.msg-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.handle {
  font-family: var(--ff-mono); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: -.01em;
}
.handle:hover { text-decoration: underline; }
.role-founder { color: var(--role-founder); }
.role-mod { color: var(--role-mod); }
.role-lab { color: var(--role-lab); }
.role-archivist { color: var(--role-archivist); }
.role-bot { color: var(--role-bot); }
.h0 { color: var(--h0); } .h1 { color: var(--h1); } .h2 { color: var(--h2); }
.h3 { color: var(--h3); } .h4 { color: var(--h4); } .h5 { color: var(--h5); }
.h6 { color: var(--h6); } .h7 { color: var(--h7); } .h8 { color: var(--h8); }
.h9 { color: var(--h9); } .h10 { color: var(--h10); } .h11 { color: var(--h11); }
.h12 { color: var(--h12); } .h13 { color: var(--h13); }

.tag {
  font-family: var(--ff-mono); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 1px 4px; border-radius: var(--r-xs);
  background: var(--line-2); color: var(--ink-dim);
}
.tag-bot { background: var(--role-bot); color: #1A0710; }
.tag-mod { background: var(--role-mod); color: #1E1503; }
.tag-lab { background: var(--role-lab); color: #04191D; }
.tag-founder { background: var(--role-founder); color: #10140A; }
.tag-archivist { background: var(--role-archivist); color: #140A24; }

.ts {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  font-variant-numeric: tabular-nums; color: var(--ink-faint);
}
a.ts:hover { color: var(--signal); text-decoration: none; }
.msg.grouped .ts-gut {
  grid-column: 1; text-align: right; padding-right: 2px;
  opacity: 0; transition: opacity var(--dur) var(--ease);
  font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint);
  padding-top: 2px;
}
.msg.grouped:hover .ts-gut, .msg.grouped:focus-within .ts-gut { opacity: 1; }

.text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.56; overflow-wrap: break-word; }
.text p { margin: 0 0 3px; }
.text p:last-child { margin-bottom: 0; }
.text code {
  background: var(--raised-2); border: 1px solid var(--line);
  padding: .5px 4px; border-radius: var(--r-xs); color: var(--ink);
}
.edited { font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint); }
.redacted {
  font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ink-faint);
  font-style: italic; border-left: 2px solid var(--line-strong); padding-left: 9px;
}
.redacted a { color: var(--ink-mute); }
.qline {
  border-left: 2px solid var(--line-strong); padding-left: 9px;
  color: var(--ink-mute); margin: 2px 0;
}
.mention {
  font-family: var(--ff-mono); font-size: .95em;
  background: var(--signal-wash); color: var(--signal);
  padding: 0 3px; border-radius: var(--r-xs);
}
.mention:hover { text-decoration: none; background: var(--signal); color: #10140A; }
.chip {
  font-family: var(--ff-mono); font-size: .95em;
  background: var(--line-2); color: var(--link);
  padding: 0 3px; border-radius: var(--r-xs);
}
.chip:hover { text-decoration: none; color: var(--link-hover); }

/* reply quote */
.reply-q {
  display: flex; align-items: baseline; gap: 6px;
  font-size: var(--fs-2xs); color: var(--ink-mute);
  margin-bottom: 2px; padding-left: 2px; min-width: 0;
}
.reply-q::before {
  content: ''; flex-shrink: 0; width: 13px; height: 8px;
  border-left: 1.5px solid var(--line-strong); border-top: 1.5px solid var(--line-strong);
  border-top-left-radius: 5px; align-self: flex-end; margin-bottom: 3px;
}
.reply-q .rq-who { font-family: var(--ff-mono); font-weight: 600; flex-shrink: 0; }
.reply-q .rq-t {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink-mute); min-width: 0;
}
.reply-q a.rq-t:hover { color: var(--ink); }

/* reaction pills */
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.react {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 1px 7px 1px 5px; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.react .e { font-size: 11.5px; line-height: 1; }

/* system message */
.sys {
  padding: 2px 26px 2px 77px;
  font-family: var(--ff-mono); font-size: var(--fs-2xs); color: var(--ink-faint);
  display: flex; align-items: baseline; gap: 8px;
  scroll-margin-top: calc(var(--topbar-h) + 78px);
}
.sys::before { content: '—'; color: var(--ink-faint); }
.sys .sys-who { color: var(--ink-mute); }

/* blocks inside a message */
.code {
  margin: 6px 0 2px; background: var(--raised-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow-x: auto; max-width: 100%;
}
.code pre { padding: 10px 12px; font-size: var(--fs-2xs); line-height: 1.5; color: var(--ink-2); }
.code pre code { background: none; border: 0; padding: 0; }

.tbl-wrap {
  margin: 7px 0 2px; overflow-x: auto; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.tbl { width: 100%; font-size: var(--fs-2xs); font-family: var(--ff-mono); }
.tbl th, .tbl td {
  padding: 5px 10px; text-align: left; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl th {
  background: var(--raised-2); color: var(--ink); font-weight: 600;
  font-size: var(--fs-3xs); text-transform: uppercase; letter-spacing: .06em;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.embed {
  margin: 7px 0 2px; display: flex; gap: 11px;
  background: var(--raised-2); border: 1px solid var(--line);
  border-left: 2px solid var(--cyan); border-radius: var(--r-md);
  padding: 10px 12px; max-width: 60ch;
}
.embed-ico { flex-shrink: 0; }
.embed-b { min-width: 0; }
.embed-k {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .1em; color: var(--cyan);
}
.embed-t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin: 2px 0 3px; }
.embed-m { font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-mute); }
.embed-n { font-size: var(--fs-2xs); color: var(--ink-dim); margin-top: 4px; }

.attach {
  margin: 7px 0 2px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 8px 12px 8px 10px; max-width: 100%;
}
.attach-b { min-width: 0; }
.attach-n {
  font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.attach-m { font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint); }

.thread-link {
  margin: 6px 0 2px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: var(--fs-2xs);
  background: var(--raised-2); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 4px 10px; color: var(--link);
}
.thread-link:hover { text-decoration: none; border-color: var(--link); }

/* ---------------------------------------------------------------- right rail */
.rail {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px 48px; background: var(--app);
}
.rail-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 12px;
}
.rail-h {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .11em; color: var(--ink-faint);
  margin-bottom: 9px;
}
/* the <dl> is the container; each .kv inside it is one row */
dl.kv { display: block; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-xs); padding: 2.5px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv dt { color: var(--ink-mute); flex: 0 1 auto; min-width: 0; }
.kv dd { font-family: var(--ff-mono); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.who-list { display: flex; flex-wrap: wrap; gap: 4px; }
.who-list a {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 10px; padding: 2px 7px;
}
.who-list a:hover { text-decoration: none; border-color: var(--line-2); }

.jump { display: flex; gap: 6px; }
.jump input, .jump select {
  flex: 1 1 auto; min-width: 0;
  background: var(--raised); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--ff-mono); font-size: var(--fs-2xs);
  border-radius: var(--r); padding: 6px 8px;
}
.jump input:focus, .jump select:focus { outline: none; border-color: var(--signal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--ff-mono); font-size: var(--fs-2xs); font-weight: 600;
  background: var(--signal); color: #10140A; border: 1px solid var(--signal);
  border-radius: var(--r); padding: 6px 12px; cursor: pointer;
  transition: filter var(--dur) var(--ease);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; color: #10140A; }
.btn-ghost {
  background: var(--raised); color: var(--ink-dim); border-color: var(--line);
}
.btn-ghost:hover { color: var(--signal); border-color: var(--line-2); }

/* ---------------------------------------------------------------- sponsors */
.spon { margin: 16px 0; }
.spon-lbl {
  font-family: var(--ff-mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 5px;
}
.spon-b {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--raised); border: 1px solid var(--line);
  border-left: 2px solid hsl(var(--hue) 62% 52%);
  border-radius: var(--r-md); padding: 13px 15px;
  transition: border-color var(--dur) var(--ease);
}
.spon-b:hover { text-decoration: none; border-color: var(--line-2); border-left-color: hsl(var(--hue) 72% 58%); }
.spon-ico { flex-shrink: 0; }
.spon-k {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--hue) 58% 58%);
}
.spon-t { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); margin: 2px 0 3px; }
.spon-d { font-size: var(--fs-xs); color: var(--ink-dim); max-width: 62ch; }
.spon-cta {
  font-family: var(--ff-mono); font-size: var(--fs-2xs); color: var(--signal);
  margin-top: 6px; display: inline-block;
}
.spon-r {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-top: 2px solid hsl(var(--hue) 62% 52%);
  border-radius: var(--r-md); padding: 12px 13px; margin-bottom: 10px;
}
.spon-r:hover { text-decoration: none; border-color: var(--line-2); }
.spon-r .spon-t { font-size: var(--fs-xs); }
.spon-r .spon-d { font-size: var(--fs-2xs); }

/* ---------------------------------------------------------------- cards + grids */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); }

.card {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 15px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.card:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-1px); }
.card-t {
  font-family: var(--ff-mono); font-size: var(--fs-sm); font-weight: 650;
  color: var(--ink); letter-spacing: -.01em;
}
a.card:hover .card-t { color: var(--signal); }
.card-d { font-size: var(--fs-xs); color: var(--ink-dim); margin-top: 5px; line-height: 1.5; }
.card-m {
  font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint);
  margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap;
}

.stat {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 13px;
}
.stat-n {
  font-family: var(--ff-mono); font-size: var(--fs-xl); font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  display: block; line-height: 1.1;
}
.stat-l {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint);
  margin-top: 3px; display: block;
}

.rows { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 13px; border-bottom: 1px solid var(--line);
  background: var(--raised);
  transition: background var(--dur) var(--ease);
}
.row:last-child { border-bottom: 0; }
a.row:hover { text-decoration: none; background: var(--raised-2); }
.row-t { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ink); min-width: 0; }
a.row:hover .row-t { color: var(--signal); }
.row-d { font-size: var(--fs-xs); color: var(--ink-dim); min-width: 0; }
.row-m {
  margin-left: auto; font-family: var(--ff-mono); font-size: var(--fs-3xs);
  color: var(--ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums;
}

.wide-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); }
.dtable { width: 100%; font-size: var(--fs-xs); }
.dtable th, .dtable td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.dtable th {
  background: var(--raised-2); font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink); white-space: nowrap;
}
.dtable td { color: var(--ink-2); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable .n { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- heatmap + calendar */
.heat { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.heat svg { display: block; }
.heat-key {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint);
}
.heat-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dow {
  font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint);
  text-align: center; padding-bottom: 3px;
}
.cal-cell {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint);
  background: var(--raised); min-height: 34px;
}
.cal-cell.empty { border-color: transparent; background: none; }
a.cal-cell { color: var(--ink-2); }
a.cal-cell:hover { text-decoration: none; border-color: var(--signal); color: var(--signal); }
.cal-cell .d { font-weight: 600; }
.cal-cell .c { font-size: 9px; opacity: .8; }
.cal-cell.q1 { background: color-mix(in srgb, var(--signal) 10%, var(--raised)); }
.cal-cell.q2 { background: color-mix(in srgb, var(--signal) 22%, var(--raised)); }
.cal-cell.q3 { background: color-mix(in srgb, var(--signal) 38%, var(--raised)); }
.cal-cell.q4 { background: color-mix(in srgb, var(--signal) 56%, var(--raised)); color: var(--ink); }

.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.month-h {
  font-family: var(--ff-mono); font-size: var(--fs-xs); font-weight: 650;
  margin-bottom: 6px; color: var(--ink);
}

/* ---------------------------------------------------------------- misc blocks */
.note {
  border: 1px solid var(--line-2); border-left: 2px solid var(--warn);
  background: var(--warn-wash); border-radius: var(--r-md);
  padding: 12px 15px; margin: 16px 0; font-size: var(--fs-sm); color: var(--ink-2);
}
.note.danger { border-left-color: var(--danger); background: var(--danger-wash); }
.note.ok { border-left-color: var(--ok); background: rgba(52, 211, 153, .08); }
.note-h {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .1em; color: var(--warn);
  margin-bottom: 5px;
}
.note.danger .note-h { color: var(--danger); }
.note.ok .note-h { color: var(--ok); }

.pinned {
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--raised); padding: 11px 14px; margin-bottom: 8px;
  display: flex; gap: 10px; align-items: flex-start;
}
.pinned-ico { flex-shrink: 0; color: var(--warn); }
.pinned-t { font-size: var(--fs-sm); color: var(--ink-2); min-width: 0; }

.rating { display: flex; align-items: center; gap: 8px; }
.rating-n {
  font-family: var(--ff-mono); font-size: var(--fs-2xl); font-weight: 700;
  color: var(--ink); letter-spacing: -.03em; line-height: 1;
}
.bar { height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; min-width: 70px; flex: 1 1 auto; }
.bar i { display: block; height: 100%; background: var(--signal); border-radius: 3px; }

.review {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--raised); padding: 13px 15px; margin-bottom: 10px;
}
.review-h { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.stars { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--signal); letter-spacing: .08em; }

.pager { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 26px; }
.pager .cur { color: var(--signal); border-color: var(--signal-dim); background: var(--signal-wash); }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  padding: 30px 22px; text-align: center; color: var(--ink-mute);
}
.empty-ico { margin-bottom: 10px; opacity: .5; }
.empty-t { font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--ink-dim); }
.empty-d { font-size: var(--fs-xs); margin-top: 5px; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a {
  font-family: var(--ff-mono); font-size: var(--fs-2xs);
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r); padding: 4px 9px; color: var(--ink-dim);
}
.tagcloud a:hover { text-decoration: none; color: var(--signal); border-color: var(--line-2); }
.tagcloud a .n { color: var(--ink-faint); font-size: var(--fs-3xs); margin-left: 4px; }

/* search */
.sr { border-bottom: 1px solid var(--line); padding: 11px 0; }
.sr:last-child { border-bottom: 0; }
.sr-t { font-family: var(--ff-mono); font-size: var(--fs-sm); font-weight: 600; }
.sr-m { font-family: var(--ff-mono); font-size: var(--fs-3xs); color: var(--ink-faint); margin: 3px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.sr-x { font-size: var(--fs-xs); color: var(--ink-dim); }
.sr-x mark { background: var(--signal-wash); color: var(--signal); padding: 0 2px; border-radius: 2px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin: 14px 0 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint);
}
.field input, .field select {
  background: var(--raised); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--ff-mono); font-size: var(--fs-xs);
  border-radius: var(--r); padding: 7px 9px; min-width: 132px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--signal); }
.big-search { min-width: 260px; flex: 1 1 260px; }
.big-search input { width: 100%; font-size: var(--fs-sm); padding: 9px 11px; }

/* calculators / reference tools */
.tool {
  background: var(--raised); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0;
}
.tool-h {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .11em; color: var(--signal); margin-bottom: 11px;
}
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; }
.tool-out {
  margin-top: 14px; padding: 13px 15px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.tool-out .big {
  font-family: var(--ff-mono); font-size: var(--fs-2xl); font-weight: 700;
  color: var(--signal); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.tool-out .sub { font-family: var(--ff-mono); font-size: var(--fs-2xs); color: var(--ink-mute); margin-top: 4px; }
.tool-note { font-size: var(--fs-xs); color: var(--ink-mute); margin-top: 10px; }

/* footer */
.foot {
  border-top: 1px solid var(--line); background: var(--app);
  padding: 26px 26px 40px; font-size: var(--fs-xs); color: var(--ink-mute);
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; max-width: 1720px; margin: 0 auto; }
.foot-h {
  font-family: var(--ff-mono); font-size: var(--fs-3xs);
  text-transform: uppercase; letter-spacing: .11em; color: var(--ink-faint); margin-bottom: 8px;
}
.foot a { color: var(--ink-dim); display: block; padding: 2px 0; }
.foot a:hover { color: var(--signal); text-decoration: none; }
.foot-legal {
  max-width: 1720px; margin: 22px auto 0; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: var(--fs-2xs); line-height: 1.6;
}

/* drawer scrim (mobile) */
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1379px) {
  :root { --rail-w: 258px; }
}
@media (max-width: 1179px) {
  .app, .app.no-rail { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .rail {
    grid-column: 1 / -1; position: static; height: auto;
    border-top: 1px solid var(--line); padding: 16px 26px 40px;
  }
  .rail-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: start; }
}
@media (max-width: 899px) {
  :root { --sidebar-w: 0px; }
  .app, .app.no-rail, .app.wide { grid-template-columns: minmax(0, 1fr); }
  .drawer-btn { display: inline-flex; }
  .side {
    position: fixed; top: 0; left: 0; z-index: 80;
    width: 282px; height: 100vh; padding-top: 14px;
    transform: translateX(-100%); transition: transform .22s var(--ease);
    box-shadow: var(--shadow-lg); border-right: 1px solid var(--line-2);
  }
  body.drawer-open .side { transform: translateX(0); }
  .main { border-right: 0; }
  .pad, .pad-tight { padding-left: 16px; padding-right: 16px; }
  .day-head { padding-left: 16px; padding-right: 16px; }
  .hl { margin-left: 16px; margin-right: 16px; }
  .msg { padding-left: 16px; padding-right: 16px; }
  .sys { padding-left: 67px; padding-right: 16px; }
  .rail { padding-left: 16px; padding-right: 16px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .top-nav { display: none; }
  .top-search input { width: 108px; }
  h1 { font-size: var(--fs-xl); }
  .page-h1 { font-size: var(--fs-2xl); }
  .day-title { font-size: var(--fs-lg); }
}
@media (max-width: 599px) {
  .msg { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
  .msg-av svg { width: 32px; height: 32px; }
  .sys { padding-left: 57px; }
  .top-search { display: none; }
  .day-nav { width: 100%; margin-left: 0; }
  .foot-grid { gap: 16px; }
  :root { --fs-base: 14.5px; }
}
@media (max-width: 379px) {
  .pad, .pad-tight, .day-head, .msg, .rail, .foot { padding-left: 11px; padding-right: 11px; }
  .hl { margin-left: 11px; margin-right: 11px; }
  .sys { padding-left: 52px; }
}
@media (min-width: 1900px) {
  .app { max-width: 1980px; }
  :root { --sidebar-w: 300px; --rail-w: 330px; }
}

/* ---------------------------------------------------------------- print */
@media print {
  :root {
    --app: #fff; --surface: #fff; --raised: #fff; --raised-2: #fff;
    --line: #d5d8dc; --line-2: #c2c6cc; --line-strong: #a9aeb5;
    --ink: #111; --ink-2: #222; --ink-dim: #444; --ink-mute: #555; --ink-faint: #6B6B6B;
    --signal: #3F6212; --signal-dim: #4D7C0F; --link: #1a4f7a; --link-hover: #075985;
    /* The block used to stop at --link, so every handle, role and semantic tone
       fell through to the dark palette and printed as a pastel on white paper —
       #A3E635 at 1.51:1, the handle ramp at 1.60-2.02:1. Carrying the light
       values through puts the whole set at 4.9:1 or better on paper. */
    --warn: #8F5507; --danger: #B91C1C; --ok: #047857;
    --violet: #6D28D9; --magenta: #BE185D; --cyan: #0E7490;
    --role-founder: #3F6212; --role-mod: #92400E; --role-lab: #0E7490;
    --role-archivist: #5B21B6; --role-bot: #9D174D;
    --signal-wash: transparent; --warn-wash: transparent; --danger-wash: transparent;
    --h0: #A13C3C; --h1: #8A5514; --h2: #6B6410; --h3: #3F6B1E;
    --h4: #106B4C; --h5: #0F6274; --h6: #1A5A94; --h7: #35429E;
    --h8: #6A3AA8; --h9: #96328E; --h10: #A32D5E; --h11: #7A5326;
    --h12: #4E6420; --h13: #21625C;
  }
  body { background: #fff; font-size: 10.5pt; }
  .top, .side, .rail, .spon, .foot-grid, .scrim, .drawer-btn, .jump, .pager, .filters { display: none !important; }
  .app { display: block; max-width: none; }
  .main { border: 0; }
  .day-head { position: static; border-bottom: 1px solid #999; }
  .msg { padding: 2pt 0; break-inside: avoid; }
  .msg:hover { background: none; }
  .code, .tbl-wrap { break-inside: avoid; }
  a { color: #1a4f7a; text-decoration: none; }
  a[href^="/"]::after { content: " (vialroomarchive.com" attr(href) ")"; font-size: 8pt; color: #666; }
  .hl { border: 1px solid #999; }
  .foot-legal { display: block; font-size: 8pt; }
}

/* Second-tier suppliers: named in the channels, never enough on file for a
   source page. No score and no outbound link, which is the point of the table. */
.dtable.t2 td{font-size:13.5px}
/* .muted (0,1,0) loses to .dtable td (0,1,1), so this cell was --ink-2 knocked
   back by alpha rather than the muted token. State the colour outright: the
   cascade is then legible and the multiplier cannot undo the token raise. */
.dtable.t2 td.muted{color:var(--ink-mute)}
.shopcta{margin:12px 0 6px}
.shopcta .shoplink{font-weight:600}
