/* Additions for server-rendered states (flash messages, inline forms). Theme files stay unchanged. */
.flash{font-size:13px;line-height:1.5;padding:14px 16px;background:#eaf6ff;border:1px solid #b8d3ef;border-radius:9px;margin:0 0 20px;text-align:left;overflow-wrap:anywhere}
.flash.error{background:#fff4f3;border-color:#f3c2c2;color:#8a1c12}
.flash ul{margin:6px 0 0 18px;padding:0}
.auth-card .flash{margin:20px 0 0}
.auth-card input[type="checkbox"]{width:auto;flex:0 0 auto;padding:0}
.auth-card .check{margin-top:16px;align-items:center}
.auth-card .check input{margin:0}
.field-error{display:block;color:#b42318;font-size:12px;font-weight:500;margin-top:6px}
.inline-form{display:inline}
.header-actions .inline-form .text-button{font:inherit}
.sidebar-logout{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.sidebar-bottom form{margin:0}
.profile-hero img.avatar,img.app-avatar{object-fit:cover}
img.app-avatar{border-radius:50%}
.account-form input[type="file"]{max-width:100%}
.app-user-text{overflow-wrap:anywhere}
.save-button[disabled]{opacity:.6;cursor:default}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center}
.pagination [aria-current="page"]{font-weight:700}
.email-lock.unlocked span{color:#0b7a5c;font-weight:600}
.code-box{display:block;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;padding:12px 14px;background:#f4f7fb;border:1px solid #d7e2f0;border-radius:9px;overflow-wrap:anywhere;user-select:all}
.listing-status{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap;background:#eef2f7;color:#334155}
.listing-status.live{background:#e5f6ee;color:#0b6b4b}
.listing-status.pending{background:#fff6e0;color:#8a5a00}
.listing-status.changes{background:#fff0e6;color:#9a3c0c}
.listing-status.rejected{background:#ffeceb;color:#a1251b}
/* Link equivalents of theme button styles (server-side filters and pagination are plain links). */
.niche-chips a{padding:7px 14px;border-radius:20px;background:#5d7899;color:#fff;font-size:12px;font-weight:500;text-decoration:none;transition:background .2s}
.niche-chips a:hover{background:#41607f}
.niche-chips a[aria-pressed=true]{background:var(--blue)}
.niche-chips a[data-plan-niche],.niche-chips a[data-blog-cat]{background:#edf3fa;color:#44526a}
.niche-chips a[data-plan-niche]:hover,.niche-chips a[data-blog-cat]:hover{background:#dfe9f6}
.niche-chips a[data-plan-niche][aria-pressed=true],.niche-chips a[data-blog-cat][aria-pressed=true]{background:var(--blue);color:#fff}
.active-filters a{background:#e4eeff;color:var(--blue);padding:5px 10px;border-radius:20px;font-size:12px;text-decoration:none}
.active-filters a span{margin-left:3px;font-weight:700}
.pagination a{padding:8px 13px;background:#eaf3ff;border-radius:8px;text-decoration:none;color:inherit}
.pagination span{padding:8px 4px}
/* Dynamic blog media and formatted article content. */
.blog-image{margin:0;overflow:hidden;border-radius:18px;background:#edf3fb}.blog-image img{display:block;width:100%;height:auto;aspect-ratio:1.9;object-fit:cover}.blog-image.big img{max-height:560px}.blog-image figcaption{padding:10px 16px;font-size:13px;color:#52627a}.blog-body{min-width:0;overflow-wrap:anywhere}.blog-body img{max-width:100%;height:auto;border-radius:10px}.blog-body pre{padding:16px;border-radius:10px;background:#0c1730;color:#f0f5ff;overflow:auto}.blog-body table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.blog-body th,.blog-body td{padding:10px;border:1px solid #dbe3ee}.blog-body h3{scroll-margin-top:24px}
/* Account dashboard pages use the full width beside the sidebar (the theme capped them at 900–1480px). */
.app-page .account-content,
.app-page .account-content.dash-content,
.app-page .account-content.listing-content,
.app-page .account-content.profile-content,
.app-page .account-content.notif-content,
.app-page .settings-grid,
.app-page .profile-layout .account-form{max-width:none}
@media(min-width:1600px){.app-page .account-content{max-width:none}}
/* Credit pack picker (checkout). */
.credit-packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:14px}
.credit-pack{position:relative;display:block;cursor:pointer}
.credit-pack input{position:absolute;opacity:0;inset:0}
.credit-pack-body{display:grid;gap:4px;padding:16px;border:1.5px solid #d3dde9;border-radius:12px;background:#fff;text-align:center;transition:border-color .15s,box-shadow .15s}
.credit-pack-body b{font-size:15px;color:#0b3768}
.credit-pack-price{font-size:24px;font-weight:700;color:var(--blue,#0050d4)}
.credit-pack-body small{color:#64748b;font-size:12px}
.credit-pack input:checked+.credit-pack-body{border-color:var(--blue,#0050d4);box-shadow:0 0 0 3px #0050d41f;background:#f5f9ff}
.credit-pack input:focus-visible+.credit-pack-body{outline:2px solid var(--blue,#0050d4);outline-offset:2px}
/* Home page: "More categories" pill and unlocked rows. */
.cat-pills .cat-more{flex-shrink:0;display:flex}
.cat-pills .cat-more select{appearance:none;-webkit-appearance:none;padding:9px 34px 9px 16px;border-radius:30px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2306366a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;border:1px solid #d3e2f3;color:#06366a;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.cat-pills .cat-more select:hover{border-color:#0050d4}
.cat-pills .cat-more.is-active select{background-color:#0050d4;border-color:#0050d4;color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E")}
.pub-unlock.is-unlocked span{color:#0b6b4b;font-weight:600}

/* Flexible content must fit its grid track, including long domains and titles. */
.layout>*,.detail-grid>*,.field-grid>*,.cards-grid>*,.account-shell>*,.pub-body{min-width:0}
.pub-card .pub-logo .mono{width:100%;max-width:110px;height:auto;aspect-ratio:1;display:grid;place-items:center}
.pub-card .pub-logo{min-width:0;align-self:start}
.pub-card .pub-body{overflow-wrap:anywhere}
.pub-card .pub-side{min-width:0;max-width:100%}
.directory-hero .niche-chips a{flex:none;white-space:nowrap;display:inline-flex;align-items:center;background:#fff;color:var(--navy);border:1px solid #cfdeef;border-radius:22px}
.directory-hero .niche-chips a[aria-pressed=true]{background:var(--blue);color:#fff;border-color:var(--blue)}
.pagination{flex-wrap:wrap}
@media(max-width:780px){
  .app-page .sidebar nav{display:flex;flex-wrap:wrap;overflow:visible;gap:6px}
  .app-page .sidebar nav>a,.app-page .sidebar nav>form{flex:1 1 calc(50% - 6px);min-width:0;margin:0}
  .app-page .sidebar nav a{white-space:normal;min-height:44px}
  .app-page .sidebar-bottom{display:block;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
  .app-page .sidebar-logout{width:100%;min-height:44px;text-align:left}
}
@media(max-width:600px){
  .directory-hero .niche-chips{margin-right:0;max-width:100%;padding-bottom:8px}
  .pub-card,.article-content .pub-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
  .pub-card .pub-logo{width:52px}
  .pub-card .pub-logo .mono{font-size:22px;border-radius:12px}
  .pub-card .pub-side{grid-column:1;align-items:stretch;flex-direction:column}
  .pub-card .pub-head h3{font-size:18px}
  .pub-card .pub-line{font-size:13px;line-height:1.6;max-width:none}
  .pub-card .pub-actions{display:flex;flex-wrap:wrap;gap:8px}
  .pub-card .pub-actions>*{flex:1 1 auto;min-height:44px}
  .pub-card .email-lock{max-width:100%;flex-wrap:wrap;white-space:normal;gap:8px;padding:8px 10px;border-radius:14px}
  .pub-card .email-lock span{min-width:0;overflow-wrap:anywhere}
  .pub-card .email-lock .button{min-height:40px;margin-left:auto}
  .field-grid{grid-template-columns:minmax(0,1fr)}
  .page-main .panel{padding:20px}
  .article-content img{max-width:100%;height:auto}
}

/* Public header: account actions join the menu before they outgrow the viewport. */
@media(max-width:1279px){
  body .site-header{height:auto;min-height:72px;z-index:20}
  body .site-header .header-inner{height:auto;min-height:72px;display:flex;flex-wrap:wrap;gap:0 16px;padding-block:12px}
  body .site-header .header-inner>.brand{width:auto;max-width:calc(100% - 60px);font-size:23px;flex:0 1 auto}
  body .site-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;width:44px;height:44px;padding:0;flex:none;background:transparent;color:var(--navy);font-size:26px;border:1px solid #d3e2f3;border-radius:10px}
  body .site-header nav{display:none;position:static;order:3;flex:0 0 100%;width:100%;margin:12px 0 0;padding:12px 0;flex-direction:column;align-items:stretch;gap:4px;background:transparent;box-shadow:none;font-size:15px;white-space:normal;border-top:1px solid #d3e2f3}
  body .site-header nav.open{display:flex}
  body .site-header nav>a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:8px}
  body .site-header nav>a:hover{background:#e5f1ff}
  body .site-header .header-actions{display:none;order:4;flex:0 0 100%;width:100%;min-width:0;white-space:normal;padding:12px 0 4px;border-top:1px solid #d3e2f3;gap:8px}
  body .site-header nav.open+.header-actions{display:flex;flex-direction:column;align-items:stretch}
  body .site-header .header-actions>a,body .site-header .header-actions .text-button{display:flex;align-items:center;min-height:44px;padding:10px 12px;font-size:14px;overflow-wrap:anywhere;white-space:normal}
  body .site-header .header-actions .button{font-size:14px;padding:12px 16px;border-radius:24px}
  body .site-header .header-actions>span{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
  body .site-header .header-actions .inline-form{margin:0}
  body .site-header .header-actions .inline-form button{width:100%;text-align:left}
}

/* Sticky public header (all public pages + homepage). In-page anchors stop below it. */
body .site-header{position:sticky;top:0;z-index:50}
html:has(body>.site-header){scroll-padding-top:96px}
@media(max-width:1279px){
  /* The ☰ menu overlays the page as a panel (see "Phones/tablets" below); the header bar keeps its height. */
  html:has(body>.site-header){scroll-padding-top:84px}
}

/* =====================================================================
   Public header actions (2026-11-25): one primary button, credit pill,
   notifications and a single account menu. Same on the homepage and inner pages.
   ===================================================================== */
body .site-header nav a { white-space: nowrap }
body .site-header .nav-extra { display: none }
body .site-header .header-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap }
body .site-header .hdr-login { font: 500 14px Inter, Arial, sans-serif; color: var(--navy); padding: 8px 4px }
body .site-header .hdr-login:hover { color: var(--blue) }
body .site-header .hdr-signup { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #b3c9e3; background: #fff; color: var(--blue); font: 600 13px Inter, Arial, sans-serif }
body .site-header .hdr-signup:hover { border-color: var(--blue) }
body .site-header .hdr-credits { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid #d3e2f3; background: #eaf3ff; color: var(--navy); font: 500 13px Inter, Arial, sans-serif }
body .site-header .hdr-credits b { font-weight: 700; color: var(--blue) }
body .site-header .hdr-credits-icon { color: var(--blue); font-size: 14px; line-height: 1 }
body .site-header .hdr-credits:hover { border-color: var(--blue) }
body .site-header .hdr-credits.is-empty { background: #fff7e6; border-color: #f0d49a; color: #7a4f00 }
body .site-header .hdr-credits.is-empty .hdr-credits-icon { color: #b06d00 }
body .site-header .hdr-bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--navy) }
body .site-header .hdr-bell:hover { background: #e5f1ff }
body .site-header .hdr-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
body .site-header .hdr-dot { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font: 700 12px/18px Inter, Arial, sans-serif; text-align: center; box-shadow: 0 0 0 2px #f2faff }
body .site-header .hdr-account { position: relative }
body .site-header .hdr-account-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 3px 10px 3px 3px; border: 1px solid #d3e2f3; border-radius: 999px; background: #fff; color: var(--navy); font: 600 14px Inter, Arial, sans-serif; cursor: pointer }
body .site-header .hdr-account-btn:hover, body .site-header .hdr-account-btn[aria-expanded=true] { border-color: var(--blue) }
body .site-header .hdr-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 12px Inter, Arial, sans-serif; object-fit: cover }
body .site-header .hdr-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis }
body .site-header .hdr-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s }
body .site-header .hdr-account-btn[aria-expanded=true] .hdr-chevron { transform: rotate(180deg) }
body .site-header .hdr-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 264px; padding: 8px; background: #fff; border: 1px solid #dbe6f3; border-radius: 14px; box-shadow: 0 18px 44px #0b152f2e; z-index: 60; white-space: normal; text-align: left }
body .site-header .hdr-menu[hidden] { display: none }
body .site-header .hdr-menu-head { display: grid; gap: 2px; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid #e6eef8 }
body .site-header .hdr-menu-head b { font: 600 14px Inter, Arial, sans-serif; color: var(--navy); overflow-wrap: anywhere }
body .site-header .hdr-menu-head small { font: 400 12px Inter, Arial, sans-serif; color: #5f6c82; overflow-wrap: anywhere }
body .site-header .hdr-menu a, body .site-header .hdr-logout button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--navy); font: 500 14px Inter, Arial, sans-serif; text-align: left; cursor: pointer }
body .site-header .hdr-menu a:hover, body .site-header .hdr-menu a:focus-visible, body .site-header .hdr-logout button:hover, body .site-header .hdr-logout button:focus-visible { background: #eef5ff; outline: none }
body .site-header .hdr-menu-count { min-width: 20px; padding: 1px 7px; border-radius: 10px; background: #e5484d; color: #fff; font: 700 12px/18px Inter, Arial, sans-serif; text-align: center }
body .site-header .hdr-logout { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid #e6eef8 }
body .site-header .hdr-logout button { color: #b42318 }
body .site-header :is(.hdr-login, .hdr-signup, .hdr-credits, .hdr-bell, .hdr-account-btn):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }
/* Unread dot on the avatar where the bell is hidden (laptops 1280–1439px and phones). */
body .site-header .hdr-account-btn { position: relative }
body .site-header .hdr-avatar-dot { display: none; position: absolute; top: 2px; left: 26px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #fff }
/* Laptops: the theme still spaces the nav for 1920px. Tighten only what is needed so the
   row fits (measured excess before: 46–75px at 1440, 118–138px at 1280); 1600px+ unchanged. */
@media (min-width: 1280px) and (max-width: 1599px) {
  body .site-header .header-inner > .brand { width: auto }
  body .site-header nav { margin-left: 28px; column-gap: 22px }
  body .site-header .header-actions { gap: 10px }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  body .site-header .hdr-name, body .site-header .header-actions .hdr-bell { display: none }
  body .site-header .hdr-avatar-dot { display: block }
}
/* Phones/tablets: logo · (credits · avatar) · ☰ — everything else is in the ☰ menu. */
@media (max-width: 1279px) {
  body .site-header .header-actions, body .site-header nav.open + .header-actions { display: none }
  body .site-header.is-signed-in .header-actions, body .site-header.is-signed-in nav.open + .header-actions {
    display: flex; flex-direction: row; align-items: center; order: 1; flex: 0 0 auto; width: auto; margin-left: auto; padding: 0; border: 0; gap: 8px }
  body .site-header.is-signed-in .menu-toggle { order: 2; margin-left: 8px }
  body .site-header .header-actions :is(.hdr-list, .hdr-bell, .hdr-name, .hdr-chevron) { display: none }
  body .site-header .header-actions .hdr-credits { min-height: 36px; padding: 0 11px; font-size: 13px }
  body .site-header .hdr-account-btn { padding: 3px; height: 40px }
  body .site-header .hdr-avatar-dot { display: block }
  body .site-header .hdr-menu { position: fixed; top: 76px; right: 4vw; width: min(300px, 92vw); max-height: calc(100dvh - 90px); overflow-y: auto }
  /* ☰ menu: a dropdown panel under the bar that overlays the page instead of pushing it down. */
  body .site-header nav, body.home-v2 .site-header nav { position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; gap: 4px; padding: 8px var(--nav-inset, 5%) 18px; background: #f2faff; border-top: 1px solid #d3e2f3; box-shadow: 0 22px 32px -12px #0b152f33; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; z-index: 55 }
  body .site-header .nav-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #d3e2f3 }
  body .site-header .nav-extra .button, body .site-header .nav-extra .button:hover { justify-content: center; min-height: 44px; font-size: 14px; color: #fff }
  body .site-header .nav-extra .hdr-login, body .site-header .nav-extra .hdr-signup { display: flex; align-items: center; justify-content: center; min-height: 44px; height: auto; border-radius: 999px; font-size: 14px }
  body .site-header .nav-extra .hdr-login { border: 1.5px solid #d3e2f3; background: #fff }
}
@media (max-width: 600px) {
  body .site-header .hdr-credits-label { display: none }
  body .site-header .header-actions .hdr-credits.is-empty { display: none } /* "Buy credits" stays one tap away in the account menu */
}

/* =====================================================================
   Find Publishers filters (2026-11-25): live results, compact sticky sidebar,
   slide-up sheet on phones. Scoped to the directory page.
   ===================================================================== */
.directory-main .filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.directory-main .filters-head h2 { margin: 0 }
.directory-main .filters-reset { font: 500 13px Inter, Arial, sans-serif; color: var(--blue); text-decoration: none; white-space: nowrap }
.directory-main .filters-reset:hover { text-decoration: underline }
.directory-main .filters-sheet-head, .directory-main .filters-sheet-foot { display: none }
.directory-main #filters { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px }
.directory-main #filters .field, .directory-main #filters .check { margin: 0 }
.directory-main #filters [data-subniche-field][hidden] { display: none }
.directory-main .publisher-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; margin: 0 }
.directory-main .publisher-filters fieldset { flex: none; width: 100% }
.directory-main .publisher-filters legend { font: 500 13px Inter, Arial, sans-serif; color: var(--navy); margin-bottom: 6px; padding: 0 }
.directory-main .publisher-filters .is-compact .metric-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px }
.directory-main .publisher-filters .metric-range label { margin: 0 }
.directory-main .metric-dash { color: #8a97ab; font-size: 13px }
.directory-main .publisher-filters input { padding: 9px 10px; font-size: 14px }
.directory-main #filters [aria-invalid] { border-color: #d92d20; box-shadow: 0 0 0 3px #d92d2014 }
.directory-main .filter-errors { padding: 10px 12px; border: 1px solid #f5c2c0; border-radius: 10px; background: #fff5f5; color: #a51d25; font-size: 13px }
.directory-main .filter-errors p { margin: 2px 0 }
.directory-main .filter-errors .filter-errors-note { color: #6b5350; font-size: 12px }
#directory-results-section [data-fragment="list"] { transition: opacity .15s }
#directory-results-section.is-loading [data-fragment="list"] { opacity: .5; pointer-events: none }
@media (min-width: 781px) {
  /* Stays in view below the sticky site header while the results scroll. */
  .directory-main .filters { position: sticky; top: 100px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin }
}
@media (max-width: 780px) {
  .directory-main .filters.is-open #filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; padding: 0 20px; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px #0b152f40 }
  .directory-main .filters.is-open .filters-sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 16px 0 10px; background: #fff; font: 600 18px 'Plus Jakarta Sans', Arial, sans-serif; color: var(--navy) }
  .directory-main .filters-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef5ff; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer }
  .directory-main .filters.is-open .filters-sheet-foot { display: block; position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 16px; background: #fff; box-shadow: 0 -1px 0 #e6eef8 }
  .directory-main .filters-sheet-foot .button { width: 100%; min-height: 46px }
  .filters-backdrop { position: fixed; inset: 0; z-index: 79; background: #0b152f66 }
  .filters-backdrop[hidden] { display: none }
  html.filters-sheet-open { overflow: hidden }
}

/* Account status tabs (My Listings etc.): the theme styled <button> tabs; the pages render links. */
.dash-tabs a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; color: #4f5f77; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; flex-shrink: 0 }
.dash-tabs a:hover { color: var(--blue) }
.dash-tabs a small { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #fff; color: var(--muted) }
.dash-tabs a[aria-selected=true] { background: #fff; color: var(--blue); box-shadow: 0 2px 6px #0b3e7a14 }
.dash-tabs a[aria-selected=true] small { background: #e6f0ff; color: var(--blue) }
.dash-tabs a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }

/* Saved Sites filters: one tidy card, aligned labels, one row per range. */
.saved-filters { margin: 0 0 20px; padding: 18px 20px }
.saved-filters .publisher-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 16px; margin: 0; align-items: end }
.saved-filters .publisher-filters > label, .saved-filters .publisher-filters legend { display: block; margin: 0 0 6px; padding: 0; font: 500 13px Inter, Arial, sans-serif; color: var(--navy) }
.saved-filters .publisher-filters > label select { margin-top: 6px }
.saved-filters .publisher-filters fieldset { margin: 0; padding: 0; border: 0; min-width: 0 }
.saved-filters .is-compact .metric-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px }
.saved-filters .metric-dash { color: #8a97ab; font-size: 13px }
.saved-filters .publisher-filters input, .saved-filters .publisher-filters select { height: 40px; padding: 0 10px; font-size: 14px }
.saved-filters-foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6eef8; font-size: 14px; color: #4f5f77 }
.saved-filters-foot p { margin: 0; margin-right: auto }
.saved-filters-foot b { color: var(--navy) }
@media (max-width: 1100px) { .saved-filters .publisher-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 700px) { .saved-filters .publisher-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 460px) { .saved-filters .publisher-filters { grid-template-columns: 1fr } }
/* Directory hero: top niches only, always one line (scrolls sideways on small screens). */
.directory-hero .niche-chips{flex-wrap:nowrap;justify-content:center;max-width:none;overflow-x:auto;scrollbar-width:none}
.directory-hero .niche-chips::-webkit-scrollbar{display:none}
@media(max-width:780px){.directory-hero .niche-chips{justify-content:flex-start}}
/* Bundles live filtering: dim the results while new ones load. */
#bl-results.is-loading [data-fragment="bl-list"] { opacity: .5; pointer-events: none; transition: opacity .15s }
@media (prefers-reduced-motion: reduce) { #bl-results.is-loading [data-fragment="bl-list"] { transition: none } }
.bl-filters .bl-hint{margin:6px 0 0;font-size:12px;color:#6b7a90}
