/* finetuna design system. Source: DESIGN.md §3-§6 and the Ledger / energy B artboard
   (docs/design/2026-09-17-finetuna-r2/options/ledger/landing-energy-b.html). Tokens first, then base, then components. */

:root {
  --paper: #F7F9F8; --paper-2: #EDF1EF; --ink: #14201D; --ink-2: #445350; --muted: #5F6E6A;
  --rule: #C9D3D0; --rule-2: #7F8E8A;
  --accent: #0B6B5D; --accent-2: #095A4E; --accent-ink: #F7F9F8;
  --ok: #1E7A3C; --warn: #8A5300; --crit: #B3261E; --focus: #14201D;
  --strip-bg: #FFE58A; --strip-ink: #14201D;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --t-1: 12px; --t-2: 14px; --t-3: 16px; --t-4: 18px; --t-5: 22px; --t-6: 28px; --t-7: 36px; --t-8: 48px; --t-9: 60px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-1: 4px; --r-2: 8px;
  --measure: 65ch; --page: 1120px;
  --dur: 120ms;
  
      --ctl-h: 36px; --row-py: var(--s-2); --body: 14px; --body-l: 15px;
      --h1: var(--t-7); --h1-l: var(--t-8); --h2: var(--t-5); --h2-l: var(--t-6);
      --sec: var(--s-7); --sec-l: var(--s-8); --gap: var(--s-4); --stack: var(--s-3);
      --table: 13px; --meta: var(--t-1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121917; --paper-2: #1B2422; --ink: #ECF1EF; --ink-2: #B3C0BC; --muted: #93A29E;
    --rule: #2C3835; --rule-2: #6D7C78;
    --accent: #5FC4B2; --accent-2: #7AD3C3; --accent-ink: #0F1A18;
    --ok: #6CCB86; --warn: #E0A95A; --crit: #F28B82; --focus: #ECF1EF;
  }
}
@media (max-width: 599px) { :root { --ctl-h: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: var(--body)/1.5 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; }
body.landing { font-size: var(--body-l); }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 var(--stack); line-height: 1.15; font-weight: 650; overflow-wrap: anywhere; min-width: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--h1); }
.landing h1 { font-size: var(--h1-l); line-height: 1.05; }
h2 { font-size: var(--h2); }
.landing h2 { font-size: var(--h2-l); }
h3 { font-size: var(--t-4); }
p { margin: 0 0 var(--stack); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
a:active { color: var(--ink); }
code, .mono { font-family: var(--mono); font-size: 0.93em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.meta { color: var(--ink-2); font-size: var(--meta); }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 900px) { .wrap { padding: 0 var(--s-6); } }

/* focus: instant, 2px, offset, one colour, every control */
:focus { outline: 2px solid transparent; outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }


/* top bar */
.top { background: var(--paper-2); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); min-height: 56px; padding-top: var(--s-1); padding-bottom: var(--s-1); }
.brand { font-weight: 700; font-size: var(--t-4); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; gap: var(--s-3); }
.brand small { font-weight: 400; font-size: var(--t-1); color: var(--ink-2); }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.top nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--s-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--rule-2); }
.top nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }
@media (max-width: 599px) { .brand small { display: none; } }

/* buttons: 8 states in CSS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--ctl-h); padding: 0 var(--s-4); border: 1px solid var(--accent); border-radius: var(--r-1); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur), border-color var(--dur), color var(--dur); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn:active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--paper-2); color: var(--accent-2); }
.btn.secondary:active { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn.quiet { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.btn.quiet:hover { background: var(--paper-2); color: var(--ink); }
.btn.quiet:active { border-color: var(--ink); color: var(--ink); }
.btn.busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: var(--table); }
th, td { text-align: left; padding: var(--row-py) var(--s-3); border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; }
thead th { border-bottom: 2px solid var(--rule-2); }
tbody tr:hover { background: var(--paper-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { text-align: left; color: var(--ink-2); font-size: var(--meta); padding: 0 0 var(--s-2); }
@media (max-width: 599px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; border-bottom: 2px solid var(--rule-2); padding: var(--s-2) 0; }
  table.stack td { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--s-2); border: 0; padding: var(--s-1) 0; text-align: left; }
  table.stack td::before { content: attr(data-label); color: var(--ink-2); font-weight: 600; }
  table.stack td.num { white-space: normal; }
  table.stack td > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
}

/* status: dot + word, failures weigh 600 */
.status { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); flex: none; }
.status.awaiting_payment::before { background: var(--warn); }
.status.paid::before, .status.running::before, .status.trained::before { background: var(--accent); }
.status.running::before { animation: pulse 1.6s ease-in-out infinite; }
.status.delivered::before { background: var(--ok); }
.status.dataset_error::before, .status.failed::before { background: var(--crit); }
.status.dataset_error, .status.failed { color: var(--crit); font-weight: 600; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* forms */
.field { display: grid; gap: var(--s-1); margin-bottom: var(--gap); max-width: 44rem; }
.field > label, .field > .legend { font-weight: 600; }
.help { color: var(--ink-2); font-size: var(--meta); min-height: 1lh; }
.error-text { color: var(--crit); font-size: var(--meta); font-weight: 600; min-height: 1lh; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-1);
  min-height: var(--ctl-h); padding: 0 var(--s-3); width: 100%; max-width: 100%; outline: 2px solid transparent; outline-offset: 1px; }
textarea { padding: var(--s-2) var(--s-3); min-height: 6rem; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { background: var(--paper-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--crit); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: var(--s-1); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.choice { display: inline-flex; align-items: center; min-height: 44px; gap: var(--s-1); cursor: pointer; }
input[type="radio"], input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: 0 -8px 0 -12px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; flex: none; }
input[type="radio"]::before, input[type="checkbox"]::before { content: ""; width: 20px; height: 20px; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 50%; }
input[type="checkbox"]::before { border-radius: var(--r-1); }
input[type="radio"]:hover::before, input[type="checkbox"]:hover::before { background: var(--paper-2); }
input[type="radio"]:checked::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--paper); }
input[type="checkbox"]:checked::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--paper); }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: -8px; }
input[type="radio"]:disabled, input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
/* switch: still a checkbox */
input.switch { width: 44px; height: 44px; margin: 0; }
input.switch::before { width: 36px; height: 20px; border-radius: 10px; border: 1px solid var(--rule-2); background: var(--paper-2); box-shadow: inset 16px 0 0 -4px var(--rule-2); transition: background-color var(--dur), box-shadow var(--dur); }
input.switch:checked::before { background: var(--accent); border-color: var(--accent); box-shadow: inset -16px 0 0 -4px var(--accent-ink); }
input.switch:focus-visible { outline-offset: -3px; }
.drop { position: relative; display: grid; gap: var(--s-1); padding: var(--s-5) var(--s-4); border: 1px dashed var(--rule-2); border-radius: var(--r-2); background: var(--paper); min-height: 44px; }
.drop:hover { background: var(--paper-2); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.drop input[type="file"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop .cta { color: var(--accent); text-decoration: underline; font-weight: 600; }
.drop.has-file { border-style: solid; }
.alert { border: 1px solid var(--crit); border-left-width: 1px; border-radius: var(--r-1); padding: var(--s-3) var(--s-4); color: var(--ink); background: var(--paper); max-width: 44rem; }
.alert strong { color: var(--crit); }
.note { color: var(--ink-2); font-size: var(--meta); max-width: 44rem; }
.warnline { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--ink); font-size: var(--meta); max-width: 44rem; }
.warnline strong { color: var(--warn); }

/* panels and layout */
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--gap) 0; }
.panel-head h1 { margin: 0; }
.card { border: 1px solid var(--rule); border-radius: var(--r-2); padding: var(--gap); background: var(--paper); }
.card h2, .card h3 { margin-top: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-1) var(--s-4); margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv dt { overflow-wrap: anywhere; }
@media (max-width: 599px) { .landing .kv { grid-template-columns: minmax(0, 1fr); } .landing .kv dd { margin-bottom: var(--s-3); } }
.statusline { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: center; font-variant-numeric: tabular-nums; margin-bottom: var(--s-3); }
progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; background: var(--paper-2); border-radius: var(--r-1); overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: var(--paper-2); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.phases { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--meta); color: var(--ink-2); }
.phases li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.phases li.done { text-decoration: line-through; text-decoration-color: var(--rule-2); }
.section { padding: var(--sec) 0; border-top: 1px solid var(--rule); }
.landing .section { padding: var(--sec-l) 0; }
.section:first-of-type { border-top: 0; }

/* landing */
.hero { padding: var(--sec-l) 0 calc(var(--sec-l) * 1.4); }
.hero .wrap { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); } }
.hero p.lede { font-size: calc(var(--body-l) * 1.15); max-width: 34em; }
.files { border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--paper-2); padding: var(--s-2) 0 0; }
.files caption { padding: var(--s-2) var(--s-3); }
.files td, .files th { border-color: var(--rule); }
.files tbody tr:last-child td { border-bottom: 0; }
.files tbody tr:hover { background: transparent; }
.files td:first-child { font-family: var(--mono); font-size: 0.93em; white-space: nowrap; }
@media (max-width: 899px) {
  .files thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .files tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .files td { border-bottom: 0; }
  .files td:first-child { grid-column: 1 / -1; padding-bottom: 0; font-weight: 600; }
  .files td:nth-child(2) { grid-column: 2; grid-row: 2; }
  .files td:nth-child(3) { grid-column: 1; grid-row: 2; }
  .files tbody tr + tr { border-top: 1px solid var(--rule); }
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); max-width: 44rem; }
.steps li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); gap: var(--s-3); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-weight: 600; padding-top: 0.15em; }
.steps h3 { margin-bottom: var(--s-1); }
.two { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-8); } }
.prices { display: grid; gap: var(--gap); margin: var(--gap) 0 var(--s-3); }
@media (min-width: 720px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price { border: 1px solid var(--rule); border-radius: var(--r-2); padding: var(--gap); display: grid; gap: var(--s-1); align-content: start; }
.price h3 { margin: 0; }
.price .big { font-size: var(--h2-l); font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mods { color: var(--ink-2); max-width: none; }
.estimate { border: 1px solid var(--rule-2); border-radius: var(--r-2); padding: var(--gap); background: var(--paper-2); display: grid; gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 900px) { .estimate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.estimate .field { margin-bottom: 0; }
.estimate output { display: block; }
.result { border-top: 2px solid var(--rule-2); padding-top: var(--s-3); font-variant-numeric: tabular-nums; }
.result .big { font-size: var(--h2); font-weight: 650; }
.faq details { border-top: 1px solid var(--rule); max-width: 44rem; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: var(--s-3) 0; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: var(--s-3); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--accent); width: 1em; flex: none; }
.faq details[open] summary::before { content: "\2212"; }
.faq summary:hover { color: var(--accent-2); }
.faq details > div { padding: 0 0 var(--s-4) calc(1em + var(--s-3)); }
footer.foot { border-top: 2px solid var(--rule-2); padding: var(--sec) 0; color: var(--ink-2); font-size: var(--meta); }
footer.foot .wrap { display: grid; gap: var(--gap); }
@media (min-width: 720px) { footer.foot .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
footer.foot li a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; white-space: nowrap; }

/* new job layout */
.newjob { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .newjob { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-8); } }
.summary { border: 1px solid var(--rule-2); border-radius: var(--r-2); padding: var(--gap); background: var(--paper-2); display: grid; gap: var(--s-3); }
.summary h2 { margin: 0; font-size: var(--t-4); }
.summary .kv dd { text-align: right; }
.summary .big { font-size: var(--h2); font-weight: 650; font-variant-numeric: tabular-nums; }
.pkgmap { font-size: var(--meta); }
.pkgmap td:last-child { font-weight: 600; }
.stickyhint { position: sticky; top: var(--s-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Round 2 energy pass (2026-09-17). Shared by A and B: type-scale contrast and the file table as an object. */
.landing h1 { font-size: var(--t-9); line-height: 1.0; letter-spacing: -0.02em; }
.hero p.lede { font-size: var(--t-4); max-width: 30em; }
.landing h2 { font-size: var(--t-7); }
.receipt { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 0 0 var(--r-2) var(--r-2); padding: 0; }
.receipt caption { font-weight: 600; color: var(--ink); font-size: var(--t-2); padding: 0 0 var(--s-2); caption-side: top; }
.receipt td, .receipt th { border-color: var(--rule); }
.receipt tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); font-family: var(--font); font-size: inherit; }
.receipt tbody tr:last-child td { border-bottom: 0; }
.receipt th { color: var(--ink-2); }
.band { background: var(--paper-2); border-top: 0; }
.band + .section { border-top: 0; }

/* B only: the first screen and the footer flip to ink; every text colour in the flipped blocks is set in the same rule (hallmark 41). */
:root { --hero-bg: #14201D; --hero-fg: #F7F9F8; --hero-fg-2: #B3C0BC; --hero-accent: #5FC4B2; --hero-accent-2: #7AD3C3; --hero-accent-ink: #0F1A18; --hero-warm: #E0A95A; --hero-rule: #2C3835; }
@media (prefers-color-scheme: dark) { :root { --hero-bg: #1B2422; --hero-rule: #2C3835; } }
.top.top--ink { background: var(--hero-bg); color: var(--hero-fg); }
.top--ink .brand, .top--ink nav a { color: var(--hero-fg); }
.top--ink .brand small { color: var(--hero-fg-2); }
.top--ink nav a:hover { border-bottom-color: var(--hero-fg-2); }
.top--ink :focus-visible { outline-color: var(--hero-fg); }
.hero--ink { background: var(--hero-bg); color: var(--hero-fg); }
.hero--ink .btn { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-accent-ink); }
.hero--ink .btn:hover { background: var(--hero-accent-2); border-color: var(--hero-accent-2); color: var(--hero-accent-ink); }
.hero--ink .btn:active { background: var(--hero-fg); border-color: var(--hero-fg); color: var(--hero-bg); }
.hero--ink .btn.secondary { background: transparent; color: var(--hero-accent); }
.hero--ink .btn.secondary:hover { background: var(--hero-rule); color: var(--hero-accent-2); }
.hero--ink :focus-visible { outline-color: var(--hero-fg); }
.hero--ink .warm { color: var(--hero-warm); font-weight: 600; }
.hero--ink .receipt caption { color: var(--hero-fg); }
.hero--ink .receipt { border-top-color: var(--hero-accent); }
.hero--ink .sample { color: var(--hero-fg-2); margin-top: var(--s-3); }
.hero--ink .sample a { color: var(--hero-accent); }
.hero--ink .sample a:hover { color: var(--hero-accent-2); }
footer.foot--ink { background: var(--hero-bg); color: var(--hero-fg-2); border-top: 0; }
.foot--ink strong { color: var(--hero-fg); }
.foot--ink a { color: var(--hero-accent); }
.foot--ink a:hover { color: var(--hero-accent-2); }
.foot--ink :focus-visible { outline-color: var(--hero-fg); }
.section + .foot--ink, .faq + .foot--ink { border-top: 0; }

/* aliases used by older components; new code uses the DESIGN.md names above */
:root {
  --bg: var(--paper); --bg-2: var(--paper-2); --fg: var(--ink); --fg-2: var(--ink-2);
  --line: var(--rule); --line-strong: var(--rule-2); --accent-fg: var(--accent-ink);
  --err: var(--crit); --accent-2-tint: #DCEBE7; --ok-2: #DDF0E3; --warn-2: #F6E9D3; --err-2: #F7E0DE;
  --fs-0: var(--t-1); --fs-1: var(--t-2); --fs-2: var(--t-4); --fs-3: var(--t-5); --fs-4: var(--t-6); --fs-5: var(--t-8);
  --max: var(--page);
}
@media (prefers-color-scheme: dark) { :root { --accent-2-tint: #173430; --ok-2: #15301E; --warn-2: #3A2A0C; --err-2: #3D1714; } }
.small { font-size: var(--t-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 599px) { .grid-2 { grid-template-columns: 1fr; } }
.btn-primary { }
.btn-sm { min-height: 32px; padding: 0 var(--s-3); font-size: var(--t-1); }
.btn-danger { color: var(--crit); border-color: var(--crit); background: transparent; }
.table-scroll { overflow-x: auto; }
.landing .table-scroll { margin: var(--s-4) 0 0; }
.landing #files table td:first-child { font-family: var(--mono); vertical-align: top; }
.landing #files table td { padding-top: var(--s-3); padding-bottom: var(--s-3); }
pre { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-1); padding: var(--s-3) var(--s-4); overflow-x: auto; margin: 0 0 var(--s-4); font: var(--t-2)/1.45 var(--mono); }
.hint { color: var(--ink-2); font-size: var(--meta); margin: var(--s-1) 0 0; }
.error { color: var(--crit); font-size: var(--meta); font-weight: 600; margin-top: var(--s-1); }
.check { display: flex; gap: var(--s-1); align-items: flex-start; font-weight: 400; min-height: 44px; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.radio-row label { display: inline-flex; align-items: center; min-height: 44px; gap: var(--s-1); font-weight: 400; margin: 0; }
.notice { border: 1px solid var(--rule-2); border-radius: var(--r-1); padding: var(--s-3) var(--s-4); background: var(--paper); margin: 0 0 var(--gap); max-width: 44rem; }
.notice p:last-child { margin: 0; }
.notice-warn { border-color: var(--warn); } .notice-warn strong { color: var(--warn); }
.notice-err { border-color: var(--crit); } .notice-err strong { color: var(--crit); }
.notice-ok { border-color: var(--ok); } .notice-ok strong { color: var(--ok); }
.badge { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; font-size: var(--t-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); flex: none; }
.badge-info::before { background: var(--accent); }
.badge-ok::before { background: var(--ok); }
.badge-warn::before { background: var(--warn); }
.badge-err::before { background: var(--crit); }
.badge-err { color: var(--crit); font-weight: 600; }
.badge-live::before { animation: pulse 1.6s ease-in-out infinite; }
.kv.wide { grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-5); }
