/* Production motion workspace: same service controls, live ads, no demo data. */
body.market-dashboard{--rail:220px;--accent:#f29a5a;--accent-fill:linear-gradient(130deg,#f6b987,#f29a5a);height:100dvh;overflow:hidden}
body.market-dashboard main{min-width:0;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#65747b #172127;isolation:isolate}
body.market-dashboard .header nav{gap:3px}
body.market-dashboard .header nav :is(button,a){transition:background .18s,color .18s,transform .18s;text-decoration:none;flex-shrink:0}
body.market-dashboard .header nav .nav-button.active{background:#f29a5a;color:#1b252b;box-shadow:0 5px 20px #f29a5a30;border-color:#f6b987}
body.market-dashboard .header nav .nav-button:hover{transform:translateX(2px)}
body.market-dashboard .dashboard-nav-only{display:flex}
.motion-sidefoot{border-top:1px solid #5261686b;margin-top:12px;padding-top:10px}
.motion-company{display:block;padding:14px 10px;color:#8fa2aa;font-size:10px;letter-spacing:.2px}
.motion-sound{color:#f6b987!important}
.motion-sound.is-muted{color:#99a8ae!important}
.motion-sound small{margin-inline-start:auto;font-size:10px}
.motion-category-cover{display:none;border:1px solid #53636a;border-radius:12px;background:linear-gradient(120deg,#293940,#18242b);position:relative;overflow:hidden;min-height:190px;margin:24px auto 0;align-items:center;padding:25px 30px;isolation:isolate}
.motion-category-cover>div{position:relative;z-index:1;max-width:68%}
.motion-category-cover h1{font-size:clamp(24px,3vw,38px);line-height:1.4;margin:8px 0;color:#f4f5f4}
.motion-category-cover p{font-size:13px;color:#c2d0d4;line-height:1.8}
.motion-category-cover .eyebrow{color:#f6b987;letter-spacing:2px;font-size:11px}
.motion-category-cover>img{position:absolute;inset-block:0;inset-inline-end:0;width:51%;height:100%;object-fit:cover;opacity:.65;mask-image:linear-gradient(90deg,transparent,#000 65%)}
[dir=rtl] .motion-category-cover>img{mask-image:linear-gradient(270deg,transparent,#000 65%)}
body.market-dashboard[data-nms-scene=home] :is(#browse,#market,#ai-search,.sell-banner,.steps){display:none!important}
body.market-dashboard[data-nms-scene=market] :is(.market-overview,#country-welcome,#recruitment-banner,#ai-search,.sell-banner,.steps){display:none!important}
body.market-dashboard[data-nms-scene=category] :is(.market-overview,.categories-section,#country-welcome,#recruitment-banner,#ai-search,.sell-banner,.steps){display:none!important}
body.market-dashboard[data-nms-scene=category] .motion-category-cover{display:flex}
body.market-dashboard[data-nms-scene=ai] :is(.market-overview,.categories-section,#country-welcome,#recruitment-banner,#browse,.sell-banner,.steps){display:none!important}
body.market-dashboard[data-nms-scene=ai] #ai-search{display:grid!important;margin-top:24px}
body.market-dashboard[data-nms-scene=home] :is(.market-overview,.categories-section){display:grid!important}
body.market-dashboard[data-nms-scene=home] .categories-section{display:block!important}
body.market-dashboard[data-nms-scene=market] .categories-section{display:block!important}
body.market-dashboard :is(.browse-section,.market){padding-top:24px}
body.market-dashboard main>footer{margin-top:26px}
body.market-dashboard .header-actions{gap:6px}
#motion-menu,.motion-scrim{display:none}
@media(min-width:980px){
 body.market-dashboard{grid-template-rows:57px minmax(0,1fr)}
 body.market-dashboard>main{grid-row:2;grid-column:1/-1;height:100%;overflow:auto;scroll-padding-top:20px}
 body.market-dashboard .header nav{inset-block-end:12px;scrollbar-width:thin}
 body.market-dashboard .header .brand{max-width:190px}
 body.market-dashboard .header nav :is(.nav-button,.ai-nav-link){width:100%;text-align:start;min-height:42px}
 body.market-dashboard .market-overview{grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr)}
 body.market-dashboard .categories-section .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.market-dashboard .header-actions .primary{white-space:nowrap}
}
@media(max-width:979px){
 body.market-dashboard{display:block;margin:0;--gutter:15px}
 body.market-dashboard .header{height:58px;position:relative;z-index:55}
 body.market-dashboard .header-inner{display:flex;height:58px;padding:0;width:calc(100% - 22px);justify-content:space-between}
 body.market-dashboard .header-actions{display:flex;padding:0;background:none}
 body.market-dashboard .header nav{position:fixed;inset-block:0;inset-inline-start:0;width:260px;max-width:82vw;z-index:100;display:flex;flex-direction:column;overflow:auto;background:#172127;border-inline-end:1px solid #526168;padding:75px 14px 20px;transform:translateX(-105%);visibility:hidden;transition:transform .24s,visibility .24s;box-shadow:10px 0 45px #0007}
 [dir=rtl] body.market-dashboard .header nav{transform:translateX(105%)}
 body.market-dashboard.motion-menu-open .header nav{transform:translateX(0);visibility:visible}
 body.market-dashboard .header nav :is(.nav-button,.ai-nav-link){width:100%;font-size:13px;min-height:44px;gap:12px;white-space:normal}
 body.market-dashboard .header nav .dashboard-nav-icon{width:19px;height:19px}
 body.market-dashboard #motion-menu{display:inline-flex;align-items:center;justify-content:center;z-index:101;position:relative}
 body.market-dashboard.motion-menu-open #motion-menu{position:fixed;inset-inline-start:18px;top:14px;background:#34434c;width:35px;height:35px;color:white}
 body.market-dashboard .motion-scrim{display:block;position:fixed;inset:0;z-index:50;background:#0009;border:0;opacity:0;visibility:hidden;transition:opacity .24s,visibility .24s}
 body.market-dashboard.motion-menu-open .motion-scrim{opacity:1;visibility:visible}
 body.market-dashboard .country-bar{height:49px;position:relative;z-index:45}
 body.market-dashboard .country-bar-inner{min-height:49px;padding:5px 0;flex-wrap:nowrap}
 body.market-dashboard :is(.country-mode-copy,.country-scope){display:none}
 body.market-dashboard .country-shortcuts #country-auto{font-size:9px;max-width:155px}
 body.market-dashboard>main{height:calc(100dvh - 107px);overflow:auto;scroll-padding-top:15px}
 .motion-category-cover{min-height:150px;padding:20px;margin-top:15px}
 .motion-category-cover>div{max-width:85%}
 body.market-dashboard .nms-wordmark{font-size:16px}
 body.market-dashboard .nms-logo-frame{width:36px;height:36px}
 body.market-dashboard .header .brand{gap:6px}
 body.market-dashboard .header .primary{font-size:10px;padding:7px 8px}
 body.market-dashboard .header .language-switch{padding:4px 5px}
}
@media(max-width:420px){body.market-dashboard .header .nms-wordmark{display:none}body.market-dashboard .header-actions{gap:4px}body.market-dashboard .header-actions .primary{font-size:10px}body.market-dashboard .market-overview{margin-top:12px}}
@media(prefers-reduced-motion:reduce){body.market-dashboard *{scroll-behavior:auto!important}.motion-scrim,body.market-dashboard .header nav{transition:none!important}body.market-dashboard .header nav .nav-button:hover{transform:none}}
/* A filtered ancestor creates a containing block for fixed descendants.
   On phones the drawer must be fixed to the viewport, not the 58px header. */
@media(max-width:979px){
 body.market-dashboard .header,body.market-dashboard .header-inner{backdrop-filter:none;-webkit-backdrop-filter:none;filter:none;transform:none;contain:none;overflow:visible}
 body.market-dashboard .header nav{height:100vh;height:100dvh;max-height:100dvh;inset-block:0 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(24px,env(safe-area-inset-bottom))}
 body.market-dashboard #motion-menu>span{position:static;display:block;background:none;color:inherit;font-size:23px;line-height:1;min-width:0;border-radius:0}
}
