/* ShimGameApp admin panel 0.9.3: glass design. Dark by default, light on request or by the OS setting. Colors are tokens. */
:root {
  color-scheme: dark;
  --bg: #07060e;
  --blob-1: rgba(124, 92, 255, 0.30); --blob-2: rgba(34, 211, 238, 0.16); --blob-3: rgba(244, 114, 182, 0.14); --blob-4: rgba(52, 211, 153, 0.10);
  --glass: rgba(255, 255, 255, 0.055); --glass-2: rgba(255, 255, 255, 0.085); --glass-3: rgba(255, 255, 255, 0.13); --glass-solid: #16142a;
  --stroke: rgba(255, 255, 255, 0.085); --stroke-2: rgba(255, 255, 255, 0.16); --hi: rgba(255, 255, 255, 0.07);
  --ink: #f3f2fb; --ink-2: #b3b0cb; --ink-3: #7c7997; --ink-inv: #0b0a14;
  --accent: #8b7bff; --accent-2: #22d3ee; --accent-ink: #ffffff; --accent-soft: rgba(139, 123, 255, 0.16);
  --grad: linear-gradient(135deg, #8b7bff 0%, #6366f1 45%, #22d3ee 100%);
  --grad-warm: linear-gradient(135deg, #f472b6, #fb923c);
  --grad-good: linear-gradient(135deg, #34d399, #22d3ee);
  --grad-gold: linear-gradient(135deg, #fbbf24, #f97316);
  --good: #34d399; --good-soft: rgba(52, 211, 153, 0.14); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.14); --bad: #fb7185; --bad-soft: rgba(251, 113, 133, 0.14);
  --info-soft: rgba(96, 165, 250, 0.14); --gold: #fbbf24;
  --s1: #8b7bff; --s2: #22d3ee; --s3: #34d399; --s4: #fbbf24; --s5: #f472b6; --s6: #60a5fa; --s7: #c084fc; --s8: #fb7185;
  --seq-0: rgba(139,123,255,0.06); --seq-1: rgba(139,123,255,0.16); --seq-2: rgba(139,123,255,0.28); --seq-3: rgba(139,123,255,0.42); --seq-4: rgba(139,123,255,0.58); --seq-5: rgba(139,123,255,0.74); --seq-6: rgba(139,123,255,0.9);
  --line: rgba(255, 255, 255, 0.07); --axis: rgba(255, 255, 255, 0.14);
  --tip: rgba(17, 15, 34, 0.94);
  --shadow: 0 1px 0 var(--hi) inset, 0 12px 40px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 1px 0 var(--hi) inset, 0 24px 70px rgba(0, 0, 0, 0.55);
  --blur: blur(22px) saturate(160%);
  --r: 18px; --r-sm: 12px; --r-xs: 9px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tg-bg: #0e1621; --tg-bubble: #182533; --tg-ink: #f5f5f5; --tg-link: #6ab3f3; --tg-btn: rgba(255, 255, 255, 0.09);
}
@media (prefers-color-scheme: light) {
  :root:where(:not([data-theme="dark"])) {
    color-scheme: light;
    --bg: #eef0f8;
    --blob-1: rgba(124, 92, 255, 0.22); --blob-2: rgba(34, 211, 238, 0.18); --blob-3: rgba(244, 114, 182, 0.16); --blob-4: rgba(52, 211, 153, 0.12);
    --glass: rgba(255, 255, 255, 0.62); --glass-2: rgba(255, 255, 255, 0.78); --glass-3: rgba(255, 255, 255, 0.92); --glass-solid: #ffffff;
    --stroke: rgba(30, 27, 75, 0.08); --stroke-2: rgba(30, 27, 75, 0.16); --hi: rgba(255, 255, 255, 0.9);
    --ink: #16142c; --ink-2: #56536f; --ink-3: #8c89a6; --ink-inv: #ffffff;
    --accent: #6d5cf6; --accent-2: #0ea5c6; --accent-soft: rgba(109, 92, 246, 0.12);
    --good: #10b981; --good-soft: rgba(16, 185, 129, 0.12); --warn: #d97706; --warn-soft: rgba(245, 158, 11, 0.14); --bad: #e11d48; --bad-soft: rgba(225, 29, 72, 0.1);
    --info-soft: rgba(59, 130, 246, 0.1); --gold: #d97706;
    --s1: #6d5cf6; --s2: #06b6d4; --s3: #10b981; --s4: #f59e0b; --s5: #ec4899; --s6: #3b82f6; --s7: #a855f7; --s8: #f43f5e;
    --seq-0: rgba(109,92,246,0.05); --seq-1: rgba(109,92,246,0.13); --seq-2: rgba(109,92,246,0.24); --seq-3: rgba(109,92,246,0.38); --seq-4: rgba(109,92,246,0.55); --seq-5: rgba(109,92,246,0.72); --seq-6: rgba(109,92,246,0.88);
    --line: rgba(30, 27, 75, 0.07); --axis: rgba(30, 27, 75, 0.16);
    --tip: rgba(255, 255, 255, 0.96);
    --shadow: 0 1px 0 var(--hi) inset, 0 10px 30px rgba(40, 36, 100, 0.08);
    --shadow-lg: 0 1px 0 var(--hi) inset, 0 24px 60px rgba(40, 36, 100, 0.2);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f8;
  --blob-1: rgba(124, 92, 255, 0.22); --blob-2: rgba(34, 211, 238, 0.18); --blob-3: rgba(244, 114, 182, 0.16); --blob-4: rgba(52, 211, 153, 0.12);
  --glass: rgba(255, 255, 255, 0.62); --glass-2: rgba(255, 255, 255, 0.78); --glass-3: rgba(255, 255, 255, 0.92); --glass-solid: #ffffff;
  --stroke: rgba(30, 27, 75, 0.08); --stroke-2: rgba(30, 27, 75, 0.16); --hi: rgba(255, 255, 255, 0.9);
  --ink: #16142c; --ink-2: #56536f; --ink-3: #8c89a6; --ink-inv: #ffffff;
  --accent: #6d5cf6; --accent-2: #0ea5c6; --accent-soft: rgba(109, 92, 246, 0.12);
  --good: #10b981; --good-soft: rgba(16, 185, 129, 0.12); --warn: #d97706; --warn-soft: rgba(245, 158, 11, 0.14); --bad: #e11d48; --bad-soft: rgba(225, 29, 72, 0.1);
  --info-soft: rgba(59, 130, 246, 0.1); --gold: #d97706;
  --s1: #6d5cf6; --s2: #06b6d4; --s3: #10b981; --s4: #f59e0b; --s5: #ec4899; --s6: #3b82f6; --s7: #a855f7; --s8: #f43f5e;
  --seq-0: rgba(109,92,246,0.05); --seq-1: rgba(109,92,246,0.13); --seq-2: rgba(109,92,246,0.24); --seq-3: rgba(109,92,246,0.38); --seq-4: rgba(109,92,246,0.55); --seq-5: rgba(109,92,246,0.72); --seq-6: rgba(109,92,246,0.88);
  --line: rgba(30, 27, 75, 0.07); --axis: rgba(30, 27, 75, 0.16);
  --tip: rgba(255, 255, 255, 0.96);
  --shadow: 0 1px 0 var(--hi) inset, 0 10px 30px rgba(40, 36, 100, 0.08);
  --shadow-lg: 0 1px 0 var(--hi) inset, 0 24px 60px rgba(40, 36, 100, 0.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh; color: var(--ink); font: 14px/1.5 var(--sans); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 760px at 8% -12%, var(--blob-1), transparent 62%),
    radial-gradient(900px 700px at 105% 2%, var(--blob-2), transparent 60%),
    radial-gradient(900px 900px at 60% 118%, var(--blob-3), transparent 62%),
    radial-gradient(700px 600px at -10% 90%, var(--blob-4), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: 22px; } h2 { font-size: 15px; } h3 { font-size: 13.5px; }
.num, td.r, .tab-num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.small { font-size: 12.5px; } .xs { font-size: 11.5px; }
code, .mono { font-family: var(--mono); font-size: 12px; }
code { background: var(--glass-2); border: 1px solid var(--stroke); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
.wrap-anywhere { overflow-wrap: anywhere; min-width: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- glass surfaces */
.glass, .card, .side, .topbar, .modal, .toast, .kpi, .tile, .pcard, .seg, .chips button, .btn, input, select, textarea {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.glass, .card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: 18px; min-width: 0; position: relative; }
.card > header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card > header h2 { display: flex; align-items: center; gap: 8px; }
.card > header .sub { flex-basis: 100%; color: var(--ink-3); font-size: 12.5px; margin-top: -8px; }
.card > header > .sp, .row > .sp { flex: 1; }
.card.danger { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: linear-gradient(180deg, var(--bad-soft), var(--glass)); }
.card.flat { box-shadow: none; background: var(--glass-2); }
.hdr-ic { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }

/* ---------- layout */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 12px; margin: 12px 0 12px 12px; height: calc(100vh - 24px); overflow: auto; z-index: 30;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 22px; box-shadow: var(--shadow);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.logo { width: 38px; height: 38px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.45), 0 1px 0 rgba(255,255,255,.35) inset; flex: none; }
.brand b { display: block; font-size: 15px; letter-spacing: -0.01em; } .brand small { color: var(--ink-3); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .grp { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 5px; }
.nav .grp:first-child { padding-top: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 550; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--glass-2); color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--ink); background: linear-gradient(135deg, rgba(139,123,255,.28), rgba(34,211,238,.14)); box-shadow: 0 0 0 1px rgba(139,123,255,.35) inset, 0 6px 20px rgba(124,92,255,.18); }
.nav a.on svg.i { color: var(--accent); }
.nav a .cnt { margin-left: auto; background: var(--grad-warm); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 19px; box-shadow: 0 4px 12px rgba(244,114,182,.35); }
.nav a .new { margin-left: auto; background: var(--grad); color: #fff; border-radius: 99px; font-size: 9.5px; font-weight: 800; padding: 0 6px; line-height: 16px; text-transform: uppercase; }
.side .foot { margin-top: auto; padding: 14px 6px 2px; font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--stroke); }
.me-row { display: flex; align-items: center; gap: 10px; }
.me-row .ava { width: 32px; height: 32px; font-size: 13px; }
.me-row b { color: var(--ink); display: block; font-size: 13px; }
.theme-sw { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke); }
.theme-sw button { flex: 1; border: 0; background: none; color: var(--ink-3); padding: 6px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.theme-sw button.on { background: var(--glass-3); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topbar { display: none; }
.scrim { display: none; }
.main { min-width: 0; padding: 22px 26px 90px; max-width: 1560px; width: 100%; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.top .ttl { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.top .pic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none;
  box-shadow: 0 10px 28px rgba(124,92,255,.4), 0 1px 0 rgba(255,255,255,.3) inset; }
.top .pic svg.i { width: 23px; height: 23px; }
.top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.grid { display: grid; gap: 16px; min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- KPI and stat tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kpi { position: relative; overflow: hidden; border-radius: var(--r); padding: 16px 16px 14px; background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow); min-width: 0;
  display: flex; flex-direction: column; gap: 4px; min-height: 132px; transition: transform .18s, border-color .18s; }
a.kpi { color: inherit; text-decoration: none; }
a.kpi:hover { transform: translateY(-2px); border-color: var(--stroke-2); }
.kpi::after { content: ''; position: absolute; inset: -40% -30% auto auto; width: 180px; height: 180px; border-radius: 50%; background: var(--glow, rgba(139,123,255,.25)); filter: blur(40px); opacity: .55; pointer-events: none; }
.kpi .k-top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
.kpi .k-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--kg, var(--grad)); box-shadow: 0 6px 16px rgba(0,0,0,.25); flex: none; }
.kpi .k-ic svg.i { width: 17px; height: 17px; }
.kpi .k-val { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; position: relative; z-index: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-val small { font-size: 15px; font-weight: 650; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.kpi .k-sub { font-size: 12.5px; color: var(--ink-3); position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi .k-spark { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: .9; pointer-events: none; }
.kpi.has-spark { padding-bottom: 48px; }
.kpi.hero-kpi .k-val { font-size: 34px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--glass-2); color: var(--ink-2); }
.delta.up { background: var(--good-soft); color: var(--good); } .delta.down { background: var(--bad-soft); color: var(--bad); }
.live { display: inline-flex; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--stroke); min-width: 0; }
.tile .lab { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tile .val { font-size: 20px; font-weight: 720; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
a.tile:hover, .tile a.val:hover { text-decoration: none; border-color: var(--stroke-2); }
.tile .hint { font-size: 12px; color: var(--ink-3); }

/* ---------- treasury / payout card */
.treasury { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; overflow: hidden;
  background: linear-gradient(135deg, rgba(139,123,255,.20), rgba(34,211,238,.08) 60%, var(--glass)); }
.treasury .big { font-size: 42px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.treasury .big small { font-size: 17px; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.treasury .rub { font-size: 20px; font-weight: 700; margin-top: 4px; }
.ring { width: 88px; height: 88px; flex: none; }
.ring circle { fill: none; stroke-width: 8; }
.ring .bgc { stroke: var(--glass-3); } .ring .fg { stroke: url(#rg); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring text { fill: var(--ink); font: 700 13px var(--sans); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; }
.kv .k { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kv .v { font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.splitbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--glass-3); gap: 2px; }
.splitbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }
.legend i.dash { height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; color: var(--ink-3); width: 16px; }

/* ---------- charts */
.chart-box { position: relative; height: 260px; min-width: 0; }
.chart-box.short { height: 170px; margin-top: 10px; } .chart-box.tall { height: 380px; } .chart-box.xs { height: 120px; }
.chart-box canvas { position: absolute; inset: 0; }
.spark { display: block; width: 100%; height: 100%; }

/* ---------- buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--stroke-2); background: var(--glass-2); color: var(--ink);
  padding: 8px 15px; border-radius: 12px; font: 600 13.5px var(--sans); cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; text-decoration: none !important; }
.btn:hover { background: var(--glass-3); border-color: var(--stroke-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.pri { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(124,92,255,.38), 0 1px 0 rgba(255,255,255,.3) inset; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.good { background: var(--grad-good); border-color: transparent; color: #04231a; box-shadow: 0 8px 20px rgba(52,211,153,.3); }
.btn.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }
.btn.bad:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.ghost:hover { background: var(--glass-2); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 8px; gap: 4px; }
.btn.icon { padding: 7px; width: 36px; height: 36px; }
.btn.icon.sm { width: 30px; height: 30px; padding: 5px; }
.btn.tg { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; border-color: transparent; box-shadow: 0 10px 26px rgba(42,171,238,.4); padding: 12px 22px; font-size: 15px; }
input, select, textarea {
  font: 14px var(--sans); color: var(--ink); background: var(--glass-2); border: 1px solid var(--stroke-2); border-radius: 12px; padding: 8px 12px; min-width: 0; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus, .rte:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--glass-3); }
select { cursor: pointer; }
select option { background: var(--glass-solid); color: var(--ink); }
textarea { width: 100%; min-height: 96px; resize: vertical; line-height: 1.5; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
input[type="search"] { -webkit-appearance: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field .help { font-size: 12px; color: var(--ink-3); }
.search-big { position: relative; flex: 1; min-width: 220px; }
.search-big input { width: 100%; padding: 12px 14px 12px 42px; font-size: 15px; border-radius: 14px; }
.search-big svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }
.tgl { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.tgl input { opacity: 0; width: 0; height: 0; position: absolute; }
.tgl i { position: absolute; inset: 0; background: var(--glass-3); border: 1px solid var(--stroke-2); border-radius: 99px; transition: background .2s; cursor: pointer; }
.tgl i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .2s; }
.tgl input:checked + i { background: var(--grad); border-color: transparent; }
.tgl input:checked + i::after { transform: translateX(18px); }

/* ---------- segmented controls, chips, badges */
.seg { display: inline-flex; padding: 4px; gap: 3px; border-radius: 13px; background: var(--glass); border: 1px solid var(--stroke); flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--ink-2); font: 600 13px var(--sans); padding: 6px 13px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--glass-3); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.18), 0 0 0 1px var(--stroke-2) inset; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button { border: 1px solid var(--stroke); background: var(--glass); color: var(--ink-2); font: 600 12.5px var(--sans); padding: 6px 12px; border-radius: 99px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chips button:hover { color: var(--ink); border-color: var(--stroke-2); }
.chips button.on { background: var(--accent-soft); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent) inset; }
.chips button .n { font-size: 11px; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--glass-2); color: var(--ink-2); border: 1px solid var(--stroke); white-space: nowrap; line-height: 18px; }
.badge.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.gold { background: var(--grad-gold); color: #2b1600; border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-3); flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 10px var(--good); }

/* ---------- alerts */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--info-soft); border: 1px solid var(--stroke); font-size: 13.5px; }
.alert .ic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(96,165,250,.22); color: #60a5fa; font-weight: 800; flex: none; }
.alert.warn { background: var(--warn-soft); } .alert.warn .ic { background: rgba(251,191,36,.22); color: var(--warn); }
.alert.bad { background: var(--bad-soft); } .alert.bad .ic { background: rgba(251,113,133,.22); color: var(--bad); }
.alert.good { background: var(--good-soft); } .alert.good .ic { background: rgba(52,211,153,.22); color: var(--good); }
.alert > a { margin-left: auto; font-weight: 600; white-space: nowrap; }
.alert.small { font-size: 12.5px; padding: 9px 12px; }

/* ---------- tables */
.tbl-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; background: var(--glass-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--glass); }
tr.click { cursor: pointer; }
th.r, td.r { text-align: right; } th.c, td.c { text-align: center; }
td .sub { display: block; font-size: 11.5px; color: var(--ink-3); }
.empty { padding: 26px 12px; text-align: center; color: var(--ink-3); font-size: 13.5px; border: 1px dashed var(--stroke-2); border-radius: 14px; }
.empty .em { font-size: 28px; display: block; margin-bottom: 6px; }
.delta-up { color: var(--good); font-weight: 650; } .delta-down { color: var(--bad); font-weight: 650; }
table.heat td.cell { text-align: center; font-weight: 650; font-size: 12.5px; border-radius: 0; }

/* ---------- horizontal bars, progress */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bars .b { display: grid; grid-template-columns: minmax(90px, 1.1fr) minmax(80px, 2fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.bars .track { height: 10px; border-radius: 99px; background: var(--glass-3); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 99px; }
.bars .v { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.progress { height: 8px; border-radius: 99px; background: var(--glass-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* ---------- feed */
.feed { display: flex; flex-direction: column; }
.feed .it { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.feed .it:last-child { border-bottom: 0; }
.feed .e { width: 34px; height: 34px; border-radius: 11px; background: var(--glass-2); border: 1px solid var(--stroke); display: grid; place-items: center; font-size: 16px; }
.feed time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.feed.scroll { max-height: 470px; overflow: auto; }

/* ---------- avatars, player cards and profile */
.ava { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 750; color: #fff; font-size: 16px; overflow: hidden; position: relative;
  background: var(--ava-g, var(--grad)); box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.25) inset; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava.xl { width: 96px; height: 96px; border-radius: 30px; font-size: 38px; }
.ava .on-dot { position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); border: 2px solid var(--glass-solid); z-index: 2; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 15px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s; color: inherit; text-decoration: none !important; min-width: 0; }
.pcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow), 0 16px 40px rgba(124,92,255,.18); }
.pcard .head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pcard .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .un { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pcard .stats div { background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 11px; padding: 6px 8px; min-width: 0; }
.pcard .stats b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .stats span { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.pcard .tags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 22px; }
.pcard .foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.phero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px;
  background: linear-gradient(120deg, rgba(139,123,255,.24), rgba(34,211,238,.10) 55%, rgba(244,114,182,.10)), var(--glass); }
.phero h2 { font-size: 26px; letter-spacing: -0.03em; }
.phero .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.phero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.phero .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.phero .money { text-align: right; }
.phero .money .big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--stroke); margin-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; color: var(--ink-3); font: 650 13.5px var(--sans); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button .n { font-size: 11px; background: var(--glass-3); border-radius: 99px; padding: 0 7px; color: var(--ink-2); }
.daystrip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; }
.daystrip i { aspect-ratio: 1; border-radius: 5px; background: var(--glass-3); display: block; }
.daystrip i.on { background: var(--grad); box-shadow: 0 0 10px rgba(139,123,255,.45); }

/* ---------- overview extras */
.near { display: grid; gap: 12px; }
.near .n .t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.hours-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }

/* ---------- records */
.rec-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(251,191,36,.18), rgba(249,115,22,.08), var(--glass)); }
.rec-hero .cup { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 38px; background: var(--grad-gold); box-shadow: 0 12px 30px rgba(251,191,36,.35); }
.rec-hero .big { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rec .hd { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.rec .em { width: 40px; height: 40px; border-radius: 13px; background: var(--glass-2); display: grid; place-items: center; font-size: 20px; border: 1px solid var(--stroke); }
.rec .hd b { display: block; } .rec .hd small { color: var(--ink-3); font-size: 12px; }
.rec .val { margin-left: auto; font-size: 22px; font-weight: 800; }
.rec .bar { height: 8px; border-radius: 99px; background: var(--glass-3); overflow: hidden; }
.rec .bar i { display: block; height: 100%; background: var(--grad-gold); border-radius: 99px; }
.rec .nx { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin: 7px 0 10px; }
.rec .steps { display: flex; flex-wrap: wrap; gap: 5px; }
.rec .steps span { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--glass-2); color: var(--ink-3); border: 1px solid var(--stroke); }
.rec .steps span.on { background: var(--good-soft); color: var(--good); border-color: transparent; }
.rec .steps span.nxt { border-color: var(--gold); color: var(--gold); }
.rec.max { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.tl { display: flex; flex-direction: column; }
.tl .it { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tl .it:last-child { border-bottom: 0; }
.tl .em { font-size: 18px; text-align: center; }
.tl time { font-size: 12px; color: var(--ink-3); }

/* ---------- modal, toast, loading */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 14, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(500px, 100%); max-height: 90vh; overflow: auto; padding: 22px; border-radius: 22px; background: var(--glass-2); border: 1px solid var(--stroke-2); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px; animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(860px, 100%); }
.modal h2 { font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; padding: 12px 18px; border-radius: 14px; background: var(--glass-3); border: 1px solid var(--stroke-2);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13.5px; max-width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; animation: pop .2s; }
.toast::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #04231a; font-size: 12px; flex: none; }
.toast.bad::before { content: '!'; background: var(--bad); color: #fff; }
.loading { padding: 34px; text-align: center; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--glass-3); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--glass) 0%, var(--glass-2) 50%, var(--glass) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; border: 1px solid var(--stroke); }
@keyframes sk { to { background-position: -200% 0; } }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); padding: 5px 11px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke); }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.8s infinite; }
.pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; max-height: 520px; overflow: auto; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }

/* ---------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { width: min(440px, 100%); padding: 34px 30px; border-radius: 28px; background: var(--glass); border: 1px solid var(--stroke-2); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.login .logo { width: 64px; height: 64px; border-radius: 22px; font-size: 28px; }
.login h1 { font-size: 24px; }
.login ol { text-align: left; color: var(--ink-2); margin: 0; padding-left: 20px; line-height: 1.8; }

/* ---------- settings */
.set-head { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; z-index: 5; padding: 2px 0 10px; }
.set-head .search input { width: 100%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; }
.set-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.set-tabs button { position: relative; border: 1px solid var(--stroke); background: var(--glass); color: var(--ink-2); font: 650 13px var(--sans); padding: 8px 14px; border-radius: 12px; cursor: pointer;
  display: inline-flex; gap: 7px; align-items: center; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.set-tabs button.on { background: var(--accent-soft); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.set-tabs .n { font-size: 11px; color: var(--ink-3); }
.set-tabs .dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; background: var(--warn); }
.set-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; align-items: start; }
.sgroup { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.sgroup > summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 14px 16px; cursor: pointer; }
.sgroup > summary::-webkit-details-marker { display: none; }
.sgroup .gi { width: 34px; height: 34px; border-radius: 11px; background: var(--glass-2); display: grid; place-items: center; font-size: 17px; border: 1px solid var(--stroke); }
.sgroup summary small { color: var(--ink-3); }
.sgroup .chev { margin-left: auto; color: var(--ink-3); transition: transform .2s; font-size: 11px; }
.sgroup[open] .chev { transform: rotate(90deg); }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); }
.srow.wide { grid-template-columns: 1fr; }
.srow .lb { font-weight: 600; font-size: 13.5px; } .srow .hp { font-size: 12px; color: var(--ink-3); }
.srow .ctl { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.srow.wide .ctl { justify-content: stretch; } .srow.wide .ctl input { flex: 1; }
.srow .ctl input[type="number"] { width: 130px; text-align: right; }
.srow.dirty { background: linear-gradient(90deg, var(--warn-soft), transparent); box-shadow: 3px 0 0 var(--warn) inset; }
.srow.err { background: var(--bad-soft); } .srow .errt { grid-column: 1 / -1; color: var(--bad); font-size: 12px; }
.srow .undo { border: 0; background: var(--glass-3); color: var(--ink-2); border-radius: 8px; cursor: pointer; padding: 4px 8px; }
.savebar { position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--stroke-2);
  box-shadow: var(--shadow-lg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); flex-wrap: wrap; }
.savebar .chg { font-weight: 700; }
.savebar.idle { opacity: .7; }
mark { background: rgba(251,191,36,.35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- logs */
.log-line { display: grid; grid-template-columns: 52px 64px 110px minmax(0, 1fr); gap: 8px; font-family: var(--mono); font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.lv-WARNING { color: var(--warn); font-weight: 700; } .lv-ERROR, .lv-CRITICAL { color: var(--bad); font-weight: 700; } .lv-INFO { color: var(--ink-3); }

/* ---------- bot editor */
.ed { display: grid; grid-template-columns: 250px minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.ed-list { position: sticky; top: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 28px); overflow: auto; }
.ed-list .grp { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 4px; }
.ed-list .grp:first-child { padding-top: 4px; }
.ed-list button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; color: var(--ink-2); font: 600 13px var(--sans); padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.ed-list button:hover { background: var(--glass-2); color: var(--ink); }
.ed-list button.on { background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent) inset; }
.ed-list button .e { width: 26px; text-align: center; font-size: 15px; }
.ed-list button .m { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.ed-list button .c { margin-left: auto; font-size: 10px; color: var(--accent); font-weight: 800; }
.ed-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ed-field { display: flex; flex-direction: column; gap: 8px; }
.ed-field .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; flex-wrap: wrap; }
.ed-field .lbl .vars { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.ed-field .lbl .vars button { border: 1px dashed var(--stroke-2); background: var(--glass); color: var(--accent); font: 600 11.5px var(--mono); padding: 2px 7px; border-radius: 7px; cursor: pointer; }
.ed-field.changed .rte, .ed-field.changed input { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.ed-field .foot { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.toolbar { display: flex; gap: 3px; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); width: fit-content; max-width: 100%; }
.toolbar button { border: 0; background: none; color: var(--ink-2); font: 700 13px var(--sans); min-width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; padding: 0 7px; }
.toolbar button:hover { background: var(--glass-3); color: var(--ink); }
.toolbar .sep { width: 1px; background: var(--stroke-2); margin: 5px 3px; }
.rte { min-height: 44px; padding: 10px 13px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke-2); outline: none; white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.55; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; cursor: text; }
.rte.multi { min-height: 96px; }
.rte:empty::before { content: attr(data-ph); color: var(--ink-3); }
.rte code { font-size: 13px; }
.rte .sp, .tg-text .sp { background: repeating-linear-gradient(45deg, var(--glass-3) 0 4px, transparent 4px 8px); border-radius: 4px; }
.rte blockquote, .tg-text blockquote { margin: 4px 0; padding: 4px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
img.ce { width: 1.3em; height: 1.3em; vertical-align: -0.28em; object-fit: contain; display: inline-block; margin: 0 1px; }
.ce-wrap { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.28em; margin: 0 1px; }
.ce-wrap svg, .ce-wrap video, .ce-wrap img { width: 100% !important; height: 100% !important; }
.lang-sw { display: inline-flex; }

/* the Telegram-like preview */
.phone { position: sticky; top: 14px; border-radius: 30px; padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid var(--stroke-2); box-shadow: var(--shadow-lg); }
.phone .bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; color: #fff; }
.phone .bar .bav { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.phone .bar b { display: block; font-size: 14px; } .phone .bar small { color: rgba(255,255,255,.55); font-size: 12px; }
.tg-chat { border-radius: 22px; background-color: var(--tg-bg); padding: 14px 10px 16px; min-height: 420px; max-height: calc(100vh - 160px); overflow: auto; display: flex; flex-direction: column; gap: 12px;
  background-image: radial-gradient(circle at 20% 10%, rgba(80, 120, 200, .18), transparent 40%), radial-gradient(circle at 90% 80%, rgba(120, 80, 200, .16), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.04' stroke-width='1.5'%3E%3Ccircle cx='15' cy='15' r='5'/%3E%3Cpath d='M40 40l8 8M48 40l-8 8'/%3E%3C/g%3E%3C/svg%3E"); }
.tg-msg { max-width: 100%; align-self: flex-start; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.tg-title { font-size: 11.5px; color: rgba(255,255,255,.5); padding: 0 6px; }
.tg-bubble { background: var(--tg-bubble); color: var(--tg-ink); border-radius: 16px 16px 16px 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tg-media { display: block; width: 100%; height: auto; background: #0b111a; }
.tg-media.skel { border-radius: 0; border: 0; aspect-ratio: 16/9; }
.tg-text { padding: 8px 12px 6px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tg-text a { color: var(--tg-link); }
.tg-text code { background: rgba(255,255,255,.08); border: 0; color: #f0c674; }
.tg-time { text-align: right; font-size: 11px; color: rgba(255,255,255,.45); padding: 0 10px 6px; }
.tg-kb { display: flex; flex-direction: column; gap: 4px; }
.tg-kb .r { display: flex; gap: 4px; }
.tg-kb .b { flex: 1; min-width: 0; padding: 9px 8px; border-radius: 10px; background: var(--tg-btn); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; }
.tg-kb .b span { overflow: hidden; text-overflow: ellipsis; }
.tg-kb .b.primary { background: #3e88f7; } .tg-kb .b.success { background: #34b35a; } .tg-kb .b.danger { background: #e5484d; }
.tg-kb .b .k { position: absolute; right: 6px; top: 4px; font-size: 9px; opacity: .6; }
.tg-kb .b img.ce, .tg-kb .b .ce-wrap { width: 18px; height: 18px; }
.tg-note { font-size: 12px; color: var(--ink-3); padding: 8px 4px 0; text-align: center; }

/* emoji picker */
.ep { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ep-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.ep-tabs button { border: 1px solid var(--stroke); background: var(--glass); color: var(--ink-2); font: 600 12.5px var(--sans); padding: 6px 11px; border-radius: 10px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.ep-tabs button.on { background: var(--accent-soft); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 300px; overflow: auto; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.ep-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 10px; cursor: pointer; display: grid; place-items: center; padding: 5px; position: relative; font-size: 22px; transition: background .12s, transform .12s; }
.ep-grid button:hover { background: var(--glass-3); transform: scale(1.1); }
.ep-grid button img { width: 100%; height: 100%; object-fit: contain; }
.ep-grid button .f { position: absolute; right: 2px; bottom: 1px; font-size: 8px; color: var(--ink-3); }
.ep-grid.big { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); max-height: none; }
.ep-grid.big button .alt { position: absolute; left: 3px; top: 1px; font-size: 10px; }

/* menu builder */
.mb { display: flex; flex-direction: column; gap: 8px; }
.mb-row { display: flex; gap: 6px; align-items: stretch; padding: 6px; border-radius: 14px; background: var(--glass); border: 1px dashed var(--stroke-2); }
.mb-row .grip { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mb-row .grip button { border: 0; background: var(--glass-2); color: var(--ink-3); width: 22px; height: 18px; border-radius: 6px; cursor: pointer; font-size: 10px; line-height: 1; }
.mb-row .grip button:hover { color: var(--ink); background: var(--glass-3); }
.mb-btn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 10px; border-radius: 11px; background: var(--glass-2); border: 1px solid var(--stroke);
  font-weight: 650; font-size: 13.5px; cursor: pointer; position: relative; transition: border-color .15s, transform .12s; }
.mb-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.mb-btn.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mb-btn.primary { background: rgba(62,136,247,.28); } .mb-btn.success { background: rgba(52,179,90,.28); } .mb-btn.danger { background: rgba(229,72,77,.28); }
.mb-btn.extra { border-style: dashed; color: var(--ink-3); font-weight: 600; cursor: default; }
.mb-btn .act { position: absolute; top: -8px; right: 6px; font-size: 9.5px; padding: 0 6px; border-radius: 99px; background: var(--glass-solid); border: 1px solid var(--stroke-2); color: var(--ink-3); font-weight: 700; }
.mb-btn img.ce { width: 20px; height: 20px; }
.mb-add { border: 1px dashed var(--stroke-2); background: none; color: var(--ink-3); border-radius: 11px; cursor: pointer; min-width: 40px; font-size: 18px; }
.mb-add:hover { color: var(--accent); border-color: var(--accent); }
.bedit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bedit .full { grid-column: 1 / -1; }
.icon-pick { display: flex; align-items: center; gap: 10px; }
.icon-pick .cur { width: 44px; height: 44px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke-2); display: grid; place-items: center; font-size: 22px; }
.icon-pick .cur img { width: 30px; height: 30px; }
.style-dots { display: flex; gap: 6px; }
.style-dots button { width: 34px; height: 30px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; background: var(--glass-3); }
.style-dots button.on { border-color: var(--ink); }
.style-dots .primary { background: #3e88f7; } .style-dots .success { background: #34b35a; } .style-dots .danger { background: #e5484d; }

/* emoji page */
.pack { display: flex; flex-direction: column; gap: 12px; }
.pack .ph { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pack .cover { width: 52px; height: 52px; border-radius: 15px; background: var(--glass-2); border: 1px solid var(--stroke); display: grid; place-items: center; overflow: hidden; }
.pack .cover img { width: 38px; height: 38px; object-fit: contain; }
.map-row { display: grid; grid-template-columns: 44px 24px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.map-row .pl { font-size: 24px; text-align: center; }
.map-row .pr { width: 36px; height: 36px; display: grid; place-items: center; }
.map-row .pr img { width: 32px; height: 32px; }

/* export */
.exp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.exp-opt input { flex: none; margin-top: 2px; }
.exp-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--stroke); cursor: pointer; }
.exp-opt:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.exp-opt b { display: block; font-size: 13.5px; } .exp-opt small { color: var(--ink-3); font-size: 12px; }
.prompt-box { white-space: pre-wrap; font-size: 13px; line-height: 1.55; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 14px; padding: 14px; color: var(--ink-2); }

/* ---------- the bot editor 0.9.5: the clickable phone, popovers, the emoji dictionary */
.tg-chat.edit .xt { border-radius: 4px; cursor: text; transition: background .12s, box-shadow .12s; }
.tg-chat.edit .xt.hl { background: rgba(139,123,255,.16); box-shadow: 0 0 0 1px rgba(139,123,255,.55); }
.tg-chat.edit .xv { color: #9fd1ff; }
.tg-chat.edit .xe, .tg-chat.edit .tge { cursor: pointer; border-radius: 6px; }
.tg-chat.edit .xe.hl, .tg-chat.edit .tge.hl { background: rgba(251,191,36,.22); box-shadow: 0 0 0 1px rgba(251,191,36,.7); }
.tg-chat.edit .tge.auto img.ce, .tg-chat.edit .tge.auto .ce-wrap { outline: 1px dashed rgba(251,191,36,.75); outline-offset: 1px; border-radius: 4px; }
.tg-chat.edit .tge.plain { text-decoration: underline dotted rgba(255,255,255,.35); }
.tg-chat.edit .tg-kb .b { cursor: pointer; transition: transform .1s, box-shadow .12s; }
.tg-chat.edit .tg-kb .b:hover { box-shadow: 0 0 0 2px rgba(139,123,255,.75); transform: translateY(-1px); }
.tg-kb .b .bi { display: inline-flex; } .tg-kb .b .bi.auto { outline: 1px dashed rgba(251,191,36,.7); border-radius: 4px; }
.tg-media { position: relative; }
.tg-media.editable { cursor: pointer; }
.tg-media.editable:hover::after { content: '✎ надписи'; position: absolute; right: 8px; top: 8px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.tg-img { display: block; width: 100%; height: auto; }
.tg-nomedia { display: grid; place-items: center; color: #789; font-size: 12px; aspect-ratio: 16/9; }
.tg-alert { align-self: center; width: 84%; margin: 0 auto; background: #1f2b38; color: var(--tg-ink); border-radius: 14px; padding: 14px 16px 6px; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.tg-alert .tg-text { padding: 0; text-align: center; }
.tg-alert .ok { text-align: right; color: var(--tg-link); font-weight: 700; font-size: 13px; padding: 10px 0 6px; }
.tg-toast { align-self: center; margin: 0 auto; max-width: 90%; background: rgba(0,0,0,.72); color: #fff; border-radius: 12px; padding: 2px 6px; }
.tg-toast .tg-text { padding: 6px 8px; font-size: 13px; text-align: center; }
.tg-list { background: var(--tg-bubble); border-radius: 14px; overflow: hidden; }
.tg-list .li { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tg-list .li:last-child { border-bottom: 0; }
.tg-list .li .tg-text { padding: 6px 8px; flex: 1; min-width: 0; }
.tg-list.cmds .li code { color: var(--tg-link); background: none; font-size: 13px; padding-left: 8px; white-space: nowrap; }
.tg-hint { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 8px 6px 0; line-height: 1.4; }
.phone .bar .pv-anim { margin-left: auto; opacity: .55; color: var(--ink); } .phone .bar .pv-anim.on { opacity: 1; background: var(--glass-3); }
.phone .bar { color: var(--ink); } .phone .bar small { color: var(--ink-3); }
.lot { display: block; width: 100%; height: 100%; }
.ce-wrap { position: relative; } .ce-wrap > img.ce { width: 100%; height: 100%; margin: 0; vertical-align: top; }
.ce-wrap .lot + img, .ce-wrap .lot ~ img { display: none; }
.ce-plain { padding: 0 1px; border-bottom: 1px dotted var(--ink-3); }
.pop { position: fixed; z-index: 60; width: 380px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; border-radius: 18px; background: var(--glass-solid); border: 1px solid var(--stroke-2);
  box-shadow: 0 18px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); animation: pop-in .14s ease-out; }
.pop.wide { width: 470px; }
.pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; max-height: 82vh; border-radius: 20px 20px 0 0; }
.pop-h { display: flex; align-items: flex-start; gap: 8px; padding: 14px 14px 10px 16px; border-bottom: 1px solid var(--stroke); position: sticky; top: 0; background: var(--glass-solid); z-index: 1; }
.pop-h b { display: block; font-size: 14.5px; } .pop-h small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; overflow-wrap: anywhere; }
.pop-b { padding: 14px 16px 16px; }
.pop .ep-grid { max-height: 220px; }
.pop .bedit { grid-template-columns: 1fr; }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.emo-big { width: 64px; height: 64px; flex: none; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke-2); display: grid; place-items: center; font-size: 34px; }
.emo-big img.ce, .emo-big .ce-wrap, .emo-big video { width: 46px; height: 46px; margin: 0; vertical-align: top; }
.emo-big.xl { width: 96px; height: 96px; border-radius: 22px; } .emo-big.xl img.ce, .emo-big.xl .ce-wrap, .emo-big.xl video { width: 72px; height: 72px; }
.ed-field.compact .lbl:empty { display: none; }
.ed-field.flash { animation: flash 1.3s ease-out; border-radius: 12px; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); background: var(--accent-soft); } 100% { box-shadow: 0 0 0 0 transparent; background: transparent; } }
.ed-pick { padding: 10px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); }
.ed-search { width: 100%; margin-bottom: 6px; padding: 8px 11px; font-size: 13px; }
.ed-list .grp.fold { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; font: 700 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 4px; }
.ed-list .grp.fold::after { content: ' ▾'; } .ed-list .grp.fold.off::after { content: ' ▸'; }
.ed-list button.hit { align-items: flex-start; }
.ep-grid button .f { position: absolute; right: 3px; bottom: 1px; font-size: 9px; color: var(--warn); }
table.dict td.e { font-size: 22px; white-space: nowrap; }
.dict-cell { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stroke); background: var(--glass-2); border-radius: 11px; padding: 5px 9px; cursor: pointer; color: var(--ink); min-width: 70px; }
.dict-cell:hover { border-color: var(--accent); }
.dict-cell img.ce, .dict-cell .ce-wrap { width: 26px; height: 26px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--ink-2); text-decoration: none; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.chip:hover { color: var(--ink); border-color: var(--accent); }
.switch.small { font-size: 12.5px; }
.savebar.draft { flex-wrap: wrap; row-gap: 8px; }
.savebar.draft.idle { position: static; }
@media (max-width: 1240px) {
  .ed:has(> .ed-list) > .ed-list { grid-column: 1; grid-row: 1 / span 2; }
  .ed:has(> .ed-list) > .phone { grid-column: 2; grid-row: 1; }
  .ed:has(> .ed-list) > .ed-main { grid-column: 2; grid-row: 2; }
}
@media (max-width: 960px) {
  .ed:has(> .ed-list) > .ed-list, .ed:has(> .ed-list) > .phone, .ed:has(> .ed-list) > .ed-main { grid-column: 1; grid-row: auto; }
  .ed > .phone { order: 1; } .ed > .ed-main { order: 2; }
  .tg-chat { max-height: 70vh; min-height: 300px; }
}

/* ---------- responsive */
@media (max-width: 1480px) {
  .ed { grid-template-columns: 210px minmax(0, 1fr) 370px; }
}
@media (max-width: 1240px) {
  .ed { grid-template-columns: 200px minmax(0, 1fr); }
  .ed .phone { grid-column: 1 / -1; position: static; max-width: 460px; justify-self: center; width: 100%; }
}
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treasury { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; margin: 0; height: 100vh; width: min(290px, 86vw); border-radius: 0 22px 22px 0; transform: translateX(-104%); transition: transform .25s cubic-bezier(.2,.8,.2,1); background: var(--glass-2); }
  .side.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(5,4,14,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 14px; background: var(--glass); border-bottom: 1px solid var(--stroke); }
  .topbar .menu { border: 0; background: var(--glass-2); color: var(--ink); width: 38px; height: 38px; border-radius: 12px; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
  .topbar .logo { width: 32px; height: 32px; border-radius: 11px; font-size: 14px; }
  .topbar .cnt { margin-left: auto; background: var(--grad-warm); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 20px; }
  .main { padding: 16px 16px 90px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .ed { grid-template-columns: 1fr; }
  .ed-list { position: static; max-height: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .ed-list .grp { display: none; }
  .ed-list button { flex: none; white-space: nowrap; }
  .phero { grid-template-columns: auto minmax(0, 1fr); }
  .phero .money { grid-column: 1 / -1; text-align: left; }
  .bedit { grid-template-columns: 1fr; }
}
/* 0.9.6: reminder chains and weekly themes */
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.chain .step { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--stroke); min-width: 0; position: relative; }
.chain .step .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, #8b7bff, #22d3ee); color: #fff; }
.chain .step .b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chain .step .nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.chain .step .nums b { color: var(--ink); font-size: 14px; }
.good-t { color: var(--good, #34d399); } .bad-t { color: var(--bad, #fb7185); }
.wk-theme { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--stroke); }
.wk-theme .e { font-size: 22px; line-height: 1.2; }
.wk-theme.cur { border-color: rgba(251, 191, 36, .55); box-shadow: 0 0 0 1px rgba(251, 191, 36, .25) inset; }
.wk-theme.off { opacity: .55; }
@media (max-width: 600px) {
  .top .pic { width: 40px; height: 40px; border-radius: 13px; }
  h1 { font-size: 19px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 116px; padding: 13px; }
  .kpi .k-val { font-size: 23px; } .kpi.hero-kpi .k-val { font-size: 25px; }
  .kpi .k-ic { width: 28px; height: 28px; }
  .treasury .big { font-size: 32px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .chart-box { height: 220px; }
  .phero { padding: 18px; gap: 14px; }
  .phero .ava.xl { width: 72px; height: 72px; font-size: 28px; border-radius: 22px; }
  .phero h2 { font-size: 21px; }
  .log-line { grid-template-columns: 46px 1fr; } .log-line .nm { display: none; }
  .bars .b { grid-template-columns: minmax(70px, 1fr) minmax(60px, 1.4fr) auto; }
  .map-row { grid-template-columns: 36px 18px 36px minmax(0, 1fr); } .map-row > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .ed-list { flex-direction: column; }
  .ed-list > .col { flex-direction: row !important; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .ed-list .grp.fold { display: none; }
  .ed-list button.hit { white-space: normal; max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.field > .seg { align-self: flex-start; }
