/* V172: two-step catalogue and readable dark surfaces. */
html body .av170-make .av170-pop{display:flex;flex-direction:column;width:min(570px,calc(100vw - 28px));max-height:70dvh;overflow:hidden!important;padding:20px 20px 0;box-sizing:border-box}
html body .av170-make .av170-model-list{overflow-x:hidden!important;overflow-y:auto!important;min-height:100px;max-height:42dvh;margin:0;flex:1 1 auto;width:100%;box-sizing:border-box}
html body .av170-make .av171-all-makes{display:flex;flex-direction:column;gap:12px;flex:none;margin:20px 0 10px}
html body .av170-make .av172-make-row,html body .av170-make .av172-model-row{display:flex!important;align-items:center;gap:16px;padding:18px 0!important;border-top:1px solid #d9e1e8;margin:0!important;min-width:0;width:100%;box-sizing:border-box;font-size:17px;color:#172b3e;cursor:pointer}
html body .av170-make .av172-brand-link{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;width:100%;padding:0;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:inherit!important;font:inherit;text-align:left;cursor:pointer}
html body .av170-make .av172-model-row input,html body .av170-make .av172-make-row input{width:23px!important;height:23px!important;min-height:23px!important;flex:0 0 23px;margin:0!important;accent-color:#147fd2}
html body .av170-make .av172-back{align-self:flex-start;padding:0;background:transparent!important;border:0!important;box-shadow:none!important;font:inherit;font-size:14px;color:#1369a9!important;cursor:pointer}
html body .av170-make .av170-actions{flex:none}.av172-custom-model{display:flex;flex-wrap:wrap;gap:8px;padding:15px 0}.av172-custom-model input{width:100%;min-width:0;box-sizing:border-box}
html:is([data-theme=dark],[data-theme=premium]){--text:#f0f6ff!important;--muted:#c7d5e8!important;--card:#172d40!important;--line:#547084!important;color-scheme:dark}
html:is([data-theme=dark],[data-theme=premium]) body{background:#0b1e2d!important;color:#f0f6ff!important}
html:is([data-theme=dark],[data-theme=premium]) body :is(h1,h2,h3,h4,h5,p,label,legend,small,span,b,strong,li,td,th,summary){color:inherit}
html:is([data-theme=dark],[data-theme=premium]) body :is(.site-brand-tagline,.muted,.eyebrow,.av159-label,.av170-age>span,.av170-payment-later small){color:#c7d5e8!important}
html:is([data-theme=dark],[data-theme=premium]) body :is(input,select,textarea){background:#132b3d!important;color:#f4f8ff!important;border-color:#627e95!important;caret-color:white}
html:is([data-theme=dark],[data-theme=premium]) body ::placeholder{color:#bdcede!important;opacity:1}
html:is([data-theme=dark],[data-theme=premium]) body :is(.av170-totals>div,.av170-breakdown,.av170-payment-later,.av170-pop,.av170-dropdown>summary,.av170-body-tile,.av100-select-menu,.av100-select-button,.av100-option,.av172-location-preview,.av172-map-dialog,.av172-chat,.av126-bubble,.av85-bubble,.av59-bubble){background:#172f43!important;color:#f2f7ff!important;border-color:#627e95!important}
html:is([data-theme=dark],[data-theme=premium]) body .av170-totals strong{color:#76d5ff!important}
html:is([data-theme=dark],[data-theme=premium]) body :is(.av170-totals,.av170-breakdown,.av170-payment-later,.av170-pop,.av172-chat,.av172-map-dialog) :is(p,span,small,b,strong,label,legend,summary,h2,h3){color:#f2f7ff!important}
html:is([data-theme=dark],[data-theme=premium]) body .av170-make :is(.av172-make-row,.av172-model-row,.av172-back){color:#f2f7ff!important}
html:is([data-theme=dark],[data-theme=premium]) body :is(.av126-error,.av85-error,.av59-error){color:#ffb1ba!important}
html:is([data-theme=dark],[data-theme=premium]) body a{color:#93d8ff}html:is([data-theme=dark],[data-theme=premium]) body :is(.leaflet-control,.leaflet-popup-content-wrapper){background:#fff!important;color:#16324a!important}html:is([data-theme=dark],[data-theme=premium]) body .leaflet-control :is(a,span){color:#16324a!important}
html body dialog.av172-chat[open]{display:flex!important;flex-direction:column;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box;overflow:auto!important}
html body .av172-chat :is(.av126-log,.av85-history,.av59-history){flex:1 1 auto;height:auto!important;min-height:120px;max-height:none!important;overflow:auto}
html body .av172-chat .av126-chat-layout{flex:1;min-height:0;height:auto!important}.av172-chat .av126-thread-pane{display:flex;flex-direction:column;min-height:0}
html body .av172-compose-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;grid-column:1/-1;min-width:0}
html body .av172-compose-actions .av172-send{width:var(--av172-send-width,auto)!important;max-width:calc(100% - 155px)!important;font-size:80%!important;padding:8px 12px!important;min-height:36px!important}
.av172-location-button{flex:0 1 auto;padding:9px 12px;border:1px solid #a5bfd5;border-radius:10px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:13px}
.av172-location-preview{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #bdd4e7;border-radius:10px;overflow-wrap:anywhere;font-size:13px;grid-column:1/-1}.av172-location-preview[hidden]{display:none!important}.av172-location-preview>a{flex:1;min-width:0}.av172-location-preview>button{flex:none;background:transparent;border:0;font-size:23px;color:inherit;cursor:pointer}
.av172-map-dialog{width:min(760px,calc(100vw - 24px));padding:18px;max-height:calc(100dvh - 24px);box-sizing:border-box;border:1px solid #abc6df;border-radius:16px;background:#fff;color:#17334b;overflow:auto}.av172-map-dialog::backdrop{background:#081927aa}.av172-map-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}.av172-map{height:min(440px,55dvh);width:100%;margin:12px 0}.av172-map-dialog>input{width:100%;box-sizing:border-box;min-height:40px}.av172-map-status{font-size:13px}
@media(max-width:650px){html body .av170-make .av170-pop{width:calc(100vw - 28px);max-height:65dvh;padding:12px 12px 0}.av172-map-dialog{padding:12px}html body .av172-chat .av126-chat-layout{display:flex;flex-direction:column}.av172-chat .av126-thread-list{max-height:100px;flex:none;overflow:auto}}
