:root {
  --bg: #0b1724;
  --bg-dots: #16283c;
  --bar: #0d1b2a;
  --surface: #11233a;
  --surface-2: #152a44;
  --line: #22394f;
  --text: #e6eaef;
  --muted: #8b9bb0;
  --accent: #3fd0c9;
  --on-accent: #05201f;
  --warn: #f2b84b;
  --bad: #ef6b6b;
  --good: #3fd0c9;
  --r: 6px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: radial-gradient(var(--bg-dots) 1px, transparent 1.4px) 0 0 / 16px 16px, var(--bg);
  color: var(--text); font: 15px/1.45 Onest, system-ui, sans-serif; min-height: 100vh;
  padding-bottom: calc(68px + var(--safe-b));
}
.mono { font-family: var(--mono); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(13, 27, 42, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand b { font-size: 17px; letter-spacing: -.01em; }
.brand .tag { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(63, 208, 201, .4); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.brand .tag:empty { display: none; }
.mark { width: 20px; height: 20px; flex: none; background:
  linear-gradient(var(--accent), var(--accent)) 0 0 / 4px 100% no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 0 / 80% 4px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 8px / 60% 4px no-repeat; }
.gold { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 5px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); flex: none; }
.gold span { color: var(--muted); font-size: 11px; }
.gold b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gold b.up { color: var(--good); } .gold b.down { color: var(--bad); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.live { background: var(--good); box-shadow: 0 0 0 3px rgba(63, 208, 201, .18); }
.dot.stale { background: var(--warn); }

main { max-width: 560px; margin: 0 auto; padding: 14px 16px 24px; }
.tab { display: none; }
.tab.on { display: block; }

/* нижняя панель */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(13, 27, 42, .97); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
.bar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted);
  font-size: 11px; padding: 4px 0; cursor: pointer; }
.bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar button.on { color: var(--accent); }

/* общие блоки */
.h { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 8px; }
.h:first-child { margin-top: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; line-height: 1.5; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warn { color: var(--warn); }
.big { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.mid { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); text-align: right; }
.empty { color: var(--muted); padding: 22px 14px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); font-size: 14px; }

/* кнопки и поля */
.btn { border-radius: var(--r); padding: 12px 16px; font-weight: 600; cursor: pointer; font-size: 15px; border: 1px solid var(--line);
  background: var(--surface-2); text-align: center; }
.btn.main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { background: none; }
.btn.danger { background: none; border-color: rgba(239, 107, 107, .6); color: var(--bad); }
.btn.wide { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btns.one { grid-template-columns: 1fr; }
.f { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
.f:first-child { margin-top: 0; }
.in { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; font-family: var(--mono); font-size: 15px; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 208, 201, .18); }
.in.bad { border-color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 > .f { margin-top: 10px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 4px; }
.seg button { flex: 1; background: none; border: 0; padding: 9px 6px; color: var(--muted); cursor: pointer; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.seg button.on.long { box-shadow: inset 0 -2px 0 var(--good); color: var(--good); }
.seg button.on.short { box-shadow: inset 0 -2px 0 var(--bad); color: var(--bad); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px;
  cursor: pointer; white-space: nowrap; color: var(--muted); }
.chip.on { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.chip b { font-weight: 600; color: var(--text); }
.badge { font-family: var(--mono); font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.badge.ok { color: var(--good); border-color: rgba(63, 208, 201, .5); }
.badge.bad { color: var(--bad); border-color: rgba(239, 107, 107, .5); }
.badge.warn { color: var(--warn); border-color: rgba(242, 184, 75, .5); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle i { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(18px); background: var(--on-accent); }

/* шаги чек-ина */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 10px; }
.steps button { height: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; color: var(--muted);
  font-family: var(--mono); font-size: 12px; cursor: pointer; padding: 0; }
.steps button.done { background: rgba(63, 208, 201, .14); border-color: rgba(63, 208, 201, .45); color: var(--accent); }
.steps button.cur { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kicker { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .14em; }
.card h2 { font-size: 23px; margin: 6px 0 4px; letter-spacing: -.01em; line-height: 1.15; }
.lede { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-top: 10px; background: rgba(11, 23, 36, .45); }
.box .h { margin: 0 0 8px; }
.legs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.leg { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: var(--bg); min-width: 0; }
.leg .who { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.leg .lots { font-family: var(--mono); font-size: 26px; font-weight: 600; margin: 2px 0; }
.leg .sub { font-size: 12px; color: var(--muted); }
.lv { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 14px; margin-top: 4px; }
.lv span:first-child { color: var(--muted); }
.flow { font-family: var(--mono); font-size: 13px; padding: 8px 10px; background: var(--bg); border-radius: 4px; margin-top: 6px; }
.note { font-size: 12.5px; color: var(--warn); margin-top: 8px; line-height: 1.45; }
.note.ok { color: var(--good); }
.check { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgba(63, 208, 201, .07);
  font-size: 13px; font-weight: 600; }
.mirror { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.mirror th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 500; padding: 4px 0; }
.mirror td { padding: 6px 0; border-top: 1px solid var(--line); }
.copy { background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; padding: 2px 7px;
  margin-left: 6px; cursor: pointer; font-family: var(--mono); }
.clock { text-align: center; padding: 18px 8px; }
.clock .big { font-size: 40px; }
.stepnav { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }

/* учёт */
.acc { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; margin-bottom: 8px; cursor: pointer; }
.acc.off { opacity: .6; }
.acc .t { font-weight: 600; }
.track { position: relative; height: 8px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); margin: 10px 0 6px; overflow: hidden; }
.track i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--accent); border-radius: 4px; }
.track i.under { background: var(--bad); }
.track b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--muted); }
.tot .row { padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tot .row:first-of-type { border-top: 0; }
.list .it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list .it:first-child { border-top: 0; }
.list .it .l { min-width: 0; }
.list .it .l div:last-child { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.list .it .num { white-space: nowrap; }
.x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }

/* новости */
.next { text-align: center; }
.next .big { font-size: 34px; margin: 4px 0; }
.ev { display: grid; grid-template-columns: 46px 44px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ev:first-child { border-top: 0; }
.ev .cc { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-radius: 4px; text-align: center; padding: 2px 0; }
.ev .cc.usd { color: var(--warn); border-color: rgba(242, 184, 75, .5); }
.ev .cd { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ev.soon .cd { color: var(--warn); }
.ev.past { opacity: .45; }
.dayh { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; padding: 12px 0 4px; }

/* карточки-справка */
details.ref { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
details.ref summary { padding: 12px 14px; cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; font-weight: 600; }
details.ref summary::-webkit-details-marker { display: none; }
details.ref summary span { font-family: var(--mono); color: var(--accent); font-size: 12px; }
details.ref .body { padding: 0 14px 14px; font-size: 14px; }
details.ref .body p { margin: 8px 0; }
details.ref .body .sec { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; }

/* лист */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 90vh; overflow-y: auto; background: var(--bar);
  border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
.sheet h3 { margin: 0 0 4px; font-size: 19px; }

.toast { position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%) translateY(10px); opacity: 0;
  pointer-events: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px;
  transition: .2s; max-width: calc(100% - 32px); z-index: 30; font-size: 14px; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: var(--bad); color: var(--bad); }

.gate { text-align: center; padding: 60px 20px; }
.gate h1 { font-size: 24px; margin: 18px 0 8px; }
.gate p { color: var(--muted); }
.gate p.promo { color: var(--text); font-size: 17px; margin-top: 14px; }
.gate p.promo s { color: var(--muted); }
.gate p.promo b { color: var(--accent); }
.gate .mark { width: 44px; height: 44px; margin: 0 auto; background:
  linear-gradient(var(--accent), var(--accent)) 0 0 / 9px 100% no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 0 / 80% 9px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 18px / 60% 9px no-repeat; }

/* общее новое */
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.btn .ic { margin-right: 6px; }
.center { text-align: center; }
.clip { position: fixed; left: -9999px; top: 0; opacity: 0; }
.ta { font-family: inherit; font-size: 15px; resize: vertical; min-height: 96px; line-height: 1.45; }
.addr { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 11px 12px; background: var(--bg); border: 1px dashed var(--line);
  border-radius: 4px; font-size: 13.5px; word-break: break-all; line-height: 1.5; cursor: copy; color: var(--text); }
.addr:active { border-color: var(--accent); }
.linkish { background: none; border: 0; color: var(--accent); font-size: 13px; padding: 10px 0 0; cursor: pointer; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.st3 { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 8px; text-align: center; min-width: 0; }
.st3 b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.st3 span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stats3.ref .st3 b { font-size: 17px; }

/* витрина (не вступившие) */
body.guest .gold { display: none; }
body.guest { padding-bottom: 24px; }
.landing .hero { text-align: center; padding: 26px 6px 6px; }
.landing .hero h1 { font-size: 30px; margin: 16px 0 6px; letter-spacing: -.02em; }
.landing .hero .sub { color: var(--muted); margin: 0 auto; max-width: 340px; font-size: 14.5px; }
.landing .promo { font-size: 17px; margin: 16px 0 0; }
.landing .promo s { color: var(--muted); }
.landing .promo b { color: var(--accent); }
.mark.big { width: 46px; height: 46px; margin: 0 auto; background:
  linear-gradient(var(--accent), var(--accent)) 0 0 / 9px 100% no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 0 / 80% 9px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 18px / 60% 9px no-repeat; }
.landing > .h { margin-top: 26px; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px;
  scroll-padding: 0 16px; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 64%; max-width: 260px; margin: 0; scroll-snap-align: start; }
.shot .pic { position: relative; aspect-ratio: 390 / 640; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; -webkit-user-drag: none; }
.shot .veil { position: absolute; inset: 0; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(transparent 30%, #000 62%); mask-image: linear-gradient(transparent 30%, #000 62%);
  background: linear-gradient(rgba(11, 23, 36, 0) 30%, rgba(11, 23, 36, .55) 70%, rgba(11, 23, 36, .92)); }
.shot .lockb { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); padding: 5px 11px;
  border: 1px solid rgba(63, 208, 201, .45); border-radius: 999px; background: rgba(13, 27, 42, .85); }
.shot .lockb .ic { width: 13px; height: 13px; vertical-align: 0; }
.shot figcaption { padding: 8px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.shot figcaption b { display: block; color: var(--text); font-size: 14px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: var(--accent); }
.locked { padding: 6px 14px 12px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); }
.lrow:first-child { border-top: 0; }
.lrow .n { font-family: var(--mono); font-size: 12px; color: var(--accent); width: 20px; }
.lrow .bars { flex: 1; display: flex; flex-direction: column; gap: 5px; filter: blur(1.2px); }
.lrow .bars i { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #2a4561, #1a2f46); }
.lrow .bars i.thin { height: 6px; opacity: .55; }
.lrow .bars .w1 { width: 34%; } .lrow .bars .w2 { width: 52%; } .lrow .bars .w3 { width: 68%; } .lrow .bars .w4 { width: 80%; }
.lrow .ic { opacity: .7; }
.how { display: grid; gap: 8px; }
.hs { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.hs .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px;
  color: var(--on-accent); background: var(--accent); font-weight: 600; }
.hs b { font-size: 15px; }
.pay .chips.wrap { flex-wrap: wrap; overflow: visible; margin-top: 6px; }
.pay .sum { margin: 16px 0 12px; padding: 12px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.pay .sum .row { gap: 10px; align-items: baseline; margin-top: 2px; }
.pay .sum s { font-size: 16px; }
.invoice { border-color: rgba(63, 208, 201, .45); box-shadow: 0 0 0 1px rgba(63, 208, 201, .12), 0 10px 30px rgba(0, 0, 0, .25); }
.invoice.off { border-color: var(--line); box-shadow: none; }
.invoice .amt { margin: 14px 0 10px; padding: 12px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.invoice .amt .big { font-size: 24px; word-break: break-all; }
.invoice .lbl { margin-top: 4px; }
.invoice .qr { display: flex; justify-content: center; margin: 14px 0 4px; }
.invoice .qr img { width: 180px; height: 180px; border-radius: 8px; background: #fff; padding: 8px; image-rendering: pixelated; }
.invoice .left { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.done { text-align: center; padding: 70px 16px; }
.done h1 { font-size: 26px; margin: 18px 0 8px; }
.okmark { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(63, 208, 201, .14);
  border: 1px solid rgba(63, 208, 201, .5); color: var(--accent); }
.okmark .ic { width: 36px; height: 36px; stroke-width: 2.4; }

/* команда */
.team-head .h { margin: 0; }
.modes { margin: 4px 0 12px; }
.ava { --c: #5b6b80; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  color: var(--text); background: var(--surface-2); background: color-mix(in srgb, var(--c) 30%, var(--bg)); border: 1.5px solid var(--c); }
.ava.dim { border-style: dashed; opacity: .75; }
.ava.big { width: 52px; height: 52px; font-size: 21px; }
.ava.me { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.people { display: grid; gap: 6px; }
.person { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who .nm { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op { margin-left: 6px; font-size: 13px; }
.st { flex: none; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.st.paid { color: var(--good); border-color: rgba(63, 208, 201, .45); }
.st.staff { color: #b9a6ff; border-color: rgba(185, 166, 255, .45); }
.st.bot { color: var(--warn); border-color: rgba(242, 184, 75, .4); }
.tbar { margin-bottom: 8px; }
.tree { padding: 8px 10px; overflow-x: auto; }
.trow { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.trow .tw { flex: none; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--accent);
  font-family: var(--mono); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.trow .tw:disabled { border-color: transparent; background: none; cursor: default; }
.trow .tl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 4px 2px; text-align: left; cursor: pointer; }
.trow .ava { width: 30px; height: 30px; font-size: 13px; }
.trow .cnt { flex: none; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.tkids { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--line); }
.tkids .tkids .tkids .tkids { margin-left: 4px; padding-left: 6px; }
.mapwrap { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(63, 208, 201, .07), transparent 60%), var(--bg); }
.orbit { display: block; width: 100%; aspect-ratio: 1; touch-action: none; user-select: none; cursor: grab; }
.orbit .ring { fill: none; stroke: rgba(139, 155, 176, .22); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.orbit .rlbl { fill: rgba(139, 155, 176, .55); font-family: var(--mono); font-weight: 500; font-size: calc(var(--fs, 10px) * .8); text-anchor: middle; letter-spacing: .08em; }
.orbit .rlbl.big { font-size: var(--fs, 10px); }
.orbit .lk { fill: none; stroke-width: 1.3; opacity: .45; vector-effect: non-scaling-stroke; }
.orbit .lk.dim { opacity: .22; stroke-dasharray: 3 3; }
.orbit .bub { fill-opacity: .32; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.orbit .nd { cursor: pointer; }
.orbit .nd.bot .bub { fill-opacity: .12; stroke-dasharray: 3 2; }
.orbit .nd.staff .bub { stroke-width: 2.6; }
.orbit .bub.me { fill-opacity: 1; stroke: none; }
.orbit .halo { fill: rgba(63, 208, 201, .16); }
.orbit .ini { fill: var(--text); font-family: Onest, system-ui, sans-serif; font-weight: 600; text-anchor: middle; pointer-events: none; }
.orbit .ini.me { fill: var(--on-accent); font-weight: 700; }
.orbit .lbl { fill: #c9d3df; font-family: Onest, system-ui, sans-serif; font-weight: 500; font-size: var(--fs, 10px); text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: var(--bg); stroke-width: calc(var(--fs, 10px) * .3); stroke-linejoin: round; }
.orbit .lbl.me { font-size: calc(var(--fs, 10px) * 1.15); font-weight: 600; fill: var(--text); }
.orbit .lbl.need1, .orbit .lbl.need2 { display: none; }
.orbit.z1 .lbl.need1, .orbit.z2 .lbl.need2 { display: inline; }
.mapctl { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.mapctl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(13, 27, 42, .88); color: var(--text);
  font-size: 17px; line-height: 1; cursor: pointer; padding: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { --c: #5b6b80; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lg i.solid { background: rgba(139, 155, 176, .5); border: 1.5px solid var(--muted); }
.lg i.ring { background: none; border: 1.5px dashed var(--muted); }
.pcard { gap: 14px; margin-bottom: 12px; }
.pcard h3 { margin: 0; }
.kv dd .st { display: inline-block; }
.ref-card .btns .btn { display: inline-flex; align-items: center; justify-content: center; }
.bar button span { white-space: nowrap; }
.invoice .amt .big { font-size: 21px; white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.invoice .btns .btn { padding: 12px 8px; font-size: 14px; }
.ask-btns .btn { display: inline-flex; align-items: center; justify-content: center; }
.landing .h { scroll-margin-top: 64px; }
.invoice .amt .big .tok { font-size: 14px; color: var(--muted); font-weight: 500; }

/* скидка другу */
.disc { margin-top: 14px; }
.disc .h { margin: 0; }
.disc > .row > b { font-size: 18px; color: var(--accent); }
.disc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 10px 0 0; background: none; touch-action: pan-y; }
.disc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
.disc-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.disc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--bar); box-shadow: 0 0 0 1px var(--accent); }
.disc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bar); }
.disc .scale { margin-top: 2px; }
.disc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.disc-tiles .st3 { text-align: left; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.disc-tiles .st3 > span:first-child { font-size: 12px; color: var(--muted); margin: 0; }
.disc-tiles .st3 b { font-size: 24px; }
.disc-tiles .st3 s, .disc-tiles .st3 .small { font-size: 12px; margin: 0; min-height: 1.3em; }
.legs-d { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.legs-d summary { padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.legs-d summary::-webkit-details-marker { display: none; }
.legs-d summary::after { content: "▾"; float: right; color: var(--muted); }
.legs-d[open] summary::after { content: "▴"; }
.legs-l { padding: 0 12px 10px; }
.lg-row { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; gap: 10px; }
.lg-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-sum { padding: 8px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }

/* лестница продавца без взноса */
.ladder .lad-list { display: grid; gap: 6px; margin-top: 8px; }
.lad-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lad-step .lad-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: var(--surface-2); color: var(--muted); }
.lad-step .lad-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 14px; }
.lad-step .lad-t b { font-weight: 500; }
.lad-step .lad-p { font-size: 16px; color: var(--muted); }
.lad-step.done { opacity: .6; }
.lad-step.done .lad-n { background: var(--good); color: var(--on-accent); }
.lad-step.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.lad-step.cur .lad-n { background: var(--accent); color: var(--on-accent); }
.lad-step.cur .lad-p { color: var(--accent); }
.lad-step.full { border-style: dashed; }
.lad-step.full .lad-p { color: var(--warn); }
.lad-you { font-size: 11px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lad-bar { flex-basis: 100%; display: flex; gap: 4px; margin-top: 2px; }
.lad-bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
.lad-bar i.on { background: var(--accent); }

.box.dlink { border-color: var(--accent); }

/* пакт кортимы — кнопка-карточка (только четверым) */
.pact-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.pact-card.hot { border-color: #e8c46a; box-shadow: 0 0 0 1px rgba(232,196,106,.35) inset; }
.pact-ico { font-size: 26px; line-height: 1; }
.pact-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pact-go { color: #e8c46a; font-weight: 600; white-space: nowrap; }

/* ⚡ автовыплата — переключатель в окне вывода */
.auto-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.auto-title { font-weight: 700; }
.auto-toggle { flex: none; width: 52px; height: 30px; border-radius: 15px; border: 0; padding: 3px; cursor: pointer;
  background: rgba(127,127,127,.35); transition: background .2s; display: flex; }
.auto-toggle.on { background: #3ecf8e; }
.auto-knob { width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.auto-toggle.on .auto-knob { transform: translateX(22px); }
.auto-toggle:disabled { opacity: .6; }

/* 🔗 конструктор партнёрки */
.panel.lines .h3 { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.line-row { display: grid; grid-template-columns: 1fr auto 92px; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px solid rgba(127,127,127,.15); }
.line-row.off { opacity: .5; }
.line-who { display: flex; flex-direction: column; min-width: 0; }
.line-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-step { display: flex; align-items: center; gap: 6px; }
.line-step .btn.sm { min-width: 34px; height: 34px; padding: 0; border-radius: 10px; font-size: 18px; }
.line-v { min-width: 44px; text-align: center; font-weight: 700; }
.line-gets { text-align: right; font-size: 14px; }
.line-keep { padding: 12px 0 4px; border-top: 1px solid rgba(127,127,127,.15); }
.tiny { font-size: 11px; line-height: 1.4; margin-top: 8px; }

/* чат поддержки (support.js) — поверх приложения, как мессенджер */
body.chat-open { overflow: hidden; }
.chat { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background:
  radial-gradient(var(--bg-dots) 1px, transparent 1.4px) 0 0 / 16px 16px, var(--bg); height: var(--tg-viewport-height, 100vh); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(13, 27, 42, .96);
  border-bottom: 1px solid var(--line); flex: none; }
.chat-back { background: none; border: 0; font-size: 28px; line-height: 1; padding: 0 6px 2px; color: var(--accent); cursor: pointer; }
.chat-ava { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: rgba(63, 208, 201, .14); border: 1px solid rgba(63, 208, 201, .45); }
.chat-ava.sm { width: 40px; height: 40px; }
.chat-title { display: flex; flex-direction: column; min-width: 0; }
.chat-title b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span { font-size: 12px; color: var(--accent); }
.chat-feed { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 6px; -webkit-overflow-scrolling: touch; }
.chat-day { align-self: center; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; margin: 6px 0; }
.chat-sys { align-self: center; text-align: center; max-width: 88%; font-size: 13px; color: var(--muted); background: rgba(17, 35, 58, .85);
  border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 4px 0; }
.msg { max-width: 82%; padding: 8px 11px 5px; border-radius: 14px; word-wrap: break-word; white-space: pre-wrap; }
.msg.msg-in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.msg-out { align-self: flex-end; background: rgba(63, 208, 201, .18); border: 1px solid rgba(63, 208, 201, .45); border-bottom-right-radius: 4px; }
.msg-meta { display: flex; justify-content: flex-end; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.chat-ticks { font-size: 11px; color: var(--muted); letter-spacing: -2px; }
.chat-ticks.read { color: var(--accent); }
.chat-bar { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(13, 27, 42, .96); border-top: 1px solid var(--line); }
.chat-in { flex: 1; resize: none; max-height: 120px; padding: 10px 12px; border-radius: 18px; background: var(--bg);
  border: 1px solid var(--line); outline: none; line-height: 1.35; }
.chat-in:focus { border-color: var(--accent); }
.chat-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent);
  font-size: 17px; cursor: pointer; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-item .row { gap: 8px; }
.chat-prev { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.unread .chat-prev { color: var(--text); }
.chat-time { font-size: 11.5px; color: var(--muted); font-family: var(--mono); flex: none; }
.chat-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.support-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; }
.support-card .chat-ava { width: 42px; height: 42px; }
.support-card .grow { flex: 1; min-width: 0; }
.support-btn { position: relative; margin-left: auto; margin-right: 10px; width: 36px; height: 36px; border-radius: 50%; font-size: 17px;
  background: rgba(63, 208, 201, .12); border: 1px solid rgba(63, 208, 201, .45); cursor: pointer; }
.support-btn i { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--bad); color: #fff; font: 700 10.5px/17px Onest, sans-serif; font-style: normal; text-align: center; }
.ref-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ref-flat span { font-family: var(--mono); color: var(--accent); font-size: 12px; }

/* ── FORGE LEAGUE (06.11): бегущая строка, игра-отчёт, лига, лента ───────────── */
.bar.six { grid-template-columns: repeat(6, 1fr); }
.tick { position: sticky; top: 49px; z-index: 9; display: flex; align-items: center; height: 32px; overflow: hidden;
  background: var(--bar); border-bottom: 1px solid var(--line); }
.tick .live { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--on-accent);
  background: var(--accent); padding: 3px 7px; margin: 0 8px 0 10px; border-radius: 3px; }
.tick .win { flex: 1; min-width: 0; overflow: hidden; height: 32px; display: flex; align-items: center; }
.tick .rail { display: inline-flex; gap: 28px; white-space: nowrap; font-size: 13px; animation: tick-run 60s linear infinite; }
@keyframes tick-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tick .rail { animation: none; } }
.lg-seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 2px 0 12px; }
.lg-seg button { flex: 1; background: none; border: 0; padding: 9px 4px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.lg-seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.lg-ac { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px; margin-bottom: 10px; cursor: pointer; }
.lg-ac.off { opacity: .55; }
.lg-st { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); white-space: nowrap; }
.lg-st.g { color: var(--good); border-color: rgba(63, 208, 201, .5); }
.lg-st.y { color: #f2c94c; border-color: rgba(242, 201, 76, .5); }
.lg-st.r { color: var(--bad); border-color: rgba(239, 107, 107, .5); }
.lg-dots { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.lg-dots i { width: 22px; height: 22px; border-radius: 6px; background: #1a2f45; display: grid; place-items: center; font-style: normal;
  font-size: 11px; font-family: var(--mono); color: var(--muted); }
.lg-dots i.w { background: rgba(63, 208, 201, .25); color: var(--good); }
.lg-dots i.l { background: rgba(239, 107, 107, .22); color: var(--bad); }
.lg-dots i.c { outline: 2px solid var(--accent); color: var(--text); }
.lg-mt { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.pos { color: var(--good); } .neg { color: var(--bad); } .gold2 { color: #f2c94c; }
.lg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin: 0 0 10px; }
.lg-card.gold { border-color: rgba(242, 201, 76, .55); background: linear-gradient(90deg, rgba(242, 201, 76, .12), var(--surface) 70%); }
.lg-card small { display: block; margin-top: 4px; }
.lg-bar { height: 8px; border-radius: 5px; background: #1a2f45; overflow: hidden; margin: 8px 0 4px; }
.lg-bar i { display: block; height: 100%; background: var(--accent); }
.lg-bar.gold i { background: #f2c94c; }
.lg-tl { position: relative; padding-left: 22px; margin-top: 6px; }
.lg-tl::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.lg-dy { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.lg-dy::before { content: ""; position: absolute; left: -20px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.lg-dy.l::before { background: var(--bad); }
.lg-dy.o::before { background: var(--bg); border: 2px solid var(--accent); }
.lg-dy.ok { border-color: rgba(63, 208, 201, .5); }
.lg-dy .r1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.lg-dy .r2 { display: flex; gap: 8px; margin-top: 6px; font-size: 12.5px; flex-wrap: wrap; }
.pill { border-radius: 999px; padding: 3px 9px; background: #1a2f45; }
.pill.tp { color: var(--good); } .pill.sl { color: var(--bad); }
.lg-sw { display: grid; grid-template-columns: 1fr 1fr; background: var(--bar); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-top: 8px; }
.lg-sw button { background: none; border: 0; padding: 11px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lg-sw button.on { background: var(--accent); color: var(--on-accent); }
.lg-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lg-f2 label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.lg-f2 .in { width: 100%; font-size: 17px; }
.lg-sum { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.lg-sum b { font-size: 24px; }
.lg-ch { display: grid; gap: 8px; margin-top: 12px; }
.lg-ch button { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: var(--surface-2); font-weight: 600; cursor: pointer; }
.lg-win { text-align: center; padding: 8px 0 4px; }
.lg-win .ico { font-size: 56px; }
.lg-tg { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 12px 0; text-align: left; cursor: pointer; }
.lg-tg small { display: block; color: var(--muted); font-size: 12px; }
.lg-swc { width: 44px; height: 26px; border-radius: 13px; background: #2a4560; position: relative; flex: none; }
.lg-swc.on { background: var(--accent); }
.lg-swc::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.lg-swc.on::after { left: 21px; }
.lg-lb { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lg-lb:last-child { border: 0; }
.lg-lb .n { width: 22px; font-family: var(--mono); color: var(--muted); }
.lg-lb .m { width: 22px; }
.lg-lb .who { flex: 1; min-width: 0; }
.lg-lb .who small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.lg-lb .s { font-family: var(--mono); color: #f2c94c; font-weight: 600; }
.lg-lb.me { background: rgba(63, 208, 201, .1); margin: 0 -13px; padding: 10px 13px; border-radius: 6px; }
.lg-ev small { display: block; margin-top: 4px; }
.center { text-align: center; }

/* «Чем закрылся день»: 4 варианта сеткой 2×2 (в одну строку на телефоне не влезают) */
.seg.seg4 { display: grid; grid-template-columns: 1fr 1fr; }
.seg.seg4 button { border-left: 0; padding: 10px 6px; font-size: 13.5px; }
.seg.seg4 button:nth-child(even) { border-left: 1px solid var(--line); }
.seg.seg4 button:nth-child(n+3) { border-top: 1px solid var(--line); }
.sign-btn { flex: none; width: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
  color: var(--good); font-size: 20px; font-weight: 700; cursor: pointer; }
.sign-btn.neg { color: var(--bad); }
/* пока открыта клавиатура — нижнее меню не висит поверх полей */
body.kb .bar { display: none; }
body.kb { padding-bottom: 24px; }

/* On Demand: строки готовности к выплате */
.od-l { font-size: 13px; line-height: 1.5; margin: 3px 0; }
.od-l.pos { color: var(--good); } .od-l.neg { color: var(--bad); } .od-l.warn { color: var(--warn); }
.od-ready { margin: 8px 0; padding: 8px 10px; border-radius: var(--r); font-weight: 600; font-size: 13.5px; }
.od-ready.ok { background: rgba(63, 208, 201, .12); color: var(--good); }
.od-ready.no { background: rgba(242, 184, 75, .10); color: var(--warn); }
