:root{--cl-chrome-bg:#ffffff;--cl-chrome-soft:#f4f5f7;--cl-chrome-fg:#263142;--cl-chrome-muted:#657184;--cl-chrome-border:#e0e5ec;--cl-chrome-active:#edf0f4;--cl-chrome-primary:#253044;--cl-chrome-on-primary:#ffffff;--cl-system-surface:#ffffff}
html[data-theme="dark"]{--cl-chrome-bg:#11151c;--cl-chrome-soft:#191e27;--cl-chrome-fg:#edf1f7;--cl-chrome-muted:#a5afbe;--cl-chrome-border:#2b3340;--cl-chrome-active:#252d39;--cl-chrome-primary:#e8edf4;--cl-chrome-on-primary:#11151c;--cl-system-surface:#07090c}
html[data-theme] body .cl-mobile-nav{background:var(--cl-chrome-bg)!important;border-color:var(--cl-chrome-border)!important;box-shadow:0 6px 24px #00000012!important}
html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item{color:var(--cl-chrome-muted)!important;-webkit-text-fill-color:currentColor!important;background:transparent!important}
html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item[aria-current="page"]{background:var(--cl-chrome-active)!important;color:var(--cl-chrome-fg)!important}
html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item--publish,html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item--publish[aria-current="page"]{background:var(--cl-chrome-primary)!important;color:var(--cl-chrome-on-primary)!important;-webkit-text-fill-color:var(--cl-chrome-on-primary)!important;box-shadow:none!important}
html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item--publish :is(span,svg){color:var(--cl-chrome-on-primary)!important;-webkit-text-fill-color:var(--cl-chrome-on-primary)!important;stroke:currentColor!important}
html[data-theme] body #preference-controls.preference-controls{background:var(--cl-chrome-bg)!important;color:var(--cl-chrome-fg)!important;border-color:var(--cl-chrome-border)!important}
html[data-theme] body #preference-controls .preference-controls__button{color:var(--cl-chrome-fg)!important;background:transparent!important}
html[data-theme="dark"] body.cl-marketplace .hero-panel{background:#11161e!important;background-image:none!important;border-color:var(--cl-chrome-border)!important;box-shadow:none!important}
@media(max-width:980px){
 html[data-native-app] body{--mobile-safe-bottom:max(18px,env(safe-area-inset-bottom,0px),var(--cl-native-bottom,0px))}
 html body #preference-controls.preference-controls{bottom:calc(max(env(safe-area-inset-bottom,0px),var(--cl-native-bottom,0px)) + 92px)!important}
 html[data-theme] body.cl-marketplace .site-header{background:var(--cl-chrome-bg)!important;border-color:var(--cl-chrome-border)!important}
 html[data-theme] body.cl-marketplace .site-header :is(.mobile-session-button,.menu-toggle,.cl-notification-trigger,.search-bar--mobile){background:var(--cl-chrome-soft)!important;border-color:var(--cl-chrome-border)!important;color:var(--cl-chrome-fg)!important}
 html[data-theme] body.cl-marketplace .site-header .search-bar--mobile .search-submit{background:var(--cl-chrome-primary)!important;color:var(--cl-chrome-on-primary)!important}
 html[data-theme] body.cl-marketplace .site-header :is(.mobile-session-button,.menu-toggle,.cl-notification-trigger) :is(span,svg){color:var(--cl-chrome-fg)!important;stroke:currentColor!important}
 html[data-theme] body.cl-marketplace .site-header .search-bar--mobile .search-submit svg{color:var(--cl-chrome-on-primary)!important;stroke:currentColor!important}
 html body[data-mobile-nav="true"]::after,html[data-native-app] body::after{content:"";position:fixed;left:0;right:0;bottom:0;height:max(18px,env(safe-area-inset-bottom,0px),var(--cl-native-bottom,0px));background:var(--cl-system-surface);pointer-events:none;z-index:119}
}

/* Shared placement also overrides the auth page's former in-flow toolbar. */
html[data-theme] body #preference-controls.preference-controls{position:fixed!important;inset:auto max(14px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:3px!important;gap:2px!important;z-index:950!important;transform:none!important;opacity:1!important;visibility:visible!important;border-radius:15px!important}
html[data-theme] body #preference-controls .preference-controls__button{min-width:40px!important;min-height:38px!important;padding:6px 8px!important}
html[data-theme] body #preference-controls .preference-controls__theme-label{display:none!important}
html[data-theme="dark"] body.wanted-page .wanted-header{background:#07090c!important;border-bottom-color:#252a32!important}
@media(max-width:980px){
 html[data-theme] body[data-mobile-nav="true"] #preference-controls.preference-controls{bottom:calc(max(env(safe-area-inset-bottom,0px),var(--cl-native-bottom,0px)) + 92px)!important}
 html[data-theme] body.cl-marketplace .site-header .header-actions--mobile{min-width:0!important;gap:6px!important}
 html[data-theme] body.cl-marketplace .site-header .mobile-session-button{display:flex!important;flex:0 0 94px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:94px!important;min-width:94px!important;height:52px!important;min-height:52px!important;padding:6px!important;border:0!important;border-radius:14px!important;font-size:11px!important;line-height:1.1!important}
 html[data-theme] body.cl-marketplace .site-header .mobile-session-button .icon{display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;min-height:16px!important}
 html[data-theme] body.cl-marketplace .site-header .mobile-session-button span{display:block!important;max-width:82px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.2!important}
}
@media(max-width:600px){
}

@media(max-width:980px){
 html[data-theme],html[data-theme] body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:clip!important}
 html[data-theme] body.cl-marketplace .site-header .header-actions-wrap,html[data-theme] body.cl-marketplace .site-header .header-actions--mobile{min-width:0!important}
 html[data-theme] body.cl-marketplace .site-header .cl-notification-trigger{flex:0 0 40px!important;min-width:40px!important;width:40px!important}
 html[data-theme] body.cl-marketplace .site-header .menu-toggle{flex:0 0 40px!important;min-width:40px!important;width:40px!important}
}

/* Phone density: keep the existing page order, color palette and components. */
@media(max-width:700px){
 html[data-theme] body{--mobile-nav-height:64px;font-size:14px}
 html[data-theme] body.cl-marketplace .site-header .header-top{padding-block:6px!important}
 html[data-theme] body.cl-marketplace .site-header .mobile-session-button{height:46px!important;min-height:46px!important}
 html[data-theme] body.cl-marketplace .site-header .brand--mobile{height:40px!important;min-height:40px!important;padding-block:4px!important}
 html[data-theme] body.cl-marketplace .site-header .search-bar--mobile{height:44px!important;min-height:44px!important;margin-bottom:8px!important}
 html[data-theme] body.cl-marketplace .site-header .search-bar--mobile .search-submit{height:38px!important;width:38px!important;flex-basis:38px!important}
 html[data-theme] body.cl-marketplace .hero-panel{padding:20px 18px 16px!important;gap:16px!important;border-radius:20px!important}
 html[data-theme] body.cl-marketplace .hero-copy h1{font-size:clamp(25px,6.7vw,30px)!important;line-height:1.1!important}
 html[data-theme] body.cl-marketplace .hero-copy>p{font-size:14px!important;line-height:1.5!important;margin:12px 0 16px!important}
 html[data-theme] body.cl-marketplace .hero-copy .hero-cta-row{gap:10px!important}
 html[data-theme] body.cl-marketplace .hero-copy .cta-button{min-height:44px!important;padding:11px 16px!important;font-size:14px!important;border-radius:12px!important}
 html[data-theme] body.cl-marketplace .hero-copy .text-link{font-size:12px!important;line-height:1.5!important}
 html[data-theme] body.cl-marketplace .hero-collage.hero-collage--single{max-height:148px!important}
 html[data-theme] body.cl-marketplace .hero-collage.hero-collage--single img{width:100%!important;max-height:148px!important;object-fit:contain!important}
 html[data-theme] body.cl-marketplace .section-heading h2{font-size:22px!important;line-height:1.2!important}
 html[data-theme] body.cl-marketplace .section-heading{gap:8px!important;margin-bottom:14px!important}
 html[data-theme] body.cl-marketplace .section-kicker{font-size:10px!important;letter-spacing:.14em!important}
 html[data-theme] body.cl-marketplace :is(.home-category-nav,.filter-bar){padding:12px!important;border-radius:16px!important}
 html[data-theme] body.cl-marketplace .condition-pills{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important;gap:6px!important}
 html[data-theme] body.cl-marketplace .condition-pill{flex:0 0 auto!important;min-height:44px!important;font-size:12px!important;padding:8px 12px!important}
 html[data-theme] body.cl-marketplace .empty-state{padding:24px 16px!important;min-height:0!important;border-radius:18px!important}
 html[data-theme] body.cl-marketplace .empty-state h3{font-size:16px!important;line-height:1.4!important}
 html[data-theme] body.cl-marketplace .empty-state p{font-size:13px!important;line-height:1.5!important}
 html[data-theme] body .cl-mobile-nav{min-height:64px!important;padding:4px 6px!important;border-radius:20px!important}
 html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item{min-height:48px!important;padding:5px 1px!important;gap:3px!important}
 html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item svg{width:21px!important;height:21px!important}
 html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item span{font-size:10px!important;line-height:1.2!important}
 html[data-theme] body .cl-mobile-nav .cl-mobile-nav__item--publish{min-height:52px!important;height:52px!important;width:52px!important;border-radius:15px!important}
 html[data-theme] body[data-mobile-nav="true"] #preference-controls.preference-controls{bottom:calc(max(env(safe-area-inset-bottom,0px),var(--cl-native-bottom,0px)) + 84px)!important}
 html[data-theme] body.mobile-favorites .favorites-header__inner{min-height:54px!important;padding-block:6px!important}
 html[data-theme] body.mobile-favorites .favorites-brand{min-height:38px!important;padding:4px 7px!important;border-radius:10px!important;box-shadow:none!important}
 html[data-theme] body.mobile-favorites .favorites-brand img{width:124px!important;height:30px!important;max-height:30px!important}
 html[data-theme] body.mobile-favorites .favorites-main{padding-top:18px!important}
 html[data-theme] body.mobile-favorites .favorites-hero{gap:12px!important;margin-bottom:14px!important}
 html[data-theme] body.mobile-favorites .favorites-kicker{font-size:10px!important;margin-bottom:6px!important;letter-spacing:.14em!important}
 html[data-theme] body.mobile-favorites .favorites-hero h1{font-size:26px!important;line-height:1.15!important;margin:0!important}
 html[data-theme] body.mobile-favorites .favorites-hero p:not(.favorites-kicker){font-size:14px!important;line-height:1.5!important;margin-top:10px!important}
 html[data-theme] body.mobile-favorites .favorites-total{display:flex!important;align-items:baseline!important;gap:8px!important;width:100%!important;padding:10px 14px!important;min-height:44px!important;border-radius:14px!important}
 html[data-theme] body.mobile-favorites .favorites-total strong{font-size:21px!important;line-height:1.2!important}
 html[data-theme] body.mobile-favorites .favorites-total span{font-size:12px!important;margin:0!important}
 html[data-theme] body.mobile-favorites .favorites-collections{gap:10px!important;padding:14px!important;margin-bottom:14px!important;border-radius:16px!important}
 html[data-theme] body.mobile-favorites .favorites-collections strong{font-size:14px!important}
 html[data-theme] body.mobile-favorites .new-collection,html[data-theme] body.mobile-favorites .collection-tabs button{font-size:12px!important;min-height:44px!important;padding:8px 12px!important}
 html[data-theme] body.mobile-favorites .favorites-toolbar{padding:12px!important;gap:10px!important;margin-top:14px!important;border-radius:16px!important}
 html[data-theme] body.mobile-favorites .favorites-search{min-height:44px!important;padding-inline:12px!important;border-radius:12px!important}
 html[data-theme] body.mobile-favorites .favorites-sort{gap:6px!important;font-size:12px!important}
 html[data-theme] body.mobile-favorites .favorites-sort select{min-height:44px!important;font-size:16px!important;padding-block:8px!important;border-radius:12px!important}
 html[data-theme] body.mobile-favorites :is(.favorites-empty,.favorites-error){padding:24px 16px!important;min-height:0!important;border-radius:18px!important}
 html[data-theme] body.mobile-favorites :is(.favorites-empty,.favorites-error) h2{font-size:18px!important}
 html[data-theme] body.wanted-page .wanted-shell{margin-top:22px!important}
 html[data-theme] body.wanted-page .wanted-hero h1{font-size:28px!important;line-height:1.15!important}
 html[data-theme] body.wanted-page :is(.wanted-create,.wanted-feed){padding:18px 16px!important}
 html[data-theme] body.wanted-page .wanted-card h2{font-size:22px!important}
 html[data-theme] body.publish-body .page-intro h1,html[data-theme] body.mobile-profile .content-header h1{font-size:26px!important;line-height:1.15!important}
 html[data-theme] body.publish-body .page-intro p,html[data-theme] body.mobile-profile .content-header p{font-size:14px!important;line-height:1.5!important}
 html[data-theme] body .product-card{border-radius:16px!important}
 html[data-theme] body .product-card :is(.product-info,.product-card__body){padding:12px!important}
 html[data-theme] body .product-card :is(.product-title,.product-card__title){font-size:14px!important;line-height:1.4!important}
}

@media(max-width:700px){
 html[data-theme] body.cl-marketplace .hero-section{padding:16px 0 20px!important}
 html[data-theme] body.cl-marketplace .products-section{padding-top:8px!important}
 html[data-theme] body.mobile-favorites .favorite-skeleton{background:var(--cl-chrome-soft)!important;min-height:220px!important;border-radius:16px!important}
}
