/* Theme controls only: no existing component/layout overrides. */
.yk-theme-switch{
  display:inline-flex;align-items:center;justify-content:space-between;gap:10px;
  box-sizing:border-box;min-height:44px;padding:8px 12px;max-width:100%;
  border:1px solid rgba(214,222,236,.22);border-radius:10px;
  background:rgba(255,255,255,.035);color:#f6f3ef;
  font:inherit;font-size:13px;font-weight:600;line-height:1.25;
  cursor:pointer;white-space:nowrap;flex-shrink:0;
}
.yk-theme-switch__value{
  display:inline-flex;align-items:center;gap:6px;font-size:12px;
  padding:3px 7px;border-radius:6px;background:rgba(255,255,255,.08);
}
.yk-theme-switch__value::before{
  content:"";width:8px;height:8px;border-radius:50%;
  background:#b9c0cc;box-shadow:0 0 0 1px rgba(255,255,255,.3);
}
.yk-theme-switch[aria-checked="true"] .yk-theme-switch__value::before{background:#f3eadb;}
.yk-theme-switch:hover{border-color:#ad4a62;background:rgba(173,74,98,.14);}
.yk-theme-switch[hidden]{display:none!important;}
.yk-theme-switch:focus-visible{outline:3px solid #c99a45;outline-offset:3px;}
.yk-theme-switch-desktop{display:inline-flex;align-items:center;flex-shrink:0;}
.menu__list > .yk-theme-switch,.mobile-drawer nav > .yk-theme-switch,.auth-mobile-drawer nav > .yk-theme-switch{width:100%;}
.mobile-drawer nav > .yk-theme-switch,.auth-mobile-drawer nav > .yk-theme-switch{margin-bottom:10px;}
@media(max-width:768px){.yk-theme-switch-desktop{display:none;}}
/* The existing member shell scales its mobile nav to .8. Only the new
   control compensates for that scale; existing links/layout stay untouched. */
@media(max-width:768px){
  html[data-theme-scope="member"] body.page--scaled .nav .menu__list > .yk-theme-switch{min-height:56px;}
}
/* Standalone checkout keeps its .8 shell at desktop widths as well. */
html[data-theme-scope="member"][data-theme-surface="payment"] body.page--scaled .nav .menu__list > .yk-theme-switch{min-height:56px;}
/* Only the compact legal/verification headers without a drawer, when choice is On.
   Off emits neither the new class nor the control; its logo/CTA are untouched. */
@media(max-width:767.98px){
  .nav__row--theme-choice .brand.brand--logo.brand--public-logo .brand__early-access{display:none;}
  .nav__row--theme-choice .nav__actions > .yk-theme-switch{padding:8px 4px;gap:0;}
  .nav__row--theme-choice .nav__actions > .yk-theme-switch > span:first-child{display:none;}
  .nav__row--theme-choice .nav__actions > .yk-theme-switch .yk-theme-switch__value{padding:3px 4px;gap:3px;}
}
/* The desktop header and all drawers use the same Light control roles. */
html[data-theme="light"]:not([data-theme-scope="admin"]) .yk-theme-switch{
  color:var(--yk-public-text,#302824);background:var(--yk-public-surface,#fffdf9);
  border-color:var(--yk-public-border-strong,#a39487);
}
html[data-theme="light"]:not([data-theme-scope="admin"]) .yk-theme-switch__value{
  background:var(--yk-public-secondary,#eee7dc);
}
html[data-theme="light"]:not([data-theme-scope="admin"]) .yk-theme-switch__value::before{
  background:var(--yk-public-link,#861a33);box-shadow:none;
}
html[data-theme="light"]:not([data-theme-scope="admin"]) .yk-theme-switch:focus-visible{
  outline-color:var(--yk-public-focus-ring,#861a33);
}
html[data-theme="light"]:not([data-theme-scope="admin"]) .yk-theme-switch:hover{
  background:var(--yk-public-secondary,#eee7de);
  border-color:var(--yk-public-link,#861a33);
}
