/* =========================================================
   BMD HEADER + REAL THEME ENGINE V14
   BMD-SAFE-UPGRADE-MARK-V14 — DO NOT REMOVE
   Visual/theme layer only. No player, database, session,
   tracking, landing-page, or play-count logic lives here.
   ========================================================= */

html{
  color-scheme:dark;
  --bmd-page-bg:#07090d;
  --bmd-page-bg-2:#0c1017;
  --bmd-surface:#11161f;
  --bmd-surface-2:#181e28;
  --bmd-surface-3:#222a36;
  --bmd-surface-glass:rgba(14,18,25,.82);
  --bmd-text:#f7f9fc;
  --bmd-text-2:#d9dee8;
  --bmd-muted:#9ca6b5;
  --bmd-faint:#6f7988;
  --bmd-border:rgba(255,255,255,.10);
  --bmd-border-strong:rgba(255,255,255,.17);
  --bmd-hover:rgba(255,255,255,.075);
  --bmd-active:rgba(255,184,0,.14);
  --bmd-accent:#ffb800;
  --bmd-accent-2:#ff7a00;
  --bmd-positive:#1ed760;
  --bmd-on-accent:#1a1100;
  --bmd-shadow:0 18px 55px rgba(0,0,0,.42);
  --bmd-header-height:76px;
  background:var(--bmd-page-bg);
}

html[data-bmd-theme="dark"]{
  color-scheme:dark;
}

html[data-bmd-theme="light"]{
  color-scheme:light;
  --bmd-page-bg:#f5f7fb;
  --bmd-page-bg-2:#eef1f6;
  --bmd-surface:#ffffff;
  --bmd-surface-2:#f7f8fb;
  --bmd-surface-3:#e9edf3;
  --bmd-surface-glass:rgba(255,255,255,.88);
  --bmd-text:#131722;
  --bmd-text-2:#2f3745;
  --bmd-muted:#667083;
  --bmd-faint:#8993a3;
  --bmd-border:rgba(19,23,34,.10);
  --bmd-border-strong:rgba(19,23,34,.17);
  --bmd-hover:rgba(19,23,34,.055);
  --bmd-active:rgba(255,164,0,.14);
  --bmd-accent:#e99700;
  --bmd-accent-2:#e86700;
  --bmd-positive:#16b955;
  --bmd-on-accent:#171006;
  --bmd-shadow:0 18px 52px rgba(23,31,44,.14);
  background:var(--bmd-page-bg);
}

html,
body.bmd-pro-shell-v8{
  background:var(--bmd-page-bg)!important;
  color:var(--bmd-text)!important;
}

body.bmd-pro-shell-v8{
  transition:background-color .22s ease,color .22s ease;
}

html[data-bmd-motion="off"] body.bmd-pro-shell-v8{transition:none!important}
@media (prefers-reduced-motion:reduce){
  body.bmd-pro-shell-v8{transition:none!important}
}

/* ---------- Header shell ---------- */
body.bmd-pro-shell-v8 .bmd-topbar{
  position:sticky!important;
  top:10px!important;
  z-index:2147481500!important;
  width:min(1540px,calc(100% - 24px));
  margin:10px auto 0!important;
  border:1px solid var(--bmd-border)!important;
  border-radius:24px!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.035),transparent 38%),
    var(--bmd-surface-glass)!important;
  color:var(--bmd-text)!important;
  box-shadow:0 12px 42px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(22px) saturate(1.28)!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.28)!important;
  overflow:visible!important;
  isolation:isolate;
  transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease!important;
}

html.bmd-header-scrolled body.bmd-pro-shell-v8 .bmd-topbar{
  box-shadow:var(--bmd-shadow)!important;
  border-color:var(--bmd-border-strong)!important;
}

body.bmd-pro-shell-v8 .bmd-topbar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  pointer-events:none;
  background:radial-gradient(44rem 12rem at 8% -70%,rgba(255,184,0,.17),transparent 62%);
}

body.bmd-pro-shell-v8 .bmd-topbar .topbar__inner{
  min-height:74px;
  display:grid!important;
  grid-template-columns:auto minmax(260px,680px) minmax(0,1fr)!important;
  align-items:center!important;
  gap:clamp(12px,1.5vw,22px)!important;
  width:100%!important;
  max-width:none!important;
  padding:10px 12px!important;
  margin:0!important;
}

body.bmd-pro-shell-v8 .bmd-left,
body.bmd-pro-shell-v8 .bmd-center,
body.bmd-pro-shell-v8 .bmd-right{
  position:relative;
  z-index:2;
}

body.bmd-pro-shell-v8 .bmd-left{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}

body.bmd-pro-shell-v8 .bmd-center{
  min-width:0!important;
  display:flex!important;
  justify-content:center!important;
}

body.bmd-pro-shell-v8 .bmd-right{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
}

/* ---------- Brand ---------- */
body.bmd-pro-shell-v8 .bmd-brand{
  min-width:0;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:5px 7px!important;
  border-radius:17px!important;
  color:var(--bmd-text)!important;
  background:transparent!important;
  text-decoration:none!important;
}

body.bmd-pro-shell-v8 .bmd-brand:hover{
  background:var(--bmd-hover)!important;
  transform:none!important;
}

body.bmd-pro-shell-v8 .bmd-brand__logo{
  width:48px!important;
  height:48px!important;
  flex:0 0 48px!important;
  border-radius:15px!important;
  border:1px solid var(--bmd-border)!important;
  background:#fff!important;
  box-shadow:0 9px 24px rgba(0,0,0,.18)!important;
  object-fit:contain!important;
}

body.bmd-pro-shell-v8 .bmd-brand__text{min-width:0!important}
body.bmd-pro-shell-v8 .bmd-brand__name{
  display:block!important;
  max-width:165px;
  color:var(--bmd-text)!important;
  font-size:13px!important;
  line-height:1.1!important;
  font-weight:950!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.bmd-pro-shell-v8 .bmd-brand__tag{
  display:block!important;
  max-width:170px;
  margin-top:4px!important;
  color:var(--bmd-muted)!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:.015em!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---------- Main menu button ---------- */
body.bmd-pro-shell-v8 .bmd-burger,
body.bmd-pro-shell-v8 .bmd-ic{
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  border:1px solid var(--bmd-border)!important;
  border-radius:15px!important;
  background:var(--bmd-surface-2)!important;
  color:var(--bmd-text)!important;
  box-shadow:none!important;
}
body.bmd-pro-shell-v8 .bmd-burger:hover,
body.bmd-pro-shell-v8 .bmd-ic:hover{
  border-color:var(--bmd-border-strong)!important;
  background:var(--bmd-surface-3)!important;
  transform:translateY(-1px)!important;
}
body.bmd-pro-shell-v8 .bmd-burger__icon span{background:currentColor!important}
body.bmd-pro-shell-v8 .bmd-ic svg{stroke:currentColor!important}

/* ---------- Search ---------- */
body.bmd-pro-shell-v8 .bmd-search{
  width:100%!important;
  min-height:50px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:6px 8px 6px 14px!important;
  border:1px solid var(--bmd-border)!important;
  border-radius:999px!important;
  background:var(--bmd-surface-2)!important;
  color:var(--bmd-text)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
body.bmd-pro-shell-v8 .bmd-search:hover{border-color:var(--bmd-border-strong)!important}
body.bmd-pro-shell-v8 .bmd-search:focus-within{
  border-color:color-mix(in srgb,var(--bmd-accent) 58%,transparent)!important;
  background:var(--bmd-surface)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--bmd-accent) 15%,transparent)!important;
}
body.bmd-pro-shell-v8 .bmd-search__icon{color:var(--bmd-muted)!important}
body.bmd-pro-shell-v8 .bmd-search__input{
  min-width:0!important;
  color:var(--bmd-text)!important;
  caret-color:var(--bmd-accent)!important;
  font-size:13px!important;
  font-weight:760!important;
}
body.bmd-pro-shell-v8 .bmd-search__input::placeholder{color:var(--bmd-faint)!important;opacity:1!important}
body.bmd-pro-shell-v8 .bmd-search__kbd{
  border:1px solid var(--bmd-border)!important;
  background:var(--bmd-surface)!important;
  color:var(--bmd-muted)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.08)!important;
}

/* ---------- Navigation ---------- */
body.bmd-pro-shell-v8 .bmd-navrail{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  padding:2px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
}
body.bmd-pro-shell-v8 .bmd-navrail::-webkit-scrollbar{display:none!important}
body.bmd-pro-shell-v8 .bmd-pill{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 13px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--bmd-text-2)!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:880!important;
  letter-spacing:-.01em!important;
  text-decoration:none!important;
}
body.bmd-pro-shell-v8 .bmd-pill:hover{
  border-color:var(--bmd-border)!important;
  background:var(--bmd-hover)!important;
  color:var(--bmd-text)!important;
  transform:none!important;
}
body.bmd-pro-shell-v8 .bmd-pill.is-active{
  border-color:color-mix(in srgb,var(--bmd-accent) 34%,transparent)!important;
  background:var(--bmd-active)!important;
  color:var(--bmd-text)!important;
}
body.bmd-pro-shell-v8 .bmd-pill__dot{
  width:7px!important;
  height:7px!important;
  background:var(--bmd-accent)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--bmd-accent) 13%,transparent)!important;
}
body.bmd-pro-shell-v8 .bmd-pill--prime,
body.bmd-pro-shell-v8 .bmd-topbar a[href*="upload"]{
  border-color:transparent!important;
  background:linear-gradient(135deg,var(--bmd-accent),var(--bmd-accent-2))!important;
  color:var(--bmd-on-accent)!important;
  box-shadow:0 10px 24px color-mix(in srgb,var(--bmd-accent-2) 22%,transparent)!important;
}
body.bmd-pro-shell-v8 .bmd-topbar a[href*="upload"] *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
body.bmd-pro-shell-v8 .bmd-pill--premium-active{
  background:linear-gradient(135deg,#1ed760,#0bc971)!important;
  color:#04150a!important;
}

/* ---------- Theme control ---------- */
body.bmd-pro-shell-v8 .bmd-actions{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex:0 0 auto!important;
}
body.bmd-pro-shell-v8 #bmdThemeToggle{
  width:auto!important;
  min-width:92px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:999px!important;
}
body.bmd-pro-shell-v8 #bmdThemeToggle .bmd-theme-icon{
  width:18px!important;
  height:18px!important;
  display:none;
  flex:0 0 18px;
}
html[data-bmd-theme="dark"] body.bmd-pro-shell-v8 #bmdThemeToggle .bmd-theme-icon--moon,
html[data-bmd-theme="light"] body.bmd-pro-shell-v8 #bmdThemeToggle .bmd-theme-icon--sun{display:block!important}
body.bmd-pro-shell-v8 #bmdThemeToggle .bmd-theme-label{
  display:inline-block!important;
  color:var(--bmd-text)!important;
  font-size:10px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
body.bmd-pro-shell-v8 #bmdMotionToggle{border-radius:999px!important}

/* ---------- Profile ---------- */
body.bmd-pro-shell-v8 .bmd-top-profile__summary,
body.bmd-pro-shell-v8 .bmd-account__summary{
  border-color:var(--bmd-border)!important;
  background:var(--bmd-surface-2)!important;
  color:var(--bmd-text)!important;
}
body.bmd-pro-shell-v8 .bmd-top-profile__summary:hover,
body.bmd-pro-shell-v8 .bmd-account__summary:hover{background:var(--bmd-surface-3)!important}
body.bmd-pro-shell-v8 .bmd-top-profile__menu,
body.bmd-pro-shell-v8 .bmd-account__menu{
  border-color:var(--bmd-border)!important;
  background:var(--bmd-surface)!important;
  color:var(--bmd-text)!important;
  box-shadow:var(--bmd-shadow)!important;
}
body.bmd-pro-shell-v8 .bmd-top-profile__head,
body.bmd-pro-shell-v8 .bmd-account__head{
  border-color:var(--bmd-border)!important;
  background:var(--bmd-surface-2)!important;
}
body.bmd-pro-shell-v8 .bmd-top-profile__head strong,
body.bmd-pro-shell-v8 .bmd-account__head strong,
body.bmd-pro-shell-v8 .bmd-top-profile__link,
body.bmd-pro-shell-v8 .bmd-account__link{color:var(--bmd-text)!important}
body.bmd-pro-shell-v8 .bmd-top-profile__head span,
body.bmd-pro-shell-v8 .bmd-account__head span,
body.bmd-pro-shell-v8 .bmd-top-profile__link span,
body.bmd-pro-shell-v8 .bmd-account__link span{color:var(--bmd-muted)!important}
body.bmd-pro-shell-v8 .bmd-top-profile__link:hover,
body.bmd-pro-shell-v8 .bmd-account__link:hover{background:var(--bmd-hover)!important;border-color:var(--bmd-border)!important}

/* ---------- Slide-out site menu ---------- */
body.bmd-pro-shell-v8 .sidebar{
  border-color:var(--bmd-border)!important;
  background:linear-gradient(180deg,var(--bmd-surface),var(--bmd-page-bg-2))!important;
  color:var(--bmd-text)!important;
}
body.bmd-pro-shell-v8 .sidebar__header{
  border-color:var(--bmd-border)!important;
  background:var(--bmd-surface-glass)!important;
}
body.bmd-pro-shell-v8 .bmd-sideclose,
body.bmd-pro-shell-v8 .side-link{
  color:var(--bmd-text)!important;
  border-color:transparent!important;
  background:transparent!important;
}
body.bmd-pro-shell-v8 .bmd-sideclose{border-color:var(--bmd-border)!important;background:var(--bmd-surface-2)!important}
body.bmd-pro-shell-v8 .side-link:hover{background:var(--bmd-hover)!important;border-color:var(--bmd-border)!important}
body.bmd-pro-shell-v8 .side-link.is-active{background:var(--bmd-active)!important;border-color:color-mix(in srgb,var(--bmd-accent) 30%,transparent)!important}
body.bmd-pro-shell-v8 .side-link small,
body.bmd-pro-shell-v8 .side-mini,
body.bmd-pro-shell-v8 .sidebar__contact .muted{color:var(--bmd-muted)!important}
body.bmd-pro-shell-v8 .side-h{color:var(--bmd-faint)!important;opacity:1!important}
body.bmd-pro-shell-v8 .side-sep,
body.bmd-pro-shell-v8 .sidebar__contact{border-color:var(--bmd-border)!important;background-color:transparent!important}

/* =========================================================
   V23/V24 homepage theme bridge
   The homepage layer declares fixed dark colors. These higher-
   specificity rules make both themes complete without editing
   player/query/database code.
   ========================================================= */
html[data-bmd-theme="dark"]{
  --b23-bg:#090a0d;
  --b23-sidebar:#050608;
  --b23-surface:#15181e;
  --b23-surface-2:#1d222a;
  --b23-surface-3:#272e38;
  --b23-text:#ffffff;
  --b23-muted:#aeb5c0;
  --b23-faint:#747d89;
  --b23-line:rgba(255,255,255,.09);
}
html[data-bmd-theme="light"]{
  --b23-bg:#f4f6fa;
  --b23-sidebar:#ffffff;
  --b23-surface:#ffffff;
  --b23-surface-2:#f3f5f8;
  --b23-surface-3:#e8ecf2;
  --b23-text:#121620;
  --b23-muted:#667083;
  --b23-faint:#8993a2;
  --b23-line:rgba(18,22,32,.10);
  --b23-shadow:0 22px 65px rgba(29,39,55,.15);
}

html[data-bmd-theme] body.bmd24-page,
html[data-bmd-theme] body.bmd23-page,
html[data-bmd-theme] #bmd23Home,
html[data-bmd-theme] .bmd23-main{
  background-color:var(--b23-bg)!important;
  color:var(--b23-text)!important;
}

html[data-bmd-theme="light"] .bmd23-main{
  background-image:radial-gradient(circle at 62% -12%,rgba(255,184,0,.14),transparent 34rem)!important;
}
html[data-bmd-theme="dark"] .bmd23-main{
  background-image:radial-gradient(circle at 62% -12%,rgba(255,184,0,.14),transparent 34rem)!important;
}

html[data-bmd-theme] .bmd23-sidebar{
  border-color:var(--b23-line)!important;
  background:linear-gradient(180deg,var(--b23-sidebar),var(--b23-bg) 78%)!important;
  color:var(--b23-text)!important;
}
html[data-bmd-theme] .bmd23-brand,
html[data-bmd-theme] .bmd23-brand strong,
html[data-bmd-theme] .bmd23-section__header h2,
html[data-bmd-theme] .bmd23-quick-section h2,
html[data-bmd-theme] .bmd23-news-section h2,
html[data-bmd-theme] .bmd23-browse h2,
html[data-bmd-theme] .bmd23-artist-cta h2,
html[data-bmd-theme] .bmd23-card__title,
html[data-bmd-theme] .bmd23-quick__copy a,
html[data-bmd-theme] .bmd23-news div>a,
html[data-bmd-theme] .bmd23-search__dialog h2,
html[data-bmd-theme] .bmd23-search-result__copy a{
  color:var(--b23-text)!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-bmd-theme] .bmd23-brand small,
html[data-bmd-theme] .bmd23-nav a,
html[data-bmd-theme] .bmd23-nav button,
html[data-bmd-theme] .bmd23-section__header p,
html[data-bmd-theme] .bmd23-card__artist,
html[data-bmd-theme] .bmd23-quick__copy span,
html[data-bmd-theme] .bmd23-showall,
html[data-bmd-theme] .bmd23-search__status,
html[data-bmd-theme] .bmd23-search-result__copy span{
  color:var(--b23-muted)!important;
}
html[data-bmd-theme] .bmd23-sidebar__label,
html[data-bmd-theme] .bmd23-search__group-title{color:var(--b23-faint)!important}
html[data-bmd-theme] .bmd23-nav a:hover,
html[data-bmd-theme] .bmd23-nav button:hover,
html[data-bmd-theme] .bmd23-nav a.is-active{
  color:var(--b23-text)!important;
  background:color-mix(in srgb,var(--b23-text) 8%,transparent)!important;
}

html[data-bmd-theme] .bmd23-topbar{
  border-color:var(--b23-line)!important;
  background:color-mix(in srgb,var(--b23-bg) 84%,transparent)!important;
  color:var(--b23-text)!important;
}
html[data-bmd-theme] .bmd23-search-trigger,
html[data-bmd-theme] .bmd23-account,
html[data-bmd-theme] .bmd23-menu{
  border-color:var(--b23-line)!important;
  background:var(--b23-surface-2)!important;
  color:var(--b23-muted)!important;
}
html[data-bmd-theme] .bmd23-search-trigger:hover{background:var(--b23-surface-3)!important;color:var(--b23-text)!important}
html[data-bmd-theme] .bmd23-search-trigger kbd{border-color:var(--b23-line)!important;background:var(--b23-surface)!important;color:var(--b23-muted)!important}
html[data-bmd-theme] .bmd23-topbar__upload{background:var(--b23-text)!important;color:var(--b23-bg)!important}

html[data-bmd-theme] .bmd23-quick,
html[data-bmd-theme] .bmd23-card__art,
html[data-bmd-theme] .bmd23-news,
html[data-bmd-theme] .bmd23-content>.bmd-index-ad-slot,
html[data-bmd-theme] .bmd23-browse{
  border-color:var(--b23-line)!important;
}
html[data-bmd-theme] .bmd23-quick,
html[data-bmd-theme] .bmd23-news,
html[data-bmd-theme] .bmd23-content>.bmd-index-ad-slot{
  background:color-mix(in srgb,var(--b23-text) 6%,var(--b23-bg))!important;
}
html[data-bmd-theme] .bmd23-quick:hover{background:color-mix(in srgb,var(--b23-text) 11%,var(--b23-bg))!important}

/* The featured artwork remains cinematic in both themes. */
html[data-bmd-theme] .bmd23-landing{
  border-color:rgba(255,255,255,.14)!important;
  background:#17191e!important;
  color:#fff!important;
}
html[data-bmd-theme] .bmd23-landing h1,
html[data-bmd-theme] .bmd23-landing p strong,
html[data-bmd-theme] .bmd23-landing__art>span{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-bmd-theme] .bmd23-landing p{color:#d9dde5!important}
html[data-bmd-theme] .bmd23-landing__art small{color:#b5bcc7!important}
html[data-bmd-theme] .bmd23-primary{
  background:#1ed760!important;
  color:#041408!important;
  -webkit-text-fill-color:#041408!important;
  opacity:1!important;
  filter:none!important;
  text-shadow:none!important;
}
html[data-bmd-theme] .bmd23-primary span,
html[data-bmd-theme] .bmd23-primary svg{color:#041408!important;fill:currentColor!important;-webkit-text-fill-color:#041408!important}
html[data-bmd-theme] .bmd23-secondary,
html[data-bmd-theme] .bmd23-circle{color:#fff!important;-webkit-text-fill-color:#fff!important}

html[data-bmd-theme] .bmd23-search__dialog{
  border-color:var(--b23-line)!important;
  background:var(--b23-surface)!important;
  color:var(--b23-text)!important;
}
html[data-bmd-theme] .bmd23-search__dialog>header>button,
html[data-bmd-theme] .bmd23-search__recent button{
  border-color:var(--b23-line)!important;
  background:var(--b23-surface-3)!important;
  color:var(--b23-text)!important;
}
html[data-bmd-theme] .bmd23-search-result:hover,
html[data-bmd-theme] .bmd23-search-result.is-active{background:var(--b23-surface-2)!important}

html[data-bmd-theme="light"] .bmd23-bottom-nav{
  border-color:var(--b23-line)!important;
  background:rgba(255,255,255,.95)!important;
  box-shadow:0 -10px 35px rgba(25,35,50,.10)!important;
}
html[data-bmd-theme="light"] .bmd23-bottom-nav a,
html[data-bmd-theme="light"] .bmd23-bottom-nav button{color:#687285!important}
html[data-bmd-theme="light"] .bmd23-bottom-nav .is-active{color:#10141d!important}

/* ---------- Generic contrast repair for public content ---------- */
html[data-bmd-theme="dark"] body.bmd-pro-shell-v8 :where(h1,h2,h3,h4,h5,h6,.title,.section-title){color:#fff}
html[data-bmd-theme="dark"] body.bmd-pro-shell-v8 :where(p,small,.muted,.subtitle,.meta){color:var(--bmd-muted)}
html[data-bmd-theme="light"] body.bmd-pro-shell-v8 :where(h1,h2,h3,h4,h5,h6,.title,.section-title){color:var(--bmd-text)}

/* ---------- Responsive header ---------- */
@media (max-width:1380px){
  body.bmd-pro-shell-v8 .bmd-topbar .topbar__inner{grid-template-columns:auto minmax(250px,1fr) auto!important}
  body.bmd-pro-shell-v8 .bmd-navrail .bmd-pill[href*="smartlink"],
  body.bmd-pro-shell-v8 .bmd-navrail .bmd-pill[href*="distribution"]{display:none!important}
}

@media (max-width:1120px){
  body.bmd-pro-shell-v8 .bmd-brand__text{display:none!important}
  body.bmd-pro-shell-v8 .bmd-navrail .bmd-pill[href*="premium"]{display:none!important}
  body.bmd-pro-shell-v8 #bmdMotionToggle{display:none!important}
}

@media (max-width:900px){
  body.bmd-pro-shell-v8 .bmd-topbar{
    top:0!important;
    width:100%!important;
    margin:0!important;
    border-width:0 0 1px!important;
    border-radius:0!important;
  }
  body.bmd-pro-shell-v8 .bmd-topbar .topbar__inner{
    min-height:64px!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    padding:8px 10px!important;
  }
  body.bmd-pro-shell-v8 .bmd-left{gap:5px!important}
  body.bmd-pro-shell-v8 .bmd-brand__logo{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:13px!important}
  body.bmd-pro-shell-v8 .bmd-right{gap:5px!important}
  body.bmd-pro-shell-v8 .bmd-navrail{display:none!important}
  body.bmd-pro-shell-v8 #bmdThemeToggle{min-width:44px!important;width:44px!important;padding:0!important}
  body.bmd-pro-shell-v8 #bmdThemeToggle .bmd-theme-label{display:none!important}
  body.bmd-pro-shell-v8 .bmd-top-profile__summary{width:44px!important;height:44px!important}
}

@media (max-width:620px){
  body.bmd-pro-shell-v8 .bmd-topbar .topbar__inner{grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important}
  body.bmd-pro-shell-v8 .bmd-center{display:flex!important}
  body.bmd-pro-shell-v8 .bmd-search{min-height:44px!important;padding-left:11px!important}
  body.bmd-pro-shell-v8 .bmd-search__input{font-size:12px!important}
  body.bmd-pro-shell-v8 .bmd-search__kbd{display:none!important}
  body.bmd-pro-shell-v8 .bmd-brand{display:none!important}
  body.bmd-pro-shell-v8 .bmd-burger{width:42px!important;height:42px!important;flex-basis:42px!important}
  body.bmd-pro-shell-v8 #bmdThemeToggle{width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important}
}

@media (max-width:390px){
  body.bmd-pro-shell-v8 .bmd-topbar .topbar__inner{padding-inline:7px!important}
  body.bmd-pro-shell-v8 .bmd-search__input::placeholder{font-size:0!important}
  body.bmd-pro-shell-v8 .bmd-search__input::before{content:"Search"}
}

/* Smooth theme switch, with reduced-motion protection. */
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
html[data-bmd-motion="off"]::view-transition-old(root),
html[data-bmd-motion="off"]::view-transition-new(root){animation-duration:0s}
