@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Layout: one column of decision-first panels; a traffic light is the page's single accent of state. Single dark look by choice (monktage). */
:root {
  color-scheme: dark;
  --bg: #0B0C10; --surface: #15171E; --surface-2: #0F1116; --line: #262A35; --line-2: #3B4150;
  --ink: #F2F3F5; --muted: #A2A8B9; --steel: #8B93A7;
  --green: #3DDC84; --green-bg: rgba(61,220,132,.12); --red: #FF5A4E; --red-bg: rgba(255,90,78,.14); --red-panel: #1A0D0D; --red-ink: #E0B6B2;
  --amber: #F5B942; --amber-bg: rgba(245,185,66,.14); --amber-panel: #191407; --amber-ink: #E2D2A8; --grey-panel: #15171E;
  --font: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
}
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; margin: 0; }
button, input { font-family: inherit; font-size: inherit; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; }
header.top { border-bottom: 1px solid #1C1F27; padding-block: 14px; }
header.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.brand b { font-size: 16px; font-weight: 600; }
.pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); color: var(--muted); background: transparent; white-space: nowrap; }
.pill.g { background: var(--green-bg); color: var(--green); border-color: transparent; }
.pill.r { background: var(--red-bg); color: var(--red); border-color: transparent; }
.pill.a { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.pill.w { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
main { padding-block: 28px 20px; }
main .inner { display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 64ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 17px; font-weight: 600; }
.sub { font-size: 13px; color: var(--muted); }
.kpi { flex: 1 1 150px; background: var(--surface-2); border-radius: var(--r); padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; }
.label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.num { font-variant-numeric: tabular-nums; }
.big { font-size: clamp(38px, 7vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.unit { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.v20 { font-size: 20px; font-weight: 600; }
.pos { color: var(--green); } .neg { color: var(--red); }
.bar { display: flex; gap: 4px; height: 10px; }
.bar > i { display: block; height: 100%; border-radius: 999px; }
.hatch { background: repeating-linear-gradient(135deg, #3B4150 0 3px, #1D2028 3px 7px); }
.basket { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 11px 0; border-top: 1px solid #1F222B; }
.basket .who { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.basket .who i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.basket .det { flex: 1 1 220px; min-width: 0; font-size: 14px; color: var(--muted); text-align: right; }
.chip { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 10px; }
.chip.g { background: var(--green-bg); color: var(--green); } .chip.a { background: var(--amber-bg); color: var(--amber); }
.feed { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.feed div { display: flex; gap: 10px; align-items: flex-start; }
.feed .tm { color: var(--muted); min-width: 44px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.feed .dot { margin-top: 7px; }
.btn { min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; transition: transform .18s ease, opacity .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: var(--steel); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.kill { border-color: var(--red); color: var(--red); }
.btn:focus-visible, .link:focus-visible, .chipbtn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--ink); }
.field { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: border-color .2s ease; }
.field:focus-within { border-color: var(--steel); }
.field.err { border-color: var(--red); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: clamp(36px, 7vw, 54px); font-weight: 600; letter-spacing: -0.02em; padding: 6px 0; font-variant-numeric: tabular-nums; }
.chipbtn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 500; cursor: pointer; }
.chipbtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.errtext { font-size: 14px; color: #FF8A80; }
.split { display: flex; flex-wrap: wrap; min-height: 520px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.split .side { flex: 1 1 320px; min-width: 0; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; gap: 16px; box-sizing: border-box; }
.split .rest { flex: 2 1 460px; min-width: 0; padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; gap: 22px; box-sizing: border-box; }
.word { margin: 0; font-size: clamp(44px, 8vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.cond { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.cond .top { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.track { height: 6px; background: #1D2028; border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; }
.ring { position: relative; width: 18px; height: 18px; display: inline-block; flex-shrink: 0; }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; }
.ring::before { animation: ring 1.6s ease-out infinite; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 8px 0; }
td { padding: 9px 12px 9px 0; border-top: 1px solid #1F222B; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; }
details { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
summary { cursor: pointer; font-weight: 500; }
details ul { margin: 10px 0 2px; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.note { font-size: 13px; color: var(--muted); }
footer.status { border-top: 1px dashed #2A2E3A; padding-block: 12px 18px; font-size: 13px; color: var(--muted); }
footer.status .inner { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.banner { border-radius: var(--r); padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.banner.a { background: var(--amber-bg); color: var(--amber-ink); } .banner.r { background: var(--red-bg); color: var(--red-ink); }
.livebox { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.skeleton { color: var(--muted); padding-block: 60px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes grow { from { width: 0; } }
@keyframes ring { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
.anim .rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.anim .bar > i, .anim .track i { animation: grow 1s cubic-bezier(.2,.7,.2,1) both; }
@media (max-width: 560px) { .split .side, .split .rest { padding: 26px 20px; } .basket .det { text-align: left; } .card { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .anim .rise, .anim .bar > i, .anim .track i, .ring::before { animation: none !important; } .btn { transition: none; } }

/* ---------- server edition: sign-in, Walt connection, account ---------- */
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.gate { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.gate .card { width: 100%; max-width: 460px; padding: 30px 28px; gap: 16px; }
.gate h1 { font-size: clamp(30px, 6vw, 38px); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.text { width: 100%; box-sizing: border-box; min-height: 50px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s ease; }
.text:focus { border-color: var(--steel); }
.text.code { font-size: 22px; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; text-align: center; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.steps li.done::before { content: "✓"; background: var(--green-bg); color: var(--green); border-color: transparent; }
.steps li b { color: var(--ink); font-weight: 600; }
.kv { display: flex; flex-direction: column; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid #1F222B; font-size: 14px; }
.kv > div:first-child { border-top: 0; }
.kv span:first-child { color: var(--muted); }
.list { display: flex; flex-direction: column; }
.list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #1F222B; font-size: 14px; }
.list > div:first-child { border-top: 0; }
.tag { font-size: 12px; border-radius: 999px; padding: 2px 9px; background: var(--green-bg); color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #20232C; color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; max-width: min(92vw, 520px); transition: opacity .25s ease, transform .25s ease; z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.r { border-color: var(--red); color: var(--red-ink); }
.pill.btnpill { cursor: pointer; }
.muted { color: var(--muted); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); display: inline-block; animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } .toast { transition: none; } }
