/* Arizona Training admin panel. Dark by default; a light variant follows the OS setting.
   Shape rule: cards 16px, controls 10px, tags / segmented controls / primary CTA are pills. One accent (blue). */
:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --card: #14161b;
  --card-2: #1a1d23;
  --card-3: #22262e;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eef0f4;
  --muted: #8a91a0;
  --accent: #3987e5;
  --accent-2: #5598e7;
  --accent-soft: rgba(57, 135, 229, .16);
  --accent-ink: #ffffff;
  --green: #21b55a;
  --green-soft: rgba(33, 181, 90, .14);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, .14);
  --orange: #f0a030;
  --orange-soft: rgba(240, 160, 48, .14);
  --violet: #9085e9;
  --amber: #f0b232;
  --input: #0f1116;
  --grid: rgba(255, 255, 255, .06);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-pop: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  --r-card: 16px;
  --r: 10px;
  --rail: 68px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f4f8;
    --card: #ffffff;
    --card-2: #f6f7fa;
    --card-3: #eceef3;
    --line: rgba(15, 23, 42, .08);
    --line-2: rgba(15, 23, 42, .14);
    --text: #12141a;
    --muted: #667085;
    --accent: #2a78d6;
    --accent-2: #3987e5;
    --accent-soft: rgba(42, 120, 214, .12);
    --green: #17a34a;
    --green-soft: rgba(23, 163, 74, .12);
    --red: #d93d3d;
    --red-soft: rgba(217, 61, 61, .1);
    --orange: #d97706;
    --orange-soft: rgba(217, 119, 6, .12);
    --violet: #6d5ce7;
    --amber: #d9900c;
    --input: #ffffff;
    --grid: rgba(15, 23, 42, .07);
    --shadow: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-pop: 0 18px 44px rgba(16, 24, 40, .16), 0 0 0 1px rgba(15, 23, 42, .06);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--accent-2); }
code, .mono { font: 12px/1.4 ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.green { color: var(--green); }
.red { color: var(--red); }
.orange { color: var(--orange); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 14.5px; margin: 0 0 12px; font-weight: 650; }
h2 a { text-decoration: none; }
h3 { font-size: 16px; margin: 0; font-weight: 650; }

/* ---------------------------------------------------------------- shell: icon rail + top bar */
body.app { display: block; min-height: 100vh; }
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: var(--card); border-right: 1px solid var(--line); }
.rail-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; letter-spacing: -.02em; text-decoration: none; margin-bottom: 8px; }
.rail-logo:hover { color: var(--accent-ink); filter: brightness(1.08); }
.rail-nav, .rail-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rail-foot { margin-top: auto; }
.rail-sep { width: 22px; height: 1px; background: var(--line-2); margin: 6px 0; }
.rail-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); text-decoration: none; transition: background .12s, color .12s; }
.rail-btn:hover { background: var(--card-3); color: var(--text); }
.rail-btn.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(57, 135, 229, .35); }
.rail-btn .ico { width: 19px; height: 19px; }
.ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.frame { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topsearch { position: relative; width: 300px; }
.topsearch .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.topsearch input { padding: 8px 40px 8px 34px; border-radius: 999px; background: var(--card); }
.topsearch kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px/1 ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; background: var(--card-2); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg-item { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 550; font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg-item small { font-weight: 450; opacity: .7; }
.seg-item:hover { color: var(--text); }
.seg-item.on { background: var(--accent); color: var(--accent-ink); }
.seg.small .seg-item { padding: 4px 10px; font-size: 12px; }
.me { position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.me summary::-webkit-details-marker { display: none; }
.me summary:hover { border-color: var(--line-2); }
.me summary .ico { width: 14px; height: 14px; color: var(--muted); }
.me-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; max-width: 170px; }
.me-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #6f4df0); color: #fff; font-size: 12px; font-weight: 700; }
.avatar.big { width: 54px; height: 54px; font-size: 22px; border-radius: 16px; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; padding: 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-pop); z-index: 50; }
.popover .field { margin-bottom: 8px; }
.popover p { margin: 0 0 8px; }
.popover hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.popover-link { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.popover-link:hover { background: var(--card-2); color: var(--text); }
.popover-link.danger { color: var(--red); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--card-2); border-color: var(--line); }

.wrap { width: 100%; max-width: 1400px; padding: 24px 28px 96px; }
.login-page { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; padding: 16px; background: radial-gradient(60rem 30rem at 50% -10%, var(--accent-soft), transparent 70%); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.head p { margin: 0; }
.back { display: inline-block; text-decoration: none; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.mini-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12px; text-decoration: none; vertical-align: middle; }
.mini-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mini-pill i.ok { background: var(--green); }
.mini-pill i.bad { background: var(--red); }
.mini-pill:hover { color: var(--text); border-color: var(--line-2); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 440px; margin: 40px auto; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head.pad { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head a { text-decoration: none; }
.scroll-x { overflow-x: auto; }
.card.details { padding: 0; }
.card.details summary { padding: 14px 20px; cursor: pointer; list-style: none; }
.card.details summary::-webkit-details-marker { display: none; }
.card.details summary h2 { margin: 0; display: inline; }
.card.details > p, .card.details > div { padding: 0 20px 16px; }
.card.details.method summary { display: flex; align-items: baseline; gap: 10px; }
.card.details.method p { margin: 0 0 8px; max-width: 900px; line-height: 1.55; }
.card.details.method p:last-child { margin-bottom: 0; }

.login { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.brand-text small { font-weight: 400; color: var(--muted); font-size: 12px; }
.login .brand { margin-bottom: 8px; }
.login .field { margin: 0; }
.login .btn { padding: 10px; margin-top: 4px; }

/* ---------------------------------------------------------------- forms & buttons */
input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line-2); border-radius: var(--r); padding: 7px 11px; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 72px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.numeric { font-variant-numeric: tabular-nums; }
input.changed { border-color: var(--accent); background: var(--accent-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; }
input.copy { cursor: copy; }
form.readonly .field b { font-weight: 500; }

.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; font-weight: 550; font-size: 13.5px; transition: border-color .12s, background .12s, color .12s, transform .08s; }
.btn:hover { color: var(--text); border-color: var(--muted); background: var(--card-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.btn.primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn.pill { border-radius: 999px; padding-inline: 16px; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; font-weight: 650; }
.btn.danger-ghost { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line-2)); }
.btn.danger-ghost:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn .ico { width: 15px; height: 15px; }
button.link { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }

.flash { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--card); border-left-width: 3px; }
.flash.error { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.flash.ok { border-left-color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--card)); }
.flash.info { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.login-page .flash { width: 100%; max-width: 380px; margin: 0; }

.search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; width: 300px; }
.search-box .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 32px; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.check.warn { color: var(--red); }

.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chips.filters { margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 500; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.chip small { opacity: .7; }
.chip.static { cursor: default; }
.chip.static:hover { border-color: var(--line-2); color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .chips.filters { margin: 0; }
.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- tables */
table.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grid th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.grid th a { text-decoration: none; }
.grid th.sorted { color: var(--accent-2); }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid td a { text-decoration: none; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.empty { text-align: center; color: var(--muted); padding: 36px; }
.grid td.acts { width: 1%; white-space: nowrap; text-align: right; position: relative; }
.grid td.tags { white-space: nowrap; }
.grid td.tags .badge { margin-right: 4px; }
.grid tr.dim td { color: var(--muted); }
.grid tr.dim td a, .grid tr.dim td b { color: var(--muted); }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
table.events td.event-text { word-break: break-word; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; line-height: 1.5; }
.badge.green { color: var(--green); border-color: transparent; background: var(--green-soft); }
.badge.amber { color: var(--amber); border-color: transparent; background: color-mix(in srgb, var(--amber) 14%, transparent); }
.badge.violet { color: var(--violet); border-color: transparent; background: color-mix(in srgb, var(--violet) 14%, transparent); }
.badge.red { color: var(--red); border-color: transparent; background: var(--red-soft); }
.badge.orange { color: var(--orange); border-color: transparent; background: var(--orange-soft); }
.badge.blue { color: var(--accent-2); border-color: transparent; background: var(--accent-soft); }
.badge.grey { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.status.on { color: var(--green); font-weight: 600; }
.status.on::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.lnk { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.lnk:hover { text-decoration: underline; }

.pager { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.toolbar .pager { margin: 0; justify-content: flex-end; }
.pager-links { display: flex; align-items: center; gap: 3px; }
.pager .btn.sm { padding: 4px 9px; }
.pager .btn[aria-disabled], .pager .btn.disabled { opacity: .35; pointer-events: none; }
.pnum { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border-radius: 8px; text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
a.pnum:hover { background: var(--card-2); color: var(--text); }
.pnum.cur { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.pager-jump { display: flex; align-items: center; gap: 6px; }
.pager-jump input[type=number] { width: 72px; padding: 4px 8px; text-align: center; }

/* ---------------------------------------------------------------- dashboard */
.dash-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-mid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-top > .card, .dash-mid > .card { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.tiny { font-size: 11px; padding: 2px 8px; font-weight: 550; }
.pill.up { color: var(--green); background: var(--green-soft); }
.pill.down { color: var(--red); background: var(--red-soft); }
.pill.wait { color: var(--muted); background: var(--card-2); }
.hero-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }
.hero-row.compact { margin: 0 0 6px; }
.hero-num { font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.hero-num.small { font-size: 30px; }
.delta { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.delta.up { color: var(--green); background: var(--green-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }
.delta-inline { font-size: 12px; font-weight: 600; }
.delta-inline.up { color: var(--green); }
.delta-inline.down { color: var(--red); }

.chart { position: relative; margin: 6px 0 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart.line svg { height: 220px; }
.chart.bars svg { height: 168px; }
.chart.loading svg { opacity: .45; transition: opacity .2s; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--card-3); box-shadow: var(--shadow-pop); font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); }
.chart-tip b { display: block; font-size: 14px; }
.chart-tip .muted { display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; }
.chart .series { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; }
.chart .end-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart .crosshair { stroke: var(--line-2); stroke-width: 1; }
.chart .hover-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart .bar { fill: var(--accent); opacity: .28; transition: opacity .12s; }
.chart .bar.today { opacity: 1; }
.chart .bar:hover, .chart .bar.hover { opacity: .6; }
.chart .bar.today:hover { opacity: .85; }
.chart .bar-stub { fill: var(--line-2); }
.chart .today-tag { fill: var(--accent); }
.chart .today-tag-text { fill: var(--accent-ink); font-size: 10px; font-weight: 650; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tile { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.tile-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); color: var(--accent-2); }
.tile small { display: block; color: var(--muted); font-size: 12px; }
.tile b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tile .delta-inline, .tile .muted.small { display: block; }

.brief { display: flex; flex-direction: column; gap: 10px; }
.brief-head { display: flex; justify-content: space-between; align-items: center; }
.brief-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-size: 12px; font-weight: 650; }
.brief-tag .ico { width: 14px; height: 14px; }
.brief-title { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.brief-label { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.drivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.drivers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.drivers li span { color: var(--muted); }
.drivers b { font-weight: 650; }
.drivers b.up { color: var(--green); }
.drivers b.down { color: var(--red); }
.step { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.step.warn { background: var(--orange-soft); }
.step.bad { background: var(--red-soft); }
.step.ok { background: var(--green-soft); }
.step-label { font-size: 11.5px; font-weight: 650; color: var(--accent-2); margin-bottom: 4px; }
.step.warn .step-label { color: var(--orange); }
.step.bad .step-label { color: var(--red); }
.step.ok .step-label { color: var(--green); }
.step b { display: block; font-size: 14px; }
.step p { margin: 4px 0 10px; font-size: 13px; color: var(--text); opacity: .85; }
.step p:last-child { margin-bottom: 0; }

.legend-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.legend-rows li { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.legend-rows li span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.accent { background: var(--accent); }
.dot.soft { background: var(--accent); opacity: .3; }
.foot-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.foot-note a { text-decoration: none; color: var(--text); }

.activity { list-style: none; margin: 0; padding: 6px 0; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 9px 20px; }
.activity li + li { border-top: 1px solid var(--line); }
.activity li.pad { padding: 18px 20px; }
.act-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; color: #fff; }
.act-ico.ban { background: #b33a3f; }
.act-ico.kick { background: #a2452c; }
.act-ico.mute { background: #5d5aa8; }
.act-ico.msg { background: #2f6fbe; }
.act-ico.money { background: #1f8a4c; }
.act-ico.key { background: #7a6a2c; }
.act-ico.edit { background: #4b5563; }
.act-ico.fw { background: #8c3b52; }
.act-ico .ico { width: 16px; height: 16px; }
.act-text { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.act-text b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-text a { text-decoration: none; }
.act-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-val { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.meter-top b { font-weight: 650; }
.meter-dots { position: relative; height: 8px; background: radial-gradient(circle, var(--line-2) 1.5px, transparent 1.7px) 0 50% / 7px 8px repeat-x; }
.meter-dots span { display: block; height: 100%; background: radial-gradient(circle, var(--accent) 1.6px, transparent 1.8px) 0 50% / 7px 8px repeat-x; }
.meters small { display: block; margin-top: 5px; }
.hint { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; }
.hint .ico { color: var(--accent-2); width: 15px; height: 15px; }
.hint a { text-decoration: none; font-weight: 600; }

/* ---------------------------------------------------------------- lists (log pages) */
.list { list-style: none; margin: 0; padding: 4px 0; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 20px; }
.list li + li { border-top: 1px solid var(--line); }
.list li > span:first-child, .list li > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list a { text-decoration: none; }
.list.log-list li { justify-content: flex-start; align-items: flex-start; }
.list.log-list li > span:first-child { flex: none; min-width: 62px; }
.list.log-list li > span:last-child { white-space: normal; word-break: break-word; }

/* ---------------------------------------------------------------- account page */
.who-head { display: flex; align-items: center; gap: 14px; }
.who-head h1 { margin: 0 0 6px; }
.who-head .chips { gap: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 16px; }
.kpis div { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.kpis dt { font-size: 11.5px; color: var(--muted); }
.kpis dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.actionbar { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 14px 20px; }
.actionbar-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.actionbar-label { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }

.tabs { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); white-space: nowrap; font-weight: 550; font-size: 13px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.tabs a small { opacity: .75; }
.js .tab { display: none; }
.js .tab.on { display: block; }

.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.groups .card { margin-bottom: 0; }
.groups + .card { margin-top: 16px; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.field > span { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.field > span code { color: var(--muted); opacity: .6; font-size: 11px; }
.field b { padding: 7px 0; word-break: break-word; }
.field small { font-size: 11px; }
.all-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.filter { width: 260px; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: start; }
.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.row-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-inline + .row-inline { margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.timeline li.muted { grid-template-columns: minmax(0, 1fr); }

.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; padding: 12px 16px; margin: 16px -8px 0; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-bottom: 0; }
.changed-count { color: var(--accent-2); }

table.slots td { padding: 6px 8px; }
table.slots input { width: 92px; }
table.slots input.wide { width: 124px; }
table.slots td small { display: block; margin-top: 2px; font-size: 11px; }
.item-cell { min-width: 230px; }
.item-name { color: var(--text); }
.item-name.bad { color: var(--red); }

.add-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.add-row .field { margin: 0; width: 160px; position: relative; }
.add-row .field.grow { flex: 1 1 280px; width: auto; }
.add-row .field.small { width: 100px; }
.add-row > .btn, .add-row > .check { align-self: flex-end; }
.item-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px; max-height: 320px; overflow: auto; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-pop); }
.item-results button { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.item-results button:hover, .item-results button:focus { background: var(--card-2); outline: none; }
.item-results button small { color: var(--muted); }
.item-results > div { padding: 10px 12px; }

.log .change { margin: 2px 0; }
.log .old { color: var(--red); text-decoration: line-through; }
.log .new { color: var(--green); }
.log details .mono { word-break: break-all; margin-top: 4px; }
.log summary { cursor: pointer; color: var(--muted); }

.users-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.user-card .field { margin-bottom: 8px; }
.user-card.new { border-style: dashed; }
.cmd-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cmd-grid code { color: var(--text); }

/* ---------------------------------------------------------------- dropdown menu, modal, toasts */
.menu { position: absolute; z-index: 60; min-width: 200px; padding: 6px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow-pop); }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--card-2); color: var(--text); }
.menu button:disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }
.menu button.danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.menu .menu-title { padding: 4px 10px 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.modal-box { width: 100%; max-width: 460px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 18px 20px 16px; animation: pop .15s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal-box, .toast { animation: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.modal-box p { margin: 0 0 12px; font-size: 13px; }
.modal-box .field { margin-bottom: 10px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal-box .checks { display: grid; gap: 6px; margin-bottom: 8px; }
.modal-box .check { color: var(--text); white-space: normal; }
.modal-box .check code { font-size: 13px; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-pop); border-left: 3px solid var(--accent); font-size: 13.5px; animation: pop .15s ease-out; }
.toast.ok { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--orange); }

/* ---------------------------------------------------------------- palette, presets, notes, watch, chat, console */
.topsearch { display: flex; align-items: center; gap: 10px; width: 300px; padding: 7px 10px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font: inherit; cursor: text; text-align: left; }
.topsearch:hover { border-color: var(--muted); }
.topsearch .ico { position: static; transform: none; }
.topsearch span { flex: 1; font-size: 13px; }
.topsearch kbd { position: static; transform: none; }
.palette { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.palette-box { width: 100%; max-width: 640px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; animation: pop .15s ease-out; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.palette-input .ico { color: var(--muted); }
.palette-input input { border: 0; background: none; padding: 4px 0; font-size: 16px; box-shadow: none; }
.palette-input input:focus { box-shadow: none; }
.palette-input kbd, .palette-foot kbd { font: 11px/1 ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; background: var(--card-2); }
.palette-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.palette-results .p-title { padding: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.palette-results .p-hint { padding: 18px 12px; color: var(--muted); text-align: center; }
.p-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.p-row.sel, .p-row:hover { background: var(--card-2); }
.p-row .avatar { width: 32px; height: 32px; font-size: 13px; }
.p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.p-main b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.p-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-acts { display: none; gap: 4px; }
.p-row.sel .p-acts, .p-row:hover .p-acts { display: flex; }
.p-acts .btn.sm { padding: 3px 8px; font-size: 12px; }
.palette-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line); }
.palette-foot span { display: inline-flex; align-items: center; gap: 4px; }

.presets { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 10px; }
.presets .chip { padding: 2px 9px; font-size: 12px; cursor: pointer; }
.presets .chip.recent { border-style: dashed; }

.icon-btn.star { vertical-align: middle; margin-left: 4px; }
.icon-btn.star .ico { width: 18px; height: 18px; }
.icon-btn.star.on { color: var(--amber); }
.icon-btn.star.on .ico { fill: var(--amber); }
.star-mark { display: inline-block; vertical-align: -3px; margin-right: 4px; color: var(--amber); }
.star-mark .ico { width: 14px; height: 14px; fill: var(--amber); }
.notes-card h2 { display: flex; align-items: center; gap: 6px; }
.note-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.note-form textarea { flex: 1; min-height: 44px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.notes li.muted { background: none; padding: 0; }
.notes p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.notes .icon-btn { width: 26px; height: 26px; flex: none; }

.dash-low { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-low > .card { margin: 0; }
.chat-card .chips .chip { padding: 2px 9px; font-size: 12px; cursor: pointer; }
.chat-list { height: 340px; overflow-y: auto; padding: 8px 0; }
.chat-list .empty { padding: 40px 20px; text-align: center; }
.chat-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 4px 18px; font-size: 13.5px; line-height: 1.4; }
.chat-row .t { color: var(--muted); font: 11.5px/1.6 ui-monospace, monospace; }
.chat-row .n { font-weight: 650; text-decoration: none; }
.chat-row.death .msg { color: var(--muted); }
.chat-row.death .n { color: var(--red); }
.chat-row.join .msg, .chat-row.part .msg { color: var(--muted); font-size: 12.5px; }
.chat-row.cmd .msg { color: var(--violet); }
.chat-row.cmd code { color: var(--violet); }
.chat-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; }
.chat-form .btn { border-radius: 999px; width: 40px; padding: 0; }
.watch-list .avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.watch-list .act-text b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.console-out { margin: 0; padding: 14px 18px; height: 70vh; overflow: auto; font: 12.5px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre; color: var(--text); }
.console-out .ln { display: block; }
.console-out .ln.err { color: var(--red); }
.console-out .ln.warn { color: var(--orange); }
.console-out .ln.ok { color: var(--green); }
.console-out .ln.info { color: var(--accent-2); }
.console-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- rich list */
.rich-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rich-kpis dd a { text-decoration: none; }
table.rich td.rank { width: 1%; }
.medal { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-weight: 650; font-size: 12.5px; font-variant-numeric: tabular-nums; }
tr.top1 .medal { background: linear-gradient(135deg, #f6c453, #d9900c); color: #1a1405; }
tr.top2 .medal { background: linear-gradient(135deg, #d7dbe3, #9aa3b2); color: #14161b; }
tr.top3 .medal { background: linear-gradient(135deg, #d8a06c, #a1642f); color: #1a1405; }
table.rich td.bar-col { width: 22%; min-width: 120px; }
table.rich .bar { display: block; height: 6px; border-radius: 999px; background: var(--accent); opacity: .55; min-width: 2px; }
tr.top1 .bar { opacity: 1; }
@media (max-width: 760px) { .rich-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } table.rich td.bar-col { display: none; } }

/* ---------------------------------------------------------------- coins ledger */
.coins-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
table.coins td.coin-what { max-width: 520px; word-break: break-word; }
table.coins td.coin-what code { font-size: 12px; }
@media (max-width: 980px) { .coins-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1180px) {
  .dash-mid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-mid > .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .dash-top { grid-template-columns: minmax(0, 1fr); }
  .dash-low { grid-template-columns: minmax(0, 1fr); }
  .topsearch { width: 200px; }
  .btn.pill span { display: none; }
  .me-text { display: none; }
}
@media (max-width: 760px) {
  :root { --rail: 0px; }
  .rail { position: sticky; top: 0; bottom: auto; width: 100%; height: 56px; flex-direction: row; padding: 0 12px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-logo { margin: 0 6px 0 0; }
  .rail-nav { flex-direction: row; overflow-x: auto; gap: 2px; }
  .rail-foot { flex-direction: row; margin: 0 0 0 auto; }
  .rail-sep { display: none; }
  .topbar { top: 56px; height: auto; flex-wrap: wrap; padding: 10px 14px; }
  .topbar-right { width: 100%; }
  .topsearch { flex: 1; width: auto; }
  .wrap { padding: 16px 14px 96px; }
  .dash-mid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .search, .search-box { width: 100%; }
  .filter { width: 100%; }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tabs { overflow-x: auto; }
  .hero-num { font-size: 38px; }
}

/* баны на ФВ: счёт семьи до ЧС ФВ */
.fwbar-col { width: 34%; }
progress.fwbar { -webkit-appearance: none; appearance: none; width: 100%; min-width: 120px; height: 8px; border: 0; border-radius: 999px; background: var(--card-2); overflow: hidden; vertical-align: middle; }
progress.fwbar::-webkit-progress-bar { background: var(--card-2); border-radius: 999px; }
progress.fwbar::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.fwbar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
progress.fwbar.orange::-webkit-progress-value { background: var(--orange); }
progress.fwbar.orange::-moz-progress-bar { background: var(--orange); }
progress.fwbar.red::-webkit-progress-value { background: var(--red); }
progress.fwbar.red::-moz-progress-bar { background: var(--red); }

/* 17i: suspects (shadow mode) */
.sus-ev { margin-top: 4px; }
.sus-ev summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.sus-ev ul { margin: 6px 0 4px; padding-left: 18px; }
.sus-ev li { margin: 5px 0; }
.sus-ev li.noisy { opacity: .7; }
.grid tr.sus-hl td { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.sidenav-item .nav-count { margin-left: auto; }
.suspects-help { max-width: 920px; }

/* 17j: suspects - caution line, evidence flags */
.sus-caution { max-width: 920px; margin: 6px 0 0; }
.sus-ev li.immature { opacity: .8; }
.sus-down { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* 17k: «На решение» / «Автобан» */
.ab-switch { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ab-alert { white-space: pre-wrap; word-break: break-word; font-size: 12px; max-width: 680px; margin: 6px 0 0; }
.sus-ev li.noisy b { color: var(--muted); }

/* ---------------------------------------------------------------- 17m: «На решение» can not be missed */
.sus-both { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
.sus-both a { text-decoration: none; }
.sus-both .cur b { color: var(--accent-2, inherit); }
.sus-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; margin: 0 0 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--card-2); }
.chip.weak-toggle { font-weight: 700; border-style: dashed; }
.chip.weak-toggle.on { border-style: solid; }
.sus-entry .kv b a { text-decoration: none; }
/* icon rail (< 1440 px): the menu counters were hidden together with the labels */
@media (max-width: 1439px) {
  .sidebar .sidenav-item { position: relative; }
  .sidebar .sidenav-item span.nav-count { display: inline-block; position: absolute; top: 2px; right: 4px; margin: 0; padding: 0 5px; min-width: 16px;
    font-size: 10px; line-height: 16px; text-align: center; }
}
/* phones (< 768 px): the tab bar has «Решение» as the 6th item */
@media (max-width: 767px) {
  nav.tabbar.tabbar--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  nav.tabbar .tabbar__item { position: relative; }
  nav.tabbar .tabbar__item span.nav-count { position: absolute; top: 0; right: 4px; padding: 0 5px; font-size: 10px; line-height: 15px; }
}
