/* ==========================================================================================================
   The design system: tokens, base, components. One dark theme, built like an instrument panel:
   carbon surfaces, hairline structure, one hot accent, numbers in a monospaced face.
   Nothing here is loaded from another origin: the three typefaces are served from /static/fonts (SIL OFL).
   ========================================================================================================== */

/* ---------------------------------------------------------------------------------------------- typefaces */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  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: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  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 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  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 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* ------------------------------------------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  /* surfaces, from the page up */
  --bg-0: #07080a;
  --bg-1: #0b0d10;
  --bg-2: #111418;
  --bg-3: #171b21;
  --bg-4: #1f242c;
  --line: #222831;
  --line-strong: #323a46;

  /* text: every pair below clears WCAG AA on bg-0 … bg-3 */
  --fg-0: #f3f5f8;
  --fg-1: #b9c0cb;
  --fg-2: #8791a0;

  /* the accent and the colours data is drawn in */
  --accent: #ff7a1a;
  --accent-hi: #ff9440;
  --accent-lo: #e2650c;
  --accent-ink: #160b02;
  --accent-wash: rgb(255 122 26 / 0.12);
  --accent-line: rgb(255 122 26 / 0.42);
  --cyan: #3ecfd0;
  --blue: #6b97ff;
  --violet: #a992ff;
  --ok: #3ddc97;
  --warn: #f6c453;
  --bad: #ff6464;
  --ok-wash: rgb(61 220 151 / 0.12);
  --warn-wash: rgb(246 196 83 / 0.13);
  --bad-wash: rgb(255 100 100 / 0.13);

  /* type */
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --text-hero: clamp(2.25rem, 1.1rem + 3.1vw, 3.75rem);

  /* space: a 4px step */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  /* shape and depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --ring: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);
  --shadow-1: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 1px 2px rgb(0 0 0 / 0.5);
  --shadow-2: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 12px 32px -12px rgb(0 0 0 / 0.7);
  --shadow-3: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 32px 80px -24px rgb(0 0 0 / 0.85);
  --glow: 0 0 0 1px var(--accent-line), 0 18px 48px -18px rgb(255 122 26 / 0.45);

  /* motion: quick, eased out, never bouncing */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms; --t: 200ms; --t-slow: 420ms;

  --page: 1180px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
}

/* --------------------------------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg-0); color: var(--fg-0);
  font: 400 var(--text-md)/1.55 var(--font-body); font-feature-settings: "cv05", "cv11", "ss01"; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-hi); text-decoration-color: currentColor; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
input[type="file"] { height: auto; padding: var(--s-2); line-height: 1.4; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: var(--s-3); min-height: 2rem; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg-3); color: var(--fg-0); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
input[type="date"] { color-scheme: dark; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { box-shadow: var(--ring); border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
[hidden] { display: none !important; }
.sr-only { 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: var(--s-4); top: -4rem; z-index: 100; padding: var(--s-2) var(--s-4); background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s-4); }

/* small words that label things: wide, upper case, quiet */
.eyebrow { font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow--accent { color: var(--accent); }
.eyebrow + h1, .eyebrow + h2 { margin-top: var(--s-3); }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero", "ss01"; letter-spacing: -0.02em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.muted { color: var(--fg-1); }
.quiet { color: var(--fg-2); }
.accent { color: var(--accent); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }

/* layout helpers */
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack--sm { gap: var(--s-2); } .stack--lg { gap: var(--s-8); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.row--end-items { align-items: flex-end; }
.grow { flex: 1 1 0; min-width: 0; }
.gap { height: var(--s-6); }     /* the distance between two blocks that no container sets */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .span-2 { grid-column: auto; } }

/* --------------------------------------------------------------------------------------------------- icons */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; stroke-width: 1.4; }

/* ------------------------------------------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--bg-3); --btn-fg: var(--fg-0); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-5);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-line); border-radius: var(--r-md);
  font-weight: 600; font-size: var(--text-md); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { --btn-bg: var(--bg-4); --btn-line: #414b5a; color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { border-radius: var(--r-md); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-line: transparent; box-shadow: 0 1px 0 rgb(255 255 255 / 0.28) inset, 0 10px 28px -10px rgb(255 122 26 / 0.6); }
.btn--primary:hover { --btn-bg: var(--accent-hi); --btn-line: transparent; box-shadow: 0 1px 0 rgb(255 255 255 / 0.32) inset, 0 16px 36px -10px rgb(255 122 26 / 0.7); }
.btn--ghost { --btn-bg: transparent; --btn-line: transparent; box-shadow: none; color: var(--fg-1); }
.btn--ghost:hover { --btn-bg: var(--bg-3); --btn-line: transparent; color: var(--fg-0); }
.btn--danger { --btn-bg: var(--bad-wash); --btn-fg: var(--bad); --btn-line: rgb(255 100 100 / 0.35); }
.btn--danger:hover { --btn-bg: rgb(255 100 100 / 0.2); --btn-line: rgb(255 100 100 / 0.55); }
.btn--sm { min-height: 2.125rem; padding: 0 var(--s-3); font-size: var(--text-sm); border-radius: var(--r-sm); }
.btn--lg { min-height: 3.25rem; padding: 0 var(--s-8); font-size: var(--text-lg); border-radius: var(--r-lg); }
.btn--block { width: 100%; }
/* what cannot be pressed is grey and flat - never a dimmer orange that still reads as the action of the page */
.btn[disabled], .btn[aria-disabled="true"] { --btn-bg: var(--bg-3); --btn-fg: var(--fg-2); --btn-line: var(--line); box-shadow: none; pointer-events: none; }
.btn { max-width: 100%; }
.btn .icon { margin-inline: -0.15em; }
/* the button that was pressed says so while its request is on its way: its colour stays, a ring turns in it */
.btn[aria-busy="true"] { position: relative; color: transparent; pointer-events: none; }
.btn[aria-busy="true"] > * { visibility: hidden; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; width: 1.15em; height: 1.15em; margin: auto; border: 2px solid var(--btn-fg); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner { display: inline-block; width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner--lg { width: 3rem; height: 3rem; border-width: 3px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
/* «you are here» among a row of choices: the look of a chosen chip, not of the page's main button */
.btn.is-current { --btn-bg: var(--accent-wash); --btn-fg: var(--accent-hi); --btn-line: var(--accent-line); box-shadow: none; }
.link { color: var(--accent-hi); font-weight: 550; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--accent); text-decoration: underline; }
.link .icon { display: inline-block; vertical-align: -0.15em; }      /* an arrow stays on the line of its words */

/* --------------------------------------------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field > label, .label { font-size: var(--text-sm); font-weight: 550; color: var(--fg-1); }
.hint { font-size: var(--text-sm); color: var(--fg-2); }
.field .error { font-size: var(--text-sm); color: var(--bad); }
.input, .select, .textarea {
  width: 100%; min-height: 2.75rem; padding: 0 var(--s-4); background: var(--bg-1); color: var(--fg-0);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t-fast) var(--ease);
}
.textarea { min-height: 8.5rem; padding: var(--s-3) var(--s-4); line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #5f6875; }
.input:hover, .select:hover, .textarea:hover { border-color: #46505f; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); border-radius: var(--r-md); background: var(--bg-0); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg-2); color: var(--fg-2); border-style: dashed; cursor: not-allowed; }
.field > legend { margin-bottom: var(--s-2); font-size: var(--text-sm); font-weight: 550; color: var(--fg-1); }
.select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.85rem) 50%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.input--code { font: 600 1.75rem/1 var(--font-mono); letter-spacing: 0.5em; text-align: center; min-height: 4rem; padding-left: 0.5em; }
.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; color: var(--fg-1); font-size: var(--text-sm); }
.check input { appearance: none; flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-1); cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.check input:checked { background: var(--accent) url("../img/check.svg") center / 0.8rem no-repeat; border-color: var(--accent); }
.check input:focus-visible { box-shadow: var(--ring); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; }
.toggle input { appearance: none; width: 2.75rem; height: 1.5rem; margin: 0; border-radius: var(--r-pill); background: var(--bg-4); border: 1px solid var(--line-strong); cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.toggle input::after { content: ""; position: absolute; left: 0.2rem; top: 50%; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--fg-1); transform: translateY(-50%); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.toggle input:checked { background: var(--accent); border-color: var(--accent); }
.toggle input:checked::after { transform: translate(1.25rem, -50%); background: var(--accent-ink); }
.toggle input:focus-visible { box-shadow: var(--ring); }

/* chips: a set of choices where several may be on (niches, roles) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.25rem; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg-1); color: var(--fg-1); font-size: var(--text-sm); font-weight: 550; transition: all var(--t-fast) var(--ease); }
.chip:hover span { border-color: #46505f; color: var(--fg-0); }
.chip input:checked + span { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-hi); }
.chip input:focus-visible + span { box-shadow: var(--ring); }

/* tags: words that describe something (a segment's niches and roles), not choices */
.tag { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg-1); color: var(--fg-1); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.tag--accent { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-hi); }
.tag--more { border-style: dashed; color: var(--fg-2); }
.cloud { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.eyebrow + .cloud { margin-top: var(--s-2); }
/* the language switch of every top bar */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-1); }
.lang button { min-width: 2.25rem; height: 1.75rem; padding: 0 0.6rem; border: 0; border-radius: var(--r-pill); background: none; color: var(--fg-2); font: 600 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; cursor: pointer; }
.lang button:hover { color: var(--fg-0); }
.lang button[aria-pressed="true"] { background: var(--bg-4); color: var(--fg-0); }

/* --------------------------------------------------------------------------------------------------- cards */
.card { position: relative; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-1); }
.card--flat { background: var(--bg-1); box-shadow: none; }
.card--pad-lg { padding: clamp(var(--s-6), 2vw + 1rem, var(--s-10)); }
.card--hover { transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.card--hover:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card--accent { border-color: var(--accent-line); box-shadow: var(--glow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.card__title { font-size: var(--text-lg); font-weight: 650; }
.card__title + p { margin-top: var(--s-2); }

/* a number with its label: the unit of every dashboard */
.stat { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.stat__value { font: 600 clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem)/1 var(--font-mono); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.5em; color: var(--fg-2); font-weight: 500; letter-spacing: 0; margin-left: 0.25em; }
.stat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); min-height: 2.25rem; }
.stat__head .eyebrow { min-width: 0; padding-top: 0.35rem; }
.stat__foot { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--fg-2); min-height: 1.5rem; }

/* -------------------------------------------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 0.4em; height: 1.5rem; padding: 0 0.6rem; border-radius: var(--r-pill); background: var(--bg-4); color: var(--fg-1); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.badge::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.badge--plain::before { display: none; }
.badge--ok { background: var(--ok-wash); color: var(--ok); }
.badge--warn { background: var(--warn-wash); color: var(--warn); }
.badge--bad { background: var(--bad-wash); color: var(--bad); }
.badge--accent { background: var(--accent-wash); color: var(--accent-hi); }
.badge--live::before { animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

/* ----------------------------------------------------------------------------------------- meters and bars */
progress { appearance: none; display: block; width: 100%; height: 0.375rem; border: 0; border-radius: var(--r-pill); background: var(--bg-4); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--bg-4); border-radius: var(--r-pill); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); border-radius: var(--r-pill); transition: width var(--t-slow) var(--ease); }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); border-radius: var(--r-pill); }
/* a limit that is reached is a full bar in the accent: red stays for what was refused or went wrong */
progress.is-full::-webkit-progress-value { background: var(--accent); }
progress.is-full::-moz-progress-bar { background: var(--accent); }
progress.is-ok::-webkit-progress-value { background: var(--ok); }
progress.is-ok::-moz-progress-bar { background: var(--ok); }
.usage { display: flex; flex-direction: column; gap: var(--s-2); }
.usage__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--text-sm); color: var(--fg-1); }
.usage__top b { font: 600 var(--text-sm) var(--font-mono); color: var(--fg-0); white-space: nowrap; }
@media (max-width: 560px) { .kpis .usage__top { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* -------------------------------------------------------------------------------------------------- tables */
.table-wrap:focus-visible { border-radius: var(--r-lg); }     /* reachable from the keyboard: it scrolls sideways on a phone */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { position: sticky; top: 0; padding: var(--s-3) var(--s-4); background: var(--bg-2); color: var(--fg-2); font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-2); }
.table .num, .table .right { text-align: right; }
.table td.main { color: var(--fg-0); font-weight: 550; }
.table .nowrap, .table .mono { white-space: nowrap; }
/* columns of a set width: a long address in one row does not push the niche of every row onto two lines */
.table--fixed { table-layout: fixed; }
.table--fixed td.truncate, .table--fixed .truncate { max-width: 100%; }
.table--fixed .person > .grow > * { display: block; }
.col-state { width: 11.5rem; } .col-26 { width: 26%; } .col-8 { width: 8%; } .col-10 { width: 10%; } .col-16 { width: 16%; } .col-18 { width: 18%; } .col-22 { width: 22%; } .col-30 { width: 30%; } .col-menu { width: 4rem; }
/* a phone: every row of a table becomes a small card, with its cells one under another or two in a row. The head is
   kept for a screen reader; a cell that needs its column's name carries it in data-label */
@media (max-width: 760px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack colgroup { display: block; width: 100%; }
  .table--stack colgroup { display: none; }
  .table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-1) var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: block; min-width: 0; padding: 0; border: 0; }
  .table--stack td.hide-sm { display: none; }
  .table--stack td.wide, .table--stack td[colspan] { grid-column: 1 / -1; }
  .table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--fg-2); font-family: var(--font-body); }
  .table--stack-1 tr { grid-template-columns: minmax(0, 1fr); }
  .table--stack td.num, .table--stack td.right { text-align: left; }
  .table--stack tr > td:nth-child(even):not(.wide) { justify-self: end; text-align: right; }
  .table--stack-1 tr > td:nth-child(even):not(.wide) { justify-self: stretch; text-align: left; }
}
.table td { color: var(--fg-1); }

/* ------------------------------------------------------------------------------------------- notices, empty */
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-2); color: var(--fg-1); font-size: var(--text-sm); }
.notice .icon { margin-top: 0.1em; }
.notice--ok { border-color: rgb(61 220 151 / 0.35); background: var(--ok-wash); color: #b9f3d9; }
.notice--warn { border-color: rgb(246 196 83 / 0.35); background: var(--warn-wash); color: #fbe3ad; }
.notice--bad { border-color: rgb(255 100 100 / 0.4); background: var(--bad-wash); color: #ffc4c4; }
.notice--accent { border-color: var(--accent-line); background: var(--accent-wash); color: #ffd3ae; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-12) var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--fg-1); }
.empty__mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--r-lg); background: var(--bg-3); color: var(--accent); border: 1px solid var(--line-strong); }
.empty h3 { color: var(--fg-0); }
.empty p { max-width: 44ch; }
.empty--small { padding: var(--s-6); }

.toast { position: fixed; left: 50%; bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-3); max-width: min(92vw, 34rem); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); background: var(--bg-4); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); font-size: var(--text-sm); font-weight: 550; animation: toast-in var(--t-slow) var(--ease) both, toast-out var(--t-slow) var(--ease) 5s forwards; }
.toast--ok { border-color: rgb(61 220 151 / 0.45); color: #c9f7e2; }
.toast--error { border-color: rgb(255 100 100 / 0.5); color: #ffd0d0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 1rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 0.5rem); visibility: hidden; } }

/* ---------------------------------------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: var(--s-1); padding: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-1); overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs a { padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); color: var(--fg-2); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: all var(--t-fast) var(--ease); }
.tabs a:hover { color: var(--fg-0); }
.tabs a[aria-current="page"] { background: var(--bg-4); color: var(--fg-0); box-shadow: var(--shadow-1); }

@media (max-width: 520px) { .tabs { flex-wrap: wrap; width: 100%; } .tabs a { flex: 1 1 auto; text-align: center; } }

/* ----------------------------------------------------------------------------------------------- a phone */
@media (pointer: coarse) {
  .btn--sm, .chip span, .menu__item, .tabs a { min-height: 2.75rem; }
  .tabs a, .menu__item { display: flex; align-items: center; justify-content: center; }
  .menu__item { justify-content: flex-start; }
  .link { display: inline-block; padding-block: 0.6rem; }
  .lang button { height: 2.5rem; min-width: 2.75rem; }
}
@media (max-width: 900px) { .input, .select, .textarea { font-size: 1rem; } }
@media (max-width: 520px) {
  /* a long label on a large button wraps instead of pushing the card apart; the submit of a form takes the row */
  .btn--lg { width: 100%; height: auto; padding: 0.7rem var(--s-4); white-space: normal; line-height: 1.2; text-align: center; }
  form > .btn:not(.btn--sm), form > .row > .btn--primary:only-child { width: 100%; }
}

/* ------------------------------------------------------------------------------------------- price cards */
/* the same card on the public price page and on the workspace's plan page */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-8) var(--s-6) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.plan--featured { border-color: var(--accent-line); box-shadow: var(--glow); }
.plan__flag { position: absolute; top: -0.75rem; left: var(--s-6); background: color-mix(in srgb, var(--accent) 16%, var(--bg-2)); }
.plan__flag--now { background: var(--bg-4); color: var(--fg-0); box-shadow: 0 0 0 1px var(--line-strong); }
.plan__name { margin-bottom: var(--s-3); font: 700 var(--text-xl)/1 var(--font-display); letter-spacing: -0.02em; }
.plan__for { min-height: 2.9em; color: var(--fg-1); font-size: var(--text-sm); }
.plan__price { display: flex; align-items: baseline; gap: var(--s-2); }
.plan__price b { font: 600 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-mono); letter-spacing: -0.06em; white-space: nowrap; }
.plan__price span { color: var(--fg-2); font-size: var(--text-sm); }
.plan__sub { min-height: 1.4em; margin-top: calc(var(--s-3) * -1); color: var(--fg-2); font-size: var(--text-sm); }
.plan__list { display: grid; gap: var(--s-3); font-size: var(--text-sm); color: var(--fg-1); }
.plan__list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s-2); align-items: start; }
.plan__list .icon { color: var(--accent); margin-top: 0.1em; }
.plan__list b { color: var(--fg-0); font-family: var(--font-mono); font-weight: 600; }
.plan > .btn, .plan__buttons { margin-top: auto; }
.plan__buttons { display: grid; gap: var(--s-2); }
.plans--own .plan__for { min-height: 4.4em; }
.plans--own .plan__price b { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }

/* a sheet: a form that opens over the page from its button (the popover attribute: no script) */
.sheet { margin: auto; width: min(92vw, 32rem); max-height: 88dvh; overflow: auto; padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--bg-2); color: var(--fg-0); box-shadow: var(--shadow-3); }
.sheet::backdrop { background: rgb(4 5 7 / 0.72); backdrop-filter: blur(6px); }
.sheet:popover-open { animation: rise var(--t-slow) var(--ease) both; }
.sheet:not([popover]) { margin: var(--s-4) 0; }

/* ---------------------------------------------------------------------------------------------- dialog */
dialog { padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--bg-2); color: var(--fg-0); box-shadow: var(--shadow-3); width: min(92vw, 32rem); }
dialog::backdrop { background: rgb(4 5 7 / 0.72); backdrop-filter: blur(6px); }
dialog[open] { animation: rise var(--t-slow) var(--ease) both; }
.dialog__body { padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-5); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------------------------------------------- charts */
/* Path data comes from the server (app/web/charts.py). Nothing here needs a value set inline: a line is drawn
   with pathLength="1" (dash 1, offset 1 → 0), a ring animates from an empty dash to the one in its attribute. */
.chart { width: 100%; height: auto; overflow: visible; }
.chart--low { height: 8rem; }     /* a chart as wide as the page stays as tall as a chart */
.chart text { font: 500 10px var(--font-mono); fill: var(--fg-2); }
.chart__guide { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 1.4s var(--ease) 0.15s backwards; }
.chart__line--b { stroke: var(--cyan); animation-delay: 0.35s; }
.chart__line--quiet { stroke: var(--fg-2); stroke-width: 1.5; }
.chart__area { opacity: 0.9; animation: appear 0.9s var(--ease) 0.5s backwards; }
.chart__dot { fill: var(--bg-0); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; animation: appear 0.4s var(--ease) 1.3s backwards; }
.chart__dot--b { stroke: var(--cyan); }
.chart__bar { fill: var(--accent); transform-origin: bottom; transform-box: fill-box; animation: grow 0.7s var(--ease) backwards; }
.chart__bar--b { fill: var(--cyan); }
.chart__bar--quiet { fill: var(--bg-4); }
.chart__bar[data-order="2"] { animation-delay: 60ms; } .chart__bar[data-order="3"] { animation-delay: 120ms; }
.chart__bar[data-order="4"] { animation-delay: 180ms; } .chart__bar[data-order="5"] { animation-delay: 240ms; }
.chart__bar[data-order="6"] { animation-delay: 300ms; } .chart__bar[data-order="7"] { animation-delay: 360ms; }
.chart__bar[data-order="8"] { animation-delay: 420ms; }
.stop-a { stop-color: var(--accent); stop-opacity: 0.32; } .stop-z { stop-color: var(--accent); stop-opacity: 0; }
.stop-a--b { stop-color: var(--cyan); stop-opacity: 0.26; } .stop-z--b { stop-color: var(--cyan); stop-opacity: 0; }
.ring { width: 100%; height: auto; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--bg-4); stroke-width: 8; }
.ring__value { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; animation: ring-in 1.2s var(--ease) 0.2s backwards; }
.ring__value--ok { stroke: var(--ok); } .ring__value--warn { stroke: var(--warn); } .ring__value--bad { stroke: var(--bad); }
.gauge { position: relative; display: grid; place-items: center; }
.gauge__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.gauge__label b { font: 600 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1 var(--font-mono); letter-spacing: -0.04em; }
.gauge__label small { font-size: var(--text-xs); color: var(--fg-2); }
.spark { width: 100%; height: 2.5rem; }
/* a chart with its scale: the largest value of the series at the top, zero at the bottom, written beside the drawing */
.chart-box { position: relative; }
.chart-box__top, .chart-box__zero { position: absolute; left: 0; z-index: 1; padding: 0 var(--s-1); border-radius: 4px; background: var(--bg-1); font: 500 0.6875rem/1.4 var(--font-mono); color: var(--fg-2); }
.chart-box__top { top: 0; } .chart-box__zero { bottom: 2px; }
.chart-empty { display: grid; place-items: center; min-height: 6rem; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--fg-2); font-size: var(--text-sm); }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes ring-in { from { stroke-dasharray: 0 100; } }
@keyframes appear { from { opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--text-sm); color: var(--fg-1); }
.legend i { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 3px; background: var(--accent); margin-right: 0.45em; vertical-align: baseline; }
.legend i.b { background: var(--cyan); } .legend i.c { background: var(--violet); } .legend i.m { background: var(--bg-4); }

/* -------------------------------------------------------------------------------------- things that enter */
[data-reveal] { animation: enter 0.7s var(--ease) backwards; }
[data-reveal="1"] { animation-delay: 60ms; } [data-reveal="2"] { animation-delay: 130ms; } [data-reveal="3"] { animation-delay: 200ms; }
[data-reveal="4"] { animation-delay: 270ms; } [data-reveal="5"] { animation-delay: 340ms; } [data-reveal="6"] { animation-delay: 410ms; }
[data-reveal="7"] { animation-delay: 480ms; } [data-reveal="8"] { animation-delay: 550ms; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 37%, var(--bg-3) 63%); background-size: 400% 100%; border-radius: var(--r-sm); animation: shimmer 1.4s ease infinite; color: transparent; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* the diagonal hatch used where something is measured: a limit bar, a divider, the edge of the hero */
.hatch { background-image: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 8px); opacity: 0.55; }
.divider-hatch { height: 6px; border-radius: 3px; }

/* five lights, as over a starting grid: dark as they stand here, lit one by one where the page may move - on the
   landing page's panel, and in the workspace at the moment a campaign starts */
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-4); }

/* a figure that runs up to its value (js/motion.js) is written in an <i> where it is part of a longer figure */
[data-count] { font-style: normal; }

/* ---------------------------------------------------------------------------------------------- motion ----
   What every page shares of it. All of it stands inside «no-preference»; «moves» is the class js/motion.js puts on
   the page before the first paint, so without the script nothing waits to come in. */
/* the angle of the light that runs round the plan a buyer is pointed to */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  /* from one page to the next: the frame stays where it is and the content comes in, where the browser can do it */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: var(--ease); }

  /* a block comes in when it is reached; what arrives together arrives in turn (the delay is set by the script) */
  .moves [data-rise], .moves .rise-in-turn > * { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.8s var(--ease) var(--rise-delay, 0ms), transform 0.8s var(--ease) var(--rise-delay, 0ms), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
  .moves [data-rise].is-seen, .moves .rise-in-turn > .is-seen { opacity: 1; transform: none; }

  /* a soft light follows the pointer across a card */
  [data-glow] { --mx: 50%; --my: 0%; }
  [data-glow]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(20rem circle at var(--mx) var(--my), rgb(255 122 26 / 0.12), transparent 62%); opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; }
  [data-glow]:hover::after { opacity: 1; }

  /* a light crosses the main button under the pointer */
  .btn--primary { position: relative; overflow: hidden; }
  .btn--primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 0.5) 50%, transparent 68%); transform: translateX(-130%); pointer-events: none; }
  .btn--primary:hover::before { transform: translateX(130%); transition: transform 0.75s var(--ease); }

  /* a light runs round the plan a buyer is pointed to */
  .plan--featured::before { content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--turn), transparent 0 68%, var(--accent) 82%, #ffe6cc 90%, var(--accent-hi) 94%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: turn 5s linear infinite; pointer-events: none; }

  /* on the way to another page: a line along the top edge says the click was taken */
  .is-leaving::before { content: ""; position: fixed; inset: 0 0 auto 0; z-index: 200; height: 2px; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); box-shadow: 0 0 12px rgb(255 122 26 / 0.7); transform-origin: 0 50%; animation: leaving 9s cubic-bezier(0.1, 0.7, 0.1, 1) both; }

  /* an empty place is not a dead one: its mark floats */
  .empty__mark { animation: bob 5s ease-in-out infinite; }
}
@keyframes light-on { to { background: #ff3d2e; box-shadow: 0 0 0.7em 0.14em rgb(255 61 46 / 0.6); } }
@keyframes light-out { from { background: #ff3d2e; box-shadow: 0 0 0.7em 0.14em rgb(255 61 46 / 0.6); } to { background: var(--bg-4); box-shadow: none; } }
@keyframes turn { to { --turn: 360deg; } }
@keyframes leaving { 0% { transform: scaleX(0); opacity: 1; } 85% { transform: scaleX(0.92); opacity: 1; } 100% { transform: scaleX(0.92); opacity: 0; } }
@keyframes bob { 50% { translate: 0 -5px; } }
@media print { .moves [data-rise], .moves .rise-in-turn > * { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* no movement, but a message still stays long enough to be read: it appears at once and leaves at once after five seconds */
  .toast { animation-delay: 0ms, 5s !important; }
  /* what would turn or drift for ever stands still */
  .paycard, .paycard::after, .spinner, .btn[aria-busy="true"]::after { animation: none !important; }
}

/* ------------------------------------------------------------------------------------------ small pieces */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg-0); text-decoration: none; font: 700 1.0625rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--fg-0); }
.brand img { width: 1.75rem; height: 1.75rem; }
.meta { font: 500 var(--text-xs) var(--font-mono); color: var(--fg-2); overflow-wrap: anywhere; }
.kbd { display: inline-block; padding: 0.1em 0.45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-2); font: 500 0.85em var(--font-mono); color: var(--fg-1); }
.code { display: block; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-0); font: 500 var(--text-sm)/1.6 var(--font-mono); color: var(--fg-1); white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: var(--s-2) var(--s-6); margin: 0; font-size: var(--text-sm); }
.facts dt { color: var(--fg-2); }
/* a ladder of the limit calculator: two short rows of numbers */
.ladder { border-collapse: collapse; font: 500 var(--text-xs) var(--font-mono); color: var(--fg-1); }
.ladder th { padding: 2px var(--s-3) 2px 0; color: var(--fg-2); font: 500 var(--text-xs) var(--font-body); text-align: left; white-space: nowrap; }
.ladder td { min-width: 2.25rem; padding: 2px var(--s-2); text-align: right; border-left: 1px solid var(--line); }
.ladder tr:last-child td { color: var(--fg-0); font-weight: 600; }
.facts dd { margin: 0; color: var(--fg-0); overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: var(--s-3); } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); }
.inline-form { display: inline; }
.steps-line { display: flex; gap: var(--s-2); }
.steps-line i { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-4); }
.steps-line i.is-done { background: var(--accent); }
.qr { width: 11rem; height: 11rem; border-radius: var(--r-md); background: #fff; padding: 0.4rem; }
.qr__dark { stroke: #0b0d10; }
.prose { max-width: 70ch; color: var(--fg-1); }
.prose h2 { margin: var(--s-10) 0 var(--s-3); color: var(--fg-0); }
.prose h3 { margin: var(--s-6) 0 var(--s-2); color: var(--fg-0); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose ul { list-style: disc; padding-left: 1.25rem; } .prose ol { list-style: decimal; padding-left: 1.25rem; }
.prose li { margin-bottom: var(--s-2); }
.prose a { color: var(--accent-hi); }

/* a control that opens something under it without a line of script: <details> */
.disclosure > summary { list-style: none; cursor: pointer; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure[open] > summary .icon--turn { transform: rotate(180deg); }
.disclosure__body { margin-top: var(--s-4); animation: enter 0.3s var(--ease) backwards; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; z-index: 40; right: 0; top: calc(100% + 0.5rem); min-width: 14rem; padding: var(--s-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-3); box-shadow: var(--shadow-3); animation: enter 0.2s var(--ease) backwards; }
.menu__panel--left { right: auto; left: 0; }
.menu__item { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--fg-1); font-size: var(--text-sm); font-weight: 550; text-align: left; text-decoration: none; cursor: pointer; }
.menu__item:hover, .menu__item:focus-visible { background: var(--bg-4); color: var(--fg-0); }
.menu__item[aria-current="true"] { color: var(--accent-hi); }
.menu__label { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.menu hr { margin: var(--s-2) 0; }
