/* My Account V2 desktop Garage (769px and up). Phones keep garage.css unchanged. */
@media (min-width:769px){
 html.account-root body.av2[data-account-page=garage]{--gr2-on-accent:#fff;--gr2-sky:linear-gradient(180deg,#dff1f8 0%,#eef8fb 70%,#f6fbfd 100%);--gr2-rail:linear-gradient(165deg,#eaf7fd 0%,#f6fbfd 100%);--gr2-rail-line:#cfe8ef}
 html.account-root[data-theme=dark] body.av2[data-account-page=garage]{--gr2-on-accent:#102b2b;--gr2-sky:linear-gradient(180deg,#1f3a3e 0%,#1b2c30 70%,#131719 100%);--gr2-rail:linear-gradient(165deg,#214340 0%,#131719 100%);--gr2-rail-line:var(--av2-line)}

 /* Layout: garage card and Quick start on the left, Vehicle history rail on the right. */
 html.account-root body.av2[data-account-page=garage] .account-workspace{grid-template-columns:minmax(0,1fr) 306px;gap:16px 20px;align-items:start}
 html.account-root body.av2[data-account-page=garage] .account-workspace>.av2-head{grid-column:1/-1;margin-bottom:8px}
 html.account-root body.av2[data-account-page=garage] .account-workspace>.gr-main{grid-column:1;grid-row:2}
 html.account-root body.av2[data-account-page=garage] .account-workspace>.gr-v2-quick{grid-column:1;grid-row:3}
 html.account-root body.av2[data-account-page=garage] .account-workspace>.gr-v2-rail{grid-column:2;grid-row:2/span 2}

 /* Shared card look. */
 html.account-root body.av2[data-account-page=garage] .account-workspace>:is(.gr-main,.gr-v2-quick){padding:22px;border-radius:20px;background:var(--av2-card);border:1px solid var(--av2-line);box-shadow:none;color:var(--av2-ink);font-family:Arial,Helvetica,sans-serif;margin:0}
 html.account-root body.av2[data-account-page=garage] :is(.gr-heading h2,.gr-v2-quick h2){margin:0;font:700 19px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] :is(.gr-heading p,.gr-v2-quick h2+p){margin:4px 0 0;font-size:14px;line-height:1.45;color:var(--av2-muted)}
 html.account-root body.av2[data-account-page=garage] .gr-heading{margin-bottom:16px}

 /* Header action: the page's own Add vehicle button, moved into the header slot. */
 html.account-root body.av2[data-account-page=garage] .av2-actions [data-gr-add]{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:22px;border:1px solid var(--av2-accent);background:var(--av2-accent);color:var(--gr2-on-accent);font:700 14px Arial,Helvetica,sans-serif;white-space:nowrap;box-shadow:none}
 html.account-root body.av2[data-account-page=garage] .av2-actions [data-gr-add]:hover{filter:brightness(.94)}

 /* Catalogue suggestions / Help with consumption as pill buttons under the heading, tabs below. */
 html.account-root body.av2[data-account-page=garage] .gr-toolbar{flex-direction:column-reverse;align-items:stretch;gap:16px;border-bottom:0;margin-bottom:4px}
 html.account-root body.av2[data-account-page=garage] .gr-review-actions{justify-content:flex-start;gap:8px}
 html.account-root body.av2[data-account-page=garage] .gr-review-actions .gr-text-button{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:22px;border:1px solid var(--av2-line);background:var(--av2-card);color:var(--av2-ink);font:700 14px Arial,Helvetica,sans-serif;text-decoration:none}
 html.account-root body.av2[data-account-page=garage] .gr-review-actions .gr-text-button:hover{background:var(--av2-soft);border-color:var(--av2-accent)}
 html.account-root body.av2[data-account-page=garage] .gr-filter{border-bottom:1px solid var(--av2-rule)}
 html.account-root body.av2[data-account-page=garage] .gr-filter button{min-height:44px;color:var(--av2-muted);font-size:14px}
 html.account-root body.av2[data-account-page=garage] .gr-filter button[aria-pressed=true]{color:var(--av2-accent);border-color:var(--av2-accent)}
 html.account-root body.av2[data-account-page=garage] .gr-filter span{background:var(--av2-active);color:inherit}
 html.account-root body.av2[data-account-page=garage] .gr-card{border-color:var(--av2-rule)}
 html.account-root body.av2[data-account-page=garage] .gr-history .gr-card{border-color:var(--av2-line);border-radius:14px;overflow:hidden}
 html.account-root body.av2[data-account-page=garage] :is(.gr-note,.gr-history-note){color:var(--av2-muted)}
 html.account-root body.av2[data-account-page=garage] .gr-list:has(.gr-v2-empty)~#gr-note{display:none}

 /* Empty garage. */
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty{margin-top:16px;padding:0;border-radius:20px;overflow:hidden;border:1px solid var(--av2-line);background:var(--av2-soft);text-align:center;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-sky{display:flex;justify-content:center;align-items:flex-end;padding:22px 20px 0;background:var(--gr2-sky)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-sky img{display:block;width:440px;max-width:100%;height:auto;aspect-ratio:12/5;object-fit:contain;margin:0}
 html.account-root[data-theme=dark] body.av2[data-account-page=garage] .gr-v2-empty-sky img{filter:brightness(.92) saturate(.92)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-body{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 24px 24px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty h3{margin:0;font:400 26px/1.25 Georgia,'Times New Roman',serif;letter-spacing:0;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-body>p{margin:0;max-width:460px;font-size:14px;line-height:1.55;color:var(--av2-muted)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:6px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-actions .button{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;margin:0;padding:0 18px;border-radius:22px;border:1px solid var(--av2-line);background:var(--av2-card);color:var(--av2-ink);font:700 14px Arial,Helvetica,sans-serif;white-space:normal;box-shadow:none}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-actions .button.primary{border-color:var(--av2-accent);background:var(--av2-accent);color:var(--gr2-on-accent)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-empty-actions .button:not(.primary) svg{color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-steps{list-style:none;margin:10px 0 0;padding:0;width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;text-align:left}
 html.account-root body.av2[data-account-page=garage] .gr-v2-steps li{display:flex;gap:10px;align-items:flex-start;min-width:0;padding:12px;border-radius:14px;background:var(--av2-card);border:1px solid var(--av2-rule)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-step-icon{width:32px;height:32px;border-radius:10px;background:var(--av2-active);color:var(--av2-accent);display:flex;align-items:center;justify-content:center;flex:none}
 html.account-root body.av2[data-account-page=garage] .gr-v2-steps strong{display:block;font-size:14px;line-height:1.3;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-steps strong+span{display:block;margin-top:2px;font-size:12px;line-height:1.4;color:var(--av2-muted)}

 /* Quick start. */
 html.account-root body.av2[data-account-page=garage] .gr-v2-quick{display:flex;flex-direction:column;gap:16px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-quick h2+p{margin-top:-12px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-label{display:block;margin-bottom:8px;font-size:14px;font-weight:700;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-inline{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-inline .gr-v2-label{margin:0 4px 0 0}
 html.account-root body.av2[data-account-page=garage] .gr-v2-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-types button{min-height:84px;min-width:0;padding:8px 2px;border-radius:14px;border:1px solid var(--av2-line);background:var(--av2-card);color:var(--av2-ink);font:700 14px Arial,Helvetica,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer}
 html.account-root body.av2[data-account-page=garage] .gr-v2-types svg{color:var(--av2-accent)}
 html.account-root body.av2[data-account-page=garage] :is(.gr-v2-types button,.gr-v2-pill,.gr-v2-catalogue):hover{border-color:var(--av2-accent);background:var(--av2-soft)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-pills{display:flex;flex-wrap:wrap;gap:8px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-pill{min-height:40px;padding:0 14px;border-radius:20px;border:1px solid var(--av2-line);background:var(--av2-card);color:var(--av2-ink);font:14px Arial,Helvetica,sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
 html.account-root body.av2[data-account-page=garage] .gr-v2-pill[aria-pressed=true],html.account-root body.av2[data-account-page=garage] .gr-v2-pill[aria-pressed=true]:hover{border-color:var(--av2-accent);background:var(--av2-accent);color:var(--gr2-on-accent);font-weight:700}
 html.account-root body.av2[data-account-page=garage] .gr-v2-catalogue{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--av2-line);background:var(--av2-card);color:var(--av2-ink);font:14px Arial,Helvetica,sans-serif;text-align:left;cursor:pointer}
 html.account-root body.av2[data-account-page=garage] .gr-v2-catalogue .gr-v2-step-icon{width:64px;height:44px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-catalogue>span:nth-child(2){flex:1;min-width:0}
 html.account-root body.av2[data-account-page=garage] .gr-v2-catalogue strong{display:block;font-size:15px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-catalogue strong+span{font-size:13px;color:var(--av2-muted)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-catalogue>svg{color:var(--av2-accent);flex:none}

 /* Vehicle history rail. */
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail{display:flex;flex-direction:column;gap:16px;padding:22px;border-radius:20px;background:var(--gr2-rail);border:1px solid var(--gr2-rail-line);color:var(--av2-ink);font-family:Arial,Helvetica,sans-serif;position:sticky;top:24px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px}
 html.account-root[data-theme=dark] body.av2[data-account-page=garage] .gr-v2-rail img{filter:brightness(.92) saturate(.92)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-eyebrow{margin:0;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--av2-accent)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail h2{margin:0;font:400 22px/1.3 Georgia,'Times New Roman',serif;letter-spacing:0;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail li{display:flex;gap:10px;font-size:14px;line-height:1.45;color:var(--av2-muted)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail li>span:first-child{width:30px;height:30px;border-radius:15px;background:var(--av2-card);border:1px solid var(--gr2-rail-line);color:var(--av2-accent);display:flex;align-items:center;justify-content:center;flex:none}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail li strong{display:block;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] .gr-v2-link{align-self:center;min-height:44px;padding:0 8px;border:0;background:none;color:var(--av2-accent);font:700 14px Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

 html.account-root body.av2[data-account-page=garage] :is(.gr-v2-types button,.gr-v2-pill,.gr-v2-catalogue,.gr-v2-link,.gr-review-actions .gr-text-button,.av2-actions [data-gr-add],.gr-v2-empty-actions .button):focus-visible{outline:2px solid var(--av2-accent);outline-offset:2px}
}
/* Narrower desktops: the rail moves below the garage cards. */
@media (min-width:769px) and (max-width:1359px){
 html.account-root body.av2[data-account-page=garage] .account-workspace{grid-template-columns:minmax(0,1fr)}
 html.account-root body.av2[data-account-page=garage] .account-workspace>.gr-v2-rail{grid-column:1;grid-row:auto;position:static;display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:12px 22px;align-items:start}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail img{grid-row:1/span 4}
 html.account-root body.av2[data-account-page=garage] .gr-v2-link{justify-self:start;padding:0}
}
@media (min-width:769px) and (max-width:1023px){
 html.account-root body.av2[data-account-page=garage] .gr-v2-steps{grid-template-columns:minmax(0,1fr)}
 html.account-root body.av2[data-account-page=garage] .account-workspace>.gr-v2-rail{display:flex;flex-direction:column}
 html.account-root body.av2[data-account-page=garage] .gr-v2-rail img{max-height:200px}
 html.account-root body.av2[data-account-page=garage] .gr-v2-link{align-self:flex-start}
}
/* Garage dialogs: V2 rounding, serif title and the bar stepper from the design. */
@media (min-width:769px){
 html.account-root body.av2[data-account-page=garage] #dialog:not(.gr-history-guard-dialog){border-radius:24px;border:1px solid var(--av2-line);box-shadow:0 30px 70px #0b315c40}
 html.account-root body.av2[data-account-page=garage] #dialog:not(.gr-history-guard-dialog) .dialog-close{width:40px;height:40px;border-radius:20px;border:1px solid var(--av2-line);display:flex;align-items:center;justify-content:center;line-height:1;top:20px;right:20px}
 html.account-root body.av2[data-account-page=garage] #dialog #gr-dialog-title{font:400 26px/1.2 Georgia,'Times New Roman',serif;letter-spacing:0;color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] #dialog .gr-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 22px;border-bottom:0}
 html.account-root body.av2[data-account-page=garage] #dialog .gr-stepper li{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;padding:14px 0 0;border:0;border-top:4px solid var(--av2-rule);border-radius:2px 2px 0 0;font-size:13px;font-weight:700;color:var(--av2-muted)}
 html.account-root body.av2[data-account-page=garage] #dialog .gr-stepper span{width:26px;height:26px;border:2px solid var(--av2-line);font:700 13px Arial,Helvetica,sans-serif;color:var(--av2-muted);box-sizing:border-box}
 html.account-root body.av2[data-account-page=garage] #dialog .gr-stepper li:is([aria-current],:has(~li[aria-current])){border-top-color:var(--av2-accent);color:var(--av2-ink)}
 html.account-root body.av2[data-account-page=garage] #dialog .gr-stepper li:is([aria-current],:has(~li[aria-current])) span{background:var(--av2-accent);border-color:var(--av2-accent);color:var(--gr2-on-accent)}
 html.account-root body.av2[data-account-page=garage] #dialog .gr-modal-actions{align-items:center;border-top-color:var(--av2-rule)}
 html.account-root body.av2[data-account-page=garage] #dialog:not(.gr-history-guard-dialog) :is(.gr-modal-actions,.gr-cost-help-actions) .button{min-height:44px;padding:0 18px;border-radius:22px;font-size:14px;font-weight:700}
}
/* Add vehicle and Edit vehicle on laptop and desktop screens: tighter spacing and a little more width, so every step
   fits without scrolling on a normal laptop window. Very short windows still scroll so nothing is cut off. */
@media (min-width:769px){
 html.account-root body.av2[data-account-page=garage] #dialog:has(#gr-vehicle-form){width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 24px);padding-block:24px}
 html.account-root body.av2[data-account-page=garage] #dialog:has(#gr-vehicle-form) .gr-stepper{margin:14px 0 16px}
 html.account-root body.av2[data-account-page=garage] #gr-vehicle-form .gr-section-copy{margin-bottom:12px}
 html.account-root body.av2[data-account-page=garage] #gr-vehicle-form .gr-fields{gap:14px 16px;margin-bottom:8px}
 html.account-root body.av2[data-account-page=garage] #gr-vehicle-form .gr-catalogue-actions{margin:8px 0}
 html.account-root body.av2[data-account-page=garage] #gr-vehicle-form .gr-cost-preview{gap:4px;padding:12px 16px;margin:8px 0 10px}
 html.account-root body.av2[data-account-page=garage] #gr-vehicle-form .gr-catalogue{margin-bottom:0}
 html.account-root body.av2[data-account-page=garage] #gr-vehicle-form .gr-modal-actions{margin-top:14px;padding-top:14px}
}
/* Fuel price field: this week's average for the member's country, with a "Use this" link. */
html.account-root body.av2[data-account-page=garage] .gr-fuel-average .gr-text-button{display:inline;min-height:0;padding:0 2px;border:0;background:none;font:inherit;font-weight:700;color:var(--av2-accent,#007991);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
html.account-root body.av2[data-account-page=garage] .gr-fuel-average .gr-fuel-source{display:block;font-size:11px;opacity:.85}
