@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/next.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/mono.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

/* Circulation Desk ramp (DESIGN.md). Dark is the default. */
:root {
  color-scheme: dark;
  --canvas: oklch(0.170 0.005 85);
  --shell: oklch(0.195 0.005 85);
  --surface: oklch(0.205 0.005 85);
  --raised: oklch(0.235 0.005 85);
  --overlay: oklch(0.265 0.005 85);
  --rule: oklch(0.300 0.005 85);
  --rule-strong: oklch(0.380 0.005 85);
  --control: oklch(0.520 0.006 85);
  --dim: oklch(0.690 0.005 85);
  --muted: oklch(0.790 0.005 85);
  --text: oklch(0.955 0.006 85);
  --warning: oklch(0.810 0.135 78);
  --danger: oklch(0.700 0.165 25);
  --data: var(--muted);

  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: 32px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: oklch(0.972 0.004 85);
    --shell: oklch(0.952 0.005 85);
    --surface: oklch(1 0 0);
    --raised: oklch(0.962 0.004 85);
    --overlay: oklch(0.935 0.005 85);
    --rule: oklch(0.885 0.005 85);
    --rule-strong: oklch(0.790 0.006 85);
    --control: oklch(0.620 0.006 85);
    --dim: oklch(0.520 0.008 85);
    --muted: oklch(0.420 0.008 85);
    --text: oklch(0.190 0.008 85);
    --warning: oklch(0.510 0.115 65);
    --danger: oklch(0.520 0.190 27);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mono { font-family: var(--mono); font-weight: 600; }
.dim { color: var(--dim); }
.warn { color: var(--warning); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--canvas); padding: 8px 12px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }

.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.smallcaps { font-size: 15px; font-weight: 700; letter-spacing: 0.05em; font-variant-caps: all-small-caps; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 120ms, border-color 120ms;
}
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-primary { background: var(--text); color: var(--canvas); }
.btn-primary:hover { background: color-mix(in oklch, var(--text) 86%, var(--canvas)); }
.btn-primary:active { background: color-mix(in oklch, var(--text) 76%, var(--canvas)); }
.link { font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }

.cmd {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px;
  background: var(--surface); border: 1px solid var(--control); border-radius: 4px; cursor: pointer;
  font-size: 14px; white-space: nowrap; transition: background-color 120ms;
}
.cmd:hover { background: var(--overlay); }
.cmd-prompt { color: var(--dim); font-family: var(--mono); }
.cmd-state {
  font-size: 12px; font-weight: 600; color: var(--muted);
  border-left: 1px solid var(--rule); padding: 0 8px 0 10px; min-width: 58px; text-align: center;
}
.cmd[data-state="done"] .cmd-state { color: var(--text); }
.cmd[data-state="failed"] .cmd-state { color: var(--warning); }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in oklch, var(--shell) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; }
.brand-sm svg { width: 18px; height: 18px; }
.top-nav { display: flex; gap: 22px; margin-right: auto; }
.top-nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.kicker { display: flex; gap: 14px; align-items: baseline; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.kicker .mono { font-size: 12px; color: var(--dim); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 1px 6px; }
h1 {
  font-size: clamp(42px, 5.6vw, 78px); line-height: 0.98; font-weight: 750; letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 58ch; font-size: 18px; line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* Signature: the date-due slip */
.slip {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
}
.slip-head {
  display: flex; justify-content: space-between; align-items: center;
  height: 44px; padding: 0 16px; border-bottom: 1px solid var(--rule);
}
.slip-head .mono { font-size: 12px; }
.slip-rows .row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 52px minmax(48px, 1fr) 38px max-content;
  align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule);
}
.mark {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px;
  background: var(--raised); color: var(--muted); border-radius: 4px;
  font: 600 11px/1 var(--mono);
}
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who i { font-style: normal; font-size: 12px; color: var(--dim); }
.win { font-size: 12px; color: var(--dim); }
.track { position: relative; height: 6px; background: var(--overlay); border-radius: 1px; }
.used { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--data); border-radius: 1px; transition: width 700ms cubic-bezier(0.23, 1, 0.32, 1); }
.tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); left: 0; }
.pct { font-size: 12px; text-align: right; }
.stamp {
  font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: 1px 6px; text-align: center; white-space: nowrap;
}
.row.ahead .used { background: var(--warning); }
.row.ahead .pct { color: var(--warning); }
.row.exhausted .used {
  background: repeating-linear-gradient(135deg, var(--danger) 0 3px, transparent 3px 6px);
}
.row.exhausted .pct { color: var(--danger); }
.slip-log { padding: 12px 16px; font-size: 12px; line-height: 1.8; color: var(--muted); border-bottom: 1px solid var(--rule); background: var(--raised); }
.slip-log .dim { display: inline-block; width: 34px; }
.slip figcaption { padding: 10px 16px; font-size: 12px; font-weight: 500; }

/* Provider strip */
.strip { border-bottom: 1px solid var(--rule); background: var(--shell); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.strip li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.strip .mark { min-width: 28px; height: 24px; font-size: 11px; }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.section-alt { background: var(--shell); }
.section-head { max-width: 760px; margin-bottom: 48px; }
h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.body { margin-top: 18px; max-width: 68ch; color: var(--muted); font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.steps li { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps .num { font-size: 13px; color: var(--dim); }
.steps p { color: var(--muted); font-size: 15px; flex: 1; }
.steps p .mono { font-size: 14px; color: var(--text); }

.code {
  margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  font: 600 13px/1.7 var(--mono); overflow-x: auto; color: var(--text);
}
.code-lg { padding: 20px 22px; font-size: 14px; min-height: 172px; border-top-left-radius: 0; border-top-right-radius: 0; }

.connect { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.urls { margin-top: 32px; border-top: 1px solid var(--rule-strong); }
.urls div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.urls dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.urls dd { font-size: 13px; overflow-wrap: anywhere; }
.tabs { margin-top: 8px; }
.tab-list { display: flex; border: 1px solid var(--rule); border-bottom: 0; border-radius: 4px 4px 0 0; background: var(--raised); }
.tab-list button {
  height: 42px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--dim); border-bottom: 2px solid transparent;
}
.tab-list button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tab-list button:hover { color: var(--text); }

.ledger { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.ledger-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row > span { padding: 18px 20px; font-size: 15px; color: var(--muted); }
.ledger-row > span:first-child { font-weight: 700; color: var(--text); border-right: 1px solid color-mix(in oklch, var(--rule) 55%, transparent); }
.ledger-head { background: var(--raised); border-bottom-color: var(--rule-strong); }
.ledger-head > span { padding-top: 11px; padding-bottom: 11px; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim) !important; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.cols article { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--rule); }
.cols article:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--rule); }
.cols p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 52ch; }

.index { border-top: 1px solid var(--rule-strong); }
.index li { display: grid; grid-template-columns: 40px 280px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.index b { font-size: 17px; }
.index span:last-child { color: var(--muted); font-size: 15px; }
.index .mono { font-size: 13px; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-size: 17px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 600 18px/1 var(--mono); color: var(--dim);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; font-size: 15px; }

.cta { padding: 104px 0; border-bottom: 1px solid var(--rule); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta h2 { margin: 0; max-width: 18ch; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }

.foot { padding: 28px 0 40px; }
.foot-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; margin-right: auto; flex-wrap: wrap; }
.foot nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.foot .mono { font-size: 12px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .connect, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero { padding-top: 64px; }
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols article, .cols article:nth-child(even) { padding: 24px 0; border-left: 0; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); }
  .ledger-row > span:first-child { border-right: 0; padding-bottom: 2px; }
  .ledger-row > span:last-child { padding-top: 4px; }
  .ledger-head { display: none; }
  .index li { grid-template-columns: 28px minmax(0, 1fr); }
  .index li span:last-child { grid-column: 2; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .top-actions .link { display: none; }
  .slip-rows .row { grid-template-columns: 30px minmax(0, 1fr) 40px; row-gap: 8px; }
  .slip-rows .win { grid-column: 2; grid-row: 2; }
  .slip-rows .track { grid-column: 1 / -1; grid-row: 3; }
  .slip-rows .pct { grid-column: 3; grid-row: 1; }
  .slip-rows .stamp { grid-column: 3 / -1; grid-row: 2; justify-self: end; }
  .slip-rows .row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cmd { justify-content: space-between; }
  .urls div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tab-list { overflow-x: auto; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Shared navigation ---------- */
.top-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 21px; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border: 1px solid var(--control); border-radius: 4px; font-size: 13px; font-weight: 600;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-bars { width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.menu[open] summary { background: var(--overlay); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  display: flex; flex-direction: column; padding: 8px; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 6px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 40%), 0 2px 6px rgb(0 0 0 / 30%);
}
.menu-panel a { padding: 12px 12px; border-radius: 4px; font-size: 15px; text-decoration: none; }
.menu-panel a:hover { background: var(--overlay); }
.menu-panel a[aria-current="page"] { font-weight: 700; background: var(--raised); }
.menu-panel a:last-child { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 14px; border-radius: 0 0 4px 4px; }
@media (max-width: 1100px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 600px) {
  .menu-text { display: none; }
  .menu summary { padding: 0 10px; }
}
@media (max-width: 360px) {
  .top-actions .btn { display: none; }
  .menu-text { display: inline; }
}

/* ---------- Feature page hero ---------- */
.hero-sub h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-sub .kicker .mono { font-size: 12px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.panel-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 8px; border-top: 1px solid var(--rule); background: var(--raised); }
.panel-sub .mono { font-size: 12px; }
.panel-foot { padding: 10px 16px; font-size: 12px; border-top: 1px solid var(--rule); }
.more { margin-top: 28px; }
p.more.dim { max-width: 72ch; font-size: 15px; }

/* Teams: organization */
.org li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.org li:last-child { border-bottom: 0; }
.org-name { font-weight: 700; font-size: 14px; }
.org .mono { font-size: 12px; }
.caps { background: var(--raised); }
.caps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.2fr) 44px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.caps .used { width: auto; transition: none; }
.caps .pct { font-size: 12px; text-align: right; }
.caps li.ahead .used { background: var(--warning); }
.caps li.ahead .pct { color: var(--warning); }
.caps li.off .who b { text-decoration: line-through; color: var(--dim); }

/* Accounts */
.group { padding: 12px 16px 6px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); background: var(--raised); }
.slip-head + .group { border-top: 0; }
.acct li { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(120px, 0.9fr); gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.meter { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.meter .mono { font-size: 12px; font-weight: 500; }
.acct .used { transition: none; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--warning); }
.sq { width: 8px; height: 8px; background: var(--warning); }
.code-cli { font-size: 14px; padding: 20px 22px; line-height: 1.9; }

/* Computers */
.viewer { margin: 16px; border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; font-size: 13px; background: var(--raised); border-bottom: 1px solid var(--rule); }
.viewer-mode { font-size: 12px; color: var(--dim); }
.viewer-mode::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border: 1px solid var(--dim); border-radius: 99px; vertical-align: 1px; }
.screen { position: relative; aspect-ratio: 16 / 9; background: repeating-linear-gradient(0deg, var(--canvas) 0 23px, color-mix(in oklch, var(--rule) 40%, var(--canvas)) 23px 24px); }
.scr-win { position: absolute; background: var(--raised); border: 1px solid var(--rule-strong); border-radius: 4px; }
.scr-win::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; border-bottom: 1px solid var(--rule); background: var(--overlay); border-radius: 4px 4px 0 0; }
.w1 { left: 7%; top: 10%; width: 46%; height: 58%; }
.w2 { left: 44%; top: 26%; width: 46%; height: 52%; }
.w3 { left: 12%; top: 62%; width: 22%; height: 22%; }
.dock { position: absolute; left: 30%; right: 30%; bottom: 5%; height: 7%; border-radius: 4px; background: var(--overlay); border: 1px solid var(--rule-strong); }
.machines li { display: grid; grid-template-columns: 10px minmax(0, auto) minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--rule); font-size: 14px; }
.machines .dim { font-size: 13px; text-align: right; }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 1px solid var(--dim); align-self: center; }
.dot.on { background: var(--text); border-color: var(--text); }

/* VMs */
.term { margin: 0; padding: 16px; font: 600 12.5px/1.75 var(--mono); background: var(--canvas); border-bottom: 1px solid var(--rule); overflow-x: auto; white-space: pre; }

/* Board */
.thread-state { padding: 14px 16px; display: grid; gap: 10px; background: var(--raised); border-bottom: 1px solid var(--rule); }
.thread-state p { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.thread-state .mono { font-size: 12px; color: var(--text); }
.msgs li { display: grid; grid-template-columns: 34px 70px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.msgs li:last-child { border-bottom: 0; }
.msgs .mono { font-size: 12px; }
.kind { font: 600 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0 6px; justify-self: start; }

/* Cards */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 52px; background: var(--surface); text-decoration: none; transition: background-color 120ms; }
.card:hover { background: var(--raised); }
.card b { font-size: 18px; letter-spacing: -0.01em; }
.card > span:not(.mono) { color: var(--muted); font-size: 15px; }
.card .mono.dim { font-size: 13px; }
.card-go { position: absolute; left: 22px; bottom: 20px; font-size: 16px; color: var(--dim); }
.card:hover .card-go { color: var(--text); }
.related .label { margin-bottom: 18px; }
.related { padding: 72px 0; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 48px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-brand p { margin-top: 12px; font-size: 14px; max-width: 36ch; }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; }
.foot-grid nav .label { margin-bottom: 4px; }
.foot-grid nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-grid nav a:hover { color: var(--text); text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.foot-base .mono { font-size: 12px; }

@media (max-width: 1020px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .acct li { grid-template-columns: 30px minmax(0, 1fr); }
  .acct .meter { grid-column: 2; }
  .machines li { grid-template-columns: 10px minmax(0, 1fr); }
  .machines .dim { grid-column: 2; text-align: left; }
  .msgs li { grid-template-columns: 34px minmax(0, 1fr); }
  .msgs li > span:last-child { grid-column: 2; }
  .thread-state p { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .caps li { grid-template-columns: minmax(0, 1fr) 44px; }
  .caps .track { grid-column: 1 / -1; grid-row: 2; }
  .term { font-size: 11.5px; }
}
.cmd { max-width: 100%; min-width: 0; }
.cmd .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-actions > * { min-width: 0; }
.cta-inner > * { max-width: 100%; }
@media (max-width: 600px) { .cta .hero-actions { align-self: stretch; } }
