/* Identidad visual eLatin (igual que la app Estado de cámaras) */
:root {
  --bg: #EDF2F8; --surface: #FFFFFF; --surface-2: #E6ECF3; --text: #1B2B48; --muted: #4A5D70; --line: #D3DCE4;
  --primary: #203868; --primary-ink: #FFFFFF; --brand-2: #0860A8; --cyan: #00A8E8;
  --accent: #0860A8; --ok: #23845A; --danger: #C23B2E; --warn: #B7790F; --bar: #0860A8;
  --radius: 12px; --shadow: 0 1px 0 var(--line);
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* gráficas: 4 tipos de gasto (paleta validada para daltonismo, claro y oscuro) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --grid: #e1e8f0; --track: #cde2fb; --over: #C23B2E;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A25; --surface: #172533; --surface-2: #1E2F40; --text: #E6EDF3; --muted: #9FB0C0; --line: #2A3B4C;
    --primary: #1C5DA8; --primary-ink: #FFFFFF; --brand-2: #2E7BD0; --accent: #5CC4F0; --ok: #4CC38A; --danger: #F0705F; --warn: #E6B047; --bar: #5CC4F0;
    --shadow: none; color-scheme: dark;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --grid: #22303f; --track: #184f95; --over: #F0705F;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A25; --surface: #172533; --surface-2: #1E2F40; --text: #E6EDF3; --muted: #9FB0C0; --line: #2A3B4C;
  --primary: #1C5DA8; --primary-ink: #FFFFFF; --brand-2: #2E7BD0; --accent: #5CC4F0; --ok: #4CC38A; --danger: #F0705F; --warn: #E6B047; --bar: #5CC4F0;
  --shadow: none; color-scheme: dark;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --grid: #22303f; --track: #184f95; --over: #F0705F;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
h1, h2 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.25rem; }
h2 { font-size: 1rem; font-weight: 650; }
button, input, select { font: inherit; color: inherit; }

/* acceso */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: .875rem; }
.brand.small { margin: 0; gap: 8px; font-weight: 650; }

/* formularios */
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; color: var(--muted); font-weight: 550; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: .9375rem; align-self: end; padding-bottom: 10px; }
label.check input { width: 20px; height: 20px; accent-color: var(--primary); }
input, select {
  width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 16px;
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  min-height: 42px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; font-weight: 600;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.msg { color: var(--danger); min-height: 1.2em; margin: 0; font-size: .875rem; }
.note { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 9px; font-size: .875rem; }
.hint { margin: 0; color: var(--muted); font-size: .8125rem; }

/* estructura */
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.chip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; max-width: 60vw; }
.chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; }
.menu { position: absolute; right: 16px; top: 54px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 190px; }
.menu button { text-align: left; padding: 12px 14px; border: 0; background: none; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-height: 36px; font-size: 14px; flex: 1 1 130px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; border: 0; background: none; color: var(--muted); font-size: .75rem; font-weight: 600; cursor: pointer;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--primary); }

/* tablas */
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; background: var(--surface-2); }
tr.sub td { color: var(--muted); }
td.act { white-space: nowrap; text-align: right; }
.icon-btn { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.del:hover { color: var(--danger); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; font-weight: 600; }
.tag.off { color: var(--danger); }
.tag.part { color: var(--accent); }
.empty { color: var(--muted); text-align: center; padding: 20px 8px; }
.small-text { color: var(--muted); font-size: .8125rem; }

/* resumen y reportes */
.summary { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.summary b { color: var(--text); }
.period { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .8125rem; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.kpi .v { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .75rem; color: var(--muted); font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: .875rem; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--bar); border-radius: 6px; }

/* diálogo y aviso */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(8, 18, 30, .5); }
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .875rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 20; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--danger); color: #fff; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

.calc { display: flex; flex-direction: column; gap: 4px; justify-content: center; background: var(--surface-2); border-radius: 9px; padding: 6px 12px; }
.calc span { font-size: .8125rem; color: var(--muted); font-weight: 550; }
.calc b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.excel-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
label.mini { font-size: .75rem; flex: 1 1 130px; }
label.mini input, label.mini select { min-height: 38px; font-size: 14px; }
.file-btn { display: inline-flex; align-items: center; flex-direction: row; color: var(--primary-ink); font-size: inherit; }
.alert { padding: 8px 12px; border-radius: 9px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: .8125rem; font-weight: 600; margin-bottom: 6px; }
.det summary { cursor: pointer; font-weight: 600; font-size: .875rem; padding: 4px 0; }
.err-list { max-height: 260px; overflow: auto; margin: 0; padding-left: 18px; font-size: .8125rem; color: var(--danger); }
.ok-box { padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb, var(--ok) 12%, transparent); font-size: .875rem; }
th.cat { white-space: normal; min-width: 72px; text-transform: none; letter-spacing: 0; font-size: .6875rem; line-height: 1.2; }

.sched { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sched-head { display: flex; align-items: flex-end; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.sched-head label { flex: 0 1 170px; }
.sched-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sched-days label { font-size: .6875rem; text-align: center; }
.sched-days input { padding: 6px 2px; text-align: center; min-height: 38px; }
.sched-total { font-size: .8125rem; color: var(--muted); }
.filters label.mini input, .filters label.mini select { flex: none; width: 100%; }

.act-list { display: flex; flex-direction: column; gap: 10px; }
div.act { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.act-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.act-top b { font-size: .9375rem; }
.act-meta { color: var(--muted); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.act-people { font-size: .8125rem; }
.act-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag.ok { color: var(--ok); }
.tag.run { color: var(--accent); }
dialog.wide { width: min(720px, calc(100vw - 24px)); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 10px; max-height: 210px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 8px; }
.pick label { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: .875rem; font-weight: 500; }
.pick input { width: 18px; height: 18px; min-height: 0; }
.veh-row { border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.veh-row .fuel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sched-days.win { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sched-days.win label { gap: 2px; }
.sched-days.win input { font-size: 12px; padding: 4px 2px; min-height: 32px; }
@media (max-width: 560px) { .sched-days.win { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* barra de pestañas: con muchas pestañas se desliza en el celular */
.tabbar { overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { min-width: 64px; flex: 1 0 auto; }

.card.flat { box-shadow: none; padding: 0; border: 0; }
details.det-card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.det-card > summary::before { content: '▸'; color: var(--muted); }
details.det-card[open] > summary::before { content: '▾'; }
details.det-card > summary h2 { display: inline; }
label.check.mini-check { padding: 0; font-size: .8125rem; align-self: center; }
label.check.mini-check input { width: 18px; height: 18px; min-height: 0; }
.act-sel { width: 20px; height: 20px; min-height: 0; accent-color: var(--primary); margin: 0; }
.act-top .left { display: flex; gap: 10px; align-items: flex-start; }
.km-bad { color: var(--danger); font-weight: 700; }
a.map { color: var(--primary); font-size: .8125rem; font-weight: 600; text-decoration: none; }

/* diálogo rápido de actividad */
.quick { display: flex; flex-direction: column; gap: 12px; }
.qsec { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.qsec > .qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.qsec > .qhead b { font-size: .875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.chips label { flex-direction: row; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: .8125rem; font-weight: 550; cursor: pointer; background: var(--surface); }
.chips label:has(input:checked) { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips label:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.sched-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 9px; padding: 8px 12px; font-size: .875rem; flex-wrap: wrap; }
.days-line { font-size: .8125rem; color: var(--muted); }
.linkbtn { border: 0; background: none; color: var(--primary); font-weight: 600; cursor: pointer; padding: 2px 0; font-size: .8125rem; }

/* tablero */
.dash-filters { display: flex; flex-direction: column; gap: 10px; }
.dash-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dash-hero .v { font-size: 48px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.dash-hero .l { color: var(--muted); font-size: .875rem; font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.kpi .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.kpi .d { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.chart { width: 100%; min-height: 60px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart text.v { fill: var(--text); font-weight: 600; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + g rect, .chart g.bar:hover rect { opacity: .85; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8125rem; color: var(--text); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hb { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .8125rem; cursor: default; }
.hb.click { cursor: pointer; }
.hb.click:hover .nm { text-decoration: underline; }
.hb .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .track { display: flex; gap: 2px; height: 14px; align-items: stretch; }
.hb .track span { display: block; height: 100%; min-width: 0; }
.hb .track span:last-child { border-radius: 0 4px 4px 0; }
.hb .val { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.meter { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; position: relative; }
.meter b { display: block; height: 100%; background: var(--s1); border-radius: 5px; }
.meter.over b { background: var(--over); }
.mrow { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .8125rem; }
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0,0,0,.18); border-radius: 9px; padding: 8px 10px; font-size: .8125rem; line-height: 1.4; opacity: 0; transition: opacity .1s; max-width: 280px; }
.tip.show { opacity: 1; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tr.sel td { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.pct-bad { color: var(--danger); font-weight: 700; }
@media (max-width: 560px) {
  .kpi .v { font-size: 1.125rem; }
  .dash-hero .v { font-size: 40px; }
  .hb, .mrow { grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 8px; }
}
#ldTable td, #dashPeople td:first-child { white-space: nowrap; }
#dashTable td:first-child { min-width: 170px; }
.chips label:has(input:checked) .small-text { color: inherit; opacity: .8; }

/* ---------- estilo eLatin (como Estado de cámaras) ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: 0; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.1; padding-left: 10px; border-left: 4px solid var(--cyan); }
.brand { gap: 12px; position: relative; padding-bottom: 12px; }
.brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--brand-2) 55%, var(--cyan) 100%); }
.plate { background: #FFFFFF; border-radius: 10px; padding: 5px 9px; display: flex; align-items: center; box-shadow: 0 1px 0 var(--line); flex: 0 0 auto; }
.plate img { display: block; height: 40px; width: auto; }
.bt { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; color: var(--primary); margin: 0; }
.bs { font-size: 13px; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; margin: 2px 0 0; }
:root[data-theme="dark"] .bt { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bt { color: var(--text); } }
.auth-card .brand { margin-bottom: 22px; }
.topbar { background: var(--bg); border-bottom: 0; padding-bottom: 0; }
.topbar .brand.small { padding: 2px 0 10px; flex: 1; margin-right: 12px; }
.topbar .brand.small .plate img { height: 34px; }
.topbar .brand.small .bt { font-size: 21px; }
.topbar .brand.small .bs { font-size: 11.5px; }
main { max-width: 1100px; }
.card { border-radius: var(--radius); box-shadow: var(--shadow); }
.btn { border-radius: var(--radius); font-weight: 600; }
.btn.primary:active { background: var(--brand-2); }
.chip { background: var(--surface); }
.role { color: var(--brand-2); }
.seg { background: transparent; gap: 6px; padding: 0; }
.seg button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; color: var(--text); font-size: 14px; }
.seg button.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); box-shadow: none; }
.kpi { background: var(--surface); border: 1px solid var(--line); }
.kpi .v { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.05; }
.dash-hero .v { font-family: var(--display); font-weight: 700; font-size: 60px; letter-spacing: 0; color: var(--text); }
.tabbar button { font-size: 13px; }
.tabbar button.on { color: var(--primary); }
:root[data-theme="dark"] .tabbar button.on { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar button.on { color: var(--accent); } }
th { font-family: var(--display); font-size: 13px; letter-spacing: .04em; }
@media (max-width: 560px) {
  .topbar .brand.small .bs { display: none; }
  .topbar .brand.small .plate img { height: 28px; }
  .topbar .brand.small .bt { font-size: 19px; }
  .dash-hero .v { font-size: 46px; }
  .kpi .v { font-size: 24px; }
}
.topbar { position: sticky; }
.topbar .brand.small { padding-bottom: 10px; }
.topbar .brand.small::after { display: none; }
.topbar::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--brand-2) 55%, var(--cyan) 100%); }
.topbar { padding-bottom: 12px; }
.kpi .v { font-size: clamp(20px, 2.1vw, 28px); white-space: nowrap; }
@media (max-width: 560px) {
  .topbar .brand.small .bt { white-space: nowrap; }
  #userName { display: none; }
  .chip { padding: 6px 10px; }
  .kpi .v { font-size: 22px; }
}
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .kpi .v { font-size: clamp(18px, 1.9vw, 28px); }
