:root {
  color-scheme: light;
  --bg: oklch(97.6% 0.006 250);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(96% 0.009 250);
  --ink: oklch(18% 0.035 255);
  --muted: oklch(42% 0.045 255);
  --soft: oklch(61% 0.04 255);
  --line: oklch(89% 0.014 250);
  --accent: oklch(58% 0.21 260);
  --accent-ink: oklch(100% 0 0);
  --teal: oklch(50% 0.13 190);
  --warning: oklch(86% 0.15 88);
  --danger: oklch(56% 0.21 28);
  --success: oklch(54% 0.15 150);
  --radius: 8px;
  --shadow: 0 2px 6px oklch(20% 0.04 255 / 8%);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-top: 3px solid oklch(52% 0.2 257);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  min-height: 70px;
  width: min(1232px, calc(100% - 40px));
  margin: 0 auto;
  gap: 28px;
}

.brand {
  flex: 1 0 auto;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a,
.nav-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
}

.nav a:hover,
.nav-button:hover,
.brand:hover {
  color: var(--accent);
}

.session {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.session span,
.session button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
}

.session span {
  background: var(--surface-2);
  color: var(--muted);
}

.shell {
  width: min(1232px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  font-size: 30px;
  font-weight: 750;
}

h2 {
  font-size: 20px;
  font-weight: 720;
}

h3 {
  font-size: 15px;
  font-weight: 720;
}

.lede,
.muted {
  color: var(--muted);
}

.lede {
  margin: 8px 0 0;
  max-width: 72ch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.button:hover {
  background: oklch(52% 0.22 260);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: oklch(77% 0.04 250);
  background: var(--surface-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat,
.panel,
.vehicle-row,
.event-card,
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 102px;
  padding: 20px;
}

.stat__label {
  color: var(--muted);
  margin-bottom: 10px;
}

.stat__value {
  font-size: 25px;
  font-weight: 750;
}

.stat--period .stat__value {
  font-size: 19px;
  white-space: nowrap;
}

.stat__sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.stat--negative .stat__value,
.signed--negative {
  color: var(--danger);
}

.stat--positive .stat__value,
.signed--positive {
  color: var(--success);
}

.vehicle-list {
  display: grid;
  gap: 14px;
}

.vehicle-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(225px, 0.8fr) 140px 130px;
  align-items: center;
  min-height: 130px;
  padding: 26px 20px;
  gap: 12px;
}

.vehicle-period {
  white-space: nowrap;
}

.vehicle-period span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.vehicle-rate {
  font-weight: 700;
}

.vehicle-row:hover {
  border-color: oklch(77% 0.04 250);
}

.vehicle-title {
  font-size: 19px;
  font-weight: 750;
}

.vehicle-meta {
  margin-top: 4px;
  color: var(--muted);
}

.panel {
  margin-top: 32px;
}

.panel--padded {
  padding: 22px;
}

.panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 18px 22px 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
}

select,
input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid oklch(70% 0.14 260 / 42%);
  outline-offset: 2px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.event-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 30px;
  min-height: 136px;
  padding: 18px 16px;
}

.event-card:hover {
  border-color: oklch(77% 0.04 250);
}

.event-date {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.event-time {
  margin-top: 4px;
  font-weight: 750;
}

.event-duration {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.event-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.dot.danger {
  background: var(--danger);
}

.dot.warning {
  background: var(--warning);
}

.dot.success {
  background: var(--success);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
}

.event-delta {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.event-delta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.summary-box {
  border: 1px solid var(--warning);
  background: oklch(98% 0.025 88);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 18px;
}

.summary-box strong {
  display: block;
  margin-bottom: 6px;
}

.ai-panel {
  overflow: hidden;
}

.ai-setup {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.ai-config {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
}

.ai-config-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.4fr);
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
}

.field-label textarea {
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.ai-usage--setup {
  margin-top: 0;
}

.ai-chat-log {
  display: grid;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding: 18px 22px;
  background: var(--surface-2);
}

.ai-message {
  max-width: min(780px, 88%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.ai-message.user {
  justify-self: end;
  background: oklch(96% 0.03 260);
}

.ai-message.error-message {
  border-color: oklch(75% 0.12 28);
  background: oklch(97% 0.025 28);
}

.ai-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.ai-message p {
  margin: 0;
  white-space: pre-wrap;
}

.ai-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-usage span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding: 7px 9px;
}

.ai-setup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.ai-setup-actions span {
  color: var(--muted);
  font-size: 12px;
}

.ai-setup-actions span.error-message {
  color: oklch(48% 0.17 28);
}

.ai-audit {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ai-audit summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.ai-audit-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ai-audit-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.ai-audit-block h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-audit-block pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.audit-model-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.live-ai-audit > .primary-action {
  margin-top: 14px;
}

.ai-audit-history {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ai-audit-history > h3 {
  margin: 0;
}

.ai-audit-record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 16px;
}

.ai-audit-record .card-heading p,
.ai-audit-record > small {
  color: var(--muted);
}

.ai-verdict {
  margin-top: 14px;
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.ai-verdict p {
  margin: 6px 0 0;
}

@media (max-width: 720px) {
  .audit-model-controls { grid-template-columns: 1fr; }
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto) auto;
  gap: 12px;
  align-items: end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
}

.ai-attachment-controls {
  display: grid;
  gap: 8px;
}

.ai-attachment-list,
.ai-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-attachment-list {
  min-height: 22px;
  align-items: center;
  font-size: 12px;
}

.attachment-pill,
.ai-attachments span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1;
}

.attachment-pill button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  padding: 0;
}

.attachment-pill button:hover {
  color: var(--ink);
}

.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chart-card {
  padding: 18px 16px 14px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-range {
  color: var(--muted);
  font-size: 12px;
}

.chart-frame {
  position: relative;
  width: 100%;
  min-height: 172px;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
}

.chart-frame svg {
  display: block;
  width: 100%;
  height: 172px;
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.chart-tooltip {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 3px;
  width: 202px;
  border: 1px solid oklch(82% 0.035 250);
  border-radius: 7px;
  background: oklch(100% 0 0 / 96%);
  box-shadow: 0 8px 20px oklch(20% 0.04 255 / 14%);
  color: var(--ink);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.32;
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none !important;
}

.chart-tooltip strong {
  font-size: 12px;
}

.legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.route-map {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 12px oklch(20% 0.04 255 / 5%);
  margin: 0 0 18px;
  padding: 16px 18px;
}

.route-map--empty {
  color: var(--muted);
}

.route-map__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.route-map__head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.route-map__metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.route-map__metrics span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 7px 9px;
}

.route-map__metrics strong {
  color: var(--ink);
}

.route-map__canvas {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(98% 0.006 250), oklch(95% 0.012 250));
  overflow: hidden;
}

.route-map__canvas svg {
  display: block;
  width: 100%;
  height: 240px;
}

.route-map__grid path {
  stroke: oklch(85% 0.02 250);
  stroke-width: 1;
}

.route-map__path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.route-map__marker {
  stroke: var(--surface);
  stroke-width: 3;
}

.route-map__marker--start {
  fill: oklch(60% 0.16 150);
}

.route-map__marker--end {
  fill: oklch(57% 0.18 28);
}

.route-map__label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: oklch(100% 0 0 / 88%);
  stroke-linejoin: round;
  stroke-width: 4;
}

.route-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.route-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.route-dot--start {
  background: oklch(60% 0.16 150);
}

.route-dot--end {
  background: oklch(57% 0.18 28);
}

.coords-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.coords-link:hover {
  color: oklch(48% 0.21 260);
}

.grouped-table-frame {
  --grouped-table-width: 1220px;
  border-top: 1px solid var(--line);
}

.grouped-table-header {
  position: relative;
  z-index: 4;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 6px oklch(20% 0.04 255 / 8%);
}

.grouped-table-header__row {
  display: grid;
  grid-template-columns: 180px 92px 150px 154px 154px 144px 112px 96px 136px;
  width: var(--grouped-table-width);
  will-change: transform;
}

.grouped-table-header__cell {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-right: 1px solid oklch(94% 0.008 250);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 12px;
  text-align: left;
  text-transform: uppercase;
}

.table-wrap {
  position: relative;
  max-height: min(72vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

table {
  width: 100%;
  min-width: var(--grouped-table-width);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.grouped-table thead {
  display: none;
}

.table-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.missing {
  color: var(--muted);
  cursor: help;
  text-decoration: underline dotted oklch(64% 0.04 255);
  text-underline-offset: 3px;
}

.expand-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.gap-row td {
  background: oklch(98% 0.026 88);
  color: oklch(35% 0.06 72);
  font-weight: 700;
  font-size: 12px;
}

.raw-row td {
  background: oklch(98.5% 0.004 250);
  color: var(--muted);
  font-size: 12px;
}

.phase {
  font-weight: 700;
}

.phase.evento {
  color: var(--danger);
}

.admin-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.list-plain {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.error {
  border: 1px solid oklch(75% 0.12 28);
  background: oklch(97% 0.025 28);
  color: oklch(38% 0.11 28);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2), oklch(92% 0.012 250), var(--surface-2));
  background-size: 240% 100%;
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-title {
  width: 220px;
  height: 28px;
  margin-bottom: 20px;
}

.skeleton-line {
  width: 70%;
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 42%;
}

@keyframes pulse {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    width: min(100% - 24px, 1232px);
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 2px;
  }

  .shell {
    width: min(100% - 24px, 1232px);
    padding-top: 24px;
  }

  .page-head,
  .event-detail-grid,
  .charts,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .page-actions,
  .ai-config-grid,
  .ai-chat-form {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions .button {
    width: 100%;
  }

  .vehicle-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .route-map__head {
    flex-direction: column;
  }

  .route-map__metrics {
    justify-content: flex-start;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Closer Fuel — compact operational interface */
:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #fff;
  --surface-2: #f0f4f5;
  --ink: #192b30;
  --muted: #53666d;
  --soft: #64767d;
  --line: #dce4e7;
  --line-strong: #bdcbd0;
  --accent: #00899c;
  --accent-dark: #006c7b;
  --accent-soft: #e7f5f7;
  --danger: #aa3434;
  --danger-soft: #fff0ee;
  --success: #237553;
  --success-soft: #e9f5ee;
  --warning: #986514;
  --warning-soft: #fff5e2;
  --radius: 8px;
  --shadow: none;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-dark); }
button, a, summary, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 27px; font-weight: 720; }
h2 { font-size: 18px; font-weight: 680; }
h3 { font-size: 15px; }
p { text-wrap: pretty; }
.topbar { position: relative; inset: auto; display: flex; align-items: center; gap: 24px; min-height: 66px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); border: 0; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 30; }
.brand { flex: 1; display: inline-flex; align-items: baseline; color: var(--accent-dark); font-size: 23px; font-weight: 550; letter-spacing: -.035em; }
.brand__closer { white-space: nowrap; }
.brand__eye { position: relative; display: inline-grid; place-items: center; width: .7em; height: .7em; margin: 0 .02em; overflow: hidden; border: 2px solid var(--accent); border-radius: 50%; color: transparent; vertical-align: .01em; }
.brand__eye::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--ink); }
.brand__product { margin-left: 9px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.topbar__context { color: var(--muted); font-size: 12px; white-space: nowrap; }
.topbar__context.has-fresh-data { color: var(--success); }
.access-button, .secondary-action, .primary-action, .text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.secondary-action:hover, .access-button:hover { background: var(--surface-2); border-color: #829aa4; }
.primary-action { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.primary-action:hover { background: #005b68; }
.text-action { border-color: transparent; color: var(--accent-dark); padding-right: 0; }
.skip-link { position: absolute; top: -60px; left: 24px; background: var(--surface); padding: 8px 12px; border: 2px solid var(--accent); }
.skip-link:focus { top: 10px; }
.app-layout { padding: 0; min-height: calc(100vh - 66px); }
.sidebar { position: relative; inset: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: auto; min-height: 53px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); border: 0; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 20; }
.side-nav { display: flex; align-items: stretch; gap: 26px; align-self: stretch; }
.side-nav > a { display: flex; align-items: center; color: var(--muted); padding: 0 1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 600; font-size: 14px; background: none; }
.side-nav > a:hover { color: var(--accent-dark); background: none; }
.side-nav > a.is-active { color: var(--accent-dark); border-bottom-color: var(--accent); background: none; }
.secondary-nav { position: relative; color: var(--muted); font-size: 13px; }
.secondary-nav summary { cursor: pointer; padding: 10px 0 10px 14px; }
.secondary-nav__menu { position: absolute; top: calc(100% + 3px); right: 0; display: grid; min-width: 245px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); z-index: 30; }
.secondary-nav__menu a, .secondary-nav__menu button { padding: 11px 12px; text-align: left; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 13px; }
.secondary-nav__menu a:hover, .secondary-nav__menu button:hover { background: var(--surface-2); }
.secondary-nav__menu .is-active { color: var(--accent-dark); background: var(--accent-soft); }
.shell { width: min(1200px, calc(100% - 48px)); max-width: none; margin: 0 auto; padding: 28px 0 64px; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.workspace-head__action { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.refresh-time { font-size: 12px; color: var(--muted); }
.acquisition-notice, .inline-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid #e6c98b; border-radius: 7px; background: var(--warning-soft); margin-bottom: 16px; }
.acquisition-notice strong, .inline-notice strong { display: block; color: #684809; font-weight: 650; }
.acquisition-notice p, .inline-notice p { margin: 5px 0 0; color: #684809; max-width: 88ch; font-size: 13px; }
.acquisition-notice a { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.acquisition-notice--fresh { background: var(--success-soft); border-color: #bedcca; }
.acquisition-notice--fresh strong, .acquisition-notice--fresh p { color: #28533c; }
.inline-notice { display: block; }
.inline-notice ul { margin: 8px 0 0; padding-left: 20px; }
.operation-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.operation-settings strong { color: var(--ink); font-weight: 600; }
.operation-settings a { margin-left: auto; }
.summary-strip { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin: 0 0 28px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.summary-strip > a, .summary-strip > div { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 170px; padding: 14px 20px 14px 0; color: var(--ink); }
.summary-strip > a:not(:first-child), .summary-strip > div:not(:first-child) { padding-left: 20px; border-left: 1px solid var(--line); }
.summary-strip span { font-size: 13px; color: var(--muted); }
.summary-strip strong { font-size: 24px; font-weight: 680; font-variant-numeric: tabular-nums; }
.summary-strip strong small { font-size: 14px; font-weight: 500; color: var(--muted); }
.summary-strip a:hover span { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.workspace-card { min-width: 0; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: none; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.card-heading h2 { font-size: 16px; }
.card-heading a { font-size: 13px; font-weight: 550; }
.quiet-count, .table-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.table-count { margin-left: auto; align-self: flex-end; padding-bottom: 10px; white-space: nowrap; }
.data-table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th { padding: 11px 18px; background: #f8fafb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfc; }
.data-table td strong { font-weight: 650; }
.data-table td small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.table-primary { display: inline-block; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: #abc7cd; text-underline-offset: 4px; }
.table-primary:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
.table-error { max-width: 250px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cases-table td:first-child { min-width: 160px; }
.cases-table td:nth-child(2) { min-width: 145px; }
.cases-table td:nth-child(3) { min-width: 165px; }
.case-summary { max-width: 70ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-details-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 550; }
.table-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 20px; padding: 18px 20px; }
.search-field, .compact-field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.search-field { width: min(100%, 330px); }
.search-field input, .compact-field select { min-height: 40px; width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); background: var(--surface); font-size: 13px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.filter-pills { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; padding: 15px 20px 0; }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; padding: 8px 11px; border-radius: 5px; color: var(--muted); font-weight: 550; font-size: 12px; }
.filter-pill span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.filter-pill:hover { background: var(--surface-2); color: var(--ink); }
.filter-pill.is-active { background: var(--accent-soft); border-color: #a9d5dc; color: var(--accent-dark); }
.table-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.table-pagination:empty { display: none; }
.table-pagination > div { display: flex; gap: 8px; }
.table-pagination button { min-height: 34px; font-size: 12px; padding: 7px 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border-radius: 4px; color: var(--muted); background: var(--surface-2); font-size: 11px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.status-badge > span { display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-badge--active { color: #216641; background: var(--success-soft); }
.status-badge--watch, .status-badge--attention { color: #795007; background: var(--warning-soft); }
.status-badge--danger { color: #973333; background: var(--danger-soft); }
.status-badge--held { color: #49626b; background: #ecf1f4; }
.status-badge--muted { color: var(--muted); background: var(--surface-2); }
.ignition { display: inline-block; padding: 2px 6px; color: #53666d; background: #f0f4f5; border-radius: 3px; font-size: 11px; line-height: 1.5; font-weight: 650; }
.ignition--on { color: #1b6242; background: #ecf5ef; }
.live-empty { padding: 38px 24px; text-align: center; }
.live-empty p { max-width: 60ch; margin: 8px auto 0; color: var(--muted); font-size: 13px; }
.live-empty a { display: inline-block; margin-top: 14px; font-size: 13px; }
.workspace-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.case-decision { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-decision__copy { flex: 1; min-width: 0; }
.case-decision h2 { margin: 12px 0 9px; font-size: 20px; }
.case-decision p { margin: 0; max-width: 80ch; color: var(--muted); line-height: 1.6; }
.case-quantities { flex: 0 0 300px; display: flex; gap: 24px; margin: 0; padding-top: 4px; }
.case-quantities > div { flex: 1; }
.case-quantities dt { color: var(--muted); font-size: 12px; }
.case-quantities dd { margin: 7px 0 0; color: var(--ink); font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-quantities > div:last-child dd { color: var(--muted); font-size: 22px; padding-top: 6px; }
.table-note, .section-copy, .empty-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.table-note { margin-bottom: 18px; }
.workspace-card > .table-note, .workspace-card > .section-copy, .workspace-card > .empty-copy { margin: 0; padding: 0 20px 18px; }
.vehicle-snapshot { display: flex; flex-wrap: wrap; gap: 22px 38px; margin-bottom: 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vehicle-snapshot > div { display: grid; align-content: start; justify-items: start; gap: 5px; }
.vehicle-snapshot span, .vehicle-snapshot small { color: var(--muted); font-size: 12px; }
.vehicle-snapshot strong { font-size: 16px; font-weight: 650; }
.evidence-list, .settings-list { margin: 0; padding: 0 20px 14px; }
.evidence-list > div, .settings-list > div { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1.2fr); gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.evidence-list > div:last-child, .settings-list > div:last-child { border: 0; }
.evidence-list dt, .settings-list dt { color: var(--muted); }
.evidence-list dd, .settings-list dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.settings-list dd small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); font-weight: 400; }
.settings-list > div { grid-template-columns: 260px minmax(0, 1fr); }
.case-more-details { border-top: 1px solid var(--line); }
.case-more-details summary { padding: 13px 20px; color: var(--accent-dark); font-size: 12px; cursor: pointer; }
.inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 0 20px 20px; font-size: 13px; }
.fuel-chart { position: relative; padding: 0 20px 10px 60px; }
.fuel-chart svg { display: block; width: 100%; max-height: 310px; overflow: visible; }
.chart-scale { position: absolute; left: 14px; top: 14px; bottom: 40px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 11px; }
.chart-grid-line { stroke: #e4ecee; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: #eaf6f7; }
.chart-axis { display: flex; justify-content: space-between; padding: 0 30px; color: var(--muted); font-size: 11px; }
.chart-marker line { stroke: #aa3434; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-marker circle { fill: #aa3434; stroke: white; stroke-width: 2; }
.chart-marker--recovery line { stroke: var(--success); }
.chart-marker--recovery circle { fill: var(--success); }
.chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.chart-legend__recovery i { background: var(--success); }
.chart-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.chart-empty p { font-size: 12px; }
.series-caption { padding: 0 20px 15px; color: var(--muted); font-size: 11px; }
.workspace-card > .inline-notice { margin: 0 20px 20px; }
.gps-trace { padding: 0 20px 16px; }
.gps-trace svg { display: block; width: 100%; height: 165px; border: 1px solid var(--line); border-radius: 5px; background: #f8fbfc; }
.gps-trace path { fill: none; stroke: #74a7b1; stroke-width: 1.8; }
.gps-start { fill: white; stroke: var(--accent-dark); stroke-width: 2; }
.gps-end { fill: var(--accent-dark); }
.gps-trace__links { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 11px; }
.gps-trace__links span { color: var(--muted); text-align: center; }
.reading-panel > summary { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-size: 16px; font-weight: 650; cursor: pointer; list-style: none; }
.reading-panel > summary::-webkit-details-marker { display: none; }
.reading-panel > summary::after { content: "+"; margin-left: auto; color: var(--accent-dark); font-size: 21px; font-weight: 400; }
.reading-panel[open] > summary::after { content: "−"; }
.reading-panel__body > .table-note { padding: 0 20px; }
.reading-panel__body > .inline-notice { margin: 0 20px; }
.reading-panel .table-toolbar { padding-top: 0; }
.readings-table { min-width: 760px; }
.readings-table th { font-size: 11px; }
.readings-table td { padding: 10px 16px; white-space: nowrap; font-size: 12px; }
.reading-drop { color: var(--danger); }
.transition-list { list-style: none; margin: 0; padding: 0 20px 20px; }
.transition-list li { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
.transition-list li:first-child { padding-top: 0; }
.transition-list li:last-child { padding-bottom: 0; border: 0; }
.transition-list strong { display: block; font-size: 13px; font-weight: 600; }
.transition-list time { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.transition-list p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.delivery-list { padding: 0 20px 16px; }
.delivery-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.delivery-list > div:first-child { padding-top: 0; }
.delivery-list > div:last-child { padding-bottom: 0; border: 0; }
.delivery-list > div > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.delivery-list strong { font-size: 12px; }
.delivery-list small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.access-dialog { width: min(460px, calc(100% - 32px)); padding: 25px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: var(--surface); }
.access-dialog::backdrop { background: rgb(17 37 45 / 45%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-heading .brand__product { margin: 0; color: var(--accent-dark); }
.dialog-heading button { border: 0; background: transparent; padding: 0 8px; color: var(--muted); font-size: 24px; }
.access-dialog h2 { font-size: 21px; }
.access-dialog p { color: var(--muted); font-size: 13px; }
.access-field { display: grid; gap: 7px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.access-field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 15px; }
.login-panel { width: min(440px, 100%); margin: 32px auto 60px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.login-brand { display: block; margin-bottom: 24px; color: var(--accent-dark); font-size: 14px; font-weight: 650; }
.login-panel h1 { font-size: 26px; line-height: 1.2; }
.login-description { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-submit { width: 100%; min-height: 44px; margin-top: 22px; }
.login-footnote { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-notice { margin: 20px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.login-session { margin: 20px 0 0; }
.login-session > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 13px; }
.login-session dt { color: var(--muted); }
.login-session dd { margin: 0; overflow-wrap: anywhere; }
.form-error { margin: 14px 0 0; color: #973333; font-size: 13px; line-height: 1.5; }
.technical-access { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.technical-access summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.technical-access p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.technical-access .access-field { margin-top: 14px; }
.notifications-table td:first-child { min-width: 180px; }
.notifications-table td:nth-child(2) { min-width: 165px; }
.notifications-table td:nth-child(3) { min-width: 150px; }
.notifications-table td:nth-child(2) small { max-width: 23ch; }
.notification-reason { margin: 0; max-width: 75ch; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.notification-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; }
.notification-links a { text-decoration: underline; text-underline-offset: 3px; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; min-height: 21px; padding: 1px 5px; margin-left: 3px; border-radius: 5px; background: #e1f2f4; color: #005f6d; font-size: 11px; font-weight: 650; }
.nav-count[hidden] { display: none; }
.audit-section-tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.audit-section-tabs a { padding: 10px 0; color: var(--muted); font-size: 13px; }
.audit-section-tabs a[aria-current="page"] { color: var(--accent-dark); border-bottom: 2px solid var(--accent-dark); font-weight: 650; }
.audit-mode-note { margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.audit-mode-note strong { color: var(--ink); }
.audit-mode-note p { max-width: 75ch; margin: 5px 0 0; }
.audit-queue-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.audit-queue-summary strong { color: var(--ink); font-size: 14px; }
.audit-token-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; margin: 0 20px; padding: 13px 16px; border: 1px solid #acd4d9; border-radius: 6px; background: #f0f9fa; color: #2e555c; font-size: 12px; }
.audit-token-total strong { color: var(--ink); font-size: 15px; }
.audit-queue-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding: 16px 20px; }
.audit-select-all, .audit-case-identity { display: flex; align-items: center; gap: 10px; }
.audit-select-all { min-height: 40px; font-size: 12px; }
.audit-select-all input, .audit-case-identity input { accent-color: var(--accent-dark); width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.audit-bulk-actions, .audit-confirmation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.audit-queue-table td:first-child { min-width: 190px; }
.audit-queue-table td:last-child { min-width: 145px; }
.audit-queue-table .notification-reason { margin-top: 9px; }
.audit-queue-table .status-badge { white-space: normal; }
.audit-job-state { display: inline-block; max-width: 22ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
.audit-token-estimate { display: block; margin-top: 8px; max-width: 24ch; color: var(--muted); font-size: 11px; line-height: 1.45; }
.audit-confirmation { border: 1px solid #69aeb6; border-radius: 7px; padding: 20px; margin-bottom: 22px; background: #f0f9fa; }
.audit-confirmation h2 { font-size: 19px; }
.audit-confirmation p { max-width: 75ch; margin: 10px 0 18px; color: #2e555c; font-size: 13px; }
.audit-confirmation-actions { justify-content: flex-end; }
.audit-request-warning button { margin-top: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.error-state { max-width: 630px; padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.error-state__code { font-size: 14px; font-weight: 700; color: var(--danger); margin-bottom: 12px; }
.error-state p { color: var(--muted); overflow-wrap: anywhere; }
.error-state .primary-action { margin-top: 10px; }
.workspace-loading { padding: 10px 0; }
.skeleton { background: #e4eaed; border-radius: 4px; animation: skeleton-pulse 1.4s ease-in-out infinite alternate; }
.skeleton-title { width: 170px; height: 30px; }
.skeleton-line { width: min(340px, 80%); height: 14px; margin-top: 15px; }
.skeleton-table { width: 100%; height: 280px; margin-top: 35px; }
@keyframes skeleton-pulse { to { opacity: .55; } }
#sidebarScrim { display: none; }
.page-head .eyebrow { display: none; }
.stat, .panel, .vehicle-row, .event-card, .chart-card { box-shadow: none; }
.button { background: var(--accent-dark); }
.button:hover { background: #005b68; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 40px); }
  .topbar, .sidebar { padding-right: 20px; padding-left: 20px; }
  .summary-strip > a, .summary-strip > div { min-width: 40%; padding: 12px 16px; }
  .summary-strip > a:nth-child(odd) { padding-left: 0; border-left: 0; }
  .summary-strip > a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-decision { flex-direction: column; gap: 20px; }
  .case-quantities { flex-basis: auto; max-width: 370px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .shell { width: calc(100% - 32px); padding-top: 22px; }
  .topbar { min-height: 60px; padding: 0 16px; gap: 10px; }
  .brand { font-size: 21px; }
  .brand__product { font-size: 14px; }
  .topbar__context { display: none; }
  .sidebar { min-height: 50px; padding: 0 16px; gap: 10px; }
  .side-nav { gap: clamp(10px, 3vw, 20px); min-width: 0; overflow-x: auto; }
  .side-nav > a { font-size: 13px; min-height: 50px; white-space: nowrap; flex-shrink: 0; }
  .workspace-head { align-items: flex-start; gap: 12px; flex-direction: column; margin-bottom: 18px; }
  .workspace-head h1 { font-size: 25px; }
  .workspace-head p { font-size: 13px; margin-top: 5px; }
  .workspace-head__action { justify-content: flex-start; gap: 10px; width: 100%; }
  .workspace-head__action .secondary-action { margin-left: auto; }
  .acquisition-notice { align-items: flex-start; flex-direction: column; gap: 10px; padding: 15px; }
  .acquisition-notice strong { font-size: 14px; }
  .acquisition-notice p { font-size: 12px; }
  .operation-settings { font-size: 11px; gap: 7px 14px; margin-bottom: 18px; }
  .operation-settings a { margin-left: 0; }
  .summary-strip { margin-bottom: 20px; }
  .summary-strip > a { gap: 10px; padding: 12px 0 12px 14px; }
  .summary-strip > a:not(:first-child) { padding-left: 14px; }
  .summary-strip > a:nth-child(odd) { padding-left: 0; }
  .summary-strip span { font-size: 11px; }
  .summary-strip strong { font-size: 23px; }
  .workspace-card { margin-bottom: 16px; }
  .card-heading { align-items: flex-start; gap: 10px; padding: 16px; }
  .card-heading h2 { font-size: 15px; }
  .card-heading a { font-size: 11px; }
  .card-heading .quiet-count { font-size: 10px; }
  .responsive-table { display: block; min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: block; }
  .responsive-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; border-top: 1px solid var(--line); }
  .responsive-table td { display: block; min-width: 0 !important; border: 0; padding: 0; font-size: 12px; }
  .responsive-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-bottom: 5px; }
  .responsive-table td:first-child { grid-column: 1 / -1; }
  .responsive-table td:first-child::before { display: none; }
  .responsive-table td:first-child .table-primary { font-size: 15px; }
  .cases-table td:last-child { grid-column: 1 / -1; }
  .notifications-table td:last-child { grid-column: 1 / -1; }
  .notifications-table td:nth-child(2) small { max-width: none; }
  .notifications-table .status-badge { white-space: normal; }
  .audit-queue-summary { padding: 16px; gap: 10px 18px; }
  .audit-token-total { margin: 0 16px; }
  .audit-queue-toolbar { padding: 12px 16px; align-items: stretch; }
  .audit-bulk-actions { width: 100%; align-items: stretch; }
  .audit-bulk-actions button { flex: 1 1 160px; min-height: 42px; }
  .audit-queue-table td:nth-child(3), .audit-queue-table td:last-child { grid-column: 1 / -1; }
  .audit-queue-table td:last-child .secondary-action { width: 100%; min-height: 42px; }
  .audit-confirmation { padding: 16px; }
  .audit-confirmation-actions button { flex: 1 1 100%; min-height: 42px; }
  .audit-section-tabs { gap: 8px 18px; }
  .login-panel { margin: 6px auto 32px; padding: 24px 20px; }
  .login-panel h1 { font-size: 24px; }
  .login-panel .access-field input { font-size: 16px; }
  .notification-reason { font-size: 13px; }
  .case-summary { font-size: 12px; -webkit-line-clamp: 3; }
  .table-error { max-width: 130px; }
  .table-toolbar { padding: 16px; gap: 12px; }
  .search-field { flex: 1 1 100%; width: 100%; }
  .search-field input, .compact-field select { font-size: 16px; }
  .compact-field { flex: 1; }
  .table-count { font-size: 11px; }
  .filter-pills { padding: 12px 12px 0; gap: 2px; }
  .filter-pill { padding: 8px; font-size: 11px; }
  .filter-pill span { font-size: 10px; }
  .table-pagination { padding: 12px 16px; font-size: 11px; gap: 8px; }
  .table-pagination button { font-size: 11px; padding: 8px; }
  .vehicle-snapshot { gap: 18px 26px; }
  .vehicle-snapshot > div { flex: 1 0 40%; }
  .vehicle-snapshot strong { font-size: 15px; }
  .case-decision { padding: 18px 0; gap: 18px; }
  .case-decision h2 { font-size: 19px; }
  .case-decision p { font-size: 13px; }
  .case-quantities { width: 100%; max-width: none; gap: 18px; }
  .case-quantities dd { font-size: 27px; }
  .case-quantities dt { font-size: 11px; }
  .evidence-list, .settings-list { padding: 0 16px 10px; }
  .evidence-list > div, .settings-list > div { grid-template-columns: minmax(100px, .8fr) minmax(0, 1fr); gap: 12px; font-size: 12px; }
  .settings-list dd small { font-size: 11px; }
  .fuel-chart { padding: 0 10px 10px 40px; }
  .fuel-chart svg { min-height: 150px; }
  .chart-scale { left: 7px; top: 12px; bottom: 38px; font-size: 9px; }
  .chart-axis { padding: 0 15px; font-size: 9px; }
  .series-caption { padding: 0 16px 14px; font-size: 10px; }
  .reading-panel > summary { padding: 16px; font-size: 14px; }
  .reading-panel > summary .quiet-count { font-size: 10px; }
  .reading-panel__body > .table-note { padding: 0 16px; }
  .transition-list, .delivery-list { padding-right: 16px; padding-left: 16px; }
  .inline-actions { align-items: flex-start; flex-direction: column; padding: 0 16px 18px; gap: 14px; }
  .access-dialog { padding: 21px; }
  .access-field input { font-size: 16px; }
  .dialog-actions { justify-content: stretch; }
  .dialog-actions button { flex: 1; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
