/* V358: profile pages use the same paper treatment as vehicle listing forms. */
@layer av278 {
html:root body:has(#clientContent .av85-profile),
html:root body:has(#ownerProfile85 .av85-profile){background:#e5e7eb!important}
html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile)){
 box-sizing:border-box!important;width:210mm!important;max-width:calc(100% - 24px)!important;
 min-height:297mm!important;height:auto!important;margin:24px auto!important;padding:15mm!important;
 background:#fff!important;color:#172b4d!important;border:1px solid #d2d9e0!important;
 border-radius:0!important;box-shadow:0 3px 18px #172b4d26!important;overflow-wrap:anywhere!important;
}
html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile)) :is(h1,h2,h3,label,p,span,small,summary){color:#172b4d!important;text-shadow:none!important}
html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile)) :is(input,select,textarea){background:#fff!important;color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;color-scheme:light!important;border-color:#bdd3e7!important}
html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile)) :is(.av159-profile,#av150AccountSecurity){max-width:100%!important;box-sizing:border-box!important}
html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile)) :is(.av159-profile,.av160-disclosure,#av150AccountSecurity){background:#fff!important;color:#172b4d!important}

/* The driver sheet uses the same outer size and plain form surface as the owner sheet. */
html:root body main#driverHost120.av160-driver-host{width:210mm!important;max-width:calc(100% - 24px)!important;min-height:297mm!important;margin:24px auto!important;padding:15mm!important;background:#fff!important;color:#172b4d!important;border:1px solid #d2d9e0!important;border-radius:0!important;box-shadow:0 3px 18px #172b4d26!important}
html:root body #driverForm120.av159-form{width:100%!important;max-width:100%!important;margin:16px 0!important;padding:0!important;background:#fff!important;color:#172b4d!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html:root body #driverHost120>h1,html:root body #driverHost120>p{text-align:left!important}
html:root body #driverForm120 .av159-field{color:#172b4d!important}
html:root body #driverForm120 :is(input:not([type=checkbox]),select,textarea){background:#fff!important;color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;color-scheme:light!important;border-color:#bdd3e7!important}

/* Identical upload cards on both listing pages. Native file controls keep their handlers. */
html:root body :is(#hostForm,#driverForm120) .av358-upload{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;
 min-height:164px!important;height:auto!important;margin:0!important;padding:18px 14px!important;
 box-sizing:border-box!important;text-align:center!important;border:2px dashed #cbd8e3!important;
 border-radius:20px!important;background:#f8fafb!important;color:#172b4d!important;box-shadow:none!important;
}
html:root body :is(#hostForm,#driverForm120) .av358-upload>:is(b,span:not(.av210-file)){
 display:block!important;font-size:18px!important;font-weight:700!important;line-height:1.3!important;
 color:#172b4d!important;margin:0!important;padding:0!important;white-space:normal!important;
}
html:root body :is(#hostForm,#driverForm120) .av358-upload>small{
 display:block!important;color:#879fb0!important;font-size:14px!important;line-height:1.35!important;
 margin:0!important;padding:0!important;max-width:100%!important;
}
html:root body :is(#hostForm,#driverForm120) .av358-upload :is(.file-ui,.av210-file){
 display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;
 gap:10px!important;width:auto!important;max-width:100%!important;min-height:0!important;
 margin:2px 0 0!important;padding:0!important;background:transparent!important;border:0!important;
 overflow:visible!important;color:#172b4d!important;
}
html:root body :is(#hostForm,#driverForm120) .av358-upload :is(.file-btn,.av210-file-button){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:44px!important;height:auto!important;padding:9px 16px!important;
 border:1px solid #cbd8e3!important;border-radius:12px!important;background:#fff!important;
 color:#172b4d!important;font-size:15px!important;font-weight:600!important;line-height:1.3!important;
 cursor:pointer!important;box-shadow:none!important;
}
html:root body :is(#hostForm,#driverForm120) .av358-upload :is(.file-name,.av210-file-name){font-size:15px!important;color:#5f7d94!important;max-width:100%!important;overflow-wrap:anywhere!important}
html:root body :is(#hostForm,#driverForm120) .av358-upload .av212-previews{width:100%!important;max-width:100%!important;text-align:left!important}
html:root body :is(#hostForm,#driverForm120) button.av317-camera{display:none!important}
@media(max-width:850px){
 html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile),main#driverHost120.av160-driver-host){padding:20px!important;min-height:0!important;margin:12px auto!important}
}
@media(max-width:650px){
 html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile),main#driverHost120.av160-driver-host){width:100%!important;max-width:100%!important;padding:16px!important;margin:0 auto!important;box-shadow:none!important}
 html:root body :is(#hostForm,#driverForm120) .av358-upload{min-height:152px!important;padding:16px 10px!important}
}
@media print{
 html:root body:has(#clientContent .av85-profile) :is(header.top,.client-side,.client-head,.av136-footer),
 html:root body:has(#ownerProfile85 .av85-profile) :is(header.top,.av79-owner-nav,.av136-footer){display:none!important}
 html:root body :is(#clientContent:has(>.av85-profile),#ownerProfile85:has(>.av85-profile)){width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;overflow:visible!important}
}
}

/* AVTOTRIP V358 */
