/* doprava design system
 *
 * Ported from the Claude Design handoff bundle (doprava-test) so the
 * Django app can consume the prototype's tokens + utilities directly.
 * Coexists with Tailwind: scoped class names so nothing conflicts.
 */

/* Self-hosted Geist (phase 1b). Files live in static/fonts/ — never a
 * font CDN (external CDNs stalled render 12s+ from Hetzner; see memory
 * external-font-cdn-blocks-render). URLs are relative to this file's
 * location (static/css/), so ../fonts/. font-display: swap renders the
 * system fallback instantly, then swaps Geist in when it arrives. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Geist-Regular.3233d2229417.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Geist-Medium.57994472c4fa.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Geist-SemiBold.c8489d436490.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/GeistMono-Regular.177d4e77379d.woff2") format("woff2");
}

:root {
  /* Brand + state colors */
  --brand: #800020;
  --brand-600: #6b001b;
  --brand-700: #5a0017;
  --brand-50:  #fbf3f4;
  --brand-100: #f3e0e3;

  --success:    #2f6b4f;
  --success-50: #ebf3ee;
  --warning:    #9a5b00;
  --warning-50: #f7efe0;
  --danger:     #a4231d;
  --danger-50:  #f8e9e8;
  --info:       #2a5b88;
  --info-50:    #eaf0f6;

  /* Warm paper neutrals */
  --bg:        #f6f3ee;
  --bg-2:      #efeae2;
  --surface:   #ffffff;
  --surface-2: #fbf9f5;
  --line:      #e4ddd1;
  --line-2:    #efe9dd;
  --ink:       #1a1714;
  --ink-2:     #4a4540;
  --ink-3:     #7a736a;
  --ink-4:     #a39b8e;

  /* Type — self-hosted Geist (phase 1b) with a system-ui fallback stack
     so the app stays instant + self-contained if a font 404s. */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  /* Density (overridden by html[data-density]) */
  --row-py: 10px;
  --row-px: 14px;
  --card-pad: 20px;
  --header-h: 60px;
  --gap: 16px;

  /* Radii / shadows */
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 0 rgba(26, 23, 20, 0.04);
  --shadow-md: 0 1px 2px rgba(26, 23, 20, 0.05), 0 2px 6px rgba(26, 23, 20, 0.04);
}

html[data-density="compact"] {
  --row-py: 7px;
  --row-px: 12px;
  --card-pad: 16px;
  --header-h: 52px;
  --gap: 12px;
}
html[data-density="comfortable"] {
  --row-py: 14px;
  --row-px: 16px;
  --card-pad: 24px;
  --header-h: 64px;
  --gap: 20px;
}

/* Body baseline. Tailwind's preflight already does most of the reset;
   we just override the body bg/color/font so the warm-paper palette
   takes effect globally. Pages still using Tailwind utilities for
   layout (existing pages) keep working — these are additive. */
body.ds {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Numbers + identifiers in mono */
.mono, .num, .ecv, .vin, code { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }

/* App shell ------------------------------------------------------------ */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
html[data-density="compact"] .app { grid-template-columns: 208px 1fr; }

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.sidebar .mark {
  width: 28px; height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.sidebar .wordmark { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.sidebar .wordmark .dot { color: var(--brand); }
.sidebar .tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 1px; }

.sidebar nav {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}
.nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  padding: 14px 10px 6px 10px;
  font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
  transition: background 0.12s;
}
.nav-item:hover { background: var(--bg-2); color: var(--ink); }
.nav-item.active { background: var(--bg); color: var(--ink); position: relative; }

/* CSP-safe row hover — replaces inline onmouseover/onmouseout (audit H3). */
.ds-row-hover:hover { background: var(--bg); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.nav-item .icon { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.nav-item.active .icon { color: var(--brand); }
.nav-item .badge {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-item.active .badge { background: var(--brand-50); color: var(--brand); }

/* Collapsible nav sections (Číselníky, Exporty) — native <details>/<summary>. */
.nav-section { display: flex; flex-direction: column; gap: 1px; }
.nav-section > summary.nav-group {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; user-select: none;
}
.nav-section > summary.nav-group::-webkit-details-marker { display: none; }
.nav-section > summary.nav-group:hover { color: var(--ink-3); }
.nav-section > summary.nav-group .chev {
  width: 12px; height: 12px; color: var(--ink-4);
  transition: transform 0.15s; flex: 0 0 auto;
}
.nav-section[open] > summary.nav-group .chev { transform: rotate(90deg); }

.sidebar .user {
  border-top: 1px solid var(--line-2);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar .avatar {
  width: 30px; height: 30px;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
}
.sidebar .user-meta { font-size: 12px; line-height: 1.3; min-width: 0; flex: 1; }
.sidebar .user-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user-role { color: var(--ink-3); font-size: 11px; }

/* Main content area */
.main { display: flex; flex-direction: column; min-width: 0; }

/* Page header */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 22px 32px 18px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}
html[data-density="compact"] .page-header { padding: 14px 24px 12px 24px; }
.page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.page-header .crumb {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.page-header .crumb a { color: inherit; text-decoration: none; }
.page-header .crumb a:hover { color: var(--ink); }
.page-header .meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.page-header .actions { display: flex; gap: 8px; align-items: center; }

.page-body { padding: 24px 32px 48px 32px; min-width: 0; }
html[data-density="compact"] .page-body { padding: 16px 24px 32px 24px; }

/* Buttons --------------------------------------------------------------- */
.ds-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
}
.ds-btn:hover { background: var(--bg-2); }
.ds-btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.ds-btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.ds-btn.ghost { border-color: transparent; background: transparent; }
.ds-btn.ghost:hover { background: var(--bg-2); }
.ds-btn .icon { width: 14px; height: 14px; }

/* Cards ---------------------------------------------------------------- */
.ds-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ds-card-header {
  padding: 14px var(--card-pad) 12px var(--card-pad);
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ds-card-title { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.ds-card-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ds-card-body { padding: var(--card-pad); }
.ds-card-footer {
  padding: 10px var(--card-pad);
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
}

/* Tables --------------------------------------------------------------- */
table.ds-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.ds-t thead th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px var(--row-px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}
table.ds-t tbody td {
  padding: var(--row-py) var(--row-px);
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
  white-space: nowrap;
  color: var(--ink);
}
table.ds-t tbody tr { transition: background 0.1s; }
table.ds-t tbody tr:hover { background: var(--bg); }
table.ds-t tbody tr.clickable { cursor: pointer; }
table.ds-t tbody tr:last-child td { border-bottom: 0; }
table.ds-t .right { text-align: right; }
table.ds-t .num { font-variant-numeric: tabular-nums; }
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--ink); }
.th-sort .arrow { opacity: 0.5; font-size: 9px; margin-left: 3px; }

/* Badges + pills ------------------------------------------------------- */
.ds-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.5;
}
.ds-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds-badge.success { background: var(--success-50); color: var(--success); }
.ds-badge.warning { background: var(--warning-50); color: var(--warning); }
.ds-badge.danger  { background: var(--danger-50);  color: var(--danger); }
.ds-badge.info    { background: var(--info-50);    color: var(--info); }
.ds-badge.muted   { background: var(--bg-2); color: var(--ink-3); }
.ds-badge.brand   { background: var(--brand-50); color: var(--brand); }
.ds-badge.outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

.pill-stav {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
}
.pill-stav.aktivne   { background: var(--success-50); color: var(--success); }
.pill-stav.neaktivne { background: var(--bg-2); color: var(--ink-3); }
.pill-stav.vyradene  { background: var(--danger-50); color: var(--danger); }
.pill-stav .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Inputs --------------------------------------------------------------- */
.ds-input, .ds-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ds-input:focus, .ds-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.ds-select {
  padding-right: 28px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' stroke='%237a736a' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
/* The form __init__ loops apply .ds-input to every widget, including
   textareas and checkboxes. Override the fixed height/width for those so
   they don't render as a stretched 32px box. */
textarea.ds-input {
  height: auto;
  min-height: 64px;
  padding: 7px 10px;
  line-height: 1.45;
}
.ds-input[type="checkbox"],
.ds-input[type="radio"] {
  height: auto;
  width: auto;
  padding: 0;
  box-shadow: none;
  accent-color: var(--brand);
}
.field-label {
  font-size: 11px; color: var(--ink-3); font-weight: 500;
  margin-bottom: 4px; display: block;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* EČV plate ------------------------------------------------------------ */
.ecv {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.ecv-plate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 1px 6px 1px 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.ecv-plate::before {
  content: "SK";
  background: #003399;
  color: #ffcc00;
  font-size: 8px;
  padding: 4px 2px;
  margin: -1px 4px -1px -4px;
  font-weight: 700;
  letter-spacing: 0;
}

/* KPI cards ------------------------------------------------------------ */
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.kpi:hover { border-color: var(--ink-4); }
.kpi .kpi-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.kpi .kpi-value { font-size: 36px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi .kpi-trend { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

/* Sparkline */
.spark { display: flex; align-items: end; gap: 2px; height: 28px; }
.spark .bar { flex: 1; background: var(--brand); opacity: 0.35; border-radius: 1px; min-height: 2px; }
.spark .bar.hi { opacity: 0.85; }

/* Day-relative text colors */
.days-far  { color: var(--success); font-weight: 500; }
.days-near { color: var(--warning); font-weight: 500; }
.days-soon { color: var(--danger);  font-weight: 500; }
.days-past { color: var(--danger);  font-weight: 600; }

/* Tabs */
.ds-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.ds-tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color 0.12s;
}
.ds-tab:hover { color: var(--ink-2); }
.ds-tab.active { color: var(--ink); border-bottom-color: var(--brand); }

/* DL grid (spec sheet) */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 32px;
}
.dl-row { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-row dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.dl-row dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.dl-row dd.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

/* Section header in detail */
.section-h {
  display: flex; align-items: center; justify-content: space-between;
  margin: 32px 0 12px 0;
}
.section-h:first-child { margin-top: 0; }
.section-h .title { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.section-h .sub { font-size: 12px; color: var(--ink-3); }

/* Stepper for Uzávierka */
.stepper {
  display: flex; gap: 0; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stepper .step {
  flex: 1; padding: 14px 18px;
  cursor: pointer;
  border-right: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.stepper .step:last-child { border-right: 0; }
.stepper .step:hover { background: var(--bg); }
.stepper .step.active { background: var(--brand-50); }
.stepper .step.active .num { background: var(--brand); color: #fff; }
.stepper .num {
  width: 24px; height: 24px;
  background: var(--bg-2);
  color: var(--ink-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  font-family: var(--font-mono);
  flex: 0 0 auto;
}
.stepper .step-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.stepper .step-sub { font-size: 11px; color: var(--ink-3); }

/* Filter bar */
.filterbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

/* Counts strip */
.counts { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); }
.counts strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Empty state */
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); font-size: 13px; }

/* Progress bar */
.progress { height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--brand); }
.progress .fill.success { background: var(--success); }
.progress .fill.warning { background: var(--warning); }
.progress .fill.danger  { background: var(--danger); }

/* Search input with icon */
.search-wrap { position: relative; }
.search-wrap .ds-input { padding-left: 30px; }
.search-wrap .search-icon {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--ink-4);
  pointer-events: none;
}

/* Pulse (loading) */
.pulse { animation: ds-pulse 1.5s ease-in-out infinite; }
@keyframes ds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Scrollbar polish */
.app ::-webkit-scrollbar { width: 10px; height: 10px; }
.app ::-webkit-scrollbar-track { background: transparent; }
.app ::-webkit-scrollbar-thumb { background: #d8d0c0; border-radius: 5px; border: 2px solid var(--bg); }
.app ::-webkit-scrollbar-thumb:hover { background: #c4baa8; }

/* Icon button */
.icon-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

/* Segment control */
.segment {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 2px;
  gap: 0;
}
.segment button {
  background: transparent;
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
}
.segment button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Id-meta strip (vehicle detail header) */
.id-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.id-meta > div { display: flex; flex-direction: column; gap: 2px; }
.id-meta .label { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.id-meta .value { font-size: 13px; font-weight: 500; color: var(--ink); }
.id-meta .value.mono { font-family: var(--font-mono); font-weight: 500; }

/* Small avatar (drivers, etc.) */
.av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  margin-right: 6px;
  vertical-align: middle;
}

/* Helper text */
.helper { font-size: 12px; color: var(--ink-3); }
.helper b { color: var(--ink); font-weight: 600; }

/* Generic muted text */
.ds-muted { color: var(--ink-3); }
.ds-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* Mini bar chart — inline CSS bars (no JS lib). Used by the vehicle
   detail Uzávierky tab for the 12-month najazd chart. */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 8px 4px 0 4px;
}
.mini-bars .bar-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  min-width: 0;
}
.mini-bars .bar-track {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mini-bars .bar {
  width: 60%;
  min-width: 8px;
  max-width: 28px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.2s;
}
.mini-bars .bar-col.empty .bar { background: var(--line); }
.mini-bars .bar-label { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mini-bars .bar-val { font-size: 10px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 500; }
