/* Road Wage light palette. Every selector is scoped so dark mode keeps its styling. */
html[data-theme="light"]{color-scheme:light;--bg:#e6edf5;--surface:#fff;--surface2:#eef3f9;--card:#fff;--ink:#122840;--muted:#485d74;--line:#adbed0;--border:#adbed0;--field:#f8fafc;--tab:#f8fafc;--stat:#eaf1f9;--gold:#f0ac35;--gold-ink:#14243a;--accent:#f0ac35;--rw-accent:#f0ac35;--rw-border:#adbed0;--shadow:0 4px 16px rgba(17,40,66,.09);--notice:#fff2d9}
html[data-theme="light"] body{background:var(--bg);color:var(--ink)}
html[data-theme="light"] header{background:linear-gradient(115deg,#102039,#1b3452);color:#f6f8fc;border-bottom:1px solid #3d5673;box-shadow:0 3px 14px #12284020}
html[data-theme="light"] header h1,html[data-theme="light"] header label{color:#f6f8fc}
html[data-theme="light"] header small,html[data-theme="light"] header span{color:#cfdaea}
html[data-theme="light"] header .brand-kicker,html[data-theme="light"] header a{color:#f1c579}
html[data-theme="light"] header .theme-toggle{background:#ffffff14;border-color:#7187a4;color:#f9deb0}
html[data-theme="light"] .card,html[data-theme="light"] .check-section,html[data-theme="light"] .number-card{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}
html[data-theme="light"] .card h2,html[data-theme="light"] .card h3,html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3{color:var(--ink)}
html[data-theme="light"] .muted,html[data-theme="light"] .sub,html[data-theme="light"] .meta,html[data-theme="light"] .number-area{color:var(--muted);opacity:1}
html[data-theme="light"] .section-eyebrow,html[data-theme="light"] .eyebrow{color:#8b4b00}
html[data-theme="light"] .tabs{background:var(--bg)}
html[data-theme="light"] .tabs button{background:#fff;color:#233c58;border-color:#a9bbcf}
html[data-theme="light"] .tabs button.active,html[data-theme="light"] #menuToggle,html[data-theme="light"] #toolsToggle[aria-expanded="true"]{background:#f0ac35;color:#14243a;border-color:#d49322}
html[data-theme="light"] .nav-dropdown-panel{background:#fff;border-color:#9daec2;box-shadow:0 8px 24px #12284026}
html[data-theme="light"] .nav-dropdown-panel button{color:#1a3452;border-bottom-color:#d4deea}
html[data-theme="light"] .nav-dropdown-panel button:hover{background:#e9f0f8}
html[data-theme="light"] .stat{background:#edf3fa;border-color:#afc0d3;color:#415873;box-shadow:0 2px 7px #12284009}
html[data-theme="light"] .stat b{color:#122840}
html[data-theme="light"] .stat:first-child{background:#fff2da;border-color:#d7ad62}
html[data-theme="light"] .stat:first-child b{color:#8a4b00}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{background:#f8fafc;color:#142c47;border-color:#a4b7cc}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#64768b;opacity:1}
html[data-theme="light"] input:focus-visible,html[data-theme="light"] textarea:focus-visible,html[data-theme="light"] select:focus-visible{outline:2px solid #986019;outline-offset:2px}
html[data-theme="light"] input[type="checkbox"],html[data-theme="light"] input[type="radio"]{accent-color:#955400}
html[data-theme="light"] button.alt,html[data-theme="light"] button.secondary{background:#eaf0f7;color:#18334f;border-color:#adbed0}
html[data-theme="light"] .entry{border-bottom-color:#b3c3d4}
html[data-theme="light"] .notice,html[data-theme="light"] .note,html[data-theme="light"] .warning{background:#fff1d4;color:#4b3411;border-color:#d2b174}
html[data-theme="light"] .pill,html[data-theme="light"] .tag{background:#e4edf8;color:#1d3e62;border-color:#adbed0}
html[data-theme="light"] .data-table th{color:#233b55;opacity:1;background:#e5edf7}
html[data-theme="light"] .data-table td{color:#142c47}
html[data-theme="light"] #timesheets .data-table th,html[data-theme="light"] #timesheets .data-table td{border-color:#a3b5c9}
html[data-theme="light"] #timesheets .data-table tbody tr:nth-child(even){background:#f0f5fb}
html[data-theme="light"] #timesheets .data-table tfoot{background:#e5edf7}
html[data-theme="light"] .fuel-result,html[data-theme="light"] .fuel-filters,html[data-theme="light"] #usefulNumbers .number-card{background:#fff;border-color:#adbed0}
html[data-theme="light"] .fuel-match{background:#eaf1f9;color:#1a3553}
html[data-theme="light"] .fuel-source{color:#4b6078;opacity:1}
html[data-theme="light"] .fuel-go,html[data-theme="light"] .external-link,html[data-theme="light"] #usefulNumbers .number-call{background:#f0ac35;color:#14243a;border:1px solid #d49b36;border-radius:9px;padding:10px 14px;font-weight:750}
html[data-theme="light"] main a:not(.action):not(.button),html[data-theme="light"] .wrap a:not(.fuel-go):not(.external-link):not(.number-call){color:#875000}
html[data-theme="light"] .back{color:#244b75}
/* Standalone parking pages use fixed dark colours in their original styles. */
html[data-theme="light"] .entry{background:#fff;border:1px solid #adbed0;box-shadow:var(--shadow)}
html[data-theme="light"] .entry h2{color:#122840}
html[data-theme="light"] .empty{background:#fff;border:1px solid #adbed0;color:#485d74}
html[data-theme="light"] a.button,html[data-theme="light"] a.action{background:#edab36;color:#14243a;border:1px solid #d49b36}
html[data-theme="light"] a.action.alt{background:#e6eef8;color:#1b3c61;border-color:#a6bad0}
html[data-theme="light"] .warn{background:#fff0d5;border-color:#cda25c;color:#4c3512}
/* Keep selected check results readable, including the green/red driver assessment. */
html[data-theme="light"] .choices label:not(:has(input:checked)){background:#f2f6fa;color:#17314e;border-color:#a2b7cc}
html[data-theme="light"] .section-count,html[data-theme="light"] .check-type-buttons button span{color:#485d74}
html[data-theme="light"] .check-type-buttons button{background:#fff;border-color:#9eb4cd;box-shadow:var(--shadow)}
html[data-theme="light"] .check-type-buttons button strong,html[data-theme="light"] #sheetTitle{color:#183b63}
html[data-theme="light"] .check-type-buttons button:after{color:#966019}
html[data-theme="light"] .unsafe-details{background:#fff4f5;border-color:#cd7785}
@media print{html[data-theme="light"] .card,html[data-theme="light"] .entry{box-shadow:none}}

.history-group{margin:12px 0;padding:8px 0;border-top:1px solid var(--border,#64748b)}
.history-group>summary{cursor:pointer;font-weight:700;padding:10px 0;line-height:1.6;overflow-wrap:anywhere}
.history-group .history-group{margin-left:10px}
