@font-face { font-family: Inter; src: url(/assets/Inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Doto; src: url(/assets/Doto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/IBMPlexMono-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* Dither Works, inverted onto warm press-black. Orange appears at most three times per page. */
:root {
  --bg: #12110F; --surface: #191815; --raised: #201F1B; --well: #0C0B0A;
  --ink: #ECEBE6; --muted: #9C9A8F; --faint: #74726A;
  --border: #2A2925; --border-hard: #45433D;
  --accent: #E0552F; --accent-ink: #12110F; --ok: #7DBA8A;
  --dot: rgba(236, 235, 230, .085); --dot-strong: rgba(236, 235, 230, .5);
  --display: Doto, "IBM Plex Mono", monospace; --body: Inter, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --bad: #E58378;
  --r: 10px; --r-sm: 7px;
  /* Dither Works scale; 15px body is one deliberate extra step for reading on dark. */
  --text-xs: 10.5px; --text-sm: 12.5px; --text-md: 14px; --text-body: 15px; --text-lg: 18px; --text-xl: 24px; --text-display: 40px;
  --track-label: .07em; --display-track: .01em;
  --wrap: 1120px; --gutter: 24px;
  color-scheme: dark;
}
/* Light keeps the original Dither Works paper, darkened where AA needs it. faint is for large or decorative marks only. */
:root[data-theme="light"] {
  --bg: #ECEBE6; --surface: #F4F3EF; --raised: #FFFFFF; --well: #E8E7E1;
  --ink: #171715; --muted: #615F58; --faint: #7C7A71;
  --border: #D9D7CF; --border-hard: #B9B7AD;
  --accent: #B23A1C; --accent-ink: #FFF6F1; --ok: #326A3B; --bad: #A4282B;
  --dot: rgba(23, 23, 21, .1); --dot-strong: rgba(23, 23, 21, .5);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font: 400 var(--text-body)/1.65 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px dotted var(--ink); outline-offset: 3px; }
a { color: inherit; text-decoration-color: var(--border-hard); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 14px; text-wrap: pretty; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .92em; background: var(--raised); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1360px) { :root { --wrap: 1280px; --gutter: 32px; } }
@media (min-width: 1760px) { :root { --wrap: 1440px; --gutter: 40px; } }
.label { font: 400 var(--text-xs)/1.5 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); }
.label .as-typed { text-transform: none; letter-spacing: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.dotfield { background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px); background-size: 14px 14px; }

/* header */
.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { font: 900 var(--text-xl)/1 var(--display); letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 9px; min-height: 44px; }
.logo i { width: 9px; height: 9px; background: var(--ink); display: inline-block; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); text-decoration: none; padding: 16px 2px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* buttons */
.btn { letter-spacing: .01em; font: 600 var(--text-sm)/1 var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; min-height: 44px; transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::before { content: "⠿"; font-size: var(--text-body); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-hard); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0 13px; min-height: 32px; font-size: var(--text-sm); }
.btn:disabled { background: var(--raised); color: var(--faint); border-color: var(--border); cursor: not-allowed; transform: none; }

/* hero */
.hero { position: relative; padding: 76px 0 64px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0 0 0 45%; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(100deg, transparent, #000 55%); mask-image: linear-gradient(100deg, transparent, #000 55%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero h1 { font: 900 clamp(31px, 4.4vw, 54px)/1.05 var(--display); letter-spacing: var(--display-track); margin: 14px 0 22px; text-wrap: balance; }
.hero .lead { font-size: var(--text-lg); text-wrap: pretty; color: var(--muted); max-width: 34em; }
.hero .lead b { color: var(--ink); font-weight: 500; }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.materialise { -webkit-mask-image: radial-gradient(#000 1.3px, transparent 1.4px); mask-image: radial-gradient(#000 1.3px, transparent 1.4px);
  -webkit-mask-size: 12px 12px; mask-size: 12px 12px; animation: materialise .5s steps(5) forwards; }
@keyframes materialise {
  0% { -webkit-mask-size: 3px 3px; mask-size: 3px 3px; opacity: .6; }
  99% { -webkit-mask-size: 3px 3px; mask-size: 3px 3px; opacity: 1; }
  100% { -webkit-mask-image: none; mask-image: none; opacity: 1; } }

/* panels with registration marks */
.panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.reg::before, .reg::after { content: "✛"; position: absolute; font: 400 12px/1 var(--mono); color: var(--faint); }
.reg::before { left: -6px; top: -7px; } .reg::after { right: -6px; bottom: -7px; }
.term pre { border-radius: 0 0 calc(var(--r) - 1px) calc(var(--r) - 1px); }
.term-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.term-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-hard); }
.term-h span { margin-left: auto; }
pre { margin: 0; padding: 16px 18px; background: var(--well); color: var(--ink); font-size: var(--text-sm); line-height: 1.7; overflow-x: auto; white-space: pre; }
pre, .scroll-x, textarea { scrollbar-width: thin; scrollbar-color: var(--border-hard) transparent; }
pre .c { color: var(--muted); } pre .k { color: var(--muted); } pre .s { color: var(--ink); } pre .h { color: var(--ok); }

.specimen { margin: 16px 0 0; }
.specimen img { border-radius: var(--r-sm); border: 1px solid var(--border); aspect-ratio: 1200 / 630; width: 100%; height: auto; background: var(--raised); }
.specimen figcaption { display: flex; justify-content: space-between; margin-top: 8px; }

/* sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-h h2 { font: 900 clamp(28px, 3.6vw, 38px)/1.05 var(--display); letter-spacing: var(--display-track); }
.sec-h p { margin: 0; max-width: 36em; text-wrap: pretty; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; min-height: 216px; }
.card:hover { border-color: var(--border-hard); background: var(--raised); }
.card .chip { background: transparent; }
.card h3 { font-size: var(--text-lg); letter-spacing: -.005em; }
.card p { color: var(--muted); font-size: var(--text-md); margin: 0; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-top: 1px dashed var(--border-hard); padding-top: 12px; }
.price { font: 600 var(--text-md)/1.35 var(--mono); display: flex; flex-direction: column; }
.price > span, .price small { white-space: nowrap; }
.price small { font-weight: 400; color: var(--muted); font-size: var(--text-xs); letter-spacing: var(--track-label); text-transform: uppercase; }
.chip { background: var(--surface); font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); border: 1px solid var(--border-hard);
  border-radius: 999px; padding: 5px 9px; color: var(--muted); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 24px; }
.step .n { letter-spacing: var(--display-track); font: 900 var(--text-display)/1 var(--display); color: var(--faint); margin-bottom: 18px; }
.step h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--text-md); margin: 0; }

.stamp { display: inline-block; border: 2px solid var(--accent); color: var(--accent); padding: 9px 14px; position: relative;
  font: 600 var(--text-sm)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); }
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--accent); opacity: .6; }

.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.channel { padding: 24px; }
.channel h3 { font: 600 var(--text-md)/1.3 var(--mono); margin-bottom: 8px; }
.channel p { color: var(--muted); font-size: var(--text-md); margin: 0; }

/* api page */
.crumbs { padding: 26px 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); display: inline-block; padding: 12px 0; margin: -12px 0; }
.page-h { padding: 18px 0 40px; border-bottom: 1px solid var(--border); }
.wrap > .page-h:first-child, .wrap > .vh:first-child + .page-h { padding-top: 48px; }
.page-h h1 { font: 900 clamp(34px, 5vw, 54px)/1.02 var(--display); letter-spacing: var(--display-track); margin: 10px 0 14px; text-wrap: balance; }
.page-h .lead { color: var(--muted); font-size: var(--text-lg); max-width: 46em; text-wrap: pretty; }
.op { padding: 44px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (min-width: 901px) { .op > div:last-child { position: sticky; top: 24px; align-self: start; } }
@media (min-width: 1360px) { .op { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.op h2 { text-wrap: pretty; font: 600 var(--text-lg)/1.3 var(--body); margin-bottom: 6px; }
.endpoint { font: 400 var(--text-sm)/1 var(--mono); display: inline-flex; gap: 10px; align-items: center; margin: 10px 0 18px;
  border: 1px solid var(--border-hard); border-radius: 999px; padding: 8px 14px; }
.endpoint b { color: var(--muted); font-weight: 400; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; }
dl.facts dt { font: 400 var(--text-xs)/2 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); }
dl.facts dd { margin: 0; font-family: var(--mono); font-size: var(--text-sm); line-height: 1.7; }
table.fields { width: 100%; border-collapse: collapse; font-size: var(--text-md); margin-top: 10px; table-layout: fixed; }
table.fields th:nth-child(1) { width: 24%; } table.fields th:nth-child(2) { width: 20%; }
.fields-h { margin: 28px 0 0; color: var(--ink); }
td.types.long .tok { display: block; }
dl.facts dd > .muted { display: inline-block; }
.nowrap { white-space: nowrap; }
.try .out .file-h { margin: 12px 0 6px; }
table.fields td:first-child { overflow-wrap: anywhere; font-family: var(--mono); }
table.fields th { text-align: left; font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted);
  padding: 0 10px 10px 0; border-bottom: 1px solid var(--border-hard); }
table.fields td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.types .tok { white-space: nowrap; }
.try-hint { margin: 10px 0 0; font-size: var(--text-md); }
section.block:last-child, .op:last-child { border-bottom: 0; }
.op:last-of-type { padding-bottom: 72px; }
.req { color: var(--muted); font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); border: 1px solid var(--border-hard); border-radius: 999px; padding: 2px 6px; display: block; width: max-content; margin: 5px 0 0; }

/* try it */
.try { margin-top: 18px; padding: 18px; }
.try textarea, .input { width: 100%; min-height: 44px; font: 400 var(--text-sm)/1.55 var(--mono); color: var(--ink); background: var(--well);
  border: 1px solid var(--border-hard); border-radius: var(--r-sm); padding: 12px; }
.try textarea { min-height: 170px; max-height: 480px; field-sizing: content; resize: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.input::placeholder, .try textarea::placeholder { color: var(--muted); opacity: 1; }
.try .row .btn { min-width: 104px; }
.try textarea[aria-invalid="true"] { border-color: var(--bad); }
.try textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.try .row { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.try .row .input { flex: 1; min-width: 200px; }
.try .out { margin-top: 12px; display: none; }
.try .out.on { display: block; }
.try .meta { display: flex; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.try .out pre { max-height: 360px; border-radius: var(--r-sm); border: 1px solid var(--border); }
.try .out img { border-radius: var(--r-sm); border: 1px solid var(--border); }

/* docs, forms, tables */
.prose { max-width: 760px; padding: 40px 0 72px; }
.prose > h2:first-child, .prose > ol.steps-list:first-child { margin-top: 0; }
.prose h2 { text-wrap: balance; letter-spacing: var(--display-track); font: 900 var(--text-xl)/1.15 var(--display); margin: 48px 0 14px; }
.prose h3 { font-size: var(--text-lg); margin: 26px 0 8px; }
.prose pre { border: 1px solid var(--border); border-radius: var(--r-sm); margin: 0 0 18px; }
.prose ul { padding-left: 20px; } .prose li { margin: 4px 0; } .prose li::marker { content: "✛  "; color: var(--faint); font-size: 11px; }
table.list { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
table.list th { text-align: left; font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--border-hard); }
table.list td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: middle; height: 57px; }
table.prices td { height: 48px; padding-block: 9px; }
table.prices tr:has(+ tr.cont) td { border-bottom-color: transparent; }
table.list th:last-child, table.list td:last-child, table.fields th:last-child, table.fields td:last-child { padding-right: 0; }
table.list td.num { font-family: var(--mono); white-space: nowrap; }
.narrow { max-width: 460px; margin: 0 auto; padding-block: 72px; }
main:has(> .wrap > .narrow) { display: grid; align-items: center; }
.narrow h1 { text-wrap: balance; letter-spacing: var(--display-track); font: 900 var(--text-display)/1.05 var(--display); margin: 10px 0 16px; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.form .input { font-family: var(--body); font-size: var(--text-body); padding: 0 14px; height: 44px; }
.form .input[aria-invalid="true"] { border-color: var(--bad); }
.form-row { flex-direction: row; flex-wrap: wrap; max-width: 760px; }
.form-row .input.budget { flex: 0 1 220px; min-width: 180px; }
.form-row .input { flex: 1; min-width: 200px; }
.form > .btn { justify-content: center; }
.pad { padding: 36px 0 72px; }
.pad-top { padding-top: 32px; }
.spacer { height: 64px; }
.scroll-x { overflow-x: auto; }
.note { margin-top: 22px; font-size: var(--text-md); max-width: 46em; }
td.end, table.list th.end, table.fields th.end { text-align: right; }
.money { font-family: var(--mono); white-space: pre; font-variant-numeric: tabular-nums; }
section.acct { padding: 56px 0 0; }
section.acct > p, .notice { max-width: 46em; }
section.signout { margin-top: 56px; padding: 20px 0 72px; border-top: 1px solid var(--border); }
section.signout form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--text-md); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.filters .chip { text-decoration: none; color: var(--muted); padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; }
.filters .chip:hover { color: var(--ink); border-color: var(--ink); }
.filters .chip[aria-current] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.notice { padding: 14px 16px; border: 1px solid var(--border-hard); border-radius: var(--r-sm); background: var(--surface); font-size: var(--text-md); }
.notice.ok { border-color: var(--ok); }
.notice.err, .field-msg.err { color: var(--bad); }
.notice.err { border-color: var(--bad); }
.field-msg { margin: -4px 0 0; font-size: var(--text-md); }
.chip-ok { color: var(--ok); border-color: currentColor; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.chip-bad { color: var(--bad); border-color: currentColor; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
tr.revoked td { color: var(--muted); }
tr.revoked td:first-child { text-decoration: line-through; }
tr.fresh td { background: var(--surface); }
.secret-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.secret { flex: 1; min-width: 240px; margin: 0; font: 400 var(--text-sm)/1.5 var(--mono); word-break: break-all; padding: 14px; background: var(--well); border: 1px dashed var(--ink); border-radius: var(--r-sm); }
.balance { font: 600 var(--text-display)/1.1 var(--mono); margin: 8px 0 4px; letter-spacing: -.01em; }
.spend { display: flex; gap: 8px 32px; flex-wrap: wrap; margin: 16px 0 0; }
.spend dd { margin: 2px 0 0; font-size: var(--text-md); }
.balance + .muted + .notice { margin-top: 10px; }
.confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
details.confirm summary { list-style: none; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { border-color: var(--ink); }
details.confirm { position: relative; }
details.confirm .confirm-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; width: 320px; text-align: left; white-space: normal; margin: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
details.confirm .confirm-box p { font-size: var(--text-md); margin-bottom: 8px; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }

.empty { position: relative; border: 1px solid var(--border-hard); border-radius: var(--r); padding: 40px 24px; text-align: center; }
.empty::before, .empty::after { content: "✛"; position: absolute; font: 400 12px/1 var(--mono); color: var(--faint); }
.empty::before { left: -6px; top: -7px; } .empty::after { right: -6px; bottom: -7px; }
.empty .actions { justify-content: center; margin-top: 18px; }

main { flex: 1; }
footer.site { padding: 44px 0 56px; border-top: 1px solid var(--border); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
footer.site nav { display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: center; }
footer.site a { display: inline-block; padding: 16px 0; font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
form.theme { display: contents; }
form.theme button { all: unset; cursor: pointer; padding: 16px 0; font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); }
form.theme button:hover, form.theme button:focus-visible { color: var(--ink); }
form.theme button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero .wrap, .op { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .top .wrap { gap: 14px; }
  .nav { gap: 10px; }
  .logo { font-size: var(--text-lg); }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  table.stack tr::after { content: ""; flex-basis: 100%; order: 1; }
  table.stack td { padding: 0; border: 0; order: 2; }
  table.stack td.s-main { order: 0; flex: 1 1 0; min-width: 0; font-weight: 500; }
  table.stack td.s-end { order: 1; margin-left: auto; text-align: right; }
  table.stack td.s-full { flex-basis: 100%; }
  table.stack td.s-sub { color: var(--muted); font: 400 var(--text-sm)/1.5 var(--mono); }
  table.stack td[data-label]::before { content: attr(data-label) " "; font: 400 var(--text-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); }
  table.stack td { height: auto; }
  table.stack tr { position: relative; }
  table.stack tr.fresh { background: var(--surface); box-shadow: 0 0 0 8px var(--surface); }
  table.stack details.confirm { position: static; }
  table.stack details.confirm .confirm-box { left: 0; right: 0; width: auto; top: calc(100% - 6px); }
  .btn-sm { min-height: 40px; }
  .hero pre { font-size: 11.5px; }
  table.stack td.s-main a { display: inline-block; padding: 11px 0; margin: -11px 0; }
  table.stack td:empty { display: none; }
  table.usage td.s-main .mono { display: block; font-size: var(--text-sm); }
  .hero { padding: 48px 0 44px; }
  .wrap > .page-h:first-child, .wrap > .vh:first-child + .page-h { padding-top: 32px; }
  .form-row .btn { flex: 1; }
  .term pre, .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .channels { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .materialise { animation: none; -webkit-mask-image: none; mask-image: none; }
}
.foot-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: var(--text-sm); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.try-jump { display: none; }
.copy-shell { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; min-height: 28px; padding: 0 10px; background: var(--surface); opacity: 0; }
.copy-shell:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.doc { display: grid; grid-template-columns: minmax(0, 820px) 240px; justify-content: start; gap: 72px; }
.doc .prose { max-width: 820px; }
.toc { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 24px; align-self: start; margin-top: 40px; padding-left: 16px; border-left: 1px solid var(--border); font-size: var(--text-sm); }
.toc::before { content: "On this page"; font: 400 var(--text-xs)/1.5 var(--mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--muted); margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (max-width: 1099px) {
  .doc { display: flex; flex-direction: column; gap: 0; }
  .toc { order: -1; align-self: stretch; min-width: 0; position: sticky; top: 0; z-index: 2; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 16px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter); border: 0; background: var(--bg); border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .toc::before { content: none; }
  .toc a { border: 1px solid var(--border-hard); border-radius: 999px; padding: 0 12px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; flex: none; }
  .doc .prose { padding-top: 24px; }
}
@media (max-width: 900px) { .try-jump { display: inline-flex; } }
@media (max-width: 400px) { .nav { gap: 6px; } .top .wrap { gap: 10px; } }

/* search, categories and groups */
.search { display: flex; gap: 10px; margin-top: 22px; max-width: 620px; }
.search .input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; font-family: var(--body); font-size: var(--text-body); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 26px 0 40px; }
.cat { display: flex; flex-direction: column; gap: 4px; padding: 14px; text-decoration: none; font-weight: 600; font-size: var(--text-md); }
.cat:hover { border-color: var(--border-hard); background: var(--raised); }
.picks-h { margin: 0 0 14px; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.filters .chip b { font-weight: 400; color: var(--muted); margin-left: 6px; }
.filters .chip[aria-current] b { color: inherit; opacity: .7; }
.filters.jump { margin-top: 18px; }
.filters.jump .chip { text-transform: none; letter-spacing: 0; font-size: var(--text-sm); }
.count { margin: 0 0 18px; }
.group + .group { margin-top: 44px; }
.group-h { font: 600 var(--text-lg)/1.3 var(--body); margin-bottom: 14px; display: flex; align-items: baseline; }
.empty { padding: 32px; text-align: center; }
.notice { border-left: 2px solid var(--accent); padding: 8px 14px; margin: 0 0 18px; background: var(--surface); }
/* api page */
.endpoint-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }
.endpoint-row .endpoint { margin: 0; }
.job-note { font-size: var(--text-md); margin: -6px 0 14px; }
.answer { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.answer summary { cursor: pointer; padding: 12px 16px; }
.answer pre { margin: 0; padding: 14px 16px; border-top: 1px solid var(--border); max-height: 420px; overflow: auto; font-size: var(--text-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
/* pricing facts, connect tools */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 32px; margin: 26px 0 0; }
.strip div { border-top: 1px solid var(--border-hard); padding-top: 10px; }
.strip dd { margin: 4px 0 0; font-weight: 600; }
.tools summary { cursor: pointer; padding: 10px 0; }
.tools ul { list-style: none; padding: 0; margin: 8px 0 0; columns: 3 200px; column-gap: 24px; font: 400 var(--text-sm)/1.9 var(--mono); }
.tools li::marker { content: none; }
table.errors td.s-end { white-space: nowrap; }
@media (max-width: 720px) {
  .input, .form .input, .try textarea, .search .input { font-size: 16px; }
  .copy-btn { min-height: 40px; min-width: 64px; }
  .try .row .input { flex-basis: 100%; }
  .try .row .btn { flex: 1; }
}
td .chip + .muted { margin-left: 8px; }
@media (max-width: 620px) { table.stack tr.cont td.s-sub:nth-child(2) { order: 0; flex: 1 1 0; } }
.link-btn { min-height: 40px; display: inline-flex; align-items: center; }
@media (hover: none) and (max-width: 720px) { .copy-shell pre { padding-top: 52px; } }
.answer .label.sub { display: block; padding: 10px 16px 0; }
.actions-c { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; }
.search-rows { margin: 0 0 22px; }
@media (min-width: 1360px) { .grid, .steps, .channels { gap: 20px; } }
@media (max-width: 620px) {
  .term pre, .prose pre { font-size: 11.5px; padding-inline: 14px; }
  table.prices tr.cont td.s-full { flex-basis: auto; margin-left: auto; }
  table.prices td.s-full.money { white-space: nowrap; }
  dl.facts dd > .muted { display: block; }
  dl.facts dd > .muted .dot { display: none; }
}
.prose > h2[id] { scroll-margin-top: 24px; }
@media (max-width: 1099px) { .prose > h2[id] { scroll-margin-top: 76px; } .toc { max-width: 100vw; } }
@media (max-width: 700px) {
  .filters:not(.jump) { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters:not(.jump) .chip { flex: none; white-space: nowrap; }
}
.page-h .count { margin: 14px 0 0; }
@media (min-width: 1760px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
