/* dekota.org. Reference: Microsoft Fluent 2 (neutral ramp, 4 px radius, 1 px strokes, sparing
   elevation, Fluent focus). One accent. No gradients, glow, glass or tinted icon tiles. */

@font-face { font-family: "Selawik"; font-weight: 350; font-display: swap; src: url("fonts/selawksl.woff2") format("woff2"); }
@font-face { font-family: "Selawik"; font-weight: 400; font-display: swap; src: url("fonts/selawk.woff2") format("woff2"); }
@font-face { font-family: "Selawik"; font-weight: 600; font-display: swap; src: url("fonts/selawksb.woff2") format("woff2"); }
@font-face { font-family: "Selawik"; font-weight: 700; font-display: swap; src: url("fonts/selawkb.woff2") format("woff2"); }

:root {
  --accent: #2e5bdb;
  --accent-hover: #2650c4;
  --accent-pressed: #1f44a8;
  --accent-text: #2650c4;
  --on-accent: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f0f0f0;
  --stroke: #e0e0e0;
  --stroke-strong: #d1d1d1;
  --input-stroke: #8a8a8a;
  --text: #242424;
  --text-2: #424242;
  --text-3: #616161;
  --ok: #107c10;
  --wait: #8a5a00;
  --bad: #c50f1f;
  --new: #2650c4;
  --shadow-2: 0 0 2px rgb(0 0 0 / 0.12), 0 1px 2px rgb(0 0 0 / 0.14);
  --shadow-8: 0 0 2px rgb(0 0 0 / 0.12), 0 4px 8px rgb(0 0 0 / 0.14);
  --shadow-28: 0 0 8px rgb(0 0 0 / 0.12), 0 14px 28px rgb(0 0 0 / 0.14);
  --font: "Segoe UI Variable Text", "Segoe UI", "Selawik", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Selawik", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --radius: 4px;
  --radius-lg: 8px;
  --wrap: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3a66d9; --accent-hover: #335fd4; --accent-pressed: #2e55c2; --accent-text: #8aa6f5; --on-accent: #ffffff;
    --bg: #1f1f1f; --bg-alt: #1a1a1a; --surface: #292929; --surface-2: #242424; --surface-3: #333333;
    --stroke: #3d3d3d; --stroke-strong: #525252; --input-stroke: #8a8a8a;
    --text: #ffffff; --text-2: #d6d6d6; --text-3: #adadad;
    --ok: #54b054; --wait: #e0a33a; --bad: #f1707b; --new: #8aa6f5;
    --shadow-2: 0 0 2px rgb(0 0 0 / 0.24), 0 1px 2px rgb(0 0 0 / 0.28);
    --shadow-8: 0 0 2px rgb(0 0 0 / 0.24), 0 4px 8px rgb(0 0 0 / 0.28);
    --shadow-28: 0 0 8px rgb(0 0 0 / 0.24), 0 14px 28px rgb(0 0 0 / 0.28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #3a66d9; --accent-hover: #335fd4; --accent-pressed: #2e55c2; --accent-text: #8aa6f5; --on-accent: #ffffff;
  --bg: #1f1f1f; --bg-alt: #1a1a1a; --surface: #292929; --surface-2: #242424; --surface-3: #333333;
  --stroke: #3d3d3d; --stroke-strong: #525252; --input-stroke: #8a8a8a;
  --text: #ffffff; --text-2: #d6d6d6; --text-3: #adadad;
  --ok: #54b054; --wait: #e0a33a; --bad: #f1707b; --new: #8aa6f5;
  --shadow-2: 0 0 2px rgb(0 0 0 / 0.24), 0 1px 2px rgb(0 0 0 / 0.28);
  --shadow-8: 0 0 2px rgb(0 0 0 / 0.24), 0 4px 8px rgb(0 0 0 / 0.28);
  --shadow-28: 0 0 8px rgb(0 0 0 / 0.24), 0 14px 28px rgb(0 0 0 / 0.28);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:root[data-theme="dark"] a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; font-weight: 600; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
p { margin: 0 0 16px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-3); border-radius: 3px; padding: 1px 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { top: 8px; color: var(--on-accent); }
main { display: block; outline: none; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 760px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--stroke); }
.header-row { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; color: var(--text); flex-shrink: 0; }
.wordmark .mark, .logo-mark .mark { fill: var(--accent); }
.wordmark .word { fill: var(--text); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: var(--radius); font-size: 15px; }
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { display: flex; gap: 8px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: var(--radius); color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-3); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg); box-shadow: var(--shadow-28); padding: 8px; display: flex; flex-direction: column; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-3); }
.menu-panel a.menu-cta { color: var(--on-accent, #fff); margin-top: 8px; justify-content: center; }
.menu-panel a.menu-cta:hover { background: var(--accent-hover, var(--accent)); }
@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 5px 14px; border: 1px solid var(--stroke-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 600 14px/20px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.1s, border-color 0.1s; }
.btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--stroke-strong); }
.btn:active { background: var(--stroke); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); border-color: transparent; }
.btn-primary:active { background: var(--accent-pressed); }
.btn-subtle { border-color: transparent; background: transparent; }
.btn-lg { min-height: 40px; padding: 8px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
button.link { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.icon { flex-shrink: 0; }
.more a, a .icon { display: inline-flex; }
.more a { align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }
p a .icon, .more .icon { display: inline-block; vertical-align: -3px; }

/* sections */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--stroke); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.fine { font-size: 14px; color: var(--text-3); }
.center { text-align: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0; } }

.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt, .band { background: var(--bg-alt); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.band { padding: 56px 0; }
.section-title { margin-bottom: 16px; }
.narrow { max-width: 68ch; color: var(--text-2); }
@media (max-width: 640px) { .section { padding: 48px 0; } .band { padding: 40px 0; } }

.page-head { padding: 56px 0 32px; }
.page-head-small { padding: 40px 0 8px; }
.page-head .note { margin-top: 24px; max-width: 760px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-reverse > :first-child { order: 0; }
.split > *, .two-col > *, .hero-grid > *, .docs > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .split, .split-reverse, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse > :first-child { order: 2; }
}

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 24px 0; border-top: 1px solid var(--stroke); }
.spec-grid > div { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--stroke); }
.spec-grid > div:nth-child(odd) { padding-right: 40px; }
.spec-grid dt { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.spec-grid dd { margin: 0; color: var(--text-2); }
@media (max-width: 720px) { .spec-grid { grid-template-columns: 1fr; } .spec-grid > div { padding-right: 0 !important; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 1px solid var(--stroke-strong); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--text); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 6px; width: 1px; background: var(--stroke); }
.steps h3 { margin-bottom: 4px; padding-top: 2px; }
.steps p { color: var(--text-2); margin: 0; }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 24px; }
.audience > div { border-left: 2px solid var(--accent); padding-left: 20px; }
.audience p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; gap: 24px; } }

.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--text-2); }
.ticks .icon { color: var(--ok); margin-top: 3px; }

.cta { padding: 56px 0; border-top: 1px solid var(--stroke); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--text-2); }
.cta .actions { margin: 0; }
.cta-note { font-size: 14px; color: var(--text-3); margin: 8px 0 0; }
.actions + .cta-note, .hero .actions + .fine { margin-top: -4px; }

.toc ul, .toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 24px 0 0; }
.toc a { display: inline-block; padding: 4px 10px; border: 1px solid var(--stroke); border-radius: var(--radius); color: var(--text-2); text-decoration: none; font-size: 14px; }
.toc a:hover { border-color: var(--stroke-strong); color: var(--text); background: var(--surface-3); }
.toc-legal ol { flex-direction: column; gap: 2px; border-left: 2px solid var(--stroke); padding-left: 12px; margin-bottom: 32px; }
.toc-legal a { border: 0; padding: 2px 0; }
.toc-legal a:hover { background: none; text-decoration: underline; }
.feature { border-bottom: 1px solid var(--stroke); }
.feature:nth-of-type(even) { background: var(--bg-alt); }

/* product frames */
.frame { margin: 0; background: var(--surface); border: 1px solid var(--stroke-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-8); overflow: hidden; font-size: 12px; line-height: 1.45; color: var(--text); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--stroke); }
.frame-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--stroke-strong); }
.frame-url { margin-left: 12px; color: var(--text-3); font-size: 12px; }
.frame-app { display: grid; grid-template-columns: 136px minmax(0, 1fr); min-height: 300px; }
.frame-side { background: var(--surface-2); border-right: 1px solid var(--stroke); padding: 10px 8px; }
.frame-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 2px 6px 10px; }
.frame-search { border: 1px solid var(--stroke); border-radius: var(--radius); padding: 3px 8px; color: var(--text-3); margin-bottom: 8px; background: var(--surface); }
.frame-nav { padding: 4px 8px; border-radius: var(--radius); color: var(--text-2); position: relative; }
.frame-nav.is-active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.frame-nav.is-active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent); }
.frame-main { min-width: 0; }
.frame-crumbs { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--stroke); color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; }
.frame-crumbs .sep { color: var(--text-3); font-weight: 400; }
.frame-body { padding: 14px; }
.fhead-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ftitle { font-size: 16px; font-weight: 600; }
.fsub { color: var(--text-3); }
.fbtn { display: inline-block; border: 1px solid var(--stroke-strong); border-radius: var(--radius); padding: 2px 9px; font-weight: 600; white-space: nowrap; background: var(--surface); }
.fbtn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.finput { border: 1px solid var(--stroke); border-bottom-color: var(--input-stroke); border-radius: var(--radius); padding: 2px 9px; color: var(--text-3); white-space: nowrap; }
.ftable { border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; }
.frow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: 6px 10px; border-top: 1px solid var(--stroke); align-items: center; }
.frow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow > span:last-child:has(.fbtn) { text-align: right; }
.frow:first-child { border-top: 0; }
.fhead { background: var(--surface-2); color: var(--text-3); font-weight: 600; }
.frow code { font-size: 11px; padding: 0 3px; }
.flog { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 8px 10px; font-family: var(--mono); font-size: 11px; color: var(--text-2); overflow: hidden; }
.flog > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flog b { color: var(--text-3); font-weight: 400; margin-right: 6px; }
.fmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fmetrics > div { border: 1px solid var(--stroke); border-radius: var(--radius); padding: 8px 10px; }
.fmetrics span { display: block; color: var(--text-3); }
.fmetrics b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.bar { display: block; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.bar em { display: block; height: 100%; background: var(--accent); }
.bar .w23 { width: 23%; } .bar .w41 { width: 41%; } .bar .w58 { width: 58%; }
.st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.st-ok i { background: var(--ok); } .st-wait i { background: var(--wait); } .st-bad i { background: var(--bad); } .st-new i { background: var(--new); } .st-off i { background: var(--text-3); }
@media (max-width: 560px) {
  .frame-app { grid-template-columns: 1fr; }
  .frame-side { display: none; }
  .frow > span:nth-child(3):not(:last-child) { display: none; }
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.plan { padding: 28px 24px; border-left: 1px solid var(--stroke); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.soon { font-size: 13px; font-weight: 600; color: var(--wait); margin: 0 0 16px; }
.soon-open { color: var(--text-3); }
.price { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.1; margin: 0 0 4px; }
.price span { font-size: 15px; font-weight: 400; color: var(--text-3); }
.price-alt { color: var(--text-3); font-size: 14px; margin-bottom: 16px; }
.plan-blurb { color: var(--text-2); min-height: 3em; }
/* Each card lays its parts on shared rows, so prices, buttons and lists line up across a row of cards. */
@supports (grid-template-rows: subgrid) {
  .plans { grid-auto-rows: auto; }
  .plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .plan > .btn { align-self: start; }
  .plan-blurb { min-height: 0; }
}
.plan .ticks { margin-top: 20px; border-top: 1px solid var(--stroke); padding-top: 12px; }
.plan .ticks li { font-size: 15px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan:nth-child(3) { border-left: 0; } .plan:nth-child(n+3) { border-top: 1px solid var(--stroke); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan { border-left: 0; border-top: 1px solid var(--stroke); } .plan:first-child { border-top: 0; } .plan-blurb { min-height: 0; } }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap:focus-visible, .code pre:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.scroll-hint { display: none; font-size: 14px; color: var(--text-3); margin: 0 0 8px; }
@media (max-width: 760px) {
  .scroll-hint { display: block; }
  .compare th:first-child, .compare td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 0 var(--stroke); }
  .compare thead th:first-child { background: var(--surface-2); }
}
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--stroke); vertical-align: top; }
thead th { border-top: 0; background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--text-2); }
.compare td .icon { color: var(--ok); }
.compare td .icon-dash { color: var(--text-3); }
.plans + .fine { margin-top: 16px; }
.compare { table-layout: fixed; min-width: 600px; }
.compare thead th:first-child { width: 28%; }
.compare th, .compare td { overflow-wrap: anywhere; }
@media (max-width: 600px) { .compare tbody th { min-width: 128px; } th, td { padding: 10px 12px; } }
.plain th[scope="row"] { width: 34%; }
.status-table td:last-child { color: var(--text-2); }

.faq details { border-bottom: 1px solid var(--stroke); }
.faq details:first-child { border-top: 1px solid var(--stroke); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 8px; height: 8px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 26px; }
.faq details p { color: var(--text-2); padding-bottom: 8px; max-width: 70ch; }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 14px; color: var(--text); }
.opt { font-weight: 400; color: var(--text-3); }
input[type="text"], input[type="email"], input[type="date"], input:not([type]), select, textarea {
  font: 400 15px/22px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--stroke-strong); border-bottom-color: var(--input-stroke); border-radius: var(--radius); padding: 6px 10px; min-height: 36px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--accent-text); padding-bottom: 5px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom-color: var(--bad); }
textarea { resize: vertical; min-height: 120px; }
select { appearance: auto; }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.field-check label { font-weight: 400; color: var(--text-2); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { margin: 0; font-size: 14px; color: var(--text-2); }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--bad); }
.form-msg.is-ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile: keep its height reserved so the form does not jump when it loads */
.bot-check { min-height: 65px; }
.form-inline { max-width: 420px; }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--stroke); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--text-2); font-size: 15px; margin: 16px 0; }
.note .icon { color: var(--accent-text); margin-top: 2px; }
.note-lock { border-left-color: var(--ok); }
.note-lock .icon { color: var(--ok); }
.note b { color: var(--text); }

.code { border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; margin: 16px 0; background: var(--surface-2); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--stroke); font-size: 13px; color: var(--text-3); }
.code-copy { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--text-2); font: 600 13px var(--font); padding: 4px 8px; border-radius: var(--radius); cursor: pointer; }
.code-copy:hover { background: var(--surface-3); color: var(--text); }
.code pre { margin: 0; padding: 12px; overflow-x: auto; }
.code pre code { background: none; padding: 0; font-size: 14px; overflow-wrap: normal; white-space: pre; }
@media (max-width: 640px) { .code pre code { white-space: pre-wrap; overflow-wrap: anywhere; } }
.is-disabled .code { opacity: 0.6; }
.is-disabled .code-copy { display: none; }

/* docs and prose */
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; color: var(--text-2); }
.prose p { color: var(--text-2); max-width: 72ch; }
.prose b { color: var(--text); }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.docs-nav { position: sticky; top: 84px; align-self: start; }
.docs-nav-title { font-weight: 600; margin-bottom: 8px; }
.docs-nav-title a { color: var(--text); text-decoration: none; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--stroke); }
.docs-nav li a { display: block; padding: 6px 12px; color: var(--text-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.docs-nav li a:hover { color: var(--text); background: var(--surface-3); }
.docs-nav li a[aria-current="page"] { color: var(--text); font-weight: 600; border-left-color: var(--accent); }
.docs-body { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke); }
.docs-pager a { display: flex; flex-direction: column; text-decoration: none; font-weight: 600; }
.docs-pager a span { font-weight: 400; font-size: 13px; color: var(--text-3); }
.docs-pager .next { text-align: right; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } .docs-nav { position: static; } .docs-nav ul { display: flex; flex-wrap: wrap; border: 0; gap: 4px; } .docs-nav li a { border: 1px solid var(--stroke); border-radius: var(--radius); margin: 0; padding: 4px 10px; font-size: 14px; } .docs-nav li a[aria-current="page"] { border-color: var(--accent); } }
.doc-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--stroke); max-width: 760px; }
.doc-list a { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--stroke); text-decoration: none; }
.doc-list b { color: var(--text); font-size: 17px; }
.doc-list span { color: var(--text-2); }
.doc-list a:hover b { color: var(--accent-text); text-decoration: underline; }

/* account and sign-in */
.auth { padding: 64px 16px 80px; display: flex; flex-direction: column; align-items: center; }
.auth-box { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 32px; }
.auth-box h1 { font-size: 26px; }
.auth-sub { color: var(--text-2); }
.auth-box .form { max-width: none; gap: 14px; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--text-3); text-align: center; }
@media (max-width: 480px) { .auth { padding-top: 32px; } .auth-box { padding: 24px 20px; } }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.account-grid .panel:nth-child(2) { grid-row: span 2; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } .account-grid .panel:nth-child(2) { grid-row: auto; } }
.panel { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: 24px; }
.panel h2 { font-size: 20px; }
.kv { margin: 0 0 16px; }
.kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv > div { grid-template-columns: 1fr; gap: 0; } }
.state-ok { display: flex; gap: 10px; align-items: flex-start; }
.state-ok .icon { color: var(--ok); margin-top: 3px; }
.sk { display: block; background: var(--surface-3); border-radius: var(--radius); animation: sk 1.4s ease-in-out infinite; }
.sk-line { height: 14px; margin: 10px 0; }
.sk-line.short { width: 60%; }
.sk-block { height: 160px; margin-bottom: 24px; }
.account-wait { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@keyframes sk { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } * { transition: none !important; scroll-behavior: auto !important; } }

/* footer */
.site-footer { border-top: 1px solid var(--stroke); background: var(--bg-alt); padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-3); margin: 12px 0 16px; max-width: 32ch; }
.footer-col h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; font-family: var(--font); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { display: inline-block; min-height: 28px; padding: 3px 0; line-height: 22px; color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--stroke); color: var(--text-3); }
.footer-legal p { margin: 0; }
.theme-switch { display: inline-flex; border: 1px solid var(--stroke-strong); border-radius: var(--radius); overflow: hidden; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; border: 0; background: var(--surface); color: var(--text-2); cursor: pointer; }
.theme-switch button + button { border-left: 1px solid var(--stroke); }
.theme-switch button:hover { background: var(--surface-3); color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media print { .site-header, .site-footer, .menu, .actions { display: none; } body { background: #fff; color: #000; } }
.table-wrap + .fine, .table-wrap + p { margin-top: 12px; }
.fnote { margin-top: 10px; }
.footer-home { display: inline-block; }
