/* Match the dashboard's ui.css Light / Dark / System selector. */
.orbi-theme-control.theme-dd{position:relative;flex:none;--theme-surface:var(--orbi-dark-field,var(--surface));--theme-surface-2:var(--orbi-dark-surface-2,var(--surface-2));--theme-line:var(--orbi-dark-field-line,var(--line));--theme-text:var(--orbi-dark-text,var(--text));--theme-accent:var(--orbi-dark-accent,var(--accent))}
.orbi-theme-control .theme-btn{width:40px;height:40px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--theme-line);background:var(--theme-surface);border-radius:10px;cursor:pointer;color:var(--theme-text);padding:0}
.orbi-theme-control .theme-btn:hover,.orbi-theme-control .theme-btn.open{background:var(--theme-surface-2)}
.orbi-theme-control [data-current]{display:grid;place-items:center}.orbi-theme-control .theme-btn svg{width:18px;height:18px}
.orbi-theme-control .theme-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:120;min-width:170px;background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:12px;padding:6px;box-shadow:0 10px 30px #00000024;transform-origin:top right;animation:orbi-menu-pop .18s cubic-bezier(.2,.8,.2,1) both}
.orbi-theme-control .theme-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 9px;border:0;background:none;border-radius:8px;cursor:pointer;color:var(--theme-text);font:inherit;font-size:14px;text-align:left;white-space:nowrap}
.orbi-theme-control .theme-opt span{flex:1}.orbi-theme-control .theme-opt svg{width:18px;height:18px;flex:none}.orbi-theme-control .theme-opt:hover{background:var(--theme-surface-2)}.orbi-theme-control .theme-opt.on{color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 10%,var(--theme-surface))}.orbi-theme-control [hidden]{display:none!important}.orbi-theme-control button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.au .au-top .orbi-theme-control,.pw-brand .orbi-theme-control,.pw-billing-head .orbi-theme-control{margin-left:auto}
@keyframes orbi-menu-pop{from{opacity:0;transform:translateY(-4px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:600px){.orbi-theme-control .theme-btn{width:36px;height:36px;border-radius:9px}.au .au-top{gap:8px}.au .au-brand-copy{flex:1;min-width:0}}
@media(prefers-reduced-motion:reduce){.orbi-theme-control .theme-menu{animation:none}}
/* SVGElement.hidden is not a reflected HTML property. The selected radio state is the authoritative checkmark visibility. */
.orbi-theme-control .theme-opt[aria-checked="false"] .theme-check{display:none!important}
.orbi-theme-control .theme-opt[aria-checked="true"] .theme-check{display:block!important}

/* Public demo loads the premium styles, which define dark auth tokens globally.
   Its selector must use the current public surface, not the auth-only tokens. */
.orbi-public .orbi-theme-control.theme-dd{--theme-surface:var(--surface);--theme-surface-2:var(--surface-2);--theme-line:var(--line);--theme-text:var(--text);--theme-accent:var(--accent)}

/* Cross-document navigation: keep the public rail in place and crossfade
   content; use a matching entry/exit on engines without navigation transitions. */
@view-transition{navigation:auto}
.orbi-public .landing-orbit{view-transition-name:orbi-public-rail}
::view-transition-group(root),::view-transition-group(orbi-public-rail){animation-duration:340ms;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
::view-transition-old(root),::view-transition-new(root),::view-transition-old(orbi-public-rail),::view-transition-new(orbi-public-rail){animation-duration:340ms;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
html[data-orbi-route-fallback] body.orbi-public{animation:orbi-public-enter 260ms ease-out both}
html[data-orbi-route-fallback] .au .au-main{animation:orbi-public-enter 260ms ease-out both}
html[data-orbi-route-fallback][data-orbi-route-leaving] body.orbi-public,html[data-orbi-route-fallback][data-orbi-route-leaving] .au{animation:orbi-public-leave 160ms ease-in both}
@keyframes orbi-public-enter{from{opacity:.35}to{opacity:1}}
@keyframes orbi-public-leave{from{opacity:1}to{opacity:.35}}
@media(prefers-reduced-motion:reduce){
 @view-transition{navigation:none}
 ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation-duration:0s!important}
 html[data-orbi-route-fallback] body.orbi-public,html[data-orbi-route-fallback] .au .au-main,html[data-orbi-route-fallback][data-orbi-route-leaving] body.orbi-public,html[data-orbi-route-fallback][data-orbi-route-leaving] .au{animation:none!important}
}

.orbi-theme-control .theme-opt{line-height:1.3;padding-block:8px;align-items:center}.orbi-theme-control .theme-opt>svg{display:block;align-self:center}.orbi-theme-control .theme-opt span{line-height:1.3}
