.thm-wrap{position:relative;flex:none}
.vbar-l+.thm-wrap{margin-left:auto}
.thm-wrap+.nbell-wrap{margin-left:0}
.thm-btn{position:relative;width:38px;height:38px;flex:none;display:grid;place-items:center;padding:0;cursor:pointer;font:inherit;
  border:1px solid var(--line);border-radius:50%;background:var(--card,#fff);color:var(--ink-2,var(--ink));
  transition:background .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease)}
.thm-btn:hover,.thm-wrap.is-on .thm-btn{background:var(--line-2);color:var(--ink)}
.thm-btn .ic{display:none}
.thm-btn[data-mode="light"] .thm-i-light,.thm-btn[data-mode="dark"] .thm-i-dark,.thm-btn[data-mode="auto"] .thm-i-auto{display:block}
.thm-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:240;width:210px;padding:6px;
  background:var(--card,#fff);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 44px -20px rgba(18,21,28,.45),0 4px 12px -8px rgba(18,21,28,.25);
  opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s var(--ease),transform .15s var(--ease),visibility .15s}
.thm-wrap.is-on .thm-menu{opacity:1;visibility:visible;transform:none}
.thm-menu p{margin:0;padding:6px 10px 6px;font-size:11.5px;font-weight:600;color:var(--ink-3)}
.thm-it{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;cursor:pointer;border:0;border-radius:9px;
  background:transparent;font:inherit;font-size:13.5px;color:var(--ink-2);text-align:left;transition:background .12s var(--ease),color .12s var(--ease)}
.thm-it:hover{background:var(--line-2);color:var(--ink)}
.thm-it .ic{flex:none;color:var(--ink-3)}
.thm-it span{flex:1;min-width:0}
.thm-it::after{content:"";flex:none;width:6px;height:10px;margin:0 3px 3px 0;border:solid var(--brand);border-width:0 2px 2px 0;transform:rotate(45deg);opacity:0}
.thm-it.is-on{color:var(--ink);font-weight:600}
.thm-it.is-on .ic{color:var(--ink)}
.thm-it.is-on::after{opacity:1}
.thm-k{flex:none;display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:6px;background:var(--line-2);box-shadow:inset 0 -1px 0 var(--line);color:var(--ink-3);font:600 10.5px/1 "Google Sans",Arial,sans-serif;letter-spacing:.02em;white-space:nowrap}
.thm-it.is-on .thm-k{color:var(--ink-2)}
.thm-menu{width:236px}
@media (hover:none),(pointer:coarse){.thm-k{display:none}.thm-menu{width:210px}}
html.thm-swap *,html.thm-swap *::before,html.thm-swap *::after{transition:none!important}
html.thm-fade,html.thm-fade *,html.thm-fade *::before,html.thm-fade *::after{
  transition:background-color .45s var(--ease-press),color .45s var(--ease-press),border-color .45s var(--ease-press),
    fill .45s var(--ease-press),stroke .45s var(--ease-press),box-shadow .45s var(--ease-press),outline-color .45s var(--ease-press)!important}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.thm-vt::view-transition-group(root){animation-duration:.56s}
.thm-btn.is-turn .ic{animation:thmTurn .5s var(--ease)}
@keyframes thmTurn{0%{opacity:0;transform:rotate(-90deg) scale(.4)}60%{opacity:1}100%{opacity:1;transform:none}}
.thm-it .ic{transition:transform .25s var(--ease)}
.thm-it:hover .ic{transform:rotate(-14deg) scale(1.08)}
@media (prefers-reduced-motion:reduce){
  html.thm-fade,html.thm-fade *,html.thm-fade *::before,html.thm-fade *::after{transition:none!important}
  .thm-btn.is-turn .ic,.thm-it:hover .ic{animation:none;transform:none}
}
@media (max-width:760px){.thm-btn{width:36px;height:36px}}
@media (max-width:560px){.thm-menu{right:-6px;left:auto;width:min(210px,calc(100vw - 24px))}}
