/* The public market uses the same controls and listings in a dashboard layout. */
.dashboard-nav-icon,.dashboard-nav-only{display:none}
.market-dashboard{
  --canvas:#171d22;
  --surface:#242c32;
  --edge:#d5e0e426;
  --accent:#ffaf74;
  --accent-fill:linear-gradient(155deg,#ffbd8c,var(--accent) 65%,#f18e53);
  --ink:#f4f4f2;
  --muted:#b6c0c5;
  --line:var(--edge);
  --green:#ffaf74;
  --green-light:#ffd1ad;
  --nms-accent:#ffaf74;
  --nms-turquoise:#afd3ca;
  --rail:188px;
  --gutter:24px;
  background:
    linear-gradient(180deg,#171d2280 0%,#171d22e0 56%,var(--canvas) 100%) fixed,
    radial-gradient(ellipse at 50% 33%,#56696b 0%,#303e45 36%,#151b21 78%) fixed;
  color:var(--ink);
}
.market-dashboard .container{width:calc(100% - var(--gutter)*2);max-width:1560px}
.market-dashboard :is(button,a,input,select,textarea):focus-visible{outline-color:#ffd1ad}
.market-dashboard .header{
  background:#1e262dee;
  border-color:var(--edge);
  color:var(--ink);
  margin:0;
  width:auto;
  border-radius:0;
  top:0;
  box-shadow:none;
}
.market-dashboard :is(.header-panorama,.header-drive){display:none!important}
.market-dashboard .header nav{
  display:flex;
  gap:5px;
  align-items:stretch;
  scrollbar-width:thin;
}
.market-dashboard .header nav :is(.nav-button,.ai-nav-link){
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:42px;
  padding:9px 11px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  text-align:start;
  color:#d2dadd;
  font-size:12px;
  line-height:1.35;
}
.market-dashboard .header nav .nav-button::after{display:none}
.market-dashboard .dashboard-nav-icon{display:block;width:17px;height:17px;flex:none}
.market-dashboard .header nav :is(.nav-button,.ai-nav-link):hover{
  border-color:var(--edge);
  background:#ffffff0c;
  color:#fff;
}
.market-dashboard .header nav .nav-button.active{
  background:var(--accent-fill);
  border-color:#ffc596;
  color:#23160e;
  box-shadow:0 3px 13px #f7935430;
}
.market-dashboard .nms-wordmark small{color:#c5ced0}
.market-dashboard .nms-logo-frame{width:43px;height:43px}
.market-dashboard .nms-wordmark{font-size:20px}
.market-dashboard .header-actions{gap:7px}
.market-dashboard .header :is(.language-switch,.icon-button){
  background:#1d252c;
  border:1px solid var(--edge);
  color:#e2e7e7;
  border-radius:8px;
}
.market-dashboard .header :is(.icon-button,#account-button){width:35px;height:35px;padding:7px}
.market-dashboard .header .language-switch select option{background:#202930}
.market-dashboard :is(.primary,.ai-submit,.search-box .primary,.header .primary){
  background:var(--accent-fill);
  color:#21160f;
  border:1px solid #ffd0a5;
  border-radius:8px;
  box-shadow:0 3px 14px #f7935424;
}
.market-dashboard :is(.primary,.ai-submit):hover{background:#ffca9e;color:#21160f}
.market-dashboard .header .primary{min-height:36px;padding:7px 12px}
.market-dashboard .header .primary>span{font-family:Arial,sans-serif}
.market-dashboard .country-bar{
  background:#20282ff0;
  color:var(--muted);
  border-color:var(--edge);
  box-shadow:0 4px 16px #0c111725;
}
.market-dashboard .country-bar-inner{gap:8px 16px;min-height:57px}
.market-dashboard .country-picker button{
  background:#273138;
  border-color:var(--edge);
  color:#e5e9eb;
  min-height:35px;
  border-radius:8px;
}
.market-dashboard .country-options{background:#202a31;border-color:#56636a}
.market-dashboard .country-options button:is(:hover,[aria-pressed="true"]){
  background:#63432f;
  color:#fff3e6;
}
.market-dashboard :is(.country-scope,.country-mode-copy){color:var(--muted)}
.market-dashboard .country-shortcuts{margin-inline-start:0;width:auto}
.market-dashboard .country-shortcuts #country-auto{
  margin:0;
  min-height:35px;
  border-radius:8px;
  border:1px solid var(--edge);
  background:#263138;
  color:#e6eded;
  font-size:10px;
}
.market-dashboard .country-shortcuts #country-auto[aria-pressed="true"]{
  background:#36352f;
  border-color:#b78d6a66;
  color:#ffdabd;
}
.market-dashboard .market-overview{
  display:grid;
  grid-template-columns:minmax(0,2.35fr) minmax(240px,1fr);
  gap:14px;
  width:calc(100% - var(--gutter)*2);
  max-width:1560px;
  margin:var(--gutter) auto 0;
}
.market-dashboard .market-overview > *{margin:0;width:100%;min-width:0}
.market-dashboard[data-market-category] :is(
  .market-overview,.categories-section,.country-welcome,.recruitment-banner,.ai-search-panel:not(:target)
){display:none}
.market-dashboard .intelligent-hero{
  border:1px solid #b9c8cd4d;
  border-radius:13px;
  background:
    linear-gradient(0deg,#141b21 0%,#171d22f0 28%,#171d2266 100%),
    linear-gradient(90deg,#171d22b8,#171d2225 75%),
    url('/assets/category-hero.webp') center 46%/cover;
  padding:26px 25px 18px;
  box-shadow:0 12px 35px #0e131735;
}
[dir="rtl"] .market-dashboard .intelligent-hero{
  background:
    linear-gradient(0deg,#141b21 0%,#171d22f0 28%,#171d2266 100%),
    linear-gradient(270deg,#171d22b8,#171d2225 75%),
    url('/assets/category-hero.webp') center 46%/cover;
}
.market-dashboard .intelligent-hero::after,.market-dashboard .hero-scenes{display:none}
.market-dashboard .hero-content{width:100%;text-align:start}
.market-dashboard .intelligent-hero .eyebrow{color:#ffe4ce;justify-content:flex-start}
.market-dashboard .tiny-dot{background:var(--accent);box-shadow:0 0 10px #ffaf7477}
.market-dashboard .hero h1{
  font-size:clamp(28px,3.25vw,49px);
  color:#fff;
  line-height:1.19;
  max-width:19ch;
  margin:18px 0 12px;
  letter-spacing:normal;
  text-wrap:balance;
}
.market-dashboard .hero h1 span{color:#ffb985}
.market-dashboard .hero-content>p{
  color:#e2e7e7;
  font-size:13px;
  margin:0 0 24px;
  max-width:none;
}
.market-dashboard .intelligent-search{
  padding:7px;
  margin:0;
  border-radius:10px;
  background:#12191eb5;
  border-color:#e0e8eb38;
  backdrop-filter:blur(9px);
}
.market-dashboard .search-box{
  color:#e8edeb;
  min-height:50px;
  background:#2b363ddd;
  border:1px solid var(--edge);
  border-radius:8px;
  padding:5px;
}
.market-dashboard .search-box :is(input,.query-wrap svg,.location-wrap svg){color:#e5eeee}
.market-dashboard .search-box input::placeholder{color:#b9c8c9}
.market-dashboard .search-box .primary{min-height:38px;padding:7px 18px}
.market-dashboard .smart-shortcuts{justify-content:flex-start;padding:9px 4px 2px;gap:6px}
.market-dashboard .smart-search-link{color:#ffd8b8}
.market-dashboard .smart-search-link span{color:var(--accent)}
.market-dashboard .smart-shortcuts>button{border-color:var(--edge);background:#ffffff09;color:#d6e0df}
.market-dashboard .smart-shortcuts>button:hover{background:#ffffff19}
.market-dashboard .hero-assurance{margin-top:13px;justify-content:flex-start;gap:7px 16px;color:#c6d0d1}
.market-dashboard .hero-assurance span::before{color:#afd3ca}
.market-dashboard .directory-discovery{
  border:1px solid var(--edge);
  border-radius:13px;
  padding:17px 13px 13px;
  display:flex;
  flex-direction:column;
  background:linear-gradient(150deg,#3b484c9c,#20282ff0);
  box-shadow:0 12px 35px #0e131735;
}
.market-dashboard .directory-discovery .section-heading{margin:0 4px 12px}
.market-dashboard .directory-discovery .eyebrow{color:#ffca9e;font-size:10px}
.market-dashboard .directory-discovery .section-heading h2{font-size:17px;margin:4px 0 0;color:var(--ink)}
.market-dashboard .directory-discovery-grid{display:grid;grid-template-columns:1fr;grid-auto-rows:1fr;gap:8px;flex:1}
.market-dashboard .directory-discovery-card{
  border-radius:8px;
  border:1px solid var(--edge);
  background:#1e272de6;
  min-height:80px;
  gap:9px;
  padding-inline:0 8px;
}
.market-dashboard .directory-discovery-card>img{
  width:35%;
  height:100%;
  min-height:80px;
  mask-image:none;
}
[dir] .market-dashboard .directory-discovery-card>img{mask-image:none}
.market-dashboard .directory-discovery-card>span{gap:5px;padding-block:9px}
.market-dashboard .directory-discovery-card strong{font-size:13px;line-height:1.35}
.market-dashboard .directory-discovery-card small{font-size:10px;color:var(--muted);line-height:1.5}
.market-dashboard .directory-discovery-card b{color:var(--accent);padding:4px;font-size:16px}
.market-dashboard .directory-discovery-card:hover{border-color:var(--accent)}
.market-dashboard .categories-section{padding-block:23px}
.market-dashboard :is(.categories-heading h2,.section-heading h2){color:var(--ink);font-size:20px}
.market-dashboard .categories-heading>span{color:var(--muted)}
.market-dashboard .categories-section .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.market-dashboard .category-photo-card{
  background:#232d33;
  border:1px solid var(--edge);
  border-radius:10px;
}
.market-dashboard .category-photo-card>:is(img,.car-card-slides){aspect-ratio:1.54;background:#273237}
.market-dashboard .category-photo-card:hover{border-color:#eab18a;transform:translateY(-2px)}
.market-dashboard .category-photo-card.active{outline-color:var(--accent)}
.market-dashboard .category-photo-copy{
  background:linear-gradient(130deg,#2d373c,#202930);
  min-height:65px;
  padding:11px;
}
.market-dashboard .category-photo-copy>small{color:var(--muted)}
.market-dashboard .category-photo-copy>span{color:var(--accent)}
.market-dashboard :is(.listing-card,.browse-form,.filter-panel,.ai-search-panel,.sell-banner,.country-welcome,.recruitment-banner,.empty-state){
  background:linear-gradient(145deg,#303b42,#222a30);
  border-color:var(--edge);
  border-radius:12px;
}
.market-dashboard :is(.filter-panel,.browse-form) :is(input,select),.market-dashboard :is(.ai-form textarea,.market select){
  background:#1c242b;
  border-color:#647178;
  color:#f1f4f3;
}
.market-dashboard :is(.ai-panel-tag,.card-category,.card-price,.browse-heading .eyebrow,.market-heading .eyebrow){color:#ffc397}
.market-dashboard .tab.active{background:var(--accent);border-color:#ffc396;color:#21160f}
.market-dashboard dialog{--ink:#27354c;--muted:#57667f}
.market-dashboard footer{background:#141a1f;border-color:var(--edge)}
html:has(.market-dashboard){scroll-padding-top:126px}
@media(min-width:980px){
  html:has(.market-dashboard){scroll-padding-top:76px}
  .market-dashboard{
    margin-inline-start:var(--rail);
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
  }
  .market-dashboard > :is(main,footer,section:not(.country-bar)){grid-column:1/-1;min-width:0}
  .market-dashboard :is(.header,.header-inner){display:contents}
  .market-dashboard .header::before{
    content:"";
    position:fixed;
    z-index:34;
    inset-block:0;
    inset-inline-start:0;
    width:var(--rail);
    background:linear-gradient(180deg,#283239,#1a222a 46%,#151c23);
    border-inline-end:1px solid #a5b2bb30;
    box-shadow:10px 0 25px #080c1026;
  }
  .market-dashboard .header .brand{
    position:fixed;
    z-index:35;
    inset-block-start:14px;
    inset-inline-start:16px;
    max-width:calc(var(--rail) - 30px);
  }
  .market-dashboard .header nav{
    position:fixed;
    z-index:35;
    inset-block:76px 12px;
    inset-inline-start:9px;
    width:calc(var(--rail) - 18px);
    flex-direction:column;
    overflow:auto;
    padding:3px;
  }
  .market-dashboard .header nav .ai-nav-link{border-top-color:var(--edge);margin-top:8px}
  .market-dashboard .header-actions,.market-dashboard .country-bar{
    position:sticky;
    top:0;
    z-index:42;
    grid-row:1;
    min-height:57px;
    background:#20282ff5;
    border-bottom:1px solid var(--edge);
    backdrop-filter:blur(14px);
  }
  .market-dashboard .header-actions{
    grid-column:2;
    z-index:43;
    padding-inline:8px var(--gutter);
  }
  .market-dashboard .country-bar{grid-column:1;min-width:0}
  .market-dashboard .country-bar-inner{width:100%;padding-inline:var(--gutter) 8px;justify-content:flex-start}
  .market-dashboard .country-scope{margin-inline-end:auto}
  .market-dashboard .country-mode-copy{display:none}
}
@media (min-width:980px) and (max-width:1320px){
  .market-dashboard .country-scope{display:none}
}
@media(max-width:979px){
  .market-dashboard{--gutter:14px}
  .market-dashboard .header{height:auto}
  .market-dashboard .header-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:0 6px;
    padding-block-start:5px;
    margin-inline:auto;
  }
  .market-dashboard .header-actions{grid-area:1/2}
  .market-dashboard .header nav{
    grid-column:1/-1;
    padding-block:5px;
    overflow-x:auto;
  }
  .market-dashboard .header nav :is(.nav-button,.ai-nav-link){white-space:nowrap;min-height:38px;gap:6px}
  .market-dashboard .country-bar-inner{display:flex;justify-content:space-between}
  .market-dashboard .country-mode-copy{flex-basis:100%}
  .market-dashboard .dashboard-nav-icon{width:14px;height:14px}
}
@media(max-width:680px){
  .market-dashboard .market-overview{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
  .market-dashboard .intelligent-hero{padding:20px 14px 15px}
  .market-dashboard .categories-section .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .market-dashboard .directory-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .market-dashboard .directory-discovery-card>img{width:27%}
  .market-dashboard .directory-discovery-card small{display:none}
  .market-dashboard .country-bar-inner{min-height:45px}
}
@media(max-width:540px){
  .market-dashboard .header .primary{padding:5px 8px;min-width:36px}
  .market-dashboard .header :is(.icon-button,#account-button){width:30px;height:33px}
  .market-dashboard .header .nms-wordmark{font-size:16px}
  .market-dashboard .smart-search-link{flex-basis:auto}
  .market-dashboard .directory-discovery-card{gap:5px;padding-inline-end:4px}
  .market-dashboard .directory-discovery-card strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .market-dashboard .category-photo-card:hover{transform:none}
}
