:root {
  color-scheme: light;
  --paper: #edeae1;
  --paper-2: #e6e2d6;
  --surface: #f7f5ef;
  --surface-2: #f1eee5;
  --ink: #23201a;
  --muted: #696354;
  --faint: #918a78;
  --line: #d8d2c3;
  --green: #2d5c47;
  --green-dark: #1e3a2d;
  --green-soft: #dce4dc;
  --yellow: #e1b700;
  --danger: #a4473d;
  --success: #2d6a4e;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shadow: 0 22px 60px -38px rgba(35, 32, 26, .46);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171b18;
  --paper-2: #1d231f;
  --surface: #252b26;
  --surface-2: #202621;
  --ink: #eee9dc;
  --muted: #b3ad9d;
  --faint: #858174;
  --line: #3a433b;
  --green: #8ebba1;
  --green-dark: #669579;
  --green-soft: #263b30;
  --yellow: #f2c200;
  --danger: #e28a7d;
  --success: #91c6a4;
  --shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3 { margin-top: 0; font-weight: 300; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.8vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; font-weight: 400; }
p { text-wrap: pretty; }
code, pre, .eyebrow, .chip, .small-label { font-family: var(--mono); }
::selection { background: var(--green-soft); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.api-header { position: sticky; top: 0; z-index: 30; min-height: 66px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); }
.api-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 1.15rem; font-weight: 500; text-decoration: none; }
.api-brand b { color: var(--green); font: 600 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.caption-mark { position: relative; display: inline-block; width: 28px; height: 28px; flex: 0 0 28px; background: var(--green-dark); }
.caption-mark::before, .caption-mark::after { content: ""; position: absolute; left: 50%; height: 3px; transform: translateX(-50%); border-radius: 2px; background: var(--paper); }
.caption-mark::before { width: 15px; bottom: 10px; }
.caption-mark::after { width: 9px; bottom: 5px; }
.api-header nav, .api-actions { display: flex; align-items: center; gap: 23px; }
.api-header nav a, .quiet-link { color: var(--muted); font-size: .91rem; text-decoration: none; }
.api-header nav a:hover, .api-header nav a[aria-current="page"], .quiet-link:hover { color: var(--ink); }
.api-actions { justify-content: flex-end; gap: 13px; }
.small-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 17px; border: 1px solid var(--green-dark); border-radius: 8px; background: var(--green-dark); color: #f7f5ef; font-weight: 600; text-decoration: none; }
.button { min-height: 50px; padding-inline: 24px; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button:hover, .small-cta:hover { filter: brightness(1.12); }
.theme-toggle { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 600 .65rem var(--mono); text-transform: uppercase; }

.api-hero, .api-section, .proof-inner, .api-footer, .page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.api-hero { min-height: 710px; padding: clamp(70px, 10vw, 125px) 0 82px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr); gap: clamp(42px, 7vw, 88px); align-items: center; }
.eyebrow { margin: 0 0 20px; color: var(--green); font-size: .69rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.api-hero h1 { max-width: 12.5ch; margin-bottom: 23px; }
.hero-copy { max-width: 53ch; margin: 0 0 30px; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 10px 0 0; color: var(--faint); font: .68rem var(--mono); }
.latency-note { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font: .7rem/1.5 var(--mono); }
.code-window { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #142019; color: #edf0e8; box-shadow: var(--shadow); }
.code-tabs, .format-tabs { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid #2e4035; }
.code-tabs button, .format-tabs button { min-height: 34px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; color: #9eac9f; font: 600 .66rem var(--mono); white-space: nowrap; }
.code-tabs button[aria-selected="true"], .format-tabs button[aria-selected="true"] { background: #294033; color: #fff; }
.code-window pre { min-height: 315px; margin: 0; padding: 23px; overflow: auto; color: #e8eadf; font: .73rem/1.7 var(--mono); }
.code-caption { margin: 0; padding: 11px 18px; border-top: 1px solid #2e4035; color: #91a497; font: .64rem var(--mono); }

.proof-strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.proof-inner { min-height: 115px; display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: 26px 28px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { font-size: 1.25rem; font-weight: 400; }
.proof-item span { color: var(--faint); font: .64rem var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.status-light { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--faint); }
.status-light.good { background: var(--success); }
.status-light.bad { background: var(--danger); }

.api-section { padding: clamp(72px, 9vw, 110px) 0; }
.api-section + .api-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 15px; }
.section-heading p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 1.04rem; }
.two-grid, .three-grid, .four-grid { display: grid; gap: 15px; }
.two-grid { grid-template-columns: repeat(2, 1fr); }
.three-grid { grid-template-columns: repeat(3, 1fr); }
.four-grid { grid-template-columns: repeat(4, 1fr); }
.two-grid > *, .three-grid > *, .four-grid > * { min-width: 0; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card h3 { margin-bottom: 10px; }
.card h3 code { overflow-wrap: anywhere; }
.card p { margin: 0; color: var(--muted); }
.card .small-label { display: block; margin-bottom: 23px; color: var(--green); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.dark-section { max-width: none; width: 100%; padding-inline: max(24px, calc((100vw - 1180px) / 2)); background: var(--green-dark); color: #edeae1; }
.dark-section .section-heading p { color: #b4c1b6; }
.dark-section .card { border-color: #345140; background: #244030; }
.dark-section .card p { color: #b6c5b9; }

.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--faint); font: 600 .63rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
td code { font-size: .78em; }
tbody tr:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.pricing-grid { display: grid; grid-template-columns: 1.18fr repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.price-card { min-height: 225px; padding: 24px 19px; background: var(--surface); }
.price-card.featured { background: var(--green-dark); color: #f6f3e8; }
.price-card h3 { margin-bottom: 8px; }
.price { display: block; margin: 15px 0 4px; font-size: 2rem; font-weight: 300; }
.price-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.price-card.featured p { color: #b8c7bb; }
.calculator { margin-top: 25px; padding: 25px; display: grid; grid-template-columns: 1fr auto; gap: 18px 35px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.calculator label { display: grid; gap: 10px; }
.calculator input { width: 100%; accent-color: var(--green); }
.calc-output { min-width: 270px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-output span { padding: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .82rem; }
.calc-output strong { display: block; color: var(--ink); font-size: 1.35rem; font-weight: 400; }
.source-note { margin: 14px 0 0; color: var(--faint); font: .64rem/1.6 var(--mono); }

.language-card { padding: 0; overflow: hidden; }
.language-card pre { margin: 0; padding: 26px; background: #142019; color: #dce6dd; font: .75rem/1.75 var(--mono); }
.language-card .explain { padding: 25px; }
.status-panel { padding: 25px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.status-panel p { margin: 4px 0 0; color: var(--muted); }
.status-badge { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); font: 600 .65rem var(--mono); text-transform: uppercase; }
.status-badge.good { border-color: var(--success); color: var(--success); }
.status-badge.bad { border-color: var(--danger); color: var(--danger); }
.fixture { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fixture .format-tabs { border-color: var(--line); background: var(--surface-2); }
.fixture .format-tabs button { color: var(--muted); }
.fixture .format-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.fixture pre { min-height: 210px; margin: 0; padding: 24px; overflow: auto; font: .75rem/1.7 var(--mono); }

.auth-box { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.auth-box h2 { margin-bottom: 10px; font-size: 1.75rem; }
.auth-box p { color: var(--muted); }
.form-row { display: flex; gap: 9px; align-items: stretch; }
.form-row input { min-width: 0; flex: 1; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: var(--mono); }
.form-row button { min-height: 48px; padding: 0 17px; border: 0; border-radius: 8px; background: var(--green-dark); color: #fff; font-weight: 600; }
.form-check { display: flex; gap: 9px; margin: 13px 0; align-items: flex-start; color: var(--muted); font-size: .82rem; }
.form-check input { margin-top: 5px; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font: .68rem/1.5 var(--mono); }
.key-result { margin-top: 15px; padding: 14px; overflow-wrap: anywhere; border: 1px solid var(--yellow); border-radius: 8px; background: color-mix(in srgb, var(--yellow) 8%, var(--surface)); font: .75rem/1.6 var(--mono); }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 0; cursor: pointer; font-size: 1.06rem; }
.faq-list p { max-width: 75ch; margin: 0 0 20px; color: var(--muted); }

.api-footer { padding: 55px 0 28px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); }
.api-footer > div p { max-width: 28ch; color: var(--faint); font-size: .84rem; }
.api-footer nav { display: grid; align-content: start; gap: 7px; }
.api-footer nav strong { margin-bottom: 4px; color: var(--faint); font: 600 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.api-footer nav a { color: var(--muted); font-size: .84rem; text-decoration: none; }
.api-fineprint { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .76rem; }

.docs-shell { width: min(1220px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 235px minmax(0, 780px); gap: clamp(42px, 7vw, 90px); align-items: start; }
.docs-sidebar { position: sticky; top: 95px; padding: 58px 0; }
.docs-sidebar > p { margin: 0 0 14px; color: var(--faint); font: 600 .63rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.docs-sidebar nav { display: grid; }
.docs-sidebar a { padding: 7px 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: .86rem; text-decoration: none; }
.docs-sidebar a:hover, .docs-sidebar a[aria-current="page"] { border-color: var(--green); color: var(--ink); }
.docs-article { min-width: 0; padding: 70px 0 110px; }
.docs-article h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 6vw, 4.2rem); }
.docs-article h2 { margin: 60px 0 17px; padding-top: 8px; font-size: 2rem; }
.docs-article h3 { margin: 38px 0 12px; }
.docs-article p, .docs-article li { color: var(--muted); }
.docs-article li + li { margin-top: 6px; }
.docs-article pre { padding: 20px; overflow: auto; border: 1px solid #2e4035; border-radius: 10px; background: #142019; color: #e8eadf; font: .72rem/1.7 var(--mono); }
.docs-article :not(pre) > code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--ink); font-size: .78em; }
.docs-article blockquote { margin: 25px 0; padding: 8px 20px; border-left: 3px solid var(--green); background: var(--surface-2); }
.openapi-reference { display: grid; gap: 12px; }
.endpoint { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.endpoint summary { cursor: pointer; }
.method { display: inline-block; min-width: 54px; margin-right: 10px; color: var(--green); font: 700 .66rem var(--mono); }

.page-shell { padding: 80px 0 115px; }
.page-intro { max-width: 780px; margin-bottom: 45px; }
.page-intro h1 { margin-bottom: 18px; }
.page-intro p { color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 780px; }
.prose h2 { margin: 55px 0 15px; font-size: 2rem; }
.prose h3 { margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.legal-note { padding: 16px 18px; border-left: 3px solid var(--yellow); background: var(--surface); color: var(--muted); }
.effective { color: var(--faint); font: .68rem var(--mono); }

.dashboard-shell { width: min(1050px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 110px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 35px; }
.dashboard-head h1 { margin: 0; font-size: 3.2rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric { padding: 24px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.metric span { color: var(--faint); font: .63rem var(--mono); text-transform: uppercase; }
.metric strong { display: block; margin-top: 9px; font-size: 2rem; font-weight: 300; }
.dashboard-section { margin-top: 35px; }
.empty-state { padding: 32px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; }
.dashboard-signin { max-width: 560px; margin-bottom: 35px; }
.dashboard-signin h2 { font-size: 1.75rem; }
.dashboard-email { margin: 9px 0 0; color: var(--muted); font: .72rem var(--mono); }
.dashboard-metrics { grid-template-columns: repeat(5, 1fr); }
.dashboard-panel { padding: 27px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 45px -42px rgba(35, 32, 26, .8); }
.dashboard-panel h2 { margin-bottom: 10px; font-size: 1.9rem; }
.dashboard-panel .eyebrow { margin-bottom: 8px; }
.dashboard-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.dashboard-meta, .section-help { color: var(--muted); }
.dashboard-meta { font: .68rem var(--mono); }
.section-help { max-width: 70ch; margin: 0 0 22px; font-size: .9rem; }
.dashboard-form { display: grid; gap: 13px; }
.dashboard-form label { display: grid; gap: 6px; color: var(--faint); font: .64rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.dashboard-form input, .dashboard-form select { width: 100%; min-height: 43px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: .77rem var(--mono); }
.compact-form { grid-template-columns: minmax(180px, 1.4fr) minmax(150px, .8fr) auto; align-items: end; margin-bottom: 22px; }
.compact-form .small-cta { min-height: 43px; border: 0; }
.compact-button { min-height: 39px; padding-inline: 15px; font-size: .82rem; }
.form-actions, .table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-button, .table-action { border: 0; background: transparent; color: var(--green); font: 600 .68rem var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger, .table-action.danger { color: var(--danger); }
.table-actions { min-width: 190px; }
.table-action { padding: 2px 0; font-size: .62rem; }
.table-empty { padding-block: 25px; color: var(--faint); text-align: center; }
.dashboard-notice { position: sticky; top: 77px; z-index: 20; margin-bottom: 17px; padding: 12px 15px; border: 1px solid var(--success); border-radius: 8px; background: var(--green-soft); color: var(--ink); font: .72rem var(--mono); }
.dashboard-notice[data-kind="error"] { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.credit-blocks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.credit-blocks button { min-height: 88px; padding: 13px; display: grid; place-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
.credit-blocks button:hover { border-color: var(--green); background: var(--green-soft); }
.credit-blocks button:disabled { cursor: wait; opacity: .55; }
.credit-blocks strong { font-size: 1.25rem; font-weight: 400; }
.credit-blocks span { color: var(--muted); font: .61rem var(--mono); }
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dashboard-columns .dashboard-section { height: calc(100% - 35px); }
.usage-chart { height: 180px; margin: 5px 0 0; padding: 12px 10px 25px; display: flex; align-items: end; gap: clamp(3px, .7vw, 9px); overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.usage-day { position: relative; min-width: 18px; height: 100%; flex: 1 0 18px; display: flex; align-items: end; justify-content: center; gap: 2px; }
.usage-day i { width: min(7px, 31%); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--green); }
.usage-day i[data-series="credits"] { background: var(--yellow); }
.usage-day i[data-series="errors"] { background: var(--danger); }
.usage-day span { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); color: var(--faint); font: .52rem var(--mono); white-space: nowrap; }
.usage-chart-empty { margin: auto; color: var(--faint); font: .7rem var(--mono); }
.usage-legend { margin: 8px 0 17px; display: flex; gap: 16px; color: var(--faint); font: .62rem var(--mono); }
.dashboard-head-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-table td[data-tone="good"] { color: var(--success); }
.status-table td[data-tone="bad"] { color: var(--danger); }
.page-shell .status-table + h3, .page-shell .table-scroll + h3 { margin-top: 32px; }
.usage-legend span::before { content: ""; width: 8px; height: 8px; margin-right: 5px; display: inline-block; border-radius: 2px; background: var(--green); }
.usage-legend span[data-series="credits"]::before { background: var(--yellow); }
.usage-legend span[data-series="errors"]::before { background: var(--danger); }
.latency-grid { max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

@media (max-width: 940px) {
  .api-header { grid-template-columns: 1fr auto; }
  .api-header nav { display: none; }
  .api-hero { grid-template-columns: 1fr; min-height: 0; }
  .api-hero h1 { max-width: 15ch; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .docs-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 35px; }
  .api-footer { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(3, 1fr); }
  .credit-blocks { grid-template-columns: repeat(3, 1fr); }
  .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .api-header { min-height: 60px; padding-inline: 16px; }
  .api-actions .quiet-link, .api-actions .small-cta { display: none; }
  .api-hero, .api-section, .proof-inner, .api-footer, .page-shell { width: min(100% - 30px, 1180px); }
  .api-hero { padding-top: 64px; }
  .api-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .code-window pre { min-height: 365px; font-size: .66rem; }
  .proof-inner { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .two-grid, .three-grid, .four-grid, .pricing-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .calculator { grid-template-columns: 1fr; }
  .calc-output { min-width: 0; }
  .status-panel { align-items: flex-start; flex-direction: column; }
  .api-footer { grid-template-columns: 1fr 1fr; }
  .api-footer > div, .api-fineprint { grid-column: 1 / -1; }
  .docs-shell { width: min(100% - 30px, 780px); grid-template-columns: 1fr; }
  .docs-sidebar { position: static; padding: 26px 0 0; }
  .docs-sidebar nav { grid-template-columns: 1fr 1fr; }
  .docs-article { padding-top: 35px; }
  .form-row { flex-direction: column; }
  .dashboard-shell { width: min(100% - 30px, 1050px); padding-top: 45px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .dashboard-metrics, .credit-blocks { grid-template-columns: 1fr 1fr; }
  .dashboard-panel { padding: 20px 15px; }
  .dashboard-section-head { align-items: flex-start; flex-direction: column; }
  .compact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
