/* Keep the desktop layout while separating the gallery from the long information column. */
.detail-main-column,.detail-gallery,.detail-information{min-width:0}.detail-grid>.detail-summary{align-self:start}

.admin-tools-toggle,.admin-status-label,.mobile-chat-nav{display:none}.admin-tools-grid{display:contents}.chat-admin-tools{flex-basis:100%;min-width:0}.chat-admin-tools>summary{display:none}.chat-admin-tool-content{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.chat-admin-tool-content .admin-thread-actions{margin-left:0}.chat-admin-tool-content .chat-routing{border:0;padding:0;margin:0;flex-wrap:wrap}.admin-thread-heading .chat-vehicle-card{margin-bottom:0}
@media(max-width:720px){
 html{scroll-padding-top:88px}body{overflow-wrap:break-word}
 input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important;min-height:44px}
 input[type=file]{font-size:14px;max-width:100%;min-width:0}textarea{line-height:1.65}
 .icon-button,.chat-close{min-width:42px;min-height:42px;flex-shrink:0}.nav{gap:12px}.nav-actions{gap:12px;font-size:12px}.nav-actions a,.nav-actions button{min-height:40px;display:inline-flex;align-items:center}.nav-phone{font-size:11px}.nav-phone strong{font-size:13px}
 .car-card-tools>button{min-height:42px;font-size:11px}.premium .card-content h3{font-size:14px;line-height:1.55}.premium .car-meta{font-size:12px;line-height:1.7}.premium .car-brand{font-size:11px}.premium .car-price{font-size:22px}.premium .car-price small{font-size:11px}.premium .chip{font-size:12px;min-height:40px;padding:9px 11px}.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar>.text-button{min-height:40px;font-size:12px}.vehicle-library-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.vehicle-library-toolbar button{font-size:11.5px;padding:7px 5px;min-height:42px;gap:4px;min-width:0}.library-car-actions>button{min-height:40px}.vehicle-library-tabs button{min-height:42px}.vehicle-library-dialog{top:calc(var(--mobile-view-top,0px) + 8px);bottom:auto;margin:0 auto;height:calc(var(--mobile-app-height,100dvh) - 16px);max-height:calc(var(--mobile-app-height,100dvh) - 16px)}
 body:has(#detail) main.section{padding-top:23px}body:has(#detail) .back-link{margin-bottom:8px}body:has(#detail) .back-link+.vehicle-library-toolbar{margin-top:10px;margin-bottom:20px}.detail-grid{gap:22px}.detail-main-column{display:contents}.detail-gallery{order:0;width:100%}.detail-grid>.detail-summary{order:1;padding:22px 20px;width:100%}.detail-information{order:2;width:100%}.detail-gallery .gallery-main{aspect-ratio:1.5;border-radius:10px}.detail-gallery #gallery-image{object-fit:contain;background:#f3f5f7}.detail-gallery .gallery-thumbs{margin-top:10px;margin-bottom:0}.detail-gallery .gallery-thumb{min-width:52px;min-height:44px}.gallery-enlarge{min-height:42px;font-size:12px;padding:8px 11px;right:10px;bottom:10px}.detail-summary h1{font-size:24px;line-height:1.5}.detail-summary .detail-price{font-size:32px;margin-top:12px}.detail-summary .car-meta,.detail-summary .small,.purchase-intro,.purchase-help,.purchase-notice{font-size:13px;line-height:1.8}.detail-summary .contact-channel{min-height:56px}.detail-summary .channel-copy strong{font-size:14px}.detail-section .spec-grid>div{font-size:13px;padding-block:12px}.detail-vehicle-actions>button{min-height:44px;font-size:13px}.mobile-consultation>a,.mobile-consultation>button{font-size:13px}
 .admin-main{padding-top:22px}.admin-heading{display:block;margin-bottom:20px}.admin-heading>div:first-child .eyebrow{display:none}.admin-heading h1{font-size:27px}.admin-heading .muted{font-size:13px;max-width:none;line-height:1.8}.admin-role{font-size:12px;margin-bottom:7px}.admin-heading-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;margin-top:16px}.admin-heading-actions>#admin-chat-button{grid-column:1;grid-row:1}.admin-heading-actions>#new-car{grid-column:2;grid-row:1}.admin-heading-actions>.button{font-size:13px;min-height:46px;min-width:0;padding:11px 8px}.admin-tools-toggle{display:flex;align-items:center;justify-content:center;gap:12px;grid-column:1/-1;border:1px solid #dbe0e6;background:white;color:#596777;border-radius:7px;min-height:41px;font-size:13px}.admin-tools-toggle[aria-expanded=true]>span{transform:rotate(180deg)}.admin-tools-grid{display:none;grid-column:1/-1}.admin-tools-grid.is-open{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border:1px solid #e0e4e9;border-radius:9px;background:#fff}.admin-tools-grid>.button{font-size:12px;min-width:0;min-height:44px;padding:9px 6px;white-space:normal;line-height:1.5}.stat-grid{gap:9px;margin-bottom:20px}.stat-grid>div{padding:12px 15px}.stat-grid span{font-size:12px}.stat-grid strong{font-size:25px;margin-top:5px}.admin-toolbar{gap:11px}.admin-toolbar .chip{min-height:40px;font-size:12px}.admin-car{display:grid;grid-template-columns:88px minmax(0,1fr);gap:13px;padding:14px}.admin-car-photo{width:88px;align-self:start}.admin-car-photo img{width:88px;height:76px;object-fit:cover}.admin-car-info{min-width:0}.admin-car-info h2{font-size:15px;line-height:1.6;overflow-wrap:anywhere}.admin-car-info .car-meta{font-size:12px}.admin-view-metrics{font-size:11px}.admin-car-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;max-width:none;padding-top:12px}.admin-car-actions>label{grid-column:1/-1;display:flex;align-items:center;flex-direction:row;gap:12px}.admin-status-label{display:block;font-size:12px;flex-shrink:0}.admin-car-actions select{width:auto;flex:1}.admin-car-actions .button,.admin-car-actions .text-button{min-height:42px;font-size:12px;display:flex;align-items:center;justify-content:center;margin:0;padding:8px}.inventory-review-banner{align-items:stretch}.inventory-review-banner .button{min-height:44px}.admin-notification-banner button{min-height:40px}
 .auth-card{padding:25px 20px}.auth-card .muted{font-size:14px;line-height:1.8}.auth-card label{font-size:14px}.auth-card .button{min-height:48px;font-size:15px}
 .editor-dialog,.team-dialog,.manager-tool-dialog,.admin-chat-dialog,.cookie-dialog{top:calc(var(--mobile-view-top,0px) + 8px);bottom:auto;margin:0 auto;width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(var(--mobile-app-height,100dvh) - 16px)}
 .editor-dialog,.team-dialog,.admin-chat-dialog{height:calc(var(--mobile-app-height,100dvh) - 16px)}.editor-dialog>form{max-height:100%;height:100%;min-height:0}.editor-heading{padding:13px 16px;gap:12px}.editor-heading h2{font-size:21px;line-height:1.45;margin-top:3px}.editor-heading .eyebrow{font-size:9px}.editor-scroll{padding:18px 16px;min-height:0;flex:1}.form-grid{grid-template-columns:1fr;gap:16px}.form-grid .span-2{grid-column:auto}.editor-dialog label,.manager-tool-dialog label{font-size:13px;line-height:1.7}.editor-scroll small,.form-help,.settings-save-note{font-size:12px;line-height:1.8}.editor-scroll fieldset{margin-bottom:23px;padding-bottom:22px}.editor-scroll legend{font-size:15px;margin-bottom:16px}.editor-footer{padding:11px 13px calc(11px + env(safe-area-inset-bottom,0px));gap:9px}.editor-footer .button{flex:1;min-width:0;min-height:46px;font-size:13px;padding:10px 7px;white-space:normal;line-height:1.6}.draft-bar{padding:12px;gap:7px}.draft-bar>div:first-child{min-width:0;flex-basis:100%}.draft-bar p{font-size:12px;line-height:1.8;margin-top:4px}.draft-bar .text-button{min-height:38px;padding:6px 0;font-size:12px}.option-checkboxes{grid-template-columns:1fr 1fr;gap:7px 10px}.option-checkboxes label{min-height:40px;font-size:12px}.photo-editor{grid-template-columns:1fr 1fr}.editable-photo button{min-width:30px;min-height:35px;font-size:12px}.editable-photo>span{font-size:10px}.upload-zone strong{font-size:13px;line-height:1.8}.upload-zone>span:not(.upload-icon){font-size:12px;line-height:1.8}.settings-tabs{padding:9px 16px}.settings-tabs button{min-height:42px;font-size:13px}.setting-toggles{flex-wrap:wrap;gap:12px 20px}.setting-toggles .settings-check{min-height:34px;font-size:13px}.setting-number{gap:8px}.setting-number>span{min-width:28px}.settings-summary{font-size:12px;line-height:1.8}.operations-scroll,.team-scroll{padding:0 16px 20px;min-height:0;flex:1}.review-settings{display:flex;flex-direction:column;align-items:stretch;gap:13px}.review-settings>.button{width:100%}.review-settings label{min-width:0}.notice-form-actions,.manager-tool-actions{gap:8px}.notice-form-actions button,.manager-tool-actions button{min-height:44px;font-size:13px;flex:1}.team-row-actions{flex-wrap:wrap;min-width:0}.team-row-actions .button{min-height:42px;font-size:12px}.team-row p{overflow-wrap:anywhere}.team-section-heading{flex-wrap:wrap}.manager-tool-dialog>.editor-heading{position:sticky;top:0;z-index:3;background:white}.manager-tool-body{padding:18px 16px;gap:16px}.manager-tool-body p{font-size:13px}.legal-preview-links{font-size:13px;line-height:1.8;gap:10px 14px}.onboarding-card{padding:24px 20px}.onboarding-card label{font-size:14px}.cookie-dialog form{max-height:calc(var(--mobile-app-height,100dvh) - 18px)}
 .admin-chat-dialog .editor-heading{padding:12px 15px}.admin-chat-dialog .editor-heading h2{font-size:22px}.admin-chat-toolbar{padding:9px 13px;gap:8px}.admin-chat-toolbar button{font-size:13px;min-height:42px;padding:9px 13px}.chat-filter-label{padding:9px 13px;gap:11px;font-size:13px;white-space:nowrap}.chat-filter-label select{max-width:none;flex:1}.admin-chat-inbox{display:block;overflow:hidden}.admin-thread-list{height:100%;width:100%;overflow:auto;border-right:0}.admin-thread{padding:15px 16px;min-height:98px}.admin-thread strong{font-size:14px}.admin-thread p{font-size:13px;line-height:1.8;max-width:none}.admin-thread .thread-status,.admin-thread .thread-assignee,.thread-car-title{font-size:12px;line-height:1.8}.admin-thread-main{display:none;height:100%;width:100%;min-height:0}.mobile-thread-open .admin-thread-list{display:none}.mobile-thread-open .admin-thread-main{display:flex}.mobile-chat-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 13px;background:#f5f7f9;border-bottom:1px solid #dfe5eb;flex-shrink:0}.mobile-chat-nav button{font-size:13px;color:#48617a;border:0;background:transparent;min-height:38px;padding:7px 0}.mobile-chat-nav>span{font-size:11px;color:#798896}.admin-thread-heading{max-height:45%;overflow:auto;padding:10px 13px;gap:7px;font-size:13px}.admin-thread-heading>.thread-status{font-size:11px;margin-top:0}.chat-admin-tools{order:5}.chat-admin-tools>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:40px;padding:8px 10px;border:1px solid #d7dfe6;border-radius:6px;font-size:12px;color:#4d647b;background:#f8f9fa}.chat-admin-tool-content{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:9px}.chat-admin-tool-content .admin-thread-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}.admin-thread-actions button{min-height:40px;font-size:12px;padding:7px}.chat-admin-tool-content .chat-routing{display:flex;gap:8px;font-size:12px}.chat-admin-tool-content .chat-routing select{min-width:0;max-width:100%;flex:1}.admin-thread-heading>.chat-vehicle-card{margin:2px -13px 0;padding:10px 13px;flex-basis:calc(100% + 26px);gap:10px}.admin-thread-heading .chat-vehicle-card img{width:52px;height:43px}.admin-thread-heading .chat-vehicle-card strong{font-size:12px}.admin-thread-heading .chat-vehicle-card small{font-size:11px}.admin-thread-heading .chat-vehicle-card span{font-size:10px}.finder-admin-requests{max-height:none}.finder-admin-requests details{margin-top:3px;padding:9px 11px}.finder-admin-requests summary{font-size:12px}.finder-admin-requests dl{font-size:12px}.admin-chat-dialog .chat-log{min-height:70px;padding:12px}.admin-chat-dialog .chat-message p{font-size:14px;line-height:1.8;padding:10px 12px}.admin-chat-dialog .chat-compose{padding:10px;gap:7px}.admin-chat-dialog .chat-compose textarea{min-height:48px;max-height:96px}.admin-chat-dialog .chat-compose button{min-height:48px;padding:10px;font-size:13px}.admin-chat-config{padding:18px 14px}.chat-config-status,.chat-key-note,.chat-rule-note{font-size:12px}.chat-config-toggles{gap:12px;flex-wrap:wrap}.chat-config-toggles label{font-size:13px;min-height:40px}.chat-macro-row{padding:12px}.chat-macro-row label,.chat-macro-heading{font-size:13px}.chat-macro-heading{gap:9px}.chat-macro-heading button{min-width:37px;min-height:38px;font-size:12px;padding:6px}.chat-config-footer{bottom:-18px;padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px))}.chat-config-footer .button{width:100%;min-height:46px;font-size:14px}.chat-preview .button,#chat-macro-add{min-height:44px;font-size:13px}
 .customer-chat .chat-panel,.has-mobile-consultation .customer-chat .chat-panel{bottom:calc(12px + var(--mobile-keyboard-inset,0px));height:min(600px,calc(var(--mobile-app-height,100dvh) - 24px));max-height:calc(var(--mobile-app-height,100dvh) - 24px)}.customer-chat .chat-log{min-height:65px}.chat-quick button{min-height:40px;font-size:11px}.chat-message p{font-size:13px}.chat-message-label{font-size:11px}.chat-onboarding label,.chat-consent-detail{font-size:12px;line-height:1.8}.chat-footnote{font-size:10px}.chat-finder-open{min-height:40px;font-size:12px}.chat-panel .chat-onboarding{max-height:50%}.customer-chat .chat-compose button{min-height:45px;font-size:13px}.chat-finder-form>label{font-size:13px}.chat-finder-form .finder-consent-label,.finder-privacy{font-size:12px}.chat-booking-shortcut{min-height:36px;font-size:11px}.chat-delete{min-height:34px}.chat-launcher{min-height:48px}
 .has-compare-tray .customer-chat .chat-panel{bottom:calc(12px + var(--mobile-keyboard-inset,0px));max-height:calc(var(--mobile-app-height,100dvh) - 24px)}.has-compare-tray:has(.chat-panel:not([hidden])) .vehicle-compare-tray{display:none}
 .mobile-keyboard-open .mobile-consultation,.mobile-keyboard-open .vehicle-compare-tray,.mobile-keyboard-open .chat-launcher,.mobile-keyboard-open .cookie-notice{display:none!important}.mobile-keyboard-open .admin-chat-dialog .editor-heading{padding:7px 12px}.mobile-keyboard-open .admin-chat-dialog .editor-heading h2{font-size:19px}.mobile-keyboard-open .admin-chat-dialog .editor-heading .eyebrow,.mobile-keyboard-open .admin-chat-toolbar,.mobile-keyboard-open .chat-filter-label,.mobile-keyboard-open .admin-thread-heading{display:none!important}.mobile-keyboard-open .chat-panel .chat-status,.mobile-keyboard-open .chat-panel #chat-vehicle-context,.mobile-keyboard-open .chat-panel .chat-quick,.mobile-keyboard-open .chat-panel .chat-booking-shortcut,.mobile-keyboard-open .chat-panel .chat-finder-open{display:none!important}.mobile-keyboard-open .chat-panel-header{padding:10px 13px}
}
@media(max-width:720px), (max-height:520px) and (max-width:1000px){
 .mobile-input-focused .mobile-consultation,.mobile-input-focused .vehicle-compare-tray,.mobile-input-focused .chat-launcher,.mobile-input-focused .cookie-notice{display:none!important}
 .mobile-input-focused .chat-panel .chat-status,.mobile-input-focused .chat-panel #chat-vehicle-context,.mobile-input-focused .chat-panel .chat-quick,.mobile-input-focused .chat-panel .chat-booking-shortcut,.mobile-input-focused .chat-panel .chat-finder-open{display:none!important}
 .mobile-input-focused .customer-chat .chat-panel-header{padding:8px 12px}.mobile-input-focused .customer-chat .chat-panel-header img{width:30px;height:30px}.mobile-input-focused .customer-chat .chat-panel-header p,.mobile-input-focused .customer-chat .chat-footnote{display:none}
 .mobile-input-focused .customer-chat .chat-compose{padding:7px 10px}.mobile-input-focused .customer-chat .chat-compose textarea{padding:8px 10px}
}
@media(max-width:720px), (max-height:520px) and (max-width:1000px){
 .customer-chat .chat-panel.consent-mode{height:auto;max-height:min(600px,calc(var(--mobile-app-height,100dvh) - 24px))}
 .customer-chat .chat-panel.consent-mode .chat-log,.customer-chat .chat-panel.consent-mode .chat-status,.customer-chat .chat-panel.consent-mode #chat-vehicle-context{display:none}
 .customer-chat .chat-panel.consent-mode .chat-onboarding{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:hidden;padding:12px 14px;gap:5px}
 .chat-panel.consent-mode .chat-consent-detail{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;font-size:11px;line-height:1.65;padding:10px 12px;background:#f6f8fa;border:1px solid #e0e5eb;border-radius:7px}
 .chat-panel.consent-mode .chat-consent-detail summary{font-size:12px;line-height:1.6}.chat-panel.consent-mode .chat-consent-detail p{margin:8px 0}.chat-panel.consent-mode .chat-consent-detail a{display:inline-block;padding-block:4px}
 .chat-panel.consent-mode .chat-onboarding label{flex-shrink:0;min-height:38px;margin:0;align-items:center;font-size:12px;line-height:1.6}.chat-panel.consent-mode .chat-onboarding label input{margin:0}
 .chat-panel.consent-mode #start-chat{flex-shrink:0;min-height:44px;margin-top:3px;font-size:13px;padding:10px 12px}.chat-panel.consent-mode .chat-footnote{padding-bottom:8px}
}
@media(max-width:720px){.admin-chat-dialog:has(.mobile-thread-open:not([hidden])) .admin-chat-toolbar,.admin-chat-dialog:has(.mobile-thread-open:not([hidden])) .chat-filter-label{display:none}.vehicle-library-dialog{max-width:calc(100% - 16px)}}
@media(max-width:390px){.detail-grid>.detail-summary{padding:20px 16px}.detail-summary h1{font-size:22px}.purchase-fields{grid-template-columns:1fr}.chat-panel-header h2{font-size:14px}.admin-chat-toolbar button{padding-inline:11px}.option-checkboxes{gap:5px 7px}.vehicle-library-toolbar button{font-size:11px}.admin-car{grid-template-columns:78px minmax(0,1fr);gap:11px}.admin-car-photo,.admin-car-photo img{width:78px}}
@media(max-width:360px){.premium .car-price{font-size:20px;letter-spacing:-.05em}.premium .card-arrow{display:none}}
@media(max-height:520px) and (max-width:1000px){
 input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px!important}
 .editor-dialog,.team-dialog,.manager-tool-dialog,.admin-chat-dialog,.vehicle-library-dialog,.cookie-dialog{top:calc(var(--mobile-view-top,0px) + 6px);bottom:auto;margin:0 auto;max-height:calc(var(--mobile-app-height,100dvh) - 12px)}.editor-dialog,.team-dialog,.admin-chat-dialog,.vehicle-library-dialog{height:calc(var(--mobile-app-height,100dvh) - 12px)}
 .editor-heading,.admin-chat-dialog .editor-heading{padding:7px 12px}.editor-heading .eyebrow{display:none}.editor-heading h2,.admin-chat-dialog .editor-heading h2{font-size:19px}.admin-thread-heading{max-height:72px;overflow:auto}.admin-chat-dialog .chat-log{min-height:40px}.admin-chat-dialog .chat-compose{padding:7px 10px}.admin-chat-dialog .chat-compose textarea{height:46px;min-height:46px;max-height:70px}.admin-chat-dialog .chat-compose button{min-height:46px}
 .customer-chat .chat-panel,.has-mobile-consultation .customer-chat .chat-panel,.has-compare-tray .customer-chat .chat-panel{bottom:calc(8px + var(--mobile-keyboard-inset,0px));height:calc(var(--mobile-app-height,100dvh) - 16px);max-height:calc(var(--mobile-app-height,100dvh) - 16px)}.chat-panel #chat-vehicle-context,.chat-panel .chat-status{display:none}.chat-panel-header{padding:8px 12px}.customer-chat .chat-log{min-height:40px;padding:10px 12px}.chat-panel .chat-onboarding{max-height:52%;padding:9px 13px}.chat-quick{padding:3px 9px;gap:5px}.chat-quick button{min-height:34px;padding:6px 0}.chat-finder-open{margin:3px 9px;min-height:34px;padding:5px 8px}.chat-booking-shortcut{margin:0 9px 3px;min-height:30px;padding:4px 8px}.chat-compose{padding:7px 10px}.chat-footnote{padding-bottom:4px}.mobile-keyboard-open .admin-thread-heading{display:none!important}.mobile-keyboard-open .chat-launcher,.mobile-keyboard-open .cookie-notice{display:none!important}
}
