.garage-view{max-width:1200px;margin:0 auto;padding:52px 36px 70px;color:var(--text)}.garage-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.garage-heading .eyebrow{color:var(--accent);font-weight:650}.garage-heading h1{font-size:36px;font-weight:550;letter-spacing:-1.2px;margin:0 0 12px}.garage-heading p:last-child{margin:0;color:var(--muted);font-size:14px;line-height:1.7}.garage-backup{display:flex;gap:8px;flex-wrap:wrap}.garage-primary,.garage-quiet,.garage-text-button{font:inherit;cursor:pointer;border:0}.garage-primary{padding:13px 17px;min-height:44px;border-radius:8px;background:var(--accent);color:var(--surface);font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.garage-primary:disabled,.garage-quiet:disabled{opacity:.45;cursor:default}.garage-quiet{padding:10px 12px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.4}.garage-text-button{min-height:40px;padding:7px 0;background:transparent;color:var(--accent);font-size:12px}.garage-quiet:hover,.garage-text-button:hover{background:var(--accent-soft)}.garage-primary:hover:not(:disabled){filter:brightness(.94)}
.garage-empty{padding:58px 30px 62px;text-align:center;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.garage-empty-symbol{display:grid;place-items:center;width:66px;height:66px;border:1px solid var(--line);border-radius:18px;color:var(--accent);background:var(--accent-soft);font-size:29px;margin:0 auto 25px}.garage-empty .eyebrow{color:var(--accent);margin-bottom:16px}.garage-empty h2{font-size:28px;font-weight:550;letter-spacing:-.8px;line-height:1.3;max-width:440px;margin:0 auto 15px}.garage-empty>p:not(.eyebrow){max-width:460px;font-size:14px;line-height:1.9;color:var(--muted);margin:0 auto 25px}
.garage-storage-note{font-size:11px;color:var(--muted);line-height:1.8;max-width:680px;margin:23px 0 0}.garage-form{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:28px}.garage-form-top{margin-bottom:26px}.garage-form h2{font-size:23px;font-weight:550;letter-spacing:-.6px;margin:0 0 12px}.garage-form-top p,.garage-form>p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.garage-fields{display:grid;grid-template-columns:1fr 1fr;gap:23px 25px}.garage-field{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0;font-size:12px;color:var(--text)}.garage-field b{font-weight:400;color:var(--accent)}.garage-field input,.garage-field select,.garage-field textarea{font:inherit;font-size:14px;min-height:45px;box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);line-height:1.5}.garage-field input::placeholder{color:var(--muted);opacity:.65}.garage-field textarea{resize:vertical;min-height:95px}.garage-field small{font-size:11px;line-height:1.65;color:var(--muted)}.garage-field input:focus-visible,.garage-field select:focus-visible,.garage-field textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.garage-full{grid-column:1/-1}.garage-form-actions{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}.garage-form .garage-error,.garage-error{background:#fff1e8;border:1px solid #d5af8b;color:#704324;padding:12px;border-radius:8px;font-size:12px;line-height:1.7;margin:20px 0 0}.garage-warning{padding:18px;border-radius:10px;background:#fff1e8;border:1px solid #d5af8b;color:#704324;font-size:13px;line-height:1.8;margin-bottom:20px}.garage-notice{padding:13px 16px;background:var(--accent-soft);border:1px solid var(--line);color:var(--accent);border-radius:9px;font-size:12px;line-height:1.7;margin:0 0 22px}.garage-notice.is-error{background:#fff1e8;color:#704324;border-color:#d5af8b}
.garage-overview{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.garage-vehicle{padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.garage-vehicle-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.garage-car-icon{display:grid;place-items:center;width:62px;height:56px;border-radius:13px;background:var(--accent-soft);color:var(--accent)}.garage-car-icon svg{width:43px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.garage-vehicle-year{font-size:11px;color:var(--muted);margin:0 0 9px}.garage-vehicle h2{font-size:30px;font-weight:550;line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere;margin:0 0 12px}.garage-engine{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 23px;overflow-wrap:anywhere}.garage-mileage{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;border-top:1px solid var(--line);padding-top:22px}.garage-mileage>span{font-size:11px;color:var(--muted);grid-column:1/-1}.garage-mileage>strong{font-weight:500;font-size:27px;letter-spacing:-.8px;padding-top:9px}.garage-mileage>.garage-text-button{margin-top:9px}.garage-mileage-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding-top:22px}.garage-mileage-form>.garage-field{flex:1}.garage-mileage-form>.garage-error{width:100%}.garage-facts{display:grid;gap:16px}.garage-facts article{padding:23px 26px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.garage-facts article>span{font-size:12px;color:var(--muted);display:block;margin-bottom:15px;line-height:1.5}.garage-facts article>strong{display:block;font-size:24px;font-weight:500;letter-spacing:-.6px}.garage-facts article>strong small{font-size:13px;letter-spacing:0;color:var(--muted);font-weight:400}.garage-facts p{font-size:11px;line-height:1.8;color:var(--muted);max-width:420px;margin:13px 0 0}.garage-history-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:40px 0 22px}.garage-history-head .eyebrow{margin:0 0 10px;font-size:9px;color:var(--accent)}.garage-history-head h2{font-size:23px;font-weight:550;letter-spacing:-.5px;margin:0}.garage-empty-history{border:1px dashed var(--line);border-radius:13px;padding:32px 24px;text-align:center}.garage-empty-history>span{font-size:22px;color:var(--accent)}.garage-empty-history h3{font-size:16px;font-weight:500;margin:12px 0}.garage-empty-history p{max-width:490px;color:var(--muted);font-size:12px;line-height:1.9;margin:0 auto}.garage-records{display:grid;gap:14px}.garage-record{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:22px 24px}.garage-record-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);flex-wrap:wrap}.garage-record-category{background:var(--accent-soft);color:var(--accent);padding:6px 9px;border-radius:6px;line-height:1.4}.garage-record h3{font-size:17px;font-weight:550;line-height:1.6;margin:15px 0 9px;overflow-wrap:anywhere}.garage-record>p{font-size:12px;line-height:1.8;color:var(--muted);margin:9px 0;overflow-wrap:anywhere}.garage-record>p strong{font-weight:500;color:var(--text)}.garage-record-notes{white-space:pre-wrap}.garage-record-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.garage-record-bottom>strong{font-size:17px;font-weight:500;white-space:nowrap}.garage-record-bottom>div{display:flex;gap:8px;flex-wrap:wrap}.garage-plan-note{display:flex;align-items:flex-start;gap:13px;background:var(--accent-soft);border:1px solid var(--line);border-radius:12px;padding:20px 23px;margin-top:26px}.garage-plan-note>span{color:var(--accent);font-size:18px}.garage-plan-note h3{font-size:13px;line-height:1.6;font-weight:550;margin:0 0 8px}.garage-plan-note p{color:var(--muted);font-size:12px;line-height:1.85;margin:0}#garage-record-edit{margin-bottom:20px;scroll-margin-top:25px}#garage-import-review{margin-top:22px;scroll-margin-top:25px}#garage-import-review p{margin-top:13px}
[data-theme=dark] :is(.garage-error,.garage-form .garage-error,.garage-warning,.garage-notice.is-error){background:#382b22;border-color:#796249;color:#f1ccab}
@media(max-width:820px){.garage-view{padding:32px 20px 50px}.garage-heading{align-items:flex-start;gap:18px;flex-direction:column;margin-bottom:25px}.garage-heading h1{font-size:30px}.garage-heading p:last-child{font-size:13px}.garage-overview{grid-template-columns:1fr}.garage-facts{grid-template-columns:1fr 1fr;gap:12px}.garage-facts article{padding:19px}.garage-facts article>strong{font-size:20px}.garage-facts article>strong small{display:block;font-size:11px;margin-top:8px}.garage-empty{padding:37px 22px}.garage-empty h2{font-size:24px}.garage-empty>p:not(.eyebrow){font-size:13px}.garage-form{padding:22px}.garage-fields{gap:21px 18px}.garage-field input,.garage-field select,.garage-field textarea{font-size:16px}.garage-record-top{font-size:10px}.garage-storage-note{font-size:10px}.garage-history-head{gap:15px}.garage-history-head h2{font-size:21px}.garage-history-head>.garage-primary{font-size:11px;padding:12px}.garage-vehicle h2{font-size:27px}}
@media(max-width:520px){.garage-fields{grid-template-columns:1fr}.garage-form{padding:22px 18px}.garage-full{grid-column:auto}.garage-view{padding:28px 16px 45px}.garage-mileage{grid-template-columns:1fr}.garage-mileage>.garage-text-button{justify-self:start;margin-top:3px}.garage-vehicle{padding:22px}.garage-facts{grid-template-columns:1fr}.garage-facts article{padding:20px 22px}.garage-facts article>strong small{display:inline}.garage-history-head{align-items:flex-start;flex-direction:column;margin-top:30px}.garage-record{padding:20px 18px}.garage-record-bottom{align-items:flex-start;flex-direction:column}.garage-plan-note{padding:18px}.garage-form-actions{gap:8px}.garage-empty h2{font-size:22px}}
.garage-fleet-bar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 28px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.garage-fleet-bar>.garage-field{flex:1;max-width:510px;min-width:190px}.garage-fleet-bar>.garage-text-button{font-size:11px;margin-left:auto}.garage-car-icon{font-size:27px}.garage-catalog-note,.garage-repeat-note{font-size:11px;line-height:1.8;color:var(--muted);margin:22px 0 0}.garage-repeat-note{margin:0;padding:12px 14px;background:var(--accent-soft);border-radius:8px}.garage-option-sources{margin-top:14px;font-size:11px;line-height:1.8;color:var(--muted)}.garage-option-sources summary{cursor:pointer;color:var(--accent)}.garage-option-sources a{display:block;color:var(--accent);text-decoration:underline;margin-top:9px;overflow-wrap:anywhere}.garage-ownership p{font-size:11px;color:var(--muted);line-height:1.8;margin:10px 0 0}.garage-vehicle-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:22px;margin-top:28px}.garage-danger{color:#9a4d3d;border-color:#d7b4aa}.garage-danger-fill{background:#924c3d;color:#fff}.garage-confirm-dialog{width:min(520px,calc(100vw - 32px));max-height:90dvh;border:1px solid var(--line);border-radius:15px;padding:26px;background:var(--surface);color:var(--text);box-shadow:0 20px 70px #142b2333}.garage-confirm-dialog::backdrop{background:#102c2666;backdrop-filter:blur(3px)}.garage-confirm-dialog h2{font-size:22px;font-weight:550;letter-spacing:-.5px;margin:0 0 18px}.garage-confirm-dialog p{font-size:13px;line-height:1.8;color:var(--muted)}.garage-confirm-dialog .garage-form-actions{margin-top:22px}
.garage-timeline{margin-top:38px}.garage-timeline .garage-history-head{margin-bottom:16px}.garage-timeline .eyebrow{max-width:650px;letter-spacing:.1px;line-height:1.8;font-weight:400;text-transform:none}.garage-timeline-intro{max-width:760px;font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 24px}.garage-timeline-group{font-size:11px;font-weight:550;letter-spacing:.4px;color:var(--muted);margin:25px 0 14px}.garage-plan{display:flex;gap:20px;padding:24px 22px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:12px}.garage-plan-marker{display:grid;place-items:center;align-self:flex-start;flex:none;width:38px;height:38px;border-radius:50%;background:var(--accent-soft);font-size:11px;color:var(--accent);font-variant-numeric:tabular-nums}.garage-plan-main{flex:1;min-width:0}.garage-plan-tags{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:10px;color:var(--muted)}.garage-plan-tags span:first-child{padding:5px 8px;border-radius:5px;background:var(--accent-soft);color:var(--accent)}.garage-plan h3{font-size:18px;font-weight:550;line-height:1.6;margin:12px 0;overflow-wrap:anywhere}.garage-plan-targets{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;font-size:12px;line-height:1.7}.garage-plan-targets strong{font-weight:550;color:var(--accent)}.garage-plan-targets small{color:var(--muted);font-size:11px}.garage-plan p{font-size:12px;color:var(--muted);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:11px 0}.garage-plan-provenance{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:15px}.garage-plan-actions{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;margin-top:18px}.garage-plan-actions .garage-primary,.garage-plan-actions .garage-quiet{font-size:11px;min-height:39px;padding:9px 12px}.garage-plan-actions .garage-text-button{font-size:11px}.garage-plan.is-due{border-color:#cbb88c}.garage-plan.is-due .garage-plan-marker{color:#825b1b;background:#faf0d9}.garage-plan.is-due .garage-plan-targets strong{color:#825b1b}.garage-documents{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.garage-documents button{font-size:11px;overflow-wrap:anywhere;max-width:100%;text-align:left}.garage-file-list{font-size:11px;line-height:1.8}.garage-file-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:8px 0}.garage-file-list span{overflow-wrap:anywhere;min-width:0}.garage-file-list button{font-size:10px;flex:none}#garage-editor{margin:0 0 24px;scroll-margin-top:25px}.garage-field input[type=file]{font-size:12px;padding:10px}
[data-theme=dark] .garage-danger{color:#e9aa98;border-color:#7b5c50}[data-theme=dark] .garage-plan.is-due{border-color:#80704c}[data-theme=dark] .garage-plan.is-due .garage-plan-marker{background:#473c26;color:#e6ca8f}[data-theme=dark] .garage-plan.is-due .garage-plan-targets strong{color:#e6ca8f}
@media(max-width:820px){.garage-fleet-bar{padding:16px}.garage-plan{padding:20px 18px;gap:14px}.garage-plan h3{font-size:17px}.garage-timeline .garage-history-head{gap:15px}.garage-confirm-dialog{padding:24px 20px}}
@media(max-width:520px){.garage-fleet-bar{gap:12px}.garage-fleet-bar>.garage-field{min-width:100%;max-width:none}.garage-fleet-bar>.garage-text-button{margin-left:0}.garage-plan{gap:11px;padding:18px 14px}.garage-plan-marker{width:30px;height:30px;font-size:10px}.garage-plan h3{font-size:16px}.garage-plan-targets{display:block;font-size:11px}.garage-plan-targets>strong,.garage-plan-targets>span,.garage-plan-targets>small{display:block;margin:5px 0}.garage-plan-actions{gap:8px}.garage-plan-actions .garage-primary,.garage-plan-actions .garage-quiet{font-size:10px;padding:9px}.garage-timeline-intro{font-size:11px}.garage-vehicle-actions{justify-content:flex-start}.garage-file-list>div{display:block}.garage-history-head .garage-backup{gap:8px}.garage-history-head h2{line-height:1.4}}

/* v22 — privacy-first garage backup */
.garage-security{margin:34px 0 24px;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface,transparent);display:grid;gap:16px;min-width:0}
.garage-security h2{font-size:clamp(20px,3.5vw,27px);margin:4px 0 8px}
.garage-security h3{font-size:18px;margin:0 0 8px}
.garage-security p{line-height:1.55;max-width:68ch}
.garage-security-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.garage-cloud{padding:16px;border:1px solid var(--line);border-radius:15px;display:grid;gap:8px}
.garage-cloud .garage-storage-note{margin:0}
.garage-security-auth{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.garage-security-auth label{display:grid;gap:7px;flex:1;min-width:180px;font-size:13px}
.garage-security-auth input,#garage-backup-dialog input{box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:10px;padding:11px;background:var(--surface,transparent);color:inherit;font-size:16px}
.garage-security-auth button{flex:none}
.garage-security .garage-notice{margin:0;padding:10px;border-radius:10px}
.garage-replace-warning{display:flex;align-items:start;gap:9px;padding:13px;border:1px solid #a17c43;border-radius:12px;line-height:1.5}
.garage-replace-warning input{width:18px;height:18px;flex:none;margin-top:2px}
#garage-backup-dialog{max-width:480px;width:calc(100% - 40px)}
#garage-backup-password-form{display:grid;gap:14px}
#garage-backup-password-form .garage-field{display:grid;gap:7px}
#garage-backup-dialog[open]{max-height:90dvh;overflow:auto}
#garage-backup-dialog [hidden],.garage-security [hidden]{display:none!important}
@media(max-width:520px){.garage-security{padding:16px;border-radius:16px}.garage-security-actions>*{width:100%}.garage-security-auth button{width:100%}}
