:root {
  --navy: #12233f;
  --navy-deep: #071b34;
  --blue: #1267d6;
  --blue-dark: #0b55b7;
  --blue-soft: #eaf2ff;
  --red: #d9232e;
  --red-dark: #b91f28;
  --red-soft: #fff0f1;
  --amber: #d97808;
  --amber-soft: #fff6e8;
  --green: #23845d;
  --green-soft: #eaf7f1;
  --text: #152037;
  --muted: #667085;
  --line: #d9dee7;
  --line-dark: #c6ccd6;
  --surface: #ffffff;
  --canvas: #f6f8fb;
  --sidebar: 224px;
  --topbar: 68px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--canvas); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: var(--sidebar); flex-direction: column; color: #fff; background: var(--navy-deep); }
.brand { display: flex; height: var(--topbar); align-items: center; gap: 9px; padding: 0 14px; font-size: 23px; letter-spacing: -.8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand strong { margin-right: 4px; font-style: italic; letter-spacing: -1.4px; }
.brand-logo { display: block; width: 34px; height: 44px; padding: 2px; object-fit: contain; background: #fff; border-radius: 5px; }
.main-nav { padding: 12px 0; }
.nav-link { position: relative; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 24px; color: rgba(255,255,255,.9); font-weight: 600; text-decoration: none; }
.nav-link:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.nav-link.active { color: #fff; background: #0e477f; }
.nav-link.active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #65c4ff; }
.nav-link .icon { width: 21px; }
.sidebar-help { margin-top: auto; padding: 20px 24px; color: rgba(255,255,255,.6); font-size: 12px; }

.app-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: var(--topbar); align-items: center; justify-content: space-between; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 22px; line-height: 1; letter-spacing: -.4px; }
.mobile-title { display: none; }
.user-menu { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.user-menu form { margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px; color: var(--text); border: 0; background: transparent; cursor: pointer; }
.text-button .icon { width: 18px; }
.content { width: min(100%, 1500px); margin: 0 auto; padding: 20px 26px 52px; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; line-height: 1.1; cursor: pointer; text-decoration: none; transition: border-color .16s, background .16s, transform .16s; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(18,103,214,.24); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { color: var(--blue); background: #fff; border-color: var(--blue); }
.button-secondary:hover { background: var(--blue-soft); }
.button-danger { color: var(--red); background: #fff; border-color: #ef9ca5; }
.button-danger:hover { background: var(--red-soft); }
.button-small { min-height: 34px; padding: 7px 13px; font-size: 12px; }
.button[disabled] { color: #fff; background: #98a2b3; border-color: #98a2b3; cursor: not-allowed; transform: none; }
.icon-button { display: inline-grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mobile-only, .bottom-nav { display: none; }

.lookup-panel, .stats-strip, .data-section, .activity-section, .page-tools, .vehicle-identity, .vehicle-media-panel, .defects-panel, .workflow-panel, .report-panel, .vehicle-side section, .report-summary, .driver-summary, .simple-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lookup-panel { padding: 17px 18px; }
.lookup-form > label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.lookup-controls { display: grid; grid-template-columns: minmax(280px, 1fr) 200px 300px; gap: 14px; align-items: stretch; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon .icon { position: absolute; left: 14px; width: 19px; color: var(--muted); pointer-events: none; }
.input-with-icon input { width: 100%; height: 48px; padding: 0 14px 0 44px; background: #fff; border: 1px solid var(--line-dark); border-radius: 7px; }
.registration-input input { padding-right: 52px; }
.embedded-camera { position: absolute; right: 5px; display: grid; width: 40px; height: 38px; place-items: center; padding: 0; color: var(--navy); background: #fff; border: 0; border-left: 1px solid var(--line); cursor: pointer; }
.embedded-camera .icon { position: static; width: 21px; color: inherit; }
.scan-action { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 0 16px; color: var(--blue); background: #fff; border: 0; border-left: 1px solid var(--line); cursor: pointer; text-align: left; }
.scan-action .icon { width: 32px; height: 32px; }
.scan-action span { display: flex; flex-direction: column; }
.scan-action small { color: var(--muted); font-size: 12px; font-weight: 500; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; padding: 10px 0; }
.driver-welcome { margin-top: 14px; padding: 24px; background: linear-gradient(135deg, #fff, var(--blue-soft)); border: 1px solid #b9d4f5; border-radius: var(--radius); }
.driver-welcome h2 { margin: 0 0 5px; font-size: 20px; }
.driver-welcome p { margin: 0; color: var(--muted); }
.stat { display: flex; min-height: 88px; align-items: center; gap: 15px; padding: 12px 24px; color: inherit; border-right: 1px solid var(--line); text-decoration: none; transition: background .15s ease, box-shadow .15s ease; }
.stat:last-child { border-right: 0; }
.stat:hover, .stat:focus-visible, .driver-summary > a:hover, .driver-summary > a:focus-visible, .admin-summary > a:hover, .admin-summary > a:focus-visible { background: #f5f9ff; box-shadow: inset 0 -3px 0 var(--blue); outline: none; }
.stat-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.stat-red .stat-icon { color: var(--red); background: var(--red-soft); }
.stat-amber .stat-icon { color: var(--amber); background: var(--amber-soft); }
.stat > span:last-child { display: grid; }
.stat small { color: var(--text); font-size: 12px; font-weight: 700; }
.stat strong { color: var(--blue); font-size: 26px; line-height: 1.15; }
.stat-red strong { color: var(--red); }
.stat-amber strong { color: var(--amber); }
.stat em { color: var(--muted); font-size: 12px; font-style: normal; }

.data-section { margin-top: 14px; overflow: hidden; }
.data-section > h2, .section-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 16px; }
.data-section > h2 { color: #fff; background: var(--red); font-size: 15px; }
.data-section > h2 { justify-content: flex-start; }
.data-section > h2 .icon { width: 18px; }
.section-heading h2 { margin: 0; font-size: 15px; }
.section-heading a { font-size: 12px; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { height: 42px; padding: 8px 14px; border-top: 1px solid var(--line); text-align: left; }
th { color: #313b4f; background: #fafbfc; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
td { font-size: 13px; }
.registration { color: var(--text); font-weight: 800; }
.status, .severity { display: inline-block; padding: 3px 8px; border: 1px solid; border-radius: 4px; font-size: 11px; font-weight: 700; }
.status-ready { color: var(--green); border-color: #6cb89b; background: var(--green-soft); }
.status-attention { color: var(--red); border-color: #f08d92; background: var(--red-soft); }
.text-danger { color: var(--red); font-weight: 800; }
.text-success { color: var(--green); font-weight: 800; }

.activity-section { margin-top: 14px; overflow: hidden; }
.activity-row { display: grid; grid-template-columns: 28px 1fr auto 130px; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; border-top: 1px solid var(--line); }
.activity-row .icon { width: 20px; color: var(--blue); }
.activity-row.priority-critical .icon { color: var(--red); }
.activity-row time, .activity-row small { color: var(--muted); font-size: 12px; }

.flash { margin-bottom: 14px; padding: 12px 15px; border: 1px solid; border-radius: 7px; font-weight: 600; }
.flash-success { color: #12613f; background: var(--green-soft); border-color: #99cfb9; }
.flash-error { color: #8c1720; background: var(--red-soft); border-color: #f0a2a7; }
.flash-warning { color: #7c4804; background: var(--amber-soft); border-color: #e9bf80; }

.page-tools { padding: 14px; }
.page-tools form { display: flex; gap: 10px; }
.page-tools .input-with-icon { flex: 1; max-width: 620px; }
.vehicle-list-section { margin-top: 14px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 700; }
.back-link .icon { width: 18px; }
.vehicle-identity { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; }
.vehicle-identity h2 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -.8px; }
.vehicle-identity p { margin: 5px 0 0; color: var(--muted); font-size: 17px; }
.vehicle-meta { display: flex; gap: 10px; }
.vehicle-meta span { padding: 6px 10px; color: var(--muted); background: #f4f6f9; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; font-weight: 700; }
.vehicle-media-panel { margin-top: 14px; overflow: hidden; }
.vehicle-media-panel > .section-heading { border-bottom: 1px solid var(--line); }
.vehicle-media-panel > .section-heading h2 { display: flex; align-items: center; gap: 8px; }
.vehicle-media-panel > .section-heading .icon { width: 19px; color: var(--blue); }
.vehicle-media-panel > .section-heading > span { color: var(--muted); font-size: 12px; }
.empty-state.compact { padding: 24px 18px; }
.media-current-warning { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #794600; background: var(--amber-soft); border-bottom: 1px solid #e6b56c; }
.media-current-warning .icon { flex: 0 0 auto; width: 20px; }
.media-current-warning span { display: grid; gap: 2px; font-size: 12px; }
.media-group { border-bottom: 1px solid var(--line); }
.media-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.media-group > summary::-webkit-details-marker { display: none; }
.media-group > summary::after { content: "+"; color: var(--blue); font-size: 20px; font-weight: 500; }
.media-group[open] > summary::after { content: "−"; }
.media-group > summary small { margin-left: auto; margin-right: 12px; padding: 2px 7px; color: var(--muted); background: #f1f4f8; border-radius: 10px; font-weight: 700; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.media-card { min-width: 0; overflow: hidden; color: var(--text); background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.media-card:hover { border-color: #8eb9ef; }
.media-card.is-primary { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.media-preview { display: block; color: inherit; text-decoration: none; }
.media-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e6eaf0; }
.media-card > span { display: grid; gap: 2px; padding: 9px 10px; }
.media-card strong, .media-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card strong { font-size: 12px; }
.media-card small { color: var(--muted); font-size: 11px; }
.media-card em { width: fit-content; margin-top: 4px; padding: 2px 6px; color: #0b6645; background: #e5f6ee; border-radius: 9px; font-size: 10px; font-style: normal; font-weight: 800; }
.media-admin-controls { border-top: 1px solid var(--line); }
.media-admin-controls > summary { padding: 8px 10px; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.media-admin-controls > summary::-webkit-details-marker { display: none; }
.media-admin-controls > summary::after { content: " +"; }
.media-admin-controls[open] > summary::after { content: " −"; }
.media-admin-controls > form { display: grid; gap: 6px; padding: 0 10px 10px; }
.media-admin-controls input { width: 100%; min-height: 34px; padding: 7px 8px; border: 1px solid var(--line-dark); border-radius: 5px; font-size: 11px; }
.media-admin-controls button { min-height: 32px; padding: 6px 8px; color: var(--blue); background: #fff; border: 1px solid #8eb9ef; border-radius: 5px; font-size: 11px; font-weight: 800; cursor: pointer; }
.media-admin-controls button:hover { background: #edf5ff; }
.media-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px 10px; }
.media-actions form:last-child button { color: var(--red); border-color: #ef9ca5; }
.media-actions button { width: 100%; }
.inline-upload-panel > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--blue); font-weight: 800; cursor: pointer; list-style: none; }
.inline-upload-panel > summary::-webkit-details-marker { display: none; }
.inline-upload-panel > summary .icon { width: 18px; }
.inline-upload-panel[open] > summary { border-bottom: 1px solid var(--line); }
.inline-upload-panel form { padding: 16px; }
.defect-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 18px; color: #fff; background: var(--amber); border-radius: 7px; font-size: 16px; }
.defect-banner.critical { background: var(--red); }
.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; margin-top: 16px; }
.vehicle-main { display: grid; gap: 16px; min-width: 0; }
.defects-panel, .workflow-panel { overflow: hidden; }
.defects-panel .section-heading { padding: 13px 18px; }
.defect-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--line); }
.defect-symbol { display: grid; width: 44px; height: 44px; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 8px; }
.defect-critical .defect-symbol { color: var(--red); background: var(--red-soft); }
.defect-minor .defect-symbol { color: var(--blue); background: var(--blue-soft); }
.defect-copy h3 { margin: 0; font-size: 16px; }
.defect-copy p { margin: 4px 0 9px; color: var(--muted); }
.defect-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.severity-critical { color: var(--red); border-color: #f08d92; background: var(--red-soft); }
.severity-important { color: var(--amber); border-color: #e8ad5d; background: var(--amber-soft); }
.severity-minor { color: var(--blue); border-color: #8eb9ef; background: var(--blue-soft); }
.severity-unassessed { color: #5f4b84; border-color: #b8a8d4; background: #f5f1fb; }
.defect-evidence { display: block; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.defect-evidence img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.drive-block { display: block; margin-top: 10px; padding: 9px 11px; color: var(--red-dark); background: var(--red-soft); border: 1px solid #f2afb3; border-radius: 6px; }
.drive-block.large { margin: 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 20px; color: var(--muted); }
.empty-state .icon { width: 32px; height: 32px; color: var(--green); }
.empty-state strong { color: var(--text); }

.workflow-panel { padding: 18px; }
.workflow-panel h2 { margin: 0 0 5px; font-size: 19px; }
.workflow-panel > p { margin: 0 0 15px; color: var(--muted); }
.inline-warning { display: grid; gap: 4px; margin: 12px 0 16px; padding: 12px; color: #794600; background: var(--amber-soft); border: 1px solid #e6b56c; border-radius: 7px; }
.checkout-conflict-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.checkout-conflict-actions form { margin: 0; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.stack-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .stack-form select, .stack-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-dark); border-radius: 7px; }
.stack-form textarea { resize: vertical; }
.check-label { display: grid !important; grid-template-columns: 22px 1fr; align-items: start; gap: 10px !important; }
.check-label input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-panel { overflow: hidden; }
.report-panel summary { display: flex; align-items: center; gap: 8px; padding: 16px 18px; color: var(--blue); font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.report-panel summary::-webkit-details-marker { display: none; }
.report-panel[open] summary { border-bottom: 1px solid var(--line); }
.report-panel form { padding: 18px; }
.photo-upload { display: flex !important; align-items: center; grid-template-columns: 28px 1fr; padding: 12px; color: var(--blue); border: 1px dashed #82afe8; border-radius: 7px; cursor: pointer; }
.photo-upload span { display: grid; }
.photo-upload small { color: var(--muted); font-weight: 500; }
.photo-upload input { grid-column: 1 / -1; width: 100%; color: var(--muted); }

.vehicle-side { display: grid; align-content: start; gap: 16px; }
.vehicle-layout-single { grid-template-columns: minmax(0, 1fr); }
.vehicle-side section { padding: 16px; }
.vehicle-side h2 { margin: 0 0 12px; font-size: 16px; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid var(--line); }
dl > div:first-child { border-top: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; }
.history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.history-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.history-list li:first-child { border-top: 0; }
.history-list span, .history-list small { color: var(--muted); }

.driver-summary { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; overflow: hidden; }
.driver-summary > div, .driver-summary > a { display: grid; gap: 2px; padding: 16px 20px; color: inherit; border-left: 1px solid var(--line); text-decoration: none; }
.driver-summary > :first-child { border-left: 0; }
.driver-summary small { color: var(--muted); }
.driver-summary strong { color: var(--blue); font-size: 24px; }
.defect-summary { grid-template-columns: repeat(4, 1fr); }
.driver-list-section td strong, .driver-list-section td small { display: block; }
.driver-list-section td small, .driver-list-section .muted, .section-heading > span { color: var(--muted); font-size: 11px; }
.status-muted { color: #5f6877; border-color: #c8ced7; background: #f4f6f8; }

.filter-field { display: grid; gap: 3px; min-width: 210px; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-field select { min-height: 44px; padding: 8px 34px 8px 10px; background: #fff; border: 1px solid var(--line-dark); border-radius: 7px; }
.defect-tools .input-with-icon { flex: 1 1 320px; }
.defect-list-section td strong, .defect-list-section td small { display: block; }
.defect-list-section td small { color: var(--muted); font-size: 11px; }
.severity-minor { color: #5f6877; border-color: #c8ced7; background: #f4f6f8; }
.severity-important { color: #8b5100; border-color: #e6b56c; background: var(--amber-soft); }
.severity-critical { color: var(--red); border-color: #f08d92; background: var(--red-soft); }
.defect-report { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.defect-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.defect-report-header h2 { margin: 8px 0 2px; font-size: 26px; }
.defect-report-header p { margin: 0; color: var(--muted); }
.defect-report-body { display: grid; gap: 22px; padding: 22px 24px; }
.defect-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.defect-description h3, .defect-photo-section h3 { margin: 0 0 8px; font-size: 15px; }
.defect-description p { margin: 0; white-space: normal; }
.defect-photo-section .media-grid { padding: 0; }
.defect-status-panel { padding: 16px 24px; background: #f8fafc; border-top: 1px solid var(--line); }
.defect-status-panel form { display: flex; align-items: end; gap: 10px; }
.defect-status-panel label { display: grid; flex: 1 1 260px; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.defect-status-panel select { min-height: 44px; padding: 8px 10px; background: #fff; border: 1px solid var(--line-dark); border-radius: 7px; }

.report-summary { display: flex; align-items: center; gap: 40px; padding: 18px; }
.report-summary > div { display: grid; }
.report-summary small { color: var(--muted); }
.report-summary strong { font-size: 24px; }
.report-summary .button { margin-left: auto; }
.report-tools .filter-field { min-width: 310px; }
.report-generated { margin-left: auto; }
.privacy-notice { display: flex; gap: 10px; margin-top: 12px; padding: 11px 14px; color: #5f4b84; background: #f5f1fb; border: 1px solid #cbbde0; border-radius: 7px; font-size: 12px; }
.privacy-notice span { color: #6b617c; }
.printable-report { margin-top: 12px; }
.simple-panel { max-width: 820px; padding: 24px; }
.simple-panel h2 { margin-top: 0; }

.form-help { display: block; margin-top: -7px; color: var(--muted); }
.remember-device { margin-top: 2px; font-weight: 600 !important; }
.admin-summary { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-summary > div, .admin-summary > a { display: grid; gap: 3px; padding: 18px 20px; color: inherit; border-left: 1px solid var(--line); text-decoration: none; }
.admin-summary > :first-child { border-left: 0; }
.admin-summary small { color: var(--muted); font-weight: 700; }
.admin-summary strong { color: var(--blue); font-size: 27px; }
.admin-summary .admin-summary-attention strong { color: var(--amber); }
.administration-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 14px; margin-top: 14px; }
.admin-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-panel .section-heading { align-items: flex-start; border-bottom: 1px solid var(--line); }
.section-heading > div p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.account-create-panel > form { padding: 18px; }
.stack-form label > small { color: var(--muted); font-weight: 500; }
.credential-guidance { display: grid; gap: 2px; padding: 11px 12px; color: #154f8e; background: var(--blue-soft); border: 1px solid #b9d4f5; border-radius: 7px; }
.credential-guidance span { font-size: 12px; }
.access-rule-list { margin: 0; padding: 6px 18px 14px; list-style: none; }
.access-rule-list li { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.access-rule-list li:first-child { border-top: 0; }
.access-rule-list span { color: var(--muted); font-size: 12px; }
.security-note { display: grid; gap: 3px; margin: 0 18px 18px; padding: 12px; color: #12613f; background: var(--green-soft); border: 1px solid #99cfb9; border-radius: 7px; }
.security-note span { font-size: 12px; }
.password-privacy-note { display: grid; gap: 3px; margin: 0 18px 18px; padding: 12px; color: #5f4b84; background: #f5f1fb; border: 1px solid #cbbde0; border-radius: 7px; }
.password-privacy-note span { font-size: 12px; }
.secret-input { position: relative; display: flex; }
.secret-input input { padding-right: 62px !important; }
.secret-input button { position: absolute; inset: 5px 5px 5px auto; min-width: 50px; padding: 0 7px; color: var(--blue); background: #f5f9ff; border: 1px solid #b9d4f5; border-radius: 5px; font-size: 11px; font-weight: 800; cursor: pointer; }
.credential-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.credential-actions .button { flex: 1 1 190px; }
.stack-form select option:disabled { color: #98a2b3; }
.account-register td strong, .account-register td small { display: block; }
.account-register td small { color: var(--muted); }
.account-filter { display: flex; align-items: center; gap: 8px; }
.account-filter select { min-height: 36px; padding: 7px 32px 7px 9px; background: #fff; border: 1px solid var(--line-dark); border-radius: 6px; }
.account-controls { position: relative; }
.account-controls > summary { color: var(--blue); font-weight: 800; cursor: pointer; }
.account-controls[open] { min-width: 230px; padding: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 7px; }
.account-controls form { margin-top: 8px; }
.compact-form { gap: 7px; padding-top: 8px; border-top: 1px solid var(--line); }
.compact-form label { font-size: 11px; }
.compact-form input { min-height: 36px !important; padding: 7px 8px !important; }
.inline-search { display: flex; gap: 8px; }
.inline-search input { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: 6px; }
.inline-search .button { min-height: 38px; padding: 8px 13px; }
.triage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; background: #f8fafc; border-top: 1px solid var(--line); }
.triage-card { display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.triage-image { display: block; background: #e8edf4; }
.triage-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.triage-identity { display: grid; gap: 2px; padding: 11px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.triage-identity strong { font-size: 16px; }
.triage-identity span, .triage-identity small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.triage-identity a { margin-top: 4px; font-size: 12px; font-weight: 800; }
.triage-form { align-content: start; padding: 12px; }
.triage-form label { font-size: 11px; }
.triage-form input:not([type="checkbox"]), .triage-form select { min-height: 38px !important; padding: 7px 8px !important; }
.defect-classification-fields { display: grid; gap: 8px; padding: 10px; background: var(--amber-soft); border: 1px solid #e9bf80; border-radius: 7px; }
.defect-classification-fields small { color: #794600; }
.queue-note { margin: 0; padding: 12px 16px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }
.account-page-panel details { margin-top: 18px; border-top: 1px solid var(--line); }
.account-page-panel details > summary { padding: 14px 0; color: var(--blue); font-weight: 800; cursor: pointer; }
.account-page-panel details > form { max-width: 520px; padding: 4px 0 16px; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--navy-deep); }
.auth-panel { width: min(100%, 430px); padding: 32px; background: #fff; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.auth-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 30px; letter-spacing: -1px; }
.auth-brand .brand-logo { width: 42px; height: 54px; border: 1px solid var(--line); }
.auth-brand strong { font-style: italic; }
.auth-panel h1 { margin: 26px 0 5px; font-size: 28px; }
.auth-panel > p { margin: 0 0 22px; color: var(--muted); }
.auth-panel .button { width: 100%; }
.setup-panel { width: min(100%, 760px); }
.setup-panel fieldset { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.setup-panel legend { padding: 0 7px; font-size: 14px; font-weight: 800; }
.setup-success { display: grid; width: 58px; height: 58px; place-items: center; margin: 28px auto 0; color: #fff; background: var(--green); border-radius: 50%; }
.setup-success svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 2; }

.scanner-dialog { width: min(92vw, 540px); padding: 0; background: #fff; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.scanner-dialog::backdrop { background: rgba(3,13,28,.78); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 18px; }
.dialog-header button { width: 36px; height: 36px; padding: 0; background: transparent; border: 0; font-size: 28px; cursor: pointer; }
.scanner-dialog video { display: block; width: calc(100% - 32px); aspect-ratio: 4 / 3; margin: 16px; object-fit: cover; background: #071b34; border-radius: 8px; }
.scanner-dialog p { padding: 0 18px; color: var(--muted); }
.scanner-dialog > .button { margin: 0 18px 18px; }
.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .lookup-controls { grid-template-columns: minmax(280px, 1fr) 170px; }
  .scan-action { grid-column: 1 / -1; min-height: 54px; border-top: 1px solid var(--line); border-left: 0; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vehicle-layout { grid-template-columns: 1fr; }
  .vehicle-side { grid-template-columns: 1fr 1fr; }
  .administration-grid { grid-template-columns: 1fr; }
  .triage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --topbar: 60px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); background: #fff; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(3,13,28,.55); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .app-shell { margin-left: 0; }
  .topbar { color: #fff; background: var(--navy); border-bottom: 0; padding: 0 14px; }
  .topbar h1 { font-size: 20px; }
  .desktop-title { display: none; }
  .mobile-title { display: inline; }
  .topbar .mobile-only { display: inline-grid; color: #fff; }
  .user-menu > span, .user-menu form { display: none; }
  .user-menu > .icon { display: block; width: 29px; height: 29px; padding: 4px; border: 2px solid #fff; border-radius: 50%; }
  .content { padding: 14px 0 calc(96px + env(safe-area-inset-bottom)); }
  .content > .flash { margin: 0 14px 12px; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 72px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(15,35,65,.08); }
  .bottom-nav.bottom-nav-driver { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #6b7078; background: transparent; border: 0; font-size: 11px; font-weight: 600; text-decoration: none; }
  .bottom-nav .icon { width: 24px; height: 24px; }
  .bottom-nav .active, .bottom-nav button { color: var(--blue); }
  .lookup-panel, .stats-strip, .data-section, .activity-section, .page-tools, .vehicle-identity, .vehicle-media-panel, .defects-panel, .workflow-panel, .report-panel, .vehicle-side section, .report-summary, .driver-summary, .simple-panel, .admin-summary, .admin-panel, .driver-welcome { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .lookup-panel { padding: 14px; }
  .lookup-controls { display: grid; grid-template-columns: 1fr; }
  .lookup-controls .button { width: 100%; }
  .scan-action { grid-column: auto; min-height: 52px; border: 1px solid var(--blue); border-radius: 7px; }
  .stats-strip { grid-template-columns: 1fr 1fr; margin-top: 10px; padding: 0; }
  .stat { min-height: 82px; padding: 10px 14px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-icon .icon { width: 20px; }
  .stat strong { font-size: 22px; }
  .stat em { display: none; }
  .data-section, .activity-section { margin-top: 10px; }
  .attention-section .table-wrap, .vehicle-list-section .table-wrap { overflow: visible; }
  .attention-section table, .vehicle-list-section table { white-space: normal; }
  .attention-section thead, .vehicle-list-section thead { display: none; }
  .attention-section tbody, .vehicle-list-section tbody { display: grid; }
  .attention-section tr, .vehicle-list-section tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 13px 14px; border-top: 1px solid var(--line); }
  .attention-section td, .vehicle-list-section td { height: auto; padding: 0; border: 0; }
  .attention-section td:nth-child(1), .vehicle-list-section td:nth-child(1) { font-size: 16px; }
  .attention-section td:nth-child(2), .attention-section td:nth-child(3), .attention-section td:nth-child(4), .vehicle-list-section td:nth-child(2), .vehicle-list-section td:nth-child(3), .vehicle-list-section td:nth-child(4) { grid-column: 1; color: var(--muted); font-size: 12px; }
  .attention-section td:nth-child(5), .vehicle-list-section td:nth-child(5) { grid-column: 2; grid-row: 1; }
  .attention-section td:nth-child(6), .vehicle-list-section td:nth-child(6) { grid-column: 2; grid-row: 2; }
  .attention-section td:nth-child(7), .vehicle-list-section td:nth-child(7) { grid-column: 2; grid-row: 3 / span 2; align-self: end; }
  .activity-row { grid-template-columns: 24px 1fr; padding: 10px 14px; }
  .activity-row time, .activity-row small { grid-column: 2; }
  .page-tools { padding: 12px 14px; }
  .page-tools form { display: grid; }
  .vehicle-identity { display: block; padding: 23px 38px 26px; }
  .vehicle-identity h2 { font-size: 36px; }
  .vehicle-identity p { font-size: 17px; }
  .vehicle-meta { margin-top: 15px; }
  .vehicle-media-panel { margin-top: 10px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 14px; }
  .inline-upload-panel form { padding: 16px 24px; }
  .back-link { margin: 0 28px 14px; }
  .defect-banner { margin: 0; padding: 15px 38px; border-radius: 0; font-size: 16px; }
  .vehicle-layout { gap: 12px; margin-top: 0; }
  .vehicle-main { gap: 12px; }
  .defects-panel .section-heading { padding: 16px 38px; }
  .defect-row { grid-template-columns: 48px 1fr; padding: 16px 38px; }
  .defect-evidence { grid-column: 2; width: min(100%, 220px); }
  .workflow-panel, .report-panel form { padding: 20px 38px; }
  .checkout-conflict-actions { display: grid; }
  .checkout-conflict-actions > .button, .checkout-conflict-actions form, .checkout-conflict-actions form .button { width: 100%; }
  .report-panel summary { padding: 16px 38px; }
  .vehicle-side { grid-template-columns: 1fr; gap: 12px; }
  .vehicle-side section { padding: 20px 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-upload { display: grid !important; grid-template-columns: 28px minmax(0, 1fr); align-items: center; }
  .photo-upload input { min-width: 0; max-width: 100%; }
  .page-tools form .button { width: 100%; }
  .report-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
  .report-summary .button { grid-column: 1 / -1; width: 100%; margin: 0; }
  .driver-summary { grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .driver-summary > div, .driver-summary > a { border-top: 1px solid var(--line); }
  .driver-summary > :nth-child(-n+2) { border-top: 0; }
  .driver-summary > :nth-child(odd) { border-left: 0; }
  .driver-list-section .table-wrap { overflow: visible; }
  .driver-list-section table { white-space: normal; }
  .driver-list-section thead { display: none; }
  .driver-list-section tbody { display: grid; }
  .driver-list-section tr { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 14px; border-top: 1px solid var(--line); }
  .driver-list-section td { height: auto; padding: 0; border: 0; }
  .driver-list-section td:nth-child(1), .driver-list-section td:nth-child(3), .driver-list-section td:nth-child(4), .driver-list-section td:nth-child(7) { grid-column: 1; }
  .driver-list-section td:nth-child(2), .driver-list-section td:nth-child(5), .driver-list-section td:nth-child(6), .driver-list-section td:nth-child(8) { grid-column: 2; text-align: right; }
  .defect-tools form { display: grid; grid-template-columns: 1fr 1fr; }
  .defect-tools .filter-field, .defect-tools .input-with-icon { grid-column: 1 / -1; }
  .defect-list-section .table-wrap { overflow: visible; }
  .defect-list-section table { white-space: normal; }
  .defect-list-section thead { display: none; }
  .defect-list-section tbody { display: grid; }
  .defect-list-section tr { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 14px; border-top: 1px solid var(--line); }
  .defect-list-section td { height: auto; padding: 0; border: 0; }
  .defect-list-section td:nth-child(1), .defect-list-section td:nth-child(3), .defect-list-section td:nth-child(5), .defect-list-section td:nth-child(6) { grid-column: 1; }
  .defect-list-section td:nth-child(2), .defect-list-section td:nth-child(4), .defect-list-section td:nth-child(7), .defect-list-section td:nth-child(8) { grid-column: 2; text-align: right; }
  .defect-report { border-right: 0; border-left: 0; border-radius: 0; }
  .defect-report-header { padding: 20px 24px; }
  .defect-report-header h2 { font-size: 22px; }
  .defect-report-body { padding: 20px 24px; }
  .defect-facts { grid-template-columns: 1fr; }
  .defect-status-panel { padding: 16px 24px; }
  .defect-status-panel form { display: grid; }
  .simple-panel { padding: 22px; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary > div, .admin-summary > a { border-top: 1px solid var(--line); }
  .admin-summary > :nth-child(-n+2) { border-top: 0; }
  .admin-summary > :nth-child(odd) { border-left: 0; }
  .account-register .section-heading { display: grid; }
  .account-filter { width: 100%; }
  .account-filter select { min-width: 0; flex: 1; }
  .administration-grid { gap: 10px; margin-top: 10px; }
  .account-register .table-wrap { overflow: visible; }
  .account-register table { white-space: normal; }
  .account-register thead { display: none; }
  .account-register tbody { display: grid; }
  .account-register tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border-top: 1px solid var(--line); }
  .account-register td { height: auto; padding: 0; border: 0; }
  .account-register td:nth-child(1), .account-register td:nth-child(3), .account-register td:nth-child(4), .account-register td:nth-child(5), .account-register td:nth-child(6) { grid-column: 1; }
  .account-register td:nth-child(2), .account-register td:nth-child(7), .account-register td:nth-child(8) { grid-column: 2; text-align: right; }
  .media-triage-section .section-heading { display: grid; }
  .inline-search { width: 100%; }
  .inline-search input { min-width: 0; flex: 1; }
  .triage-grid { grid-template-columns: 1fr; padding: 10px 14px; }
}

@media (max-width: 430px) {
  .vehicle-identity { padding-right: 24px; padding-left: 24px; }
  .defect-banner, .defects-panel .section-heading, .defect-row, .workflow-panel, .report-panel form, .report-panel summary, .vehicle-side section { padding-right: 24px; padding-left: 24px; }
  .defect-row { grid-template-columns: 42px 1fr; gap: 10px; }
  .defect-symbol { width: 40px; height: 40px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding-right: 12px; padding-left: 12px; }
  .stat { gap: 8px; padding: 9px 10px; }
}

.reminder-section, .controller-alerts, .vehicle-profile-panel, .odometer-panel, .handover-panel, .inspection-report { margin-top: 14px; }
.reminder-row, .alert-row { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr auto; gap: 10px 18px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.reminder-row em { color: var(--blue); font-style: normal; font-weight: 700; }
.alert-row strong { color: var(--red); }
.alert-row time { color: var(--muted); font-size: 12px; }
.vehicle-profile-panel > summary, .odometer-panel > summary, .danger-panel > summary { cursor: pointer; font-weight: 800; }
.vehicle-profile-panel form, .odometer-panel form, .danger-panel form { margin-top: 18px; }
.company-allocation, .inspection-checklist, .checkout-form fieldset { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.company-allocation legend, .inspection-checklist legend, .checkout-form fieldset legend { padding: 0 7px; color: var(--navy); font-weight: 800; }
.allocation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.allocation-total { margin-top: 13px; padding: 11px 13px; border-radius: 8px; background: #fff4e5; color: #8a4b00; }
.allocation-total.is-valid { background: #e8f7ef; color: #087443; }
.inspection-history-tools { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px; border-radius: 9px; background: #eef5ff; }
.inspection-history-tools p { margin: 0; }
.inspection-history-tools span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.inspection-checklist h3 { margin: 16px 0 8px; font-size: 15px; }
.inspection-item { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(190px, 1fr) auto; gap: 10px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.inspection-item small { display: block; color: var(--red); }
.inspection-previous { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; color: var(--muted); font-size: 12px; }
.inspection-previous strong { color: var(--navy); }
.inspection-previous small { color: var(--muted); }
.inspection-previous.is-clear { border-color: #b9dec9; background: #effaf4; }
.inspection-previous.has-problem { border-color: #f0c080; background: #fff6e9; }
.inspection-previous a { color: var(--blue); font-weight: 700; }
.inspection-options { display: flex; gap: 12px; }
.inspection-options label { display: flex; flex-direction: row; align-items: center; gap: 5px; font-weight: 600; }
.inspection-options input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex: 0 0 20px; accent-color: var(--blue); }
.inspection-problem-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(170px, .5fr) minmax(220px, 1fr) minmax(240px, 1fr); gap: 12px; padding: 14px; border: 1px solid #efb36e; border-radius: 9px; background: #fff8ef; }
.inspection-problem-fields[hidden] { display: none; }
.inspection-item-photo { min-height: 76px; }
.handover-panel { padding: 20px; border: 2px solid #238a5d; border-radius: var(--radius); background: #effaf4; }
.handover-panel dl, .driver-record-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.handover-panel dl div, .driver-record-facts span { padding: 11px; border: 1px solid #b9dec9; border-radius: 8px; background: #fff; }
.handover-panel dt { color: var(--muted); font-size: 12px; }
.handover-secret { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.open-checkouts details summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.inspection-report { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.danger-panel { border-color: #f3b4b4; }

@media (max-width: 720px) {
  .allocation-grid, .handover-panel dl, .driver-record-facts { grid-template-columns: 1fr; }
  .company-allocation, .inspection-checklist, .checkout-form fieldset { padding: 16px 14px; }
  .inspection-item { grid-template-columns: 1fr; gap: 9px; padding: 15px 0; }
  .inspection-history-tools { align-items: stretch; flex-direction: column; }
  .inspection-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .inspection-options label { min-height: 44px; justify-content: center; gap: 6px; padding: 8px 5px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; font-size: 12px; }
  .inspection-options label:has(input:checked) { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-soft); }
  .inspection-problem-fields { grid-template-columns: 1fr; }
  .reminder-row, .alert-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  @page { margin: 14mm; }
  body { min-height: auto; background: #fff; color: #000; }
  .sidebar, .topbar, .bottom-nav, .sidebar-backdrop, .no-print, .defect-tools { display: none !important; }
  .app-shell { margin: 0; }
  .content { width: 100%; padding: 0; }
  .defect-report, .data-section, .driver-summary { border: 0; box-shadow: none; }
  .report-summary { border: 0; box-shadow: none; padding: 0 0 10px; }
  .report-summary strong { font-size: 15px; }
  .privacy-notice { margin: 0 0 10px; border-color: #aaa; color: #000; background: #fff; }
  .printable-report { margin: 0; }
  .printable-report table { white-space: normal; }
  .printable-report th, .printable-report td { height: auto; padding: 5px 7px; color: #000; font-size: 9pt; }
  .printable-report a { color: #000; text-decoration: none; }
  .defect-list-section th:last-child, .defect-list-section td:last-child { display: none; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
}
