/*
  The look, in one stylesheet: the second-pass mockup (docs/design/v2/motif.css) unchanged, plus a
  short block at the end for states the real product needs, built from the same pieces.
  To re-skin: the design tokens are the :root block below; fonts live in fonts/, art in art/.
  One ink at three strengths, no accent colour, colour only for state (gain, loss), hairlines
  instead of boxes. Type: a wide display face for the wordmark, a mono face for labels and every
  number, a plain sans for sentences.
*/
@font-face { font-family: "Syncopate"; src: url("fonts/syncopate-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url("fonts/syncopate-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-var-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --page: #0a0f0d;
  --surface: #121815;
  --ink: 239 233 216;
  --art: #0e3a2d;
  --text: rgb(var(--ink));
  --text-2: rgb(var(--ink) / 0.65);
  --text-3: rgb(var(--ink) / 0.45);
  --line: rgb(var(--ink) / 0.1);
  --line-2: rgb(var(--ink) / 0.2);
  --wash: rgb(var(--ink) / 0.06);
  --gain: #9fcfc0;
  --loss: #e3a6ab;
  --display: "Syncopate", "Geist", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Apple's system font on Apple devices; Geist everywhere else. */
  --sans: -apple-system, BlinkMacSystemFont, "Geist", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --col: 720px;
}

* { box-sizing: border-box; }
html { background: var(--page); color-scheme: dark; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.loss { color: var(--loss); }
.gain { color: var(--gain); }
/* The small upper-case label used for column heads and section names. */
.cap, .side-label, table.legs th, .facts dt, .article th, h2.sec, #mode-note, .acct .dim, .docs-nav p, .toc p, .ticket .label, .take-col .meta, .mode {
  font: 500 11px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 500; white-space: nowrap;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease);
}
.btn.solid { background: var(--text); color: var(--page); }
.btn.solid:hover { background: #fff; }
.btn.line { border: 1px solid var(--line-2); }
.btn.line:hover { border-color: var(--text-3); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.text { height: 44px; padding: 0 12px; color: var(--text-2); font-weight: 400; }
.btn.text:hover { color: var(--text); }
/* Bracket buttons, for navigation. */
.brk { display: inline-flex; align-items: center; font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); height: 36px; white-space: nowrap; transition: color 120ms var(--ease); }
.brk::before, .brk::after { display: inline-block; color: var(--text-3); transition: transform 160ms var(--ease), color 120ms var(--ease); }
.brk::before { content: "["; margin-right: 0.7em; }
.brk::after { content: "]"; margin-left: 0.7em; }
.brk:hover, .brk.strong { color: var(--text); }
.brk:hover::before { transform: translateX(-3px); color: var(--text-2); }
.brk:hover::after { transform: translateX(3px); color: var(--text-2); }
.brk.big { font-size: 15px; height: 44px; }

.wordmark { font: 700 12px/20px var(--display); letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- the composer: the one strong shape ---------- */
.composer { width: min(var(--col), 100% - 32px); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; transition: border-color 200ms var(--ease); }
.composer:focus-within { border-color: var(--line-2); }
.composer textarea { display: block; width: 100%; min-height: 48px; resize: none; background: none; border: 0; outline: 0; color: var(--text); font: inherit; padding: 4px 8px; }
.composer textarea::placeholder { color: var(--text-3); }
.composer .row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.mode { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; border-radius: 8px; color: var(--text-2); }
button.mode:hover { background: var(--wash); color: var(--text); }
.mode svg { width: 11px; height: 11px; }
.send { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--text-3); transition: background-color 120ms var(--ease), color 120ms var(--ease); }
.send svg { width: 16px; height: 16px; }
.composer.has-text .send { background: var(--text); color: var(--page); }

/* ---------- the app ---------- */
body.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 14px; min-height: 0; }
.side .wordmark { padding: 0 8px; margin-bottom: 22px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 8px; border-radius: 8px; font-size: 14px; color: var(--text-2); width: 100%; text-align: left; }
.side-row:hover { background: var(--wash); color: var(--text); }
.side-row.on { background: var(--wash); color: var(--text); }
.side-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-row .r { flex: none; font: 400 13px/1 var(--mono); }
.side-label { color: var(--text-3); padding: 0 8px 6px; margin: 22px 0 0; }
.side .grow { flex: 1; }

.scrim { display: none; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; position: relative; }
.top { flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.top .left { display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: var(--wash); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.acct { display: flex; align-items: baseline; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--text); }
.acct span:last-child { font: 500 13px/16px var(--mono); }
.acct:hover span:last-child { border-bottom: 1px solid var(--line-2); }

.empty { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 14vh; }
.empty h1 { margin: 0 0 28px; text-align: center; font: 400 30px/36px var(--sans); letter-spacing: -0.02em; }
.examples { width: min(var(--col), 100% - 32px); margin: 12px auto 0; }
.examples button { display: block; width: 100%; height: 48px; padding: 0 20px; text-align: left; color: var(--text-2); border-top: 1px solid var(--line); transition: color 120ms var(--ease); }
.examples button:first-child { border-top: 0; }
.examples button:hover { color: var(--text); }
.foot-note { flex: none; text-align: center; font-size: 12px; line-height: 16px; color: var(--text-3); padding: 0 16px 14px; margin: 0; }

.thread { flex: 1; overflow-y: auto; min-height: 0; padding: 8px 0 24px; display: none; }
.thread .col { width: min(var(--col), 100% - 32px); margin: 0 auto; }
.dock { flex: none; padding: 8px 0 12px; display: none; }
.dock .composer textarea { min-height: 24px; }
body.has-thread .empty { display: none; }
body.has-thread .thread, body.has-thread .dock { display: block; }

.bubble { margin: 12px 0 24px auto; width: fit-content; max-width: 80%; background: var(--surface); border-radius: 18px; padding: 10px 16px; }
.status { color: var(--text-2); font: 400 13px/20px var(--mono); margin: 0 0 24px; }
.status span { background: linear-gradient(90deg, var(--text-3) 0%, var(--text) 50%, var(--text-3) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- the ticket: a document, not a card ---------- */
.ticket { margin-bottom: 40px; }
.ticket.arrive { animation: arrive 160ms var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
.ticket .read { font-size: 20px; line-height: 28px; margin: 0 0 28px; max-width: 34em; }
.ticket .label { color: var(--text-2); margin: 0; }
.ticket .worst { font: 500 48px/56px var(--mono); letter-spacing: -0.04em; color: var(--loss); margin: 4px 0 8px; }
.ticket .worst-note { font-size: 14px; line-height: 20px; color: var(--text-2); margin: 0 0 24px; max-width: 36em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 40px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { display: flex; align-items: baseline; gap: 10px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; font: 400 14px/20px var(--mono); }

table.legs { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
table.legs th { color: var(--text-3); text-align: right; padding: 10px 0 8px; border-bottom: 1px solid var(--line-2); border-top: 1px solid var(--line); }
table.legs td { text-align: right; padding: 13px 0 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font: 400 13.5px/20px var(--mono); }
table.legs th:first-child, table.legs td:first-child { text-align: left; padding-left: 0; font-family: var(--sans); font-size: 14px; }
table.legs th:first-child { font-family: var(--mono); font-size: 11px; }
table.legs .venue, table.legs .pct { color: var(--text-3); margin-left: 8px; }
table.legs b { font-weight: 500; }

.key-line { font-size: 14px; line-height: 20px; color: var(--text-2); margin: 18px 0 0; max-width: 40em; }
details.disc { border-top: 1px solid var(--line); }
details.disc + .tools { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 0; }
details.disc summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 44px; cursor: pointer; font-size: 14px; color: var(--text-2); transition: color 120ms var(--ease); }
details.disc summary::-webkit-details-marker { display: none; }
details.disc summary:hover { color: var(--text); }
details.disc summary svg { width: 12px; height: 12px; transition: transform 150ms var(--ease); }
details.disc[open] summary svg { transform: rotate(90deg); }
details.disc .body { padding: 0 0 16px 20px; font-size: 14px; line-height: 20px; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 24px; padding: 7px 0; border-top: 1px solid var(--line); }
.rows div:first-child { border-top: 0; }
.rows dt { color: var(--text-2); }
.rows dd { margin: 0; text-align: right; font: 400 13.5px/20px var(--mono); }
.rows .strong dt, .rows .strong dd { color: var(--text); font-weight: 500; }
.disc .note { color: var(--text-3); margin: 10px 0 0; max-width: 40em; }
.fill-leg { margin: 12px 0 4px; }
.fill-leg:first-child { margin-top: 0; }

.actions { display: flex; align-items: center; gap: 8px; margin: 20px 0 24px; flex-wrap: wrap; }
.actions .note { margin-left: auto; font-size: 14px; color: var(--text-2); }
.link-steps { margin: 16px 0 -8px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; counter-reset: s; }
.link-steps li { counter-increment: s; display: flex; gap: 12px; padding: 8px 0; color: var(--text-3); }
.link-steps li::before { content: counter(s); width: 20px; font-family: var(--mono); }
.link-steps li.now { color: var(--text); }
.link-steps li.done { color: var(--text-2); }
.after { margin: 24px 0 28px; font-size: 14px; line-height: 20px; color: var(--text-2); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.after a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.tools { display: flex; gap: 4px; margin-top: 14px; margin-left: -8px; }
.tools button { height: 32px; padding: 0 8px; border-radius: 8px; font-size: 12px; color: var(--text-3); }
.tools button:hover { background: var(--wash); color: var(--text); }
.sample-line { font-size: 12px; line-height: 16px; color: var(--text-3); margin: 14px 0 0; }

/* ---------- portfolio, limits, activity ---------- */
.page { flex: 1; overflow-y: auto; min-height: 0; }
.page-col { width: min(880px, 100% - 32px); margin: 0 auto; padding: 28px 0 96px; }
.page-title { font: 500 24px/32px var(--sans); letter-spacing: -0.01em; margin: 0 0 6px; }
.page-note { font-size: 14px; line-height: 20px; color: var(--text-2); margin: 0 0 28px; max-width: 44em; }
.page-note.after-table { margin-top: 14px; }
.big { font: 500 44px/52px var(--mono); letter-spacing: -0.04em; margin: 0 0 8px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 0; }
h2.sec { color: var(--text-2); margin: 0 0 4px; }
.sec-row .btn.text.small { height: 28px; margin-right: -12px; }
.table-wrap { overflow-x: auto; }
.table-wrap table.legs th { border-top: 0; }
.take-link:hover b { border-bottom: 1px solid var(--line-2); }
table.legs td .btn.text.small { height: 28px; margin: -4px -12px -4px 0; font-family: var(--sans); }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; gap: 16px; align-items: center; min-height: 52px; border-top: 1px solid var(--line); }
.set-row:first-child, .key-row:first-child { border-top: 0; }
.set-row .num { font-size: 14px; }
.set-acts { display: flex; justify-content: flex-end; margin-right: -14px; }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.key-name { margin: 0 0 2px; font-weight: 500; }
.key-what { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-2); max-width: 40em; }
.log { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.log li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log .num { font-size: 13px; }

/* ---------- landing ---------- */
/* The backdrop: our own contour drawing in two colours, like a printed map
   (tools/make-contours.mjs). The lines thin out behind the wordmark so it stays easy to read. */
body.landing { position: relative; }
.hero-art { position: absolute; inset: 0 0 auto 0; height: min(780px, 88vh); z-index: 0; overflow: hidden; background: var(--art); }
.hero-art::before {
  content: ""; position: absolute; inset: 0; background: url("art/contours.svg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 54% 40% at 50% 31%, rgba(0, 0, 0, 0.08) 35%, #000 100%);
  mask-image: radial-gradient(ellipse 54% 40% at 50% 31%, rgba(0, 0, 0, 0.08) 35%, #000 100%);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 15, 13, 0) 40%, var(--page) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.32) 100%),
    radial-gradient(rgb(var(--ink) / 0.075) 1px, transparent 1.3px) 0 0 / 5px 5px;
}
body.landing > header, body.landing > main, body.landing > footer { position: relative; z-index: 1; }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; }
.nav .links { display: flex; align-items: center; gap: 32px; }
.nav .links a.navlink { font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); transition: color 120ms var(--ease); }
.nav .links a.navlink:hover { color: var(--text); }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; animation: land 300ms var(--ease) both; }
@keyframes land { from { opacity: 0; transform: translateY(8px); } }
.hero .mark { font: 400 clamp(44px, 7vw, 88px)/1 var(--display); letter-spacing: 0.16em; margin: clamp(56px, 10vh, 104px) 0 0; padding-left: 0.16em; }
.hero .tag { font: 500 13px/20px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgb(var(--ink) / 0.8); margin: 26px 0 0; }
.hero .tag i { font-style: normal; color: var(--text-3); margin: 0 0.8em; }
.hero .buttons { display: flex; gap: 40px; margin: 28px 0 0; }
.claims { list-style: none; display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; margin: 30px 0 0; padding: 0; font: 500 11px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.claims b { color: var(--text); font-weight: 500; margin-right: 0.6em; }
/* The product itself is the picture: one frame holding the live box and what comes back. */
.frame { width: min(816px, 100%); margin: 44px auto 0; padding: 24px 48px 40px; text-align: left; border: 1px solid var(--line-2); border-radius: 28px; background: var(--page); }
.frame .composer { width: 100%; }
.frame .cap { color: var(--text-3); margin: 36px 0 16px; }
.frame .ticket { margin-bottom: 0; }
.section { width: min(var(--col), 100% - 32px); margin: 0 auto; padding: 96px 0 0; }
.section h2 { font: 500 11px/16px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin: 0 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 48px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(st); font: 400 13px/28px var(--mono); color: var(--text-3); }
.steps h3 { margin: 0 0 4px; font-size: 18px; line-height: 28px; font-weight: 500; }
.steps p { margin: 0; color: var(--text-2); max-width: 36em; }
.plain { border-top: 1px solid var(--line); padding-top: 20px; }
.plain p { margin: 0 0 16px; color: var(--text-2); max-width: 38em; }
.plain p b { color: var(--text); font-weight: 500; }
.footer { width: min(var(--col), 100% - 32px); margin: 120px auto 0; padding: 28px 0 56px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--text-2); }
.footer p { margin: 0 0 8px; max-width: 46em; }
.footer .links { display: flex; gap: 28px; margin: 20px 0 0; }

/* ---------- docs ---------- */
body.docs .nav { height: 56px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.docs-grid { display: grid; grid-template-columns: 248px minmax(0, 680px) 208px; gap: 40px; justify-content: center; padding: 40px 24px 96px; }
.docs-nav { font-size: 14px; line-height: 20px; position: sticky; top: 24px; align-self: start; }
.docs-nav p { margin: 22px 0 6px; color: var(--text-3); }
.docs-nav p:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; color: var(--text-2); }
.docs-nav a:hover, .docs-nav a.on { color: var(--text); background: var(--wash); }
.article { font-size: 16px; line-height: 26px; }
.article h1 { font: 500 32px/38px var(--sans); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.article .updated { font: 400 12px/16px var(--mono); color: var(--text-3); margin: 0 0 32px; }
.article h2 { font-size: 20px; line-height: 28px; font-weight: 500; margin: 48px 0 12px; }
.article p { margin: 0 0 16px; color: var(--text-2); }
.article p b, .article li b { color: var(--text); font-weight: 500; }
.article ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); }
.article li { margin: 6px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; margin: 8px 0 24px; }
.article th { text-align: left; color: var(--text-3); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line-2); }
.article td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.article td:first-child { color: var(--text); }
.article .pager { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.article .pager a:hover { color: var(--text); }
.toc { font-size: 14px; line-height: 20px; position: sticky; top: 24px; align-self: start; }
.toc p { margin: 0 0 8px; color: var(--text-3); }
.toc a { display: block; padding: 4px 0; color: var(--text-2); }
.toc a:hover { color: var(--text); }

/* ---------- a take's own page ---------- */
body.take .nav { height: 56px; padding: 0 24px; }
.take-col { width: min(var(--col), 100% - 32px); margin: 0 auto; padding: 48px 0 96px; }
.take-col .meta { color: var(--text-2); margin: 0 0 12px; }
.take-col h1 { font: 500 32px/38px var(--sans); letter-spacing: -0.02em; margin: 0 0 12px; }
.take-col .view { font-size: 20px; line-height: 28px; margin: 0 0 40px; color: var(--text-2); }
.take-col .result { font: 500 64px/68px var(--mono); letter-spacing: -0.05em; margin: 6px 0 10px; }
.take-col .result-note { font-size: 14px; line-height: 20px; color: var(--text-2); margin: 0 0 32px; max-width: 38em; }
.take-col .actions .note { margin-left: 0; }

/* ---------- states the real product needs, from the pieces above ---------- */
[hidden] { display: none !important; }
.btn:disabled, .send:disabled { cursor: progress; opacity: 0.6; }
.notice { flex: none; width: min(var(--col), 100% - 32px); margin: 0 auto 8px; font-size: 14px; line-height: 20px; color: var(--text-2); }
body.app:not([data-view="home"]) .notice { width: min(880px, 100% - 32px); }
.ticket .cap { color: var(--text-3); margin: 0 0 12px; }
.ticket .read + .worst-note { margin-top: -16px; }
.ticket .worst-note.expired { margin: 16px 0 0; }
.reason-list { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 20px; color: var(--text-2); max-width: 40em; }
.reason-list li { margin: 4px 0; }
.partial { margin: 0 0 8px; }
.partial .table-wrap { margin-bottom: 4px; }
.log.events li { grid-template-columns: 176px minmax(0, 1fr); }
.take-col .sec-row { margin-top: 40px; }
.take-col .result-note:empty { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .docs-grid { grid-template-columns: 220px minmax(0, 680px); }
  .toc { display: none; }
}
@media (max-width: 760px) {
  body.app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 20; transform: translateX(-100%); transition: transform 240ms var(--ease); }
  body.side-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 0.5); z-index: 10; }
  body.side-open .scrim { display: block; }
  .menu-btn { display: grid; }
  .acct { display: none; }
  .top { padding: 0 12px; }
  .icon-btn, .send, .mode { min-width: 44px; height: 44px; }
  .send { width: 44px; }
  .empty { justify-content: flex-end; padding-bottom: 8px; }
  .empty h1 { margin-bottom: auto; margin-top: 26vh; font-size: 26px; line-height: 32px; }
  .examples { margin: 0 auto 12px; order: 1; }
  .empty .composer { order: 2; }
  .ticket .worst { font-size: 38px; line-height: 46px; }
  table.legs .venue, table.legs .pct { display: block; margin-left: 0; }
  table.legs td { padding-left: 10px; font-size: 12.5px; }
  .actions .note { margin-left: 0; width: 100%; order: 3; }
  .set-row { grid-template-columns: minmax(0, 1fr) auto; }
  .set-acts { grid-column: 1 / -1; justify-content: flex-start; margin: -8px 0 8px -14px; }
  .key-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .key-row .btn { justify-self: start; }
  .big { font-size: 34px; line-height: 42px; }
  .nav { padding: 0 16px; height: 56px; }
  .nav .links { gap: 18px; }
  .nav .links .hide-s { display: none; }
  .hero .tag { font-size: 11px; letter-spacing: 0.14em; }
  .hero .tag i { margin: 0 0.4em; }
  .hero .buttons { gap: 24px; }
  .claims { gap: 6px 20px; margin-top: 24px; }
  .frame { padding: 12px 12px 28px; border-radius: 24px; margin-top: 28px; }
  .section { padding-top: 72px; }
  .article h1, .take-col h1 { font-size: 26px; line-height: 32px; }
  .footer { margin-top: 72px; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 64px; }
  .docs-nav { display: none; }
  .take-col .result { font-size: 48px; line-height: 54px; }
  .log.events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .status span { color: var(--text-2); background: none; }
}
