/* WerkDok 3.0 — My Garage / two premium themes, scoped to new garage */
.wd-my-garage[hidden],.wd-garage-onboarding[hidden],.wd-garage-dashboard[hidden]{display:none!important}
body.on-garage .feed-sidebar-right{display:none!important}
body.on-garage .feed-layout{grid-template-columns:minmax(215px,282px) minmax(0,1fr)!important;gap:18px}
.wd-my-garage{--garage-accent:#1ed9e8;--garage-gold:#edbf6a;--garage-border:#234b63;--garage-text:#f3fbff;--garage-sub:#b9d0de;--garage-panel:linear-gradient(155deg,#082236,#071927);width:100%;min-width:0;display:block;color:var(--garage-text);align-content:start}
body.on-garage .feed-side-nav a[data-sidebar-nav=garage].is-active{color:var(--teal);font-weight:800}
.wd-my-garage h1,.wd-my-garage h2,.wd-my-garage h3{margin:0;font-family:Outfit,Manrope,sans-serif}
.wd-my-garage p{margin:0}
.wd-garage-overline{font-size:11px;letter-spacing:2.1px;color:#41e2ed;font-weight:900}
.wd-garage-onboarding{display:grid;gap:16px}
.wd-garage-welcome{position:relative;isolation:isolate;min-height:510px;border:1px solid var(--garage-border);border-radius:25px;overflow:hidden;background:linear-gradient(120deg,#051522,#071d2d);box-shadow:0 22px 55px rgba(0,0,0,.2)}
.wd-garage-welcome::after{content:"";z-index:-1;position:absolute;inset:0;background:linear-gradient(90deg,#041522 0%,#041522f2 34%,#041522be 57%,#04152226 88%),linear-gradient(0deg,#04152288,transparent 50%)}
.wd-garage-welcome-image{position:absolute;z-index:-2;inset:0 0 0 auto;width:66%;background-image:url('assets/garage-cover-dark.webp');background-size:cover;background-position:center;filter:contrast(1.04) saturate(1.1)}
.wd-garage-welcome-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:17px;padding:clamp(28px,3.2vw,50px);max-width:68%}
.wd-garage-welcome-copy h1{max-width:670px;font-size:clamp(38px,3.6vw,64px);line-height:1.03;letter-spacing:-1.8px}
.wd-garage-welcome-copy>p:not(.wd-garage-refresh-status){max-width:580px;color:#d4e7f0;line-height:1.75;font-size:14px}
.wd-garage-steps{display:grid;gap:10px;max-width:580px;width:100%}
.wd-garage-steps>div{display:flex;align-items:center;gap:13px;color:#e1f0f5;font-weight:700;font-size:13px;line-height:1.5}
.wd-garage-steps b{flex:0 0 31px;height:31px;border:1px solid #1acdda6b;display:grid;place-items:center;border-radius:50%;background:#0b3747;color:#44e5eb;font:800 12px Manrope,sans-serif}
.wd-garage-welcome-actions{display:flex;gap:11px;flex-wrap:wrap}
.wd-garage-primary,.wd-garage-secondary,.wd-garage-app-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:13px;padding:13px 18px;font:800 13px Manrope,sans-serif;min-height:48px;text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.wd-garage-primary{background:linear-gradient(135deg,#47f0f2,#0fc9d9);border:1px solid #41f7f1;color:#04222d;box-shadow:0 11px 28px #03d4da30}
.wd-garage-secondary{border:1px solid #4e8096;background:#0a2436d9;color:#e4f8fd}
.wd-garage-primary:hover,.wd-garage-secondary:hover,.wd-garage-app-link:hover{transform:translateY(-2px)}
.wd-garage-secondary:disabled{opacity:.65;cursor:wait}
.wd-garage-refresh-status{font-size:12px;font-weight:800;color:var(--garage-gold);min-height:16px}
.wd-garage-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.wd-garage-benefits article{min-width:0;padding:20px 18px;border:1px solid var(--garage-border);border-radius:18px;background:var(--garage-panel)}
.wd-garage-benefits .icon{color:var(--garage-accent);font-size:27px;margin-bottom:14px}
.wd-garage-benefits strong{display:block;font-size:14px;line-height:1.35;margin-bottom:7px}
.wd-garage-benefits p{font-size:11px;line-height:1.55;color:var(--garage-sub)}
.wd-garage-onboarding-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px;border:1px solid var(--garage-border);background:var(--garage-panel);border-radius:18px}
.wd-garage-onboarding-footer p{color:var(--garage-sub);font-size:12px;line-height:1.5;margin-top:6px}
.wd-garage-onboarding-footer a{border:1px solid #36bbcb;border-radius:10px;padding:11px 14px;white-space:nowrap;color:var(--garage-accent);font-weight:800;font-size:12px}
/* Full garage after refresh */
.wd-garage-dashboard{display:grid;gap:16px}
.wd-garage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:3px 2px}
.wd-garage-toolbar h1{font-size:clamp(28px,2.6vw,38px);margin:4px 0 3px}
.wd-garage-toolbar p{font-size:13px;color:var(--garage-sub)}
.wd-garage-dashboard-layout{display:grid;grid-template-columns:minmax(182px,.78fr) minmax(0,2.18fr) minmax(195px,.93fr);gap:14px;align-items:start;min-width:0}
.wd-garage-vehicle-sidebar,.wd-garage-right-info,.wd-garage-main-content{min-width:0}
.wd-garage-vehicle-sidebar{padding:16px 13px;border:1px solid var(--garage-border);border-radius:20px;background:var(--garage-panel);display:grid;gap:13px;align-content:start}
.wd-garage-vehicle-title{display:flex;align-items:center;justify-content:space-between;gap:6px}
.wd-garage-vehicle-title h2{font-size:18px}
.wd-garage-vehicle-title span{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--garage-border);color:var(--garage-accent);font:800 12px Manrope,sans-serif;border-radius:10px}
.wd-garage-vehicle-list{display:grid;gap:9px}
.wd-garage-vehicle-item{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:7px;border:1px solid var(--garage-border);border-radius:13px;background:#0b2334;color:#ebfaff;cursor:pointer}
.wd-garage-vehicle-item.is-selected{border-color:#32d5e3;background:#0d3447;box-shadow:inset 0 0 0 1px #1bdce638}
.wd-garage-vehicle-item img{width:73px;height:67px;object-fit:cover;border-radius:9px;flex-shrink:0}
.wd-garage-item-copy{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.wd-garage-item-copy strong{font-size:12px;line-height:1.25}
.wd-garage-item-copy small{font-size:10px;color:var(--garage-sub);line-height:1.4}
.wd-garage-add-hint{color:var(--garage-sub);font-size:11px;line-height:1.55}
.wd-garage-app-link{border:1px solid #326f86;color:#4adeec;background:#0b2736;min-height:43px;font-size:11px;padding:9px;white-space:normal;text-align:center}
.wd-garage-main-content{display:grid;gap:13px}
.wd-garage-vehicle-hero{height:330px;overflow:hidden;border:1px solid var(--garage-border);border-radius:22px;position:relative;background:#041522}
.wd-garage-vehicle-hero>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.wd-garage-vehicle-fade{position:absolute;inset:0;background:linear-gradient(90deg,#03131fef 0%,#03131fb8 37%,#03131f00 88%),linear-gradient(0deg,#041522d9,transparent 70%)}
.wd-garage-vehicle-copy{position:absolute;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:12px;width:min(100%,480px);padding:25px}
.wd-garage-vehicle-copy h2{font-size:clamp(26px,2.7vw,41px);line-height:1.08;color:#f3fbff;text-shadow:0 5px 15px #001b2b}
.wd-garage-vehicle-copy p{color:#d7e8ef;font-size:13px}
.wd-garage-vehicle-metrics{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px}
.wd-garage-vehicle-metrics>div{display:grid;gap:5px;border-left:2px solid #1ac9da;padding-left:9px;min-width:78px}
.wd-garage-vehicle-metrics small{color:#a6c8da;font-size:10px}
.wd-garage-vehicle-metrics strong{font-size:12px;color:#f3fbff}
.wd-garage-details-tabs{display:flex;gap:6px;overflow-x:auto;padding:6px;background:#061f30;border:1px solid var(--garage-border);border-radius:13px;scrollbar-width:thin}
.wd-garage-details-tabs button{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#b1cbd8;white-space:nowrap;font:800 11px Manrope,sans-serif;cursor:pointer}
.wd-garage-details-tabs button.is-active{color:#42e5ed;background:#0b3a49;border-color:#238a9c}
.wd-garage-tab-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wd-garage-detail-card,.wd-garage-info-card{border:1px solid var(--garage-border);border-radius:16px;padding:17px;background:var(--garage-panel);min-width:0}
.wd-garage-detail-card h3,.wd-garage-info-card h3{font-size:16px;margin-bottom:14px}
.wd-garage-specs{display:grid;gap:0;margin:0}
.wd-garage-specs>div{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:8px;padding:9px 0;border-bottom:1px solid #2c556b66}
.wd-garage-specs dt{font-size:11px;color:#9ebdcb}
.wd-garage-specs dd{margin:0;overflow-wrap:anywhere;font-size:11px;line-height:1.4;font-weight:800;color:var(--garage-text)}
.wd-garage-wide-card{grid-column:1/-1;min-height:210px}
.wd-garage-empty-record{display:grid;gap:8px;padding:18px;background:#0b3043b0;border:1px solid #28546a;border-radius:12px}
.wd-garage-empty-record strong{font-size:14px;color:var(--garage-text)}
.wd-garage-empty-record p,.wd-garage-quiet-note{color:var(--garage-sub);font-size:12px;line-height:1.65}
.wd-garage-quiet-note{margin-top:12px!important}
.wd-garage-right-info{display:grid;gap:12px}
.wd-garage-info-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.wd-garage-info-title .icon{font-size:24px;color:#25d8dd}
.wd-garage-info-title span{font-size:12px;color:var(--garage-accent);font-weight:800}
.wd-garage-info-card p{font-size:11px;line-height:1.6;color:var(--garage-sub)}
.wd-garage-status-line{display:flex;align-items:center;gap:9px;margin-top:14px;font-size:11px;font-weight:800;color:#40e3c2}
.wd-garage-dot{width:8px;height:8px;background:#3eeab3;border-radius:50%}
.wd-garage-checklist{display:grid;gap:9px}
.wd-garage-check-item{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--garage-text);line-height:1.5;cursor:pointer}
.wd-garage-check-item input{accent-color:#13cddd;width:17px;height:17px;flex:0 0 17px}
.wd-garage-check-hint{font-size:10px!important;color:var(--garage-sub)!important;margin-top:5px!important}
.wd-garage-task-list{display:grid;gap:13px}
.wd-garage-task-list>div{display:flex;align-items:flex-start;gap:9px;color:var(--garage-sub);font-size:11px;line-height:1.45}
.wd-garage-task-list .icon{color:var(--garage-gold);font-size:18px}
.wd-garage-disclaimer{font-size:11px;color:var(--garage-sub);text-align:right}
.wd-garage-widget-note{color:var(--pr-muted);font-size:13px;line-height:1.65;padding:16px 0}
/* light theme: dedicated photography, consistent contrast */
html[data-theme='light'] .wd-my-garage{--garage-accent:#058ea6;--garage-gold:#aa701e;--garage-border:#cfe3ec;--garage-text:#173448;--garage-sub:#547083;--garage-panel:linear-gradient(150deg,#ffffff,#f5fafd)}
html[data-theme='light'] .wd-garage-welcome{background:#f8fdff;box-shadow:0 18px 42px #1c5f8215}
html[data-theme='light'] .wd-garage-welcome-image{background-image:url('assets/garage-cover-light.webp');filter:saturate(1.03)}
html[data-theme='light'] .wd-garage-welcome::after{background:linear-gradient(90deg,#fcfeffff 0%,#fcfefff5 37%,#fcfeffc8 58%,#fcfeff0d 90%)}
html[data-theme='light'] .wd-garage-overline{color:#009bb4}
html[data-theme='light'] .wd-garage-welcome-copy>p:not(.wd-garage-refresh-status){color:#557186}
html[data-theme='light'] .wd-garage-steps>div{color:#193f54}
html[data-theme='light'] .wd-garage-steps b{background:#e3f8fb;color:#008fa6}
html[data-theme='light'] .wd-garage-secondary{background:#fff;color:#214b62;border-color:#bad7e4}
html[data-theme='light'] .wd-garage-vehicle-sidebar,html[data-theme='light'] .wd-garage-detail-card,html[data-theme='light'] .wd-garage-info-card{box-shadow:0 10px 28px #2b698512}
html[data-theme='light'] .wd-garage-vehicle-item{background:#fff;color:#1a394c;border-color:#d6e8ef}
html[data-theme='light'] .wd-garage-vehicle-item.is-selected{background:#e7f8fb;border-color:#0fc2d5}
html[data-theme='light'] .wd-garage-details-tabs{background:#f9fcff}
html[data-theme='light'] .wd-garage-details-tabs button{color:#5b7587}
html[data-theme='light'] .wd-garage-details-tabs button.is-active{color:#007f99;border-color:#a2dfe7;background:#e5f9fb}
html[data-theme='light'] .wd-garage-specs>div{border-color:#dbe9f1}
html[data-theme='light'] .wd-garage-specs dt{color:#607e91}
html[data-theme='light'] .wd-garage-empty-record{background:#eaf7fb;border-color:#d1e7ed}
html[data-theme='light'] .wd-garage-app-link{background:#e7f8fb;color:#007d99;border-color:#a1dfe7}
html[data-theme='light'] .wd-garage-status-line{color:#138b72}
/* scrolling and layout: desktop independent left/sidebar and garage content */
@media(min-width:1221px){body.on-garage .wd-my-garage{position:relative;top:auto;min-width:0;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-color:#267d8d8e transparent;scrollbar-width:thin;padding-right:7px}body.on-garage .feed-sidebar-left{overflow-y:auto;min-height:0;max-height:100%}}
@media(max-width:1610px){.wd-garage-dashboard-layout{grid-template-columns:minmax(175px,.65fr) minmax(0,2fr) minmax(185px,.77fr);gap:10px}.wd-garage-vehicle-item img{width:62px;height:62px}.wd-garage-benefits article{padding:16px 13px}}
@media(max-width:1390px){.wd-garage-dashboard-layout{grid-template-columns:minmax(175px,.68fr) minmax(0,2fr)}.wd-garage-right-info{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.wd-garage-vehicle-hero{height:315px}}
@media(max-width:1220px){body.on-garage .feed-layout{grid-template-columns:1fr!important}.wd-garage-dashboard-layout{grid-template-columns:minmax(190px,.65fr) minmax(0,2fr)}body.on-garage .wd-my-garage{order:0;width:100%;overflow:visible}body.on-garage .feed-sidebar-left{order:1}.wd-garage-welcome-copy{max-width:70%}}
@media(max-width:860px){.wd-garage-welcome-copy{max-width:78%}.wd-garage-welcome-image{width:72%;opacity:.7}.wd-garage-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}.wd-garage-dashboard-layout{grid-template-columns:1fr}.wd-garage-vehicle-sidebar{grid-row:auto}.wd-garage-vehicle-list{grid-template-columns:repeat(3,minmax(0,1fr))}.wd-garage-vehicle-item{display:grid;grid-template-columns:1fr;gap:7px}.wd-garage-vehicle-item img{width:100%;height:95px}.wd-garage-right-info{grid-column:1;grid-row:auto}}
@media(max-width:620px){.wd-garage-welcome{min-height:0}.wd-garage-welcome-copy{max-width:none;padding:25px 20px;gap:15px}.wd-garage-welcome-image{width:100%;opacity:.35}.wd-garage-welcome::after{background:linear-gradient(0deg,#041522f5,#041522e0)}html[data-theme='light'] .wd-garage-welcome::after{background:linear-gradient(0deg,#fffffff4,#ffffffdd)}.wd-garage-welcome-copy h1{font-size:clamp(35px,10vw,53px)}.wd-garage-welcome-actions{width:100%}.wd-garage-primary,.wd-garage-secondary{flex:1 1 155px}.wd-garage-benefits{gap:9px}.wd-garage-benefits article{padding:16px 12px}.wd-garage-benefits strong{font-size:12px}.wd-garage-onboarding-footer{display:grid}.wd-garage-onboarding-footer a{white-space:normal;text-align:center}.wd-garage-toolbar{align-items:flex-start;flex-wrap:wrap}.wd-garage-vehicle-list{grid-template-columns:1fr 1fr}.wd-garage-vehicle-hero{height:295px}.wd-garage-vehicle-copy{padding:17px}.wd-garage-vehicle-copy h2{font-size:29px}.wd-garage-tab-content{grid-template-columns:1fr}.wd-garage-right-info{grid-template-columns:1fr}.wd-garage-vehicle-metrics{gap:9px}}
@media(max-width:390px){.wd-garage-benefits{grid-template-columns:1fr 1fr}.wd-garage-vehicle-list{grid-template-columns:1fr}.wd-garage-vehicle-item{display:flex}.wd-garage-vehicle-item img{width:75px;height:70px}}

/* LAB 1.19: inner garage adapts to actual pane width, not viewport. */
.wd-my-garage{container-type:inline-size;min-width:0;max-width:100%;overflow-wrap:anywhere}
.wd-garage-dashboard,.wd-garage-dashboard-layout,.wd-garage-main-content,.wd-garage-vehicle-sidebar,.wd-garage-right-info{min-width:0;max-width:100%;}
.wd-garage-dashboard-layout{grid-template-columns:minmax(185px,240px) minmax(0,1fr)!important;gap:14px;align-items:start}
.wd-garage-right-info{grid-column:1/-1;grid-row:auto;grid-template-columns:repeat(3,minmax(0,1fr));display:grid;align-items:start}
.wd-garage-vehicle-hero{width:100%;max-width:100%;height:clamp(250px,28vw,340px);aspect-ratio:auto}
.wd-garage-vehicle-hero>img{object-fit:cover;object-position:center;max-width:100%}
.wd-garage-tab-content{min-width:0}
@container (max-width:920px){
 .wd-garage-dashboard-layout{grid-template-columns:minmax(0,1fr)!important}
 .wd-garage-vehicle-list{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}
 .wd-garage-vehicle-item{display:flex;flex-direction:column;align-items:stretch}
 .wd-garage-vehicle-item img{width:100%;height:110px}
 .wd-garage-right-info{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr))}
 .wd-garage-right-info>:last-child{grid-column:1/-1}
}
@container (max-width:600px){
 .wd-garage-vehicle-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wd-garage-right-info{grid-template-columns:minmax(0,1fr)}
 .wd-garage-right-info>:last-child{grid-column:auto}
 .wd-garage-tab-content{grid-template-columns:minmax(0,1fr)}
 .wd-garage-vehicle-hero{height:300px}
}
@container (max-width:380px){.wd-garage-vehicle-list{grid-template-columns:minmax(0,1fr)}.wd-garage-vehicle-item{flex-direction:row}.wd-garage-vehicle-item img{width:80px;height:66px}}
