@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-raised: #111;
  --text: #ededed;
  --muted: #888;
  --faint: #5c5c5c;
  --line: #262626;
  --line-strong: #3f3f3f;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.08);
  --progress: #f5a524;
  --progress-bg: rgba(245, 165, 36, 0.08);
  --radius: 8px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  caret-color: #fff;
}

::selection { background: #fff; color: #000; }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }

a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--text); }

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: saturate(180%) blur(8px);
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tabs { display: flex; gap: 4px; }
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); }

/* Page */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.intro { margin-bottom: 28px; max-width: 620px; }

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.125rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intro p { margin: 0; color: var(--muted); }
#activateLede { display: grid; }
#activateLede > span { grid-area: 1 / 1; }
#activateLede > .off { visibility: hidden; }

h2 { margin: 0; font-size: 15px; font-weight: 600; }

.layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; }
  .status { position: sticky; top: 80px; }
}

.form,
.status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

/* Form */
.form { padding: 20px; }

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 20px;
}

fieldset:disabled .field,
fieldset:disabled .guide { opacity: 0.55; }

.field { display: grid; gap: 8px; min-width: 0; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}

label { font-size: 13px; font-weight: 500; }

input,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: #000;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.45;
  font-size: 12.5px;
  word-break: break-all;
}

input::placeholder,
textarea::placeholder { color: var(--faint); }

input:focus,
textarea:focus {
  outline: none;
  border-color: #777;
  box-shadow: 0 0 0 1px #777;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--danger); }

.hint { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.hint[data-tone="error"] { color: var(--danger); }
.hint[data-tone="ok"] { color: var(--text); }
.hint[data-tone="ok"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
  vertical-align: 2px;
}

.text-button {
  min-height: 32px;
  padding: 0 4px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.text-button:hover { color: var(--text); }

/* Guide */
.guide {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
}

.guide summary {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
  flex: none;
}
.guide[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.guide ol {
  margin: 0;
  padding: 4px 12px 0 36px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.guide ol li::marker { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.guide p {
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 165, 36, 0.3);
  background: var(--progress-bg);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}

/* Buttons */
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.primary {
  width: 100%;
  margin-top: 24px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.primary:hover { background: #d6d6d6; border-color: #d6d6d6; }
.primary:disabled { background: #1a1a1a; border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.primary[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}

.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.secondary:hover { background: var(--surface-raised); border-color: #5a5a5a; }

.form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: var(--danger-bg);
  border-radius: 6px;
  color: var(--danger);
  font-size: 13px;
}

/* Status panel */
.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}

.badge[data-tone="progress"] { border-color: rgba(245, 165, 36, 0.4); color: var(--progress); }
.badge[data-tone="progress"] .dot { background: var(--progress); animation: pulse 1.4s ease-in-out infinite; }
.badge[data-tone="hold"] { border-color: rgba(245, 165, 36, 0.4); color: var(--progress); }
.badge[data-tone="hold"] .dot { background: var(--progress); }
.badge[data-tone="success"] { border-color: rgba(52, 211, 153, 0.4); color: var(--success); }
.badge[data-tone="success"] .dot { background: var(--success); }
.badge[data-tone="danger"] { border-color: rgba(248, 113, 113, 0.4); color: var(--danger); }
.badge[data-tone="danger"] .dot { background: var(--danger); }
.badge[data-tone="neutral"] .dot { background: var(--text); }

.meta {
  margin: 0;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
}

.meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.meta > div + div { border-top: 1px dashed var(--line); }

.meta dt { color: var(--muted); font-size: 13px; flex: none; }
.meta dd {
  margin: 0;
  font-size: 13.5px;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-id { display: flex; align-items: center; gap: 8px; }
.meta-id .mono { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }

/* Stages */
.stages {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
}

.stages li {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  align-items: start;
}

.stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9.5px;
  top: 32px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}
.stages li[data-state="done"]:not(:last-child)::after { background: var(--line-strong); }

.node {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
}

.node svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node .tick,
.node .cross { display: none; }

.stage-text { display: grid; gap: 1px; min-width: 0; }
.stage-name { font-size: 14px; color: var(--muted); }
.stage-desc { font-size: 12.5px; color: var(--faint); }
.stage-time { font-size: 12px; color: var(--faint); padding-top: 2px; }

.stages li[data-state="active"] .node { border-color: rgba(245, 165, 36, 0.35); }
.stages li[data-state="active"] .node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--progress);
  border-right-color: var(--progress);
  animation: spin 0.9s linear infinite;
}
.stages li[data-state="active"] .stage-name { color: var(--text); font-weight: 500; }
.stages li[data-state="active"] .stage-desc { color: var(--muted); }
.stages li[data-state="active"] .stage-time { color: var(--progress); }

.stages li[data-state="done"] .node { background: var(--text); border-color: var(--text); }
.stages li[data-state="done"] .node svg { stroke: #000; }
.stages li[data-state="done"] .tick { display: block; }
.stages li[data-state="done"] .stage-name { color: var(--text); }
.stages li[data-state="done"] .stage-time { color: var(--muted); }

.stages li[data-state="blocked"] .node { background: var(--danger); border-color: var(--danger); }
.stages li[data-state="blocked"] .node svg { stroke: #000; }
.stages li[data-state="blocked"] .cross { display: block; }
.stages li[data-state="blocked"] .stage-name { color: var(--danger); font-weight: 500; }
.stages li[data-state="blocked"] .stage-time { color: var(--danger); }

.stages li[data-state="hold"] .node { border-color: var(--progress); }
.stages li[data-state="hold"] .node::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--progress);
}
.stages li[data-state="hold"] .stage-name { color: var(--progress); font-weight: 500; }

/* Result */
.result {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  font-size: 14px;
}
.result p { margin: 0; overflow-wrap: anywhere; }
.result[data-tone="idle"] { color: var(--muted); }
.result[data-tone="progress"] { border-color: rgba(245, 165, 36, 0.3); }
.result[data-tone="hold"] { border-color: rgba(245, 165, 36, 0.4); background: var(--progress-bg); }
.result[data-tone="success"] { border-color: rgba(52, 211, 153, 0.35); background: var(--success-bg); }
.result[data-tone="danger"] { border-color: rgba(248, 113, 113, 0.35); background: var(--danger-bg); }

.result-code { margin-top: 8px !important; font-size: 12px; color: var(--muted); }

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions:has(:not([hidden])) { margin-top: 12px; }

/* Key check */
.checks {
  list-style: none;
  margin: 0;
  padding: 4px 16px 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.checks li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 10px 0;
  align-items: baseline;
}
.checks li + li { border-top: 1px dashed var(--line); }

.checks .dot { align-self: center; grid-row: span 2; }
.checks li[data-tone="success"] .dot { background: var(--success); }
.checks li[data-tone="danger"] .dot { background: var(--danger); }
.checks li[data-tone="hold"] .dot { background: var(--progress); }

.check-code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-text { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.checks li[data-tone="success"] .check-text { color: var(--success); }
.checks li[data-tone="danger"] .check-text { color: var(--danger); }
.checks li[data-tone="hold"] .check-text { color: var(--progress); }

.checks-empty { margin: 0; padding: 12px 16px 16px; font-size: 13px; color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* API docs (#api) */
.layout.api-layout { grid-template-columns: 256px minmax(0, 1fr); gap: 32px; }
.api-sidebar { position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow-y: auto; }
.status.docs { position: static; }
.docs-copy { width: 100%; margin-top: 12px; }
.docs-nav { display: grid; gap: 4px; padding: 4px 0; }
.docs-nav h2 { margin: 0 0 8px; padding: 0 12px; font-size: 13px; color: var(--muted); }
.docs-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s, background 0.2s; }
.docs-nav a:hover, .docs-nav a:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.docs { padding: 32px; min-width: 0; }
.docs h2 { margin: 40px 0 16px; font-size: 20px; letter-spacing: -0.015em; scroll-margin-top: 88px; }
.docs h2:first-child { margin-top: 0; }
.docs p { margin: 16px 0; max-width: 72ch; font-size: 15px; line-height: 1.75; color: var(--muted); }
.docs code { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.docs pre { margin: 16px 0; padding: 20px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.7; white-space: pre; overflow-x: auto; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.docs-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, 0.03); }
.docs-table th, .docs-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table td { min-width: 160px; }
.docs-table td:last-child { min-width: 240px; }
.docs-table td code { font-size: 12px; }
.docs-table tbody tr { transition: background 0.2s; }
.docs-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
@media (max-width: 1000px) {
  .layout.api-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .docs { padding: 24px; }
}
@media (max-width: 760px) {
  .layout.api-layout { grid-template-columns: minmax(0, 1fr); }
  .api-sidebar { position: static; max-height: none; overflow-y: visible; }
  .docs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav h2 { grid-column: 1 / -1; }
  .docs h2 { scroll-margin-top: 72px; }
}
@media (max-width: 480px) {
  .docs { padding: 20px; }
  .docs pre { padding: 16px; font-size: 12px; }
  .docs-nav { gap: 4px 0; }
  .docs-nav a { padding-left: 8px; padding-right: 8px; font-size: 13px; }
}

/* Service switch: ChatGPT or Claude, the form below follows it. */
.logo { width: 16px; height: 16px; flex: none; }
.logo-claude { color: #d97757; }
.wordmark-logos { display: inline-flex; gap: 6px; }

/* Light from above: the colour follows the chosen service, the Codex picture lies over the gradient fallback. */
body.activate-page { --light: 230 236 242; --rim: 230 236 242; }
body.activate-page:has(.service-switch [data-service="claude"][aria-checked="true"]) { --light: 255 122 46; --rim: 217 119 87; }
body.activate-page::before {
  background:
    radial-gradient(ellipse 80% 65% at 50% -12%, rgb(var(--light) / 0.26), rgb(var(--light) / 0.07) 45%, transparent 75%),
    radial-gradient(ellipse 36% 32% at 50% 2%, rgb(var(--light) / 0.18), transparent 70%),
    var(--bg);
  transition: background 0.4s;
}
body.activate-page::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("/static/img/activate-bg.webp") center 20px / max(1600px, 100%) auto no-repeat;
  opacity: 0.5;
  filter: saturate(0) brightness(1.1);
  transition: filter 0.4s;
}
body.activate-page:has(.service-switch [data-service="claude"][aria-checked="true"])::after { filter: none; }

/* Cards are frosted glass over the light: the top rim catches the service colour. */
.activate-page .form,
.activate-page .status {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 35%), rgba(10, 10, 14, 0.45);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(var(--light) / 0.22), 0 24px 64px -28px rgba(0, 0, 0, 0.9);
}
.activate-page input,
.activate-page textarea { background: rgba(0, 0, 0, 0.28); border-color: rgba(255, 255, 255, 0.1); }
.activate-page .stock,
.activate-page .guide { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }

/* Service tiles: graphite glass, the chosen one catches the service light on its rim. */
.service-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 176px));
  gap: 12px;
  margin-bottom: 24px;
}
.service-switch button {
  --rim: 230 236 242;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 45%), rgba(14, 14, 20, 0.35);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.3s, transform 0.2s var(--ease);
}
.service-switch [data-service="claude"] { --rim: 217 119 87; }
.service-switch button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 50% 0%, rgb(var(--rim) / 0.28), transparent 70%), url("/static/img/tile-cool.webp") center top / cover no-repeat;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-switch [data-service="claude"]::before {
  background: radial-gradient(90% 70% at 50% 0%, rgb(var(--rim) / 0.3), transparent 70%), url("/static/img/tile-warm.webp") center top / cover no-repeat;
}
.service-switch button:hover { color: var(--text); border-color: rgb(var(--rim) / 0.35); }
.service-switch button:hover::before { opacity: 0.3; }
.service-switch button[aria-checked="true"] {
  color: var(--text);
  border-color: rgb(var(--rim) / 0.6);
  box-shadow: inset 0 1px 0 rgb(var(--rim) / 0.5), 0 16px 48px -16px rgb(var(--rim) / 0.5);
}
.service-switch button[aria-checked="true"]::before { opacity: 0.6; }
.service-switch button:active { transform: translateY(1px); }
.service-switch .logo { width: 28px; height: 28px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)); }
.service-switch button[aria-checked="false"] .logo { opacity: 0.55; }
.service-switch .service-count { position: absolute; top: 14px; right: 14px; }
.service-count {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--line);
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.stock {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
}
.stock-label { font-size: 13px; color: var(--muted); }
.stock dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stock dl div { display: grid; gap: 2px; min-width: 0; }
.stock dt { font-size: 13px; color: var(--muted); }
.stock dd { margin: 0; font-size: 20px; font-weight: 600; }
.stock dd[data-empty="true"] { color: var(--faint); }

@media (max-width: 480px) {
  .page { padding-top: 28px; }
  .wordmark { font-size: 14px; }
  .tabs a { padding: 0 8px; }
  .form { padding: 16px; }
  .result-actions > * { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stages li[data-state="active"] .node::before { border-color: var(--progress); }
}
