/* ADS BIZ MALL 2027: one-row filters, locale & country pickers, and paid ad placements. */
.brand-mark{background:none!important;box-shadow:none!important;border-radius:0!important;display:inline-flex!important;align-items:center;justify-content:center}
.brand-mark .brand-logo{width:43px;height:43px;display:block;filter:drop-shadow(0 6px 10px #bc14303d)}
.locale-switches{display:flex;align-items:center;gap:6px;min-width:0;margin-inline-start:auto}
.locale-select{max-width:112px;min-width:0;padding:8px 25px 8px 9px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:11px;font-weight:720;cursor:pointer;outline-offset:3px}
.locale-select.country-select{max-width:119px}.locale-go{border:0;color:var(--red);background:transparent;cursor:pointer;font-weight:800;padding:6px;font-size:11px}
.locale-note{font-size:10px;color:var(--muted);line-height:1.5}
/* A single horizontal toolbar at every width; on compact widths the bar scrolls, never stacks. */
.shell-center .inline-results-filter{overflow:visible}
.shell-center .inline-results-filter>summary{display:none}
.shell-center .filter-card,.shell-center .filter-card:not(:first-child){display:flex!important;flex-wrap:nowrap!important;align-items:end;gap:9px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;white-space:nowrap;padding:13px 14px!important;min-width:0;max-width:100%;border:0!important;border-radius:17px!important}
.shell-center .filter-card .field{min-width:124px;flex:0 0 124px;margin:0!important;display:flex;flex-direction:column;gap:5px}
.shell-center .filter-card .field:first-child{flex:1 0 164px;min-width:164px}
.shell-center .filter-card .field span{font-size:10px;font-weight:800;line-height:1.3;white-space:nowrap}
.shell-center .filter-card input,.shell-center .filter-card select{width:100%;max-width:100%;height:39px!important;min-height:39px;font-size:12px;border-radius:10px!important;margin:0!important}
.shell-center .filter-card .btn{flex:0 0 auto;min-height:39px;height:39px;width:auto!important;padding:0 15px;font-size:11px;align-self:end!important;white-space:nowrap}
.shell-center .inline-results-filter[open]{display:block}.shell-center .filter-card::-webkit-scrollbar{height:5px}.shell-center .filter-card::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px}
.ad-placement{border:1px solid var(--border);background:var(--surface);border-radius:18px;overflow:hidden;box-shadow:var(--panel-shadow);min-width:0}.ad-placement .ad-label{display:inline-flex;align-items:center;gap:5px;font-size:9px;letter-spacing:.08em;font-weight:850;text-transform:uppercase;color:var(--muted)}.ad-placement .ad-content{display:flex;align-items:center;gap:12px;padding:15px 17px;text-decoration:none;min-width:0;color:var(--text)}.ad-placement .ad-content:hover{background:var(--red-soft)}.ad-placement .ad-thumb{width:64px;height:64px;flex:0 0 64px;border-radius:11px;object-fit:cover;background:var(--red-soft)}.ad-placement .ad-body{min-width:0;flex:1}.ad-placement .ad-body strong{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.ad-placement .ad-body p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.ad-placement .ad-cta{font-weight:850;font-size:10px;color:var(--red);white-space:nowrap}.ad-placement .ad-header{padding:10px 17px 0}.ad-placement.ad-inline{margin:13px 0 20px}.ad-placement.ad-feed{margin:16px 0 20px}.ad-placement.ad-rail .ad-content{display:block}.ad-placement.ad-rail .ad-thumb{width:100%;height:135px;margin-bottom:9px}.ad-placement.ad-rail .ad-cta{display:block;margin-top:10px}
.ad-admin-row{display:flex;gap:8px;align-items:center;justify-content:flex-end}.ad-status{display:inline-block;padding:5px 9px;background:var(--red-soft);color:var(--red);border-radius:99px;font-weight:800;font-size:11px}.ad-admin-row form{display:inline}.ad-admin-row button{cursor:pointer}
@media(max-width:1260px){.locale-switches{gap:3px}.locale-select{max-width:90px;padding:7px 18px 7px 7px}.locale-select.country-select{max-width:97px}.brand-words small{display:none}}
@media(max-width:950px){.nav-actions .top-quick-link{display:none}.nav-search{max-width:250px}}
@media(max-width:840px){.nav-search{max-width:none}.locale-select{max-width:93px}.locale-select.country-select{max-width:98px}}
@media(max-width:600px){.nav-shell{gap:6px!important}.locale-switches{margin-inline-start:auto;gap:3px}.locale-select{max-width:79px;min-width:0;padding:8px 17px 8px 5px;font-size:10px}.locale-select.country-select{max-width:81px}.locale-go{display:none}.nav-actions{margin-left:0!important}.nav-actions .nav-post{display:none!important} .nav-actions .profile-quick{display:none!important}.nav-actions .theme-switch{width:33px;height:33px}.brand-mark .brand-logo{width:35px;height:35px}.brand-words strong{font-size:12px!important;letter-spacing:-.04em}.shell-center .filter-card{padding:10px!important;gap:6px}.shell-center .filter-card .field{min-width:113px;flex-basis:113px}.shell-center .filter-card .field:first-child{min-width:153px;flex-basis:153px}.ad-placement .ad-content{padding:12px}.ad-placement .ad-header{padding:9px 12px 0}}
@media(max-width:390px){.brand-words strong{font-size:11px!important}.locale-select{max-width:68px}.locale-select.country-select{max-width:71px}.nav-actions .theme-switch{display:none!important}}
/* Prevent a horizontally scrollable toolbar from inflating the page itself. */
.shell-center .results-layout{min-width:0!important;max-width:100%;overflow:visible}
.shell-center .inline-results-filter{min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden!important;flex:0 1 auto}
.shell-center .inline-results-filter>.filter-card{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:auto!important}
.mobile-saved{display:none!important}
@media(max-width:600px){.mobile-saved{display:grid!important;place-items:center;width:32px;height:33px;min-width:32px}.locale-go{display:inline-flex!important;font-size:9px;padding:4px 2px}}
@media(max-width:390px){.mobile-saved{display:none!important}}
/* Compact phones retain useful Saved + Theme actions; creation stays only at the bottom. */
@media(max-width:390px){.brand-words{display:none!important}.mobile-saved{display:grid!important}.nav-actions .theme-switch{display:grid!important}.locale-go{display:none!important}.locale-select{max-width:74px!important}.locale-select.country-select{max-width:76px!important}.nav-shell{gap:5px!important}}

/* v1.0.4: balanced responsive controls rather than forced wide scrolling. */
.shell-center .inline-results-filter{container-type:inline-size;contain:layout inline-size;overflow:visible!important;max-width:100%;min-width:0}
.shell-center .inline-results-filter .filter-card,.shell-center .inline-results-filter .filter-card:not(:first-child){display:grid!important;grid-template-columns:minmax(135px,1.8fr) minmax(100px,1.1fr) minmax(98px,1fr) minmax(95px,1fr) minmax(98px,1fr) auto!important;gap:10px!important;align-items:end;overflow:visible!important;white-space:normal!important;max-width:100%!important;width:100%!important;box-sizing:border-box;padding:15px!important}
.shell-center .inline-results-filter .filter-card .field,.shell-center .inline-results-filter .filter-card .field:first-child{min-width:0!important;max-width:none!important;width:100%!important;flex:none!important;margin:0!important}
.shell-center .inline-results-filter .filter-card .field input,.shell-center .inline-results-filter .filter-card .field select{min-width:0!important;max-width:100%!important;font-size:12px}
.shell-center .inline-results-filter .filter-card .btn{min-width:74px;width:auto!important;padding:0 12px!important}
.interest-chip.active{background:var(--red);color:#fff!important;border-color:var(--red)}
.brand-mark .brand-logo{filter:drop-shadow(0 5px 9px #9f102b28)}
.theme-mode-icon{display:inline-flex;align-items:center;justify-content:center}
@container (max-width:690px){.shell-center .inline-results-filter .filter-card{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.shell-center .inline-results-filter .filter-card .field:first-child{grid-column:span 2}.shell-center .inline-results-filter .filter-card .field:nth-child(4){grid-column:span 2}.shell-center .inline-results-filter .filter-card .btn{grid-column:auto}}
@container (max-width:490px){.shell-center .inline-results-filter .filter-card{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:11px!important;gap:8px!important}.shell-center .inline-results-filter .filter-card .field:first-child,.shell-center .inline-results-filter .filter-card .btn{grid-column:span 2}.shell-center .inline-results-filter .filter-card .field:nth-child(4){grid-column:auto}.shell-center .inline-results-filter .filter-card .btn{width:100%!important}}
@media(max-width:390px){.nav-actions .theme-switch{display:grid!important}}

/* v1.0.5: only language is visible; region is selected automatically in the background. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.locale-switches .locale-select.language-select{max-width:128px;min-width:84px;font-size:12px;padding:8px 24px 8px 10px}
.locale-switches .locale-go{display:none!important}
.brand-mark{width:37px!important;height:37px!important;flex:0 0 37px}
.brand-mark .brand-logo{width:35px!important;height:35px!important;filter:none!important}
.mobile-saved{display:none!important}
.mobile-account{display:none!important}
@media(max-width:600px){
 .brand-words{display:flex!important}
 .brand-words strong{font-size:13px!important}
 .nav-actions .profile-quick{display:none!important}
 .nav-actions .theme-switch{display:grid!important;place-items:center!important;width:36px!important;height:36px!important}
 .nav-actions .mobile-account{display:grid!important;place-items:center!important;position:relative;width:38px!important;height:38px!important;flex:0 0 38px;border:1px solid var(--border);border-radius:13px}
 .mobile-account-gear{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--red);color:white;border:2px solid var(--surface)}
 .locale-switches{margin-left:auto;flex:0 0 auto}
 .locale-switches .locale-select.language-select{max-width:105px;min-width:78px;padding:7px 22px 7px 8px;font-size:11px}
 .nav-shell{gap:6px!important}
}
@media(max-width:390px){
 .brand-words{display:flex!important}
 .brand-words strong{font-size:12px!important}
 .brand-words small{display:none!important}
 .brand-mark{width:31px!important;height:31px!important;flex-basis:31px!important}
 .brand-mark .brand-logo{width:29px!important;height:29px!important}
 .locale-switches .locale-select.language-select{max-width:87px!important;min-width:70px!important}
 .nav-actions .theme-switch{width:33px!important;height:33px!important}
 .nav-actions .mobile-account{width:35px!important;height:35px!important;flex-basis:35px!important}
}
/* Fewer filter fields; keep a balanced responsive grid instead of long overflow. */
.shell-center .inline-results-filter .filter-card,.shell-center .inline-results-filter .filter-card:not(:first-child){grid-template-columns:minmax(150px,1.9fr) minmax(116px,1.15fr) minmax(120px,1.15fr) minmax(98px,0.9fr) auto!important}
@container (max-width:690px){.shell-center .inline-results-filter .filter-card{grid-template-columns:repeat(4,minmax(0,1fr))!important}.shell-center .inline-results-filter .filter-card .field:first-child{grid-column:span 2}.shell-center .inline-results-filter .filter-card .field:nth-child(4){grid-column:auto}}
@container (max-width:490px){.shell-center .inline-results-filter .filter-card{grid-template-columns:repeat(2,minmax(0,1fr))!important}.shell-center .inline-results-filter .filter-card .field:first-child,.shell-center .inline-results-filter .filter-card .btn{grid-column:span 2}}
/* Right-side account/settings drawer on phones, leaving the left sidebar untouched. */
.account-drawer{position:fixed;z-index:101;top:0;right:0;width:min(360px,91vw);height:100dvh;max-height:100dvh;background:var(--surface);border-left:1px solid var(--border);box-shadow:-16px 0 55px #0003;transform:translateX(110%);visibility:hidden;transition:transform .2s ease,visibility .2s;overflow:auto;overscroll-behavior:contain;padding:calc(21px + env(safe-area-inset-top)) 19px calc(25px + env(safe-area-inset-bottom));color:var(--text)}
.account-drawer.is-open{transform:translateX(0);visibility:visible}
.account-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:100;background:rgba(12,17,27,.54)}
.account-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
.account-drawer-head>div{display:flex;flex-direction:column;gap:4px}.account-drawer-head strong{font-size:19px}.drawer-eyebrow{color:var(--red);font-size:10px;font-weight:850;letter-spacing:.09em}
.account-drawer-who{display:flex;align-items:center;gap:13px;background:var(--bg);padding:15px;border:1px solid var(--border);border-radius:16px;margin-bottom:14px;min-width:0}.account-drawer-who>div{min-width:0;display:flex;flex-direction:column;gap:2px}.account-drawer-who strong,.account-drawer-who span{overflow-wrap:anywhere}.account-drawer-who span{font-size:12px;color:var(--muted)}
.account-drawer nav{display:grid;gap:4px}.account-drawer .drawer-link{display:flex;align-items:center;gap:13px;width:100%;min-height:44px;padding:11px 13px;border-radius:12px;color:var(--text);font-size:14px;font-weight:650;text-align:left;text-decoration:none;background:transparent;border:0;cursor:pointer}.account-drawer .drawer-link:hover,.account-drawer .drawer-link:focus-visible{background:var(--red-soft);color:var(--red)}
.account-logout{border-top:1px solid var(--border);margin-top:12px;padding-top:11px}
body.account-drawer-open{overflow:hidden}
@media(min-width:841px){.account-drawer,.account-backdrop{display:none!important}}
@media(prefers-reduced-motion:reduce){.account-drawer{transition:none}}
@media(max-width:350px){
 .nav-shell .brand-words{display:none!important}
 .nav-shell .brand{gap:0!important;flex:0 0 31px!important}
 .nav-shell .locale-switches{margin-left:auto!important}
 .nav-shell .nav-actions{gap:3px!important}
 .nav-shell .nav-actions .mobile-account{width:33px!important;flex-basis:33px!important}
}

/* ADSBIZMALL ACTIVE ICON CONTRAST FIX v1.0.5-P1 — only visual states. */
/* Filled-red active category: white text and white SVG; inactive remains red on light surface. */
.interest-chip.active,
.interest-chip.active:hover,
.interest-chip.active:focus-visible {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
.interest-chip.active svg,
.interest-chip.active:hover svg,
.interest-chip.active:focus-visible svg {
  color: #fff !important;
  stroke: currentColor !important;
}
/* Selected dark-background tab: use matching text and SVG foreground in both themes. */
.feed-tab.selected svg {
  color: inherit !important;
  stroke: currentColor !important;
}
/* Other filled active controls with icons. Never turn icons white on soft-red active sidebars. */
.admin-tabs a.active svg,
.bottom-nav .bottom-create svg,
.nav-actions .nav-post.btn-red svg {
  color: #fff !important;
  stroke: currentColor !important;
}
/* Red-soft sidebar selection intentionally keeps red icon for sufficient contrast. */
.shell-link.is-current svg { color: var(--red) !important; }


/* Single navigation entry on phones and tablets; same permissions and menu groups as desktop. */
@media(min-width:601px) and (max-width:840px){
 .nav-actions .profile-quick{display:none!important}
 .nav-actions .mobile-account{display:grid!important;place-items:center!important;position:relative;width:40px!important;height:40px!important;flex:0 0 40px;border:1px solid var(--border);border-radius:13px}
 .mobile-account-gear{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;border:2px solid var(--surface)}
}
.account-drawer .account-nav{display:block}
.account-drawer .account-nav .shell-group{margin-bottom:9px}
.account-drawer .account-nav .shell-group summary{min-height:39px;font-size:11px}
.account-drawer .account-nav .shell-link{min-height:43px;font-size:13px}
.account-drawer .account-nav .shell-group-links{gap:2px}
.account-drawer .account-nav a:focus-visible,.account-drawer .account-nav summary:focus-visible{outline:2px solid var(--red);outline-offset:2px}
