/* Shared TakeAuto visual foundations; page-specific layouts retain their behavior. */
:root{--ink:#202b3b;--text:var(--ink);--subtle:#596575;--muted:var(--subtle);--line:#e2e5e9;--surface:#fff;--surface-soft:#f8f9fa;--radius-panel:12px;--radius-control:8px;--panel-space:24px;--control-height:44px}
body{line-height:1.55}
main,main:has(> #market:not([hidden])){width:min(100%,1280px);padding-top:24px;padding-bottom:40px}
header nav{scrollbar-width:none}header nav::-webkit-scrollbar{display:none}
.brand-home{display:inline-flex;text-decoration:none;color:var(--ink);border-radius:8px}
.brand-home:hover{color:var(--ink)}.brand-home:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
main .card{border-color:var(--line);border-radius:var(--radius-panel)}
main>section>.card{padding:var(--panel-space)}
main :is(h2,h3,h4){font-weight:650;letter-spacing:-.02em}
:is(.my-deals-heading,.deal-intro,.vin-heading,.history-heading,.removed-heading,.customs-heading) h2,
#priceHistory .history-heading h2,#removedListings .removed-heading h2,#damageAnalysis h2{font-size:26px;line-height:1.25;font-weight:650;letter-spacing:-.025em}
:is(.my-deals-heading,.deal-intro,.vin-heading,.history-heading,.removed-heading,.customs-heading) p{font-size:13px;line-height:1.6;margin-top:7px}
:is(.my-deals-heading,.customs-heading){margin:0 0 24px}
:is(.deal-layout,.customs-layout,.vin-empty-grid){gap:20px}
:is(.deal-layout,.customs-layout)>.card{padding:var(--panel-space)}
main :is(.deal-fields,.customs-form,.history-controls,.history-period-controls,.removed-filter,.vin-search-card,.my-deal-fields) label{font-size:12px;font-weight:600;color:var(--subtle);gap:7px}
#market .search-fields :is(input:not([type=checkbox]),select),#market .catalog-trigger,
#deal .deal-fields :is(input,select),#customsRoot .customs-form :is(input:not([type=checkbox]):not([type=radio]),select),
#priceHistory select,#removedListings .removed-filter select,#myDeals .my-deal :is(input:not([type=checkbox]),select){height:var(--control-height);min-width:0;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface-soft);color:var(--ink);font-size:14px;font-weight:500;padding:10px 12px}
#market .parameter-range label :is(input,select){padding-top:17px;padding-bottom:2px}
#market .parameter-range label:first-of-type :is(input,select){border-radius:8px 0 0 8px}
#market .parameter-range label:last-of-type :is(input,select){border-radius:0 8px 8px 0;border-inline-start:0}
html[dir=rtl] #market .parameter-range label:first-of-type :is(input,select){border-radius:0 8px 8px 0}
html[dir=rtl] #market .parameter-range label:last-of-type :is(input,select){border-radius:8px 0 0 8px}
#deal .deal-money input{padding-inline-end:48px}
#market .catalog-trigger{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;gap:6px}
#market .catalog-trigger::after{flex-shrink:0}
main :is(input,select,textarea):focus-visible{outline:2px solid #be26323d;outline-offset:1px}
main :is(input,select):disabled{color:var(--subtle);opacity:.55}
main button{font-weight:600}
#myDeals .my-deals-heading>button,#vinSubmit,#market .market-search-actions>button:first-child,
.customs-actions button,#myDeals .my-deal-actions button{min-height:44px;border-radius:8px;font-size:13px;padding:10px 18px}
#marketNews h2{font-size:20px;margin:0;font-weight:650}
.news-heading{gap:16px}.news-item{padding:18px;border-radius:10px}.news-item a{font-size:14px;line-height:1.5;font-weight:600}.news-item>small{font-size:11px}
#priceHistory>.card,#removedListings>.card,#vinProduction>.card{padding:var(--panel-space);border-radius:var(--radius-panel)}
#priceHistory .history-controls{gap:16px;margin:24px 0;padding-bottom:24px}
#priceHistory .history-chart-toolbar{align-items:center}
#priceHistory .history-chart-toolbar h3{font-size:18px;margin:0}
#priceHistory .history-kpi{padding:18px;border-color:var(--line);background:var(--surface-soft)}
#priceHistory .history-kpi strong,.my-deals-kpis strong,.removed-stats dd{font-size:28px;font-weight:650;font-variant-numeric:tabular-nums}
#removedListings .removed-toolbar .removed-stats{display:flex;justify-content:flex-end;gap:32px;margin:4px 0 0}
#removedListings .removed-stats>div{min-width:150px}
#removedListings .removed-stats>div+div{border-inline-start:1px solid var(--line);padding-inline-start:24px}
#removedListings .removed-stats dt{line-height:1.5;margin-bottom:7px}
#removedListings .movement-tabs button{font-size:12px;font-weight:600}
#removedListings .movement-insights,#removedListings .market-flow{border-color:var(--line);border-radius:12px}
#myDeals .my-deal{padding:20px!important}
#myDeals .my-deal-heading h3{font-size:18px;font-weight:650}
#myDeals .my-deal-stats strong{font-size:20px;font-weight:650}
#myDeals .my-deal-estimate{height:44px}
#myDeals .my-deal-details summary{font-size:13px;font-weight:600}
.vin-search-row #vinInput{height:48px;border-color:var(--line);border-radius:8px;background:var(--surface-soft)}
#vinSubmit{height:48px}.vin-empty-grid .card{padding:24px}.vin-empty-grid h3{font-size:16px}.vin-empty-grid p{font-size:13px;line-height:1.6}
:is(.vin-provider,.history-demo-badge,.customs-year,.deal-currency-badge){font-weight:600;border-radius:6px}
#damageAnalysis>.card{text-align:start;min-height:200px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
#damageAnalysis h2{margin:0 0 12px}#damageType{font-size:16px;color:var(--subtle);margin:0 0 16px}#damageAnalysis .muted{margin:0;font-size:12px;padding:6px 10px;background:#f0f1f3;border-radius:6px}
#accountDialog{color:var(--ink);padding:24px;border-radius:12px;border-color:var(--line);box-shadow:0 16px 48px #17243b24}
#accountDialog h2{font-size:24px;font-weight:650;line-height:1.25;margin:0 0 20px}
#accountDialog label{gap:7px;font-size:12px;color:var(--subtle);font-weight:600}
#accountDialog input{height:44px;min-width:0;width:100%;border-color:var(--line);border-radius:8px;background:var(--surface-soft);font-size:15px}
#accountDialog button{min-height:40px;font-size:13px;font-weight:600;border-radius:8px;border-color:var(--line)}
#accountDialog button[value=login]{background:var(--accent);color:#fff;border-color:transparent}
#accountDialog :is(#accountEmail,#accountStatus){font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.catalog-picker{border-radius:12px;color:var(--ink)}.catalog-picker-heading h2{font-size:22px;font-weight:650}.catalog-choice{font-size:14px;font-weight:600;color:var(--subtle)}
.market-intro{position:relative;isolation:isolate;overflow:hidden;border-radius:12px;background:#263342;min-height:280px;margin-bottom:24px;padding:32px;color:white;display:flex;align-items:center}
.market-intro>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 62%;z-index:-2}
.market-intro:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(15,25,37,.92),rgba(15,25,37,.78) 45%,rgba(15,25,37,.12))}
.market-intro-copy{max-width:630px;padding-bottom:12px}.market-intro-kicker{display:block;font-size:12px;font-weight:600;color:#e3e8ef;margin-bottom:12px}
#market .market-intro h2{font-size:clamp(26px,3vw,34px);font-weight:650;letter-spacing:-.03em;line-height:1.2;color:#fff;margin:0 0 16px;max-width:560px}
.market-intro p{font-size:14px;line-height:1.75;color:#eef1f5;margin:0;max-width:580px}
.market-intro-credit{position:absolute;bottom:12px;inset-inline-end:16px;font-size:10px;text-decoration:none;color:#fff;background:#17243b80;padding:3px 7px;border-radius:4px}.market-intro-credit:hover{text-decoration:underline}
html[dir=rtl] .market-intro:before{background:linear-gradient(270deg,rgba(15,25,37,.92),rgba(15,25,37,.78) 45%,rgba(15,25,37,.12))}
@media(max-width:700px){
 :root{--panel-space:16px}
 main,main:has(> #market:not([hidden])){padding-top:20px;padding-bottom:28px}
 :is(.my-deals-heading,.deal-intro,.vin-heading,.history-heading,.removed-heading,.customs-heading) h2,#priceHistory .history-heading h2,#removedListings .removed-heading h2,#damageAnalysis h2{font-size:23px}
 :is(.deal-layout,.customs-layout,.vin-empty-grid){gap:16px}
 #market .search-fields :is(input:not([type=checkbox]),select),#deal .deal-fields :is(input,select),#customsRoot .customs-form :is(input:not([type=checkbox]):not([type=radio]),select),#priceHistory select,#removedListings .removed-filter select,#myDeals .my-deal :is(input:not([type=checkbox]),select){font-size:16px}
 #market .catalog-trigger{font-size:13px;padding-inline:9px}
 #market .search-fields{gap:14px}
 #removedListings .removed-toolbar .removed-stats{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:16px;justify-content:normal}
 #removedListings .removed-stats>div{min-width:0}#removedListings .removed-stats>div+div{padding-inline-start:16px}
 #removedListings .removed-stats dt{font-size:11px}
 #priceHistory .history-kpi strong,.my-deals-kpis strong,.removed-stats dd{font-size:24px}
 #myDeals .my-deal{padding:16px!important}.vin-empty-grid .card{padding:16px}
 .market-intro{padding:24px 20px 42px;min-height:280px;margin-bottom:20px}
 .market-intro:before,html[dir=rtl] .market-intro:before{background:linear-gradient(90deg,#0f1925e8,#0f1925a6)}
 .market-intro p{font-size:13px;line-height:1.7}.market-intro-copy{padding:0}.market-intro-kicker{font-size:11px}
 .customs-form .customs-fields{gap:14px 10px}.customs-heading{gap:12px}
}
/* The private administration page uses the same scale and surfaces. */
body.admin-page{font:14px/1.55 system-ui,sans-serif;color:var(--ink)}
.admin-page main{width:min(100%,1280px);max-width:none;margin:auto;padding:24px var(--gutter,40px)}
.admin-page h1{font-size:26px;font-weight:650;letter-spacing:-.025em}.admin-page h2{font-size:18px;font-weight:650}
.admin-page section{padding:24px;border:1px solid var(--line);border-radius:12px;margin:20px 0}
.admin-page label{font-size:12px;font-weight:600;color:var(--subtle)}
.admin-page input,.admin-page button{height:44px;border-radius:8px;border-color:var(--line);font-size:14px;color:var(--ink)}
.admin-page button{font-weight:600;background:var(--surface-soft)}.admin-page #filters button{background:var(--accent);color:white;border-color:transparent;align-self:end}
.admin-page .summary{gap:16px}.admin-page .summary article{background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;padding:18px}
.admin-page .summary b{font-size:28px;font-weight:650}.admin-page .muted{font-size:12px;color:var(--subtle);line-height:1.6}
.admin-page :is(td,th){font-size:12px;padding:12px 14px}.admin-page th{font-weight:600;color:var(--subtle);background:var(--surface-soft)}
@media(max-width:700px){.admin-page main{padding:20px 16px}.admin-page section{padding:16px}.admin-page h1{font-size:23px}.admin-page .filters{display:grid;grid-template-columns:1fr 1fr;width:100%}.admin-page .filters label{min-width:0}.admin-page input{min-width:0;width:100%;font-size:16px}.admin-page .filters button{grid-column:1/-1}.admin-page .summary{display:grid;grid-template-columns:1fr 1fr}.admin-page .summary article{min-width:0;padding:14px}.admin-page .summary b{font-size:24px}}
/* Preserve the existing brand appearance; only add its home link. */
.brand-home{display:block;width:fit-content;color:#17243b}
.brand-home:hover{color:#17243b}.brand-tagline{color:#52637a}
@media(max-width:540px){.brand-home{margin-inline:auto}}
main>section#priceHistory>.card,main>section#removedListings>.card,main>section#vinProduction>.card{padding:var(--panel-space);border-radius:var(--radius-panel)}
.admin-page{--accent:#be2632;--accent-light:#fff0f1}
/* Compact introduction keeps vehicle selection close to the top. */
.market-intro{min-height:210px;padding:24px 28px;margin-bottom:20px}
.market-intro-copy{max-width:720px;padding-bottom:8px}
.market-intro-kicker{margin-bottom:9px}
#market .market-intro h2{font-size:30px;margin-bottom:12px;max-width:680px}
.market-intro p{max-width:680px;font-size:13px;line-height:1.65}
@media(max-width:700px){.market-intro{min-height:0;padding:20px 18px 38px;margin-bottom:16px}.market-intro-copy{padding:0}#market .market-intro h2{font-size:25px;line-height:1.22;margin-bottom:10px}.market-intro-kicker{font-size:10px;margin-bottom:8px}.market-intro p{font-size:12px;line-height:1.6}}
.market-intro-copy{padding-bottom:0}
@media(max-width:700px){.market-intro{padding-bottom:20px}}
/* Full-width market banner, with text aligned to the site's content grid. */
#market .market-intro{width:auto;margin-inline:calc(50% - 50vw);border-radius:0;padding-inline:max(var(--gutter),calc((100vw - 1200px)/2))}
/* Blend the full-width introduction into the page instead of a dark divider. */
main:has(> #market:not([hidden])){padding-top:0}
#market .market-intro{min-height:230px;margin-bottom:0;padding-block:32px 42px;background:#f5f5f6;color:var(--ink)}
#market .market-intro>img{opacity:.8;filter:saturate(.75);object-position:center 58%}
#market .market-intro:before{background:linear-gradient(0deg,#f5f5f6 0%,#f5f5f600 36%),linear-gradient(90deg,#f5f5f6 0%,#f5f5f6f5 29%,#f5f5f6d9 49%,#f5f5f62e 83%),linear-gradient(180deg,#f5f5f699,#f5f5f600 25%)}
#market .market-intro h2{color:var(--ink)}
#market .market-intro p{color:#465363;max-width:610px}
html[dir=rtl] #market .market-intro:before{background:linear-gradient(0deg,#f5f5f6 0%,#f5f5f600 36%),linear-gradient(270deg,#f5f5f6 0%,#f5f5f6f5 29%,#f5f5f6d9 49%,#f5f5f62e 83%),linear-gradient(180deg,#f5f5f699,#f5f5f600 25%)}
@media(max-width:700px){
 #market .market-intro{min-height:0;padding-block:26px 30px}
 #market .market-intro>img{opacity:.42;object-position:65% center}
 #market .market-intro:before,html[dir=rtl] #market .market-intro:before{background:linear-gradient(0deg,#f5f5f6,#f5f5f670 70%,#f5f5f6b3),linear-gradient(90deg,#f5f5f6eb,#f5f5f699)}
 #market .market-intro p{color:#465363}
}
