/* Styles of the "Ядаргаа хяналт — Хянах самбар" design (design/dashboard-template.html), as classes. */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 700; font-display: swap; src: url(/fonts/plex-sans-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 700; font-display: swap; src: url(/fonts/plex-sans-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 700; font-display: swap; src: url(/fonts/plex-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url(/fonts/plex-mono-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url(/fonts/plex-mono-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0F1214;
  --header: #13171A;
  --card: #171B1F;
  --line: #2A3037;
  --line-soft: #22282E;
  --chip: #22282E;
  --text: #E8EAED;
  --text-2: #B9C0C8;
  --muted: #9AA3AD;
  --faint: #6E7882;
  --accent: #F2A33A;
  --accent-hover: #FFC470;
  --crit: #FF8A7E;
  --distraction: #3E7CC2;
  --adas: #F2D16B;
  --speed: #C9A0FF;
  --ok: #5BD69A;
  --stopped: #6E7882;
  --offline: #4A535C;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Chart series: the design's hues stepped into the dark band (see js/charts.js). */
  --s-fatigue: #DE6D62;
  --s-distraction: #3E7CC2;
  --s-adas: #B09020;
  --s-speed: #A57DD9;
  /* Fatigue heatmap ramp: one hue, dim -> bright. */
  --heat-0: #1E252B;
  --heat-1: #45302F;
  --heat-2: #6B3F3A;
  --heat-3: #934E46;
  --heat-4: #B85D53;
  --heat-5: #DE6D62;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1 { margin: 0; font-size: 28px; font-weight: 700; }
h2 { margin: 0; font-size: 18px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
button { font: inherit; }

/* Header */
.app-header { border-bottom: 1px solid var(--line); background: var(--header); }
.app-header .inner { max-width: 1440px; margin: 0 auto; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand .logo { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand .name { font-weight: 700; font-size: 17px; }
.brand .sub { font-size: 12px; color: var(--muted); }
.app-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.app-nav a { padding: 10px 14px; border-radius: 6px; color: var(--text-2); text-decoration: none; }
.app-nav a.active { background: var(--chip); color: var(--text); font-weight: 600; }
.app-nav a:hover { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; position: relative; }
.badge-sample { font-size: 12px; padding: 4px 8px; border: 1px dashed #4A535C; border-radius: 4px; color: var(--muted); }
.live { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live.on .dot { background: var(--ok); }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); color: var(--text); font-weight: 600; cursor: pointer; }
.user-menu { position: absolute; right: 0; top: 52px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-width: 200px; z-index: 20; }
.user-menu .who { padding: 6px 10px 10px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }

/* Layout */
.page { max-width: 1440px; margin: 0 auto; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head .meta { color: var(--muted); margin-top: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.card.pad { padding: 16px 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }

/* Buttons */
.btn { min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; }
.btn:hover { color: var(--text); border-color: #3A424B; }
.btn.primary { border: none; background: var(--accent); color: var(--bg); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn.done { color: var(--muted); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.menu-item { display: block; width: 100%; text-align: left; padding: 10px; border: none; background: none; color: var(--text); border-radius: 6px; cursor: pointer; }
.menu-item:hover { background: var(--chip); }
a.menu-item, a.menu-item:hover { color: var(--text); text-decoration: none; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.kpi:hover { color: inherit; }
.kpi.warn { border-color: #5A4520; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-family: var(--mono); font-size: 32px; font-weight: 600; margin-top: 6px; }
.kpi .value small { font-size: 18px; color: var(--muted); }
.kpi .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Segmented filters */
.seg { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 8px; }
.seg button { min-height: 36px; padding: 0 12px; border-radius: 6px; border: none; font-size: 14px; cursor: pointer; background: transparent; color: var(--muted); }
.seg button.on { background: var(--line); color: var(--text); font-weight: 600; }

/* Alarm rows */
.alarm { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.alarm.acked { opacity: 0.55; }
.alarm.fresh { animation: fresh 2.5s ease-out; }
@keyframes fresh { from { background: #3A2A12; } to { background: transparent; } }
.thumb { width: 104px; height: 64px; border-radius: 6px; background: var(--chip); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #8A939C; flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.alarm .body { flex: 1 1 240px; min-width: 0; }
.alarm .title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alarm .title .type { font-weight: 600; }
.alarm .detail { color: var(--muted); font-size: 14px; margin-top: 4px; font-family: var(--mono); }
.alarm .ack-note { color: var(--text-2); font-size: 13px; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.alarm .time { font-family: var(--mono); font-size: 14px; color: var(--text-2); flex: none; }
.alarm .actions { display: flex; gap: 8px; flex: none; }
.sev { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.sev.crit { background: var(--crit); color: #2A0B07; }
.sev.imp { background: var(--accent); color: #2A1A04; }
.sev.info { background: #2B3B4D; color: #CFE3FA; }
.src { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; border: 1px solid #3A424B; color: var(--text-2); font-family: var(--mono); }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; }

/* Map */
.map { position: relative; height: 300px; border-radius: 8px; background-color: #12181C; background-image: linear-gradient(#1E252B 1px, transparent 1px), linear-gradient(90deg, #1E252B 1px, transparent 1px); background-size: 40px 40px; overflow: hidden; border: 1px solid var(--line-soft); }
.map .road { position: absolute; height: 3px; background: #2E373F; transform-origin: left center; }
.map .pin { position: absolute; display: flex; align-items: center; gap: 4px; transform: translate(-6px, -6px); }
.map .pin .d { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); }
.map .pin span:last-child { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.map .note { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend i.sq { border-radius: 2px; }

/* Alarm groups */
.groups { display: flex; flex-direction: column; gap: 16px; }
.group-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.group-item { display: grid; grid-template-columns: 132px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.bar { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.bar div { height: 100%; border-radius: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); padding: 12px 20px; font-weight: 500; }
table.data td { padding: 12px 20px; border-top: 1px solid var(--line-soft); vertical-align: top; }
tr.link-row { cursor: pointer; }
tr.link-row:hover td { background: var(--chip); }
.state { display: inline-flex; align-items: center; gap: 6px; }
.state i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sys-bad { color: var(--accent); font-weight: 600; }
.sys-ok { color: var(--text-2); }
input[type=search], input[type=text], input[type=password], input[type=date] { min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
input[type=date] { color-scheme: dark; }
label.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
select { min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; color-scheme: dark; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Alarm history: one header per day */
.day-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.day-head .mono { color: var(--muted); }

/* Toasts for new alarms */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; max-width: 380px; }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; }
.toast:hover { color: var(--text); }
.toast.crit { border-left-color: var(--crit); }
.toast .t { font-weight: 600; }
.toast .s { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.sound-off { font-size: 12px; }

/* Event page */
.evt-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .evt-grid { grid-template-columns: 1fr; } }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; }
.no-media { aspect-ratio: 16 / 9; border-radius: 8px; background: var(--chip); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-family: var(--mono); }
dl.facts dd.plain { font-family: inherit; white-space: pre-wrap; }
.snapshot { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* Device chips */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 4px; border: 1px solid #3A424B; color: var(--text-2); }
.chip.ok { border-color: #2F5E47; color: var(--ok); }
.chip.bad { border-color: #5A4520; color: var(--accent); }

/* Login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.login .error { color: var(--crit); font-size: 14px; min-height: 20px; }

@media (max-width: 640px) {
  .app-header .inner, .page { padding-left: 16px; padding-right: 16px; }
}

/* ---------------------------------------------------------------- charts (js/charts.js) */
.viz-frame { display: flex; gap: 8px; }
.viz-yaxis { position: relative; width: 32px; flex: none; }
.viz-yaxis span { position: absolute; right: 0; transform: translateY(50%); font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.viz-plotwrap { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.viz-plot { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); min-width: 480px; }
.viz-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft); pointer-events: none; }
.viz-slot { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; position: relative; }
.viz-slot:hover, .viz-slot:focus-visible { background: rgba(255,255,255,.04); }
.viz-col { width: min(24px, 70%); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.viz-col div { width: 100%; min-height: 2px; }
.viz-col div.cap { border-radius: 4px 4px 0 0; }
.viz-xlabels { display: flex; min-width: 480px; margin-top: 6px; }
.viz-xlabels div { flex: 1 1 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

.viz-hbars { display: flex; flex-direction: column; gap: 4px; }
.viz-hrow { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 6px; border-radius: 6px; outline: none; }
.viz-hrow:hover, .viz-hrow:focus-visible { background: rgba(255,255,255,.04); }
.viz-hname { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-htrack { display: flex; align-items: center; gap: 8px; min-width: 0; }
.viz-hbar { display: flex; gap: 2px; height: 16px; min-width: 2px; }
.viz-hbar div { height: 100%; min-width: 2px; }
.viz-hbar div.cap { border-radius: 0 4px 4px 0; }
.viz-hvalue { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; flex: none; }

.viz-heatgrid { display: grid; gap: 2px; align-items: center; overflow-x: auto; }
.viz-heatcol { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: left; }
.viz-heatrow { font-size: 13px; color: var(--text-2); padding-right: 8px; white-space: nowrap; }
.viz-cell { height: 22px; border-radius: 3px; background: var(--heat-0); }
.viz-cell:hover { outline: 1px solid var(--text-2); }
.viz-cell.b1 { background: var(--heat-1); }
.viz-cell.b2 { background: var(--heat-2); }
.viz-cell.b3 { background: var(--heat-3); }
.viz-cell.b4 { background: var(--heat-4); }
.viz-cell.b5 { background: var(--heat-5); }
.legend i.viz-cell { height: 10px; }

.viz-tip { position: fixed; z-index: 60; pointer-events: none; background: #0B0E10; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.45); min-width: 160px; }
.viz-tip-title { color: var(--muted); margin-bottom: 4px; }
.viz-tip-row { display: grid; grid-template-columns: 14px max-content 1fr; align-items: center; gap: 8px; }
.viz-tip-row i { width: 12px; height: 2px; border-radius: 1px; display: block; }
.viz-tip-row i.none { background: transparent; }
.viz-tip-row strong { font-family: var(--mono); font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.viz-tip-row span { color: var(--text-2); }

.table-view { margin-top: 12px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.table-view summary:hover { color: var(--text); }
table.data.compact { min-width: 0; }
table.data.compact th, table.data.compact td { padding: 6px 12px; }
.chart-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.chart-card-head .sub { font-size: 13px; color: var(--muted); }
.loading { opacity: 0.5; transition: opacity .15s; }

/* SVG charts (js/svgcharts.js) */
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: #3A424B; }
.chart-body svg { display: block; overflow: visible; }
.chart-body svg :focus { outline: none; }
.chart-body svg :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viz-slice { transition: opacity .15s; }
.viz-slice:hover, .viz-slice:focus-visible { opacity: 0.85; }
.viz-grouprow:hover .viz-rowbg, .viz-grouprow:focus-visible .viz-rowbg { fill: rgba(255,255,255,.04); }
.chart-card:fullscreen { background: var(--card); padding: 28px 32px; overflow: auto; border-radius: 0; }
.chart-card:fullscreen .table-view { display: none; }

/* Acknowledge dialog (ui.js) */
.ack-dialog { width: min(520px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); }
.ack-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.ack-dialog label { display: block; margin: 16px 0 6px; font-size: 14px; color: var(--text-2); }
.ack-dialog textarea { width: 100%; box-sizing: border-box; min-height: 104px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.ack-dialog textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Truck filter (truck-picker.js) */
.picker { position: relative; }
.picker-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.picker-pop label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.picker-pop label:hover { background: var(--chip); }
.picker-all { border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.picker-list { max-height: 280px; overflow-y: auto; }
.picker-search { width: 100%; margin-bottom: 6px; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Forms: account page, user dialogs (account.js, users.js) */
.form-dialog { width: min(480px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); }
.form-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.form-dialog p { margin: 0; color: var(--text-2); font-size: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.form-stack label.check { flex-direction: row; align-items: center; gap: 10px; }
.form-stack .dialog-actions { margin-top: 4px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.form-ok { color: var(--ok); font-size: 14px; }
.form-ok:empty { display: none; }
.temp-password { font-size: 18px; letter-spacing: 0.05em; user-select: all; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
tr.inactive td { color: var(--muted); }

/* Camera settings on the truck page (camera-config.js) */
.cam-meta { font-size: 13px; margin-top: 4px; max-width: 640px; }
.cam-actions { display: flex; gap: 8px; }
.cam-table td { vertical-align: middle; }
.cam-table .chip { white-space: nowrap; }
.cam-roles { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 20px 4px; }
.cam-foot { padding: 4px 20px 16px; }
.cam-foot p { margin: 12px 0 0; font-size: 13px; }
.form-error { color: var(--crit); font-size: 14px; margin-top: 8px; }
.form-error:empty { display: none; }
