:root {
  --ink: #0f0f23;
  --text: #17172b;
  --text-2: #4d4d63;
  --muted: #7e7e95;
  --line: #e8e8f0;
  --line-2: #d6d6e2;
  --bg: #ffffff;
  --bg-2: #f6f6fa;
  --bg-3: #efeff6;
  --surface: #ffffff;
  --nav-bg: rgba(255, 255, 255, .92);
  --ink-hover: #2a2a4a;
  --on-ink: #ffffff;
  --accent: #4a3fd9;
  --accent-2: #3a30b8;
  --accent-soft: #eeedfc;
  --accent-ink: #2a2380;
  --night: #0c0c1f;
  --night-2: #15152f;
  --night-line: rgba(255, 255, 255, .1);
  --night-text: #e9e9f4;
  --night-muted: #9c9cb8;
  --ok: #157a4b;
  --ok-soft: #e6f5ec;
  --warn: #8a5300;
  --warn-soft: #fff4dd;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --r: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(15, 15, 35, .05), 0 10px 30px -12px rgba(15, 15, 35, .18);
  --shadow-2: 0 2px 4px rgba(15, 15, 35, .06), 0 30px 60px -24px rgba(15, 15, 35, .35);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1120px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ececee;
  --text: #e6e6e6;
  --text-2: #a1a1a9;
  --muted: #7c7c85;
  --line: #2a2a2d;
  --line-2: #3a3a3e;
  --bg: #0f0f10;
  --bg-2: #171717;
  --bg-3: #232325;
  --surface: #1a1a1b;
  --nav-bg: rgba(15, 15, 16, .88);
  --ink-hover: #d4d4da;
  --on-ink: #0f0f10;
  --accent: #6575e8;
  --accent-2: #8090f2;
  --accent-soft: #1d2044;
  --accent-ink: #c9cfff;
  --night: #171717;
  --night-2: #1f1f22;
  --night-line: #2a2a2d;
  --ok: #4fd08f;
  --ok-soft: rgba(79, 208, 143, .14);
  --warn: #f2b45c;
  --warn-soft: rgba(242, 180, 92, .14);
  --bad: #ff8078;
  --bad-soft: rgba(255, 128, 120, .14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -12px rgba(0, 0, 0, .7);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .5), 0 30px 60px -24px rgba(0, 0, 0, .8);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: flex; flex-direction: column; min-height: 100vh;
  font-feature-settings: "ss01", "cv01";
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .45em; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: 2.5rem; letter-spacing: -.025em; }
h2 { font-size: 1.9rem; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--bg-3); padding: .12em .4em; border-radius: 6px; color: var(--ink); }
pre { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.6; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 680px; }
.site-main { flex: 1; }
.site-main--flush { display: flex; }

.nv { position: sticky; top: 0; z-index: 30; --nav-h: 68px; }
.nv__bar { background: var(--nav-bg); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.nv__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.nv__left, .nv__right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nv__left { gap: 18px; }
.nv__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); border-radius: 4px; flex: none; }
.nv__brand:hover { text-decoration: none; }
.nv__brand sup { font-size: .55rem; font-weight: 600; margin-left: 1px; color: var(--muted); }
.nv__menu { display: none; align-items: center; gap: 2px; }
.nv__item { position: relative; }
.nv__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 9px; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--text-2); background: none; border: 0; cursor: pointer; transition: color .15s, background .15s; white-space: nowrap; }
.nv__link:hover, .nv__link:focus-visible, .nv__item.is-open > .nv__link, .nv__link.is-active { color: var(--ink); text-decoration: none; }
.nv__link .ico { width: 16px; height: 16px; transition: transform .2s; }
.nv__item.is-open > .nv__link .ico { transform: rotate(180deg); }
.nv__link--quiet { color: var(--muted); font-size: .85rem; }
.nv__drop { position: absolute; left: 0; top: 100%; padding-top: 8px; width: 330px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; z-index: 40; }
.nv__item.is-open > .nv__drop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.nv__drop-inner { padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-2); }
.nv__drop-link { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .925rem; font-weight: 500; transition: background .15s; opacity: 0; transform: translateX(-8px); }
.nv__drop-link small { display: block; margin-top: 2px; font-weight: 400; font-size: .8rem; color: var(--muted); }
.nv__drop-link:hover { background: var(--bg-2); text-decoration: none; }
.nv__item.is-open .nv__drop-link { animation: nv-item .22s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes nv-item { to { opacity: 1; transform: none; } }
.nv__cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-left: 2px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: .925rem; font-weight: 600; transition: background .2s; white-space: nowrap; }
.nv__cta:hover { background: var(--ink-hover); text-decoration: none; }
.nv__cta .ico { width: 16px; height: 16px; }
.nv__desk { display: none; }
.nv__burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--ink); color: var(--on-ink); cursor: pointer; padding: 0; margin-left: 4px; z-index: 31; }
.nv__burger .ico { width: 20px; height: 20px; }
.nv__burger .ico-x { display: none; }
.nv.is-open .nv__burger .ico-x { display: block; }
.nv.is-open .nv__burger .ico-menu { display: none; }
.nv a:focus-visible, .nv button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.nv__mobile { position: fixed; inset: 0; z-index: 25; background: var(--surface); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; overflow-y: auto; padding-top: var(--nav-h); }
.nv__mobile.is-open { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }
.nv__mobile-inner { display: flex; flex-direction: column; min-height: calc(100vh - var(--nav-h)); padding-top: 20px; padding-bottom: 28px; }
.nv__mobile-list { display: flex; flex-direction: column; }
.nv__acc, .nv__mobile-link { opacity: 0; transform: translateY(16px); }
.nv__mobile.is-open .nv__acc, .nv__mobile.is-open .nv__mobile-link { animation: nv-rise .3s ease both; animation-delay: calc(.08s + var(--i, 0) * .06s); }
@keyframes nv-rise { to { opacity: 1; transform: none; } }
.nv__acc-btn, .nv__mobile-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font: inherit; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.nv__mobile-link:hover { text-decoration: none; }
.nv__mobile-link .ico, .nv__acc-btn .ico { width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.nv__acc.is-open .nv__acc-btn .ico { transform: rotate(180deg); }
.nv__acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.nv__acc.is-open .nv__acc-panel { grid-template-rows: 1fr; }
.nv__acc-panel > div { overflow: hidden; }
.nv__acc-panel a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 1rem; font-weight: 500; }
.nv__acc-panel a:first-child { margin-top: 8px; }
.nv__acc-panel a:last-child { margin-bottom: 10px; }
.nv__acc-panel a small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.nv__acc-panel a:hover { background: var(--bg-2); text-decoration: none; }
.nv__mobile-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }
.nv__mobile-foot .btn { width: 100%; }
.nv__mobile-note { margin: 8px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
@media (min-width: 1180px) {
  .nv__menu { display: flex; }
  .nv__desk { display: inline-flex; }
  .nv__burger, .nv__mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nv__drop, .nv__mobile, .nv__acc-panel { transition: none; }
  .nv__drop-link, .nv__acc, .nv__mobile-link { opacity: 1; transform: none; animation: none !important; }
}

.nv__theme { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.nv__theme:hover { background: var(--bg-2); color: var(--ink); }
.nv__theme .ico-sun { display: none; }
html[data-theme="dark"] .nv__theme .ico-sun { display: block; }
html[data-theme="dark"] .nv__theme .ico-moon { display: none; }

/* ---------- apps section ---------- */

.apps { text-align: center; overflow: hidden; padding-bottom: 0; }
.apps__inner { display: flex; flex-direction: column; align-items: center; }
.apps__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.apps__brand .brand__img { width: 36px; height: 36px; }
.apps__title { margin: 22px 0 0; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1.05; max-width: 18ch; }
.apps__lead { margin: 18px 0 0; max-width: 640px; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.apps__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--on-ink); min-width: 186px; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store__text small { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.store__text b { font-size: .98rem; margin-top: 3px; }
.store--soon { opacity: .5; cursor: default; }
.apps__divider { width: 1px; height: 36px; background: var(--line-2); }
.apps__chip { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); transition: border-color .15s, transform .15s; }
.apps__chip:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-2px); }
.apps__chip svg { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.apps__chip .store__text small { text-transform: none; letter-spacing: 0; opacity: 1; font-size: .78rem; color: var(--muted); }
.apps__note { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.apps__phones { position: relative; width: 100%; max-width: 760px; height: 400px; margin-top: 44px; }
.apps__phones::before { content: ""; position: absolute; left: 50%; bottom: -140px; width: 680px; height: 380px; transform: translateX(-50%); border-radius: 50%; background: var(--accent-soft); filter: blur(60px); }
.phone { position: absolute; top: 0; width: 250px; aspect-ratio: 9 / 19.4; border-radius: 40px; padding: 8px; background: #141418; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); opacity: 0; --ty: 80px; --rot: 0deg; transform: translate(var(--tx, 0), var(--ty)) rotate(var(--rot)); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0f0f12; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone--c { left: 50%; width: 280px; z-index: 2; --tx: -50%; }
.phone--side { top: 48px; display: none; }
.phone--side .phone__screen::after { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: .55; }
.phone--side .phone__screen { position: relative; }
.phone--l { left: 6%; --rot: -7deg; }
.phone--r { right: 6%; --rot: 7deg; }
[data-reveal].is-in .phone { opacity: 1; --ty: 0px; }
[data-reveal].is-in .phone--side { transition-delay: .15s; }
@media (min-width: 640px) { .phone--side { display: block; } .apps__phones { height: 520px; } }
[data-reveal] > .apps__brand, [data-reveal] > .apps__title, [data-reveal] > .apps__lead, [data-reveal] > .apps__actions, [data-reveal] > .apps__note { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in > .apps__brand, [data-reveal].is-in > .apps__title, [data-reveal].is-in > .apps__lead, [data-reveal].is-in > .apps__actions, [data-reveal].is-in > .apps__note { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] > *, .phone { opacity: 1 !important; transform: none !important; transition: none !important; --ty: 0px; } }

/* ---------- updates ---------- */

.posts { margin-top: 12px; }
.post { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post__meta { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.post__title { font-size: 1.45rem; margin: 8px 0 10px; letter-spacing: -.02em; }
.post__title a { color: var(--ink); }
h1.post__title { font-size: 2rem; }
.post__summary { color: var(--text-2); font-size: 1.05rem; margin: 0 0 10px; }
.post__body { color: var(--text-2); line-height: 1.65; }
.post__body p { margin: 0 0 12px; }
.post__body h2, .post__body h3 { margin: 1.2em 0 .4em; font-size: 1.1rem; color: var(--ink); }
.post__body ul, .post__body ol { padding-left: 1.3em; margin: 0 0 12px; }
.post__body li { margin: 4px 0; }
.post__body code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: 1px 5px; border-radius: 5px; }
.post__body strong { color: var(--ink); }
.post__back { display: inline-block; margin-bottom: 20px; color: var(--muted); }
.post__back:hover { color: var(--ink); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn-night { background: #fff; color: var(--night); }
.btn-night:hover { background: var(--night-text); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--line-2); }
.btn-danger:hover { border-color: var(--bad); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: .875rem; }
.btn-xs { padding: 4px 10px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-block; margin: 0; }

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%); }
.hero__bg.is-ready, .hero__bg.is-fallback { opacity: 1; }
.hero__bg.is-fallback { background: radial-gradient(900px 380px at 50% 120%, var(--accent-soft), transparent 70%); }
.gwave__canvas { display: block; width: 100%; height: 100%; }
.hero__grid { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 4.2vw, 3.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: var(--text-2); max-width: 520px; margin-bottom: 28px; }
.hero__note { margin: -14px 0 22px; font-size: .85rem; line-height: 1.5; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-2); font-size: .925rem; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts b { font-weight: 600; color: var(--ink); }
.facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.window { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window__url { margin-left: 10px; font-family: var(--mono); font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.window img { display: block; width: 100%; height: auto; }

.models-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); height: 250px; overflow: hidden; }
.bmq { position: relative; display: flex; height: 100%; width: 100%; align-items: center; justify-content: center; overflow: hidden; font-family: var(--font); --bm-sway: 14deg; }
.bmq__probe { position: absolute; left: -99999px; top: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; white-space: nowrap; }
.bmq__stage { display: flex; transform-style: preserve-3d; opacity: 0; transition: opacity .35s ease; }
.bmq.is-ready .bmq__stage { opacity: 1; }
.bmq__facet { position: relative; flex: none; overflow: hidden; }
.bmq__col { display: flex; height: 100%; width: 100%; flex-direction: column; justify-content: center; }
.bmq__band { position: relative; width: 100%; overflow: hidden; }
.bmq__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.bmq__seq { display: flex; flex: none; align-items: center; }
.bmq__item { display: flex; flex: none; align-items: center; white-space: nowrap; }
.bmq__mark { display: inline-block; }
@keyframes bmq-run { to { transform: translate3d(calc(var(--bm-unit) * -1), 0, 0); } }
@keyframes bmq-sway { from { transform: rotate(calc(var(--bm-sway) * -1)); } to { transform: rotate(var(--bm-sway)); } }
@media (max-width: 680px) { .models-band { height: 190px; } }

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--night { background: var(--night); color: var(--night-text); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night .muted { color: var(--night-muted); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p { color: var(--text-2); font-size: 1.05rem; }
.section--night .section__head p { color: var(--night-muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); }
.step__n { font-family: var(--mono); color: var(--accent); font-size: .85rem; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-2); margin: 0; }

.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; padding-top: 0; }
.feature-row--flip .feature-row__media { order: 2; }
.feature-row h2 { font-size: 1.7rem; }
.feature-row p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 3px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

.ledger { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; font-size: .95rem; }
.ledger__head { display: flex; justify-content: space-between; padding: 14px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.ledger__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.ledger__row:last-child { border-bottom: 0; }
.ledger__row small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ledger__amt { font-family: var(--mono); font-weight: 500; }
.ledger__amt--minus { color: var(--ink); }
.ledger__amt--plus { color: var(--ok); }
.ledger__total { display: flex; justify-content: space-between; padding: 14px 18px; background: var(--bg-2); border-top: 1px solid var(--line); font-weight: 600; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 28px; background: var(--night-2); }
.duo-card h3 { margin-bottom: 8px; }
.duo-card p { color: var(--night-muted); }
.cmds { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .95rem; }
.cmds code { background: rgba(255, 255, 255, .08); color: #fff; }
.cmds span { color: var(--night-muted); margin-left: 8px; }

.code { position: relative; background: #0b0b19; color: #e6e6f2; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.6; margin: 0 0 1.25rem; }
.code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code__copy { position: absolute; top: 10px; right: 10px; }
.code-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.code-tab { font: inherit; font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--night-muted); cursor: pointer; }
.code-tab.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.section:not(.section--night) .code-tab { color: var(--text-2); }
.section:not(.section--night) .code-tab.is-active { background: var(--bg-3); color: var(--ink); }
.code-panel[hidden] { display: none; }
.kw { color: #c792ea; }
.str { color: #a5d6a7; }
.fn { color: #82aaff; }
.cm { color: #6c6c8a; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.plan { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px 24px 24px; background: var(--surface); display: flex; flex-direction: column; }
.plan--featured { border-color: var(--ink); box-shadow: var(--shadow-1); }
.plan__badge { position: absolute; top: -12px; left: 22px; background: var(--ink); color: var(--on-ink); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.plan__for { color: var(--muted); font-size: .9rem; min-height: 2.6em; margin-bottom: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.plan__price b { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.plan__price span { color: var(--muted); }
.plan__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: .925rem; color: var(--text-2); }
.plan__list li { position: relative; padding-left: 20px; }
.plan__list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.plan__list b { color: var(--ink); font-weight: 600; }
.plan .btn, .plan form { margin-top: auto; }

.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; background: var(--bg-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--mono); font-size: .9rem; white-space: nowrap; }
.table .cta { text-align: right; }
.pricing-note { max-width: 720px; color: var(--muted); font-size: .9rem; margin-top: 18px; }


.cta-band { padding: 72px 0; background: var(--night); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: var(--night-muted); margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .925rem; background: var(--surface); }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__brand p { max-width: 300px; margin-top: 10px; color: var(--text-2); }
.site-footer__title { font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.site-footer a { display: block; color: var(--text-2); padding: 3px 0; }
.site-footer__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

.auth { position: relative; isolation: isolate; width: 100%; min-height: calc(100vh - 73px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--night); overflow: hidden; }
.auth__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.auth__bg.is-ready, .auth__bg.is-fallback { opacity: 1; }
.auth__bg.is-fallback { background: radial-gradient(1000px 560px at 60% 110%, rgba(101, 117, 232, .38), transparent 70%); }
.auth::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .2); pointer-events: none; }
.auth__wrap { position: relative; z-index: 1; width: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: center; gap: 48px; }
.auth__card { width: 100%; max-width: 448px; background: var(--surface); border-radius: 16px; padding: 32px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); animation: auth-in-l .6s ease both; }
html[data-theme="dark"] .auth__card { border: 1px solid var(--line-2); }
.auth__card h1 { font-size: 1.85rem; letter-spacing: -.02em; margin: 0 0 6px; }
.auth__sub { margin: 0; font-size: .9rem; color: var(--text-2); }
.auth__sub a, .auth__help a { color: var(--ink); font-weight: 500; }
.auth__or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; color: var(--muted); font-size: .85rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__alt { padding: 12px 18px; font-weight: 500; letter-spacing: -.01em; }
.auth__alt svg { flex: none; }
.auth__help { margin: 22px 0 0; text-align: center; font-size: .9rem; color: var(--text-2); }
.auth__brand { display: none; max-width: 384px; color: #fff; animation: auth-in-r .6s ease .2s both; }
.auth__brand img { display: block; width: 44px; height: 44px; margin-bottom: 22px; }
.auth__brand h2 { color: #fff; font-size: 2.25rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 14px; }
.auth__brand p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; line-height: 1.5; letter-spacing: -.01em; max-width: 25ch; margin: 0; }
@keyframes auth-in-l { from { opacity: 0; transform: translateX(-50px); } }
@keyframes auth-in-r { from { opacity: 0; transform: translateX(50px); } }
@media (min-width: 1024px) { .auth__brand { display: block; } }
@media (max-width: 560px) { .auth { padding: 24px 14px; align-items: flex-start; } .auth__card { padding: 26px 20px; } }

.otp { width: 100%; min-height: calc(100vh - 73px); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; background: var(--bg); }
.otp__col { width: 100%; max-width: 384px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.otp__col > * { animation: otp-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.otp__col > :nth-child(1) { animation-delay: .05s; }
.otp__col > :nth-child(2) { animation-delay: .13s; }
.otp__col > :nth-child(3) { animation-delay: .21s; }
.otp__col > :nth-child(4) { animation-delay: .29s; }
.otp__col > :nth-child(5) { animation-delay: .37s; }
.otp__col > :nth-child(6) { animation-delay: .45s; }
.otp__col > :nth-child(7) { animation-delay: .53s; }
.otp__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-1); }
.otp__head { margin-top: 24px; }
.otp__head h1 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0; }
.otp__lead { margin: 10px 0 0; font-size: .92rem; line-height: 1.6; color: var(--text-2); }
.otp__lead b { color: var(--ink); font-weight: 500; }
.otp__col .alert { width: 100%; margin: 24px 0 0; justify-content: center; }
.otp__col .alert + .otp__form { margin-top: 16px; }
.otp__form { margin-top: 32px; width: 100%; }
.otp__fields { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.otp__group { display: flex; gap: 8px; }
.otp__dash { width: 12px; height: 1px; background: var(--line-2); flex: none; }
.otp__fields .otp__cell { width: 44px; height: 48px; padding: 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); text-align: center; font: inherit; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); caret-color: var(--accent); transition: border-color .15s, box-shadow .15s; }
.otp__fields .otp__cell:hover { border-color: var(--muted); }
.otp__fields .otp__cell.is-filled { border-color: var(--ink); }
.otp__fields .otp__cell:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.otp__submit { margin-top: 32px; }
.otp__submit:disabled { background: var(--bg-3); color: var(--muted); cursor: not-allowed; opacity: 1; }
.otp__resend { margin-top: 24px; font-size: .9rem; color: var(--text-2); }
.otp__again { font: inherit; font-size: inherit; font-weight: 500; border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; }
.otp__again:hover { color: var(--text-2); }
.otp__again:disabled { color: var(--muted); cursor: default; font-weight: 400; font-variant-numeric: tabular-nums; }
.otp__wait { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.otp__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 48px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.otp__back:hover { color: var(--ink); text-decoration: none; }
@keyframes otp-in { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 640px) { .otp__fields .otp__cell { width: 48px; height: 56px; font-size: 1.25rem; } .otp__head h1 { font-size: 1.85rem; } }
@media (min-width: 1024px) { .otp { align-items: center; } }
@media (prefers-reduced-motion: reduce) { .auth__card, .auth__brand, .otp__col > * { animation: none; } }
.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; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.form--row { flex-direction: row; align-items: stretch; margin-top: 14px; }
.form--row input { flex: 1; }
.form--narrow { max-width: 380px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; color: var(--text-2); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  font: inherit; font-size: 1rem; color: var(--text); padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__aux { margin: 2px 0 0; font-size: .9rem; color: var(--text-2); }

.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); margin: 14px 0; font-size: .95rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.alert--error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); }
.alert--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--warn); }
.alert--success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.alert--info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-ink); }
.alert .btn { margin-left: auto; }

.notice { padding: 72px 28px; }
.notice .actions { margin-top: 20px; }

.dash { padding: 36px 0 64px; }
.dash .container { max-width: 1360px; }
#api-usage .stats { grid-template-columns: repeat(3, 1fr); }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash__head h1 { font-size: 1.8rem; margin: 0 0 4px; }
.dash__who { color: var(--text-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; font-size: .75rem; padding: 2px 9px; border-radius: 999px; font-weight: 500; border: 1px solid transparent; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--plain { background: var(--bg-3); color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px 20px; background: var(--surface); }
.stat__label { font-size: .8rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em; }
.stat__value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.stat__value small { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat__sub { color: var(--text-2); font-size: .85rem; margin-top: 6px; }
.panel { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px 24px; background: var(--surface); margin-bottom: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel__head h2 { font-size: 1.1rem; margin: 0; }
.panel__hint { color: var(--muted); font-size: .9rem; margin: -6px 0 14px; }
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash__grid > div { min-width: 0; }
.kv { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; flex-wrap: wrap; }
.kv:last-of-type { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); min-width: 130px; }
.chart { width: 100%; height: auto; min-height: 120px; display: block; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.chart .chart__max { fill: var(--muted); }
.chart rect { fill: var(--accent); opacity: .9; transition: opacity .15s, filter .15s; }
.chart rect:hover { opacity: 1; filter: brightness(1.15); }
.chart rect.is-empty { fill: var(--line); }
.chart line { stroke: var(--line); }
.keybox { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; width: 100%; }
.keybox code { font-size: .88rem; padding: 7px 10px; background: var(--surface); border: 1px solid var(--line-2); word-break: break-all; }
.status { font-size: .8rem; padding: 2px 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); }
.status--succeeded { background: var(--ok-soft); color: var(--ok); }
.status--canceled { background: var(--bad-soft); color: var(--bad); }
.status--pending { background: var(--warn-soft); color: var(--warn); }
.empty { color: var(--muted); font-size: .925rem; padding: 10px 0; }

.docs__inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs__toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line-2); }
.docs__toc a { color: var(--text-2); padding: 6px 14px; font-size: .925rem; margin-left: -1px; border-left: 1px solid transparent; }
.docs__toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--ink); }
.docs__body { max-width: 740px; }
.docs__body h2 { margin-top: 2.2em; font-size: 1.45rem; }
.docs__body h3 { margin-top: 1.6em; }
.docs__body ol { padding-left: 1.2em; color: var(--text-2); }
.docs__body .table-wrap { margin: 12px 0 8px; }

@media (max-width: 960px) {
  .hero__grid, .feature-row, .duo, .dash__grid, .auth { grid-template-columns: 1fr; }
  .hero__grid > *, .feature-row > *, .duo > * { min-width: 0; }
  .feature-row--flip .feature-row__media { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* A bare 1fr column cannot shrink below its widest child, so a long line
     of code pushed the whole page sideways on a phone. */
  .docs__inner { grid-template-columns: minmax(0, 1fr); }
  .docs__inner > * { min-width: 0; }
  .docs__toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 4px; }
  .docs__toc a { border: 1px solid var(--line-2); border-radius: 8px; margin: 0; padding: 6px 10px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .auth__side { padding: 32px 28px; }
  .auth__side h2 { font-size: 1.3rem; }
  .auth__side ul { display: none; }
  .auth__main { padding: 36px 24px; align-items: flex-start; }
}
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .hero { padding: 44px 0 28px; }
  .hero__title { font-size: 2.15rem; }
  .section { padding: 52px 0; }
  .stats, .site-footer__inner { grid-template-columns: 1fr; }
  .dash__head h1 { font-size: 1.5rem; }
  .kv > span:first-child { min-width: 100px; }
  .form--row { flex-direction: column; }
  .table th, .table td { padding: 10px 10px; }
  .table th { font-size: .72rem; }
  .cta-band { padding: 48px 0; }
  .feature-row { gap: 28px; padding: 40px 0; }
}

.admin-nav { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav__link { flex: none; white-space: nowrap; font-size: .92rem; padding: 10px 10px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav__link:hover { color: var(--ink); text-decoration: none; }
.admin-nav__link.is-active { color: var(--ink); border-bottom-color: var(--ink); }
/* A dropdown is a field like any other: the browser's own control looked
   like a visitor from another site next to our inputs, so every select gets
   the same frame and a chevron of our own. */
select:not([multiple]), .select {
  font: inherit; font-size: .95rem; line-height: 1.2; color: var(--text);
  padding: 10px 34px 10px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background-color: var(--surface); background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  appearance: none; -webkit-appearance: none; max-width: 100%; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
select:not([multiple]):hover { border-color: var(--muted); }
select:not([multiple]):focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select:not([multiple]):disabled { opacity: .55; cursor: default; }
select option { background: var(--surface); color: var(--text); }
.select, select.select { width: 100%; }
.table input[type=text] { padding: 6px 8px; font-size: .9rem; }
.stats--wrap { grid-template-columns: repeat(4, 1fr); }

.calc { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 22px 24px; margin-bottom: 8px; }
.calc__row { display: grid; grid-template-columns: 180px 1fr 260px; gap: 16px; align-items: end; }
.calc__field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.calc__input, .calc__select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; }
.calc__input { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; }
.calc__presets { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 2px; }
.calc__preset { font: inherit; font-size: .85rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.calc__preset:hover { border-color: var(--accent); color: var(--accent-2); }
.calc__total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 20px 0 10px; }
.calc__credits { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.calc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 14px; }
.calc__item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); }
.calc__item b { font-size: 1.25rem; font-family: var(--mono); }
.calc__item span { font-size: .9rem; }
.calc__item small { display: block; color: var(--muted); font-size: .78rem; }
.calc__note { max-width: 720px; }
.calc__pay { display: flex; gap: 12px; align-items: center; margin: 12px 0 8px; flex-wrap: wrap; }
.calc__method { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-3); }
.calc__method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc__method-pill { cursor: pointer; }
.calc__method-pill span { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--text-2); transition: background .12s, color .12s; }
.calc__method-pill:has(input:checked) span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.calc__method-pill:has(input:disabled) { cursor: default; }
.calc__method-pill:has(input:disabled) span { opacity: .55; }
.calc__method-pill:has(input:focus-visible) span { box-shadow: 0 0 0 3px var(--accent-soft); }
.calc__auto { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.calc__auto input { margin-top: 3px; }
.calc__auto-note { color: var(--muted); font-size: .85em; }
.calc__reverse { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: end; border-top: 1px solid var(--line); padding-top: 16px; }
.calc__task-out { font-size: 1rem; padding-bottom: 10px; }
@media (max-width: 860px) {
  .calc__row, .calc__reverse { grid-template-columns: 1fr; }
  .calc__grid { grid-template-columns: repeat(2, 1fr); }
}

.stats--tight { margin-bottom: 14px; }
#api-usage .panel__hint a { margin-right: 2px; }
#api-usage .panel__hint a.is-active { font-weight: 700; color: var(--text); text-decoration: none; }

.tools-grid-site { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 6px 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.tool-tile:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tool-tile__icon { grid-row: 1 / span 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 12px; background: var(--bg-2); }
.tool-tile__body { display: flex; flex-direction: column; gap: 4px; }
.tool-tile__body b { font-size: 1rem; }
.tool-tile__body span { font-size: .88rem; color: var(--text-2); line-height: 1.4; }
.tool-tile__meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.tool-tile__price { color: var(--accent-2); }
@media (max-width: 960px) { .tools-grid-site { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tools-grid-site { grid-template-columns: 1fr; } }

.who-name { color: var(--text); }
.who-id { font-family: var(--mono); font-size: .85em; }

.tool-tile__icon { color: var(--accent-2); }
.tool-tile__icon svg { display: block; }

.calc__combo-wrap { position: relative; }
.calc__combo { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.calc__combo:hover { border-color: var(--accent); }
.calc__combo-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc__combo-price { color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.calc__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; }
.calc__panel-search { padding: 8px; border-bottom: 1px solid var(--line); }
.calc__panel-search input { width: 100%; font: inherit; font-size: .95rem; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--text); }
.calc__panel-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.calc__panel-group { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.calc__panel-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font: inherit; font-size: .93rem; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.calc__panel-item:hover { background: var(--bg-2); }
.calc__panel-item.is-on { background: var(--bg-2); color: var(--accent-2); font-weight: 600; }
.calc__panel-item small { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.calc__panel-empty { padding: 14px 10px; color: var(--muted); font-size: .9rem; }
.calc__tasks { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__task-pill { font: inherit; font-size: .88rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.calc__task-pill:hover { border-color: var(--accent); }
.calc__task-pill.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc__reverse { grid-template-columns: 1fr; }
.calc__task-out { font-size: 1.05rem; padding: 4px 0 0; }

.pay-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0 6px; margin-top: 8px; border-top: 1px solid var(--line); }
.pay-strip__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.pay-badge { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: #1b1b1d; font-size: .82rem; font-weight: 700; letter-spacing: .02em; transition: box-shadow .15s, transform .15s; }
.pay-badge svg { display: block; flex: none; }
.pay-badge:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transform: translateY(-1px); }
.pay-badge--visa { font-style: italic; color: #1a1f71; font-size: .85rem; letter-spacing: .04em; }
.pay-badge--mir { color: #0f754e; }
.pay-badge--yk { padding: 0 12px; }
.pay-logo { display: block; height: 15px; width: auto; }
.pay-strip__note { flex-basis: 100%; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 600px) { .pay-badge { height: 28px; padding: 0 9px; } }

.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: .78rem; line-height: 1.3; padding: 6px 9px; border-radius: 8px; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; white-space: nowrap; }
.chart-tip.is-on { opacity: 1; transform: none; }
.table--compact th, .table--compact td { padding: 10px 12px; font-size: .9rem; }
.table--compact th { white-space: nowrap; font-size: .72rem; }
.table--keys .k-key { font-size: .85rem; }
.table--keys .k-spent small { color: var(--muted); font-size: .8em; }
.table--keys .k-used { white-space: nowrap; font-size: .85rem; }
.table-wrap { container-type: inline-size; }
@container (max-width: 560px) {
  .table--keys thead { display: none; }
  .table--keys tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name cta" "key cta" "spent used"; gap: 3px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table--keys tr:last-child { border-bottom: 0; }
  .table--keys td { display: block; padding: 0; border: 0; }
  .table--keys .k-name { grid-area: name; }
  .table--keys .k-key { grid-area: key; font-size: .8rem; color: var(--muted); }
  .table--keys .k-cta { grid-area: cta; }
  .table--keys .k-spent { grid-area: spent; font-size: .85rem; }
  .table--keys .k-spent::before { content: "30 дней: "; color: var(--muted); font-family: var(--font); }
  .table--keys .k-used { grid-area: used; font-size: .8rem; justify-self: end; }
  .table--keys tr.row-empty { display: block; padding: 0; }
  .table--keys tr.row-empty td { padding: 14px; }
}

.loyalty__bar { height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; margin: 4px 0 10px; }
.loyalty__bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.loyalty__levels { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.loyalty__levels span { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.loyalty__levels span small { color: var(--muted); }
.loyalty__levels span.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.loyalty__levels span.is-on small { color: rgba(255, 255, 255, .8); }
.loyalty__ref { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.loyalty__ref p { margin: 0; }
.loyalty__link { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.loyalty__link input { font-family: var(--mono); font-size: .85rem; }
.form--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-bottom: 20px; }
.form--grid label { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.form--grid input, .form--grid select { width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.brand__img { display: block; flex: none; }
.brand__img--dark { display: none; }
html[data-theme="dark"] .brand__img { display: none; }
html[data-theme="dark"] .brand__img--dark { display: block; }
.panel__sub { font-size: .95rem; margin: 18px 0 0; color: var(--text-2); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-of-type { border-bottom: 0; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer; padding: 0; flex: none; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.is-on { background: var(--accent); }
.switch.is-on span { transform: translateX(18px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.dots { display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.2em; } }

html[data-theme="dark"] .btn-primary { color: var(--on-ink); }
html[data-theme="dark"] .code { background: #141416; }
#topup > .calc { border: 0; padding: 0; margin: 0; background: transparent; }
.dash__who, .panel__hint, .panel__hint code, .kv b { overflow-wrap: anywhere; }
.calc__input:focus, .calc__select:focus, .calc__combo:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 680px) {
  .auth__side { display: none; }
  .auth { min-height: auto; }
  .auth__main { padding: 28px 18px 40px; }
  .panel, .stat, .calc { padding: 16px; }
  .panel__head { align-items: flex-start; flex-wrap: wrap; }
  .calc__panel { min-width: 0; }
  .dash__head h1 { font-size: 1.5rem; }
  .actions { flex-wrap: wrap; }
  .loyalty__levels span { font-size: .74rem; padding: 3px 8px; }
}

.usage-grid { display: grid; gap: 22px; }
.usage-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.usage-block__head h3 { margin: 0; font-size: 1rem; }
.usage-block__empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-size: .9rem; }
.chart--stacked rect { opacity: .92; transition: opacity .12s, filter .12s; }
.chart--stacked .chart-day:hover rect { opacity: 1; filter: brightness(1.12); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .8rem; color: var(--text-2); }
.chart-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend__item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend__item small { color: var(--muted); font-family: var(--mono); }
.chart-tip--rich { white-space: normal; min-width: 220px; max-width: 320px; padding: 8px 10px; font-family: var(--font); font-size: .82rem; }
.chart-tip__title { font-weight: 600; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(128, 128, 140, .35); }
.chart-tip__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 2px 0; }
.chart-tip__row i { width: 4px; height: 14px; border-radius: 2px; display: inline-block; }
.chart-tip__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-tip__row b { font-family: var(--mono); font-weight: 600; }
.chart-tip__total { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(128, 128, 140, .35); font-weight: 600; }
.chart-tip__total b { font-family: var(--mono); }
@media (min-width: 960px) { .usage-grid { grid-template-columns: 1fr 1fr; } .usage-block:first-child { grid-column: 1 / -1; } }

/* rules, support and appeal pages */
.container--narrow { max-width: 760px; }
.legal h1 { margin: 6px 0 14px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p { line-height: 1.6; }
.legal__list { padding-left: 22px; line-height: 1.6; }
.legal__list li { margin: 6px 0; }
.legal__faq { display: grid; gap: 8px; margin: 18px 0 8px; }
.legal__faq details { border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 16px; background: var(--surface); }
.legal__faq summary { cursor: pointer; font-weight: 500; }
.legal__faq p { margin: 10px 0 2px; color: var(--text-2); }
.legal__form { max-width: 560px; margin-top: 14px; position: relative; }
.legal__form .field { display: block; margin-bottom: 12px; }
.legal__form .field span { display: block; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.legal__form select, .legal__form textarea, .legal__form input[type=text], .legal__form input[type=email] { width: 100%; box-sizing: border-box; }
.legal__form textarea { resize: vertical; min-height: 140px; }
.mod-excerpt { white-space: pre-wrap; word-break: break-word; font-family: var(--mono, monospace); font-size: .8rem; color: var(--text-2); max-width: 520px; }
.tag--danger { background: color-mix(in srgb, #b23b34 18%, transparent); color: #b23b34; }
.legal__form select { padding: 13px 36px 13px 14px; border-radius: var(--r); font-size: 1rem; background-position: right 13px center; }

#api-usage { transition: opacity .18s ease; }
#api-usage.is-loading { opacity: .55; }
#api-usage.is-fresh { opacity: 0; transition: none; }
#api-usage .panel__hint a { transition: color .15s; }

.check--terms { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); margin: 2px 0 12px; line-height: 1.4; }
.check--terms input { margin-top: 3px; flex: none; }

.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .925rem; color: var(--text-2); margin: 4px 0 8px; }
.form .check input { margin-top: 3px; }

/* ---------- searchable faq ---------- */

.faqx__inner { max-width: 820px; }
.faqx__title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 0; }
.faqx__lead { text-align: center; color: var(--text-2); margin: 12px auto 0; max-width: 560px; }
.faqx__search { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s; }
.faqx__search:focus-within { border-color: var(--muted); }
.faqx__search > .ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.faqx__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); outline: none; padding: 2px 0; }
.faqx__search input::placeholder { color: var(--muted); }
.faqx__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faqx__clear { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.faqx__clear:hover { color: var(--ink); }
.faqx__clear .ico { width: 16px; height: 16px; }
.faqx__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.faqx__tag { font: inherit; font-size: .875rem; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.faqx__tag:hover { color: var(--ink); border-color: var(--muted); }
.faqx__tag.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.faqx__list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faqx__item { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); transition: border-color .2s, background .2s; }
.faqx__item:hover { border-color: var(--muted); }
.faqx__item.is-open { background: var(--bg-2); }
.faqx__q { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 22px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); border-radius: 16px; }
.faqx__qtext { flex: 1; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.faqx__qtag { display: none; flex: none; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.faqx__q > .ico { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .35s cubic-bezier(.22, 1, .36, 1), color .2s; }
.faqx__q:hover > .ico { color: var(--ink); }
.faqx__item.is-open .faqx__q > .ico { transform: rotate(180deg); }
.faqx__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.faqx__item.is-open .faqx__a { grid-template-rows: 1fr; opacity: 1; }
.faqx__a-inner { overflow: hidden; }
.faqx__a p { margin: 0; padding: 0 22px 20px; color: var(--text-2); line-height: 1.6; font-size: .975rem; }
.faqx__a code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: 1px 5px; border-radius: 5px; }
.faqx__empty { margin-top: 32px; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; }
.faqx__empty-title { margin: 0; font-weight: 600; color: var(--ink); }
.faqx__empty-sub { margin: 8px auto 0; max-width: 380px; color: var(--muted); font-size: .925rem; line-height: 1.5; }
.faqx__empty .btn { margin-top: 20px; }
.faqx__foot { margin: 36px 0 0; text-align: center; color: var(--muted); font-size: .925rem; }
.faqx__foot a { color: var(--ink); font-weight: 500; }
@media (min-width: 640px) { .faqx__qtag { display: block; } }
[data-reveal] > .faqx__title, [data-reveal] > .faqx__lead, [data-reveal] > .faqx__search, [data-reveal] > .faqx__tags, [data-reveal] > .faqx__list, [data-reveal] > .faqx__foot { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].is-in > .faqx__title, [data-reveal].is-in > .faqx__lead, [data-reveal].is-in > .faqx__search, [data-reveal].is-in > .faqx__tags, [data-reveal].is-in > .faqx__list, [data-reveal].is-in > .faqx__foot { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .faqx__a, .faqx__q > .ico { transition: none; } }

.container--desk { max-width: 1120px; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 26px; align-items: start; }
.desk__main { min-width: 0; }
.desk__aside { display: grid; gap: 14px; position: sticky; top: 84px; }
.desk__card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; }
.desk__card h3 { margin: 0 0 8px; font-size: .95rem; }
.desk__card p { margin: 0; color: var(--text-2); line-height: 1.55; }
.desk__list, .desk__steps { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.55; font-size: .925rem; }
.desk__list li + li, .desk__steps li + li { margin-top: 6px; }
.desk__list--links { list-style: none; padding-left: 0; }
.legal .desk__h { font-size: 1.05rem; margin: 26px 0 10px; }
.legal .desk__main > .desk__h:first-child { margin-top: 0; }
.desk__status { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px 16px; background: var(--surface); flex-wrap: wrap; }
.desk__status-main { display: flex; gap: 12px; align-items: flex-start; }
.desk__status-main p { margin: 2px 0 0; color: var(--text-2); font-size: .925rem; line-height: 1.5; }
.desk__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--ok); }
.desk__status--warn .desk__dot { background: var(--warn); }
.desk__status--bad .desk__dot { background: var(--bad); }
.desk__status-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .8rem; color: var(--muted); }
.desk__status-meta b { font-size: 1.1rem; color: var(--text); }
.desk__events { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.desk__event { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px 16px; background: var(--surface); }
.desk__event.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.desk__event-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); }
.desk__event-act { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); }
.desk__event-act--strike { background: var(--warn-soft); color: var(--warn); }
.desk__event-cat { margin-top: 8px; font-weight: 500; }
.desk__event-quote { margin: 8px 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); color: var(--text-2); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.desk__none { margin: 8px 0 0; }
.legal__form.desk__form { max-width: none; margin-top: 4px; }
.desk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal__form .desk__row .field { margin-bottom: 0; }
.field__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.desk__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.desk__submit .form__aux { margin: 0; }
.desk__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .desk { grid-template-columns: 1fr; gap: 20px; } .desk__aside { position: static; } }
@media (max-width: 560px) { .desk__row { grid-template-columns: 1fr; gap: 12px; } .desk__status { flex-direction: column; align-items: flex-start; } .desk__status-meta { flex-direction: row; gap: 8px; align-items: baseline; } .desk__event-act { margin-left: 0; } .desk__submit .btn { width: 100%; } }
.desk__event-act--ok { background: var(--ok-soft); color: var(--ok); }
.desk__event-note { margin: 8px 0 0; color: var(--text-2); font-size: .9rem; }

.nv--bare { position: static; }
.nv--bare .nv__row { height: 58px; align-items: center; }
.nv--bare .nv__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.site-footer--bare { margin-top: 40px; padding: 18px 0 28px; }
.site-footer--bare .site-footer__legal { border: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.site-footer--bare a { color: var(--text-2); }

.share__note { margin: 0; white-space: pre-wrap; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.share__log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 70vh; overflow: auto; }
.share__msg { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; background: var(--surface); }
.share__msg--user { background: var(--bg-3); }
.share__meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.share__meta code { font-size: .75rem; }
.share__text { white-space: pre-wrap; line-height: 1.5; font-size: .93rem; overflow-wrap: anywhere; }

.prm__jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.prm__jump { font-size: .875rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface); }
.prm__jump:hover { border-color: var(--accent); color: var(--accent); }
.prm__group { margin-top: 34px; scroll-margin-top: 80px; }
.prm__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.prm__head h2 { font-size: 1.15rem; margin: 0; }
.prm__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.prm__card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.prm__card h3 { margin: 0; font-size: 1rem; }
.prm__text { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.55; flex: 1; white-space: pre-line; }
.prm__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prm__foot { margin-top: 34px; }
@media (max-width: 560px) { .prm__grid { grid-template-columns: 1fr; } }

/* The board: a vote on the left, the idea to the right of it. Borrowed shape
   from every issue tracker worth using — the number is the point, so it gets
   the first column and the only button that changes it. */
.ideas { display: flex; flex-direction: column; gap: 2px; }
.idea { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.idea:first-child { border-top: 0; }
.idea--single { border-top: 0; padding-top: 0; }
.vote-form { margin: 0; }
.vote { flex: none; width: 56px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text);
        font: inherit; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.vote:hover { border-color: var(--accent); text-decoration: none; }
.vote.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.vote__arrow { font-size: 11px; line-height: 1; opacity: .75; }
.vote__n { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.idea__main { min-width: 0; flex: 1; }
.idea__title { font-size: 1.05rem; margin: 0 0 6px; line-height: 1.35; }
.idea__title a { color: var(--text); text-decoration: none; }
.idea__title a:hover { color: var(--accent); }
.idea__body { margin: 0 0 10px; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.idea__text { color: var(--text-2); line-height: 1.65; margin-top: 12px; }
.idea__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.idea__count { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.idea__icon { flex: none; }
.idea__author { margin-left: auto; }
.idea-comments__head { font-size: 1rem; margin: 26px 0 12px; }
.idea-comments { display: flex; flex-direction: column; gap: 12px; }
.idea-comment { border: 1px solid var(--border); border-radius: var(--radius-md, 12px); padding: 12px 14px; background: var(--surface); }
.idea-comment.is-staff { border-color: var(--accent); }
.idea-comment__meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.idea-comment__body { line-height: 1.6; }
@media (max-width: 560px) {
  .idea__author { margin-left: 0; }
}

/* The admin strip under a post: a dashed hairline above it is the only thing
   that says "yours to touch". No box, no heading — it reads as one more row
   of the post's metadata. */
.idea-admin { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
              margin: 16px 0 4px; padding: 12px 0 2px; border-top: 1px dashed var(--line-2); }
.idea-admin__status { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.stchip, .chip { font: inherit; font-size: .78rem; font-weight: 500; line-height: 1; padding: 6px 11px; border-radius: 999px;
          border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer;
          transition: color .12s, border-color .12s, background .12s; }
.stchip:hover, .chip:hover { color: var(--ink); border-color: var(--muted); }
.stchip.is-on, .chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); cursor: default; }
.idea-admin__aside { display: inline-flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; font-size: .8rem; }
.ghost { font: inherit; font-size: .8rem; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: none; }
.ghost:hover { color: var(--ink); text-decoration: none; }
.ghost--danger:hover { color: var(--warn); }
.ghost--link::after { content: " \2192"; }
@media (max-width: 560px) { .idea-admin { align-items: flex-start; flex-direction: column; } }

/* The board head: a bulb in a tile, the question, one button on the same line.
   The width is capped — a list of short cards has no business spanning a
   2000px window. */
.container--board { max-width: 1080px; }
.idea-head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: start; margin-bottom: 28px; }
.idea-head__icon, .idea-empty__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.idea-head__text h1 { margin: 2px 0 6px; font-size: 1.7rem; }
.idea-head__text .lead { margin: 0; font-size: 1rem; max-width: 560px; }
.idea-head__actions { align-self: center; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.idea-head__actions .btn { gap: 7px; }
.idea-head__actions .btn svg { flex: none; }
.idea-empty__doors { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.idea-empty__doors .btn { gap: 6px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 44px; align-items: start; }
.board__main { min-width: 0; }
.board__aside { position: sticky; top: 88px; }
.board__side { display: grid; gap: 22px; }
.facets__title { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 10px; }
.facet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: .9rem; color: var(--text-2); text-decoration: none; transition: background .12s, color .12s; }
.facet:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.facet.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.facet small { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.facet.is-on small { color: inherit; opacity: .8; }
.board__filters { display: none; }
.idea-search { position: relative; display: flex; align-items: center; margin: 0 0 14px; }
.idea-search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.idea-search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }
.idea-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.idea-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.idea-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-3); }
.idea-tab { padding: 6px 12px; border-radius: 9px; font-size: .85rem; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .12s, background .12s; }
.idea-tab:hover { color: var(--ink); text-decoration: none; }
.idea-tab.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.idea-bar__reset { font-size: .85rem; color: var(--muted); }
.idea-bar__reset:hover { color: var(--ink); }
.chip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip { text-decoration: none; }
@media (max-width: 899px) {
  .board { grid-template-columns: 1fr; gap: 0; }
  .board__aside { display: none; }
  .board__filters { display: block; margin: 0 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
  .board__filters > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: .9rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
  .board__filters > summary::-webkit-details-marker { display: none; }
  .board__filters > summary b { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; }
  .board__filters[open] > summary { border-bottom: 1px solid var(--line); }
  .board__filters .board__side { padding: 12px 8px 8px; gap: 16px; }
}

/* The form: what it is and where it belongs are choices you tap, not
   dropdowns to open. Two cards for the kind, a row of pills for the section. */
.idea-form h1 { font-size: 2rem; }
.idea-form .lead { max-width: 560px; }
.idea-form__form { max-width: 640px; gap: 22px; }
.fset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fset__label { display: block; padding: 0; margin: 0 0 8px; font-size: .875rem; font-weight: 500; color: var(--text-2); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.pick input, .chipr input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pick:hover { border-color: var(--muted); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick:has(input:focus-visible), .chipr:has(input:focus-visible) span { box-shadow: 0 0 0 3px var(--accent-soft); }
.pick__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-2); flex: none; transition: background .12s, color .12s; }
.pick:has(input:checked) .pick__icon { background: var(--accent); color: #fff; }
.pick__text { display: grid; gap: 1px; min-width: 0; }
.pick__text b { font-size: .95rem; color: var(--ink); }
.pick__text small { font-size: .8rem; color: var(--text-2); }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipr { position: relative; cursor: pointer; }
.chipr span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; color: var(--text-2); transition: border-color .12s, color .12s, background .12s; }
.chipr:hover span { border-color: var(--muted); color: var(--ink); }
.chipr:has(input:checked) span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.idea-form__actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.ghost-link { font-size: .95rem; color: var(--muted); text-decoration: none; }
.ghost-link:hover { color: var(--ink); }
.idea-form__note { margin: 0; }
@media (max-width: 560px) { .picks { grid-template-columns: 1fr; } .idea-form h1 { font-size: 1.7rem; } }
@media (max-width: 720px) {
  .idea-head { grid-template-columns: auto 1fr; }
  .idea-head__actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 4px; }
}
.idea-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 20px 48px; }
.idea-empty p { margin: 0; max-width: 420px; color: var(--text-2); }
.idea-empty__icon { width: 56px; height: 56px; border-radius: 16px; }
@media (max-width: 560px) {
  .idea-head { grid-template-columns: auto 1fr; }
  .idea-head__cta { grid-column: 1 / -1; justify-self: start; }
  .chip-row__gap { display: none; }
}

/* err:start */
.err { position: relative; width: 100%; min-height: calc(100vh - 73px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; overflow: hidden; isolation: isolate; background: var(--bg); color: var(--ink); }
.err--standalone { min-height: 100vh; font-family: var(--font); }
.err__bg { position: absolute; left: 0; right: 0; top: 32px; height: 128px; max-width: 1400px; margin: 0 auto; padding: 0 16px; opacity: .15; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.err__bg svg { width: 100%; height: 100%; display: block; }
.err__code { font-weight: 800; font-size: clamp(120px, 34vw, 620px); line-height: 1; letter-spacing: -.04em; color: color-mix(in srgb, currentColor 10%, transparent); -webkit-text-stroke: 1.5px var(--ink); font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .err__bg { opacity: .1; }
.err__col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; width: 100%; max-width: 1400px; }
.err__star { display: block; width: 64px; height: 64px; animation: err-spin .6s ease-out both; }
.err__star svg { width: 100%; height: 100%; display: block; }
.err__title { font-size: 2.25rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; animation: err-rise .5s ease-out .2s both; }
.err__text { margin: 0; max-width: 34ch; font-size: .9rem; line-height: 1.6; color: var(--text-2); animation: err-rise .5s ease-out .3s both; }
.err__text a { color: var(--ink); font-weight: 500; }
.err__btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; padding: 12px 32px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 500; font-size: 1rem; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .15), 0 4px 6px -4px rgba(0, 0, 0, .15); transition: background .2s; animation: err-rise .5s ease-out .4s both; }
.err__btn:hover { background: var(--ink-hover); color: var(--on-ink); text-decoration: none; }
@keyframes err-spin { from { opacity: 0; transform: scale(.5) rotate(-180deg); } }
@keyframes err-rise { from { opacity: 0; transform: translateY(20px); } }
@media (min-width: 640px) { .err__bg { top: 50%; height: auto; transform: translateY(-50%); } .err__star { width: 80px; height: 80px; } .err__title { font-size: 3rem; } .err__btn { padding: 12px 40px; } }
@media (min-width: 768px) { .err__title { font-size: 3.75rem; } }
@media (prefers-reduced-motion: reduce) { .err__star, .err__title, .err__text, .err__btn { animation: none; } }
/* err:end */

.nv__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 600; line-height: 1; }
.nv__badge--dot { min-width: 8px; width: 8px; height: 8px; padding: 0; margin: 0 0 8px 3px; }
.nv__mobile-link > span { display: inline-flex; align-items: center; gap: 10px; }
.nv__lang { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 7px; border-radius: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--text-2); text-decoration: none; transition: background .2s, color .2s; }
.nv__lang:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }

/* account cabinet: one column of sections beside an index of them. Two
   stacks of cards never shared a line, so nothing on one side ended where
   anything on the other did; settings now start on the same line whatever
   their height, and data gets the full width of the column. */
.acct { --acct-top: 68px; }
.acct .container { max-width: 1320px; }
.acct .dash__head { margin-bottom: 22px; }
.acct .dash__head h1 { font-size: 2.1rem; }

.acct-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; margin: 6px 0 44px; }
.acct-metric { background: var(--surface); padding: 22px 24px; min-width: 0; display: flex; flex-direction: column; }
.acct-metric .stat__label { font-size: .875rem; color: var(--text-2); margin: 0 0 10px; letter-spacing: 0; }
.acct-metric .stat__value { font-size: 2.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acct-metric--lead .stat__value { font-size: 2.6rem; }
.acct-metric .stat__value--text { font-size: 1.3rem; line-height: 1.25; padding-top: 6px; }
.acct-metric .stat__sub { font-size: .9rem; color: var(--text-2); margin-top: auto; padding-top: 10px; overflow-wrap: anywhere; }
.acct-summary--sm { margin: 0 0 22px; }
.acct-summary--sm .acct-metric { padding: 16px 18px; }
.acct-summary--sm .stat__value { font-size: 1.6rem; }
.acct-summary--sm .stat__value--text { font-size: 1.05rem; }

.acct-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.acct-nav { position: sticky; top: calc(var(--acct-top) + 24px); display: flex; flex-direction: column; border-left: 1px solid var(--line-2); max-height: calc(100vh - var(--acct-top) - 48px); overflow-y: auto; scrollbar-width: thin; }
.acct-nav a { display: block; color: var(--text-2); padding: 8px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .95rem; line-height: 1.3; }
.acct-nav a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line-2); }
.acct-nav a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.acct-main { min-width: 0; }

.acct-sec, .acct-main > .panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 40px 0; margin: 0; scroll-margin-top: calc(var(--acct-top) + 24px); }
.acct-main > :first-child { border-top: 0; padding-top: 0; }
.acct-sec__head, .acct-main > .panel > .panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0 0 20px; }
.acct-sec__head h2, .acct-main > .panel > .panel__head h2 { font-size: 1.4rem; margin: 0; letter-spacing: -.02em; }
.acct-sec__lead { flex: 1 1 100%; order: 3; margin: 2px 0 0; color: var(--text-2); font-size: 1rem; line-height: 1.55; max-width: 70ch; }
.acct-sec__note { color: var(--muted); font-size: .9rem; }
.acct-sec__link { font-size: .95rem; }
.acct-main > .panel > .panel__hint { margin: -10px 0 20px; color: var(--text-2); font-size: .95rem; }
.acct-text { color: var(--text-2); margin: 0 0 14px; line-height: 1.6; max-width: 70ch; }
.acct-gap { margin-top: 16px; }
.acct-chart { margin: 0 0 18px; }
.acct-kvs { margin: 0 0 18px; }

.acct-sec--split { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 14px 56px; align-items: start; }
.acct-sec--split > .acct-sec__head { display: block; margin: 0; }
.acct-sec--split > .acct-sec__head h2 { font-size: 1.15rem; }
.acct-sec--split .acct-sec__lead { margin-top: 8px; font-size: .95rem; }
.acct-sec__body { min-width: 0; }
.acct-sec__body > :first-child { margin-top: 0; }
.acct-sec__body > .kv:first-child, .acct-sec__body > .switch-row:first-child { padding-top: 0; }
.acct-sec__body .form--row { margin-top: 0; max-width: 520px; }
.acct-sec__body .panel__sub { margin-top: 28px; }
.acct-password { margin-top: 10px; }
.loyalty__now { margin-bottom: 12px; }

.acct .table-wrap { background: var(--surface); }
.acct .table--data th { background: transparent; }
.acct .table--data th.num, .acct .table--data td.num { text-align: right; }
.acct .table--data td.t-model code { background: none; padding: 0; font-size: .875rem; overflow-wrap: anywhere; }
.acct .mono { font-family: var(--mono); font-size: .875rem; }
.acct .table--keys .k-key { color: var(--text-2); white-space: nowrap; }
.acct .table--keys .k-used { white-space: nowrap; }
.cell-label { display: none; }

.acct #topup > .calc { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; margin: 0; background: var(--surface); }
.calc__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 20px; margin: 4px 0 16px; }
.calc__item { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 12px 0 10px; }
.calc__item b { font-size: 1.35rem; }

@media (max-width: 1100px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .acct-nav { top: var(--acct-top); z-index: 20; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; border-left: 0; border-bottom: 1px solid var(--line-2); background: var(--bg); margin: 0 -28px 12px; padding: 0 18px; scrollbar-width: none; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav a { flex: none; white-space: nowrap; margin: 0 0 -1px; padding: 13px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .acct-nav a:hover { border-bottom-color: var(--line-2); }
  .acct-nav a.is-active { border-bottom-color: var(--accent); }
  .acct-sec, .acct-main > .panel { scroll-margin-top: calc(var(--acct-top) + 64px); }
  .acct-main > :first-child { padding-top: 20px; }
}
@media (max-width: 900px) {
  .acct-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-sec--split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .acct-sec, .acct-main > .panel { padding: 32px 0; }
}
@media (max-width: 680px) {
  .acct-nav { margin: 0 -20px 12px; padding: 0 10px; }
  .acct .dash__head h1 { font-size: 1.7rem; }
  .acct-metric { padding: 16px 18px; }
  .acct-metric .stat__value { font-size: 1.7rem; }
  .acct-metric--lead .stat__value { font-size: 2.1rem; }
  .acct #topup > .calc { padding: 16px; }
  .acct-sec__head h2, .acct-main > .panel > .panel__head h2 { font-size: 1.25rem; }
}
@media (max-width: 680px) {
  .acct .table--stack thead { display: none; }
  .acct .table--stack, .acct .table--stack tbody, .acct .table--stack tr { display: block; width: 100%; }
  .acct .table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .acct .table--stack tr:last-child { border-bottom: 0; }
  .acct .table--stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  .acct .table--stack td.k-cta { justify-content: flex-end; padding-top: 10px; }
  .acct .table--stack .cell-label { display: inline; color: var(--muted); font-size: .85rem; text-align: left; font-family: var(--font); font-weight: 400; }
  .acct .table--stack tr.row-empty td { display: block; text-align: left; }
}
@media (max-width: 420px) {
  .acct-summary { grid-template-columns: minmax(0, 1fr); }
}

/* cabinet fixes after looking at it on a tablet and a phone */
.acct-summary.acct-summary--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .acct-summary.acct-summary--sm { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .acct .table--stack td::before, .acct .table--stack td::after { content: none; display: none; }
  .acct .table--stack td.k-name, .acct .table--stack td.k-key, .acct .table--stack td.k-spent, .acct .table--stack td.k-used, .acct .table--stack td.k-cta {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; grid-column: auto; grid-row: auto; order: 0; position: static; text-align: right; padding: 4px 0; margin: 0;
  }
  .acct .table--stack td.k-cta { justify-content: flex-end; padding-top: 10px; }
}
@media (max-width: 680px) {
  .acct .dash__head .actions { flex-wrap: nowrap; gap: 8px; }
  .acct .dash__head .actions .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 359px) {
  .acct .dash__head .actions { flex-wrap: wrap; }
}

/* admin in the cabinet's language: figures in one strip whose column count
   leaves no cell alone on a row, sections divided by space and a hairline
   rather than each wrapped in a card, controls with their name on the left,
   and tables at full width unless the neighbour is the same kind of list. */
.adm { --adm-top: 68px; }
.adm .admin-nav { margin-bottom: 28px; }
.adm .dash__head { margin-bottom: 24px; }
.adm .dash__head h1 { overflow-wrap: anywhere; }
.adm .dash__who { line-height: 1.75; }

.adm .stats { --cols: 4; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 40px; }
.adm .stats[data-n="1"] { --cols: 1; }
.adm .stats[data-n="2"] { --cols: 2; }
.adm .stats[data-n="3"], .adm .stats[data-n="6"] { --cols: 3; }
.adm .stats[data-n="5"] { --cols: 5; }
.adm .stats[data-n="7"] > .stat:last-child { grid-column: span 2; }
.adm .stat { border: 0; border-radius: 0; background: var(--surface); padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; }
.adm .stat__label { font-size: .85rem; color: var(--text-2); margin: 0 0 8px; letter-spacing: 0; }
.adm .stat__value { font-size: 1.85rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm .stat__sub { margin-top: auto; padding-top: 8px; font-size: .875rem; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.adm .stats--sm { margin: 0 0 22px; }
.adm .stats--sm .stat { padding: 16px 18px; }
.adm .stats--sm .stat__value { font-size: 1.4rem; }

.adm .panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 36px 0 40px; margin: 0; min-width: 0; }
.adm .panel__head { align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; }
.adm .panel__head h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.adm .dash__head + .panel, .adm .stats + .panel, .adm .stats + .adm-form > .panel:first-child { border-top: 0; padding-top: 0; }

.adm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.adm-pair--wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.adm .adm-pair > .panel { border-top: 0; }
.adm .stats + .adm-pair, .adm .dash__head + .adm-pair { border-top: 0; }
.adm .stats + .adm-pair > .panel, .adm .dash__head + .adm-pair > .panel { padding-top: 0; }

.adm-split { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 12px 56px; align-items: start; }
.adm-split__head h2 { font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.adm-lead { margin: 8px 0 0; color: var(--text-2); font-size: .925rem; line-height: 1.55; }
.adm-split__body { min-width: 0; }
.adm-split__body > .kv:first-child { padding-top: 0; }
.adm-gap { margin-top: 14px; }
.adm-gap-xs { margin-top: 6px; }
.adm-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 76ch; }
.adm-body { margin: 0; color: var(--text-2); line-height: 1.6; max-width: 76ch; }
.adm-body code { overflow-wrap: anywhere; }
.adm-sub { font-size: 1rem; margin: 22px 0 8px; }
.adm-message { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--text); max-width: 76ch; }
.adm-narrow { max-width: 820px; }
.adm-grant { margin: 0; max-width: 680px; }
.adm-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adm-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 20px 22px; margin: 0 0 28px; }

.adm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 24px; align-items: stretch; }
.adm-fields > .field { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; margin: 0; min-width: 0; }
.adm-fields > .adm-wide { grid-column: 1 / -1; justify-content: flex-start; }
.adm-fields > .adm-note { grid-column: 1 / -1; margin: 0; }
.adm-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-inline input { flex: 1 1 180px; min-width: 0; }
.adm-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; padding: 14px 0 14px 296px; margin: 0 0 8px; background: var(--bg); border-top: 1px solid var(--line-2); }

.adm .table-wrap { background: var(--surface); }
.adm .table th { background: transparent; white-space: nowrap; }
.adm .table td.when, .adm .table td.nowrap, .adm .table .status { white-space: nowrap; }
.adm .table td.adm-cell-text { min-width: 260px; }
.adm-mono { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .8rem; line-height: 1.5; color: var(--text-2); max-width: 72ch; }
.adm .mod-excerpt { max-width: 72ch; overflow-wrap: anywhere; }
.adm-more > summary { list-style: none; cursor: pointer; }
.adm-more > summary::-webkit-details-marker { display: none; }
.adm-more__open, .adm-more__close { display: inline-block; margin-left: 8px; font-family: var(--font); font-size: .8rem; font-weight: 500; color: var(--accent-2); white-space: nowrap; }
.adm-more__close, .adm-more[open] .adm-more__cut, .adm-more[open] .adm-more__open { display: none; }
.adm-more[open] .adm-more__close { display: inline-block; margin: 0 0 6px; }
.adm-more > summary:hover .adm-more__open { text-decoration: underline; }
.adm-more__full { white-space: pre-wrap; }

.adm-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 56px; align-items: start; }
.adm-aside__main, .adm-aside__side { min-width: 0; }
.adm-aside__side { position: sticky; top: calc(var(--adm-top) + 20px); }
.adm .adm-aside__main > .panel:first-child, .adm .adm-aside__side > .panel:first-child { border-top: 0; padding-top: 0; }
.adm .share__log { max-height: none; overflow: visible; }
.adm .share__text { max-width: 80ch; }

@media (min-width: 681px) {
  .adm-grant input[name="amount"] { flex: 0 0 210px; }
}
@media (max-width: 1100px) {
  .adm .stats[data-n="5"] { --cols: 3; }
  .adm .stats[data-n="5"] > .stat:last-child { grid-column: span 2; }
  .adm-pair, .adm-pair--wide { grid-template-columns: minmax(0, 1fr); }
  .adm .adm-pair > .panel + .panel { border-top: 1px solid var(--line); padding-top: 36px; }
  .adm-aside { grid-template-columns: minmax(0, 1fr); }
  .adm-aside__side { position: static; }
  .adm .adm-aside__side > .panel:first-child { border-top: 1px solid var(--line); padding-top: 36px; }
}
@media (max-width: 900px) {
  .adm .stats[data-n] { --cols: 2; }
  .adm .stats[data-n] > .stat:last-child { grid-column: auto; }
  .adm .stats[data-n] > .stat:nth-child(odd):last-child { grid-column: 1 / -1; }
  .adm-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .adm-savebar { padding-left: 0; }
}
@media (max-width: 680px) {
  .adm .stat { padding: 16px; }
  .adm .stat__value { font-size: 1.5rem; }
  .adm .panel { padding: 28px 0 32px; }
  .adm .panel__head h2 { font-size: 1.15rem; }
  .adm-row2, .adm-fields { grid-template-columns: minmax(0, 1fr); }
  .adm .table td.adm-cell-text { min-width: 220px; }
}
@media (max-width: 480px) {
  .adm .stats[data-n] { --cols: 1; }
}
.adm .inline-form { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.adm .inline-form.form--row { flex-direction: row; flex-wrap: wrap; margin: 0; }
.adm .inline-form input[type="text"], .adm .inline-form select { width: auto; padding: 6px 10px; font-size: .875rem; border-radius: 8px; }
.adm .inline-form select { padding-right: 30px; background-position: right 9px center; }
.adm .dash__head + .panel { margin-top: 12px; }

/* public pages in the same language. The admin rule that widens .dash
   containers to 1360px also caught the support, appeal and rules pages, so
   their text ran wider than the header and footer around it. */
.dash .container--desk { max-width: var(--container); }
.dash .container--narrow { max-width: 760px; }

.legal__faq { gap: 0; margin: 12px 0 8px; border-top: 1px solid var(--line); }
.legal__faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 0; }
.legal__faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; line-height: 1.4; }
.legal__faq summary::-webkit-details-marker { display: none; }
.legal__faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.legal__faq summary:hover::after { background: var(--ink); }
.legal__faq details[open] summary::after { transform: rotate(180deg); }
.legal__faq p { margin: 0 0 18px; max-width: 70ch; line-height: 1.6; }

.desk { gap: 56px; margin-top: 32px; }
.desk__aside { gap: 0; top: 92px; }
.desk__card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 20px 0; }
.desk__aside > .desk__card:first-child { border-top: 0; padding-top: 4px; }
.desk__card h3 { font-size: 1rem; margin-bottom: 10px; }

.tool-tile { grid-template-rows: 1fr auto; }

.calc__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .desk { gap: 28px; } .desk__aside { position: static; } }
.container--board { max-width: var(--container); }
.legal .kv { margin: 18px 0 22px; }
