@font-face {
    font-family: Manrope;
    src: url('fonts/Manrope-Variable.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --electric: #68c9ff;
    --bg:#0b1018;
    --panel:#131d29;
    --soft:#182532;
    --line:#2a3b4c;
    --ink:#f2f7fc;
    --muted:#aabbd0;
    --accent:#80d3ff;
    --accent-soft:#172f44;
    --action:#2262ad;
    --action-hover:#1b559c;
    --danger:#ffb0b8;
    --notice:#79dfbf;
    --error:#d94b55;
    --radius:18px;
    --large:26px;
    --tap:46px;
    --gap:16px;
    --content:69rem;
    --shadow:0 14px 38px #05080e22;
    --font:Manrope,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    font:16px/1.56 var(--font);
    background:var(--bg);
    color:var(--ink);
}
:root[data-theme="light"] {
    color-scheme:light;
    --bg:#edf2f6;
    --panel:#fff;
    --soft:#f0f5fa;
    --line:#d2dce7;
    --ink:#17212f;
    --muted:#465b73;
    --accent:#124fa9;
    --accent-soft:#e5f1fb;
    --action:#195bc7;
    --action-hover:#164eaa;
    --danger:#a92f3a;
    --notice:#087553;
    --shadow:0 9px 26px #1833530d;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(1.85rem,5.9vw,2.8rem); line-height:1.12; letter-spacing:-.043em; font-weight:800; }
h2 { font-size:1.08rem; line-height:1.28; letter-spacing:-.019em; font-weight:780; }
h3 { font-size:1rem; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:3px; }
button { font:inherit; cursor:pointer; }
button:disabled { opacity:.6; cursor:wait; }
small { color:var(--muted); }
:focus-visible { outline:3px solid var(--electric); outline-offset:3px; }
[hidden] { display:none !important; }
svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.top {
    position:sticky; top:0; z-index:3; background:#101923; color:#eef6ff;
    border-bottom:1px solid #263848;
}
.top>div {
    max-width:var(--content); margin:auto; min-height:70px;
    padding:calc(7px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 7px max(16px,env(safe-area-inset-left));
    display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.logo {
    display:flex; align-items:center; min-height:44px; gap:9px; color:inherit;
    font-size:clamp(.79rem,3.45vw,1.02rem); line-height:1.25; font-weight:800;
}
.logo:hover { text-decoration:none; }
.logo .company-mark { width:44px; height:44px; object-fit:contain; flex:none; }
.header-notice {
    display:grid; place-items:center; flex:none; width:44px; height:44px;
    border:1px solid #32495d; color:#d8ebfe; background:#1a2939; border-radius:15px;
    transition:background .18s,color .18s;
}
.header-notice:hover { color:#fff; background:#22405d; }

main {
    width:min(var(--content),100%); min-height:72vh; margin:auto;
    padding:18px max(16px,env(safe-area-inset-right)) calc(95px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
    display:grid; grid-auto-rows:max-content; align-content:start; gap:var(--gap); overflow-wrap:anywhere;
    animation: arrive .32s cubic-bezier(.2,.65,.3,1) both;
}
@keyframes arrive { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
.btn,.plain,.bottom a,.mini a,.form input,.form select { transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s; }
.btn,.plain {
    display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-height:var(--tap);
    padding:9px 14px; border-radius:12px; border:1px solid transparent;
    background:var(--action); color:white; font-size:.875rem; font-weight:770;
}
.btn:hover { text-decoration:none; background:var(--action-hover); box-shadow:0 8px 22px #356dff2b; }
.plain { background:var(--soft); color:var(--ink); border-color:var(--line); }
.plain:hover { text-decoration:none; border-color:var(--accent); }
.btn:active,.plain:active,.bottom a:active,.mini a:active { transform:scale(.98); }

.start-layout { display:grid; border:1px solid var(--line); border-radius:var(--large); overflow:hidden; background:var(--panel); box-shadow:var(--shadow); }
.start-visual {
    min-height:205px; background:#F3F6FA url('assets/studio.webp') right 72% / cover no-repeat;
}
.start-content { min-width:0; display:grid; gap:11px; padding:21px; align-content:center; }
.start-content p { color:var(--muted); font-size:.93rem; }
.eyebrow { color:var(--accent); font-size:.73rem; font-weight:800; letter-spacing:.095em; text-transform:uppercase; }
.start-content .form[data-quiet] { padding:0; border:0; gap:10px; background:transparent; box-shadow:none; }
.start-content form[data-action="demo"] button { color:var(--accent); border-color:transparent; background:transparent; box-shadow:none; }
.brand-review { font-size:.84rem; font-weight:730; min-height:44px; display:inline-flex; align-items:center; }
.start-content small:last-child { font-size:.74rem; }
.vehicle-photo { position:relative; overflow:hidden; margin:0; min-width:0; background:var(--accent-soft); color:var(--accent); border-radius:12px; }
.vehicle-photo-detail { height:clamp(175px,42vw,280px); }
.vehicle-photo-thumb { width:64px; height:50px; }
.vehicle-photo-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:4px; text-align:center; padding:4px; }
.vehicle-photo-empty svg { width:35px; height:35px; }
.vehicle-photo-thumb svg { width:23px; height:23px; }
.vehicle-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.vehicle-photo figcaption { position:absolute; bottom:5px; left:5px; right:auto; max-width:calc(100% - 10px); border-radius:8px; padding:3px 7px; background:#0a1326e8; color:#fff; font-size:.68rem; }
.vehicle-photo figcaption a,.card .vehicle-photo figcaption a:not(.btn) { display:inline; min-height:0; color:inherit; text-decoration:underline; }
.vehicle-photo.image-unavailable img,.vehicle-photo.image-unavailable figcaption { display:none; }
.section { min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.section a { font-size:.82rem; font-weight:760; }
.card,.mini a { border-radius:var(--radius); background:var(--panel); border:1px solid var(--line); padding:15px; display:grid; gap:6px; min-width:0; box-shadow:var(--shadow); }
.card p,.card small,.muted { color:var(--muted); }
.card a:not(.btn) { min-height:var(--tap); display:inline-flex; align-items:center; font-weight:740; }
.actions,.mini,.figures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.figures .card strong { font-size:1.15rem; letter-spacing:-.025em; }
.figures .card small { font-size:.8rem; }
.mini a { min-height:60px; color:var(--ink); font-size:.88rem; font-weight:750; }
.mini a.quick-action { display:flex; align-items:center; justify-content:flex-start; gap:8px; padding:10px; }
.quick-action svg { min-width:34px; width:34px; height:34px; padding:7px; border-radius:10px; background:var(--accent-soft); color:var(--accent); }
.quick-action span { overflow-wrap:normal; }
.mini a:hover { border-color:var(--electric); text-decoration:none; }
.source-note { font-size:.76rem; color:var(--muted); font-weight:680; padding:6px 9px; border:1px solid var(--line); border-radius:9px; justify-self:start; }
.garage-car { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; }
.garage-mark { display:grid; place-items:center; width:42px; height:42px; color:var(--accent); border-radius:12px; background:var(--accent-soft); }
.photo { max-width:100%; width:100%; max-height:240px; object-fit:cover; border-radius:11px; }

.form { display:grid; gap:11px; }
.form label:not(.check) { display:grid; gap:4px; color:var(--muted); font-size:.84rem; font-weight:720; }
.form input:not([type=checkbox]),.form textarea,.form select {
    width:100%; min-width:0; min-height:var(--tap); border-radius:11px; border:1px solid var(--line);
    padding:9px 10px; background:var(--soft); color:var(--ink); font:inherit; font-size:1rem; font-weight:600;
}
.form input:focus,.form textarea:focus,.form select:focus { border-color:var(--electric); }
.form textarea { resize:vertical; }
.check { display:flex; align-items:center; gap:8px; min-height:44px; color:var(--muted); font-size:.88rem; }
.check input { width:19px; height:19px; accent-color:var(--electric); }
.error { border-left:4px solid var(--error); padding:9px; color:var(--danger); background:var(--soft); }
.success { color:var(--notice); }
.notice { margin:0; }
.chart { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); height:85px; gap:3px; align-items:end; }
.chart span { height:100%; display:grid; align-items:end; justify-items:center; font-size:.59rem; color:var(--muted); }
.chart meter { width:100%; max-width:23px; height:58px; writing-mode:vertical-lr; direction:rtl; accent-color:var(--electric); }
details>summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:750; }
.neutral { border-color:var(--line); background:var(--soft); }

html.app-viewport,html.app-viewport body { overflow:hidden; overscroll-behavior:none; }
.signed-shell {
    block-size:100vh; block-size:100dvh;
    display:grid; grid-template-rows:auto minmax(0,1fr) auto;
    background:radial-gradient(ellipse at 66% -12%,var(--accent-soft),transparent 58%),var(--bg);
}
.app-dialogs { display:contents; }
.signed-shell .top { position:static; }
.signed-shell main {
    min-height:0; min-width:0; margin:0 auto; overflow:auto; overscroll-behavior-y:contain;
    grid-area:2 / 1 / 4 / 2;
    padding-bottom:calc(92px + env(safe-area-inset-bottom)); animation:none;
    scroll-padding-block:12px calc(92px + env(safe-area-inset-bottom)); scrollbar-width:thin;
}
@media(pointer:coarse) {
    .signed-shell main { scrollbar-width:none; }
    .signed-shell main::-webkit-scrollbar { display:none; }
}
.bottom {
    grid-area:3 / 1 / 4 / 2; z-index:2; min-width:0; pointer-events:none;
    --dock-inset:clamp(17px,6vw,32px);
    padding:13px max(var(--dock-inset),env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--dock-inset),env(safe-area-inset-left));
}
.bottom>div {
    position:relative; isolation:isolate; display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr)) clamp(70px,16vw,86px) repeat(2,minmax(0,1fr));
    align-items:center; width:min(100%,29rem); min-height:64px; margin:auto; padding:4px 6px; pointer-events:auto;
}
.bottom>div::before {
    content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    border:1px solid #8dbade68; border-radius:24px;
    background:#162433; box-shadow:0 8px 26px #05091086,inset 0 1px #d9f0ff42,inset 0 -1px #76c5ff25;
    -webkit-mask-image:radial-gradient(circle at 50% 10px,transparent 34px,#000 35px);
    mask-image:radial-gradient(circle at 50% 10px,transparent 34px,#000 35px);
}
.bottom a {
    position:relative; display:grid; grid-template-rows:28px 16px; align-content:center; justify-items:center;
    gap:2px; min-height:54px; min-width:0; border-radius:999px;
    color:#d5e4f3; text-align:center; font-size:clamp(.61rem,2.5vw,.76rem); line-height:16px;
    font-weight:730; transition:color .18s,background .18s;
}
.bottom a:hover { text-decoration:none; color:#e8f5ff; }
.bottom a:active { transform:none; }
.bottom .nav-icon { display:grid; place-items:center; width:24px; height:22px; }
.bottom a .nav-icon { width:37px; height:28px; border-radius:999px; transition:background .18s,box-shadow .18s; }
.bottom a:hover .nav-icon { background:#d5f1ff19; }
.bottom svg { width:21px; height:21px; }
.bottom a[aria-current="page"] { color:#c9ecff; font-weight:850; }
.bottom a[aria-current="page"] .nav-icon { background:#80b9de42; box-shadow:inset 0 1px #e4f6ff4d,inset 0 0 0 1px #9dccf32e; }
.bottom a[aria-current="page"] svg { stroke-width:2; }
.bottom .nav-add {
    display:grid; place-items:center; width:55px; height:55px; justify-self:center; align-self:start; margin-top:-22px; padding:0;
    border:1px solid #c8eaffb8; border-radius:50%;
    background:radial-gradient(ellipse at 31% 13%,#e2f7ff 0,#c4eaff80 25%,#9cd6fb00 52%),linear-gradient(146deg,#a8dcfc,#6ab3ed 73%,#86cbf8);
    color:#102d46; box-shadow:0 4px 13px #0209119c,inset 0 1px 1px #f0faffcc,inset 0 -2px 3px #468dca66;
    transition:filter .18s,transform .18s,box-shadow .18s;
}
.bottom .nav-add:hover { filter:brightness(1.08); }
.bottom .nav-add:active { transform:scale(.92); }
.bottom .nav-add svg { width:24px; height:24px; stroke-width:2.1; }
.auth-layout { grid-template-columns:minmax(0,1fr); max-width:540px; width:100%; margin-inline:auto; }
.auth-layout .start-content { padding:clamp(20px,5vw,36px); gap:18px; background:radial-gradient(ellipse at 95% 0%,var(--accent-soft),transparent 60%),var(--panel); }
.auth-layout .form[data-quiet] { gap:14px; }
.auth-layout .btn { min-height:50px; border-radius:16px; background:linear-gradient(120deg,var(--action),var(--action-hover)); box-shadow:0 6px 18px #1453d125; }

.install-card { display:grid; grid-template-columns:40px minmax(0,1fr); gap:9px; align-items:center; padding:13px; border-radius:var(--radius); border:1px solid var(--line); background:var(--accent-soft); }
.install-card .install-icon { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--electric); color:white; font-weight:800; }
.install-card h2 { font-size:1rem; }.install-card p { font-size:.84rem; color:var(--ink); }.install-card button { grid-column:1/-1; }
.install-dialog { width:min(420px,calc(100% - 30px)); border:1px solid var(--line); background:var(--panel); color:var(--ink); border-radius:var(--radius); padding:16px; }
.install-dialog::backdrop { background:#070d17b8; }
.install-dialog section { border:1px solid var(--line); padding:10px; border-radius:11px; margin-top:10px; }
.install-dialog form { margin-top:10px; }.install-dialog section p { color:var(--muted); font-size:.9rem; }
@media(max-width:355px) {
    .start-content { padding:16px; }.start-visual { min-height:165px; }
    .quick-action svg { min-width:29px; width:29px; height:29px; padding:5px; }
}
@media(min-width:740px) {
    main { padding-top:24px; gap:16px; }
    .start-layout:not(.auth-layout) { grid-template-columns:1.12fr 1fr; }.start-visual { min-height:420px; }.start-content { padding:27px; }
    .mini { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .install-card { grid-template-columns:40px minmax(0,1fr) auto; }.install-card button { grid-column:auto; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }

/* Standalone Cool-Clean app */
.start-layout { margin-block:clamp(0px,2vw,35px); border-radius:28px; box-shadow:var(--shadow); max-width:none; }
.start-layout .start-visual {
    min-height:220px; display:flex; align-items:end; padding:clamp(18px,4vw,44px); color:white;
    background:linear-gradient(0deg,#101f3ded 2%,#10295491 43%,#122e690d 100%),
        #1a3b7d url('assets/studio.webp') center 65% / cover no-repeat;
}
.start-visual h2 { font-size:clamp(1.55rem,4.5vw,3.5rem); line-height:1.02; margin:.35rem 0 .55rem; letter-spacing:-.05em; }
.start-visual p { color:#eaf1ff; font-size:.87rem; }
.start-content,.auth-layout .start-content { padding:clamp(19px,5vw,54px); gap:16px; }
.start-content h1 { max-width:28ch; }
.start-content>.plain { justify-self:start; }
.auth-layout .start-visual { display:none; }
.auth-layout .start-content { background:var(--panel); }
.password-group { display:grid; gap:4px; }
.password-field { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; align-self:start; min-width:0; border:1px solid var(--line); border-radius:11px; background:var(--soft); }
.password-field:focus-within { border-color:var(--electric); }
.form .password-field input { border:0; background:transparent; }
.password-field button { border:0; color:var(--accent); background:transparent; padding-inline:12px; font-size:.8rem; font-weight:790; border-radius:10px; }
.vehicle-photo-thumb img { object-fit:cover; }
.figures .card { background:var(--soft); border-color:transparent; }
.garage-cards { display:grid; gap:var(--gap); }
.garage-car { color:var(--ink); min-height:95px; grid-template-columns:75px minmax(0,1fr) 34px; }
.garage-car:hover { text-decoration:none; border-color:var(--electric); }
.garage-car .vehicle-photo { width:75px; height:58px; }
.garage-arrow { display:grid; place-items:center; width:33px; height:33px; background:var(--accent-soft); color:var(--accent); border-radius:10px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.back-link { justify-self:start; display:inline-flex; align-items:center; min-height:44px; font-size:.88rem; font-weight:760; }
.vehicle-fields { display:grid; gap:14px; }
.vehicle-extra { border-block-start:1px solid var(--line); margin-top:.35rem; }
.vehicle-extra .vehicle-fields { padding-block-end:10px; }
[data-vehicle-form] { padding:clamp(15px,3vw,28px); }
[data-vehicle-form]>.btn { justify-self:start; }
@media(min-width:580px) {
    .vehicle-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:740px) {
    .start-layout,.start-layout.auth-layout { grid-template-columns:minmax(0,1.04fr) minmax(0,1fr); }
    .auth-layout .start-visual { display:flex; min-height:500px; }
    .garage-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Dashboard */
.dashboard { gap:clamp(13px,2.25vw,22px); }
.dashboard-heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:4px 16px; padding-block:3px; }
.dashboard-heading p { color:var(--accent); font-size:.83rem; font-weight:730; margin-top:4px; }
.dashboard-heading h1 { font-size:clamp(1.65rem,5.8vw,2.6rem); line-height:1.07; letter-spacing:-.055em; }
.dashboard-heading time { color:var(--muted); font-size:.76rem; font-weight:690; }
.dash-garage {
    display:flex; flex-wrap:wrap; align-items:center; gap:7px 12px; min-width:0;
}
.dash-garage-label { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:.82rem; font-weight:750; }
.dash-garage-label svg { width:18px; height:18px; }
.dash-car-picker { display:flex; gap:5px; flex-wrap:wrap; min-width:0; }
.dash-car-picker a {
    display:inline-flex; align-items:center; min-height:44px; padding:6px 11px; border-radius:9px;
    border:1px solid var(--line); background:var(--panel); color:var(--ink); font-size:.79rem; font-weight:780;
    transition:background .18s,border-color .18s,color .18s;
}
.dash-car-picker a:hover { text-decoration:none; border-color:var(--accent); }
.dash-car-picker a[aria-current] { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.dash-hero {
    display:grid; min-width:0; position:relative; overflow:hidden;
    border:1px solid #31475c; border-radius:16px;
    background:linear-gradient(110deg,#101b2a,#152941);
    color:#f3f8ff; box-shadow:0 17px 33px #070d1542;
}
.dash-hero .vehicle-photo {
    width:100%; aspect-ratio:1.92; margin:0; border-radius:0; color:#bcddf7;
    background:linear-gradient(145deg,#243c56,#101a29);
}
.dash-hero .vehicle-photo img { object-fit:cover; object-position:center 53%; }
.dash-hero .vehicle-photo figcaption {
    left:auto; right:6px; bottom:6px; max-width:calc(100% - 12px); line-height:1.4;
    padding:3px 7px; background:#111d2eee; font-size:.63rem;
}
.dash-hero .vehicle-photo figcaption a { text-underline-offset:2px; }
.dash-hero-content { align-self:center; min-width:0; padding:15px 17px 17px; display:grid; justify-items:start; gap:7px; }
.dash-plate {
    color:#d2e9ff; padding:4px 8px; border:1px solid #5a7793; border-radius:7px;
    font-size:.72rem; font-weight:800; letter-spacing:.09em; background:#192b3f;
}
.dash-hero h2 { font-size:clamp(1.75rem,6.65vw,3.18rem); letter-spacing:-.053em; text-wrap:balance; line-height:1.06; }
.dash-hero p { color:#c0d4e9; font-size:.86rem; }
.dash-hero-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.dash-hero-link,.dash-photo-link { display:inline-flex; align-items:center; min-height:44px; gap:6px; color:#a0deff; font-size:.86rem; font-weight:800; }
.dash-hero-link,.dash-photo-link { padding-inline:10px; }
.dash-booking { background:#80bded; color:#102237; border-radius:8px; font-weight:850; }
.dash-booking:hover { background:#a3d3fa; }
.dash-hero-actions svg { width:17px; height:17px; }
.dash-hero-empty { min-height:220px; }
.dash-hero-empty .btn { margin-top:6px; }
.dash-quick-section { display:grid; gap:9px; min-width:0; }
.dash-quick-section h2 { font-size:1.07rem; }
.dash-quick { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.dash-quick a {
    display:grid; grid-template-rows:32px 20px; align-content:center; justify-items:center;
    gap:6px; min-height:76px; min-width:0; padding:6px 2px;
    text-align:center; color:var(--ink); border:1px solid var(--line); border-radius:12px;
    background:var(--panel); font-size:clamp(.64rem,2.7vw,.8rem); transition:border-color .18s,background .18s;
}
.dash-quick a:hover { text-decoration:none; border-color:var(--accent); background:var(--soft); }
[class*="quick-"] { --quick-glyph:var(--accent); --quick-surface:var(--accent-soft); }
.quick-fuel { --quick-glyph:#8ae3ff; --quick-surface:#19364a; }
.quick-expense { --quick-glyph:#96edca; --quick-surface:#184039; }
.quick-mileage { --quick-glyph:#cbbdff; --quick-surface:#342b50; }
.quick-repair { --quick-glyph:#ffd29a; --quick-surface:#493323; }
.quick-fault { --quick-glyph:#ffb4bc; --quick-surface:#4b2835; }
.quick-notes { --quick-glyph:#f3b7f5; --quick-surface:#472d4b; }
.dash-quick a>span,.quick-entry-list a>span {
    display:grid; place-items:center; width:32px; height:32px; border-radius:9px;
    color:var(--quick-glyph); background:var(--quick-surface);
}

.dash-quick a>strong { font-weight:760; line-height:20px; white-space:nowrap; }
.dash-actions-grid { display:grid; gap:var(--gap); align-items:stretch; min-width:0; }
.dash-priority {
    --priority:#9ad3ff;
    display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:9px;
    padding:12px; border:1px solid var(--line); border-inline-start:3px solid var(--priority);
    background:var(--panel); border-radius:12px;
}
.dash-priority.near { --priority:#eaba7c; }
.dash-priority.overdue { --priority:#ff949d; }
:root[data-theme="light"] .dash-priority { --priority:#165ca2; }
:root[data-theme="light"] .dash-priority.near { --priority:#865417; }
:root[data-theme="light"] .dash-priority.overdue { --priority:#9f2732; }
.priority-icon { display:grid; width:36px; height:36px; place-items:center; background:var(--soft); color:var(--priority); border-radius:9px; }
.dash-priority p { color:var(--priority); font-size:.7rem; font-weight:820; }
.dash-priority h2 { font-size:.94rem; margin-block:2px; }
.dash-priority small { display:block; font-size:.71rem; }
.dash-priority .plain { font-size:.71rem; padding:6px 9px; text-align:center; }
.dash-priority .plain svg { width:15px; height:15px; flex:none; }
.dash-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.dash-totals div { display:grid; gap:4px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--soft); }
.dash-totals small { font-size:.72rem; }
.dash-totals strong { font-size:clamp(.94rem,4vw,1.42rem); letter-spacing:-.039em; line-height:1.15; }
.dash-grid { min-width:0; display:grid; gap:var(--gap); }
.dash-panel {
    min-width:0; display:grid; align-content:start; gap:11px; border:1px solid var(--line);
    border-radius:var(--radius); background:var(--panel); padding:clamp(12px,2.25vw,22px); box-shadow:var(--shadow);
}
.dash-panel-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0 8px; }
.dash-panel h2 { display:inline-flex; align-items:center; gap:6px; font-size:1.06rem; }
.dash-panel h2 svg { width:17px; height:17px; color:var(--accent); }
.dash-text-link { display:inline-flex; align-items:center; min-height:44px; font-size:.76rem; font-weight:780; }
.dash-empty { display:grid; gap:10px; justify-items:start; }
.dash-empty p,.dash-week p { color:var(--muted); font-size:.85rem; }
.dash-task-list { margin:0; padding:0; list-style:none; display:grid; gap:7px; }
.dash-task {
    display:grid; align-items:center; grid-template-columns:35px minmax(0,1fr) fit-content(38%); gap:8px;
    min-height:57px; padding:7px; border-radius:12px; background:var(--soft); color:var(--ink);
}
.dash-task.double-deadline { grid-template-columns:35px minmax(0,1fr); row-gap:4px; }
.dash-task.double-deadline .deadline { grid-column:2; justify-self:start; }
.dash-task:hover { text-decoration:none; outline:1px solid var(--line); }
.dash-task-icon { height:35px; display:grid; place-items:center; border-radius:9px; color:var(--accent); background:var(--accent-soft); }
.dash-task-copy { display:grid; gap:2px; font-size:.82rem; }
.dash-task-copy small { font-size:.7rem; }
.deadline { border-radius:999px; padding:4px 8px; color:var(--accent); background:var(--accent-soft); font-size:.67rem; font-weight:800; }
.deadline-soon { color:#ffe3a5; background:#543a21; }
.deadline-late { color:#ffbbc3; background:#512a3a; }
.dash-notice {
    display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; min-height:50px;
    border-radius:12px; padding:8px 12px; background:var(--accent-soft); color:var(--ink); font-size:.85rem;
}
.dash-notice svg { color:var(--accent); }
.dash-chart { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; text-align:center; }
.dash-chart div { display:grid; justify-items:center; gap:5px; font-size:.67rem; color:var(--muted); }
.dash-chart meter {
    width:min(20px,100%); height:55px; writing-mode:vertical-lr; direction:rtl; accent-color:var(--electric);
}
.dash-chart meter::-webkit-meter-bar { background:var(--soft); border:0; }
.dash-chart meter::-webkit-meter-optimum-value { background:#60c5ff; }
.dash-chart meter::-moz-meter-bar { background:#60c5ff; }
#car-photo { scroll-margin-top:12px; }
.reminder-entry { border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); }
.reminder-entry .card { border:none; box-shadow:none; }
.reminder-entry [data-reminder-status] { display:flex; justify-content:flex-end; padding-top:0; }
.reminder-entry [data-reminder-status] .btn { background:var(--accent-soft); color:var(--accent); }
@media(max-width:359px) {
    .dash-priority { grid-template-columns:36px minmax(0,1fr); }
    .dash-priority .plain { grid-column:2; justify-self:start; }
    .dash-quick { gap:4px; }
    .dash-quick a { font-size:.6rem; }
}
@media(min-width:680px) {
    .dash-garage { gap:15px; }
    .dash-hero.has-photo { grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr); align-items:stretch; }
    .dash-hero.has-photo .vehicle-photo { grid-column:2; grid-row:1; align-self:stretch; height:100%; }
    .dash-hero.has-photo .vehicle-photo::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#14283e91,transparent 32%); pointer-events:none; }
    .dash-hero .vehicle-photo figcaption { z-index:1; }
    .dash-hero.has-photo .dash-hero-content { grid-column:1; grid-row:1; }
    .dash-hero-content { padding:24px clamp(20px,4vw,44px); gap:10px; }
    .dash-quick { gap:12px; }
    .dash-actions-grid { grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); }
    .dash-actions-grid > :only-child { grid-column:1 / -1; }
    .dash-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.catalogue-fields {
    display:grid; gap:10px; min-inline-size:0; margin:6px 0; padding:12px;
    border:1px solid var(--line); border-radius:var(--radius);
}
.catalogue-fields legend { padding:0 5px; font-size:.94rem; font-weight:800; }
.catalogue-fields select:disabled { opacity:.72; }
.catalogue-fields .catalogue-status { font-size:.82rem; }
.catalogue-fields .catalogue-status:empty { display:none; }
.catalogue-fields button { justify-self:start; }

.tire-group { min-inline-size:0; margin:3px 0; padding:13px; border:1px solid var(--line); border-radius:14px; display:grid; gap:10px; }
.tire-group legend { padding-inline:5px; font-weight:800; }
.tire-group p { font-size:.86rem; }
.tire-measurements {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,5rem),1fr)); gap:8px;
    min-inline-size:0; margin:0; padding:10px; border:1px solid var(--line); border-radius:12px;
}
.tire-measurements label { min-width:0; font-size:.8rem; }
.tire-alerts { display:grid; gap:8px; margin:0; padding:0; }
.tire-alert {
    display:grid; gap:3px; padding:11px 13px; border-radius:11px;
    border-inline-start:3px solid #f2bc72; background:var(--soft);
}
.tire-alert.danger { border-inline-start-color:#f896a5; }
.tire-alert span,.tread-log-row p { font-size:.82rem; color:var(--muted); }
.tire-booking { justify-self:start; min-height:44px; }
.tire-booking svg { width:16px; height:16px; }
.dash-tires { border-inline-start:3px solid #f2bc72; }
.dash-tire-set { display:grid; gap:6px; }
.dash-tire-set h3 { font-size:.88rem; color:var(--muted); }
.tire-history { display:grid; gap:11px; border-top:1px solid var(--line); padding-top:12px; }
.tire-history-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.tire-history-head a { min-height:44px; }
.tread-charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:10px; }
.tread-chart { background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:9px 10px 4px; }
.tread-chart h4 { margin:0 0 4px; font-size:.88rem; }
.tread-chart svg { display:block; width:100%; height:auto; }
.tread-chart text { fill:var(--muted); stroke:none; font:11px system-ui,sans-serif; }
.tread-axis line { stroke:var(--line); }
.tread-limit line { stroke:#f896a5; stroke-dasharray:5 4; }
.tread-legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:.78rem; color:var(--muted); }
.tread-inner { --tread-color:#7dd9ff; }
.tread-middle { --tread-color:#f0bf78; }
.tread-outer { --tread-color:#cbb3ff; }
.tread-guide { --tread-color:#f896a5; }
.tread-legend span::before {
    content:""; display:inline-block; width:10px; height:3px; margin-inline-end:5px;
    border-radius:5px; background:var(--tread-color); vertical-align:middle;
}
.tread-series polyline { fill:none; stroke:var(--tread-color); stroke-width:2; }
.tread-series circle { fill:var(--tread-color); stroke:var(--soft); stroke-width:1; }
.tread-log-row { padding:9px 0; border-bottom:1px solid var(--line); display:grid; gap:4px; }
.tire-pair { min-inline-size:0; margin:0; padding:8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; border:1px solid var(--line); border-radius:10px; }
.tire-pair legend { font-size:.83rem; }
.tire-date { display:grid; gap:4px; align-content:start; }
.tire-date button { justify-self:start; font-size:.76rem; }
.tire-costs { margin:8px 0 0; display:grid; gap:7px; padding:12px; border-radius:11px; background:var(--soft); }
.tire-costs div { display:flex; gap:8px; justify-content:space-between; }
.tire-costs div:last-child { padding-top:6px; border-top:1px solid var(--line); font-weight:850; }
.tire-costs dd { margin:0; white-space:nowrap; }
.tire-actions { display:flex; gap:8px; flex-wrap:wrap; padding-top:8px; }
.tire-actions .form { padding:0; background:transparent; border:0; box-shadow:none; }
.tire-actions .btn { color:var(--danger); background:var(--soft); border-color:var(--line); }

.garage-module { gap:15px; }
.module-heading { padding-block:6px 2px; display:grid; gap:6px; }
.module-heading p { color:var(--muted); font-size:.92rem; font-weight:650; }
.module-list-title { padding:6px 2px 0; }
.cost-overview {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0;
    padding:clamp(15px,4vw,28px); border-radius:22px; color:#fff;
    background:radial-gradient(ellipse at 102% -5%,#356dff9e,transparent 65%),linear-gradient(115deg,#142445,#1b3971);
    box-shadow:0 12px 25px #0b21422a;
}
.cost-overview div { display:grid; align-content:center; gap:.35rem; min-width:0; padding-inline-end:10px; }
.cost-overview div+div { border-inline-start:1px solid #b5c9fa66; padding-inline:13px 0; }
.cost-overview span { color:#e0e9ff; font-size:.74rem; font-weight:760; }
.cost-overview strong { letter-spacing:-.045em; font-size:clamp(1.12rem,4.8vw,2rem); line-height:1.14; }
.cost-history ul { margin:0; padding:0; list-style:none; }
.cost-row {
    display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:10px;
    padding-block:12px; border-bottom:1px solid var(--line); font-size:.87rem;
}
.cost-row:last-child { border-bottom:none; padding-bottom:0; }
.cost-row>div { display:grid; gap:3px; }
.cost-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:var(--accent); background:var(--accent-soft); }
.cost-row>strong { font-variant-numeric:tabular-nums; white-space:nowrap; }
.cost-history .cost-link { min-height:44px; font-size:.76rem; }
.hotel-panel {
    display:grid; gap:13px; padding:clamp(13px,3vw,20px); border:1px solid var(--line); border-radius:21px; background:var(--accent-soft);
}
.hotel-heading p { color:var(--muted); font-size:.83rem; margin-top:2px; }
.hotel-grid { display:grid; gap:8px; }
.hotel-card { padding:12px; border-radius:14px; background:var(--panel); border:1px solid var(--line); }
.hotel-card>div { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:7px; }
.hotel-card p { color:var(--muted); font-size:.84rem; margin-top:4px; }
.hotel-status { padding:3px 7px; border-radius:999px; background:#d5f3e8; color:#1a5a45; font-size:.72rem; font-weight:800; }
.wheel-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin-block:3px; max-width:21rem; }
.wheel-preview span { border-radius:8px; border:1px solid var(--line); background:var(--soft); color:var(--muted); padding:5px 8px; font-size:.72rem; }
.wheel-preview .is-selected { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); font-weight:810; }
.tire-entry { border-radius:18px; padding:16px; }
.tire-entry>small { font-weight:800; color:var(--accent); }
.tire-entry h2 { font-size:1.2rem; }
@media(min-width:740px) { .hotel-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.photo-editor {
    width:min(620px,calc(100% - 24px)); max-height:90svh; overflow:auto; padding:clamp(12px,4vw,21px);
    border:1px solid var(--line); border-radius:22px; color:var(--ink); background:var(--panel);
}
.photo-editor::backdrop { background:#0a1324b8; }
.photo-editor h2 { margin-bottom:12px; }
.photo-editor canvas { display:block; width:100%; aspect-ratio:16 / 9; background:#15243b; border-radius:12px; }
.photo-editor-zoom { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:end; gap:10px; margin-top:10px; }
.photo-editor-zoom button { min-height:44px; }
.photo-editor-position { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.photo-editor label { display:grid; gap:2px; color:var(--muted); font-size:.8rem; font-weight:760; margin-top:8px; }
.photo-editor input { width:100%; min-height:30px; margin:0; accent-color:var(--electric); }
.photo-editor-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:7px; margin-top:14px; }

.service-add > summary {cursor:pointer;font-weight:750;color:var(--accent,#356dff)}
.service-add[open] > summary {margin-bottom:1rem}
.service-history {display:grid;gap:.75rem;margin-block:1.25rem}
.service-history > h2 {font-size:1.15rem;margin:0}
.service-record {min-width:0;overflow-wrap:anywhere}
.service-record > h2 {margin:.35rem 0 .65rem}
.service-items {margin-top:.85rem}
.service-items h3 {font-size:.9rem;margin:0 0 .35rem}
.service-items ul {list-style:none;margin:0;padding:0}
.service-items li {display:flex;justify-content:space-between;gap:.75rem;padding:.35rem 0}
.service-items li > :nth-child(2) {flex-shrink:0}
.service-items small {display:block}
.service-invoice {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin-top:.9rem;padding-top:.8rem;border-top:1px solid var(--line,#dce5f1)}
.service-invoice > details,.service-invoice > section {flex-basis:100%}
.service-invoice summary {cursor:pointer}
.service-note {white-space:pre-wrap}

.vehicle-registry {margin-top:.85rem}
.vehicle-registry > summary {cursor:pointer;font-weight:750;color:var(--accent,#356dff)}
.vehicle-registry > div {margin-top:.85rem}

.quick-entry-dialog {
    width:min(425px,calc(100% - 24px)); max-height:calc(100dvh - 28px); overflow:auto;
    border:1px solid var(--line); border-radius:17px; padding:16px; background:var(--panel); color:var(--ink);
    box-shadow:0 22px 80px #0009,inset 0 1px #d4ebff40;
}
.quick-entry-dialog[open] { animation:glass-open .24s cubic-bezier(.2,.75,.35,1) both; }
.quick-entry-dialog::backdrop { background:#03091677; }
@keyframes glass-open {
    from { opacity:0; transform:translateY(8px) scale(.98); }
    to { opacity:1; transform:none; }
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .bottom>div::before {
        background:linear-gradient(165deg,#34516b5c,#131e2baf 66%,#22415d70),#101b29a8;
        -webkit-backdrop-filter:blur(21px) saturate(145%);
        backdrop-filter:blur(21px) saturate(145%);
    }
    .quick-entry-dialog {
        background:linear-gradient(155deg,#54708b49,transparent 43%),#152333dd;
        color:#eff7ff; border-color:#7795b5aa;
        -webkit-backdrop-filter:blur(32px) saturate(140%);
        backdrop-filter:blur(32px) saturate(140%);
    }
    .quick-entry-dialog > p { color:#ccdcea; }
    .quick-entry-dialog .quick-entry-list a,.quick-entry-dialog .plain {
        background:#afcfee18; color:#edf6ff; border-color:#8baece5c;
    }
    .quick-entry-dialog .quick-entry-list a > svg { color:#a9dbff; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
    .bottom>div::before,.quick-entry-dialog { background:#142232; color:#fff; -webkit-backdrop-filter:none; backdrop-filter:none; border-color:#8296ad; }
}
.quick-entry-title { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.quick-entry-dialog > p { margin-bottom:10px; font-size:.83rem; color:var(--muted); }
.quick-entry-list { display:grid; gap:6px; }
.quick-entry-list a {
    display:grid; align-items:center; grid-template-columns:33px minmax(0,1fr) auto; gap:9px;
    min-height:50px; padding:5px 10px; border:1px solid var(--line); border-radius:9px;
    color:var(--ink); background:var(--soft); font-size:.88rem;
}
.quick-entry-list a:hover { text-decoration:none; border-color:var(--accent); }
.quick-entry-list a > svg { width:16px; height:16px; color:var(--accent); }
.entry-actions {
    display:flex; align-items:center; flex-wrap:wrap; gap:5px 15px;
    margin-top:5px; border-top:1px solid var(--line);
}
.entry-actions form { display:contents; }
.entry-actions .entry-link {
    display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:4px 1px;
    border:0; background:transparent; color:var(--accent); font:inherit; font-size:.79rem; font-weight:760;
}
.entry-actions .entry-link:hover { text-decoration:underline; text-underline-offset:3px; }
.entry-actions .entry-remove { color:var(--muted); }
.entry-actions .entry-remove:hover { color:var(--danger); }
.entry-actions .entry-link svg { width:15px; height:15px; }
.cost-row > .entry-actions { display:flex; }
.cost-row .entry-actions,.cost-row .cost-link { grid-column:2 / -1; }
.car-photo-entry .entry-actions { border-top:none; margin:0; }
.car-photo-entry { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px; border-top:1px solid var(--line); }

.maintenance-fields { min-width:0; display:grid; gap:9px; margin:5px 0; padding:11px; border:1px solid var(--line); border-radius:12px; }
.maintenance-fields legend { font-weight:780; padding-inline:5px; }
.maintenance-fields p { font-size:.82rem; }
.maintenance-fields button { justify-self:start; }
.maintenance-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:10px; }
.maintenance-card p { font-size:.84rem; }
.maintenance-card .maintenance-due { color:var(--accent); }
.erp-document-links { display:grid; }
.service-import { border-top:1px solid var(--line); }

.pass-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:var(--gap); }
.pass-card { gap:8px; padding:clamp(14px,2.8vw,24px); }
.pass-card > div { display:flex; flex-wrap:wrap; align-items:start; justify-content:space-between; gap:8px; }
.pass-status { border-radius:10px; padding:3px 8px; background:var(--soft); color:var(--muted); font-size:.73rem; font-weight:800; }
.pass-active { color:var(--notice); }
.pass-card > strong { font-size:1.9rem; line-height:1.2; }
.pass-card > strong small { font-size:.85rem; font-weight:730; }
.pass-card > meter { width:100%; height:14px; accent-color:var(--electric); }
.dashboard-pass { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; padding:7px 0; border-top:1px solid var(--line); font-size:.84rem; }
.dashboard-pass strong { color:var(--accent); }

.oil-section { display:grid; gap:10px; min-width:0; }
.oil-section .dash-panel-head h2 { font-size:1.11rem; font-weight:810; }
.oil-grid,.mileage-charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:12px; }
.oil-card {
    --oil-mark:#ffce8c; --oil-surface:#443123; --oil-glow:#eab26612;
    gap:14px; padding:clamp(13px,2.4vw,20px);
    background:radial-gradient(ellipse at 6% 4%,var(--oil-glow),transparent 63%),var(--panel);
    box-shadow:inset 0 1px #d5e8ff15,var(--shadow);
}
.oil-card.oil-gear { --oil-mark:#b1d8ff; --oil-surface:#223a52; --oil-glow:#70b7f715; }
.oil-card.oil-brake { --oil-mark:#edbcff; --oil-surface:#432d51; --oil-glow:#d693f318; }
.oil-card-title { display:grid; grid-template-columns:43px minmax(0,1fr) auto; align-items:center; gap:10px; }
.oil-symbol {
    display:grid; place-items:center; width:43px; height:43px; border-radius:13px;
    background:var(--oil-surface); color:var(--oil-mark); box-shadow:inset 0 1px #faefdc26;
}
.oil-symbol svg { width:25px; height:25px; }
.oil-card-title h3 { font-size:1.07rem; font-weight:820; }
.oil-card-title small,.oil-card p { font-size:.78rem; }
.oil-status { border-radius:999px; padding:4px 8px; justify-self:start; background:var(--soft); color:var(--ink); font-size:.67rem; font-weight:790; text-align:center; }
.oil-status.near { background:#493521; color:#ffd494; }
.oil-status.overdue { background:#482733; color:#ffb0bb; }
.oil-indicators { display:grid; gap:8px; grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr)); }
.oil-indicators:empty { display:none; }
.oil-indicators > p { grid-column:1 / -1; }
.oil-indicator {
    --oil-progress:#73cde9;
    display:grid; align-content:start; grid-template-rows:auto auto 10px auto; gap:5px;
    min-width:0; padding:10px 11px; border:1px solid var(--line); border-radius:12px; background:var(--soft);
}
.oil-indicator.oil-near { --oil-progress:#f2bc72; }
.oil-indicator.oil-due { --oil-progress:#f896a5; }
.oil-indicator .oil-indicator-label { color:var(--muted); font-size:.77rem; font-weight:760; }
.oil-indicator .oil-reading { display:flex; gap:3px 6px; align-items:baseline; flex-wrap:wrap; color:var(--ink); }
.oil-reading strong { font-size:clamp(1.5rem,5.6vw,2.2rem); line-height:1; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.oil-reading span,.oil-indicator small { font-size:.72rem; line-height:1.35; color:var(--muted); }
.oil-indicator meter { width:100%; height:10px; accent-color:var(--oil-progress); }
.oil-indicator meter::-webkit-meter-bar { border:0; background:var(--panel); border-radius:999px; }
.oil-indicator meter::-webkit-meter-optimum-value { background:var(--oil-progress); border-radius:999px; }
.oil-indicator meter::-moz-meter-bar { background:var(--oil-progress); border-radius:999px; }
.oil-card .oil-edit { justify-self:start; gap:7px; font-size:.8rem; min-height:44px; }
.oil-card .oil-edit svg { width:15px; height:15px; }
@media (max-width:360px) {
    .oil-card-title { grid-template-columns:40px minmax(0,1fr); }
    .oil-status { grid-column:2; }
}
.mileage-chart { gap:10px; align-content:start; }
.mileage-chart canvas { width:100%; height:clamp(155px,25vw,220px); min-width:0; display:block; }
.mileage-chart > p { font-size:.81rem; }
.mileage-data table { width:100%; border-collapse:collapse; font-size:.82rem; text-align:left; }
.mileage-data th,.mileage-data td { padding:6px 2px; border-bottom:1px solid var(--line); font-weight:inherit; }
.mileage-data td { text-align:right; font-variant-numeric:tabular-nums; }

.pass-actions { display:grid; gap:8px; padding-top:10px; border-top:1px solid var(--line); }
.pass-actions .form { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.pass-actions details summary { color:var(--accent); font-size:.89rem; }
.pass-actions .check { min-height:42px; }
