:root {
  --primary: #2457c5;
  --primary-strong: #0e223e;
  --signal: #f2b84b;
  --ink: #17202a;
  --muted: #5d6b7a;
  --canvas: #f3f5f7;
  --surface: #fff;
  --surface-soft: #e8edf3;
  --line: #d7dee7;
  --success: #16794c;
  --warning: #a15d00;
  --danger: #b42318;
  --critical: #7f1d1d;
  --shadow: 0 14px 40px rgba(14, 34, 62, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(215, 243, 106, .8); outline-offset: 2px; }

.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 10% 0%, rgba(242, 184, 75, .16) 0, transparent 35%), var(--canvas); }
.login-card { width: min(430px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 32px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.brand-mark span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--signal); color: var(--ink); }
.login-card h1 { margin: 30px 0 8px; font-size: clamp(30px, 8vw, 42px); line-height: 1.02; letter-spacing: -.05em; }
.login-card p { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 12px 14px; }
.field textarea { min-height: 90px; resize: vertical; }
.button { min-height: 48px; border: 0; border-radius: 14px; padding: 0 18px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #fff; }
.button-signal { background: var(--signal); color: var(--ink); }
.button-quiet { background: var(--surface-soft); color: var(--primary-strong); }
.button-danger { background: #fae5e3; color: var(--danger); }
.button-ghost { min-height: 42px; background: transparent; color: var(--primary); padding: 0 10px; }
.button-block { width: 100%; }
.error-text { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 13px; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 28px; background: var(--primary-strong); color: #fff; padding: 24px 16px; }
.sidebar .brand-mark { color: #fff; padding: 0 10px; }
.sidebar .brand-mark span { background: var(--signal); color: var(--ink); }
.org-switch { margin: 0 8px; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.4; }
.org-switch strong { display: block; color: #fff; font-size: 13px; margin-top: 3px; }
.nav { display: grid; gap: 6px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; border: 0; background: transparent; color: rgba(255,255,255,.72); border-radius: 12px; padding: 0 12px; text-align: left; font-weight: 700; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; padding: 0 8px; color: rgba(255,255,255,.72); font-size: 13px; }
.sidebar-footer .button-ghost { color: #fff; justify-content: flex-start; padding: 0; }

.content { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px clamp(20px, 4vw, 48px) 8px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.045em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 12px; font-weight: 750; }
.connection.offline { color: var(--warning); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.main { max-width: 1500px; padding: 16px clamp(20px, 4vw, 48px) 100px; }
.notice { display: flex; align-items: center; gap: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 22px; color: var(--primary-strong); font-size: 14px; }
.notice strong { display: block; margin-bottom: 2px; }
.notice .notice-icon { font-size: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 14px rgba(15,45,34,.03); }
.kpi { padding: 18px; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kpi-value { font-size: 34px; font-weight: 800; letter-spacing: -.06em; }
.kpi-foot { color: var(--muted); font-size: 12px; }
.kpi-critical { border-color: #e4aaa6; background: #fff8f7; }
.kpi-critical .kpi-value { color: var(--critical); }
.kpi-attention .kpi-value { color: var(--warning); }
.kpi-ready .kpi-value { color: var(--success); }
.two-col { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.gate-card { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--primary); color: #fff; border: 0; overflow: hidden; position: relative; }
.gate-card::after { content: ""; position: absolute; right: -35px; bottom: -60px; width: 180px; height: 180px; border: 28px solid rgba(215,243,106,.25); border-radius: 50%; }
.gate-card > * { position: relative; z-index: 1; }
.gate-card h2 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.gate-card p { margin: 0; color: rgba(255,255,255,.76); max-width: 520px; line-height: 1.45; }
.gate-score { min-width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: var(--ink); font-size: 30px; font-weight: 850; }
.vehicle-list { display: grid; gap: 10px; }
.vehicle-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 15px 16px; }
.vehicle-name { min-width: 0; }
.vehicle-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-name span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.status-pill, .severity-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.status-ready { color: var(--success); background: #e3f3e9; }
.status-attention { color: var(--warning); background: #fff1d8; }
.status-blocked { color: var(--critical); background: #fbe4e2; }
.status-pending { color: var(--muted); background: var(--surface-soft); }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; }

.inspection-layout { max-width: 920px; margin: 0 auto; }
.inspection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; margin-bottom: 14px; }
.inspection-head h2 { margin: 4px 0 5px; font-size: 24px; letter-spacing: -.04em; }
.inspection-head p { margin: 0; color: var(--muted); }
.inspection-progress { height: 7px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; margin-top: 18px; }
.inspection-progress span { display: block; height: 100%; background: var(--signal); border-radius: inherit; transition: width .25s ease; }
.checklist { display: grid; gap: 10px; }
.check-item { padding: 17px; }
.check-item-head { display: flex; justify-content: space-between; gap: 12px; }
.check-item h3 { margin: 0 0 5px; font-size: 16px; }
.check-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.severity-critical { color: var(--critical); background: #fbe4e2; }
.severity-high { color: #8b4b00; background: #fff1d8; }
.severity-medium { color: #49621d; background: #edf5d2; }
.severity-low { color: var(--muted); background: var(--surface-soft); }
.answer-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.answer-button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 800; }
.answer-button.selected-pass { border-color: var(--success); color: var(--success); background: #e3f3e9; }
.answer-button.selected-fail { border-color: var(--danger); color: var(--danger); background: #fff0ef; }
.answer-button.selected-na { border-color: var(--muted); color: var(--ink); background: var(--surface-soft); }
.evidence-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.evidence-row input[type=file] { display: none; }
.evidence-link { color: var(--primary); font-size: 12px; font-weight: 750; text-decoration: none; }
.note-input { margin-top: 10px; }
.note-input input { min-height: 42px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.complete-bar { position: sticky; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.complete-bar p { margin: 0; color: var(--muted); font-size: 13px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(6, 35, 27, .45); }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.modal h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.modal-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--ink); font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: 360px; padding: 13px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 13px; }
.toast.warn { background: var(--warning); }
.toast.ok { background: var(--success); }
.mobile-nav { display: none; }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.insight-list { display: grid; gap: 10px; }
.insight { padding: 16px; border-left: 4px solid var(--primary); }
.insight.critical { border-left-color: var(--critical); background: #fff8f7; }
.insight.warning { border-left-color: var(--warning); background: #fffaf0; }
.insight strong { display: block; margin-bottom: 5px; }
.insight p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding-top: 18px; }
  .main { padding-bottom: 96px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .mobile-nav button { min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
  .mobile-nav button.active { color: var(--primary); background: var(--surface-soft); }
}
@media (max-width: 580px) {
  .topbar { align-items: flex-start; }
  .topbar-actions .button { padding: 0 12px; }
  .connection { display: none; }
  .main { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .gate-card { align-items: flex-start; flex-direction: column; }
  .gate-score { width: 76px; height: 76px; min-width: 76px; font-size: 24px; }
  .vehicle-row { grid-template-columns: minmax(0, 1fr) auto; }
  .vehicle-row .button { grid-column: 1 / -1; width: 100%; }
  .inspection-head { display: block; }
  .inspection-head .status-pill { margin-top: 14px; }
  .complete-bar { display: block; }
  .complete-bar .button { width: 100%; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Signal cockpit refresh: stronger hierarchy, fewer generic cards, clearer field rhythm. */
:root {
  --primary: #2457c5;
  --primary-strong: #0e223e;
  --signal: #f2b84b;
  --ink: #17202a;
  --muted: #5d6b7a;
  --canvas: #f3f5f7;
  --surface: #fbfdfb;
  --surface-soft: #e8edf3;
  --line: #d7dee7;
  --shadow: 0 18px 50px rgba(14, 34, 62, .09);
}

body { background: var(--canvas); }
.app-shell { grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: var(--primary-strong); padding: 28px 15px; }
.sidebar .brand-mark { font-size: 15px; letter-spacing: -.045em; }
.sidebar .brand-mark span { width: 34px; height: 34px; border-radius: 10px; }
.content { background: var(--canvas); }
.topbar { background: rgba(251, 253, 251, .78); border-bottom: 1px solid rgba(203, 218, 208, .72); margin-bottom: 8px; padding-top: 22px; }
.topbar h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 820; }
.eyebrow, .section-index { letter-spacing: .13em; font-weight: 850; text-transform: uppercase; }
.section-index { display: block; color: var(--primary); font-size: 10px; margin-bottom: 7px; }
.main { padding-top: 20px; }
.notice { background: transparent; border: 0; border-left: 3px solid var(--primary); border-radius: 0; padding: 5px 0 5px 14px; margin: 0 0 20px; }
.notice-icon { display: none; }

.section-heading { margin-top: 32px; margin-bottom: 14px; }
.section-heading h2 { font-size: 21px; letter-spacing: -.04em; }
.section-heading p { margin-top: 3px; }
.two-col { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: start; gap: 18px; }
.vehicle-row { grid-template-columns: 34px minmax(0, 1fr) auto; min-height: 88px; padding: 14px 16px; border-radius: 15px; box-shadow: none; }
.vehicle-name strong { font-size: 15px; }
.button-quiet { background: var(--surface-soft); }
.table-card { box-shadow: none; }

.nav-glyph { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 8px; font-size: 11px; line-height: 1; }
.nav-label { line-height: 1; }

@media (max-width: 900px) {
  .main { padding-top: 14px; }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .mobile-nav .nav-glyph { width: 24px; height: 24px; }
  .mobile-nav .nav-label { font-size: 10px; }
}

@media (max-width: 580px) {
  .topbar { padding-top: 16px; }
  .topbar h1 { font-size: 30px; }
  .main { padding-left: 14px; padding-right: 14px; }
  .two-col { gap: 14px; }
  .vehicle-row { grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 82px; padding: 12px; }
  .status-pill { font-size: 9px; padding: 0 7px; }
}

/* FrotaProof theme system: calm graphite canvas, navy command surfaces and one signal accent. */
:root,
:root[data-theme="navy-cobalt"] {
  color-scheme: light;
  --primary: var(--custom-primary, #2457c5);
  --primary-strong: #0e223e;
  --signal: var(--custom-signal, #f2b84b);
  --ink: #17202a;
  --muted: #5d6b7a;
  --canvas: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #e8edf3;
  --line: #d7dee7;
  --shadow: 0 18px 50px rgba(14, 34, 62, .09);
}

:root[data-theme="graphite-orange"] {
  --primary: var(--custom-primary, #b34b14);
  --primary-strong: #252b35;
  --signal: var(--custom-signal, #f2b84b);
  --ink: #1f242b;
  --muted: #66707d;
  --canvas: #f2f3f5;
  --surface: #ffffff;
  --surface-soft: #e7e9ed;
  --line: #d5d9e0;
  --shadow: 0 18px 50px rgba(37, 43, 53, .1);
}

:root[data-theme="slate-indigo"] {
  --primary: var(--custom-primary, #4d5bd5);
  --primary-strong: #26324a;
  --signal: var(--custom-signal, #d8c7ff);
  --ink: #20263a;
  --muted: #626b80;
  --canvas: #f4f5fa;
  --surface: #ffffff;
  --surface-soft: #e8eaf5;
  --line: #d9dceb;
  --shadow: 0 18px 50px rgba(38, 50, 74, .1);
}

body { background: var(--canvas); color: var(--ink); }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--signal) 75%, var(--primary)); outline-offset: 3px; }
.button { min-height: 48px; }
.button-ghost { min-height: 48px; }
.button svg, .nav-glyph svg, .notice-icon svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-glyph { display: inline-grid; place-items: center; width: 25px; height: 25px; }
.nav-glyph svg { width: 20px; height: 20px; }
.appearance-trigger { gap: 7px; }
.appearance-trigger svg { width: 17px; height: 17px; }
.desktop-only { display: inline; }
.login-page { background: radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--signal) 20%, transparent) 0, transparent 34%), var(--canvas); }
.topbar { background: color-mix(in srgb, var(--surface) 84%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 80%, transparent); }
.modal-backdrop { background: rgba(14, 34, 62, .58); overscroll-behavior: contain; }
.modal { overscroll-behavior: contain; }
.modal-close { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
.modal-intro { margin: -8px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.theme-options { display: grid; gap: 8px; }
.theme-option { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; }
.theme-option:hover, .theme-option.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.theme-option strong, .theme-option small { display: block; }
.theme-option small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.theme-swatch { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--swatch-primary) 0 58%, var(--swatch-accent) 58%); border: 1px solid var(--line); }
.custom-theme { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.custom-theme h3 { margin: 0; font-size: 15px; }
.custom-theme p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.color-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.color-fields input { width: 100%; height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.contrast-status { min-height: 20px; margin: 0 !important; font-size: 12px !important; line-height: 1.4; }
.contrast-status.is-valid { color: var(--success); }
.contrast-status.is-invalid { color: var(--danger); }
.modal-actions { flex-wrap: wrap; }
.modal-actions .button { flex: 1 1 160px; }
.toast { bottom: calc(18px + env(safe-area-inset-bottom)); }
.mobile-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.mobile-nav button { min-height: 52px; touch-action: manipulation; }
.mobile-nav button:focus-visible { outline-offset: -3px; }
.mobile-nav .nav-glyph { border: 0; }
.mobile-nav .nav-label { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }

@media (max-width: 580px) {
  .desktop-only { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .appearance-trigger { width: 48px; padding: 0; }
  .color-fields { grid-template-columns: 1fr; }
  .modal-actions .button { width: 100%; }
}

/* Minimal fleet workspace: one clear question per screen, no decorative cockpit. */
.fleet-home { max-width: 1120px; }
.fleet-home-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 8px 0 24px; }
.fleet-home-intro h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.04; letter-spacing: -.055em; }
.fleet-home-intro p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.fleet-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fleet-summary-item { display: grid; gap: 5px; min-height: 120px; padding: 18px 20px; border-right: 1px solid var(--line); }
.fleet-summary-item:last-child { border-right: 0; }
.fleet-summary-item > span, .fleet-summary-item > small { color: var(--muted); font-size: 12px; }
.fleet-summary-item > span { font-weight: 800; }
.fleet-summary-item > strong { color: var(--ink); font-size: 34px; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.fleet-summary-item.ready > strong { color: var(--success); }
.fleet-summary-item.attention > strong { color: var(--warning); }
.fleet-summary-item.blocked > strong { color: var(--critical); }
.fleet-section { margin-top: 36px; }
.fleet-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.fleet-section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.fleet-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.fleet-sort-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fleet-list-card, .activity-list, .recurring-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fleet-vehicle-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, .9fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fleet-vehicle-row:last-child { border-bottom: 0; }
.fleet-vehicle-main { min-width: 0; }
.fleet-vehicle-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fleet-vehicle-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.fleet-vehicle-main > span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.fleet-vehicle-progress { min-width: 0; }
.fleet-vehicle-progress strong, .fleet-vehicle-progress small { display: block; }
.fleet-vehicle-progress strong { font-size: 13px; }
.fleet-vehicle-progress small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.fleet-progress { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.fleet-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .2s ease; }
.fleet-vehicle-action { justify-self: end; }
.fleet-vehicle-action .button { min-width: 145px; }
.fleet-lower-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 18px; }
.fleet-lower-grid .fleet-section { min-width: 0; }
.activity-row, .recurring-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 74px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.activity-row:last-child, .recurring-row:last-child { border-bottom: 0; }
.activity-row > div:first-child, .recurring-row > div { min-width: 0; }
.activity-row strong, .activity-row span, .recurring-row strong, .recurring-row span { display: block; }
.activity-row strong, .recurring-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.activity-row span, .recurring-row span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.activity-row > div:last-child { display: grid; justify-items: end; gap: 5px; }
.activity-row small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.recurring-row > b { color: var(--warning); font-size: 13px; white-space: nowrap; }
.activity-empty { display: grid; gap: 5px; padding: 24px 18px; }
.activity-empty strong { font-size: 13px; }
.activity-empty span { color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 900px) {
  .fleet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-summary-item:nth-child(2) { border-right: 0; }
  .fleet-summary-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .fleet-vehicle-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fleet-vehicle-progress { grid-column: 1 / -1; }
  .fleet-vehicle-action { grid-column: 2; grid-row: 1; }
  .fleet-lower-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 580px) {
  .fleet-home-intro { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 2px; }
  .fleet-home-intro .button { width: 100%; }
  .fleet-summary-item { min-height: 104px; padding: 15px 14px; }
  .fleet-summary-item > strong { font-size: 30px; }
  .fleet-section { margin-top: 28px; }
  .fleet-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .fleet-vehicle-row { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; padding: 16px 14px; }
  .fleet-vehicle-action .button { min-width: 0; padding: 0 11px; font-size: 12px; }
  .fleet-vehicle-progress { padding-top: 1px; }
  .fleet-lower-grid .fleet-section-head .button { align-self: stretch; width: 100%; }
}
