/* 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;
  }
}
