/* Shared navigation/profile shell for every DRM Premium page. */
.site-shell-menu-toggle,.site-shell-profile-toggle{
 appearance:none;border:0;background:transparent;color:var(--ink,#f5f5f5);cursor:pointer;
 display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
}
.site-shell-menu-toggle:hover,.site-shell-profile-toggle:hover{background:rgba(255,255,255,.08)}
.site-shell-menu-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.site-shell-profile-toggle{font:700 15px/1 Arial,sans-serif;border:1px solid rgba(255,255,255,.14)}
.site-shell-profile-toggle img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.site-shell-sidebar{
 position:fixed;z-index:95;top:var(--duss-header-height-desktop,64px);bottom:0;left:0;
 width:var(--duss-sidebar-width,240px);padding:8px 12px 24px;box-sizing:border-box;
 overflow-y:auto;background:var(--paper,#0f1014);border-right:1px solid rgba(255,255,255,.06);
 transform:translateX(-105%);visibility:hidden;pointer-events:none;
 transition:transform 700ms cubic-bezier(.16,1,.3,1),visibility 0s linear 700ms;
}
body.site-shell-menu-open .site-shell-sidebar{transform:translateX(0);visibility:visible;pointer-events:auto;transition:transform 700ms cubic-bezier(.16,1,.3,1)}
.site-shell-backdrop{position:fixed;z-index:94;inset:0;background:rgba(0,0,0,.42);opacity:0;pointer-events:none;transition:opacity 700ms ease}
body.site-shell-menu-open .site-shell-backdrop{opacity:1;pointer-events:auto}
.site-shell-sidebar .side-link{display:flex;align-items:center;gap:16px;min-height:42px;padding:0 12px;color:var(--ink,#f5f5f5);text-decoration:none;border-radius:10px}
.site-shell-sidebar .side-link:hover{background:rgba(255,255,255,.07)}
.site-shell-sidebar .side-icon{width:22px;text-align:center}
.site-shell-profile-drawer{
 position:fixed;z-index:181;top:var(--duss-header-height-desktop,64px);right:0;bottom:0;width:min(390px,100vw);
 padding:25px;box-sizing:border-box;overflow-y:auto;background:var(--paper,#0f1014);color:var(--ink,#f5f5f5);
 border-left:1px solid rgba(255,255,255,.08);transform:translateX(110%);visibility:hidden;pointer-events:none;
 transition:transform 700ms cubic-bezier(.16,1,.3,1),visibility 0s linear 700ms;
}
.site-shell-profile-drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto;transition:transform 700ms cubic-bezier(.16,1,.3,1)}
.site-shell-profile-drawer__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;color:var(--muted,#aaa);font-size:11px;font-weight:700;letter-spacing:.12em}
.site-shell-profile-drawer__close{border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer}
.site-shell-profile-drawer__identity{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;margin-bottom:28px}
.site-shell-profile-drawer__avatar{display:grid;place-items:center;width:56px;height:56px;border:1px solid rgba(255,255,255,.14);border-radius:50%;font-size:22px;font-weight:700}
.site-shell-profile-drawer__name{font-size:19px;font-weight:700}.site-shell-profile-drawer__user{margin-top:4px;color:var(--muted,#aaa);font-size:13px}
.site-shell-profile-drawer__profile{display:flex;justify-content:space-between;padding:16px 0;color:inherit;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.09)}
.site-shell-profile-drawer__details{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px;padding-top:24px}
.site-shell-profile-drawer__detail{min-width:0}.site-shell-profile-drawer__detail--full{grid-column:1/-1}
.site-shell-profile-drawer__label{display:block;margin-bottom:6px;color:var(--muted,#aaa);font-size:10px;font-weight:700;letter-spacing:.11em}
.site-shell-profile-drawer__value{font-size:14px;font-weight:600;overflow-wrap:anywhere}
@media(max-width:760px){
 .site-shell-sidebar{top:0;width:min(280px,82vw);padding-top:18px}
 .site-shell-profile-drawer{top:var(--duss-header-height-mobile,58px);width:min(390px,100vw)}
}

/* Keep the page header in the same flow and isolate drawer motion to content. */
:root{--duss-profile-drawer-width:390px}
html body>header.topbar.topbar,
html body>header.admin-topbar.admin-topbar,
html body>header.live-topbar.live-topbar,
html body>header.studio-global-topbar.studio-global-topbar,
html body>header.profile-topbar.profile-topbar{
 position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
 transform:none!important;translate:none!important;animation:none!important;transition:none!important;
}
html body>.category-bar.category-bar{
 position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 width:auto!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
 transform:none!important;transition:margin-left 700ms cubic-bezier(.16,1,.3,1),margin-right 700ms cubic-bezier(.16,1,.3,1)!important;
}
html body main{
 transition:margin-left 700ms cubic-bezier(.16,1,.3,1),margin-right 700ms cubic-bezier(.16,1,.3,1),width 700ms cubic-bezier(.16,1,.3,1),max-width 700ms cubic-bezier(.16,1,.3,1)!important;
}
html body :is(main#home,.admin-main,.live-layout){width:100%!important}
@media(min-width:761px){
 html body.sidebar-open.sidebar-open,html body.profile-drawer-open.profile-drawer-open{
  padding-top:0!important;padding-left:0!important;padding-right:0!important;transition:none!important;
 }
 html body.sidebar-open.sidebar-open main{
  margin-left:var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px))!important;
  margin-right:0!important;
 }
 html body.sidebar-open.sidebar-open>.category-bar.category-bar{
  margin-left:var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px))!important;margin-right:0!important;
 }
 html body.profile-drawer-open.profile-drawer-open main{
  margin-right:var(--duss-profile-drawer-width,390px)!important;
 }
 html body.profile-drawer-open.profile-drawer-open>.category-bar.category-bar{
  margin-right:var(--duss-profile-drawer-width,390px)!important;
 }
 html body.sidebar-open.sidebar-open.profile-drawer-open main{
  margin-left:var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px))!important;
  margin-right:var(--duss-profile-drawer-width,390px)!important;
 }
 html body.sidebar-open.sidebar-open.profile-drawer-open>.category-bar.category-bar{
  margin-left:var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px))!important;
  margin-right:var(--duss-profile-drawer-width,390px)!important;
 }
 html body.sidebar-open.sidebar-open :is(main#home,.admin-main,.live-layout),
 html body.profile-drawer-open.profile-drawer-open :is(main#home,.admin-main,.live-layout){
  box-sizing:border-box!important;width:auto!important;max-width:100%!important;
 }
 html body.sidebar-open.sidebar-open :is(main#home,.admin-main,.live-layout){
  width:calc(100% - var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px)))!important;
  max-width:calc(100% - var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px)))!important;
 }
 html body.profile-drawer-open.profile-drawer-open :is(main#home,.admin-main,.live-layout){
  width:calc(100% - var(--duss-profile-drawer-width,390px))!important;
  max-width:calc(100% - var(--duss-profile-drawer-width,390px))!important;
 }
 html body.sidebar-open.sidebar-open.profile-drawer-open :is(main#home,.admin-main,.live-layout){
  width:calc(100% - var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px)) - var(--duss-profile-drawer-width,390px))!important;
  max-width:calc(100% - var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px)) - var(--duss-profile-drawer-width,390px))!important;
 }
 html body.sidebar-open.sidebar-open main.main-area{margin-left:252px!important}
 html body.profile-page.sidebar-open.sidebar-open main.profile-shell{
  --shell-left-offset:var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px));
  --shell-open-width:min(760px,calc(100% - var(--shell-left-offset) - 32px));
  width:var(--shell-open-width)!important;max-width:760px!important;
  margin-left:calc(var(--shell-left-offset) + max(0px,calc((100% - var(--shell-left-offset) - var(--shell-open-width))/2)))!important;
  margin-right:0!important;
 }
 html body.profile-page.profile-drawer-open.profile-drawer-open main.profile-shell{
  --shell-right-offset:var(--duss-profile-drawer-width,390px);
  --shell-open-width:min(760px,calc(100% - var(--shell-right-offset) - 32px));
  width:var(--shell-open-width)!important;max-width:760px!important;
  margin-left:max(0px,calc((100% - var(--shell-right-offset) - var(--shell-open-width))/2))!important;
  margin-right:var(--shell-right-offset)!important;
 }
 html body.profile-page.sidebar-open.sidebar-open.profile-drawer-open main.profile-shell{
  --shell-left-offset:var(--duss-sidebar-dynamic-width,var(--duss-sidebar-width,240px));
  --shell-right-offset:var(--duss-profile-drawer-width,390px);
  --shell-open-width:min(760px,calc(100% - var(--shell-left-offset) - var(--shell-right-offset) - 32px));
  width:var(--shell-open-width)!important;max-width:760px!important;
  margin-left:calc(var(--shell-left-offset) + max(0px,calc((100% - var(--shell-left-offset) - var(--shell-right-offset) - var(--shell-open-width))/2)))!important;
  margin-right:var(--shell-right-offset)!important;
 }
}
@media(min-width:761px){
 html body .yt-sidebar.yt-sidebar{transition:transform 700ms cubic-bezier(.16,1,.3,1),visibility 0s linear 700ms!important}
 html body.sidebar-open.sidebar-open .yt-sidebar.yt-sidebar{transition:transform 700ms cubic-bezier(.16,1,.3,1),visibility 0s linear 0s!important}
}
@media(prefers-reduced-motion:reduce){
 html body main,html body>.category-bar.category-bar,html body .yt-sidebar.yt-sidebar,
 html body .profile-drawer,html body .site-shell-profile-drawer{transition:none!important}
}

/* Quiet Halo dark theme shared by every route. Keep motion in the content area;
   the common header stays geometrically fixed while drawers expand. */
html[data-theme="dark"] body{
  background:#111216!important;color:#F3F0ED!important;
  --paper:#111216;--surface:#18191d;--surface-hover:#202126;--ink:#F3F0ED;
  --muted:#A6A4A6;--line:rgba(235,238,245,.10);--accent:#BCCDE3;
  --ducs-page-bg:#111216;--ducs-page-surface:#18191d;--ducs-page-text:#F3F0ED;
  --ducs-page-muted:#A6A4A6;--ducs-page-border:rgba(235,238,245,.10);
}
html[data-theme="dark"] body :is(h1,h2,h3,h4,h5,h6){color:#F3F0ED}

/* One shared header treatment, including the standalone profile page header. */
html[data-theme="dark"] body>header:is(.topbar,.profile-topbar){
  background:#111216!important;color:#F3F0ED!important;
  border-bottom:1px solid rgba(235,238,245,.08)!important;
}
html[data-theme="dark"] body>header.profile-topbar{
  min-height:64px!important;height:64px!important;padding:0 clamp(18px,4vw,56px)!important;
}
html[data-theme="dark"] body :is(.brand-word-main,.profile-brand){color:#F3F0ED!important}
html[data-theme="dark"] body :is(.brand-word-accent,.profile-brand b){color:#9DC8FF!important}
html[data-theme="dark"] body :is(.yt-menu-trigger,.site-shell-menu-toggle,.profile-menu-toggle,.site-shell-profile-toggle){
  appearance:none!important;-webkit-appearance:none!important;
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  flex:0 0 44px!important;padding:0!important;overflow:hidden!important;
  border:1px solid rgba(220,226,242,.14)!important;border-radius:50%!important;
  background:transparent!important;color:#E9EDF5!important;
  box-shadow:none!important;text-shadow:0 0 7px rgba(220,230,250,.24)!important;
  transition:color .22s ease,border-color .22s ease,box-shadow .22s ease!important;
}
html[data-theme="dark"] body :is(.yt-menu-trigger,.site-shell-menu-toggle,.profile-menu-toggle,.site-shell-profile-toggle):hover{
  background:transparent!important;color:#F4F6FA!important;border-color:rgba(220,230,250,.28)!important;
  box-shadow:0 0 14px rgba(220,230,250,.12),0 0 24px rgba(211,223,255,.08)!important;
  text-shadow:0 0 7px rgba(238,242,255,.66),0 0 18px rgba(211,223,255,.35)!important;
}
html[data-theme="dark"] body :is(.profile-menu-toggle,.site-shell-profile-toggle){
  position:relative!important;aspect-ratio:1/1!important;
}
html[data-theme="dark"] body :is(.profile-menu-toggle,.site-shell-profile-toggle)>img{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  border:0!important;border-radius:inherit!important;object-fit:cover!important;
}
html[data-theme="dark"] body :is(.profile-menu-toggle,.site-shell-profile-toggle)>img[hidden]{display:none!important}
html[data-theme="dark"] body :is(.profile-menu-toggle,.site-shell-profile-toggle)>span{position:relative;z-index:1}
html[data-theme="dark"] body :is(.yt-menu-trigger,.site-shell-menu-toggle) svg{
  width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;
}

/* DUCS resets controls to square corners. Keep profile photo controls circular. */
html[data-theme="dark"] body button:is(.profile-menu-toggle,.site-shell-profile-toggle){
  border-radius:50%!important;overflow:hidden!important;clip-path:circle(50% at 50% 50%)!important;
}
html[data-theme="dark"] body button:is(.profile-menu-toggle,.site-shell-profile-toggle)>img{
  border-radius:50%!important;object-fit:cover!important;
}

/* The page drawers share the homepage's transparent, silver-glow navigation. */
html[data-theme="dark"] body :is(.yt-sidebar,.site-shell-sidebar){
  background:#111216!important;border:0!important;box-shadow:none!important;
}
html[data-theme="dark"] body :is(.yt-sidebar,.site-shell-sidebar) .side-link{
  border:0!important;border-radius:0!important;background:transparent!important;
  color:#A6A4A6!important;text-shadow:0 1px 12px rgba(235,238,255,.18)!important;
  transition:color .22s ease,text-shadow .22s ease!important;
}
html[data-theme="dark"] body :is(.yt-sidebar,.site-shell-sidebar) .side-link:hover,
html[data-theme="dark"] body :is(.yt-sidebar,.site-shell-sidebar) .side-link.active{
  border:0!important;border-radius:0!important;background:transparent!important;
  color:#F3F0ED!important;text-shadow:0 0 7px rgba(238,242,255,.66),0 0 18px rgba(211,223,255,.35)!important;
}
html[data-theme="dark"] body :is(.yt-sidebar,.site-shell-sidebar) :is(.side-icon,.sidebar-heading){color:#E2E5EB!important}
html[data-theme="dark"] body .site-shell-profile-drawer{
  display:flex!important;flex-direction:column!important;
  background:#111216!important;color:#F3F0ED!important;
  border-left:1px solid rgba(235,238,245,.08)!important;box-shadow:none!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer :is(.site-shell-profile-drawer__head,.site-shell-profile-drawer__label){
  color:#A6A4A6!important;text-shadow:0 1px 12px rgba(235,238,255,.18)!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer :is(.site-shell-profile-drawer__name,.site-shell-profile-drawer__value){
  color:#F3F0ED!important;text-shadow:0 1px 12px rgba(235,238,255,.16)!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer__avatar{
  box-sizing:border-box!important;width:68px!important;height:68px!important;
  overflow:hidden!important;border:1px solid rgba(220,226,242,.14)!important;border-radius:50%!important;
  background:#17181d!important;color:#F3F0ED!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer__avatar img{
  width:100%!important;height:100%!important;border-radius:inherit!important;object-fit:cover!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer__profile{
  border:0!important;background:transparent!important;color:#F3F0ED!important;
  text-shadow:0 1px 12px rgba(235,238,255,.18)!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer__profile:hover,
html[data-theme="dark"] body .site-shell-profile-drawer__close:hover{
  background:transparent!important;color:#F4F2F0!important;
  text-shadow:0 0 7px rgba(238,242,255,.66),0 0 18px rgba(211,223,255,.35)!important;
}
html[data-theme="dark"] body .site-shell-profile-drawer__detail{
  padding:12px 0;border-bottom:1px solid rgba(235,238,245,.07);
}
html[data-theme="dark"] body .site-shell-profile-drawer__footer{
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:auto;padding-top:24px;
}
html[data-theme="dark"] body .site-shell-profile-drawer__footer p{margin:0;color:#F08F9A;font-size:12px;line-height:1.4}
html[data-theme="dark"] body .site-shell-profile-drawer__logout{
  min-height:44px;display:inline-flex;align-items:center;gap:10px;padding:0;
  border:0!important;background:transparent!important;color:#E59AA1!important;
  text-shadow:0 1px 12px rgba(235,238,255,.16)!important;cursor:pointer;
}
html[data-theme="dark"] body .site-shell-profile-drawer__logout:hover{
  background:transparent!important;color:#FFC0C5!important;
  text-shadow:0 0 7px rgba(238,242,255,.50),0 0 16px rgba(211,223,255,.26)!important;
}

/* Match Upload Studio's workspace surfaces to the site's neutral graphite palette. */
html[data-theme="dark"] body.upload-studio-page{
  --ducs-upload-sidebar-bg:#111216;--ducs-upload-panel-strong-bg:#18191d;
  --ducs-upload-panel-secondary-bg:#141519;--ducs-upload-accent:#BCCDE3;
  --ducs-upload-preview-accent:#D2D8E2;--ducs-upload-pink-accent:#C6BFD1;
  --purple:#BCCDE3;--cyan:#D2D8E2;--pink:#C6BFD1;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell :is(.sidebar,.panel,.list-panel,.youtube-preview,.post-preview,.cover-preview,.markdown-preview){
  background:#17181d!important;color:#F3F0ED!important;
  border-color:rgba(235,238,245,.10)!important;
  box-shadow:8px 8px 18px rgba(0,0,0,.24),-2px -2px 12px rgba(255,255,255,.018)!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell :is(.panel input:not([type=checkbox]),.panel textarea,.panel select,.markdown-preview){
  background:#0f1014!important;color:#F3F0ED!important;border-color:rgba(220,226,242,.14)!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell :is(.side-nav a,.sidebar-bottom a){
  background:transparent!important;border-color:transparent!important;color:#A6A4A6!important;
  text-shadow:0 1px 12px rgba(235,238,255,.18)!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell .side-nav a:is(:hover,.active){
  background:transparent!important;border-color:transparent!important;color:#F3F0ED!important;
  text-shadow:0 0 7px rgba(238,242,255,.66),0 0 18px rgba(211,223,255,.35)!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell :is(.brand-mark,.step,.side-nav a b,.dumc-mark){
  background:#202126!important;border-color:rgba(220,226,242,.12)!important;color:#D2D8E2!important;box-shadow:none!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell :is(.eyebrow,.side-label,.panel label,.view-heading h2,.panel-title h3,.preview-head h3){
  color:#D9DCE3!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell :is(.subhead,.field-hint,.panel-title p,.preview-meta,.preview-foot,.empty-state,.autosave){
  color:#A6A4A6!important;
}
html[data-theme="dark"] body.upload-studio-page .studio-shell{background:#111216!important}

/* Quiet Halo's dark content surfaces across the administrative routes. */
html[data-theme="dark"] body:is(.admin-gate-state,.admin-dashboard-state) .admin-main :is(.panel,.overview-card,.gate-panel,.metric-card,.admin-report){
  background:#17181d!important;color:#F3F0ED!important;
  border-color:rgba(235,238,245,.10)!important;
  box-shadow:8px 8px 18px rgba(0,0,0,.24),-2px -2px 12px rgba(255,255,255,.018)!important;
}
html[data-theme="dark"] body.profile-page .profile-card{
  background:#17181d!important;border-color:rgba(235,238,245,.10)!important;
  box-shadow:8px 8px 22px rgba(0,0,0,.25),-2px -2px 12px rgba(255,255,255,.018)!important;
}
html[data-theme="dark"] body.profile-page :is(.profile-field input,.profile-field textarea,.profile-field select){
  background:#0f1014!important;color:#F3F0ED!important;border-color:rgba(220,226,242,.14)!important;
}
html[data-theme="dark"] body.live-users-page .live-panel{
  background:#141519!important;border-color:rgba(235,238,245,.10)!important;
  box-shadow:8px 8px 20px rgba(0,0,0,.24),-2px -2px 12px rgba(255,255,255,.018)!important;
}

/* Keep all route tabs text-only with a glowing underline and no hover backplate. */
html[data-theme="dark"] body :is(.category-tabs,.dufn-tabs,.live-restrictions-tabs,.page-tabs,.type-switch,.device-switch){
  border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html[data-theme="dark"] body :is(.category-tabs>.category-chip,.dufn-tabs>.dufn-tab,.live-restrictions-tabs>.live-restriction-tab,.page-tabs>.tab,.type-switch>.type,.device-switch>button,[role="tab"]){
  background:transparent!important;background-image:none!important;box-shadow:none!important;
  color:#A6A4A6!important;text-shadow:0 1px 12px rgba(235,238,255,.18)!important;
}
html[data-theme="dark"] body :is(.category-tabs>.category-chip:hover,.dufn-tabs>.dufn-tab:hover,.live-restrictions-tabs>.live-restriction-tab:hover,.page-tabs>.tab:hover,.type-switch>.type:hover,.device-switch>button:hover,[role="tab"]:hover){
  background:transparent!important;background-image:none!important;box-shadow:none!important;
  color:#F3F0ED!important;text-shadow:0 0 7px rgba(238,242,255,.66),0 0 18px rgba(211,223,255,.35)!important;
}
html[data-theme="dark"] body :is(.category-tabs>.category-chip.active,.category-tabs>.category-chip[aria-current="page"],.dufn-tabs>.dufn-tab.is-open,.live-restrictions-tabs>.live-restriction-tab.is-active,.page-tabs>.tab.active,.type-switch>.type.active,.device-switch>button.active,[role="tab"][aria-selected="true"]){
  color:#F3F0ED!important;font-weight:600!important;text-shadow:0 0 7px rgba(238,242,255,.36),0 1px 12px rgba(235,238,255,.18)!important;
}
html[data-theme="dark"] body :is(.category-tabs>.category-chip.active,.category-tabs>.category-chip[aria-current="page"],.dufn-tabs>.dufn-tab.is-open,.live-restrictions-tabs>.live-restriction-tab.is-active,.page-tabs>.tab.active,.type-switch>.type.active,.device-switch>button.active,[role="tab"][aria-selected="true"])::after{
  content:""!important;position:absolute!important;left:50%!important;right:auto!important;bottom:3px!important;
  width:44px!important;height:2px!important;transform:translateX(-50%)!important;border:0!important;border-radius:3px!important;
  background:linear-gradient(90deg,transparent,#F0F1F5,transparent)!important;
  box-shadow:0 0 9px rgba(226,230,245,.42)!important;pointer-events:none!important;
}

/* Ice Glow category rail selected for the public library tabs. */
html[data-theme="dark"] body .category-bar .category-tabs>.category-chip.active,
html[data-theme="dark"] body .category-bar .category-tabs>.category-chip[aria-current="page"]{
  color:#fff!important;text-shadow:0 0 12px rgba(255,255,255,.53),0 1px 2px rgba(255,255,255,.35)!important;
}
html[data-theme="dark"] body .category-bar .category-tabs>.category-chip.active::after,
html[data-theme="dark"] body .category-bar .category-tabs>.category-chip[aria-current="page"]::after{
  background:linear-gradient(90deg,#d6e6ff,#fff,#a8caff)!important;
  box-shadow:0 0 9px rgba(212,229,255,.8),0 0 19px rgba(123,169,255,.47)!important;
}

/* Obsidian Command header search and credential fields. */
html[data-theme="dark"] body .topbar .yt-search.yt-search{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:8px!important;
  flex:0 1 312px!important;width:min(312px,100%)!important;min-width:180px!important;max-width:312px!important;
  height:44px!important;margin:0 auto!important;padding:3px 4px 3px 15px!important;overflow:hidden!important;
  border:1px solid #383a40!important;border-radius:999px!important;background:#17191d!important;
  background-image:none!important;box-shadow:inset 0 1px 8px rgba(0,0,0,.2)!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
html[data-theme="dark"] body .topbar .yt-search.yt-search:focus-within{
  border-color:#d6b779!important;box-shadow:0 0 0 3px rgba(214,183,121,.11),0 0 22px rgba(214,183,121,.12),inset 0 1px 8px rgba(0,0,0,.2)!important;
}
html[data-theme="dark"] body .topbar .yt-search.yt-search>input{
  box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;height:100%!important;
  padding:0 2px!important;border:0!important;border-radius:0!important;outline:0!important;
  background:transparent!important;color:#f1f2f4!important;font:400 14px Arial,Helvetica,sans-serif!important;
  box-shadow:none!important;transition:none!important;
}
html[data-theme="dark"] body .topbar .yt-search.yt-search>input::placeholder{color:#a7abb4!important;opacity:1!important}
html[data-theme="dark"] body .topbar .yt-search.yt-search>input:hover,
html[data-theme="dark"] body .topbar .yt-search.yt-search>input:focus{border:0!important;box-shadow:none!important}
html[data-theme="dark"] body .topbar .yt-search.yt-search>button{
  box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  flex:0 0 auto!important;width:auto!important;min-width:0!important;height:36px!important;min-height:36px!important;
  margin:0!important;padding:0 13px!important;border:0!important;border-radius:999px!important;
  background:linear-gradient(145deg,#e1c98f,#d6b779)!important;color:#17140e!important;
  box-shadow:0 2px 8px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.22)!important;
  font:600 12px/1 Arial,Helvetica,sans-serif!important;text-shadow:none!important;
  transition:filter .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
html[data-theme="dark"] body .topbar .yt-search.yt-search>button:hover,
html[data-theme="dark"] body .topbar .yt-search.yt-search>button:focus-visible{
  background:linear-gradient(145deg,#e8d5a7,#ddc384)!important;color:#17140e!important;
  border:0!important;box-shadow:0 0 0 2px rgba(214,183,121,.2),0 4px 13px rgba(0,0,0,.3)!important;
}
html[data-theme="dark"] body .topbar .yt-search.yt-search>button:active{transform:scale(.97)!important}
html[data-theme="dark"] body .topbar .yt-search.yt-search>button svg{
  display:block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;filter:none!important;
}
html[data-theme="dark"] body .topbar .yt-search.yt-search>button span{display:inline!important;white-space:nowrap!important}
html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:8px!important;
  flex:0 1 136px!important;width:clamp(104px,8vw,136px)!important;min-width:92px!important;height:40px!important;min-height:40px!important;
  padding:0 12px!important;border:1px solid #383a40!important;border-radius:999px!important;background:#17191d!important;
  box-shadow:inset 0 1px 6px rgba(0,0,0,.16)!important;transition:border-color .18s ease,box-shadow .18s ease!important;
}
html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field:focus-within{
  border-color:#d6b779!important;background:#17191d!important;box-shadow:0 0 0 3px rgba(214,183,121,.1),0 0 16px rgba(214,183,121,.1)!important;
}
html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field svg{
  flex:0 0 15px!important;width:15px!important;height:15px!important;stroke:#a7abb4!important;
  transition:stroke .18s ease!important;
}
html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field:focus-within svg{stroke:#d6b779!important}
html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field input{
  min-width:0!important;width:100%!important;height:100%!important;padding:0!important;border:0!important;border-radius:0!important;
  outline:0!important;background:transparent!important;color:#f1f2f4!important;font:400 12px Arial,Helvetica,sans-serif!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field input::placeholder{color:#a7abb4!important;opacity:1!important}
@media(max-width:760px){
  html[data-theme="dark"] body .topbar .yt-search.yt-search{
    flex:1 1 160px!important;width:auto!important;max-width:320px!important;min-width:80px!important;height:40px!important;
    margin:0!important;padding:2px 3px 2px 9px!important;gap:5px!important;
  }
  html[data-theme="dark"] body .topbar .yt-search.yt-search>button{
    flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;
  }
  html[data-theme="dark"] body .topbar .yt-search.yt-search>button span{display:none!important}
  html[data-theme="dark"] body .topbar #headerLoginForm.yt-account-actions>.yt-auth-field{
    flex:1 1 0!important;width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;border-radius:12px!important;
  }
}





/* Prevent header padding from widening the fixed-width homepage header past the viewport. */
html[data-theme="dark"] body.home-page>header.topbar{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
}
/* Final Quiet Halo homepage controls, adjusted to the selected reference. */
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important;
  flex:0 1 312px!important;width:min(312px,100%)!important;min-width:180px!important;max-width:312px!important;
  height:44px!important;min-height:44px!important;margin:0 auto!important;padding:0!important;overflow:visible!important;
  border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#search{
  box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;min-inline-size:0!important;
  width:100%!important;height:38px!important;min-height:0!important;min-block-size:0!important;
  padding:0 4px!important;border:0!important;border-bottom:1px solid rgba(210,214,224,.27)!important;border-radius:0!important;
  outline:0!important;background:transparent!important;color:#F3F0ED!important;
  font:400 15px Arial,Helvetica,sans-serif!important;box-shadow:none!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#search::placeholder{
  color:#A6A4A6!important;opacity:1!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#search:hover,
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#search:focus{
  border-bottom-color:rgba(235,239,248,.86)!important;
  box-shadow:0 9px 17px -13px rgba(228,235,250,.9)!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit{
  box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;
  display:grid!important;place-items:center!important;
  flex:0 0 44px!important;inline-size:44px!important;width:44px!important;min-inline-size:44px!important;min-width:44px!important;
  block-size:44px!important;height:44px!important;min-block-size:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;border:1px solid rgba(220,224,234,.14)!important;border-radius:50%!important;
  background:#1b1d22!important;color:#E9EDF5!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.015),0 4px 14px rgba(0,0,0,.22)!important;
  text-shadow:0 0 7px rgba(238,242,255,.66),0 0 18px rgba(211,223,255,.35)!important;
  transition:border-color .18s ease,box-shadow .18s ease,color .18s ease,transform .18s ease!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit:hover,
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit:focus-visible{
  background:#1b1d22!important;color:#F3F5FA!important;border-color:rgba(231,236,247,.36)!important;
  box-shadow:0 0 14px rgba(220,230,250,.2),0 0 25px rgba(211,223,255,.14)!important;
  text-shadow:0 0 7px rgba(238,242,255,.72),0 0 18px rgba(211,223,255,.4)!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit:active{
  transform:scale(.97)!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit svg{
  display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;
  fill:none!important;stroke:#E9EDF5!important;stroke-width:1.8!important;
  filter:drop-shadow(0 0 5px rgba(225,233,247,.58))!important;
}
html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit span{
  display:none!important;
}

/* Quiet Halo keeps the two credentials on one horizontal row. */
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;
  flex:0 1 auto!important;gap:8px!important;margin:0!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:8px!important;
  flex:0 1 120px!important;width:clamp(98px,6.5vw,120px)!important;min-width:92px!important;
  height:44px!important;min-height:44px!important;padding:0 3px!important;
  border:0!important;border-bottom:1px solid rgba(210,214,224,.27)!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field:hover,
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field:focus-within{
  border-bottom-color:rgba(235,239,248,.86)!important;
  box-shadow:0 8px 16px -13px rgba(228,235,250,.88)!important;background:transparent!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field svg{
  width:15px!important;height:15px!important;flex:0 0 15px!important;fill:none!important;stroke:#A6A9B0!important;
  transition:stroke .18s ease,filter .18s ease!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field:focus-within svg{
  stroke:#E9EDF5!important;filter:drop-shadow(0 0 5px rgba(225,233,247,.42))!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field>.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;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field #headerEmail,
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field #headerPassword{
  box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;min-inline-size:0!important;
  width:100%!important;height:100%!important;block-size:100%!important;min-height:0!important;min-block-size:0!important;
  padding:0!important;border:0!important;border-radius:0!important;outline:0!important;
  background:transparent!important;color:#F3F0ED!important;font:400 14px Arial,Helvetica,sans-serif!important;box-shadow:none!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field input::placeholder{
  color:#A6A4A6!important;opacity:1!important;
}

/* Compact account controls so the fixed profile toggle stays fully in view. */
html[data-theme="dark"] body.home-page .topbar .account-controls{gap:4px!important}
/* Text-only account actions use the same restrained silver glow as the tabs. */
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#headerLoginButton,
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#createAccountButton{
  box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;min-width:0!important;width:auto!important;height:44px!important;min-height:44px!important;min-block-size:44px!important;
  margin:0!important;padding:0 5px!important;border:0!important;border-radius:0!important;
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  color:#C6D8EA!important;box-shadow:none!important;
  font:600 14px/1 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;
  text-shadow:0 1px 12px rgba(235,238,255,.22)!important;cursor:pointer!important;
  transition:color .18s ease,text-shadow .18s ease!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#headerLoginButton:hover:not(:disabled),
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#createAccountButton:hover:not(:disabled){
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  color:#F3F5FA!important;text-shadow:0 0 7px rgba(238,242,255,.72),0 0 18px rgba(211,223,255,.4)!important;
}
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#headerLoginButton:disabled{
  opacity:.55!important;cursor:wait!important;
}

@media(min-width:901px) and (max-width:1100px){
  html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search{
    flex-basis:260px!important;width:260px!important;max-width:260px!important;min-width:150px!important;
  }
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions{gap:8px!important}
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field{
    flex-basis:104px!important;width:104px!important;min-width:86px!important;
  }
}
@media(min-width:761px) and (max-width:900px){
  html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search{
    flex-basis:150px!important;width:150px!important;max-width:190px!important;min-width:118px!important;
  }
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions{gap:5px!important}
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>.yt-auth-field{
    flex-basis:82px!important;width:82px!important;min-width:72px!important;padding-inline:3px!important;gap:5px!important;
  }
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#headerLoginButton,
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions>#createAccountButton{
    padding-inline:4px!important;font-size:12px!important;
  }
}
@media(max-width:760px){
  html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search{
    flex:1 1 160px!important;width:auto!important;max-width:320px!important;min-width:80px!important;
    height:44px!important;min-height:44px!important;margin:0!important;gap:7px!important;
  }
  html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions{display:none!important}
  html[data-theme="dark"] body.home-page .topbar .yt-search.yt-search>#searchSubmit{
    flex:0 0 44px!important;inline-size:44px!important;width:44px!important;
    min-inline-size:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;
  }
}

/* DRM GLOBAL SEARCH — canonical Quiet Halo component.
   Keep every site search on .global-search with .global-search-submit.
   Design: compact transparent field, thin silver underline, silver hover/focus glow,
   and a 44px graphite circle with a silver search glyph. Preserve each page's input
   IDs and live-filter behavior; page-specific search styling belongs here only. */
/* Shared shell headers are in normal flow, so pages reserve no blank space above them. */
html[data-theme="dark"] body{padding-top:0!important}
html[data-theme="dark"] body .global-search.global-search.global-search{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important;
  min-height:44px!important;padding:0!important;overflow:visible!important;
  border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>input[type="search"]{
  box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;min-width:0!important;min-inline-size:0!important;width:100%!important;
  height:38px!important;min-height:38px!important;padding:0 4px!important;border:0!important;border-bottom:1px solid rgba(210,214,224,.27)!important;
  border-radius:0!important;outline:0!important;background:transparent!important;color:#F3F0ED!important;
  font:400 15px Arial,Helvetica,sans-serif!important;box-shadow:none!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;appearance:none!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>input[type="search"]::placeholder{color:#A6A4A6!important;opacity:1!important}
html[data-theme="dark"] body .global-search.global-search.global-search>input[type="search"]:hover,
html[data-theme="dark"] body .global-search.global-search.global-search>input[type="search"]:focus{
  border-bottom-color:rgba(235,239,248,.86)!important;box-shadow:0 9px 17px -13px rgba(228,235,250,.9)!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-submit{
  box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;
  flex:0 0 44px!important;inline-size:44px!important;width:44px!important;min-inline-size:44px!important;min-width:44px!important;
  block-size:44px!important;height:44px!important;min-block-size:44px!important;min-height:44px!important;margin:0!important;padding:0!important;
  border:1px solid rgba(220,224,234,.14)!important;border-radius:50%!important;background:#1b1d22!important;color:#E9EDF5!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.015),0 4px 14px rgba(0,0,0,.22)!important;
  cursor:pointer!important;transition:border-color .18s ease,box-shadow .18s ease,color .18s ease,transform .18s ease!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-submit:hover,
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-submit:focus-visible{
  background:#1b1d22!important;color:#F3F5FA!important;border-color:rgba(231,236,247,.36)!important;
  box-shadow:0 0 14px rgba(220,230,250,.2),0 0 25px rgba(211,223,255,.14)!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-submit:active{transform:scale(.97)!important}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-submit svg{
  display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;
  fill:none!important;stroke:#E9EDF5!important;stroke-width:1.8!important;filter:drop-shadow(0 0 5px rgba(225,233,247,.58))!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-submit span{display:none!important}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-clear{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:0 0 26px!important;
  width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:0!important;
  border:0!important;border-radius:50%!important;background:transparent!important;color:#A6A4A6!important;
  font:500 20px/1 Arial,Helvetica,sans-serif!important;cursor:pointer!important;
}
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-clear:hover,
html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-clear:focus-visible{
  color:#F3F5FA!important;text-shadow:0 0 8px rgba(230,237,250,.65)!important;
}
html[data-theme="dark"] body .live-search.global-search{height:44px!important;margin:15px 16px 13px!important}
html[data-theme="dark"] body .dumc-home-search.global-search{width:100%!important;height:44px!important}
html[data-theme="dark"] body .dumc-toolbar>.global-search{flex:1 1 280px!important;min-width:220px!important;width:auto!important}
@media(max-width:760px){
  html[data-theme="dark"] body .topbar .global-search.global-search.global-search>.global-search-submit{flex-basis:44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  html[data-theme="dark"] body .dumc-toolbar>.global-search{min-width:min(100%,220px)!important}
}

/* Brand title glow follows the same restrained silver text glow as the navigation. */
html[data-theme="dark"] body :is(header.topbar a.brand,header.profile-topbar a.profile-brand) :is(.brand-word-main,.brand-word-accent,.brand-admin-suffix,b){
  transition:text-shadow .18s ease,color .18s ease;
}
html[data-theme="dark"] body :is(header.topbar a.brand,header.profile-topbar a.profile-brand):is(:hover,:focus-visible) :is(.brand-word-main,.brand-word-accent,.brand-admin-suffix,b){
  text-shadow:0 0 7px rgba(238,242,255,.72),0 0 18px rgba(211,223,255,.4)!important;
}


html[data-theme="dark"] body .global-search.global-search.global-search>.global-search-clear[hidden]{display:none!important}
html[data-theme="dark"] body header.profile-topbar a.profile-brand>span{transition:text-shadow .18s ease,color .18s ease}
html[data-theme="dark"] body header.profile-topbar a.profile-brand:is(:hover,:focus-visible)>span,
html[data-theme="dark"] body header.profile-topbar a.profile-brand:is(:hover,:focus-visible)>span b{
  text-shadow:0 0 7px rgba(238,242,255,.72),0 0 18px rgba(211,223,255,.4)!important;
}

/* A hidden header login form must stay hidden after sign-in. The Quiet Halo
   layout forces display:flex on this form, which otherwise overrides [hidden]
   (author display rules beat the browser's built-in [hidden] hiding). The
   first rule outranks the dark-theme flex rule above; the second covers the
   light theme and every other page that loads this shell. */
html[data-theme="dark"] body.home-page .topbar #headerLoginForm.yt-account-actions[hidden]{display:none!important}
/* ================= SECTION: Hidden-form fix ================= */
#headerLoginForm[hidden]{display:none!important}

/* Main title redesign override (2026-12-03): silver "DRM-" + rose-red gradient "Premium. </>", no glow in ANY state (incl. hover).
   Placed last in the shell with higher specificity than the dark-mode brand color rules (158-159) and the hover-glow rule (~641). */
html[data-theme="dark"] body header.topbar a.brand .brand-word.word .brand-word-main.w1{font-family:"Manrope",sans-serif!important;font-weight:800!important;background:linear-gradient(180deg,#FFFFFF,#DFE7F1 45%,#AEBDD1 78%,#E6EDF6)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
html[data-theme="dark"] body header.topbar a.brand .brand-word.word .brand-word-accent.w2{font-family:"Manrope",sans-serif!important;font-weight:800!important;background:linear-gradient(94deg,#FF1717,#FF1742)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
/* Light mode: "DRM-" must be a DARK slate-silver so it reads on the pale header (white/silver is invisible there). "Premium. </>" keeps the rose-red gradient. */
html[data-theme="light"] body header.topbar a.brand .brand-word.word .brand-word-main.w1{font-family:"Manrope",sans-serif!important;font-weight:800!important;background:linear-gradient(180deg,#64748B,#334155 45%,#0F172A 78%,#475569)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
html[data-theme="light"] body header.topbar a.brand .brand-word.word .brand-word-accent.w2{font-family:"Manrope",sans-serif!important;font-weight:800!important;background:linear-gradient(94deg,#FF1717,#FF1742)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}

/* Reusable styled site name (text-only, no icon) — same design as the header title: silver DRM- + rose-red Premium. </>. Size inherits from context. */
/* ================= SECTION: Shared site title (.drm-name) ================= */
.drm-name{font-family:"Manrope",sans-serif!important;font-weight:800!important;white-space:nowrap!important;text-shadow:none!important;filter:drop-shadow(0 1px 3px rgba(0,0,0,.35)) drop-shadow(0 4px 8px rgba(0,0,0,.25))!important}
.drm-name .drm-main{background:linear-gradient(180deg,#FFFFFF,#DFE7F1 45%,#AEBDD1 78%,#E6EDF6)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
.drm-name .drm-accent{background:linear-gradient(94deg,#FF1717,#FF1742)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;text-shadow:none!important}
/* Light mode: dark slate DRM- so it reads on pale backgrounds. */
html[data-theme="light"] .drm-name .drm-main{background-image:linear-gradient(180deg,#64748B,#334155 45%,#0F172A 78%,#475569)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}
/* On the red promo panels the name must be solid white (gradient is unreadable on red). */
#signupDialog .su-toggle-panel .drm-name{filter:none!important}
#signupDialog .su-toggle-panel .drm-name .drm-main,#signupDialog .su-toggle-panel .drm-name .drm-accent{background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;color:#fff!important;text-shadow:none!important}
/* On the white success panel the DRM- must be dark slate in both themes. */
#suSuccess .drm-name .drm-main{background-image:linear-gradient(180deg,#64748B,#334155 45%,#0F172A 78%,#475569)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}

/* Footer brand must clear the floating bottom button (it covered the brand on the homepage). */
/* ================= SECTION: Footer + theme pill position ================= */
footer#about{padding-bottom:64px!important}
/* Theme pill: move to bottom-right so it never covers the footer brand (bottom-left). */
.drm-theme-switch{left:auto!important;right:12px!important}
