/* ---------- Fonts (self-hosted, no network needed) ---------- */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-tight-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens: black (default) ---------- */
:root {
  --bg: #0b0c0e;
  --surface: #16181c;
  --surface-2: #1e2126;
  --field: #101215;
  --line: #2a2e35;
  --line-strong: #3f444c;
  --grid: rgba(255, 255, 255, .035);
  --ring: rgba(255, 255, 255, .06);
  --glow: rgba(255, 255, 255, .05);

  --ink: #eceef1;
  --muted: #9aa2ad;
  --faint: #7f8791;
  --on-ink: #0b0c0e;
  --accent: var(--ink);

  --ok: #3ccfae;
  --ok-soft: rgba(60, 207, 174, .12);
  --danger: #ff5d63;
  --danger-soft: rgba(255, 93, 99, .12);
  --danger-btn: #d6353d;

  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 24px -16px rgba(0, 0, 0, .8);
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 2px rgba(0, 0, 0, .35);

  --r: 8px;
  --f-sans: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --f-mono: 'Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  /* type scale: caption, small, body, lead, title */
  --fs-cap: .78rem;
  --fs-sm: .9rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;

  /* all three themes are light: tell the browser, so a phone's forced dark mode does not repaint them */
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.55 var(--f-sans);
  letter-spacing: .003em;
  color: var(--ink);
  background: radial-gradient(1100px 520px at 18% -12%, var(--glow), transparent 70%), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Background: technical grid + dial rings ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 0%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 30% 0%, #000, transparent 78%);
}
.bg b {
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 40px, var(--ring) 40px 41px);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 60%);
  mask-image: radial-gradient(circle at 100% 100%, #000, transparent 60%);
}

/* ---------- Shell ---------- */
.shell { max-width: 1320px; margin: 0 auto; padding: 0 16px; }

.rail {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around; gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
}
.brand { display: none; }
.rail a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: var(--r);
  color: var(--muted); text-decoration: none;
  font-size: .72rem; font-weight: 500; letter-spacing: .02em; text-align: center;
  transition: background .15s, color .15s;
}
.rail a svg { width: 22px; height: 22px; }
.rail a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 600; }

main { padding: 24px 0 110px; min-height: 100vh; animation: rise .3s ease both; }
.shell.focus .rail { display: none; }
.shell.focus main { padding-bottom: 130px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 40px; padding: 0 28px; }
  .rail {
    position: sticky; top: 28px; left: auto; right: auto; bottom: auto;
    align-self: start; flex-direction: column; justify-content: flex-start; gap: 2px;
    margin-top: 32px; padding: 14px 10px;
    border: 1px solid var(--line); border-radius: 8px;
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
  .brand img { width: 30px; height: 30px; border-radius: 6px; }
  .rail a { flex: none; flex-direction: row; gap: 12px; padding: 11px 12px; font-size: .95rem; letter-spacing: 0; text-align: left; position: relative; }
  .rail a[aria-current="page"]::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
  main { padding: 32px 0 64px; }
  .shell.focus { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); }
h1 { font-weight: 700; font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-weight: 600; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; }
.sub { color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { margin-top: 10px; }

/* Card titles are small mono labels: structure, not decoration */
.card > h2, .section-title h2 {
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.card > h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.soft { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.btn.soft:hover { background: var(--ok-soft); border-color: var(--ok); }
.btn.danger { background: var(--danger-btn, var(--danger)); border-color: var(--danger-btn, var(--danger)); color: #fff; }
.btn.danger:hover { background: var(--danger); filter: brightness(1.1); }
.btn.danger-ghost { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn.danger-ghost:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.icon-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--field); color: var(--muted);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Dashboard hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding: 4px 0; overflow-x: clip; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero-copy .actions { margin-top: 8px; }
@media (min-width: 720px) { .hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; } }

/* ---------- Notices ---------- */
.notice { display: grid; gap: 14px; border-left: 3px solid var(--ok); }
.notice h2 { font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -.005em; }
.notice p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.notice.bad { border-left-color: var(--danger); background: linear-gradient(90deg, var(--danger-soft), var(--surface) 60%); }
.notice.bad h2 { color: var(--danger); }
.notice.info { border-left-color: var(--muted); }
.notice.info .notice-head > svg { color: var(--muted); }
.notice.good { background: linear-gradient(90deg, var(--ok-soft), var(--surface) 60%); }
.notice.good h2 { color: var(--ok); }
.notice-head { display: flex; gap: 12px; align-items: flex-start; }
.notice-head > svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice.bad .notice-head > svg { color: var(--danger); }
.notice.good .notice-head > svg { color: var(--ok); }
.mini-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line);
}
.mini-row strong { font-weight: 600; }
.mini-row span { color: var(--muted); font-size: .85rem; }

/* ---------- Search + rows ---------- */
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); }
.search .inp { padding-left: 42px; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: var(--r); background: var(--field); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: border-color .15s, background .15s;
}
.row:hover { border-color: var(--muted); background: var(--surface-2); }
.avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 1rem; line-height: 1; color: var(--ink);
}
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font: 400 .78rem/1.4 var(--f-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); font-size: .9rem; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Status ---------- */
.chip-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 8px; border-radius: 3px;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ok-soft); color: var(--ok);
}
.chip-status::before { content: ''; width: 7px; height: 7px; background: var(--ok); }
.chip-status.stale { background: var(--danger-soft); color: var(--danger); }
.chip-status.stale::before { background: var(--danger); }

.chip-status.neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
.chip-status.neutral::before { background: var(--muted); }

/* ---------- Offers ---------- */
.notice.promo-banner { border-left-color: var(--ink); }
.notice.promo-banner .notice-head > svg { color: var(--ink); }
.grid.promos { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.promo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.promo > h2 { font: 700 1.35rem/1.15 var(--f-sans); letter-spacing: -.025em; text-transform: none; color: var(--ink); padding: 0; border: 0; overflow-wrap: anywhere; }
.promo-text { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.promo-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--field); }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-main { display: grid; gap: 10px; min-width: 0; }
.profile-main h2 { font: 600 1.05rem/1.25 var(--f-sans); letter-spacing: -.01em; text-transform: none; color: var(--ink); padding: 0; border: 0; }
.avatar-big {
  position: relative; display: block; width: 112px; height: 112px; padding: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-2); color: var(--muted);
}
.avatar-big:hover { border-color: var(--muted); }
.avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-ph { display: grid; place-items: center; width: 100%; height: 100%; }
.avatar-ph svg { width: 44%; height: 44%; }
.avatar-edit {
  position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--ink); color: var(--on-ink);
}
.avatar-edit svg { width: 16px; height: 16px; }
.pid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pid-val { font: 500 1.2rem/1.2 var(--f-mono); letter-spacing: .06em; }
.pchip {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 5px 14px 5px 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.pchip:hover { border-color: var(--muted); }
.pchip .pid-val { font-size: .85rem; }
.avatar-sm { display: block; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
details.recover { border-top: 1px solid var(--line); padding-top: 14px; }
details.recover summary { cursor: pointer; font-weight: 600; }
details.recover[open] summary { margin-bottom: 8px; }
details.recover .list-row { margin-top: 10px; }
@media (max-width: 520px) { .profile { grid-template-columns: minmax(0, 1fr); } .avatar-big { width: 132px; height: 132px; } }

/* ---------- Support request ---------- */
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.refbox { margin: 6px 0 12px; padding: 16px 22px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--field); font: 500 clamp(1.4rem, 6vw, 2rem)/1 var(--f-mono); letter-spacing: .14em; user-select: all; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.3em; }
textarea.inp { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; font-family: inherit; }

/* ---------- Cloud sign-in ---------- */
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }

/* ---------- Account cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.acc.stale { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.acc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-upd { font-size: .8rem; color: var(--muted); }
.acc.stale .acc-upd { color: var(--danger); font-weight: 500; }
.acc h2 { font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.acc-meta { font: 400 .8rem/1.4 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; margin-top: 4px; }
.pips-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pips { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; }
.pips span { height: 10px; background: var(--line-strong); }
.pips span.on { background: var(--accent); }
.pips-count { font: 400 .74rem/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.acc .actions .btn { flex: 1 1 auto; }

/* ---------- Empty ---------- */
.empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 40px 20px; }
.empty svg { width: 40px; height: 40px; color: var(--muted); }
.empty h2 { font-size: 1.3rem; letter-spacing: -.02em; text-transform: none; font-family: var(--f-sans); color: var(--ink); }
.empty p { color: var(--muted); max-width: 44ch; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.form .card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.field-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.field label, .field .lbl { font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint { font-size: .86rem; color: var(--muted); }
.inp, select.inp {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--field);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.inp.mono { font-family: var(--f-mono); letter-spacing: .03em; }
.inp[type="date"] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 16%, transparent); }
.inp::placeholder { color: var(--faint); }
select.inp option { background: var(--surface); color: var(--ink); }
.list, .list-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.list-row { display: flex; gap: 8px; }
.list > .btn, .list > .seg { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--field); color: var(--ink); font-weight: 500; transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip-add { display: flex; gap: 8px; margin-top: 4px; }
.chip-add .inp { min-height: 40px; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line-strong); }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 4px; background: transparent; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.topup-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 44px; gap: 8px; }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line-strong);
}
.sticky-bar .in { max-width: 820px; margin: 0 auto; display: flex; gap: 10px; justify-content: flex-end; }
.sticky-bar .btn:last-child { flex: 1 1 auto; max-width: 260px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; }
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: .9rem;
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ink); }
.note strong { color: var(--ink); }

/* ---------- Request ---------- */
.req-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.req-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.req-n { font: 500 .78rem/1 var(--f-mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 6px 0; min-width: 34px; text-align: center; }
.req-q { font-size: .85rem; color: var(--muted); }
.req-a { margin-top: 4px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.req-a.empty-a { color: var(--danger); font-weight: 500; }
.req-side { display: flex; gap: 8px; align-items: center; }
.req-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.req-top select { max-width: 320px; }

/* ---------- Settings ---------- */
.set-row { display: flex; gap: 14px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.set-row h2 { font: 600 1.05rem/1.25 var(--f-sans); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.set-row .sub { margin-top: 4px; font-size: .9rem; }
.set-row .grow { flex: 1 1 280px; }
.card.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }

/* ---------- Dialog, toast, pin ---------- */
dialog {
  width: min(420px, calc(100vw - 32px)); padding: 24px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.02em; }
dialog p { color: var(--muted); margin-bottom: 22px; }
dialog .actions { justify-content: flex-end; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%); max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--on-ink);
  font-weight: 600; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
  animation: toast 2.4s ease both;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

.pin {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
.pin-box { width: min(340px, 100%); display: grid; gap: 20px; justify-items: center; text-align: center; }
.pin-box img { width: 60px; height: 60px; border-radius: 10px; border: 1px solid var(--line-strong); }
.pin-box h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.pin-dots { display: flex; gap: 14px; }
.pin-dots span { width: 14px; height: 14px; border: 2px solid var(--ink); transition: background .12s; }
.pin-dots span.on { background: var(--ink); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-msg { min-height: 1.4em; color: var(--danger); font-size: .9rem; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.keypad button {
  min-height: 62px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); font: 600 1.35rem/1 var(--f-sans); font-variant-numeric: tabular-nums;
}
.keypad button:active { background: var(--surface-2); }
.keypad button.ghost { background: transparent; border-color: transparent; font: 500 .9rem/1.2 var(--f-sans); color: var(--muted); }
.keypad button svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Readiness dial: a 3D safe dial ---------- */
:root { --m1: #2e3239; --m2: #15171b; --m3: #353a42; --m4: #101215; --spec: rgba(255, 255, 255, .16); }

.dial3d { --dg: var(--ink); container-type: inline-size; position: relative; width: min(100%, 320px); aspect-ratio: 1; justify-self: center; }
.dial3d.lvl-low { --dg: var(--danger); }
.dial3d.lvl-high { --dg: var(--ok); }
.dial3d.lvl-none { --dg: var(--faint); }

.d-glow { position: absolute; inset: -6%; border-radius: 50%; filter: blur(20px); opacity: .7; animation: dGlow 5s ease-in-out infinite;
  background: radial-gradient(circle, color-mix(in srgb, var(--dg) 38%, transparent) 0%, transparent 62%); }
@keyframes dGlow { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: .85; transform: scale(1.04); } }
.d-shadow { position: absolute; left: 12%; right: 12%; bottom: -7%; height: 9%; border-radius: 50%; filter: blur(6px);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); }

.d-stage { position: absolute; inset: 0; perspective: 900px; animation: dFloat 7s ease-in-out infinite; }
@keyframes dFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.d-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(calc(var(--ty, 0) * -18deg)) rotateY(calc(var(--tx, 0) * 18deg)); }

.d-plate, .d-layer, .d-knob { position: absolute; }
.d-plate {
  inset: 0; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 20deg, var(--m1), var(--m2) 14%, var(--m3) 28%, var(--m4) 44%, var(--m3) 58%, var(--m2) 72%, var(--m1) 86%, var(--m3));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 -14px 30px rgba(0, 0, 0, .45) inset, 0 0 0 1px var(--line-strong), 0 22px 40px -18px rgba(0, 0, 0, .85);
}
/* A band of light slowly crossing the metal, and a highlight that follows the tilt */
.d-plate::before { content: ''; position: absolute; inset: -30%; mix-blend-mode: overlay; animation: dSweep 9s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 44%, var(--spec) 50%, transparent 56% 100%); }
.d-plate::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at calc(50% + var(--tx, 0) * 22%) calc(32% + var(--ty, 0) * 22%), var(--spec), transparent 46%); }
@keyframes dSweep { to { transform: rotate(360deg); } }

.d-layer { inset: 0; width: 100%; height: 100%; overflow: visible; }
.d-bezel { translate: 0 0 8px; animation: dSpinIn 2.6s cubic-bezier(.16, .84, .3, 1) both, dSpin 90s linear 2.6s infinite; }
.d-ticks { translate: 0 0 16px; }
.d-inner { translate: 0 0 26px; animation: dSpinRev 60s linear infinite; }
@keyframes dSpinIn { from { rotate: 540deg; } to { rotate: 0deg; } }
@keyframes dSpin { to { rotate: 360deg; } }
@keyframes dSpinRev { to { rotate: -360deg; } }

.bz-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.bz-tooth { stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1.6; }
.bz-notch { stroke: var(--ink); stroke-width: 2.6; opacity: .85; }
.in-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.in-tick { stroke: color-mix(in srgb, var(--ink) 32%, transparent); stroke-width: 1.5; }
.in-tick.long { stroke: var(--ink); stroke-width: 2.4; opacity: .8; }

.d-ticks line { stroke: var(--tick-off); stroke-width: 1.8; }
.d-ticks line.mid { stroke-width: 2.4; }
.d-ticks line.long { stroke-width: 3.2; }
.dial3d.on .d-ticks line.lit { stroke: var(--dg); transition: stroke .3s calc(var(--i) * 21ms); }
.dial3d.on .d-ticks { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--dg) 70%, transparent)); }
.d-track { fill: none; stroke: var(--line); stroke-width: 7; }
.d-arc { fill: none; stroke: var(--dg); stroke-width: 7; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); }
.dial3d.on .d-arc { animation: dArc 2.2s cubic-bezier(.22, .8, .2, 1) .15s forwards; }
@keyframes dArc { to { stroke-dashoffset: var(--o); } }
.d-tip { transform-box: view-box; transform-origin: 150px 150px; opacity: 0; }
.dial3d.on .d-tip { animation: dTip 2.2s cubic-bezier(.22, .8, .2, 1) .15s forwards; }
@keyframes dTip { 0% { opacity: 1; transform: rotate(0deg); } 100% { opacity: 1; transform: rotate(var(--a)); } }
.d-tip circle { fill: var(--dg); }
.d-tip .halo { fill: color-mix(in srgb, var(--dg) 32%, transparent); transform-box: fill-box; transform-origin: center; animation: dPulse 2s ease-in-out infinite; }
@keyframes dPulse { 0%, 100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } }
.dial3d.lvl-none .d-tip { display: none; }

.d-knob {
  left: 28%; top: 28%; width: 44%; height: 44%; border-radius: 50%; translate: 0 0 40px;
  display: grid; place-content: center; justify-items: center; gap: 1px; text-align: center;
  background: radial-gradient(circle at calc(34% + var(--tx, 0) * 14%) calc(26% + var(--ty, 0) * 14%), var(--m3), var(--m2) 55%, var(--m4));
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -8px 16px rgba(0, 0, 0, .45) inset,
    0 0 0 1px var(--line-strong), 0 0 26px -4px color-mix(in srgb, var(--dg) 45%, transparent);
}
.d-pct { font-weight: 700; font-size: clamp(2rem, 13cqw, 3.4rem); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  color: var(--ink); text-shadow: 0 0 18px color-mix(in srgb, var(--dg) 55%, transparent); }
.d-pct small { font: 500 .32em/1 var(--f-mono); margin-left: 2px; color: var(--muted); letter-spacing: 0; text-shadow: none; }
.d-label { color: var(--muted); font-size: clamp(.62rem, 3.6cqw, .85rem); }
.d-count { font: 400 clamp(.5rem, 2.8cqw, .68rem)/1 var(--f-mono); color: var(--faint); margin-top: 4px; letter-spacing: .04em; }

@media (max-width: 719px) { .dial3d { order: -1; width: min(76vw, 300px); } }

@media (prefers-reduced-motion: reduce) {
  .d-arc { stroke-dashoffset: var(--o) !important; }
  .d-tip { opacity: 1 !important; transform: rotate(var(--a)) !important; }
}

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


/* ======================================================================
   v3: type scale, buttons, settings structure, themes
   ====================================================================== */

/* Small text is never smaller than 12.5px; each level is clearly different from the next */
.eyebrow { font-size: .76rem; letter-spacing: .12em; }
.card > h2, .section-title h2 { font-size: .78rem; letter-spacing: .12em; }
.hint { font-size: .9rem; }
.row-sub { font-size: .82rem; }
.acc-meta { font-size: .84rem; }
.acc-upd { font-size: .86rem; }
.pips-count { font-size: .8rem; }
.chip-status { font-size: .78rem; padding: 6px 10px 6px 9px; }
.rail a { font-size: .78rem; }
.note { font-size: .92rem; line-height: 1.5; }
.sub { font-size: 1rem; line-height: 1.55; }
.set-row .sub { font-size: .94rem; }
.d-count { font-size: clamp(.68rem, 3cqw, .76rem); }
.d-label { font-size: clamp(.7rem, 3.8cqw, .9rem); }
h2 { font-size: 1.2rem; }

body { background: radial-gradient(1100px 520px at 18% -12%, var(--glow), transparent 70%), var(--bg); }

/* Cards lift off the page a little in the light themes */
.card, .stat, .legend { box-shadow: var(--shadow); }

/* Buttons: one family, three weights of importance */
.btn {
  min-height: 46px; padding: 0 22px; border-radius: var(--r);
  font-size: .98rem; font-weight: 600; letter-spacing: .005em;
  box-shadow: var(--btn-shadow);
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn.ghost { background: var(--surface); box-shadow: none; border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.danger-ghost { box-shadow: none; }
.btn.danger { box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 1px 2px rgba(0, 0, 0, .3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* A quiet text action (sign out, cancel): no frame, clear on hover */
.btn.quiet { min-height: 40px; padding: 0 12px; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); font-weight: 600; }
.btn.quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn.quiet svg { width: 18px; height: 18px; }
.icon-btn { border-radius: var(--r); background: var(--surface); }
.seg { border-radius: var(--r); background: var(--field); }
.seg button { border-radius: 6px; }
.seg button[aria-pressed="true"] { box-shadow: var(--btn-shadow); }

/* ---------- Settings: grouped sections ---------- */
.set-group { display: grid; gap: 12px; }
.set-label { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.set-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.set-group > .card { padding: 20px 22px; }
.set-row h2 { font-size: 1.05rem; }

/* Theme picker: three small previews */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-opt {
  display: grid; gap: 10px; padding: 10px; text-align: left;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--field); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.theme-opt:hover { border-color: var(--muted); }
.theme-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.theme-opt .sw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 54px; padding: 6px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .18); }
.theme-opt .sw i { display: block; border-radius: 3px; }
.theme-opt .sw i:first-child { grid-column: 1 / -1; height: 8px; }
.theme-opt b { font-size: .92rem; font-weight: 600; }
.theme-opt small { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); font-weight: 400; }
@media (max-width: 420px) { .theme-opt small { display: none; } }

/* Ways to sign in: one row per method */
.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.method .mi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); }
.method .mi svg { width: 20px; height: 20px; }
.method .mt { font-weight: 600; }
.method .ms { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.method.on .mi { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.method-form { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .method { grid-template-columns: auto minmax(0, 1fr); } .method > .btn, .method > .chip-status { grid-column: 1 / -1; justify-self: start; } }
.account-top { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.account-top .who { min-width: 0; }
.account-top .who strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }

/* Offers: clearer types and a pinned mark */
.promo { position: relative; }
.promo.pinned { border-color: var(--line-strong); }
.promo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.promo > h2 { font-size: 1.4rem; }
.promo .promo-text { font-size: 1rem; line-height: 1.6; }
.chip-status.t-giveaway { background: var(--ink); color: var(--on-ink); }
.chip-status.t-giveaway::before { background: var(--accent); }
.chip-status.t-event { background: var(--ok-soft); color: var(--ok); }
.chip-status.t-event::before { background: var(--ok); }
.method .mi b.gl { font: 700 1.1rem/1 var(--f-sans); letter-spacing: 0; }
.field > h2 { font: 600 1.05rem/1.25 var(--f-sans); letter-spacing: -.01em; }
.d-label { font-size: clamp(.75rem, 3.8cqw, .9rem); }
.d-count { font-size: clamp(.72rem, 3cqw, .78rem); letter-spacing: 0; }
.d-pct small { font-size: .4em; }
.d-count, .d-label { color: var(--muted); }
.or-line { display: flex; align-items: center; gap: 14px; color: var(--muted); font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.d-count { font-size: clamp(.75rem, 3cqw, .8rem); }

/* Delete chooser */
dialog.pick { width: min(480px, calc(100vw - 32px)); }
.pick .pick-all { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--field); }
.pick .pick-list { display: grid; gap: 8px; max-height: min(46vh, 340px); overflow: auto; margin: 10px 0 14px; padding-right: 2px; }
.pick .pick-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); align-items: center; }
.pick .pick-row span { display: grid; gap: 2px; min-width: 0; }
.pick .pick-row b { font-weight: 600; overflow-wrap: anywhere; }
.pick .pick-row small { font: 400 .84rem/1.3 var(--f-mono); color: var(--muted); }
.pick .pick-note { margin: 0 0 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Policy and terms page ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 24px 16px 80px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 14px; }
.doc .sub { max-width: 62ch; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.doc-toc a { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.doc-toc a:hover { background: var(--surface-2); }
.doc-sec { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.doc-sec h2 { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 8px; }
.doc-sec h3 { margin: 26px 0 8px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.doc-sec p, .doc-sec li { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.doc-sec p { margin: 8px 0; }
.doc-sec ul { margin: 8px 0; padding-left: 22px; display: grid; gap: 8px; }
.doc-sec li::marker { color: var(--muted); }
.doc-sec a { color: var(--ink); text-underline-offset: 3px; }
.doc [hidden] { display: none; }


/* ======================================================================
   v4: flat backgrounds, windows that stand out, softer frames
   ====================================================================== */
:root { --r: 10px; --r-card: 16px; }

/* No grid lines, rings or squares: each theme is one calm colour */
.bg { display: none; }
body { background: var(--bg); background-attachment: scroll; }
.pin { background-image: none; }

/* Windows (cards): clearly lighter than the page, roomy, a soft shadow instead of a hard line */
.card, .stat, .legend {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.card { padding: 26px; }
.card > h2 { padding-bottom: 16px; }
.stack { gap: 20px; }
.form, .form .card { gap: 20px; }
.grid { gap: 20px; }
.stat { padding: 20px 22px; gap: 10px; }
.legend { padding: 14px 18px; }

/* Lists that sit on the page are windows too; lists inside a window are quiet inset rows */
.urow, .rrow, .prow, .gr, .req-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.urow, .rrow, .prow { padding: 16px 18px; }
.row, .mini-row, .method, .ev, .gu, .chk, .check.pick-row, .pick .pick-all, .note { border-color: var(--line); border-radius: 12px; }
.row, .mini-row, .method, .ev, .gu, .chk { background: var(--field); }
.urow:hover, .rrow:hover { border-color: var(--line-strong); background: var(--surface); transform: translateY(-1px); }
.urow, .rrow { transition: border-color .15s, transform .15s; }
.urow.new, .rrow.new { border-left-width: 4px; }
.urow.stale { border-left-width: 4px; }

/* Frames: finer and quieter */
.inp, select.inp { border-radius: 10px; border-color: var(--line-strong); background: var(--field); }
.inp:focus { border-color: var(--ink); }
.btn { border-radius: 10px; }
.chip, .seg { border-radius: 10px; }
.seg button { border-radius: 7px; }
dialog { border-radius: 18px; border-color: var(--line); padding: 28px; }
.menu { border-radius: 14px; border-color: var(--line); }
.sres { border-radius: 14px; border-color: var(--line); }
.avatar, .avatar-big { border-radius: 14px; }
.rail { background: var(--surface); }
@media (max-width: 899px) { .rail { border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, .55); } }
@media (min-width: 900px) { .rail { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow); } }
.sticky-bar { border-top-color: var(--line); box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, .55); }
.adm-acc { border-radius: var(--r-card); }
.theme-opt { border-radius: 12px; border-color: var(--line-strong); }
.theme-opt .sw { border-radius: 8px; }

/* ---------- iPhone: keep content clear of the clock, the Dynamic Island and the home bar ---------- */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
main { padding-top: calc(24px + env(safe-area-inset-top)); }
@media (min-width: 900px) { main { padding-top: calc(32px + env(safe-area-inset-top)); } }
.doc { padding-top: calc(24px + env(safe-area-inset-top)); }
.pin { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* «Filled 3 of 5» under lists with a minimum */
.minline { margin: 2px 0 0; font: 500 .84rem/1.3 var(--f-mono); color: var(--muted); }
.minline.ok { color: var(--ok); }


/* ======================================================================
   Offers: giveaway / ad / event / news card
   ====================================================================== */
.grid.promos { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.card.promo { padding: 0; overflow: hidden; display: block; }
.promo-cover { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.promo-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-body { display: grid; gap: 16px; padding: 22px; }
.promo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.promo-pin { font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.promo-time { margin-left: auto; font: 500 .82rem/1 var(--f-mono); color: var(--muted); }
.promo-time.soon { color: var(--danger); }
.promo-time.over { color: var(--faint); text-decoration: line-through; }
.card.promo h2, .promo-body > h2 { font: 700 1.55rem/1.15 var(--f-sans); letter-spacing: -.025em; text-transform: none; color: var(--ink); padding: 0; border: 0; overflow-wrap: anywhere; }
.promo-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.promo-facts dt { color: var(--muted); font-size: .9rem; }
.promo-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.promo-text { display: grid; gap: 12px; font-size: 1.02rem; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.promo-text p, .promo-text ul { margin: 0; }
.promo-text ul { padding-left: 22px; display: grid; gap: 6px; }
.promo-text li::marker { color: var(--accent); }
.promo-text strong { font-weight: 700; }
.promo-a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* the one video, played inside the app */
.promo-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0c0e; border: 1px solid var(--line-strong); }
.promo-video iframe, .promo-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pv-start { position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; border: 0; color: #fff; background: radial-gradient(circle at 50% 38%, #2b2f36, #0b0c0e 72%); }
.pv-play { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: #0b0c0e; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.pv-play svg { width: 28px; height: 28px; margin-left: 3px; }
.pv-text { font-weight: 700; font-size: 1.02rem; }
.pv-sub { font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #aab1bb; }
.pv-start:hover .pv-play { transform: scale(1.06); }
.pv-play { transition: transform .15s; }
a.promo-video.link { display: flex; align-items: center; gap: 14px; aspect-ratio: auto; padding: 14px 16px; text-decoration: none; color: #fff; }
a.promo-video.link .pv-play { width: 44px; height: 44px; flex: none; }
a.promo-video.link .pv-play svg { width: 20px; height: 20px; }
a.promo-video.link .pv-text { flex: 1; }
a.promo-video.link > svg { width: 20px; height: 20px; color: #aab1bb; }

/* links to take part: numbered, with the service icon and an editable caption */
.promo-links { display: grid; gap: 10px; }
.promo-links-h { font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.promo-link { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, background .15s; }
.promo-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.promo-link:not(:has(.pl-n)) { grid-template-columns: auto minmax(0, 1fr) auto; }
.pl-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 700 .82rem/1 var(--f-sans); }
.pl-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.pl-i svg { width: 22px; height: 22px; }
.pl-i.telegram { background: #2a9fd8; border-color: transparent; color: #fff; }
.pl-i.youtube { background: #e6322b; border-color: transparent; color: #fff; }
.pl-i.instagram { background: linear-gradient(135deg, #f6a23a, #d6277a 55%, #7b3fc4); border-color: transparent; color: #fff; }
.pl-i.tiktok { background: #101214; border-color: transparent; color: #fff; }
.pl-i.vk { background: #2b6fd6; border-color: transparent; color: #fff; }
.pl-i.discord { background: #5865f2; border-color: transparent; color: #fff; }
.pl-i.x { background: #101214; border-color: transparent; color: #fff; }
.pl-t { display: grid; gap: 2px; min-width: 0; }
.pl-t b { font-weight: 700; overflow-wrap: anywhere; }
.pl-t small { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.promo-link > svg:last-child { width: 20px; height: 20px; color: var(--muted); }
@media (max-width: 420px) { .promo-body { padding: 18px; } .card.promo h2, .promo-body > h2 { font-size: 1.4rem; } }
.promo-text { white-space: normal; }


/* ======================================================================
   v5: navigation, buttons and smooth movement
   ====================================================================== */
:root { --ease: cubic-bezier(.22, .9, .3, 1); --ease-pop: cubic-bezier(.3, 1.35, .5, 1); }

/* ---- the navigation: frosted glass, a pill that glides to the open section, soft light under the pointer ---- */
.rail {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 14%, transparent) inset, 0 22px 44px -22px rgba(0, 0, 0, .55);
}
.rail-ind {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 15%, transparent), color-mix(in srgb, var(--ink) 7%, transparent));
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 20%, transparent) inset, 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .46s var(--ease-pop), width .46s var(--ease-pop), height .46s var(--ease-pop);
}
.rail a { position: relative; z-index: 1; overflow: hidden; border-radius: 16px; transition: color .2s, transform .2s var(--ease-pop); }
.rail a[aria-current="page"] { background: transparent; color: var(--ink); }
.rail a::before, .rail a[aria-current="page"]::before {
  content: ''; position: absolute; inset: 0; left: 0; top: 0; bottom: 0; width: auto; border-radius: inherit; pointer-events: none;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink) 11%, transparent), transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.rail a:hover::before { opacity: 1; }
.rail a:hover { color: var(--ink); }
.rail a:active { transform: scale(.96); }
.rail a svg { transition: transform .35s var(--ease-pop), background-color .25s, color .25s; }
.rail a:hover svg { transform: translateY(-1px) scale(1.08); }
.rail a[aria-current="page"] svg { transform: scale(1.06); color: var(--ink); }

@media (max-width: 899px) {
  .rail {
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; gap: 2px; border-radius: 24px;
  }
  .rail a, .rail-ind { border-radius: 18px; }
  main { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .shell.focus main { padding-bottom: 150px; }
  .toast { bottom: calc(104px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .rail { gap: 4px; padding: 14px 12px; border-radius: 22px; }
  .brand { padding: 6px 10px 18px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); letter-spacing: -.01em; }
  .brand img { border-radius: 9px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7); }
  .rail a { gap: 12px; padding: 8px 12px 8px 8px; }
  /* every icon sits on a small glass tile */
  .rail a svg { box-sizing: content-box; width: 20px; height: 20px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, #fff 10%, transparent) inset; }
  .rail a[aria-current="page"] svg { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--ink) 8%, transparent)); box-shadow: 0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset, 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
}

/* ---- buttons: a little depth, light under the pointer, a springy press ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .18s var(--ease-pop), box-shadow .22s, background-color .2s, border-color .2s, color .2s; }
.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) { background-image: linear-gradient(180deg, color-mix(in srgb, var(--ink) 90%, #fff), var(--ink)); }
.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover { background-image: linear-gradient(180deg, color-mix(in srgb, var(--ink) 84%, #fff), color-mix(in srgb, var(--ink) 96%, #fff)); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, #fff 22%, transparent), transparent 65%); }
.btn.ghost::after, .btn.quiet::after { background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink) 9%, transparent), transparent 70%); }
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow), 0 12px 24px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.ghost:hover, .btn.quiet:hover { box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--ink) 35%, transparent); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: var(--btn-shadow); }
.icon-btn { transition: transform .18s var(--ease-pop), border-color .2s, color .2s, background-color .2s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.chip, .seg button, .theme-opt, .tb { transition: transform .18s var(--ease-pop), background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.chip:active, .seg button:active, .tb:active { transform: scale(.96); }
.theme-opt:hover { transform: translateY(-2px); }

/* ---- windows and lists react gently ---- */
.card { transition: border-color .25s, box-shadow .25s; }
.row, .mini-row, .method, .promo-link, .urow, .rrow, .prow { position: relative; overflow: hidden; }
.row::before, .method::before, .urow::before, .rrow::before, .prow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .25s;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink) 6%, transparent), transparent 70%);
}
.row:hover::before, .method:hover::before, .urow:hover::before, .rrow:hover::before, .prow:hover::before { opacity: 1; }

/* ---- smooth opening of every section: the page and its blocks rise one after another ---- */
@keyframes rise2 { from { opacity: 0; transform: translateY(14px) scale(.992); } to { opacity: 1; transform: none; } }
main { animation: none; }
main > .stack > *, main > .hero, main > .form > * { animation: rise2 .55s var(--ease) both; }
main > .stack > *:nth-child(2) { animation-delay: .05s; }
main > .stack > *:nth-child(3) { animation-delay: .1s; }
main > .stack > *:nth-child(4) { animation-delay: .15s; }
main > .stack > *:nth-child(5) { animation-delay: .2s; }
main > .stack > *:nth-child(6) { animation-delay: .25s; }
main > .stack > *:nth-child(n + 7) { animation-delay: .3s; }
main > .form > *:nth-child(2) { animation-delay: .06s; }
main > .form > *:nth-child(3) { animation-delay: .12s; }
main > .form > *:nth-child(n + 4) { animation-delay: .18s; }
.grid > *, .rows > * { animation: rise2 .5s var(--ease) both; }
.grid > *:nth-child(2), .rows > *:nth-child(2) { animation-delay: .05s; }
.grid > *:nth-child(3), .rows > *:nth-child(3) { animation-delay: .1s; }
.grid > *:nth-child(n + 4), .rows > *:nth-child(n + 4) { animation-delay: .14s; }

/* ---- dialogs and menus open smoothly ---- */
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
dialog[open] { animation: dlgIn .3s var(--ease-pop) both; }
dialog[open]::backdrop { animation: fadeIn .28s both; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.menu:not([hidden]) { animation: dlgIn .22s var(--ease-pop) both; transform-origin: top right; }
.toast { animation-timing-function: var(--ease-pop); }


/* ======================================================================
   Sign-in: a dark room and a red split card
   ====================================================================== */
.auth-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.auth-cta-copy { display: grid; gap: 6px; }
.auth-cta .btn { align-self: stretch; }

/* the scene is always dark, whatever theme the app uses */
.auth-page {
  --bg: #0a0507; --surface: #160a0d; --surface-2: #200e12; --field: rgba(0, 0, 0, .38);
  --line: rgba(255, 255, 255, .13); --line-strong: rgba(255, 255, 255, .24);
  --ink: #f4eef0; --muted: #b9aeb2; --faint: #a89da1; --on-ink: #0b0c0e; --accent: #ff4d5b;
  --ok: #4fe0bd; --ok-soft: rgba(79, 224, 189, .14); --danger: #ff8a90;
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  min-height: 100vh; min-height: 100dvh; padding: calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  background: #0a0507; color: var(--ink);
}
.auth-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(900px 620px at 80% 38%, rgba(150, 12, 30, .5), transparent 70%), radial-gradient(760px 520px at 8% 100%, rgba(110, 14, 10, .4), transparent 70%); }
/* glowing circuit lines entering from both edges, like the red login card in the reference */
.auth-bg .ln { position: absolute; left: 0; width: 22%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 70, 85, .75)); opacity: .8; animation: lnPulse 4.5s ease-in-out infinite; }
.auth-bg .ln::after { content: ''; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ff4d5b; box-shadow: 0 0 12px 3px rgba(255, 77, 91, .7); }
.auth-bg .ln.r { left: auto; right: 0; background: linear-gradient(270deg, transparent, rgba(255, 70, 85, .75)); }
.auth-bg .ln.r::after { right: auto; left: -3px; }
.auth-bg .l1 { top: 30%; } .auth-bg .l2 { top: 50%; animation-delay: -1.4s; width: 16%; } .auth-bg .l3 { top: 71%; animation-delay: -2.8s; width: 26%; }
@keyframes lnPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.auth-stage { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; max-width: 940px; }
/* the beam: from the shade down over the card */

/* the card (it always has the light on) */
.auth-card {
  --rx: 0deg; --ry: 0deg; position: relative; isolation: isolate; z-index: 2; width: min(900px, 100%); min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 50px 90px -34px rgba(0, 0, 0, .85);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) scale(.985); opacity: .16; filter: saturate(.5); pointer-events: none;
  transition: transform .3s var(--ease), opacity .9s ease, filter .9s ease, box-shadow .9s ease;
}
.auth-page.lit .auth-card { opacity: 1; filter: none; pointer-events: auto; transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 1px 0 rgba(255, 255, 255, .26) inset, 0 50px 90px -34px rgba(0, 0, 0, .85), 0 0 90px -30px rgba(255, 90, 100, .35); }
@keyframes nudge { 20% { transform: perspective(1200px) translateX(-8px); } 45% { transform: perspective(1200px) translateX(7px); } 70% { transform: perspective(1200px) translateX(-4px); } }

.auth-forms { position: relative; z-index: 1; grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: 16px; padding: 22px 34px 24px; transition: transform .7s var(--ease); }
.auth-hello { position: relative; z-index: 2; grid-column: 2; grid-row: 1; display: grid; place-items: center; padding: 34px 40px 34px 64px; text-align: center; color: #fff1f2;
  background-color: #a1101e; background-image: linear-gradient(145deg, #ff3d4c 0%, #b3121f 58%, #6f0b15 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, -30px 0 60px -30px rgba(0, 0, 0, .6);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); transition: transform .7s var(--ease), clip-path .7s var(--ease); }
.auth-hello::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .22), transparent 60%); }
.hello-in { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 300px; animation: rise2 .5s var(--ease) both; }
.hello-in h2 { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.hello-in p { margin: 0; color: #ffe3e5; }
.hello-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; cursor: pointer;
  transition: transform .2s var(--ease-pop), background-color .2s, box-shadow .25s; }
.hello-btn svg { width: 18px; height: 18px; transform: rotate(180deg); }
.hello-btn:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.hello-btn:active { transform: scale(.97); }
.auth-card[data-mode="email"] .auth-forms { transform: translateX(100%); }
.auth-card[data-mode="email"] .auth-hello { transform: translateX(-100%); clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); padding: 34px 64px 34px 40px; }
.auth-card.done .auth-hello { opacity: 0; visibility: hidden; }
.auth-card.done .auth-forms { grid-column: 1 / -1; transform: none; }

.auth-top { display: flex; align-items: center; margin: -6px -10px 0; }
.auth-top .btn.quiet { color: var(--muted); }
.auth-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.auth-logo { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); }
.auth-head h1 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; }
.auth-head .sub, .auth-body .sub { color: var(--muted); font-size: .93rem; text-align: center; margin-inline: auto; }
.auth-body { display: grid; gap: 14px; min-height: 230px; align-content: start; animation: rise2 .5s var(--ease) both; }
.auth-h { font-size: 1.15rem; text-align: center; }

.auth-tabs { display: none; position: relative; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); }
.auth-tabs i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 77, 91, .45), rgba(255, 77, 91, .25)); box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset; transition: transform .45s var(--ease-pop); }
.auth-tabs[data-mode="email"] i { transform: translateX(100%); }
.auth-tabs button { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-weight: 600; border-radius: 12px; cursor: pointer; transition: color .25s; }
.auth-tabs button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-tabs button[aria-selected="true"] { color: #fff; }

.auth-lbl { font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: -6px; }
.auth-in.inp { min-height: 56px; border-radius: 15px; font-size: 1.1rem; background: rgba(0, 0, 0, .38); border-color: rgba(255, 255, 255, .16); color: var(--ink); }
.auth-in.inp:focus { border-color: rgba(255, 90, 100, .9); box-shadow: 0 0 0 4px rgba(255, 77, 91, .16), 0 0 28px -6px rgba(255, 77, 91, .5); }
.auth-err { min-height: 1.3em; margin: 0; color: var(--danger); font-size: .9rem; text-align: center; }
.auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) { width: 100%; min-height: 56px; border-radius: 15px; font-size: 1.05rem; color: #fff; border-color: transparent; background-color: #b3121f; background-image: linear-gradient(180deg, #ea3443, #b3121f); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 16px 30px -14px rgba(255, 50, 65, .65); }
.auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover { background-image: linear-gradient(180deg, #f2424f, #c4182a); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 34px -12px rgba(255, 70, 85, .75); }
.auth-go.btn:disabled { opacity: .7; }

/* six boxes for the code */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; perspective: 600px; }
.otp input { width: 100%; min-width: 0; aspect-ratio: 1 / 1.2; padding: 0; text-align: center; border-radius: 14px; font: 600 1.5rem/1 var(--f-mono); color: var(--ink); caret-color: #ff6a76;
  background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .16); transition: transform .25s var(--ease-pop), border-color .25s, box-shadow .3s, background-color .3s; }
.otp input:focus { outline: none; border-color: rgba(255, 90, 100, .9); box-shadow: 0 0 0 3px rgba(255, 77, 91, .18), 0 0 24px -6px rgba(255, 77, 91, .6); transform: translateY(-3px); }
.otp input.filled { border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .08); animation: pop .32s var(--ease-pop); }
@keyframes pop { 0% { transform: scale(.82) rotateX(-40deg); } 100% { transform: none; } }
.otp.verifying input { animation: wave .9s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); border-color: rgba(255, 110, 120, .8); }
@keyframes wave { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); box-shadow: 0 12px 22px -12px rgba(255, 77, 91, .85); } }
.otp.ok input { animation: okpop .5s var(--ease-pop) both; animation-delay: calc(var(--i) * 55ms); border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
@keyframes okpop { 0% { transform: scale(1); } 50% { transform: scale(1.14) translateY(-4px); } 100% { transform: scale(1); } }
.otp.bad { animation: nudge .45s ease; }
.otp.bad input { border-color: var(--danger); background: rgba(255, 122, 128, .1); }

.auth-foot { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .09); }
.auth-foot .auth-note { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }
.auth-foot .auth-note .link { display: inline; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.auth-more summary { cursor: pointer; font-size: .86rem; color: var(--muted); list-style: none; }
.auth-more summary::-webkit-details-marker { display: none; }
.auth-more summary::after { content: ' ▾'; }
.auth-more[open] summary::after { content: ' ▴'; }
.auth-more p { margin-top: 8px; }
.auth-foot .link { justify-self: start; color: var(--ink); }

/* success: a ring, a check that draws itself */
.auth-success { display: grid; justify-items: center; gap: 12px; padding: 40px 0 16px; text-align: center; }
.auth-success h2 { font-size: 1.5rem; }
.ok-wrap { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 6px; }
.ok-mark { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(79, 224, 189, .6)); }
.ok-mark circle { stroke-dasharray: 289; stroke-dashoffset: 289; animation: draw .7s .05s ease forwards; }
.ok-mark path { stroke-dasharray: 80; stroke-dashoffset: 80; stroke-width: 6; animation: draw .45s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ok-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ring 1.4s .7s ease-out infinite; }
.ok-ring.r2 { animation-delay: 1.15s; }
@keyframes ring { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.ok-wrap.env { border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #ff8a93; animation: floaty 3.2s ease-in-out infinite; }
.ok-wrap.env svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* wide screens: the card stays in the middle */
@media (min-width: 1240px) {
  .auth-stage { max-width: 940px; }
}
/* phones: the red panel is replaced by tabs */
@media (max-width: 819px) {
  .auth-page { align-items: start; padding-top: calc(8px + env(safe-area-inset-top)); }
  .auth-card { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .auth-forms, .auth-card[data-mode="email"] .auth-forms { padding: 18px 20px 20px; transform: none; }
  .auth-hello { display: none; }
  .auth-tabs { display: grid; }
  .otp { gap: 6px; }
  .otp input { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.auth-page.done .auth-top .btn { display: none; }


/* ======================================================================
   Assistant, outfits
   ====================================================================== */
.nav-ava { display: block; width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); transition: transform .35s var(--ease-pop), box-shadow .25s; }
.rail a:hover .nav-ava { transform: translateY(-1px) scale(1.08); }
.rail a[aria-current="page"] .nav-ava { transform: scale(1.06); box-shadow: 0 0 0 2px var(--ink); }
@media (min-width: 900px) { .nav-ava { box-sizing: content-box; width: 38px; height: 38px; padding: 0; } .rail a:has(.nav-ava) { padding-left: 8px; } }

.as-ava { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent), 0 6px 14px -8px rgba(0, 0, 0, .7); }
.as-ava.big { width: 64px; height: 64px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 25%, transparent), 0 12px 26px -12px rgba(0, 0, 0, .8); }
.as-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.as-head > div { flex: 1 1 220px; min-width: 0; }
.as-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.as-acc-lbl { font-size: .86rem; color: var(--muted); margin-right: 2px; }
.as-chat { padding: 18px; }
.as-log { display: grid; gap: 14px; min-height: 160px; }
.as-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 100%; animation: rise2 .4s var(--ease) both; scroll-margin-bottom: 190px; }
.as-msg.u { justify-content: flex-end; }
.as-bubble { max-width: min(560px, 86%); padding: 12px 15px; border-radius: 18px; line-height: 1.5; font-size: .98rem; white-space: pre-line; overflow-wrap: anywhere; }
.as-msg.a .as-bubble { border-bottom-left-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.as-msg.u .as-bubble { border-bottom-right-radius: 6px; background: var(--ink); color: var(--on-ink); font-weight: 500; }
.as-bubble p { margin: 0; white-space: normal; }
.as-bubble .hint { margin-top: 6px; }
.as-list { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 4px; white-space: normal; }
.as-bubble .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.as-bubble.closed { opacity: .7; }
.as-shot { display: block; max-width: min(240px, 100%); max-height: 260px; border-radius: 12px; }
.as-msg.u .as-bubble:has(.as-shot) { padding: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.as-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: wave2 1s ease-in-out infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; }
.as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wave2 { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.as-composer {
  position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 6; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow), 0 18px 40px -22px rgba(0, 0, 0, .55);
}
@media (min-width: 900px) { .as-composer { bottom: 20px; } }
.as-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.as-quick::-webkit-scrollbar { display: none; }
.as-quick .chip { flex: none; }
.as-row { display: flex; align-items: flex-end; gap: 8px; }
.as-input { flex: 1; min-height: 48px; max-height: 130px; resize: none; padding-top: 12px; line-height: 1.35; border-radius: 14px; }
.as-row .icon-btn, .as-send { flex: none; width: 48px; min-height: 48px; padding: 0; }
.as-send svg { width: 20px; height: 20px; }
.as-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* outfits: a small badge with a symbol and a soft glow in its own colour; real pictures replace the symbol when outfits/<id>.webp exist */
.outfit-glow {
  --o1: #8b929c; --o2: #3b4049; --sym: #fff; --glow: var(--o1);
  position: relative; display: inline-block; flex: none; width: 34px; height: 42px;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--glow) 75%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--glow) 38%, transparent));
}
.outfit-art {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: var(--sym); overflow: hidden;
  background: linear-gradient(165deg, var(--o1), var(--o2)); clip-path: polygon(50% 0, 100% 16%, 100% 72%, 50% 100%, 0 72%, 0 16%);
}
.outfit-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .38), transparent 42%); pointer-events: none; }
.outfit-art svg { position: relative; width: 56%; height: 56%; margin-top: -4px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.outfit-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.outfit-glow[data-o="pharaoh"] { --o1: #f4c75a; --o2: #8a5a12; --sym: #2a1a04; }
.outfit-glow[data-o="raven"] { --o1: #ee4c57; --o2: #4a0b12; }
.outfit-glow[data-o="poseidon"] { --o1: #4a82ff; --o2: #0a2470; }
.outfit-glow[data-o="avalanche"] { --o1: #a6e3ff; --o2: #2f78b0; --sym: #0b2a44; }
.outfit-glow[data-o="joker"] { --o1: #f6f6f8; --o2: #b32233; --sym: #7a1420; --glow: #ff5a68; }
.outfit-glow[data-o="silvanus"] { --o1: #62d46e; --o2: #12501c; }
.outfit-glow[data-o="marmoris"] { --o1: #3fd0d6; --o2: #0d4f6b; }
.outfit-glow[data-o="dravion"] { --o1: #ff7a3d; --o2: #6e1608; }
.outfit-glow[data-o="phoenixtra"] { --o1: #ffbf45; --o2: #a3320a; --sym: #2b0e03; }
.outfit-glow[data-o="anukhra"] { --o1: #2fcfb0; --o2: #0c5a4c; --sym: #fff0b8; }
.outfit-glow[data-o="galadaria"] { --o1: #a77bff; --o2: #3a1a8a; }
.outfit-glow[data-o="ignis"] { --o1: #ff5a2a; --o2: #5c0e06; }
.outfit-glow[data-o="fiore"] { --o1: #ff8cc4; --o2: #8a1f5a; }
.outfit-glow[data-o="iridescence"] { --o1: #6ae8ff; --o2: #ff8bc9; --sym: #1a1030; --glow: #b68cff; }
.outfit-glow[data-o="iridescence"] .outfit-art { background: linear-gradient(150deg, #6ae8ff, #c98bff 50%, #ff8bc9); }
.outfit-glow[data-o="other"] { --o1: #9aa2ad; --o2: #3b4049; }
.outfits { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.outfit-opt { display: grid; justify-items: center; gap: 10px; padding: 14px 6px 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--field); color: var(--muted); font-weight: 600; font-size: .86rem; cursor: pointer;
  transition: transform .2s var(--ease-pop), border-color .2s, background-color .2s, color .2s, box-shadow .25s; }
.outfit-opt .outfit-glow { width: 46px; height: 57px; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--glow) 45%, transparent)) drop-shadow(0 0 8px color-mix(in srgb, var(--glow) 22%, transparent)); transition: filter .3s; }
.outfit-opt:hover { transform: translateY(-2px); color: var(--ink); }
.outfit-opt:hover .outfit-glow { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 70%, transparent)) drop-shadow(0 0 16px color-mix(in srgb, var(--glow) 40%, transparent)); }
.outfit-opt[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 1px var(--ink); }
.outfit-opt[aria-pressed="true"] .outfit-glow { animation: glowPulse 2.6s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 80%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--glow) 45%, transparent)); }
  50% { filter: drop-shadow(0 0 10px var(--glow)) drop-shadow(0 0 26px color-mix(in srgb, var(--glow) 65%, transparent)); }
}
.avatar .outfit-glow { width: 62%; height: 78%; }
.acc-title { display: flex; align-items: center; gap: 12px; }
.acc-title > div { min-width: 0; }
.acc-title .outfit-glow { width: 30px; height: 38px; }

.as-input { height: 48px; }


textarea.inp.as-input { min-height: 48px; height: 48px; }

/* ---- question 19: purchase screenshots ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--field); animation: rise2 .35s var(--ease) both; }
.shot-view { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.shot-view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-view.wait { display: grid; place-items: center; cursor: default; color: var(--muted); }
.shot-view.wait svg { width: 26px; height: 26px; }
.shot-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.shot-del svg { width: 15px; height: 15px; }
.shot-add { display: grid; align-content: center; justify-items: center; gap: 8px; aspect-ratio: 3 / 4; padding: 8px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: transparent; color: var(--muted); font-weight: 600; font-size: .86rem; text-align: center; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ease-pop); }
.shot-add svg { width: 24px; height: 24px; }
.shot-add:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); transform: translateY(-2px); }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin2 .8s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
dialog.lightbox { max-width: min(94vw, 760px); max-height: 92vh; padding: 12px; display: grid; gap: 10px; justify-items: center; }
dialog.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 90px); object-fit: contain; border-radius: 10px; }
.as-shot.small { max-width: 120px; max-height: 150px; margin: 4px 0 8px; }


/* ======================================================================
   v6: calmer light, a lit dial, a nicer menu highlight, iOS-like opening, readable policy
   ====================================================================== */
:root { --ios: cubic-bezier(.32, .72, 0, 1); --lite: #8ab4ff; --lite-2: #b9a6ff; --tick-off: rgba(255, 255, 255, .3); }

/* ---- the menu highlight: a glass pill with a coloured light under it and a bright edge ---- */
.rail .rail-ind {
  background: linear-gradient(180deg, color-mix(in srgb, var(--lite) 24%, transparent), color-mix(in srgb, var(--lite) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--lite) 34%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 12px 28px -12px color-mix(in srgb, var(--lite) 75%, transparent), 0 0 24px -10px color-mix(in srgb, var(--lite) 60%, transparent);
}
.rail .rail-ind::after { content: ''; position: absolute; border-radius: 3px; background: linear-gradient(180deg, var(--lite), var(--lite-2)); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--lite) 70%, transparent); }
@media (min-width: 900px) {
  .rail .rail-ind::after { left: -1px; top: 24%; bottom: 24%; width: 3px; border-radius: 0 3px 3px 0; }
  .rail a[aria-current="page"] svg { color: #fff; background: linear-gradient(145deg, var(--lite), var(--lite-2)); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 20px -8px color-mix(in srgb, var(--lite) 85%, transparent); }
  .rail a[aria-current="page"] .nav-ava { box-shadow: 0 0 0 2px var(--lite), 0 0 16px -2px color-mix(in srgb, var(--lite) 70%, transparent); }
}
@media (max-width: 899px) {
  .rail .rail-ind::after { left: 28%; right: 28%; bottom: -1px; height: 3px; }
  .rail a[aria-current="page"] svg { color: var(--lite); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lite) 70%, transparent)); }
  .rail a[aria-current="page"] .nav-ava { box-shadow: 0 0 0 2px var(--lite), 0 0 14px -2px color-mix(in srgb, var(--lite) 70%, transparent); }
}
.rail a:hover::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--lite) 18%, transparent), transparent 70%); }

/* ---- the dial: polished steel and glass lit from above, no black shading ---- */
:root { --m1: #8793a6; --m2: #44505f; --m3: #b3bdcc; --m4: #38414f; --spec: rgba(255, 255, 255, .4); }
.dial3d { --dg: var(--lite); }
.dial3d.lvl-low { --dg: #ff6b73; }
.dial3d.lvl-high { --dg: #3fe0b8; }
.dial3d.lvl-none { --dg: var(--faint); }
.d-glow { inset: -12%; filter: blur(28px); background: radial-gradient(circle, color-mix(in srgb, var(--dg) 55%, transparent) 0%, transparent 64%); }
.d-shadow { bottom: -9%; background: radial-gradient(ellipse, color-mix(in srgb, var(--dg) 42%, transparent), transparent 70%); }
.d-plate { box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 0 0 1px rgba(255, 255, 255, .22), 0 26px 48px -22px color-mix(in srgb, var(--dg) 65%, #05070b); }
.d-plate::after { background: radial-gradient(circle at calc(50% + var(--tx, 0) * 22%) calc(30% + var(--ty, 0) * 22%), var(--spec), transparent 48%), radial-gradient(circle, transparent 60%, color-mix(in srgb, #0a1426 26%, transparent) 100%); }
.bz-ring { stroke: rgba(10, 18, 34, .45); }
.bz-tooth { stroke: rgba(10, 18, 34, .5); }
.bz-notch { stroke: rgba(10, 18, 34, .85); opacity: 1; }
.in-ring { stroke: rgba(10, 18, 34, .35); }
.in-tick { stroke: rgba(10, 18, 34, .45); }
.in-tick.long { stroke: rgba(10, 18, 34, .8); opacity: 1; }
.d-track { stroke: rgba(10, 18, 34, .22); }
.d-ticks line { stroke: var(--tick-off); }
.d-knob {
  background: radial-gradient(circle at calc(34% + var(--tx, 0) * 14%) calc(22% + var(--ty, 0) * 14%), rgba(255, 255, 255, .6), rgba(255, 255, 255, .1) 34%, transparent 62%),
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--dg) 30%, #2f3b50), #1c2434 80%);
  box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--dg) 65%, #000), 0 1px 0 rgba(255, 255, 255, .45) inset, 0 0 0 1px rgba(255, 255, 255, .16), 0 0 36px -6px color-mix(in srgb, var(--dg) 60%, transparent);
}
.d-pct { color: #fff; text-shadow: 0 0 20px color-mix(in srgb, var(--dg) 70%, transparent); }
.d-pct small, .d-label { color: rgba(255, 255, 255, .78); }
.d-count { color: rgba(255, 255, 255, .62); }
@media (max-width: 719px) {
  .hero { gap: 18px; }
  .dial3d { width: min(70vw, 270px); margin: 6px 0 2px; }
  .hero-copy { justify-items: stretch; }
  .hero-copy .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}

/* ---- opening a section: soft, slightly slow, like iOS ---- */
@keyframes enter { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.99); } to { opacity: 1; transform: none; } }
main > .stack > *, main > .hero, main > .form > *, .grid > *, .rows > * { animation: enter .7s var(--ios) both; }
.as-msg { animation: enter .5s var(--ios) both; }
dialog[open] { animation-timing-function: var(--ios); }

/* ---- policy and terms: a short summary, then folding sections ---- */
.doc { max-width: 820px; padding: 28px 18px 96px; }
.doc h1 { letter-spacing: -.03em; }
.doc-top .btn.quiet { color: var(--muted); }
.doc-sum { margin: 26px 0 8px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 90%, #fff), var(--surface)); box-shadow: var(--shadow); animation: enter .7s var(--ios) both; }
.doc-sum h2 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.doc-sum ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.doc-sum li { position: relative; padding-left: 34px; font-size: 1rem; line-height: 1.5; }
.doc-sum li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); }
.doc-sum li::after { content: ''; position: absolute; left: 7px; top: 6px; width: 8px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.doc-toc { gap: 10px; margin: 24px 0 4px; }
.doc-toc a { border-radius: 999px; padding: 10px 18px; border-color: var(--line); transition: background-color .2s, border-color .2s, transform .2s var(--ease-pop); }
.doc-toc a:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.doc-sec { margin-top: 40px; padding-top: 0; border-top: 0; }
.doc-sec h2 { font-size: 1.45rem; margin-bottom: 14px; }
.acc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.acc + .acc { margin-top: 10px; }
.acc:hover { border-color: var(--line-strong); }
.acc[open] { border-color: var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; list-style: none; cursor: pointer; font-weight: 650; font-size: 1.04rem; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-right: 3px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .35s var(--ios); }
.acc[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.acc-body { padding: 0 20px 18px; animation: accIn .45s var(--ios) both; }
.acc-body p:first-child { margin-top: 0; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.doc-card { padding: 6px 22px 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.doc-card ul { padding-left: 20px; }
.doc-card p { margin: 14px 0; }
.d-knob { left: 24%; top: 24%; width: 52%; height: 52%; }
.d-count { max-width: 88%; white-space: nowrap; }


/* ======================================================================
   v7: a calm menu (nothing grows or shrinks on a tap), a black dial with a red ring
   ====================================================================== */

/* ---- menu: no bounce, no scaling on press; the icon tile fades its colour in instead of switching it ---- */
.rail a:active { transform: none; }
.rail a:hover svg, .rail a[aria-current="page"] svg, .rail a:hover .nav-ava, .rail a[aria-current="page"] .nav-ava { transform: none; }
.rail a, .rail a svg, .nav-ava { transition-timing-function: var(--ios); }
.rail .rail-ind { transition: transform .55s var(--ios), width .55s var(--ios), height .55s var(--ios); }
.rail a .ni { position: relative; display: grid; place-items: center; flex: none; isolation: isolate; }
.rail a .ni::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .45s var(--ios); background: linear-gradient(145deg, var(--lite), var(--lite-2)); }
.rail a[aria-current="page"] .ni::before { opacity: 1; }

@media (min-width: 900px) {
  .rail a .ni { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; color: inherit;
    background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, #fff 10%, transparent) inset;
    transition: color .4s var(--ios), box-shadow .45s var(--ios); }
  .rail a svg { box-sizing: border-box; width: 20px; height: 20px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .rail a[aria-current="page"] svg { background: none; box-shadow: none; color: #fff; }
  .rail a[aria-current="page"] .ni { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 20px -8px color-mix(in srgb, var(--lite) 85%, transparent); }
  .rail a .ni.ava { border-radius: 50%; }
  .rail a .ni .nav-ava { width: 100%; height: 100%; box-shadow: none; }
  .rail a[aria-current="page"] .ni.ava { box-shadow: 0 0 0 2px var(--lite), 0 0 16px -2px color-mix(in srgb, var(--lite) 70%, transparent); }
  .rail a[aria-current="page"] .ni.ava::before { opacity: 0; }
}

/* phone: the open item is a glass capsule that grows by its name; every item keeps its own size, so nothing jumps */
@media (max-width: 899px) {
  .rail .rail-ind { display: none; }
  .rail:has(.lbl) { justify-content: space-between; padding: 6px 8px; }
  .rail:has(.lbl) a { flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: center; gap: 0; padding: 11px 13px; border-radius: 18px; position: relative; overflow: hidden;
    transition: background-color .45s var(--ios), box-shadow .45s var(--ios), color .35s; }
  .rail:has(.lbl) a[aria-current="page"] { background: linear-gradient(180deg, color-mix(in srgb, var(--lite) 24%, transparent), color-mix(in srgb, var(--lite) 8%, transparent));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 0 0 1px color-mix(in srgb, var(--lite) 34%, transparent), 0 10px 24px -12px color-mix(in srgb, var(--lite) 75%, transparent); }
  .rail:has(.lbl) a::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; opacity: 0; transition: opacity .45s var(--ios);
    background: linear-gradient(90deg, var(--lite), var(--lite-2)); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--lite) 70%, transparent); }
  .rail:has(.lbl) a[aria-current="page"]::after { opacity: 1; }
  .rail:has(.lbl) .lbl { display: inline-block; max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-weight: 600;
    transition: max-width .55s var(--ios), margin-left .55s var(--ios), opacity .4s var(--ios) .05s; }
  .rail:has(.lbl) a[aria-current="page"] .lbl { max-width: 132px; margin-left: 8px; opacity: 1; }
  .rail a .ni .nav-ava { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); }
  .rail a[aria-current="page"] .ni .nav-ava { box-shadow: 0 0 0 2px var(--lite), 0 0 12px -2px color-mix(in srgb, var(--lite) 70%, transparent); }
  .rail a[aria-current="page"] svg { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--lite) 65%, transparent)); }
}

/* ---- the dial: a black face, a red ring, a pulsing red tip ---- */
:root[data-theme="dark"] .dial3d, :root[data-theme="dark"] .dial3d.lvl-low, :root[data-theme="dark"] .dial3d.lvl-high, :root[data-theme="dark"] .dial3d.lvl-mid { --dg: #ff3347; }
:root[data-theme="dark"] .dial3d.lvl-none { --dg: #8a8f99; }
:root[data-theme="dark"] .d-glow { inset: -10%; filter: blur(22px); opacity: .55; animation: dGlow 4.5s ease-in-out infinite;
  background: radial-gradient(circle, transparent 54%, color-mix(in srgb, var(--dg) 40%, transparent) 66%, transparent 76%); }
:root[data-theme="dark"] .d-shadow { background: radial-gradient(ellipse, color-mix(in srgb, var(--dg) 30%, transparent), transparent 70%); }
:root[data-theme="dark"] .d-plate {
  background: conic-gradient(from 20deg, #17191e, #0a0b0d 18%, #1d2026 36%, #0a0b0d 54%, #171a1f 72%, #0c0d10 88%, #17191e);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 5px #0d0e11, 0 0 0 6px rgba(255, 255, 255, .1), 0 26px 46px -22px color-mix(in srgb, var(--dg) 55%, #000);
}
:root[data-theme="dark"] .d-plate::before { background: conic-gradient(from 0deg, transparent 0 46%, rgba(255, 255, 255, .1) 50%, transparent 54% 100%); }
:root[data-theme="dark"] .d-plate::after { background: radial-gradient(circle at calc(50% + var(--tx, 0) * 22%) calc(26% + var(--ty, 0) * 22%), rgba(255, 255, 255, .13), transparent 46%), radial-gradient(circle, transparent 62%, rgba(0, 0, 0, .45) 100%); }
:root[data-theme="dark"] .bz-ring { stroke: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .bz-tooth { stroke: rgba(255, 255, 255, .22); stroke-width: 1.4; }
:root[data-theme="dark"] .bz-notch { stroke: rgba(255, 255, 255, .7); stroke-width: 2.4; }
:root[data-theme="dark"] .in-ring { stroke: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .in-tick { stroke: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .in-tick.long { stroke: rgba(255, 255, 255, .55); }
:root[data-theme="dark"] .d-track { stroke: rgba(255, 255, 255, .09); }
:root[data-theme="dark"] .d-ticks line { stroke: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .dial3d.on .d-ticks line.lit { stroke: var(--dg); }
:root[data-theme="dark"] .dial3d.on .d-ticks { filter: none; }
:root[data-theme="dark"] .d-arc { stroke: var(--dg); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--dg) 75%, transparent)); }
:root[data-theme="dark"] .d-tip circle { fill: #ff7482; }
:root[data-theme="dark"] .d-tip .halo { fill: color-mix(in srgb, var(--dg) 45%, transparent); animation: dPulse2 1.9s ease-in-out infinite; }
@keyframes dPulse2 { 0%, 100% { transform: scale(.7); opacity: .45; } 50% { transform: scale(1.5); opacity: 1; } }
:root[data-theme="dark"] .d-knob {
  background: radial-gradient(circle at calc(34% + var(--tx, 0) * 14%) calc(22% + var(--ty, 0) * 14%), rgba(255, 255, 255, .2), transparent 52%), radial-gradient(circle at 50% 60%, #14161b, #08090b 82%);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .25) inset, 0 0 0 1px rgba(255, 255, 255, .13), 0 0 34px -10px color-mix(in srgb, var(--dg) 55%, transparent);
}
:root[data-theme="dark"] .d-pct { color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--dg) 55%, transparent); }
:root[data-theme="dark"] .d-pct small, :root[data-theme="dark"] .d-label { color: rgba(255, 255, 255, .78); }
:root[data-theme="dark"] .d-count { color: rgba(255, 255, 255, .62); }
:root[data-theme="dark"] .d-glow { inset: -4%; filter: blur(14px); background: radial-gradient(circle, transparent 58%, color-mix(in srgb, var(--dg) 42%, transparent) 70%, transparent 80%); }
@media (max-width: 899px) { .rail a .ni::before { display: none; } }
:root[data-theme="dark"] .d-knob { background-color: #0e1014; }

/* the dial's glow is no longer cut by a straight edge */
.hero { overflow: visible; }
.shell { overflow-x: clip; }
.dial3d { width: min(100%, 300px); }
@media (max-width: 719px) { .dial3d { width: min(70vw, 270px); } }
.themes { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 520px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

:root[data-theme="choco"] .d-knob, :root[data-theme="light"] .d-knob, :root[data-theme="green"] .d-knob { background-color: #eaf0f8; }

/* ---- the page keeps the same width on every section: room for the scroll bar is always reserved,
   otherwise a short page (no bar) and a long page (bar) differ by 15px and the whole layout jumps ---- */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }


/* ======================================================================
   v8: display titles, compact chat, richer offers
   ====================================================================== */
:root { --hl-a: #ffffff; --hl-b: #ff8d98; }

/* opening a page only fades and slides a little: nothing grows or shrinks */
@keyframes enter { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

/* ---- page titles, "terminal" style: mono capitals, the second line in the accent colour with a blinking block ---- */
h1.disp { margin: 0; font: 500 clamp(1.45rem, 4.6vw, 2.2rem)/1.18 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
h1.disp .thin { display: block; color: var(--muted); }
h1.disp b { display: block; font-weight: 500; color: var(--hl-b); }
h1.disp b::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: .18em; background: var(--hl-b); vertical-align: -.12em; animation: dispBlink 1.1s steps(2) infinite; }
h1.disp.stacked { font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.12; }
@keyframes dispBlink { to { opacity: 0; } }
.page-head .eyebrow { display: block; margin-bottom: 8px; }
.page-head h1.disp { font-size: clamp(1.5rem, 4.4vw, 2.3rem); }

/* ---- the assistant: smaller, closer together ---- */
.as-page { gap: 12px; }
.as-head { gap: 12px; flex-wrap: nowrap; align-items: center; }
.as-head > div { flex: 1 1 auto; min-width: 0; }
.as-head h1.disp { font-size: clamp(1.15rem, 3.6vw, 1.6rem); }
.as-head .sub { margin-top: 4px; font-size: .9rem; line-height: 1.35; max-width: none; }
.as-ava.big { width: 48px; height: 48px; }
.as-clear { flex: none; width: 40px; min-height: 40px; padding: 0; }
.as-acc { gap: 6px; }
.as-acc .chip { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.as-chat { padding: 12px; border-radius: 16px; }
.as-log { gap: 8px; min-height: 120px; }
.as-msg { gap: 8px; }
.as-ava { width: 28px; height: 28px; }
.as-bubble { padding: 9px 12px; border-radius: 14px; font-size: .94rem; line-height: 1.4; max-width: min(540px, 88%); }
.as-msg.a .as-bubble { border-bottom-left-radius: 5px; }
.as-msg.u .as-bubble { border-bottom-right-radius: 5px; }
.as-list { margin: 6px 0 8px; gap: 2px; }
.as-composer { padding: 8px; gap: 8px; border-radius: 18px; }
.as-quick .chip { min-height: 32px; padding: 0 12px; font-size: .86rem; }
textarea.inp.as-input { min-height: 44px; height: 44px; padding-top: 10px; }
.as-row .icon-btn, .as-send { width: 44px; min-height: 44px; }

/* ---- offers: a tighter card, coloured facts, short link rows ---- */
.promo-body { gap: 12px; padding: 16px 18px 18px; }
.promo-top { gap: 6px 8px; }
.card.promo h2, .promo-body > h2 { font-size: 1.3rem; line-height: 1.18; letter-spacing: -.02em; }
.promo-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
.pf { display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 9px 14px 10px; border-radius: 14px; border: 1px solid transparent; }
.pf dt { margin: 0; font: 600 .78rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.pf dd { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pf-prize { background: linear-gradient(135deg, color-mix(in srgb, #f4c75a 34%, var(--surface)), color-mix(in srgb, #e8892b 18%, var(--surface))); border-color: color-mix(in srgb, #d99a1c 45%, transparent); }
.pf-prize dt { color: color-mix(in srgb, #8a5a00 80%, var(--ink)); }
.pf-winners { background: linear-gradient(135deg, color-mix(in srgb, #3fd0d6 28%, var(--surface)), color-mix(in srgb, #5b7cff 16%, var(--surface))); border-color: color-mix(in srgb, #2aa9b3 45%, transparent); }
.pf-winners dt { color: color-mix(in srgb, #0b5d66 80%, var(--ink)); }
:root[data-theme="dark"] .pf-prize dt { color: #f1cf7a; }
:root[data-theme="dark"] .pf-winners dt { color: #7fe3e8; }
.promo-links { gap: 6px; }
.promo-link { padding: 8px 12px; gap: 10px; border-radius: 12px; box-shadow: none; }
.promo-link:not(:has(.pl-n)) { grid-template-columns: auto minmax(0, 1fr) auto; }
.pl-n { width: 22px; height: 22px; font-size: .78rem; }
.pl-i { width: 32px; height: 32px; border-radius: 10px; }
.pl-i svg { width: 18px; height: 18px; }
.pl-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.pl-t b { font-size: .96rem; }
.pl-t small { font-size: .8rem; }
.promo-link > svg:last-child { width: 18px; height: 18px; }

/* text styles an administrator can use in an offer */
.tx-thin { font-weight: 200; letter-spacing: .01em; }
.tx-mono { font-family: var(--f-mono); font-size: .9em; padding: .08em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.tx-big { font-size: 1.45em; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.tx-mark { padding: 0 .15em; color: inherit; background: linear-gradient(transparent 52%, color-mix(in srgb, var(--lite) 42%, transparent) 52%); border-radius: 2px; }
.tx-metal, .tx-gold { font-weight: 800; background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: metalShine 6s linear infinite; }
.tx-metal { background-image: linear-gradient(100deg, #8d96a3, #f4f7fb 22%, #9aa3b0 40%, #ffffff 58%, #7f8996 78%, #d9dee6); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.tx-gold { background-image: linear-gradient(100deg, #b8820f, #ffe08a 26%, #c98f12 48%, #fff0b8 66%, #b8820f 86%, #f2c451); }
:root[data-theme="choco"] .tx-metal, :root[data-theme="light"] .tx-metal, :root[data-theme="green"] .tx-metal { background-image: linear-gradient(100deg, #323b48, #8794a6 24%, #252c37 46%, #a7b3c4 64%, #343e4c 84%, #5f6b7c); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
:root[data-theme="choco"] .tx-gold, :root[data-theme="light"] .tx-gold, :root[data-theme="green"] .tx-gold { background-image: linear-gradient(100deg, #7a5100, #c98f12 28%, #5e3d00 50%, #d9a026 70%, #7a5100); }
@keyframes metalShine { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }

/* admin: the toolbar and the link rows take less room */
.lk-rows { gap: 8px; }
.lk-row { padding: 8px 10px; gap: 10px; align-items: center; }
.lk-n { margin-top: 0; width: 24px; height: 24px; font-size: .78rem; }
.lk-fields { grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 6px 8px; }
.lk-fields .inp { min-height: 40px; }
.lk-badge { grid-column: 1 / -1; }
@media (max-width: 560px) { .lk-fields { grid-template-columns: minmax(0, 1fr); } }

textarea.inp.as-input { overflow-y: hidden; }


/* ======================================================================
   v9: the new logo, a brighter and more glassy sign-in, Frisk
   ====================================================================== */
/* the logo has see-through corners: no frame, a soft shadow that follows its shape instead */
.brand img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.auth-logo { width: 64px; height: 64px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 16px rgba(0, 0, 40, .6)); }
.actions.stack-actions { flex-direction: column; align-items: stretch; }
.actions.stack-actions .btn { width: 100%; justify-content: center; }

/* the reCAPTCHA badge is hidden (its note sits under the form, as Google asks) */
.grecaptcha-badge { visibility: hidden !important; }
.au-captcha { position: fixed; right: 0; bottom: 0; width: 0; height: 0; overflow: hidden; }


/* ---- a brighter room, with slow light behind the glass ---- */
.auth-page { background: #14070b; }
.auth-bg { background: radial-gradient(900px 640px at 78% 36%, rgba(214, 28, 52, .62), transparent 70%), radial-gradient(760px 540px at 8% 100%, rgba(170, 30, 20, .5), transparent 70%), radial-gradient(600px 420px at 40% 0%, rgba(120, 30, 90, .35), transparent 70%); }
.auth-bg::before, .auth-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.auth-bg::before { width: 46vmax; height: 46vmax; left: 30%; top: 8%; background: radial-gradient(circle, rgba(255, 70, 90, .4), transparent 68%); animation: orbA 16s ease-in-out infinite alternate; }
.auth-bg::after { width: 38vmax; height: 38vmax; left: 52%; top: 42%; background: radial-gradient(circle, rgba(255, 150, 170, .28), transparent 68%); animation: orbB 21s ease-in-out infinite alternate; }
@keyframes orbA { from { transform: translate3d(-6%, 0, 0) scale(1); } to { transform: translate3d(10%, 8%, 0) scale(1.15); } }
@keyframes orbB { from { transform: translate3d(8%, 4%, 0) scale(1.1); } to { transform: translate3d(-10%, -8%, 0) scale(.92); } }
.auth-bg .ln { opacity: 1; }

/* ---- the form side: real glass ---- */
.auth-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .06) 42%, rgba(255, 255, 255, .12) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(1.9) brightness(1.18); backdrop-filter: blur(30px) saturate(1.9) brightness(1.18);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .14), inset 1.5px 0 0 rgba(255, 255, 255, .22), 0 50px 90px -34px rgba(0, 0, 0, .8);
}
.auth-page.lit .auth-card { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(255, 255, 255, .16), inset 1.5px 0 0 rgba(255, 255, 255, .26), 0 50px 90px -34px rgba(0, 0, 0, .8), 0 0 100px -26px rgba(255, 90, 110, .5); }
/* a pale reflection across the glass, and a bright sweep that passes now and then */
.auth-forms::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 26%, transparent 44%); }
.auth-forms::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; z-index: -1; pointer-events: none; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); animation: glassSweep 9s ease-in-out infinite; }
@keyframes glassSweep { 0%, 55% { left: -40%; } 100% { left: 140%; } }
.auth-forms { overflow: hidden; }
.auth-in.inp, .otp input { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.auth-tabs { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.auth-foot { border-top-color: rgba(255, 255, 255, .18); }

/* ---- the red side: a slow living light inside ---- */
.auth-hello { background-image: linear-gradient(145deg, #ff4a5a 0%, #c4182a 55%, #7a0c18 100%); overflow: hidden; }
.auth-hello::before { z-index: 0; background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .28), transparent 60%); animation: helloBreath 8s ease-in-out infinite alternate; }
@keyframes helloBreath { from { opacity: .6; transform: translateY(0); } to { opacity: 1; transform: translateY(6%); } }
.hx { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.hx.h1 { width: 62%; aspect-ratio: 1; left: -10%; bottom: -22%; background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 66%); filter: blur(10px); animation: hxA 11s ease-in-out infinite alternate; }
.hx.h2 { width: 48%; aspect-ratio: 1; right: -8%; top: 6%; background: radial-gradient(circle, rgba(255, 190, 120, .38), transparent 66%); filter: blur(12px); animation: hxB 14s ease-in-out infinite alternate; }
.hx.h3 { width: 30%; aspect-ratio: 1; left: 38%; top: 54%; background: radial-gradient(circle, rgba(120, 0, 20, .55), transparent 66%); filter: blur(10px); animation: hxC 9s ease-in-out infinite alternate; }
.hx.streak { inset: -10% auto -10% -30%; width: 26%; border-radius: 0; transform: skewX(-16deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: hxSweep 7s ease-in-out infinite; }
@keyframes hxA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14%, -18%, 0) scale(1.2); } }
@keyframes hxB { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-18%, 20%, 0) scale(.9); } }
@keyframes hxC { from { transform: translate3d(-14%, 0, 0) scale(.9); } to { transform: translate3d(16%, -14%, 0) scale(1.25); } }
@keyframes hxSweep { 0%, 40% { left: -30%; } 100% { left: 130%; } }
.hello-in { position: relative; z-index: 1; }

/* the swap: texts fade away and back while the two sides glide past each other */
.auth-forms, .auth-hello { transition: transform .95s cubic-bezier(.65, 0, .25, 1), clip-path .95s cubic-bezier(.65, 0, .25, 1), padding .95s cubic-bezier(.65, 0, .25, 1); }
.auth-card .auth-body, .auth-card .hello-in, .auth-card .auth-head, .auth-card .auth-foot { transition: opacity .3s ease, transform .5s cubic-bezier(.32, .72, 0, 1); }
.auth-card.swapping .auth-body, .auth-card.swapping .hello-in { opacity: 0; transform: translateY(8px); }
.auth-card .auth-body, .auth-card .hello-in { animation: none; }

/* ---- Frisk ---- */
.as-face { position: relative; flex: none; display: block; }
.as-online { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3fe0b0; border: 2px solid var(--bg); box-shadow: 0 0 10px #3fe0b0; animation: onlinePulse 2.4s ease-in-out infinite; }
@keyframes onlinePulse { 50% { box-shadow: 0 0 2px #3fe0b0; } }
.as-chat { background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, #fff), var(--surface)); }
.as-msg.u .as-bubble { background: linear-gradient(135deg, var(--lite), var(--lite-2)); color: #fff; border: 0; font-weight: 500; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
:root[data-theme="dark"] .as-msg.u .as-bubble { background: linear-gradient(135deg, #4a64ea, #7a52e8); background-color: #4a64ea; }
.as-actions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; scroll-snap-type: x proximity; }
.as-actions::-webkit-scrollbar { display: none; }
.as-act { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--field); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; scroll-snap-align: start;
  transition: transform .2s var(--ios), border-color .2s, background-color .2s, box-shadow .25s; }
.as-act svg { width: 18px; height: 18px; color: var(--lite); }
.as-act:hover { transform: translateY(-2px); border-color: var(--lite); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--lite) 80%, transparent); }
.as-act:active { transform: none; }
.as-mode { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: color-mix(in srgb, var(--lite) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lite) 40%, transparent); font-weight: 600; font-size: .9rem; animation: enter .35s var(--ios) both; }
.as-mode[hidden] { display: none; }
.as-mode svg { width: 16px; height: 16px; color: var(--lite); }
.as-mode span { flex: 1; }
.as-mode .icon-btn { width: 30px; min-height: 30px; padding: 0; }
.as-tips { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 4px; }
.as-tips button { padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.as-tips button:hover { color: var(--ink); }


/* ======================================================================
   v10: soft section change, bigger menu, icons that react
   ====================================================================== */
/* the old page leaves, the new one rises in: slower and softer, like iOS */
main.leaving > * { opacity: 0; transform: translate3d(0, -8px, 0) scale(.996); transition: opacity .2s ease, transform .22s var(--ios); animation: none; }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.992); } to { opacity: 1; transform: none; } }
main > .stack > *, main > .hero, main > .form > *, .grid > *, .rows > * { animation: enter .85s var(--ios) both; }
main > .stack > *:nth-child(2) { animation-delay: .07s; }
main > .stack > *:nth-child(3) { animation-delay: .14s; }
main > .stack > *:nth-child(4) { animation-delay: .21s; }
main > .stack > *:nth-child(5) { animation-delay: .28s; }
main > .stack > *:nth-child(6) { animation-delay: .35s; }
main > .stack > *:nth-child(n + 7) { animation-delay: .42s; }
.rail .rail-ind { transition: transform .7s var(--ios), width .7s var(--ios), height .7s var(--ios); }

/* the menu: larger names, larger tiles, and a tile that grows when the pointer touches it */
@media (min-width: 900px) {
  .rail a { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 36px; height: 36px; }
  .rail a .ni { width: 44px; height: 44px; border-radius: 14px; transition: transform .45s cubic-bezier(.3, 1.45, .5, 1), color .4s var(--ios), box-shadow .45s var(--ios); }
  .rail a svg { width: 22px; height: 22px; }
  .rail a:hover .ni { transform: scale(1.14) translateY(-1px); }
  .rail a[aria-current="page"]:hover .ni { transform: scale(1.1); }
  .rail a .ni.ava .nav-ava { transform: none; }
  .rail a:hover .ni.ava { transform: scale(1.14); }
}
@media (max-width: 899px) {
  .rail:has(.lbl) a { padding: 12px 14px; }
  .rail:has(.lbl) .lbl { font-size: .95rem; }
  .rail a svg { width: 24px; height: 24px; }
  .rail a:active .ni { transform: scale(1.12); transition: transform .25s cubic-bezier(.3, 1.45, .5, 1); }
}

/* the reCAPTCHA note, kept small and tidy */

/* Google sign-in under the main button */
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .2s var(--ease-pop), background-color .2s, box-shadow .25s; }
.auth-google:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 28px -16px rgba(0, 0, 0, .7); }
.auth-google:active { transform: scale(.99); }
.auth-google:disabled { opacity: .7; }
.g-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; font: 800 .95rem/1 var(--f-sans); font-style: normal; color: #1a56c8; }


/* ======================================================================
   v11: narrow side menu on a computer. Icons only; the name flies out to the side when the pointer
   (or the keyboard) reaches an icon, and the icon lights up
   ====================================================================== */
@keyframes navWiggle { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-14deg) scale(1.18); } 60% { transform: rotate(9deg) scale(1.1); } 100% { transform: rotate(0) scale(1.06); } }
@keyframes navRing { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.75); } }
@keyframes navFly { from { opacity: 0; transform: translate(-14px, -50%) scale(.9); } to { opacity: 1; transform: translate(0, -50%) scale(1); } }
@media (min-width: 900px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); gap: 28px; }
  .shell.focus { grid-template-columns: minmax(0, 1fr); }
  .rail { padding: 12px 8px; gap: 6px; border-radius: 24px; }
  .brand { justify-content: center; padding: 4px 0 14px; }
  .brand .bn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand img { width: 40px; height: 40px; }
  .rail a { justify-content: center; padding: 6px; gap: 0; overflow: visible; }
  .rail a .ni { overflow: visible; width: 44px; height: 44px; }
  .rail a .ni.ava .nav-ava { border-radius: 50%; }

  /* the icon: brighter and livelier under the pointer */
  .rail a .ni { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), color .35s var(--ios), box-shadow .45s var(--ios), filter .35s; }
  .rail a .ni::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--lite); opacity: 0; pointer-events: none; }
  .rail a:hover .ni, .rail a:focus-visible .ni { transform: scale(1.22) translateY(-1px); color: #fff; filter: brightness(1.18) saturate(1.25);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 0 0 1px color-mix(in srgb, var(--lite) 70%, transparent), 0 0 26px 2px color-mix(in srgb, var(--lite) 75%, transparent), 0 12px 24px -10px color-mix(in srgb, var(--lite) 90%, transparent); }
  .rail a:hover .ni::before, .rail a:focus-visible .ni::before { opacity: .92; }
  .rail a:hover .ni::after, .rail a:focus-visible .ni::after { animation: navRing .9s ease-out; }
  .rail a:hover .ni svg, .rail a:focus-visible .ni svg { animation: navWiggle .65s cubic-bezier(.3, 1.4, .5, 1) both; filter: drop-shadow(0 0 7px rgba(255, 255, 255, .85)); }
  .rail a:hover .ni.ava, .rail a:focus-visible .ni.ava { filter: brightness(1.1); box-shadow: 0 0 0 2px var(--lite), 0 0 28px 2px color-mix(in srgb, var(--lite) 80%, transparent); }
  .rail a[aria-current="page"]:hover .ni { transform: scale(1.18); }

  /* the name: a glass tab that slides out of the icon */
  .rail a .lbl { position: absolute; left: calc(100% + 16px); top: 50%; z-index: 5; display: block; width: max-content; padding: 9px 16px; border-radius: 14px;
    font-size: 1rem; font-weight: 700; letter-spacing: -.005em; color: var(--ink); white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-14px, -50%);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--lite)), color-mix(in srgb, var(--surface) 90%, transparent));
    border: 1px solid color-mix(in srgb, var(--lite) 55%, transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 0 22px -4px color-mix(in srgb, var(--lite) 60%, transparent), 0 16px 32px -14px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
  .rail a .lbl::before { content: ''; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg); border-radius: 2px 0 0 0;
    background: color-mix(in srgb, var(--surface) 92%, var(--lite)); border: solid color-mix(in srgb, var(--lite) 55%, transparent); border-width: 0 0 1px 1px; }
  .rail a:hover .lbl, .rail a:focus-visible .lbl { visibility: visible; animation: navFly .42s cubic-bezier(.3, 1.35, .5, 1) .06s both; }
  .rail a .nbadge { position: absolute; top: 2px; right: 2px; margin: 0; transform: none; min-width: 18px; padding: 1px 5px; font-size: .75rem; line-height: 1.25; z-index: 2; }
}


/* ======================================================================
   v12: offer cards in the "neon" look: dark glass in every theme, a glowing prize, compact round-icon link pills
   ====================================================================== */
.card.promo {
  --ink: #eef1fb; --muted: #aab2cf; --faint: #8089aa; --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .22);
  --surface: #151b33; --surface-2: rgba(255, 255, 255, .08); --field: rgba(255, 255, 255, .06); --on-ink: #0b1020; --accent: #b9a6ff; --lite: #8ab4ff; --danger: #ff9aa2;
  color: var(--ink); background: linear-gradient(160deg, #1a1040, #0d1330); border: 1px solid rgba(138, 180, 255, .35);
  box-shadow: 0 0 40px -18px #8a6bff, 0 24px 44px -26px rgba(0, 0, 0, .7);
}
.card.promo .promo-cover { border-bottom: 0; }
.card.promo .promo-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, #130f36); }

/* prize and winners: the prize glows, the winners sit on the right */
.promo-facts { align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.card.promo .pf { min-width: 0; padding: 0; border: 0; background: none; gap: 4px; }
.card.promo .pf dt { color: #cbbcff; }
.card.promo .pf-prize dd { font-size: 2.1rem; line-height: 1; color: #fff; text-shadow: 0 0 18px #8a6bff, 0 0 4px #b9a6ff; }
.card.promo .pf-winners { align-items: flex-end; text-align: right; }
.card.promo .pf-winners dd { font-size: 1.25rem; color: #fff; }

/* links: small pills with a round coloured icon; the order of steps stays as a tiny number */
.promo-links { gap: 8px; }
.promo-links-h { margin-bottom: -2px; }
.promo-links { display: flex; flex-wrap: wrap; align-items: center; }
.promo-links-h { flex: 0 0 100%; }
.card.promo .promo-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(185, 166, 255, .5); box-shadow: 0 0 16px -6px #8a6bff; }
.card.promo .promo-link:hover { border-color: #cbbcff; transform: translateY(-1px); box-shadow: 0 0 22px -4px #8a6bff; }
.card.promo .promo-link > svg:last-child, .card.promo .pl-t small { display: none; }
.card.promo .pl-i { width: 30px; height: 30px; border-radius: 50%; border: 0; }
.card.promo .pl-i svg { width: 16px; height: 16px; }
.card.promo .pl-n { width: 20px; height: 20px; margin-left: 4px; margin-right: -2px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .75rem; }
.card.promo .pl-t b { font-size: .92rem; font-weight: 700; }
a.promo-video.link { display: inline-flex; width: fit-content; max-width: 100%; aspect-ratio: auto; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(185, 166, 255, .5); box-shadow: 0 0 16px -6px #8a6bff; }
a.promo-video.link .pv-play { width: 30px; height: 30px; }
a.promo-video.link .pv-play svg { width: 14px; height: 14px; margin-left: 2px; }
a.promo-video.link .pv-text { flex: none; font-size: .92rem; }
a.promo-video.link > svg { display: none; }

/* the shiny text styles keep their light-on-dark colours inside these dark cards, in every theme */
.card.promo .tx-metal { background-image: linear-gradient(100deg, #8d96a3, #f4f7fb 22%, #9aa3b0 40%, #ffffff 58%, #7f8996 78%, #d9dee6); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.card.promo .tx-gold { background-image: linear-gradient(100deg, #b8820f, #ffe08a 26%, #c98f12 48%, #fff0b8 66%, #b8820f 86%, #f2c451); }

/* ---- text blocks and styles for offers (they live on the dark neon card, so the colours are light-on-dark) ---- */
.promo-text .tx-glow { color: #fff; font-weight: 800; text-shadow: 0 0 14px #8a6bff, 0 0 3px #b9a6ff; }
.promo-text .tx-ice { font-weight: 800; background-image: linear-gradient(100deg, #7fe3ff, #b9a6ff 50%, #ff9ad5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.promo-text .tx-c { font-weight: 700; }
.promo-text .tx-c-r { color: #ff8a93; } .promo-text .tx-c-g { color: #6ee7a8; } .promo-text .tx-c-b { color: #7fc4ff; } .promo-text .tx-c-y { color: #ffd36b; }
.promo-text .tx-head { margin: 4px 0 -4px; font: 500 .8rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #cbbcff; }
.promo-text .tx-call { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 200, 90, .1); border: 1px solid rgba(255, 200, 90, .4); border-left: 4px solid #ffc85a; }
.promo-text .tx-call b { display: block; margin-bottom: 2px; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #ffd98a; }
.promo-text .tx-q { margin: 0; padding: 2px 0 2px 12px; border-left: 3px solid rgba(185, 166, 255, .7); color: #d6dcf2; font-style: italic; }
.promo-text .tx-hr { height: 1px; margin: 4px 0; border: 0; background: linear-gradient(90deg, transparent, rgba(185, 166, 255, .7), transparent); }
.promo-text .tx-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: step; }
.promo-text .tx-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; counter-increment: step; }
.promo-text .tx-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(145deg, #8ab4ff, #b9a6ff); color: #0b1020; font-weight: 800; font-size: .82rem; }
.promo-text .tx-steps li::marker { content: ''; }

/* focus pages (a support request, editing an account) keep the same frame on a computer, so switching to them does not rebuild the layout */
@media (min-width: 900px) {
  .shell.focus .rail { display: flex; }
  .shell.focus { grid-template-columns: 76px minmax(0, 1fr); max-width: 1120px; }
  .shell.focus main { max-width: 860px; }
}
.card.promo { background-color: #151236; }
.card.promo { --ok: #6ee7a8; --ok-soft: rgba(110, 231, 168, .16); --danger-soft: rgba(255, 154, 162, .16); }


/* ---- "what to add next": Frisk's tip with chips for the rest ---- */
.card.frisk-tip { display: grid; gap: 14px; padding: 16px 18px; border-color: color-mix(in srgb, var(--lite) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--lite) 10%, var(--surface)), var(--surface)); }
.ft-main { display: flex; gap: 12px; align-items: flex-start; }
.ft-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ft-bubble { min-width: 0; display: grid; gap: 6px; padding: 12px 14px; border-radius: 6px 18px 18px 18px; background: var(--surface-2); border: 1px solid var(--line); }
.ft-bubble h2 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.ft-bubble p { color: var(--muted); font-size: .95rem; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 56px; }
.ft-more { display: grid; gap: 8px; }
.ft-lbl { font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; transition: transform .2s var(--ease-pop), border-color .2s; }
.ft-chip:hover { transform: translateY(-1px); border-color: var(--ink); }
.ft-chip i { font: 500 .78rem var(--f-mono); font-style: normal; color: var(--ok); }
.ft-chip .w { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ft-chip .w3 { background: var(--danger); } .ft-chip .w2 { background: #e0a31c; } .ft-chip .w1 { background: var(--lite); }
@media (max-width: 560px) { .ft-actions { margin-left: 0; } }
@keyframes fieldFlash { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lite) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.field.flash { border-radius: 12px; animation: fieldFlash 1.8s ease; }
.as-act.flash { animation: fieldFlash 1.8s ease 2; }


/* ---- Tajik letters (Cyrillic Extended) ---- */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-tight-cyrillic-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-cyrillic-ext-400-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-cyrillic-ext-500-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }


/* ---- "add to the home screen" sheet ---- */
@keyframes instFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes instUp { from { transform: translateY(100%); } to { transform: none; } }
.inst-dim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 8, 18, .55); animation: instFade .3s ease; }
.inst-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 520px; margin: 0 auto; display: grid; gap: 12px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .7); animation: instUp .5s var(--ios); }
.inst-grip { width: 42px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.inst-sheet h2 { font-size: 1.25rem; }
.inst-sheet .sub { margin: 0; }
.inst-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.inst-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; line-height: 1.35; }
.inst-steps li i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(145deg, var(--lite), var(--lite-2)); color: #fff; font-style: normal; font-weight: 800; font-size: .85rem; }
.inst-kbd { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; vertical-align: middle; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.inst-kbd svg { width: 16px; height: 16px; }
.inst-actions { display: grid; gap: 8px; margin-top: 4px; }
.inst-actions .btn { width: 100%; }
.inst-steps[hidden] { display: none; }


/* ---- the dossier window (it uses the same sheet as the install hint) ---- */
.dos-sheet { max-height: 92vh; overflow-y: auto; }
.dos-form { display: grid; gap: 12px; }
.dos-check { align-items: flex-start; }
.dos-check small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: .85rem; line-height: 1.35; }
.dos-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 1.1rem; }
.dos-ok svg { width: 22px; height: 22px; color: var(--ok); }
.dos-note { margin: 0; font-size: .82rem; }
.dos-sheet .inst-actions .btn { text-decoration: none; }


/* ---- Frisk's welcome (it uses the sheet of the install hint; centred on a wide screen) ---- */
.wel-head { display: flex; align-items: center; gap: 14px; }
.wel-ava { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lite) 45%, transparent); }
.wel-head h2 { font-size: 1.4rem; line-height: 1.15; }
.wel-opts { display: grid; gap: 8px; }
.wel-opt { display: grid; gap: 2px; justify-items: start; text-align: left; width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; transition: transform .25s var(--ease-pop), border-color .2s, background-color .2s; }
.wel-opt:hover { transform: translateY(-1px); border-color: var(--lite); }
.wel-opt strong { font-size: 1.02rem; }
.wel-opt small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.wel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wel-foot .hint { margin: 0; font-size: .82rem; }
@media (min-width: 700px) { .wel-sheet { bottom: auto; top: 50%; border-bottom: 1px solid var(--line-strong); border-radius: 22px; max-width: 480px; padding-bottom: 20px; animation: none; transform: translateY(-50%); } }

.wel-app { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wel-app:hover { color: var(--ink); }


/* ---- changing the phone or the email, and the history of sign-in methods ---- */
.method-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hist-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hist-tl { position: relative; display: grid; gap: 12px; padding-left: 18px; }
.hist-tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.hist-e { position: relative; display: grid; gap: 1px; min-width: 0; }
.hist-e::before { content: ''; position: absolute; left: -18px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--lite); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--lite); }
.hist-e.add::before { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.hist-e.chg::before { background: #e0a31c; box-shadow: 0 0 0 1px #e0a31c; }
.hist-e small { font: 500 .78rem/1.2 var(--f-mono); color: var(--muted); }
.hist-e .mono { font-size: .9rem; overflow-wrap: anywhere; color: var(--muted); }

/* ---- v13: the dial gets a thin glowing contour instead of a halo and a coloured shadow ---- */
.d-glow, .d-shadow { display: none; }
.d-plate { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 1px color-mix(in srgb, var(--dg) 80%, transparent), 0 0 16px -2px color-mix(in srgb, var(--dg) 55%, transparent); }
:root[data-theme="dark"] .d-plate { box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 5px #0d0e11, 0 0 0 6px color-mix(in srgb, var(--dg) 80%, transparent), 0 0 18px 2px color-mix(in srgb, var(--dg) 50%, transparent); }


/* ---- sign-in footer: one short consent line in the card, the reCAPTCHA note under it ---- */
.auth-foot { border-top: 0; padding-top: 2px; }
.auth-foot .auth-note { font-size: .82rem; color: #b9aeb2; }
.auth-foot .auth-note .link { color: #f4eef0; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s; }
.auth-foot .auth-note .link:hover { border-bottom-color: rgba(255, 255, 255, .8); }
.auth-rcp { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin: 12px 0 0; padding: 0 8px; font-size: .76rem; line-height: 1.45; text-align: center; color: var(--faint); }
.auth-rcp svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; color: #4fe0bd; }
.auth-rcp a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, .35); }
.auth-rcp a:hover { border-bottom-style: solid; }

/* ---- v14: Frisk's photo gets a living ring: a light arc slowly runs round it (chat avatars keep the ring still, to stay calm) ---- */
@property --fa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes faSpin { to { --fa: 360deg; } }
.nav-ava, .as-ava, .ft-ava, .wel-ava {
  box-sizing: border-box; border: 2.5px solid transparent;
  background: conic-gradient(from var(--fa), color-mix(in srgb, var(--lite) 24%, transparent) 0 25%, var(--lite) 55%, var(--lite-2) 80%, color-mix(in srgb, var(--lite) 24%, transparent) 100%) border-box;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6);
}
.nav-ava, .as-ava.big, .ft-ava, .wel-ava { animation: faSpin 6s linear infinite; }
.as-ava:not(.big) { border-width: 1.5px; }
.nav-ava { border-width: 2px; }
.rail a .nav-ava, .rail a .ni .nav-ava, .rail a:hover .nav-ava, .rail a[aria-current="page"] .nav-ava, .rail a[aria-current="page"] .ni .nav-ava, .rail a:hover .ni.ava, .rail a:focus-visible .ni.ava { box-shadow: none !important; }
.rail a[aria-current="page"] .ni .nav-ava, .rail a[aria-current="page"] .nav-ava { box-shadow: 0 0 14px -2px color-mix(in srgb, var(--lite) 60%, transparent) !important; }
@media (prefers-reduced-motion: reduce) { .nav-ava, .as-ava, .ft-ava, .wel-ava { animation: none; } }

/* ---- v15: outfit badges are round medallions: a coin with a ring standing off it ---- */
.outfit-glow { --om: color-mix(in srgb, var(--o1) 45%, var(--o2)); width: 40px; height: 40px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--glow) 45%, transparent)); }
.outfit-glow::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--o1) 70%, transparent); pointer-events: none; }
.outfit-art { position: absolute; inset: 11%; width: auto; height: auto; border-radius: 50%; clip-path: none; background: radial-gradient(circle at 32% 24%, var(--o1), var(--om) 55%, var(--o2)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -6px 10px -4px rgba(0, 0, 0, .35); }
.outfit-art::before { display: none; }
.outfit-art svg { width: 54%; height: 54%; margin-top: 0; }
.outfit-glow[data-o="iridescence"] { --om: #c98bff; }
.outfit-glow[data-o="iridescence"] .outfit-art { background: radial-gradient(circle at 32% 24%, var(--o1), var(--om) 55%, var(--o2)); }
.outfit-opt .outfit-glow { width: 54px; height: 54px; }
.avatar .outfit-glow { width: 72%; height: 72%; }
.acc-title .outfit-glow { width: 38px; height: 38px; }


/* ---- v16: the fingerprint / face unlock screen and the lock rows in Settings ---- */
.bio-btn { display: grid; place-items: center; width: 96px; height: 96px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--lite) 55%, transparent); background: color-mix(in srgb, var(--lite) 12%, transparent); color: var(--lite); cursor: pointer; transition: transform .15s var(--ease-pop), box-shadow .3s; }
.bio-btn svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bio-btn:active { transform: scale(.94); }
.bio-btn.pulse { animation: bioPulse 2.4s ease-in-out infinite; }
@keyframes bioPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lite) 40%, transparent); } 50% { box-shadow: 0 0 0 16px transparent; } }
.bio-hint { margin: 0; color: var(--ok); font-weight: 600; font-size: .92rem; }
.pin-link { border: 0; background: none; color: var(--lite); font: 600 .95rem var(--f-sans); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.card.lk { padding: 6px 0; overflow: hidden; }
.lk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 18px; border: 0; background: transparent; color: var(--ink); font: 600 1rem/1.3 var(--f-sans); text-align: left; cursor: pointer; }
.lk-row + .lk-row, .lk-row + .lk-ex, .lk-ex + .lk-row { border-top: 1px solid var(--line); }
.lk-row small { display: block; margin-top: 2px; font-weight: 400; font-size: .84rem; color: var(--muted); }
.lk-static { cursor: default; }
.lk-val { color: var(--muted); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.lk-val::after { content: ' ›'; display: inline-block; transition: transform .2s; }
.lk-row[aria-expanded="true"] .lk-val::after { transform: rotate(90deg); }
.lk-ex { display: grid; gap: 12px; padding: 4px 18px 16px; }
.lk-ex .sub { margin: 0; font-size: .88rem; color: var(--muted); }
.lk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 600 .88rem var(--f-sans); cursor: pointer; }
.lk-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.lk-sw { position: relative; flex: none; width: 50px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background-color .2s; }
.lk-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .25s var(--ease-pop); }
.lk-sw[aria-checked="true"] { background: var(--ok); }
.lk-sw[aria-checked="true"]::after { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .bio-btn.pulse { animation: none; } }


/* ---- v17: the logo while the app waits to learn whether the person is signed in ---- */
.splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); }
.splash img { width: 72px; height: 72px; border-radius: 21px; animation: splashPulse 1.6s ease-in-out infinite; }
@keyframes splashPulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .splash img { animation: none; } }


/* ---- v18: the intro before signing in ---- */
.intro { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-top: env(safe-area-inset-top); color: var(--ink);
  background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; }
.intro-view { min-height: 0; overflow: hidden; }
.intro-track { display: flex; height: 100%; transition: transform .45s var(--ease); }
.intro-slide { flex: 0 0 100%; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 28px 26px 8px; text-align: center; }
.intro-slide > * { max-width: 420px; }
.intro-ic { width: 118px; height: 118px; border-radius: 34px; display: grid; place-items: center; background: radial-gradient(circle at 30% 22%, #ff6a76, #b3121f 70%); box-shadow: 0 24px 40px -22px rgba(255, 50, 65, .8), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.intro-ic svg { width: 58px; height: 58px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.intro-slide h1 { margin: 8px 0 0; font-size: 1.6rem; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.intro-slide p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.intro-foot { display: grid; gap: 8px; justify-items: center; width: min(100%, 420px); margin: 0 auto; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); }
.intro-dots { display: flex; gap: 8px; justify-content: center; }
.intro-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: width .3s, background-color .3s; }
.intro-dots button[aria-current="true"] { width: 22px; background: #ff5d63; }
.intro-next { width: 100%; min-height: 54px; border: 0; border-radius: 15px; color: #fff; font: 700 1.05rem var(--f-sans); cursor: pointer; background-color: #b3121f; background-image: linear-gradient(180deg, #ea3443, #b3121f); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 26px -14px rgba(255, 50, 65, .7); transition: transform .15s var(--ease-pop); }
.intro-next:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .intro-track { transition: none; } }


/* ---- v19: settings on a phone, a grouped list (rows open their own screens) ---- */
.sl-box { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.sr { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; color: var(--ink); text-decoration: none; font: 600 .98rem/1.25 var(--f-sans); }
.sr + .sr { border-top: 1px solid var(--line); }
.sr b { flex: 1; min-width: 0; font-weight: 600; }
.sr-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.sr-ic svg { width: 18px; height: 18px; }
.sr .v { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: .88rem; }
.sr::after { content: '›'; color: var(--faint); font-size: 1.25rem; line-height: 1; }
.sr:active { background: var(--surface-2); }
.sw-dots { display: inline-flex; gap: 5px; }
.sw-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); }


/* ---- v20: the phone: offers as covers with a detail sheet, the Frisk chat with a «+» panel ---- */
.pcovers { display: grid; gap: 10px; }
.pcover { position: relative; display: grid; align-content: end; gap: 2px; min-height: 132px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 18px; overflow: hidden; color: #fff; text-align: left; cursor: pointer; font: inherit;
  background: linear-gradient(135deg, #2b3a9a, #11142a 70%) center / cover; box-shadow: var(--shadow); transition: transform .2s var(--ease-pop); }
.pcover.t-event { background-image: linear-gradient(135deg, #a83a6a, #11142a 70%); }
.pcover.t-ad { background-image: linear-gradient(135deg, #2a8a7a, #11142a 70%); }
.pcover.t-news { background-image: linear-gradient(135deg, #4a5568, #11142a 70%); }
.pcover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0, 0, 0, .7)); pointer-events: none; }
.pcover > * { position: relative; }
.pcover:active { transform: scale(.985); }
.pc-type { position: absolute; top: 10px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; }
.pc-play { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: .8rem; }
.pc-t { font-weight: 800; font-size: 1.04rem; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pc-m { font-size: .82rem; opacity: .9; }
.promo-sheet { max-height: 88dvh; overflow-y: auto; padding-top: 10px; }
.promo-sheet .card.promo { border: 0; box-shadow: none; padding: 0; background: transparent; }
.promo-sheet .promo-x { position: absolute; top: 8px; right: 12px; width: 36px; min-height: 36px; padding: 0; }
.as-plus { display: none; }
@media (max-width: 899px) {
  .as-head { gap: 10px; }
  .as-ava.big { width: 36px; height: 36px; }
  .as-head h1.disp { display: flex; flex-wrap: wrap; gap: 0 .4ch; font-size: 1rem; }
  .as-head .sub { font-size: .76rem; line-height: 1.3; margin-top: 2px; }
  .as-clear { width: 36px; min-height: 36px; }
  .as-acc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .as-acc::-webkit-scrollbar { display: none; }
  .as-acc .chip { flex: none; }
  .as-page { grid-template-rows: auto auto minmax(0, 1fr) auto; min-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); }
  .as-chat { padding: 8px 6px; border: 0; background: transparent; box-shadow: none; }
  .as-plus { display: grid; place-items: center; }
  .as-plus svg { transition: transform .25s var(--ease-pop); }
  .as-plus[aria-expanded="true"] svg { transform: rotate(45deg); }
  .as-composer:not(.open) .as-actions, .as-composer:not(.open) .as-tips { display: none; }
  .as-composer.open .as-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0; padding: 2px 0 6px; }
  .as-composer.open .as-act { flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 2px; border-radius: 14px; font-size: .74rem; text-align: center; }
  .as-composer.open .as-act svg { width: 22px; height: 22px; }
}
@media (max-width: 899px) { .as-acc-lbl { display: none; } }
/* the longest name («Предложения») must fit the bar on a narrow phone */
@media (max-width: 420px) {
  .rail:has(.lbl) a { padding: 12px 10px; }
  .rail:has(.lbl) .lbl { font-size: .86rem; }
}
.pcover { background-color: #1b1f3a; }
/* white text on the person's bubble must stay readable in the light themes too */
:root[data-theme="choco"] .as-msg.u .as-bubble, :root[data-theme="light"] .as-msg.u .as-bubble, :root[data-theme="green"] .as-msg.u .as-bubble {
  background: linear-gradient(135deg, color-mix(in srgb, var(--lite) 80%, #000), color-mix(in srgb, var(--lite-2) 65%, #000));
}


/* ---- v21: sign-in, Google first (G1): a light main button, the phone and e-mail as two smaller glass buttons ---- */
.auth-google { min-height: 56px; background: #fff; border-color: #fff; color: #1f1f1f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 30px -14px rgba(0, 0, 0, .7); -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth-google:hover { background: #f6f6f7; box-shadow: inset 0 1px 0 #fff, 0 18px 34px -14px rgba(0, 0, 0, .75); }
.g-mark { width: 24px; height: 24px; background: transparent; }
.g-mark svg { display: block; width: 24px; height: 24px; }
.auth-gsub { margin: 0; text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-alt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--ease-pop), box-shadow .25s; }
.auth-alt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.auth-alt:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 28px -16px rgba(0, 0, 0, .7); }
.auth-alt:active { transform: scale(.99); }
.auth-allways { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 4px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.auth-allways svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-allways:hover { color: #fff; }

/* ---- v22: small buttons get a larger tap area without changing how they look ---- */
.back, .as-tips button { position: relative; }
.back::before, .as-tips button::before { content: ''; position: absolute; inset: -9px -6px; }


/* ---- v23: a quiet redraw after the background sync: the blocks stay where they are instead of rising in again ---- */
main.still > .stack > *, main.still > .hero, main.still > .form > *, main.still .grid > *, main.still .rows > * { animation: none; }


/* ---- v24: a dial that is drawn again is already settled: no sweep, no count-up, no spin-in ---- */
.dial3d.settled .d-arc { animation: none; stroke-dashoffset: var(--o); }
.dial3d.settled .d-tip { animation: none; opacity: 1; transform: rotate(var(--a)); }
.dial3d.settled .d-ticks line.lit { transition: none; }
.dial3d.settled .d-bezel { animation: dSpin 90s linear infinite; }


/* ---- v25: sign-in without the phone: a single narrow card, one e-mail button ---- */
.auth-card.solo[data-mode] { grid-template-columns: 1fr; width: min(480px, 100%); min-height: 0; }
.auth-card.solo[data-mode] .auth-forms { grid-column: 1 / -1; transform: none; }
.auth-card.solo[data-mode] .auth-hello { display: none; }
.auth-two.one { grid-template-columns: 1fr; }


/* ---- v26: sign-in: the wait screen, the in-app browser notice ---- */
.auth-wait { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 18px 0 6px; animation: rise2 .4s var(--ease) both; }
.auth-wait h2 { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -.02em; }
.auth-wait .sub { max-width: 30ch; margin: 0; }
.wait-spin { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: #ff6a76; animation: waitSpin 1s linear infinite; }
.wait-spin .g-mark { animation: waitCounter 1s linear infinite; }
@keyframes waitSpin { to { transform: rotate(360deg); } }
@keyframes waitCounter { to { transform: rotate(-360deg); } }
.auth-inapp { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 190, 60, .12); border: 1px solid rgba(255, 190, 60, .45); text-align: left; }
.auth-inapp strong { color: #ffd27a; }
.auth-inapp p { margin: 0; color: #f0e2c4; font-size: .88rem; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .wait-spin, .wait-spin .g-mark { animation-duration: 2.4s; } }


/* ======================================================================
   v27 · Theme "Шоколад и молоко" (choco): one chocolate-and-milk background, glass windows,
   a tangerine main button, a cocoa menu pill, the 3D dial in warm brass.
   Everything here is scoped to :root[data-theme="choco"]; the other themes are untouched.
   ====================================================================== */
:root[data-theme="choco"] {
  --bg: #9a7350;
  --surface: #f8ecdb;
  --surface-2: #efdcc2;
  --field: #fbf3e7;
  --line: rgba(110, 72, 36, .2);
  --line-strong: rgba(110, 72, 36, .38);
  --grid: transparent;
  --ring: transparent;
  --glow: transparent;

  --ink: #2a180d;
  --muted: #583f2d;
  --faint: #62472f;
  --on-ink: #fff3e3;
  --accent: #d9531a;

  --ok: #0a7d63;
  --ok-soft: rgba(10, 125, 99, .14);
  --danger: #b8231f;
  --danger-soft: rgba(184, 35, 31, .10);
  --danger-btn: #c9302a;

  --shadow: 0 1px 0 #fff inset, 0 24px 44px -26px rgba(70, 36, 12, .55);
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 2px rgba(70, 36, 12, .3);

  --lite: #ff6a2b; --lite-2: #ffa23c; --tick-off: rgba(42, 24, 13, .2);
  --hl-a: #2a180d; --hl-b: #d9531a;
  --m1: #fff1d9; --m2: #d9b283; --m3: #fffaf0; --m4: #c39a68; --spec: rgba(255, 250, 238, .95);
  --f-sans: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: only light;
}
:root[data-theme="choco"] body {
  background: radial-gradient(1100px 700px at 12% -8%, #e4c8a2, transparent 62%), radial-gradient(900px 600px at 105% 38%, #c79e76, transparent 60%), radial-gradient(1000px 700px at 18% 112%, #6c4729, transparent 62%), #9a7350;
  background-attachment: fixed;
}
/* the background: only shades of one colour, moving slowly */
:root[data-theme="choco"] .bg i {
  background: radial-gradient(38% 30% at 72% 14%, rgba(248, 228, 198, .85), transparent 70%), radial-gradient(34% 26% at 16% 78%, rgba(246, 226, 196, .5), transparent 70%);
  -webkit-mask-image: none; mask-image: none; filter: blur(24px); animation: chocoDriftA 26s ease-in-out infinite alternate;
}
:root[data-theme="choco"] .bg b {
  background: radial-gradient(30% 24% at 88% 72%, rgba(118, 76, 40, .55), transparent 70%), radial-gradient(26% 20% at 6% 30%, rgba(236, 208, 170, .5), transparent 70%);
  -webkit-mask-image: none; mask-image: none; filter: blur(26px); animation: chocoDriftB 32s ease-in-out infinite alternate;
}
@keyframes chocoDriftA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
@keyframes chocoDriftB { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-4%, -3%, 0) scale(.96); } }

/* glass windows */
:root[data-theme="choco"] .card {
  position: relative; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(160deg, rgba(255, 251, 244, .76), rgba(255, 240, 220, .52));
  box-shadow: 0 1px 0 #fff inset, 0 26px 44px -26px rgba(70, 36, 12, .55), 0 2px 6px rgba(90, 50, 20, .08);
  transition: border-color .25s, box-shadow .35s, transform .45s var(--ease-pop);
}
:root[data-theme="choco"] .mini-row, :root[data-theme="choco"] .row { background: rgba(255, 252, 246, .55); border-color: rgba(255, 255, 255, .8); }
:root[data-theme="choco"] dialog { background: #fbf1e2; border-color: rgba(255, 255, 255, .85); box-shadow: 0 40px 80px -30px rgba(60, 30, 10, .65); }
:root[data-theme="choco"] dialog::backdrop { background: rgba(48, 26, 12, .45); }
:root[data-theme="choco"] .inp:focus, :root[data-theme="choco"] .fi:focus, :root[data-theme="choco"] input:focus, :root[data-theme="choco"] textarea:focus, :root[data-theme="choco"] select:focus { outline: none; border-color: #ff6a2b; box-shadow: 0 0 0 4px rgba(255, 106, 43, .22); }
:root[data-theme="choco"] .eyebrow::before { background: linear-gradient(135deg, #ff6a2b, #ffb02e); box-shadow: 0 0 8px rgba(255, 106, 43, .8); }

/* menu: milk glass, a cocoa pill glides to the open section */
:root[data-theme="choco"] .rail {
  background: rgba(255, 248, 238, .58); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 #fff inset, 0 24px 44px -20px rgba(60, 30, 10, .6);
}
:root[data-theme="choco"] .rail-ind { background: rgba(255, 255, 255, .45); border: 0; box-shadow: 0 1px 0 #fff inset; }
:root[data-theme="choco"] .rail a:hover::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 43, .22), transparent 70%); }
@media (min-width: 900px) {
  :root[data-theme="choco"] .rail a .ni { background: rgba(255, 255, 255, .6); box-shadow: 0 1px 0 #fff inset; }
  :root[data-theme="choco"] .rail a[aria-current="page"] .ni { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -8px rgba(255, 106, 43, .85); }
  :root[data-theme="choco"] .brand { border-bottom-color: rgba(110, 72, 36, .16); }
}
/* phone: the open item is a cocoa capsule with its name */
@media (max-width: 899px) {
  :root[data-theme="choco"] .rail:has(.lbl) a[aria-current="page"] { background: linear-gradient(180deg, #3d2616, #22120a); color: #fff3e3; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 22px -8px rgba(42, 24, 13, .75); }
  :root[data-theme="choco"] .rail a[aria-current="page"] svg { color: #fff3e3; filter: drop-shadow(0 0 5px rgba(255, 106, 43, .85)); }
  :root[data-theme="choco"] .rail:has(.lbl) a::after { background: linear-gradient(90deg, #ff6a2b, #ffa23c); box-shadow: 0 0 12px 2px rgba(255, 106, 43, .7); }
}

/* buttons: tangerine main, milk glass for the rest */
:root[data-theme="choco"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) {
  color: #fff; border-color: transparent; background-color: #ff6a2b; background-image: linear-gradient(135deg, #ff6a2b, #ffa23c);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(180, 60, 10, .28) inset, 0 16px 28px -12px rgba(255, 106, 43, .8);
  text-shadow: 0 1px 0 rgba(160, 50, 10, .35);
}
:root[data-theme="choco"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover {
  background-image: linear-gradient(135deg, #ff7a3d, #ffb04c); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(180, 60, 10, .28) inset, 0 20px 32px -12px rgba(255, 106, 43, .9);
}
:root[data-theme="choco"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):not(.small)::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 34%; left: -60%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: chocoSheen 5s ease-in-out infinite;
}
@keyframes chocoSheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
:root[data-theme="choco"] .btn.ghost { background: rgba(255, 252, 246, .62); border-color: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 10px 20px -14px rgba(90, 50, 20, .55), 0 1px 0 #fff inset; }
:root[data-theme="choco"] .btn.ghost:hover { background: rgba(255, 253, 249, .85); border-color: #fff; }
:root[data-theme="choco"] .btn.quiet { color: var(--muted); }
:root[data-theme="choco"] .btn.danger { background-image: linear-gradient(180deg, #d9423d, #b8231f); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 22px -12px rgba(200, 40, 30, .7); }
:root[data-theme="choco"] .btn.danger-ghost { background: rgba(255, 240, 236, .75); border: 1px solid rgba(184, 35, 31, .4); }
:root[data-theme="choco"] .icon-btn { background: rgba(255, 252, 246, .62); border-color: rgba(255, 255, 255, .9); }
:root[data-theme="choco"] .chip.on, :root[data-theme="choco"] .seg button[aria-pressed="true"], :root[data-theme="choco"] .seg button.on { background: linear-gradient(180deg, #3d2616, #22120a); border-color: transparent; color: #fff3e3; }
.choco-rp { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .55); pointer-events: none; animation: chocoRp .65s ease-out forwards; z-index: 0; }
@keyframes chocoRp { to { transform: scale(1); opacity: 0; } }

/* the 3D dial in warm brass and milk */
:root[data-theme="choco"] .dial3d.lvl-low { --dg: #d4332f; }
:root[data-theme="choco"] .dial3d.lvl-high { --dg: #0e9c7e; }
:root[data-theme="choco"] .d-knob { background: radial-gradient(circle at calc(34% + var(--tx, 0) * 14%) calc(22% + var(--ty, 0) * 14%), #fffaf0, #f4e1c0 52%, #dcb989); box-shadow: 0 14px 26px -12px rgba(110, 60, 20, .6), 0 1px 0 #fff inset, 0 0 0 1px rgba(110, 72, 36, .18), 0 0 34px -6px color-mix(in srgb, var(--dg) 55%, transparent); background-color: #f4e1c0; }
:root[data-theme="choco"] .d-pct { color: #2a180d; text-shadow: none; }
:root[data-theme="choco"] .d-pct small, :root[data-theme="choco"] .d-label { color: #583f2d; }
:root[data-theme="choco"] .d-count { color: #6d5139; }
:root[data-theme="choco"] .d-plate { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(110, 72, 36, .22), 0 26px 48px -22px rgba(110, 60, 20, .7); }
:root[data-theme="choco"] .bz-ring, :root[data-theme="choco"] .bz-tooth, :root[data-theme="choco"] .in-ring, :root[data-theme="choco"] .in-tick, :root[data-theme="choco"] .d-track { stroke: rgba(70, 40, 18, .4); }
:root[data-theme="choco"] .bz-notch, :root[data-theme="choco"] .in-tick.long { stroke: rgba(70, 40, 18, .85); }
:root[data-theme="choco"] .d-track { stroke: rgba(70, 40, 18, .18); }

/* Frisk and small bits */
:root[data-theme="choco"] .as-msg.u .as-bubble { background-color: #d9531a; }
.sw-choco { background: #9a7350; } .sw-choco i { background: #f8ecdb; } .sw-choco i:first-child { background: #ff6a2b; }
:root[data-theme="choco"] .toast { background: #2a180d; color: #fff3e3; }

/* ---- sign-in in the same room: chocolate and milk behind a milky glass card ---- */
:root[data-theme="choco"] .auth-page {
  --bg: #9a7350; --surface: #f8ecdb; --surface-2: #efdcc2; --field: rgba(255, 255, 255, .6);
  --line: rgba(110, 72, 36, .22); --line-strong: rgba(110, 72, 36, .38);
  --ink: #2a180d; --muted: #583f2d; --faint: #62472f; --on-ink: #fff3e3; --accent: #ff6a2b;
  --ok: #0a7d63; --ok-soft: rgba(10, 125, 99, .14); --danger: #b8231f;
  background: #9a7350;
}
:root[data-theme="choco"] .auth-bg { background: radial-gradient(900px 640px at 80% 18%, #e0c39d, transparent 66%), radial-gradient(760px 540px at 4% 96%, #6c4729, transparent 68%), radial-gradient(700px 500px at 40% 58%, #c79e76, transparent 70%); }
:root[data-theme="choco"] .auth-bg::before { background: radial-gradient(circle, rgba(248, 228, 198, .6), transparent 68%); }
:root[data-theme="choco"] .auth-bg::after { background: radial-gradient(circle, rgba(118, 76, 40, .45), transparent 68%); }
:root[data-theme="choco"] .auth-bg .ln { display: none; }
:root[data-theme="choco"] .auth-card, :root[data-theme="choco"] .auth-page.lit .auth-card {
  background: linear-gradient(160deg, rgba(255, 252, 246, .7), rgba(255, 238, 214, .38));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1.5px 0 #fff inset, 0 44px 80px -30px rgba(70, 36, 12, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
:root[data-theme="choco"] .auth-forms::before { background: linear-gradient(118deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .12) 28%, transparent 46%); }
:root[data-theme="choco"] .auth-logo { filter: drop-shadow(0 8px 14px rgba(70, 36, 12, .45)); box-shadow: none; }
:root[data-theme="choco"] .auth-head h1 { color: var(--ink); }
:root[data-theme="choco"] .auth-in.inp, :root[data-theme="choco"] .otp input { background: rgba(255, 255, 255, .62); border-color: rgba(110, 72, 36, .26); color: var(--ink); box-shadow: 0 1px 0 #fff inset; caret-color: #ff6a2b; }
:root[data-theme="choco"] .auth-in.inp:focus, :root[data-theme="choco"] .otp input:focus { border-color: #ff6a2b; box-shadow: 0 0 0 4px rgba(255, 106, 43, .22), 0 0 24px -6px rgba(255, 106, 43, .5); }
:root[data-theme="choco"] .otp input.filled { background: rgba(255, 255, 255, .85); border-color: rgba(110, 72, 36, .4); }
:root[data-theme="choco"] .auth-tabs { background: rgba(255, 255, 255, .5); border-color: rgba(110, 72, 36, .18); }
:root[data-theme="choco"] .auth-tabs i { background: linear-gradient(135deg, #ff6a2b, #ffa23c); }
:root[data-theme="choco"] .auth-tabs button { color: var(--muted); }
:root[data-theme="choco"] .auth-tabs button[aria-selected="true"] { color: #fff; }
:root[data-theme="choco"] .auth-or::before, :root[data-theme="choco"] .auth-or::after { background: rgba(110, 72, 36, .22); }
:root[data-theme="choco"] .auth-alt { color: var(--ink); border-color: rgba(255, 255, 255, .92); background: rgba(255, 252, 246, .6); box-shadow: inset 0 1px 0 #fff, 0 10px 20px -14px rgba(90, 50, 20, .5); }
:root[data-theme="choco"] .auth-alt:hover { background: rgba(255, 253, 249, .86); }
:root[data-theme="choco"] .auth-allways:hover { color: var(--ink); }
:root[data-theme="choco"] .auth-google { box-shadow: inset 0 1px 0 #fff, 0 18px 30px -14px rgba(70, 36, 12, .6); }
:root[data-theme="choco"] .auth-foot { border-top-color: rgba(110, 72, 36, .18); }
:root[data-theme="choco"] .auth-foot .auth-note { color: var(--muted); }
:root[data-theme="choco"] .auth-foot .auth-note .link { color: var(--ink); border-bottom-color: rgba(42, 24, 13, .45); }
:root[data-theme="choco"] .auth-hello { background-color: #e8601f; background-image: linear-gradient(145deg, #ff8a3c 0%, #ff6a2b 55%, #d9531a 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, -30px 0 60px -30px rgba(90, 40, 10, .55); }
:root[data-theme="choco"] .hello-in p { color: #fff3e3; }
:root[data-theme="choco"] .hx.h3 { background: radial-gradient(circle, rgba(150, 50, 10, .5), transparent 66%); }
:root[data-theme="choco"] .auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) { color: #fff; background-color: #ff6a2b; background-image: linear-gradient(135deg, #ff6a2b, #ffa23c); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 16px 28px -12px rgba(255, 106, 43, .85); }
:root[data-theme="choco"] .auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover { background-image: linear-gradient(135deg, #ff7a3d, #ffb04c); }
:root[data-theme="choco"] .ok-wrap.env { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .9); color: #d9531a; }
:root[data-theme="choco"] .wait-spin { border-color: rgba(110, 72, 36, .2); border-top-color: #ff6a2b; }
:root[data-theme="choco"] .auth-inapp { background: rgba(255, 154, 31, .16); border-color: rgba(217, 83, 26, .5); }
:root[data-theme="choco"] .auth-inapp strong { color: #9b3a0c; }
:root[data-theme="choco"] .auth-inapp p { color: #4a3220; }
:root[data-theme="choco"] .auth-wait h2 { color: var(--ink); }
/* the "number is coming soon" button */
.auth-alt.soon { position: relative; opacity: .9; }
.soon-badge { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; font: 700 .62rem/1.4 var(--f-sans); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(135deg, #ff4560, #ff8a4d); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); pointer-events: none; }
:root[data-theme="choco"] .soon-badge { background: linear-gradient(135deg, #ff6a2b, #ffa23c); }
@media (prefers-reduced-motion: reduce) { :root[data-theme="choco"] .bg i, :root[data-theme="choco"] .bg b, :root[data-theme="choco"] .btn::before { animation: none !important; } }

/* PIN screen in the same room */
:root[data-theme="choco"] .pin { background: radial-gradient(900px 600px at 15% -8%, #e4c8a2, transparent 62%), radial-gradient(800px 560px at 100% 100%, #6c4729, transparent 60%), #9a7350; }
:root[data-theme="choco"] .pin-box img { border-radius: 16px; border: 0; filter: drop-shadow(0 10px 16px rgba(70, 36, 12, .45)); }
:root[data-theme="choco"] .pin-dots span { border-radius: 50%; border-color: var(--ink); }
:root[data-theme="choco"] .keypad button { border-radius: 22px; border-color: rgba(255, 255, 255, .85); background: linear-gradient(160deg, rgba(255, 252, 246, .72), rgba(255, 240, 220, .42)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 #fff inset, 0 14px 24px -16px rgba(70, 36, 12, .6); transition: transform .3s var(--ease-pop), background-color .2s; }
:root[data-theme="choco"] .keypad button:active { transform: scale(.94); background: rgba(255, 253, 249, .95); }
:root[data-theme="choco"] .keypad button.ghost { background: transparent; box-shadow: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="choco"] .chip-status { background: rgba(255, 252, 246, .78); border: 1px solid rgba(10, 125, 99, .35); }
:root[data-theme="choco"] .chip-status.stale { background: rgba(255, 240, 236, .88); border-color: rgba(184, 35, 31, .4); }
:root[data-theme="choco"] .chip-status.neutral { background: rgba(255, 252, 246, .7); border-color: var(--line-strong); }

/* smoothness on phones: lighter glass and a still background save the battery and keep scrolling fluid */
@media (max-width: 899px) {
  
  :root[data-theme="choco"] .bg i, :root[data-theme="choco"] .bg b { animation: none; filter: blur(18px); }
}

/* ---- theme "light" (white): same structure as the milk theme, its own colours ---- */
:root[data-theme="light"] {
  --bg: #e4e9f2;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --field: #f6f8fd;
  --line: rgba(30,50,90, .2);
  --line-strong: rgba(30,50,90, .38);
  --grid: transparent;
  --ring: transparent;
  --glow: transparent;

  --ink: #0e1524;
  --muted: #3d4a63;
  --faint: #46546e;
  --on-ink: #ffffff;
  --accent: #3f4be0;

  --ok: #0a7d63;
  --ok-soft: rgba(10, 125, 99, .14);
  --danger: #b8231f;
  --danger-soft: rgba(184, 35, 31, .10);
  --danger-btn: #c9302a;

  --shadow: 0 1px 0 #fff inset, 0 24px 44px -26px rgba(30,45,90, .55);
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 2px rgba(30,45,90, .3);

  --lite: #4f5bff; --lite-2: #7b8cff; --tick-off: rgba(14,21,36, .2);
  --hl-a: #0e1524; --hl-b: #3f4be0;
  --m1: #ffffff; --m2: #c3cee6; --m3: #ffffff; --m4: #a9b8d8; --spec: rgba(255,255,255, .95);
  --f-sans: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: only light;
}
:root[data-theme="light"] body {
  background: radial-gradient(1100px 700px at 12% -8%, #f7f9ff, transparent 62%), radial-gradient(900px 600px at 105% 38%, #c9d4ea, transparent 60%), radial-gradient(1000px 700px at 18% 112%, #9aaace, transparent 62%), #e4e9f2;
  background-attachment: fixed;
}
:root[data-theme="light"] .bg i {
  background: radial-gradient(38% 30% at 72% 14%, rgba(255,255,255, .85), transparent 70%), radial-gradient(34% 26% at 16% 78%, rgba(250,252,255, .5), transparent 70%);
  -webkit-mask-image: none; mask-image: none; filter: blur(24px); animation: chocoDriftA 26s ease-in-out infinite alternate;
}
:root[data-theme="light"] .bg b {
  background: radial-gradient(30% 24% at 88% 72%, rgba(150,166,205, .55), transparent 70%), radial-gradient(26% 20% at 6% 30%, rgba(214,223,242, .5), transparent 70%);
  -webkit-mask-image: none; mask-image: none; filter: blur(26px); animation: chocoDriftB 32s ease-in-out infinite alternate;
}
:root[data-theme="light"] .card {
  position: relative; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(160deg, rgba(255,255,255, .76), rgba(243,247,255, .52));
  box-shadow: 0 1px 0 #fff inset, 0 26px 44px -26px rgba(30,45,90, .55), 0 2px 6px rgba(40,55,100, .08);
  transition: border-color .25s, box-shadow .35s, transform .45s var(--ease-pop);
}
:root[data-theme="light"] .mini-row, :root[data-theme="light"] .row { background: rgba(255,255,255, .55); border-color: rgba(255, 255, 255, .8); }
:root[data-theme="light"] dialog { background: #ffffff; border-color: rgba(255, 255, 255, .85); box-shadow: 0 40px 80px -30px rgba(20,30,70, .65); }
:root[data-theme="light"] dialog::backdrop { background: rgba(15,25,50, .45); }
:root[data-theme="light"] .inp:focus, :root[data-theme="light"] .fi:focus, :root[data-theme="light"] input:focus, :root[data-theme="light"] textarea:focus, :root[data-theme="light"] select:focus { outline: none; border-color: #4f5bff; box-shadow: 0 0 0 4px rgba(79,91,255, .22); }
:root[data-theme="light"] .eyebrow::before { background: linear-gradient(135deg, #4f5bff, #8a9bff); box-shadow: 0 0 8px rgba(79,91,255, .8); }
:root[data-theme="light"] .rail {
  background: rgba(255,255,255, .58); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 #fff inset, 0 24px 44px -20px rgba(20,30,70, .6);
}
:root[data-theme="light"] .rail-ind { background: rgba(255, 255, 255, .45); border: 0; box-shadow: 0 1px 0 #fff inset; }
:root[data-theme="light"] .rail a:hover::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(79,91,255, .22), transparent 70%); }
@media (min-width: 900px) {
:root[data-theme="light"] .rail a .ni { background: rgba(255, 255, 255, .6); box-shadow: 0 1px 0 #fff inset; }
:root[data-theme="light"] .rail a[aria-current="page"] .ni { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -8px rgba(79,91,255, .85); }
:root[data-theme="light"] .brand { border-bottom-color: rgba(30,50,90, .16); }
}
@media (max-width: 899px) {
:root[data-theme="light"] .rail:has(.lbl) a[aria-current="page"] { background: linear-gradient(180deg, #2a3552, #10182b); color: #ffffff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 22px -8px rgba(14,21,36, .75); }
:root[data-theme="light"] .rail a[aria-current="page"] svg { color: #ffffff; filter: drop-shadow(0 0 5px rgba(79,91,255, .85)); }
:root[data-theme="light"] .rail:has(.lbl) a::after { background: linear-gradient(90deg, #4f5bff, #7b8cff); box-shadow: 0 0 12px 2px rgba(79,91,255, .7); }
}
:root[data-theme="light"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) {
  color: #fff; border-color: transparent; background-color: #4f5bff; background-image: linear-gradient(135deg, #4f5bff, #7b8cff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(30,40,170, .28) inset, 0 16px 28px -12px rgba(79,91,255, .8);
  text-shadow: 0 1px 0 rgba(30,40,140, .35);
}
:root[data-theme="light"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover {
  background-image: linear-gradient(135deg, #6470ff, #8c9aff); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(30,40,170, .28) inset, 0 20px 32px -12px rgba(79,91,255, .9);
}
:root[data-theme="light"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):not(.small)::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 34%; left: -60%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: chocoSheen 5s ease-in-out infinite;
}
:root[data-theme="light"] .btn.ghost { background: rgba(255,255,255, .62); border-color: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 10px 20px -14px rgba(40,55,100, .55), 0 1px 0 #fff inset; }
:root[data-theme="light"] .btn.ghost:hover { background: rgba(255,255,255, .85); border-color: #fff; }
:root[data-theme="light"] .btn.quiet { color: var(--muted); }
:root[data-theme="light"] .btn.danger { background-image: linear-gradient(180deg, #d9423d, #b8231f); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 22px -12px rgba(200, 40, 30, .7); }
:root[data-theme="light"] .btn.danger-ghost { background: rgba(255, 240, 236, .75); border: 1px solid rgba(184, 35, 31, .4); }
:root[data-theme="light"] .icon-btn { background: rgba(255,255,255, .62); border-color: rgba(255, 255, 255, .9); }
:root[data-theme="light"] .chip.on, :root[data-theme="light"] .seg button[aria-pressed="true"], :root[data-theme="light"] .seg button.on { background: linear-gradient(180deg, #2a3552, #10182b); border-color: transparent; color: #ffffff; }
:root[data-theme="light"] .dial3d.lvl-low { --dg: #d4332f; }
:root[data-theme="light"] .dial3d.lvl-high { --dg: #0e9c7e; }
:root[data-theme="light"] .d-knob { background: radial-gradient(circle at calc(34% + var(--tx, 0) * 14%) calc(22% + var(--ty, 0) * 14%), #ffffff, #e6ecf8 52%, #bfcbe6); box-shadow: 0 14px 26px -12px rgba(50,70,120, .6), 0 1px 0 #fff inset, 0 0 0 1px rgba(30,50,90, .18), 0 0 34px -6px color-mix(in srgb, var(--dg) 55%, transparent); background-color: #e6ecf8; }
:root[data-theme="light"] .d-pct { color: #0e1524; text-shadow: none; }
:root[data-theme="light"] .d-pct small, :root[data-theme="light"] .d-label { color: #3d4a63; }
:root[data-theme="light"] .d-count { color: #55637e; }
:root[data-theme="light"] .d-plate { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(30,50,90, .22), 0 26px 48px -22px rgba(50,70,120, .7); }
:root[data-theme="light"] .bz-ring, :root[data-theme="light"] .bz-tooth, :root[data-theme="light"] .in-ring, :root[data-theme="light"] .in-tick, :root[data-theme="light"] .d-track { stroke: rgba(20,35,70, .4); }
:root[data-theme="light"] .bz-notch, :root[data-theme="light"] .in-tick.long { stroke: rgba(20,35,70, .85); }
:root[data-theme="light"] .d-track { stroke: rgba(20,35,70, .18); }
:root[data-theme="light"] .as-msg.u .as-bubble { background-color: #3f4be0; }
.sw-light { background: #e4e9f2; }
.sw-light i { background: #ffffff; }
.sw-light i:first-child { background: #4f5bff; }
:root[data-theme="light"] .toast { background: #0e1524; color: #ffffff; }
:root[data-theme="light"] .auth-page {
  --bg: #e4e9f2; --surface: #ffffff; --surface-2: #eef2fa; --field: rgba(255, 255, 255, .6);
  --line: rgba(30,50,90, .22); --line-strong: rgba(30,50,90, .38);
  --ink: #0e1524; --muted: #3d4a63; --faint: #46546e; --on-ink: #ffffff; --accent: #4f5bff;
  --ok: #0a7d63; --ok-soft: rgba(10, 125, 99, .14); --danger: #b8231f;
  background: #e4e9f2;
}
:root[data-theme="light"] .auth-bg { background: radial-gradient(900px 640px at 80% 18%, #f0f4fc, transparent 66%), radial-gradient(760px 540px at 4% 96%, #9aaace, transparent 68%), radial-gradient(700px 500px at 40% 58%, #c9d4ea, transparent 70%); }
:root[data-theme="light"] .auth-bg::before { background: radial-gradient(circle, rgba(255,255,255, .6), transparent 68%); }
:root[data-theme="light"] .auth-bg::after { background: radial-gradient(circle, rgba(150,166,205, .45), transparent 68%); }
:root[data-theme="light"] .auth-bg .ln { display: none; }
:root[data-theme="light"] .auth-card, :root[data-theme="light"] .auth-page.lit .auth-card {
  background: linear-gradient(160deg, rgba(255,255,255, .7), rgba(240,245,255, .38));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1.5px 0 #fff inset, 0 44px 80px -30px rgba(30,45,90, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
:root[data-theme="light"] .auth-forms::before { background: linear-gradient(118deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .12) 28%, transparent 46%); }
:root[data-theme="light"] .auth-logo { filter: drop-shadow(0 8px 14px rgba(30,45,90, .45)); box-shadow: none; }
:root[data-theme="light"] .auth-head h1 { color: var(--ink); }
:root[data-theme="light"] .auth-in.inp, :root[data-theme="light"] .otp input { background: rgba(255, 255, 255, .62); border-color: rgba(30,50,90, .26); color: var(--ink); box-shadow: 0 1px 0 #fff inset; caret-color: #4f5bff; }
:root[data-theme="light"] .auth-in.inp:focus, :root[data-theme="light"] .otp input:focus { border-color: #4f5bff; box-shadow: 0 0 0 4px rgba(79,91,255, .22), 0 0 24px -6px rgba(79,91,255, .5); }
:root[data-theme="light"] .otp input.filled { background: rgba(255, 255, 255, .85); border-color: rgba(30,50,90, .4); }
:root[data-theme="light"] .auth-tabs { background: rgba(255, 255, 255, .5); border-color: rgba(30,50,90, .18); }
:root[data-theme="light"] .auth-tabs i { background: linear-gradient(135deg, #4f5bff, #7b8cff); }
:root[data-theme="light"] .auth-tabs button { color: var(--muted); }
:root[data-theme="light"] .auth-tabs button[aria-selected="true"] { color: #fff; }
:root[data-theme="light"] .auth-or::before, :root[data-theme="light"] .auth-or::after { background: rgba(30,50,90, .22); }
:root[data-theme="light"] .auth-alt { color: var(--ink); border-color: rgba(255, 255, 255, .92); background: rgba(255,255,255, .6); box-shadow: inset 0 1px 0 #fff, 0 10px 20px -14px rgba(40,55,100, .5); }
:root[data-theme="light"] .auth-alt:hover { background: rgba(255,255,255, .86); }
:root[data-theme="light"] .auth-allways:hover { color: var(--ink); }
:root[data-theme="light"] .auth-google { box-shadow: inset 0 1px 0 #fff, 0 18px 30px -14px rgba(30,45,90, .6); }
:root[data-theme="light"] .auth-foot { border-top-color: rgba(30,50,90, .18); }
:root[data-theme="light"] .auth-foot .auth-note { color: var(--muted); }
:root[data-theme="light"] .auth-foot .auth-note .link { color: var(--ink); border-bottom-color: rgba(14,21,36, .45); }
:root[data-theme="light"] .auth-hello { background-color: #4350e6; background-image: linear-gradient(145deg, #6a79ff 0%, #4f5bff 55%, #3f4be0 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, -30px 0 60px -30px rgba(30,35,120, .55); }
:root[data-theme="light"] .hello-in p { color: #ffffff; }
:root[data-theme="light"] .hx.h3 { background: radial-gradient(circle, rgba(40,50,160, .5), transparent 66%); }
:root[data-theme="light"] .auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) { color: #fff; background-color: #4f5bff; background-image: linear-gradient(135deg, #4f5bff, #7b8cff); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 16px 28px -12px rgba(79,91,255, .85); }
:root[data-theme="light"] .auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover { background-image: linear-gradient(135deg, #6470ff, #8c9aff); }
:root[data-theme="light"] .ok-wrap.env { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .9); color: #3f4be0; }
:root[data-theme="light"] .wait-spin { border-color: rgba(30,50,90, .2); border-top-color: #4f5bff; }
:root[data-theme="light"] .auth-inapp { background: rgba(120,130,255, .16); border-color: rgba(63,75,224, .5); }
:root[data-theme="light"] .auth-inapp strong { color: #2c378f; }
:root[data-theme="light"] .auth-inapp p { color: #26324a; }
:root[data-theme="light"] .auth-wait h2 { color: var(--ink); }
:root[data-theme="light"] .soon-badge { background: linear-gradient(135deg, #4f5bff, #7b8cff); }
@media (prefers-reduced-motion: reduce) {
:root[data-theme="light"] .bg i, :root[data-theme="light"] .bg b, :root[data-theme="light"] .btn::before { animation: none !important; }
}
:root[data-theme="light"] .pin { background: radial-gradient(900px 600px at 15% -8%, #f7f9ff, transparent 62%), radial-gradient(800px 560px at 100% 100%, #9aaace, transparent 60%), #e4e9f2; }
:root[data-theme="light"] .pin-box img { border-radius: 16px; border: 0; filter: drop-shadow(0 10px 16px rgba(30,45,90, .45)); }
:root[data-theme="light"] .pin-dots span { border-radius: 50%; border-color: var(--ink); }
:root[data-theme="light"] .keypad button { border-radius: 22px; border-color: rgba(255, 255, 255, .85); background: linear-gradient(160deg, rgba(255,255,255, .72), rgba(243,247,255, .42)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 #fff inset, 0 14px 24px -16px rgba(30,45,90, .6); transition: transform .3s var(--ease-pop), background-color .2s; }
:root[data-theme="light"] .keypad button:active { transform: scale(.94); background: rgba(255,255,255, .95); }
:root[data-theme="light"] .keypad button.ghost { background: transparent; box-shadow: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="light"] .chip-status { background: rgba(255,255,255, .78); border: 1px solid rgba(10, 125, 99, .35); }
:root[data-theme="light"] .chip-status.stale { background: rgba(255, 240, 236, .88); border-color: rgba(184, 35, 31, .4); }
:root[data-theme="light"] .chip-status.neutral { background: rgba(255,255,255, .7); border-color: var(--line-strong); }
@media (max-width: 899px) {

:root[data-theme="light"] .bg i, :root[data-theme="light"] .bg b { animation: none; filter: blur(18px); }
}

/* ---- theme "green" (green): same structure as the milk theme, its own colours ---- */
:root[data-theme="green"] {
  --bg: #5aa88c;
  --surface: #f1faf5;
  --surface-2: #dff0e7;
  --field: #f5fbf8;
  --line: rgba(20,80,60, .2);
  --line-strong: rgba(20,80,60, .38);
  --grid: transparent;
  --ring: transparent;
  --glow: transparent;

  --ink: #0e2a21;
  --muted: #2c5446;
  --faint: #33594b;
  --on-ink: #f4fff9;
  --accent: #c0265f;

  --ok: #0a7d63;
  --ok-soft: rgba(10, 125, 99, .14);
  --danger: #b8231f;
  --danger-soft: rgba(184, 35, 31, .10);
  --danger-btn: #c9302a;

  --shadow: 0 1px 0 #fff inset, 0 24px 44px -26px rgba(8,45,34, .55);
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 2px rgba(8,45,34, .3);

  --lite: #e8317a; --lite-2: #ff6fa5; --tick-off: rgba(10,35,28, .2);
  --hl-a: #0e2a21; --hl-b: #c0265f;
  --m1: #f6fffb; --m2: #9fceb9; --m3: #f6fffb; --m4: #7fb89f; --spec: rgba(244,255,249, .95);
  --f-sans: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: only light;
}
:root[data-theme="green"] body {
  background: radial-gradient(1100px 700px at 12% -8%, #c4ead7, transparent 62%), radial-gradient(900px 600px at 105% 38%, #86c8ae, transparent 60%), radial-gradient(1000px 700px at 18% 112%, #2f7a63, transparent 62%), #5aa88c;
  background-attachment: fixed;
}
:root[data-theme="green"] .bg i {
  background: radial-gradient(38% 30% at 72% 14%, rgba(214,244,230, .85), transparent 70%), radial-gradient(34% 26% at 16% 78%, rgba(210,242,227, .5), transparent 70%);
  -webkit-mask-image: none; mask-image: none; filter: blur(24px); animation: chocoDriftA 26s ease-in-out infinite alternate;
}
:root[data-theme="green"] .bg b {
  background: radial-gradient(30% 24% at 88% 72%, rgba(30,110,86, .55), transparent 70%), radial-gradient(26% 20% at 6% 30%, rgba(180,226,205, .5), transparent 70%);
  -webkit-mask-image: none; mask-image: none; filter: blur(26px); animation: chocoDriftB 32s ease-in-out infinite alternate;
}
:root[data-theme="green"] .card {
  position: relative; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(160deg, rgba(244,255,249, .76), rgba(222,245,234, .52));
  box-shadow: 0 1px 0 #fff inset, 0 26px 44px -26px rgba(8,45,34, .55), 0 2px 6px rgba(15,70,54, .08);
  transition: border-color .25s, box-shadow .35s, transform .45s var(--ease-pop);
}
:root[data-theme="green"] .mini-row, :root[data-theme="green"] .row { background: rgba(246,255,250, .55); border-color: rgba(255, 255, 255, .8); }
:root[data-theme="green"] dialog { background: #f4fbf7; border-color: rgba(255, 255, 255, .85); box-shadow: 0 40px 80px -30px rgba(5,38,28, .65); }
:root[data-theme="green"] dialog::backdrop { background: rgba(6,30,24, .45); }
:root[data-theme="green"] .inp:focus, :root[data-theme="green"] .fi:focus, :root[data-theme="green"] input:focus, :root[data-theme="green"] textarea:focus, :root[data-theme="green"] select:focus { outline: none; border-color: #e8317a; box-shadow: 0 0 0 4px rgba(232, 49, 122, .22); }
:root[data-theme="green"] .eyebrow::before { background: linear-gradient(135deg, #e8317a, #ff8cb8); box-shadow: 0 0 8px rgba(232, 49, 122, .8); }
:root[data-theme="green"] .rail {
  background: rgba(240,252,246, .58); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 #fff inset, 0 24px 44px -20px rgba(5,38,28, .6);
}
:root[data-theme="green"] .rail-ind { background: rgba(255, 255, 255, .45); border: 0; box-shadow: 0 1px 0 #fff inset; }
:root[data-theme="green"] .rail a:hover::before { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 49, 122, .22), transparent 70%); }
@media (min-width: 900px) {
:root[data-theme="green"] .rail a .ni { background: rgba(255, 255, 255, .6); box-shadow: 0 1px 0 #fff inset; }
:root[data-theme="green"] .rail a[aria-current="page"] .ni { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -8px rgba(232, 49, 122, .85); }
:root[data-theme="green"] .brand { border-bottom-color: rgba(20,80,60, .16); }
}
@media (max-width: 899px) {
:root[data-theme="green"] .rail:has(.lbl) a[aria-current="page"] { background: linear-gradient(180deg, #17503f, #0b2e24); color: #f4fff9; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 22px -8px rgba(10,35,28, .75); }
:root[data-theme="green"] .rail a[aria-current="page"] svg { color: #f4fff9; filter: drop-shadow(0 0 5px rgba(232, 49, 122, .85)); }
:root[data-theme="green"] .rail:has(.lbl) a::after { background: linear-gradient(90deg, #e8317a, #ff6fa5); box-shadow: 0 0 12px 2px rgba(232, 49, 122, .7); }
}
:root[data-theme="green"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) {
  color: #fff; border-color: transparent; background-color: #e8317a; background-image: linear-gradient(135deg, #e8317a, #ff6fa5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(150, 20, 70, .28) inset, 0 16px 28px -12px rgba(232, 49, 122, .8);
  text-shadow: 0 1px 0 rgba(120, 15, 60, .35);
}
:root[data-theme="green"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover {
  background-image: linear-gradient(135deg, #f2478a, #ff85b2); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(150, 20, 70, .28) inset, 0 20px 32px -12px rgba(232, 49, 122, .9);
}
:root[data-theme="green"] .btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):not(.small)::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 34%; left: -60%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: chocoSheen 5s ease-in-out infinite;
}
:root[data-theme="green"] .btn.ghost { background: rgba(246,255,250, .62); border-color: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 10px 20px -14px rgba(15,70,54, .55), 0 1px 0 #fff inset; }
:root[data-theme="green"] .btn.ghost:hover { background: rgba(250,255,252, .85); border-color: #fff; }
:root[data-theme="green"] .btn.quiet { color: var(--muted); }
:root[data-theme="green"] .btn.danger { background-image: linear-gradient(180deg, #d9423d, #b8231f); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 22px -12px rgba(200, 40, 30, .7); }
:root[data-theme="green"] .btn.danger-ghost { background: rgba(255, 240, 236, .75); border: 1px solid rgba(184, 35, 31, .4); }
:root[data-theme="green"] .icon-btn { background: rgba(246,255,250, .62); border-color: rgba(255, 255, 255, .9); }
:root[data-theme="green"] .chip.on, :root[data-theme="green"] .seg button[aria-pressed="true"], :root[data-theme="green"] .seg button.on { background: linear-gradient(180deg, #17503f, #0b2e24); border-color: transparent; color: #f4fff9; }
:root[data-theme="green"] .dial3d.lvl-low { --dg: #d4332f; }
:root[data-theme="green"] .dial3d.lvl-high { --dg: #0e9c7e; }
:root[data-theme="green"] .d-knob { background: radial-gradient(circle at calc(34% + var(--tx, 0) * 14%) calc(22% + var(--ty, 0) * 14%), #f6fffb, #d8efe4 52%, #9fceb9); box-shadow: 0 14px 26px -12px rgba(20,90,70, .6), 0 1px 0 #fff inset, 0 0 0 1px rgba(20,80,60, .18), 0 0 34px -6px color-mix(in srgb, var(--dg) 55%, transparent); background-color: #d8efe4; }
:root[data-theme="green"] .d-pct { color: #0e2a21; text-shadow: none; }
:root[data-theme="green"] .d-pct small, :root[data-theme="green"] .d-label { color: #2c5446; }
:root[data-theme="green"] .d-count { color: #3f6a5a; }
:root[data-theme="green"] .d-plate { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(20,80,60, .22), 0 26px 48px -22px rgba(20,90,70, .7); }
:root[data-theme="green"] .bz-ring, :root[data-theme="green"] .bz-tooth, :root[data-theme="green"] .in-ring, :root[data-theme="green"] .in-tick, :root[data-theme="green"] .d-track { stroke: rgba(10,50,38, .4); }
:root[data-theme="green"] .bz-notch, :root[data-theme="green"] .in-tick.long { stroke: rgba(10,50,38, .85); }
:root[data-theme="green"] .d-track { stroke: rgba(10,50,38, .18); }
:root[data-theme="green"] .as-msg.u .as-bubble { background-color: #c0265f; }
.sw-green { background: #5aa88c; }
.sw-green i { background: #f1faf5; }
.sw-green i:first-child { background: #e8317a; }
:root[data-theme="green"] .toast { background: #0e2a21; color: #f4fff9; }
:root[data-theme="green"] .auth-page {
  --bg: #5aa88c; --surface: #f1faf5; --surface-2: #dff0e7; --field: rgba(255, 255, 255, .6);
  --line: rgba(20,80,60, .22); --line-strong: rgba(20,80,60, .38);
  --ink: #0e2a21; --muted: #2c5446; --faint: #33594b; --on-ink: #f4fff9; --accent: #e8317a;
  --ok: #0a7d63; --ok-soft: rgba(10, 125, 99, .14); --danger: #b8231f;
  background: #5aa88c;
}
:root[data-theme="green"] .auth-bg { background: radial-gradient(900px 640px at 80% 18%, #c4ead7, transparent 66%), radial-gradient(760px 540px at 4% 96%, #2f7a63, transparent 68%), radial-gradient(700px 500px at 40% 58%, #86c8ae, transparent 70%); }
:root[data-theme="green"] .auth-bg::before { background: radial-gradient(circle, rgba(214,244,230, .6), transparent 68%); }
:root[data-theme="green"] .auth-bg::after { background: radial-gradient(circle, rgba(30,110,86, .45), transparent 68%); }
:root[data-theme="green"] .auth-bg .ln { display: none; }
:root[data-theme="green"] .auth-card, :root[data-theme="green"] .auth-page.lit .auth-card {
  background: linear-gradient(160deg, rgba(246,255,250, .7), rgba(218,243,231, .38));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1.5px 0 #fff inset, 0 44px 80px -30px rgba(8,45,34, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
:root[data-theme="green"] .auth-forms::before { background: linear-gradient(118deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .12) 28%, transparent 46%); }
:root[data-theme="green"] .auth-logo { filter: drop-shadow(0 8px 14px rgba(8,45,34, .45)); box-shadow: none; }
:root[data-theme="green"] .auth-head h1 { color: var(--ink); }
:root[data-theme="green"] .auth-in.inp, :root[data-theme="green"] .otp input { background: rgba(255, 255, 255, .62); border-color: rgba(20,80,60, .26); color: var(--ink); box-shadow: 0 1px 0 #fff inset; caret-color: #e8317a; }
:root[data-theme="green"] .auth-in.inp:focus, :root[data-theme="green"] .otp input:focus { border-color: #e8317a; box-shadow: 0 0 0 4px rgba(232, 49, 122, .22), 0 0 24px -6px rgba(232, 49, 122, .5); }
:root[data-theme="green"] .otp input.filled { background: rgba(255, 255, 255, .85); border-color: rgba(20,80,60, .4); }
:root[data-theme="green"] .auth-tabs { background: rgba(255, 255, 255, .5); border-color: rgba(20,80,60, .18); }
:root[data-theme="green"] .auth-tabs i { background: linear-gradient(135deg, #e8317a, #ff6fa5); }
:root[data-theme="green"] .auth-tabs button { color: var(--muted); }
:root[data-theme="green"] .auth-tabs button[aria-selected="true"] { color: #fff; }
:root[data-theme="green"] .auth-or::before, :root[data-theme="green"] .auth-or::after { background: rgba(20,80,60, .22); }
:root[data-theme="green"] .auth-alt { color: var(--ink); border-color: rgba(255, 255, 255, .92); background: rgba(246,255,250, .6); box-shadow: inset 0 1px 0 #fff, 0 10px 20px -14px rgba(15,70,54, .5); }
:root[data-theme="green"] .auth-alt:hover { background: rgba(250,255,252, .86); }
:root[data-theme="green"] .auth-allways:hover { color: var(--ink); }
:root[data-theme="green"] .auth-google { box-shadow: inset 0 1px 0 #fff, 0 18px 30px -14px rgba(8,45,34, .6); }
:root[data-theme="green"] .auth-foot { border-top-color: rgba(20,80,60, .18); }
:root[data-theme="green"] .auth-foot .auth-note { color: var(--muted); }
:root[data-theme="green"] .auth-foot .auth-note .link { color: var(--ink); border-bottom-color: rgba(10,35,28, .45); }
:root[data-theme="green"] .auth-hello { background-color: #d62a6e; background-image: linear-gradient(145deg, #ef4a86 0%, #e8317a 55%, #c0265f 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, -30px 0 60px -30px rgba(80, 10, 45, .55); }
:root[data-theme="green"] .hello-in p { color: #f4fff9; }
:root[data-theme="green"] .hx.h3 { background: radial-gradient(circle, rgba(130, 20, 60, .5), transparent 66%); }
:root[data-theme="green"] .auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger) { color: #fff; background-color: #e8317a; background-image: linear-gradient(135deg, #e8317a, #ff6fa5); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 16px 28px -12px rgba(232, 49, 122, .85); }
:root[data-theme="green"] .auth-page .auth-go.btn:not(.ghost):not(.quiet):not(.soft):not(.danger-ghost):not(.danger):hover { background-image: linear-gradient(135deg, #f2478a, #ff85b2); }
:root[data-theme="green"] .ok-wrap.env { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .9); color: #c0265f; }
:root[data-theme="green"] .wait-spin { border-color: rgba(20,80,60, .2); border-top-color: #e8317a; }
:root[data-theme="green"] .auth-inapp { background: rgba(255, 150, 190, .16); border-color: rgba(192, 38, 95, .5); }
:root[data-theme="green"] .auth-inapp strong { color: #7a1442; }
:root[data-theme="green"] .auth-inapp p { color: #183a2f; }
:root[data-theme="green"] .auth-wait h2 { color: var(--ink); }
:root[data-theme="green"] .soon-badge { background: linear-gradient(135deg, #e8317a, #ff6fa5); }
@media (prefers-reduced-motion: reduce) {
:root[data-theme="green"] .bg i, :root[data-theme="green"] .bg b, :root[data-theme="green"] .btn::before { animation: none !important; }
}
:root[data-theme="green"] .pin { background: radial-gradient(900px 600px at 15% -8%, #c4ead7, transparent 62%), radial-gradient(800px 560px at 100% 100%, #2f7a63, transparent 60%), #5aa88c; }
:root[data-theme="green"] .pin-box img { border-radius: 16px; border: 0; filter: drop-shadow(0 10px 16px rgba(8,45,34, .45)); }
:root[data-theme="green"] .pin-dots span { border-radius: 50%; border-color: var(--ink); }
:root[data-theme="green"] .keypad button { border-radius: 22px; border-color: rgba(255, 255, 255, .85); background: linear-gradient(160deg, rgba(246,255,250, .72), rgba(222,245,234, .42)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 #fff inset, 0 14px 24px -16px rgba(8,45,34, .6); transition: transform .3s var(--ease-pop), background-color .2s; }
:root[data-theme="green"] .keypad button:active { transform: scale(.94); background: rgba(250,255,252, .95); }
:root[data-theme="green"] .keypad button.ghost { background: transparent; box-shadow: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="green"] .chip-status { background: rgba(246,255,250, .78); border: 1px solid rgba(10, 125, 99, .35); }
:root[data-theme="green"] .chip-status.stale { background: rgba(255, 240, 236, .88); border-color: rgba(184, 35, 31, .4); }
:root[data-theme="green"] .chip-status.neutral { background: rgba(246,255,250, .7); border-color: var(--line-strong); }
@media (max-width: 899px) {

:root[data-theme="green"] .bg i, :root[data-theme="green"] .bg b { animation: none; filter: blur(18px); }
}

/* while scrolling, the pointer glints rest: what is under a still pointer changes, its saved position is stale */
html.scrolling .row::before, html.scrolling .method::before, html.scrolling .urow::before, html.scrolling .rrow::before, html.scrolling .prow::before,
html.scrolling .btn::after, html.scrolling .rail a::before { opacity: 0 !important; transition: none !important; }

/* ======================================================================
   v28: the cabinet gets the admin's look: the whole screen width, compact centred headings, statistic tiles
   ====================================================================== */
.shell { max-width: 1680px; }
.page-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 14px; }
.page-head > div:first-child { display: grid; justify-items: center; gap: 2px; }
.page-head .eyebrow { display: none; }
.page-head h1.disp { font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.15; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .45ch; }
h1.disp .thin, h1.disp b { display: inline; }
.page-head .sub { margin: 2px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.page-head .actions { justify-content: center; }
@media (min-width: 760px) {
  .page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(max-content, 1fr); align-items: center; }
  .page-head > :first-child { grid-column: 2; }
  .page-head > .actions { grid-column: 3; justify-self: end; flex-wrap: nowrap; }
  .page-head .sub { max-width: 56ch; }
}
/* the dashboard: a low headline, the dial beside it, then the tiles */
.hero { gap: 14px; }
.hero-copy { gap: 10px; }
h1.disp.stacked { font-size: clamp(1.3rem, 3.2vw, 2.1rem); line-height: 1.15; }
.hero-copy .sub { font-size: .92rem; }
@media (min-width: 720px) { .hero { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; } .dial3d { width: min(100%, 260px); } }
.dstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .dstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dtile { display: grid; gap: 4px; align-content: start; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease-pop), box-shadow .3s; }
.dtile:hover { transform: translateY(-3px); }
.dt-l { font: 800 .74rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dt-n { font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dt-s { font-size: .84rem; font-weight: 650; color: var(--muted); }
.dtile.dt-strong { background: linear-gradient(135deg, var(--lite), var(--lite-2)); color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 26px 40px -22px var(--lite); }
.dt-strong .dt-l, .dt-strong .dt-s { color: rgba(255, 255, 255, .92); }
.dt-bad .dt-n { color: var(--danger); }
@media (min-width: 1180px) {
  .stack.dash { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .stack.dash > .hero, .stack.dash > .dstats, .stack.dash > .pchip { grid-column: 1 / -1; }
}
.dtile.dt-strong { background: linear-gradient(135deg, var(--lite), var(--lite-2)) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 26px 40px -22px var(--lite) !important; }
.dt-date .dt-n { font-size: 1.75rem; line-height: 1.4; }
.page-head > .actions { width: max-content; max-width: 100%; }
.page-head .actions .btn { flex: 0 0 auto; width: auto; }
@media (min-width: 760px) { .page-head > .btn { grid-column: 3; justify-self: end; } }

/* ======================================================================
   v29: an offer card keeps the background the administrator chose, in every theme and in the phone sheet;
   the text colours follow it, so the words are always readable
   ====================================================================== */
:root[data-theme] .card.promo, .promo-sheet .card.promo {
  background: var(--pbg, linear-gradient(160deg, #1a1040, #0d1330)); border: 1px solid rgba(138, 180, 255, .35); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 40px -18px #8a6bff, 0 24px 44px -26px rgba(0, 0, 0, .7);
}
.card.promo .promo-cover::after { background: linear-gradient(180deg, transparent 45%, var(--pend, #130f36)); }
/* a light background: dark letters and gentler effects */
:root[data-theme] .card.promo.promo-light, .promo-sheet .card.promo.promo-light {
  --ink: #141a2e; --muted: #46506b; --faint: #5d6784; --line: rgba(20, 30, 70, .14); --line-strong: rgba(20, 30, 70, .26);
  --surface: #ffffff; --surface-2: rgba(20, 30, 70, .06); --field: rgba(20, 30, 70, .05); --on-ink: #ffffff; --accent: #4f46e5; --lite: #4f46e5;
  border-color: rgba(20, 30, 70, .16); box-shadow: 0 24px 44px -26px rgba(20, 30, 70, .4);
}
.promo-light .pf dt { color: #5a4bb0; }
.promo-light .pf-prize dd { color: #141a2e; text-shadow: none; }
.promo-light .promo-text .tx-glow { color: #141a2e; text-shadow: none; }
.promo-light .promo-text .tx-ice { background-image: linear-gradient(100deg, #0a7aa8, #5a3fd6 50%, #c2307a); }
.promo-light .promo-text .tx-c-r { color: #c2182b; } .promo-light .promo-text .tx-c-g { color: #0a7d4a; } .promo-light .promo-text .tx-c-b { color: #1a58c8; } .promo-light .promo-text .tx-c-y { color: #a86b00; }
.promo-light .promo-text .tx-head { color: #5a4bb0; }
.promo-light .promo-text .tx-call { background: rgba(255, 170, 0, .12); border-color: rgba(224, 148, 0, .45); border-left-color: #e09400; }
.promo-light .promo-text .tx-call b { color: #9a6200; }
.promo-light .promo-text .tx-q { border-left-color: rgba(90, 75, 176, .6); color: #3a4268; }
.promo-light .promo-text .tx-hr { background: linear-gradient(90deg, transparent, rgba(90, 75, 176, .6), transparent); }
.promo-light .promo-text .tx-steps li::before { background: linear-gradient(145deg, #4f46e5, #7b6cf6); color: #fff; }
.card.promo.promo-light .tx-metal { background-image: linear-gradient(100deg, #323b48, #8794a6 24%, #252c37 46%, #a7b3c4 64%, #343e4c 84%, #5f6b7c); filter: none; }
.card.promo.promo-light .tx-gold { background-image: linear-gradient(100deg, #7a5100, #c98f12 28%, #5e3d00 50%, #d9a026 70%, #7a5100); }
/* the colour row in the offer form (admin) */
.bgsw { display: flex; flex-wrap: wrap; gap: 8px; }
.bgs { position: relative; min-width: 86px; height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid transparent; color: #fff; font: 700 .8rem var(--f-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 16px -10px rgba(0, 0, 0, .6); }
.bgs[title="Светлый"] { color: #141a2e; border-color: rgba(20, 30, 70, .2); }
.bgs[aria-pressed="true"] { border-color: var(--lite, #8ab4ff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lite, #8ab4ff) 35%, transparent); }
.bgs-own { background: conic-gradient(#e0264a, #ffa23c, #ffe45a, #3ddc97, #3b9bff, #8b3dff, #e0264a); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); overflow: hidden; }
.bgs-color { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---- v29b: the dashboard without holes: headline, tiles and dial share one row; the cards below flow in two columns that start at the top ---- */
.stack.dash { grid-template-columns: minmax(0, 1fr); }
.dash-top { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.dash-top .hero { display: block; padding: 0; }
.dash-top .dial3d { order: -1; justify-self: center; }
@media (min-width: 720px) {
  .dash-top { grid-template-columns: minmax(0, 1fr) 270px; }
  .dash-top .hero { grid-column: 1; grid-row: 1; }
  .dash-top .dial3d { order: 0; grid-column: 2; grid-row: 1; }
  .dash-top .dstats { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1180px) {
  .dash-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 270px; }
  .dash-top .dstats { grid-column: 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-top .dial3d { grid-column: 3; }
}
.dash-rest > * { break-inside: avoid; margin-bottom: 16px; }
@media (min-width: 1000px) { .dash-rest { columns: 2; column-gap: 16px; } }

.pcover.pc-light { color: #141a2e; border-color: rgba(20, 30, 70, .16); }
.pcover.pc-light::before { background: none; }
.pcover.pc-light .pc-type { background: rgba(20, 30, 70, .1); color: #141a2e; }
.pcover.pc-light .pc-t, .pcover.pc-light .pc-s { text-shadow: none; }
.dtile { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.dtile > span { min-width: 0; overflow-wrap: anywhere; }
.dt-date .dt-n { font-size: clamp(1.2rem, 4.6vw, 1.75rem); }
