@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Golos"; src: url("fonts/golos-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos"; src: url("fonts/golos-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos"; src: url("fonts/golos-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #07090c;
  --bg-side: #0a0d11;
  --surface: #0f1217;
  --surface-2: #141820;
  --surface-3: #1a1f28;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .1);
  --text: #eef2f4;
  --text-2: #b3bec7;
  --muted: #74808b;
  --faint: #4a545d;
  --accent: #31dc91;
  --accent-hi: #00f2a4;
  --accent-lo: #0f7a54;
  --accent-ink: #062218;
  --accent-soft: rgba(49, 220, 145, .1);
  --accent-line: rgba(49, 220, 145, .28);
  --gold: #e6c27a;
  --gold-soft: rgba(230, 194, 122, .1);
  --gold-line: rgba(230, 194, 122, .28);
  --danger: #ef6b7f;
  --danger-soft: rgba(239, 107, 127, .1);
  --danger-line: rgba(239, 107, 127, .3);
  --warn: #f0b45a;
  --warn-soft: rgba(240, 180, 90, .1);
  --info: #86b6d9;
  --info-soft: rgba(134, 182, 217, .1);
  --radius: 10px;
  --radius-sm: 7px;
  --side: 256px;
  --head: "Gilroy", "Golos", system-ui, sans-serif;
  --body: "Golos", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--body);
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
::selection { background: rgba(49, 220, 145, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; }
.brand img { width: 34px; height: 35px; }
.brand-name { font: 700 16px/1.1 var(--head); letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav { padding: 6px 12px 18px; flex: 1; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-title { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 0 10px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 10px;
  border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s;
}
.nav-item .icon { color: var(--muted); transition: color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(49, 220, 145, .12), rgba(49, 220, 145, .02) 70%); }
.nav-item.active .icon { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; border-radius: 0 2px 2px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.side-foot { padding: 14px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.me:hover { background: var(--surface-2); color: inherit; }
.me-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.me-role { font-size: 11.5px; color: var(--muted); }
.env { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px; }
.env-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.env-staging .env-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.env-development .env-dot { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 32px;
  background: rgba(7, 9, 12, .82); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line);
}
.menu-toggle { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.crumbs .current { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.quick { position: relative; }
.quick input { width: 260px; height: 36px; padding: 0 12px 0 36px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: inherit; font-size: 13px; }
.quick input::placeholder { color: var(--muted); }
.quick input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.quick .icon { position: absolute; left: 11px; top: 9px; color: var(--muted); }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 0 4px; }
.clock b { font: 600 15px var(--head); letter-spacing: .02em; }
.clock span { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.content { padding: 30px 32px 64px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; line-height: 1.15; }
.page-head .lead { color: var(--muted); margin-top: 6px; max-width: 760px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* flash */
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 22px; border: 1px solid; font-size: 13.5px; animation: rise .35s ease; }
.flash-success { background: var(--accent-soft); border-color: var(--accent-line); color: #bff3d9; }
.flash-error { background: var(--danger-soft); border-color: var(--danger-line); color: #ffc9d1; }
.flash-info { background: var(--info-soft); border-color: rgba(134, 182, 217, .3); color: #d4e7f4; }
.flash .close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* surfaces */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0) 120px), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-head h2, .card-head h3 { font-size: 15px; }
.card-head .hint { font-size: 12.5px; color: var(--muted); }
.card-body { padding: 18px 20px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.card.flush .card-body { padding: 0; }
.section-title { font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.g-wide { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }

/* kpi */
.kpi { padding: 18px 20px; overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset: auto 20px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-line), transparent); opacity: 0; transition: opacity .2s; }
.kpi:hover::after { opacity: 1; }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi-label .icon { width: 16px; height: 16px; color: var(--faint); }
.kpi-value { font: 600 30px/1.1 var(--head); margin-top: 12px; letter-spacing: -.02em; }
.kpi-value small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.kpi-meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.kpi-meta b { color: var(--text-2); font-weight: 500; }
.gold { color: var(--gold); }
.green { color: var(--accent); }
.red { color: var(--danger); }
.dim { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--accent); }

.attention { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.attention a { padding: 16px 20px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); transition: background .15s; }
.attention a:last-child { border-right: 0; }
.attention a:hover { background: var(--surface-2); color: inherit; }
.attention .num { font: 600 24px var(--head); min-width: 34px; }
.attention .num.hot { color: var(--gold); }
.attention .txt { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.attention .txt b { display: block; color: var(--text); font-size: 13.5px; font-weight: 500; }

/* chart */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: url(#barGradient); transition: opacity .15s; }
.chart .bar-bg { fill: rgba(255, 255, 255, .025); }
.chart g:hover .bar { fill: var(--accent-hi); }
.chart .tick { fill: var(--muted); font: 11px var(--body); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 2 4; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { width: 140px; height: 140px; flex: none; }
.donut circle { fill: none; stroke-width: 14; }
.donut .track { stroke: var(--surface-3); }
.donut .seg-seka { stroke: var(--accent); }
.donut .seg-ochko { stroke: var(--gold); }
.donut .seg-khrap { stroke: var(--info); }
.donut text { fill: var(--text); font: 600 22px var(--head); text-anchor: middle; }
.donut .sub { fill: var(--muted); font: 500 10px var(--body); letter-spacing: .12em; }
.legend { display: grid; gap: 12px; flex: 1; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-seka { background: var(--accent); }
.sw-ochko { background: var(--gold); }
.sw-khrap { background: var(--info); }
.legend-row .val { margin-left: auto; color: var(--text-2); }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
.meter.gold i { background: linear-gradient(90deg, #8a6a2c, var(--gold)); }
.bar-list { display: grid; gap: 14px; }
.bar-list .row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.code-badge { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line-2); font: 600 10.5px var(--mono); letter-spacing: .04em; color: var(--text-2); background: var(--surface-2); }
.p0 { width: 0; } .p5 { width: 5%; } .p10 { width: 10%; } .p15 { width: 15%; } .p20 { width: 20%; } .p25 { width: 25%; } .p30 { width: 30%; } .p35 { width: 35%; } .p40 { width: 40%; } .p45 { width: 45%; } .p50 { width: 50%; } .p55 { width: 55%; } .p60 { width: 60%; } .p65 { width: 65%; } .p70 { width: 70%; } .p75 { width: 75%; } .p80 { width: 80%; } .p85 { width: 85%; } .p90 { width: 90%; } .p95 { width: 95%; } .p100 { width: 100%; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, .012); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.table tbody tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .num, .table th.num { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table .row-link { font-weight: 500; color: var(--text); }
.table .row-link:hover { color: var(--accent); }
.table .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.table.compact td { padding-top: 9px; padding-bottom: 9px; }
.table tr.is-off td { opacity: .55; }
.id { font: 500 12px var(--mono); color: var(--muted); }

.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 600 12px var(--head); color: var(--text-2); letter-spacing: .02em;
  background: radial-gradient(circle at 30% 25%, #26302f, #12161b 70%); border: 1px solid var(--line-2); position: relative;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; border-width: 2px; }
.avatar .online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.avatar.vip-gold { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.avatar.vip-silver { border-color: #c9d1d8; }
.avatar.vip-bronze { border-color: #c48a5a; }

/* pills & tags */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.ok { color: var(--accent); background: var(--accent-soft); border-color: rgba(49, 220, 145, .18); }
.pill.warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(240, 180, 90, .2); }
.pill.bad { color: var(--danger); background: var(--danger-soft); border-color: rgba(239, 107, 127, .2); }
.pill.info { color: var(--info); background: var(--info-soft); border-color: rgba(134, 182, 217, .2); }
.pill.muted { color: var(--muted); background: rgba(255, 255, 255, .03); border-color: var(--line); }
.pill.gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.tag.vip { background: linear-gradient(135deg, #3a2c12, #20180a); color: var(--gold); border: 1px solid var(--gold-line); letter-spacing: .06em; font-weight: 600; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-amount { font-weight: 600; color: var(--gold); white-space: nowrap; }
.chip-amount::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1c9, var(--gold) 45%, #8a6a2c); vertical-align: 0; }
.usdt-amount { font-weight: 600; color: #7fd8b6; white-space: nowrap; }
.amount-plus { color: var(--accent); font-weight: 600; white-space: nowrap; }
.amount-minus { color: var(--danger); font-weight: 600; white-space: nowrap; }
.pc { display: inline-grid; place-items: center; min-width: 30px; height: 40px; padding: 0 4px; margin-right: 4px; border-radius: 5px; background: linear-gradient(180deg, #f6f8f7, #dfe5e2); color: #11161b; font: 700 13px var(--head); border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pc.pc--red { color: #c8233b; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px;
  font: 500 13.5px var(--body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
}
.btn:hover { border-color: rgba(255, 255, 255, .2); color: var(--text); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  color: #fff; border-color: rgba(0, 242, 164, .35);
  background:
    linear-gradient(45deg, rgba(217, 217, 217, .07) 25%, transparent 25%, transparent 75%, rgba(217, 217, 217, .07) 75%) 0 0 / 4px 4px,
    linear-gradient(45deg, rgba(217, 217, 217, .07) 25%, transparent 25%, transparent 75%, rgba(217, 217, 217, .07) 75%) 2px 2px / 4px 4px,
    linear-gradient(180deg, #18b97f, #0b6d4c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 18px -8px rgba(0, 242, 164, .55);
  font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(180deg, #1fca8d, #0d7a55); border-color: rgba(0, 242, 164, .55); color: #fff; }
.btn-danger { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.btn-danger:hover { background: rgba(239, 107, 127, .16); border-color: var(--danger); color: #ffb3bf; }
.btn-gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.btn-gold:hover { color: #f4dca8; border-color: var(--gold); background: rgba(230, 194, 122, .16); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; height: 44px; font-size: 14.5px; }
.btn-icon { width: 36px; padding: 0; }
.inline-form { display: inline; margin: 0; }

/* forms */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 16px; }
.label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.textarea.tall { min-height: 360px; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2374808b' stroke-width='1.6'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input-sm, .select-sm { height: 32px; font-size: 13px; }
.input-xs { height: 30px; font-size: 12.5px; padding: 0 9px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .unit { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 8px 8px 0; background: var(--surface-3); color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 11px; background: rgba(45, 46, 52, .8); border: 1px solid rgba(103, 103, 103, .55); position: relative; transition: background .2s, border-color .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #5a5f66; transition: transform .2s, background .2s; }
.switch input:checked + .track { background: linear-gradient(180deg, #19b47c, #0b6d4c); border-color: rgba(0, 242, 164, .45); }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch input:disabled + .track { opacity: .5; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar .input, .toolbar .select { height: 34px; font-size: 13px; }
.toolbar .select { width: auto; min-width: 150px; }
.toolbar .search { position: relative; }
.toolbar .search .icon { position: absolute; left: 11px; top: 8px; color: var(--muted); width: 17px; }
.toolbar .search .input { padding-left: 34px; }

.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { height: 30px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border-radius: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs .count { font-size: 11px; color: var(--faint); font-weight: 600; }
.tabs a.on .count { color: var(--gold); }
.tabs.in-card { margin: 0; border: 0; background: transparent; padding: 0; }

/* settings */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.settings-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 7px; font-size: 13px; color: var(--text-2); }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); }
.settings-nav a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.settings-nav .n { font-size: 11px; color: var(--gold); }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 24px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: center; }
.setting:first-of-type { border-top: 0; }
.setting-title { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.setting-title .changed { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.setting .help { margin-top: 3px; }
.setting-key { font: 11px var(--mono); color: var(--faint); margin-top: 4px; }
.setting-control { display: flex; justify-content: flex-end; }
.setting-control .input-group, .setting-control > .input, .setting-control > .select, .setting-control > .textarea { width: 100%; }
.weekdays { display: flex; gap: 4px; }
.weekdays label { position: relative; }
.weekdays input { position: absolute; opacity: 0; }
.weekdays span { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12.5px; color: var(--muted); cursor: pointer; }
.weekdays input:checked + span { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; margin-top: 16px; background: rgba(15, 18, 23, .94); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .6); }
.savebar .state { font-size: 13px; color: var(--muted); }
.savebar.dirty .state { color: var(--gold); }

.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.group-card { padding: 18px 20px; display: grid; gap: 10px; transition: border-color .15s, transform .15s; }
.group-card:hover { border-color: var(--accent-line); color: inherit; transform: translateY(-1px); }
.group-card h3 { font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; }
.group-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.group-card .meta { display: flex; gap: 12px; font-size: 12px; color: var(--faint); }

/* definitions */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); text-align: right; word-break: break-word; }
.kv-list { display: grid; }
.kv-list .kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv-list .kv:last-child { border-bottom: 0; }
.kv-list .kv span:first-child { color: var(--muted); }

/* profile header */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 24px; }
.profile-head h1 { font-size: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-head .meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 13px; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.balances { display: flex; gap: 28px; margin-left: auto; padding-left: 24px; border-left: 1px solid var(--line); }
.balance-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.balance-value { font: 600 24px var(--head); margin-top: 4px; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--danger-line); background: var(--danger-soft); margin-bottom: 16px; font-size: 13.5px; color: #ffd0d7; }
.alert.warn { border-color: rgba(240, 180, 90, .3); background: var(--warn-soft); color: #f8ddb2; }
.alert.info { border-color: rgba(134, 182, 217, .3); background: var(--info-soft); color: #d4e7f4; }
.alert .icon { margin-top: 1px; }
.game-stat { padding: 18px 20px; }
.game-stat .head { display: flex; align-items: center; justify-content: space-between; }
.game-stat h3 { font-size: 16px; }
.rank-badge { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: 12px; font-size: 12px; font-weight: 600; border: 1px solid; }
.rank-bronze { color: #d6a073; border-color: rgba(214, 160, 115, .35); background: rgba(214, 160, 115, .08); }
.rank-silver { color: #cfd7de; border-color: rgba(207, 215, 222, .3); background: rgba(207, 215, 222, .06); }
.rank-gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.rank-platinum { color: #a9e4e0; border-color: rgba(169, 228, 224, .3); background: rgba(169, 228, 224, .07); }
.rank-diamond { color: #9fc9ff; border-color: rgba(159, 201, 255, .32); background: rgba(159, 201, 255, .08); }
.rank-ruby { color: #ff7a93; border-color: rgba(255, 122, 147, .35); background: rgba(255, 122, 147, .08); }
.rank-badge .stars { letter-spacing: -1px; font-size: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat-row div { padding: 10px 12px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--line); }
.stat-row b { display: block; font: 600 17px var(--head); }
.stat-row span { font-size: 11.5px; color: var(--muted); }

.timeline { display: grid; }
.timeline .ev { display: grid; grid-template-columns: 60px 18px 1fr; gap: 10px; padding: 10px 0; position: relative; }
.timeline .ev .t { font: 500 12px var(--mono); color: var(--muted); padding-top: 2px; }
.timeline .ev .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--accent-lo); margin-top: 6px; position: relative; z-index: 1; }
.timeline .ev::before { content: ""; position: absolute; left: 74px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline .ev:first-child::before { top: 16px; }
.timeline .ev:last-child::before { bottom: calc(100% - 16px); }
.timeline .ev.win .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline .what { font-weight: 500; }
.timeline .what .dim { font-weight: 400; }
.timeline .cards { margin-top: 6px; }
.feed { display: grid; }
.feed .item { display: flex; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.feed .item:first-child { border-top: 0; }
.feed .item .when { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.feed .item .marker { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-lo); margin-top: 7px; flex: none; box-shadow: 0 0 0 3px rgba(15, 122, 84, .2); }
.health { display: grid; }
.health .row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.health .row:first-child { border-top: 0; }
.health .row .detail { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-dot.ok { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.status-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.status-dot.muted { background: var(--faint); }

.seats { display: inline-flex; gap: 4px; }
.seats i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; }
.seats i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px rgba(49, 220, 145, .4); }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty .suit { font-size: 30px; color: var(--faint); letter-spacing: 12px; margin-bottom: 12px; }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; font-weight: 500; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager nav { display: flex; gap: 4px; }
.pager a, .pager span.gap { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 7px; border: 1px solid transparent; color: var(--text-2); }
.pager a:hover { border-color: var(--line-2); color: var(--text); }
.pager a.on { background: var(--surface-3); border-color: var(--line-2); color: var(--text); font-weight: 600; }

.game-card { overflow: hidden; }
.game-card .cover { height: 112px; position: relative; padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 85% 0%, rgba(49, 220, 145, .22), transparent 55%), linear-gradient(180deg, #0f1a17, #0c1013); }
.game-card.ochko .cover { background: radial-gradient(120% 140% at 85% 0%, rgba(230, 194, 122, .22), transparent 55%), linear-gradient(180deg, #1a1710, #0c1013); }
.game-card.khrap .cover { background: radial-gradient(120% 140% at 85% 0%, rgba(134, 182, 217, .22), transparent 55%), linear-gradient(180deg, #10161b, #0c1013); }
.game-card .cover h2 { font-size: 26px; }
.game-card .suits { position: absolute; right: 18px; top: 12px; font-size: 42px; letter-spacing: -6px; color: rgba(255, 255, 255, .07); font-family: Georgia, serif; }
.game-card .numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.game-card .numbers div { padding: 14px 18px; border-right: 1px solid var(--line); }
.game-card .numbers div:last-child { border-right: 0; }
.game-card .numbers b { display: block; font: 600 20px var(--head); }
.game-card .numbers span { font-size: 11.5px; color: var(--muted); }

.zone-city { display: flex; align-items: center; gap: 12px; }
.zone-num { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); font: 600 12px var(--head); color: var(--text-2); border: 1px solid var(--line-2); }
.edit-row td { background: var(--surface-2); }
.edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }

.podium { color: var(--gold); font-weight: 700; }
.place { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 12px var(--head); background: var(--surface-3); color: var(--text-2); }
.place.p1 { background: linear-gradient(135deg, #f4dca8, #b4883c); color: #2a1e08; width: 26px; }
.place.p2 { background: linear-gradient(135deg, #eef2f5, #8f9aa3); color: #1a1f24; width: 26px; }
.place.p3 { background: linear-gradient(135deg, #e6b089, #8a5530); color: #2a160a; width: 26px; }

.thread { display: grid; gap: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; }
.msg.staff { margin-left: auto; background: linear-gradient(180deg, rgba(49, 220, 145, .1), rgba(49, 220, 145, .04)); border-color: var(--accent-line); }
.msg .by { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; white-space: normal; }

.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.avatar-tile { padding: 14px; display: grid; gap: 12px; }
.avatar-tile .shot { aspect-ratio: 1; border-radius: 10px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%) 0 0 / 18px 18px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.avatar-tile .shot img { width: 100%; height: 100%; object-fit: cover; }

.secret { font: 600 15px var(--mono); letter-spacing: .08em; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line-2); text-align: center; color: var(--accent); word-break: break-all; }
.qr { width: 196px; height: 196px; padding: 10px; border-radius: 12px; background: #fff; display: block; margin: 0 auto; image-rendering: pixelated; }
.pre { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.6 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--text-2); margin: 0; max-height: 520px; overflow: auto; }
.hash { font: 11.5px var(--mono); color: var(--muted); word-break: break-all; }

dialog.modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
dialog.modal::backdrop { background: rgba(3, 5, 7, .72); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.modal-x:hover { color: var(--text); background: var(--surface-2); }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); }
.auth-art {
  position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 30% 35%, rgba(0, 242, 164, .14), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(230, 194, 122, .08), transparent 70%),
    linear-gradient(180deg, #0a0f10, #06080a);
}
.auth-art::before {
  content: "♠ ♥ ♦ ♣"; position: absolute; right: -40px; bottom: 60px; font: 220px/1 Georgia, serif; letter-spacing: -40px; color: rgba(255, 255, 255, .025); white-space: nowrap; transform: rotate(-12deg);
}
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 35% 40%, #000, transparent); pointer-events: none; }
.auth-logo { width: 210px; position: relative; z-index: 1; }
.auth-claim { position: relative; z-index: 1; max-width: 520px; }
.auth-claim h1 { font-size: 44px; line-height: 1.06; letter-spacing: -.02em; }
.auth-claim h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-claim p { color: var(--text-2); margin-top: 16px; font-size: 15px; max-width: 440px; }
.auth-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 560px; }
.auth-facts div { background: rgba(8, 11, 13, .9); padding: 16px 18px; }
.auth-facts b { display: block; font: 600 13px var(--head); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.auth-facts b .icon { color: var(--accent); width: 16px; height: 16px; }
.auth-facts span { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; }
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 88px); }
.auth-form { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-form h2 { font-size: 26px; }
.auth-form .lead { color: var(--muted); margin: 8px 0 28px; }
.auth-form .field + .field { margin-top: 18px; }
.auth-form .input { height: 46px; font-size: 14.5px; background: var(--surface); }
.auth-form .btn-block { margin-top: 26px; }
.auth-error { display: flex; gap: 10px; padding: 12px 14px; border-radius: 9px; background: var(--danger-soft); border: 1px solid var(--danger-line); color: #ffc9d1; font-size: 13px; margin-bottom: 20px; }
.auth-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.code-input { font: 600 26px var(--mono) !important; letter-spacing: .5em; text-align: center; padding-left: .5em !important; height: 58px !important; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; }
.pw-toggle:hover { color: var(--text); }
.steps { display: flex; gap: 14px; margin-bottom: 24px; }
.steps div { flex: 1; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--surface-3); }
.steps div.on { border-color: var(--accent); color: var(--text); }
.status-page { text-align: center; }
.status-code { font: 700 96px/1 var(--head); background: linear-gradient(180deg, var(--text), rgba(238, 242, 244, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }

.muted-block { color: var(--muted); font-size: 13px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.clip { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-line { white-space: pre-line; }
.small { font-size: 12.5px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.danger-zone { border-color: var(--danger-line); }
.danger-zone .card-head h3 { color: var(--danger); }

@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-wide { grid-template-columns: minmax(0, 1fr); }
  .attention { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attention a:nth-child(2) { border-right: 0; }
  .attention a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  .menu-toggle { display: inline-flex; }
  .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .quick input { width: 180px; }
  .balances { margin-left: 0; padding-left: 0; border-left: 0; }
  .profile-head { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .content { padding: 22px 16px 48px; }
  .top { padding: 0 16px; }
  .quick, .clock { display: none; }
  .g-4 { grid-template-columns: minmax(0, 1fr); }
  .setting { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .setting-control { justify-content: flex-start; }
  .form-row, .form-row-3, .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .attention { grid-template-columns: minmax(0, 1fr); }
  .attention a { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.actions.center { justify-content: center; }
.sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; font-weight: 400; }
.line { display: flex; justify-content: space-between; gap: 10px; }
.feed .item b { font-weight: 600; }
.form-row > .field + .field, .form-row-3 > .field + .field, .edit-grid > .field + .field { margin-top: 0; }
.form-row + .field, .form-row-3 + .field { margin-top: 16px; }
.toolbar .input { width: auto; flex: 0 1 200px; }
.toolbar .input[type=date] { flex: 0 0 150px; }
.toolbar .grow, .toolbar .search.grow { flex: 1 1 260px; }
.toolbar .search .input { width: 100%; }
.card-body, .stack, .card { min-width: 0; }
.card.flush .card-body { overflow-x: auto; }
.tags.nowrap { flex-wrap: nowrap; }
