/* AlmaOdds — shared styles. Palette from the Kazakh flag: steppe-night ink, sky, a little sun. */
:root {
  --ink: #13233A;
  --ink-2: #24374F;
  --ink-3: #344A66;
  --muted: #5B6A7D;
  --line: #DCE3E8;
  --line-2: #E9EEF1;
  --paper: #F5F7F8;
  --white: #FFFFFF;
  --sky: #0B7A93;
  --sky-hi: #12A3C2;
  --sky-tint: #E2F3F7;
  --sun: #F2B705;
  --sun-tint: #FFF6D6;
  --up: #12805C;
  --up-tint: #DDF3EA;
  --down: #C2412D;
  --down-tint: #FBE5E0;
  --warn: #9A6A00;
  --r-s: 6px;
  --r: 10px;
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --focus: 0 0 0 3px rgba(18, 163, 194, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--f-code); font-size: .88em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--sky-tint); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-code); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-s); font: 600 15px/1 var(--f-body); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: #096A80; color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFC81F; color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-danger { background: var(--white); color: var(--down); border-color: #E8B4AA; }
.btn-danger:hover { background: var(--down-tint); }
.btn-s { height: 34px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
label.field small { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--white); color: var(--ink); font: 15px/1.4 var(--f-body);
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--sky-hi); box-shadow: var(--focus); outline: none; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sky); }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-error { color: var(--down); font-size: 14px; min-height: 20px; }

/* ---------- tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.tag.ok { background: var(--up-tint); color: var(--up); }
.tag.bad { background: var(--down-tint); color: var(--down); }
.tag.warn { background: var(--sun-tint); color: var(--warn); }
.tag.info { background: var(--sky-tint); color: var(--sky); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); display: inline-block; box-shadow: 0 0 0 0 rgba(242, 183, 5, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 183, 5, .55); } 70% { box-shadow: 0 0 0 8px rgba(242, 183, 5, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0); } }

/* ---------- code */
.code {
  margin: 0; background: #0E1B2D; color: #D7E3EE; border-radius: var(--r); padding: 16px 18px; overflow: auto;
  font: 13px/1.6 var(--f-code); tab-size: 2;
}
.code .k { color: #7FD3E8; } .code .s { color: #F6D776; } .code .n { color: #9BE3B9; }
.code .b { color: #F3A693; } .code .c { color: #6F8299; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #172A42; color: #B5C6D8; padding: 8px 12px 8px 16px; border-radius: var(--r) var(--r) 0 0; font-size: 13px; }
.code-head + .code { border-radius: 0 0 var(--r) var(--r); }
.copy-btn { background: transparent; color: #B5C6D8; border: 1px solid #2D4560; border-radius: 5px; height: 26px; padding: 0 10px; font: 12.5px var(--f-body); cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: #5A7896; }
.method { font: 600 12px/1 var(--f-code); padding: 4px 7px; border-radius: 4px; background: var(--sky-tint); color: var(--sky); }

/* ---------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th, .t td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t th { font-weight: 600; color: var(--muted); font-size: 13px; background: #FAFBFC; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t td.r, .t th.r { text-align: right; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: #F7FAFB; }

/* ---------- toast & modal */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-s); font-size: 14px; max-width: 380px; box-shadow: 0 8px 30px rgba(19, 35, 58, .25); }
.toast.bad { background: var(--down); }
.modal-back { position: fixed; inset: 0; background: rgba(19, 35, 58, .45); display: grid; place-items: center; z-index: 90; padding: 20px; }
.modal { background: var(--white); border-radius: 12px; width: min(560px, 100%); padding: 24px; max-height: 90vh; overflow: auto; }
.modal h3 { margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.secret { display: flex; gap: 8px; align-items: center; background: var(--sun-tint); border: 1px solid #F1DC94; border-radius: var(--r-s); padding: 10px 12px; font-family: var(--f-code); font-size: 14px; word-break: break-all; }

/* ================= LANDING ================= */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(19, 35, 58, .96); backdrop-filter: blur(6px); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 19px/1 var(--f-display); letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: #C9D6E3; text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; }
.site-nav .btn { height: 38px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #3B5470; color: #fff; border-radius: 6px; height: 36px; padding: 0 12px; font: 14px var(--f-body); }

.hero { background: var(--ink); color: #E9F0F6; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -2px -10%; height: 120px; background: linear-gradient(180deg, transparent, rgba(11, 122, 147, .12)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: start; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero-lead { font-size: 1.15rem; color: #C2D0DE; max-width: 46ch; margin: 22px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-now { margin-top: 30px; color: #A9BACB; font-size: 15px; max-width: 46ch; }
.hero-now b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* scoreboard — the one loud element */
.board { background: #0D1A2B; border: 1px solid #22374F; border-radius: 14px; overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #1F334A; font-size: 14px; color: #A9BACB; }
.board-head strong { color: #fff; font-weight: 600; }
.board-head .lang { margin-left: auto; display: flex; gap: 2px; }
.board-head .lang button { background: none; border: 0; color: #8DA2B8; font: 600 12.5px var(--f-body); padding: 4px 7px; border-radius: 5px; cursor: pointer; }
.board-head .lang button[aria-pressed="true"] { background: #1F334A; color: #fff; }
.board-rows { display: grid; }
.brow { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid #172A40; }
.brow:last-child { border-bottom: 0; }
.brow .clock { font: 600 13px var(--f-code); color: var(--sun); }
.brow .clock.susp { color: #8DA2B8; }
.brow .teams { min-width: 0; display: grid; gap: 2px; font-size: 14.5px; color: #E9F0F6; }
.brow .teams span { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brow .teams img { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.brow .teams .sc { margin-left: auto; font: 600 14px var(--f-code); color: #fff; padding-left: 8px; }
.brow .meta { font-size: 12px; color: #7E93AA; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.odds { display: flex; gap: 6px; }
.odd {
  min-width: 58px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: #17293F;
  border: 1px solid #22374F; color: #fff; font: 600 14px var(--f-code); position: relative; transition: background .9s ease;
}
.odd small { position: absolute; top: 3px; left: 6px; font: 600 9.5px var(--f-body); color: #7E93AA; }
.odd.up { background: #155A47; border-color: #1E7A5F; }
.odd.down { background: #6A2A21; border-color: #8B3A2D; }
.odd.lock { color: #5F7690; }
.board-foot { padding: 12px 18px; font-size: 13px; color: #7E93AA; border-top: 1px solid #1F334A; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board-json { margin-top: 16px; }
.board-json .code { max-height: 260px; background: #0A1626; border: 1px solid #1C3048; }
.board-json .code-head { background: #12233A; border: 1px solid #1C3048; border-bottom: 0; }

.section { padding: 84px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line-2); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

.fields { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.field-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.field-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.field-item code { color: var(--sky); font-weight: 600; }
.field-item p { margin: 0; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { padding-top: 18px; border-top: 3px solid var(--ink); }
.step::before { counter-increment: step; content: counter(step); font: 600 15px var(--f-display); color: var(--sky); display: block; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

.pricing { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.pricing th, .pricing td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: center; }
.pricing th:first-child, .pricing td:first-child { text-align: left; color: var(--muted); font-weight: 500; width: 22%; }
.pricing thead th { background: #FAFBFC; vertical-align: bottom; }
.pricing .plan-name { font: 600 16px var(--f-display); color: var(--ink); display: block; }
.pricing .plan-price { font: 600 26px var(--f-display); color: var(--ink); display: block; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pricing .plan-price small { display: block; margin-top: 4px; font: 400 13px var(--f-body); color: var(--muted); }
.pricing thead th { white-space: nowrap; }
.pricing .featured { background: var(--sky-tint); }
.pricing tr:last-child td { border-bottom: 0; }
.yes { color: var(--up); font-weight: 600; }
.no { color: #A3AFBC; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--f-display); color: var(--sky); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); max-width: 70ch; }

.cta-band { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band p { color: #A9BACB; margin: 10px 0 0; }
.site-foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }

/* ================= DOCS ================= */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 64px); }
.docs-nav { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; padding: 24px 16px 40px 20px; border-right: 1px solid var(--line); background: var(--white); }
.docs-nav h4 { font: 600 13px var(--f-body); color: var(--muted); margin: 18px 8px 6px; }
.docs-nav a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.docs-nav a:hover { background: var(--paper); }
.docs-nav a.on { background: var(--sky-tint); color: var(--sky); font-weight: 600; }
.docs-nav .m { font: 600 10.5px var(--f-code); color: var(--sky); }
.docs-main { padding: 32px clamp(20px, 4vw, 56px) 96px; max-width: 1100px; }
.docs-key { display: flex; gap: 10px; align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 36px; flex-wrap: wrap; }
.docs-key label { flex: 1 1 320px; }
.doc-sec { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.doc-sec:first-of-type { padding-top: 0; }
.doc-sec h2 { font-size: 1.6rem; margin-bottom: 14px; }
.doc-sec h3 { margin: 26px 0 10px; }
.doc-sec > p, .doc-sec li { max-width: 74ch; color: var(--ink-2); }
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 15px var(--f-code); margin: 4px 0 16px; }
.cost { font: 600 12.5px var(--f-body); background: var(--sun-tint); color: var(--warn); padding: 4px 9px; border-radius: 99px; }
.doc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.params td:first-child code { color: var(--ink); font-weight: 600; }
.params td { font-size: 14px; }
.tabs { display: flex; gap: 2px; background: #172A42; padding: 6px 6px 0; border-radius: var(--r) var(--r) 0 0; }
.tabs button { background: none; border: 0; color: #9DB2C7; font: 600 13px var(--f-body); padding: 8px 12px; border-radius: 6px 6px 0 0; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #0E1B2D; color: #fff; }
.tabs + .code { border-radius: 0 0 var(--r) var(--r); }
.tryit { margin-top: 14px; display: grid; gap: 10px; }
.tryit-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tryit-bar input { flex: 1 1 260px; font-family: var(--f-code); font-size: 13.5px; }
.tryit-out .code { max-height: 420px; }
.resp-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.enum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }

/* ================= APP SHELL (cabinet & admin) ================= */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #C9D6E3; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { color: #fff; padding: 6px 10px 20px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #C9D6E3; text-decoration: none; padding: 9px 10px; border-radius: 7px; font-size: 14.5px; }
.side nav a:hover { background: #1D3149; color: #fff; }
.side nav a.on { background: #24405F; color: #fff; }
.side nav a .badge { margin-left: auto; background: var(--sun); color: var(--ink); font: 700 11.5px var(--f-body); padding: 2px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid #22374F; font-size: 13px; color: #8DA2B8; display: grid; gap: 8px; }
.side-foot button { justify-self: start; }
.main { padding: 28px clamp(18px, 3vw, 40px) 64px; min-width: 0; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel + .panel { margin-top: 20px; }
.grid-2 > .panel + .panel, .grid-3 > .panel + .panel { margin-top: 0; }
.grid-2 + .panel, .grid-3 + .panel, .kpis + .grid-2 { margin-top: 20px; }
.grid-2, .grid-3 { align-items: start; }
.panel h2 { font: 600 1.05rem var(--f-display); margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
.kpi { padding: 16px 20px; border-right: 1px solid var(--line-2); }
.kpi:last-child { border-right: 0; }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi b { display: block; font: 600 1.45rem var(--f-display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 13px; color: var(--muted); }
.meter { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.meter i { display: block; height: 100%; background: var(--sky); border-radius: 99px; }
.meter i.hot { background: var(--down); }
.chart { width: 100%; height: 220px; display: block; }
.chart text { font: 11px var(--f-body); fill: var(--muted); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 160px; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--ink); color: #C9D6E3; padding: 40px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; }
.auth-side .brand { color: #fff; }
.auth-side h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: auto; max-width: 14ch; }
.auth-side p { margin-top: 18px; max-width: 40ch; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: min(420px, 100%); }
.auth-box h2 { margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 24px; }
.switch { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid, .fields, .doc-cols, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: none; }
  .docs-nav.open { display: block; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: auto; }
  .auth-side h1 { margin-top: 32px; }
}
@media (max-width: 760px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 6px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .field-item { grid-template-columns: 1fr; gap: 6px; }
  .brow { grid-template-columns: 46px minmax(0, 1fr); }
  .brow .odds { grid-column: 1 / -1; }
  .odd { flex: 1; }
  .kv { grid-template-columns: 1fr; }
  .pricing { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
