@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens herdados do tema "Clássico" do Logtech (frontend/src/themes/classic.ts) */
:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --fg: #141821;
  --fg-muted: #5b6575;
  --fg-faint: #7a8494;
  --border: #e3e8f1;
  --border-strong: #cfd7e4;
  --primary: #171a21;
  --primary-fg: #fafafa;
  --ring: #3d6fe0;
  --sidebar: #111928;
  --sidebar-fg: #cbd5e1;
  --sidebar-fg-strong: #f1f5f9;
  --sidebar-section: #6b7a90;
  --sidebar-hover: #1b2536;
  --sidebar-active: #233047;
  --sidebar-border: #1f2937;
  --crit: #c62828;
  --crit-bg: #fdecec;
  --high: #b45309;
  --high-bg: #fff4e0;
  --med: #8a6d00;
  --med-bg: #fbf6dc;
  --low: #3d5a80;
  --low-bg: #e9f0fa;
  --ok: #1d7a46;
  --ok-bg: #e6f5ec;
  --info: #2f5fd0;
  --info-bg: #e8effd;
  --proposal: #6d3fc9;
  --proposal-bg: #f1ebfd;
  --mock: #9a5b00;
  --shadow-1: 0 1px 2px rgba(17, 25, 40, .06), 0 1px 1px rgba(17, 25, 40, .04);
  --shadow-2: 0 8px 24px -6px rgba(17, 25, 40, .18), 0 2px 6px rgba(17, 25, 40, .08);
  --radius: 10px;
  --radius-sm: 7px;
  --sidebar-w: 256px;
  --header-h: 56px;
  --proto-h: 52px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218;
    --surface: #171b23;
    --surface-2: #1d222c;
    --fg: #eef1f6;
    --fg-muted: #a3adbd;
    --fg-faint: #8a94a6;
    --border: #272e3a;
    --border-strong: #353e4d;
    --primary: #eceff4;
    --primary-fg: #12151b;
    --ring: #7aa2ff;
    --sidebar: #0b0f17;
    --sidebar-fg: #c3cddb;
    --sidebar-fg-strong: #f1f5f9;
    --sidebar-section: #7f8ca1;
    --sidebar-hover: #161d2a;
    --sidebar-active: #1f2a3d;
    --sidebar-border: #1a2130;
    --crit: #ff8a80;
    --crit-bg: #3a1b1d;
    --high: #f6b25c;
    --high-bg: #3a2914;
    --med: #e5cf62;
    --med-bg: #34301a;
    --low: #9cb8e0;
    --low-bg: #1d2838;
    --ok: #6fd39a;
    --ok-bg: #16301f;
    --info: #8fb0ff;
    --info-bg: #1b2640;
    --proposal: #b99cff;
    --proposal-bg: #2a2140;
    --mock: #f0b25a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 12px 28px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218;
  --surface: #171b23;
  --surface-2: #1d222c;
  --fg: #eef1f6;
  --fg-muted: #a3adbd;
  --fg-faint: #8a94a6;
  --border: #272e3a;
  --border-strong: #353e4d;
  --primary: #eceff4;
  --primary-fg: #12151b;
  --ring: #7aa2ff;
  --sidebar: #0b0f17;
  --sidebar-fg: #c3cddb;
  --sidebar-fg-strong: #f1f5f9;
  --sidebar-section: #7f8ca1;
  --sidebar-hover: #161d2a;
  --sidebar-active: #1f2a3d;
  --sidebar-border: #1a2130;
  --crit: #ff8a80;
  --crit-bg: #3a1b1d;
  --high: #f6b25c;
  --high-bg: #3a2914;
  --med: #e5cf62;
  --med-bg: #34301a;
  --low: #9cb8e0;
  --low-bg: #1d2838;
  --ok: #6fd39a;
  --ok-bg: #16301f;
  --info: #8fb0ff;
  --info-bg: #1b2640;
  --proposal: #b99cff;
  --proposal-bg: #2a2140;
  --mock: #f0b25a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 12px 28px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
::selection { background: color-mix(in oklab, var(--ring) 28%, transparent); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.num, td.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 14px; height: 14px; }
svg.i.lg { width: 20px; height: 20px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* Barra do protótipo (fora do produto) */
.proto {
  position: sticky; top: 0; z-index: 50; overflow-x: auto; scrollbar-width: none;
  height: var(--proto-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: #2b1f4a;
  color: #efe9ff;
  font-size: 13px;
}
:root[data-theme="dark"] .proto { background: #231a3b; }
.proto .tag { font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.proto .tag small { font-weight: 450; opacity: .75; margin-left: 6px; }
.proto .grow { flex: 1; }
.proto label { opacity: .8; }
.seg { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; color: #e6defc; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.seg button:hover { background: rgba(255,255,255,.08); }
.seg button[aria-pressed="true"] { background: #efe9ff; color: #2b1f4a; font-weight: 600; }
.proto .pbtn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #efe9ff;
  padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-size: 13px;
}
.proto .pbtn:hover { background: rgba(255,255,255,.08); }
.proto .pbtn.on { background: #efe9ff; color: #2b1f4a; border-color: #efe9ff; font-weight: 600; }
.proto select { background: rgba(255,255,255,.08); color: #efe9ff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 5px 8px; }
.proto select { color-scheme: dark; }
.proto select option { color: #efe9ff; background: #2b1f4a; }

/* Shell do app */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: calc(100vh - var(--proto-h)); }
.sidebar {
  position: sticky; top: var(--proto-h); height: calc(100vh - var(--proto-h));
  background: var(--sidebar); color: var(--sidebar-fg);
  display: flex; flex-direction: column; overflow: hidden;
}
.brand { height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--sidebar-border); }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; color: #111928; display: grid; place-items: center; }
.brand b { color: var(--sidebar-fg-strong); font-weight: 620; letter-spacing: -.01em; }
.brand small { display: block; color: var(--sidebar-section); font-size: 11.5px; margin-top: -2px; }
.nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.nav-home { margin-bottom: 6px; }
.nav-group { margin-top: 8px; }
.nav-group > button.gh {
  width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  color: var(--sidebar-section); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px 6px;
}
.nav-group > button.gh:hover { color: var(--sidebar-fg); }
.nav-group > button.gh .chev { margin-left: auto; transition: transform .18s ease-out; }
.nav-group[data-open="false"] > button.gh .chev { transform: rotate(-90deg); }
.nav-group[data-open="false"] .items { display: none; }
.nav a.item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; text-decoration: none;
  color: var(--sidebar-fg); font-weight: 500; font-size: 13.5px; position: relative;
}
.nav a.item:hover { background: var(--sidebar-hover); color: var(--sidebar-fg-strong); }
.nav a.item[aria-current="page"] { background: var(--sidebar-active); color: var(--sidebar-fg-strong); }
.nav a.item[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #8fb0ff; }
.nav a.item .count { margin-left: auto; font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: #c62828; color: #fff; font-variant-numeric: tabular-nums; }
.nav a.item .count.soft { background: #2a3650; color: #cbd5e1; }
.nav a.item .flag { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: #3a2b62; color: #d8c8ff; }
.nav .divider { height: 1px; background: var(--sidebar-border); margin: 10px 4px; }
.side-foot { border-top: 1px solid var(--sidebar-border); padding: 12px 16px; font-size: 12px; color: var(--sidebar-section); display: flex; align-items: center; gap: 10px; }
.side-foot .av { width: 28px; height: 28px; border-radius: 50%; background: #233047; color: #e2e8f0; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.side-foot b { color: var(--sidebar-fg-strong); font-weight: 560; display: block; font-size: 12.5px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: var(--proto-h); z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--fg-muted); font-size: 13px; min-width: 0; }
.crumbs b { color: var(--fg); font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(340px, 34vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 6px 10px; color: var(--fg-faint); cursor: pointer;
}
.search kbd { margin-left: auto; font-family: "Geist Mono", monospace; font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; color: var(--fg-muted); }
.iconbtn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--fg-muted); }
.iconbtn:hover { background: var(--surface); border-color: var(--border); color: var(--fg); }
.iconbtn .dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.crit-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-muted); cursor: pointer; white-space: nowrap; }
.crit-pill.hot { border-color: color-mix(in oklab, var(--crit) 40%, transparent); background: var(--crit-bg); color: var(--crit); font-weight: 600; }

.page { padding: 22px 24px 48px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.page-head p { margin: 4px 0 0; color: var(--fg-muted); max-width: 72ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s ease-out, border-color .15s ease-out;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn.primary:hover { background: color-mix(in oklab, var(--primary) 86%, var(--bg)); }
.btn.danger { color: var(--crit); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface); border-color: var(--border); }
.btn[disabled], .btn.locked { opacity: .5; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; font-size: 14.5px; font-weight: 620; letter-spacing: -.005em; }
.card-h p { margin: 2px 0 0; color: var(--fg-muted); font-size: 12.5px; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 4px 16px 16px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }
.small { font-size: 12.5px; }
h2.sec { font-size: 13px; font-weight: 620; margin: 22px 0 10px; color: var(--fg); letter-spacing: -.005em; }

.kpi { padding: 14px 16px; }
.kpi .k { font-size: 12.5px; color: var(--fg-muted); }
.kpi .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .s { font-size: 12px; color: var(--fg-faint); }
.kpi.hot .v { color: var(--crit); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--fg-muted); border: 1px solid var(--border); }
.badge.crit { background: var(--crit-bg); color: var(--crit); border-color: transparent; }
.badge.high { background: var(--high-bg); color: var(--high); border-color: transparent; }
.badge.med { background: var(--med-bg); color: var(--med); border-color: transparent; }
.badge.low { background: var(--low-bg); color: var(--low); border-color: transparent; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge.prop { background: var(--proposal-bg); color: var(--proposal); border-color: transparent; }
.badge.mock { background: transparent; color: var(--mock); border: 1px dashed currentColor; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 9px 12px; cursor: pointer; color: var(--fg-muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.tabs .n { font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; align-self: flex-end; }
.filter-actions-row { justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 550; color: var(--fg); }
.field small { color: var(--fg-faint); font-size: 12px; }
.input, .select {
  height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 0 10px; min-width: 0; color: var(--fg);
}
.input::placeholder { color: var(--fg-faint); }
.select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--fg-faint) 50%), linear-gradient(135deg, var(--fg-faint) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { height: auto; padding: 8px 10px; min-height: 72px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 560; color: var(--fg-muted); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s ease-out; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.plate { font-family: "Geist Mono", monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 12.5px; }
.pager .r { margin-left: auto; display: flex; gap: 6px; }

.empty { text-align: center; padding: 40px 20px; color: var(--fg-muted); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--fg-faint); }
.empty h3 { color: var(--fg); font-size: 15px; margin: 0 0 4px; font-weight: 620; }
.empty p { margin: 0 auto 14px; max-width: 46ch; }

.skel { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in oklab, var(--surface-2) 60%, var(--border)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sh 1.2s linear infinite; border-radius: 6px; height: 12px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; font-size: 13px;
  background: var(--info-bg); color: var(--fg);
}
.note svg { color: var(--info); margin-top: 1px; }
.note.prop { background: var(--proposal-bg); }
.note.prop svg { color: var(--proposal); }
.note.warn { background: var(--high-bg); }
.note.warn svg { color: var(--high); }
.note.crit { background: var(--crit-bg); }
.note.crit svg { color: var(--crit); }
.note b { font-weight: 620; }

.lock {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-faint);
}

/* Fila de risco */
.queue-item { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.queue-item:hover { background: var(--surface-2); }
.queue-item .bar { align-self: stretch; border-radius: 3px; background: var(--low); }
.queue-item.crit .bar { background: var(--crit); }
.queue-item.high .bar { background: var(--high); }
.queue-item.med .bar { background: var(--med); }
.queue-item .t1 { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.queue-item .t2 { color: var(--fg-muted); font-size: 12.5px; margin-top: 2px; }
.queue-item .age { text-align: right; font-size: 12.5px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.queue-item .age b { display: block; color: var(--fg); font-size: 13px; }
.queue-item.crit .age b { color: var(--crit); }

/* Mapa sintético */
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--ok) 10%, transparent) 0 60px, transparent 61px),
    linear-gradient(0deg, transparent 49.6%, var(--border) 50%, transparent 50.4%) 0 0 / 80px 80px,
    linear-gradient(90deg, transparent 49.6%, var(--border) 50%, transparent 50.4%) 0 0 / 80px 80px,
    var(--surface-2);
  border: 1px solid var(--border);
}
.map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; }
.map .pin i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-1); background: var(--info); display: block; }
.map .pin.crit i { background: var(--crit); box-shadow: 0 0 0 5px color-mix(in oklab, var(--crit) 22%, transparent); }
.map .pin.high i { background: var(--high); }
.map .pin.stop i { background: var(--fg-faint); }
.map .pin span { font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; }
.map .legend { position: absolute; right: 10px; bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; display: grid; gap: 4px; }
.map .synthetic { position: absolute; left: 10px; top: 10px; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 70px 14px 1fr; gap: 10px; padding: 6px 0; font-size: 13px; }
.tl .tm { color: var(--fg-muted); font-variant-numeric: tabular-nums; text-align: right; }
.tl .nd { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); margin-top: 5px; }
.tl .nd.crit { background: var(--crit); }
.tl .nd.ok { background: var(--ok); }

/* Steps (formulário SM) */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.steps .st { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--fg-muted); }
.steps .st b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 11.5px; color: var(--fg); }
.steps .st.on { border-color: var(--fg); color: var(--fg); font-weight: 600; }
.steps .st.on b { background: var(--fg); color: var(--bg); }
.steps .st.done b { background: var(--ok); color: #fff; }

/* Drawer, dialog */
.scrim { position: fixed; inset: 0; background: rgba(10, 14, 22, .42); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 61; background: var(--surface); box-shadow: var(--shadow-2);
  transform: translateX(102%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer .dh { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer .dh h2 { margin: 0; font-size: 16px; font-weight: 650; }
.drawer .db { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer .df { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Jornada */
.journey {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  width: min(500px, calc(100vw - 32px)); background: #1e1636; color: #efe9ff; border-radius: 14px; box-shadow: var(--shadow-2);
  padding: 14px 16px; display: none;
}
.journey.on { display: block; }
.journey .jh { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #c9bdf0; }
.journey .jh b { color: #fff; font-weight: 620; }
.journey .jt { font-size: 15px; font-weight: 600; margin: 6px 0 4px; color: #fff; }
.journey .jd { font-size: 13.5px; color: #ddd3fb; margin: 0; max-width: 70ch; }
.journey .jf { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.journey .jf .dots { display: flex; gap: 5px; margin-right: auto; }
.journey .jf .dots i { width: 7px; height: 7px; border-radius: 50%; background: #4a3d78; }
.journey .jf .dots i.on { background: #efe9ff; }
.journey button { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #efe9ff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 550; }
.journey button.go { background: #efe9ff; color: #1e1636; border-color: #efe9ff; }
.journey button:hover { filter: brightness(1.1); }
.hl { outline: 3px solid #a98bff !important; outline-offset: 3px; border-radius: 8px; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169, 139, 255, .55); } 100% { box-shadow: 0 0 0 14px rgba(169, 139, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } }

/* Painel de jornadas */
.jlist { display: grid; gap: 10px; }
.jcard { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.jcard:hover { border-color: var(--border-strong); background: var(--surface-2); }
.jcard .n { width: 28px; height: 28px; border-radius: 8px; background: var(--proposal-bg); color: var(--proposal); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.jcard b { display: block; font-weight: 600; }
.jcard span { color: var(--fg-muted); font-size: 12.5px; }

/* Antes x depois */
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.menu-col { background: var(--sidebar); color: var(--sidebar-fg); border-radius: var(--radius); padding: 12px 10px; }
.menu-col h4 { color: var(--sidebar-section); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; margin: 10px 8px 4px; font-weight: 600; }
.menu-col .mi { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 13px; }
.menu-col .mi.dup { background: rgba(198, 40, 40, .22); color: #ffd6d2; }
.menu-col .mi.mock { background: rgba(240, 178, 90, .16); color: #ffe2b8; }
.menu-col .mi.dead { color: #6b7a90; text-decoration: line-through; }
.menu-col .mi .tg { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.1); }
.menu-col .mi .sub { color: #8b98ad; font-size: 11.5px; margin-left: auto; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-muted); margin: 8px 0 14px; }
.legend-row span { display: inline-flex; gap: 6px; align-items: center; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bigstat { display: flex; gap: 24px; flex-wrap: wrap; }
.bigstat div { min-width: 120px; }
.bigstat b { display: block; font-size: 28px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bigstat span { color: var(--fg-muted); font-size: 12.5px; }

/* Palette */
.palette { position: fixed; top: 12vh; left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); z-index: 80; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-2); display: none; overflow: hidden; }
.palette.on { display: block; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; font-size: 15px; background: transparent; outline: none; }
.palette .res { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette .res a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.palette .res a:hover, .palette .res a.sel { background: var(--surface-2); }
.palette .res small { margin-left: auto; color: var(--fg-faint); }
.palette .grp { font-size: 11.5px; color: var(--fg-faint); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* Toast */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--primary); color: var(--primary-fg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-2); font-size: 13px; transform: translateY(20px); opacity: 0; transition: all .2s ease-out; pointer-events: none; max-width: 360px; }
.toast.on { transform: none; opacity: 1; }

.report-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.report-cat a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; background: var(--surface); }
.report-cat a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.report-cat a b { display: block; font-weight: 600; margin-bottom: 2px; }
.report-cat a span { color: var(--fg-muted); font-size: 12.5px; }

.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; }
.listnav { padding: 6px; }
.listnav button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.listnav button:hover { background: var(--surface-2); }
.listnav button[aria-current="true"] { background: var(--surface-2); outline: 1px solid var(--border); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; margin: 0; }
.dl dt { color: var(--fg-muted); }
.dl dd { margin: 0; font-weight: 520; }

.prog { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.prog i { display: block; height: 100%; background: var(--fg); border-radius: 999px; }

/* Responsivo */
@media (max-width: 1500px) {
  .proto .tag small { display: none; }
  .seg button { padding: 5px 8px; }
}
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .proto .hide-md { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: var(--proto-h); z-index: 65; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-2); }
  .topbar .menu-btn { display: grid; }
  .g3, .g2, .cmp { grid-template-columns: 1fr; }
  .search { width: auto; flex: 0 0 auto; }
  .search span.lbl, .search kbd { display: none; }
  .crit-pill .lbl { display: none; }
}
@media (max-width: 640px) {
  .proto .seg { flex-wrap: wrap; }
  .journey { bottom: auto; top: calc(var(--proto-h) + 70px); padding: 12px; }
  .journey .jd { font-size: 13px; }
  .page { padding: 16px 16px 120px; }
  .topbar { padding: 0 12px; gap: 6px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .proto { position: relative; height: auto; min-height: var(--proto-h); flex-wrap: wrap; padding: 8px 12px; gap: 8px; overflow: visible; }
  .topbar { top: 0; }
  .sidebar { top: 0; height: 100vh; z-index: 75; }
  .proto .tag small { display: none; }
  .proto .grow { display: none; }
  .page-head h1 { font-size: 19px; }
  .page-head .actions { margin-left: 0; }
  .kpi .v { font-size: 22px; }
  .hide-sm { display: none !important; }
}

.segl { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: var(--surface-2); }
.segl button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; color: var(--fg-muted); cursor: pointer; font-size: 12.5px; font-weight: 550; }
.segl button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Mapa real (Leaflet + Esri) ---------- */
.lmap { position: relative; background: var(--surface-2); min-height: 180px; z-index: 0; }
.lmap .leaflet-container, .lmap.leaflet-container { font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 12.5px; background: var(--surface-2); }
.lmap-dark-filter .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); }
.lmap .leaflet-control-attribution { font-size: 10px; background: color-mix(in oklab, var(--surface) 82%, transparent); color: var(--fg-faint); }
.lmap .leaflet-control-attribution a { color: var(--fg-muted); }
.lmap .leaflet-bar a { background: var(--surface); color: var(--fg); border-bottom-color: var(--border); }
.lmap .leaflet-bar a:hover { background: var(--surface-2); }
.lmap .leaflet-bar { border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.lmap-ctl { box-shadow: var(--shadow-1); background: var(--surface) !important; }
.lmap-tip { font-family: "Geist", sans-serif; font-size: 12px; background: var(--surface); color: var(--fg); border: 1px solid var(--border); box-shadow: var(--shadow-1); border-radius: 7px; padding: 4px 8px; }
.lmap-tip::before { display: none; }

.vm-wrap, .vc-wrap { background: none; border: 0; }
.vm { position: relative; width: 22px; height: 22px; }
.vm-dot { position: absolute; inset: 3px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.vm-idle .vm-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.vm-off .vm-dot { background: #fff; border: 3px solid var(--c); }
.vm-lost .vm-dot { background: #fff; border: 2px dashed #7a8494; opacity: .9; }
.vm-arrow { position: absolute; left: 50%; top: 50%; width: 13px; height: 11px; transform: translate(-50%, -50%) rotate(var(--hd)) translateY(-13px); filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); overflow: visible; }
.vm-crit .vm-dot { box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); animation: vmpulse 1.8s ease-out infinite; }
@keyframes vmpulse { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, .55); } 100% { box-shadow: 0 0 0 14px rgba(211, 47, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .vm-crit .vm-dot { animation: none; box-shadow: 0 0 0 4px rgba(211, 47, 47, .35); } }
.vm-sel .vm-dot { outline: 3px solid var(--fg); outline-offset: 2px; }
.vm-plate { position: absolute; left: 22px; top: 1px; white-space: nowrap; font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 650; padding: 1px 5px; border-radius: 5px; background: var(--surface); color: var(--fg); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.vm-crit .vm-plate { border-color: #d32f2f; color: #b71c1c; }
:root[data-theme="dark"] .vm-crit .vm-plate { color: #ff9a92; }
.vm-truck { background: none; border: 0; }
.dev-flag { position: absolute; transform: translate(8px, -26px); white-space: nowrap; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 6px; background: #d32f2f; color: #fff; box-shadow: var(--shadow-1); }

.vc { border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--surface); border: 3px solid #2f5fd0; box-shadow: 0 2px 6px rgba(0,0,0,.25); color: var(--fg); }
.vc b { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vc i { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #d32f2f; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.vc-crit { border-color: #d32f2f; }
.vc-high, .vc-med { border-color: #e07b00; }

.lmap-legend { background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-1); padding: 6px 10px; font-size: 12px; max-width: 260px; }
.lmap-legend summary { cursor: pointer; font-weight: 600; list-style: none; }
.lmap-legend summary::before { content: "▸ "; color: var(--fg-faint); }
.lmap-legend[open] summary::before { content: "▾ "; }
.lmap-legend .lg { display: grid; gap: 5px; margin-top: 6px; }
.lmap-legend .lg span { display: flex; align-items: center; gap: 8px; }
.lmap-legend svg { width: 18px; height: 18px; }
.lgd { width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); position: relative; flex: none; }
.lgd-off { background: #fff; border: 3px solid var(--c); box-shadow: none; }
.lgd-lost { background: #fff; border: 2px dashed #7a8494; box-shadow: none; }
.lgl { width: 22px; height: 4px; border-radius: 2px; background: #2f5fd0; flex: none; }
.lgl-plan { background: none; height: auto; }
.lgl-plan svg { display: block; width: 22px; height: 4px; }
.lgl-dev { background: #d32f2f; }
.lgp { width: 14px; height: 12px; border-radius: 3px; border: 2px solid var(--c); background: color-mix(in oklab, var(--c) 20%, transparent); flex: none; }
.lgc { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d32f2f; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; font-style: normal; flex: none; }

/* Mapa da frota: painel do veículo sobre o mapa */
.fleet-wrap { position: relative; }
.fleet-panel { position: absolute; top: 12px; right: 12px; z-index: 500; width: 300px; max-height: calc(100% - 24px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2); }
.fleet-panel .fp-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.fleet-panel .fp-b { padding: 0 14px 14px; }
.fleet-wrap .lmap .leaflet-top.leaflet-right { right: 0; }
.fleet-wrap.has-panel .lmap .leaflet-top.leaflet-right { right: 316px; }
.vlist { max-height: 520px; overflow-y: auto; }
.vlist button .st { margin-left: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--fg-muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .n { font-variant-numeric: tabular-nums; font-weight: 650; }
.variant-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.variant-card button { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.variant-card button[aria-pressed="true"] { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.variant-card b { display: flex; gap: 6px; align-items: center; font-weight: 620; }
.variant-card span { display: block; color: var(--fg-muted); font-size: 12px; margin-top: 3px; }
@media (max-width: 900px) {
  .fleet-panel { position: static; width: auto; max-height: none; margin-top: 10px; box-shadow: var(--shadow-1); }
  .fleet-wrap.has-panel .lmap .leaflet-top.leaflet-right { right: 0; }
  .variant-card { grid-template-columns: 1fr; }
  .vlist { max-height: 220px; }
}
.lmap-legend[open] { max-width: 430px; }
.lmap-legend[open] .lg { grid-template-columns: 1fr 1fr; column-gap: 14px; }
@media (max-width: 640px) { .lmap-legend[open] .lg { grid-template-columns: 1fr; } .lmap-legend { max-width: 220px; } }

/* ---------- Ajustes do cruzamento com a GP ---------- */
.badge.dec { background: var(--high-bg); color: var(--high); border: 1px solid color-mix(in oklab, var(--high) 35%, transparent); font-size: 11px; vertical-align: middle; cursor: help; }
.page-head h1 .badge { font-size: 11px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.grid-wrap { max-height: 560px; overflow: auto; }
.grid-t th, .grid-t td { white-space: nowrap; }
.grid-t thead th { position: sticky; top: 0; z-index: 2; }
.grid-t .fix { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--border); }
.grid-t thead .fix { z-index: 3; background: var(--surface-2); }
.grid-t tr:hover .fix { background: var(--surface-2); }
.grid-t tr#located td { background: var(--info-bg); }
.thf { border: 0; background: none; color: var(--fg-faint); cursor: pointer; padding: 0 2px; vertical-align: middle; }
.thf:hover { color: var(--fg); }
.colpick { position: relative; }
.colpick summary { list-style: none; }
.colpick summary::-webkit-details-marker { display: none; }
.colpick-menu { position: absolute; right: 0; top: 38px; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-2); padding: 8px 10px; width: 300px; max-height: 360px; overflow: auto; display: grid; gap: 4px; font-size: 13px; }
.with-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 38%); gap: 14px; align-items: start; }
.ws-side { position: sticky; top: calc(var(--proto-h) + var(--header-h) + 12px); overflow: hidden; }
.ws-side .lmap { border-radius: 0; border-left: 0; border-right: 0; }
.side-btn { display: grid; }
body.side-collapsed .app { grid-template-columns: 64px 1fr; }
body.side-collapsed .sidebar .brand > div:last-child, body.side-collapsed .nav .gh, body.side-collapsed .nav a.item span, body.side-collapsed .side-foot > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.side-collapsed .nav a.item { justify-content: center; padding: 9px 0; }
body.side-collapsed .brand, body.side-collapsed .side-foot { justify-content: center; padding-left: 0; padding-right: 0; }
body.side-collapsed .nav-group[data-open="false"] .items { display: block; }
@media (max-width: 1100px) { .with-split { grid-template-columns: 1fr; } .ws-side { position: static; } }
@media (max-width: 900px) { .side-btn { display: none; } body.side-collapsed .app { grid-template-columns: 1fr; } }
.pal-nolink { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--fg-muted); cursor: default; }
.pal-nolink small { margin-left: auto; color: var(--fg-faint); }

/* Decisões do dono: contadores compactos, subitens de menu, menu do veículo */
.counters { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--fg-muted); }
.ctr b { color: var(--fg); font-size: 16px; font-weight: 650; margin-right: 2px; }
.ctr.hot b, .ctr.hot { color: var(--crit); }
.nav-sub { font-size: 11px; color: var(--sidebar-section); padding: 8px 10px 3px 36px; }
body.side-collapsed .nav-sub { display: none; }
.vehpop { position: fixed; z-index: 85; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-2); padding: 4px; }
.vehpop .vp-h { padding: 6px 8px 4px; }
.vehpop button, .vehpop a { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 8px; border-radius: 7px; font-size: 13px; text-decoration: none; color: var(--fg); cursor: pointer; text-align: left; }
.vehpop button:hover, .vehpop a:hover, .vehpop button:focus-visible { background: var(--surface-2); }

.vm-dot svg { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); }
.vm-off .vm-dot svg path, .vm-off .vm-dot svg circle, .vm-lost .vm-dot svg path, .vm-lost .vm-dot svg circle { fill: var(--c); }
.vm-idle .vm-dot::after { display: none; }
.vm { width: 24px; height: 24px; }
