.theme-switch-form,.author-sidebar-theme{display:flex;align-items:center;gap:.5rem;margin:0}
.theme-switch{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;color:var(--k-text,var(--ink,inherit));font:600 .75rem/1.2 Manrope,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.theme-switch input{appearance:none;display:inline-flex;align-items:center;flex:0 0 40px;width:40px;height:28px;margin:0;padding:3px;border:1px solid var(--k-muted,var(--muted,currentColor));border-radius:20px;background:var(--k-surface-2,var(--panel,transparent)) !important;cursor:pointer;transition:background .15s,border-color .15s}
.theme-switch input::before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:var(--k-text,var(--ink,currentColor));transition:transform .15s}
.theme-switch input:checked{border-color:var(--k-accent,var(--acid,currentColor));background:var(--k-accent,var(--acid,currentColor)) !important}
.theme-switch input:checked::before{transform:translateX(16px);background:var(--k-accent-ink,var(--acid-ink,Canvas))}
.theme-switch input:focus-visible{outline:3px solid var(--k-focus,var(--focus,currentColor));outline-offset:3px}
.theme-switch-track{display:none}
.theme-switch-apply{min-height:36px;padding:5px 9px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;cursor:pointer}
.theme-switch-form[data-theme-switch-ready] .theme-switch-apply,.author-sidebar-theme[data-theme-switch-ready] .theme-switch-apply{display:none}
.public-viewer-sidebar .theme-switch-form{margin:auto 12px 14px}
@media(max-width:640px){.theme-switch-label{font-size:.7rem}}
