/* V68: repair real dark-mode leaks found by computed-style audit on V67.
   This file affects appearance only and preserves all teaching algorithms/cube surfaces. */
body.rubik-hub-page.dark :is(.rubik-two-look-stage,.rubik-two-look-case,
.rubik-two-look-coach,.rubik-studio-cube,.rubik-studio-view,
.rubik-studio-control-rail,.rubik-studio-sequence-zone,
.rubik-studio-move-strip,.rubik-studio-live-move,.rubik-studio-timeline,
.rubik-notation-live,.rubik-notation-explanation,.rubik-studio-space-tip){
 background:#233a56!important;
 border-color:#6685a8!important;
 color:#f2f7ff!important;
}
body.rubik-hub-page.dark .rubik-two-look-stage{
 background:linear-gradient(145deg,#223854,#293d5c)!important;
 border-color:#7193b6!important;
}
body.rubik-hub-page.dark .rubik-two-look-stage-selected{
 border-color:#acd8ff!important;
 box-shadow:0 0 0 3px #7abaf244!important;
}
body.rubik-hub-page.dark .rubik-two-look-case{
 background:#1c304a!important;
 border-color:#6e90b4!important;
}
body.rubik-hub-page.dark .rubik-two-look-case:hover,
body.rubik-hub-page.dark .rubik-two-look-case:focus-visible{
 background:#315474!important;border-color:#b0d9ff!important;
}
body.rubik-hub-page.dark :is(.rubik-two-look-heading h3,.rubik-two-look-case strong,
.rubik-two-look-lesson h4,.rubik-two-look-practice-lesson h3,
.rubik-two-look-index,.rubik-studio-control-rail>strong,
.rubik-studio-progress,.rubik-studio-stage-footer,
.rubik-studio-timer strong,.rubik-studio-form label,
.rubik-studio-live-move,.rubik-studio-current-symbol){
 color:#f5faff!important;
}
body.rubik-hub-page.dark :is(.rubik-two-look-heading p,.rubik-two-look-coach,
.rubik-two-look-case-note,.rubik-two-look-case code,
.rubik-two-look-case span:last-child,.rubik-studio-hint,
.rubik-studio-challenge,.rubik-studio-speed-note,
.rubik-studio-sequence-zone label,.rubik-studio-space-tip,
.rubik-studio-live-caption,.rubik-notation-explanation p,
.rubik-studio-progress){
 color:#d4e5fa!important;
}
body.rubik-hub-page.dark .rubik-two-look-index{
 background:#365c81!important;border:1px solid #719bc3!important;
}
body.rubik-hub-page.dark .rubik-two-look-case code,
body.rubik-hub-page.dark .rubik-studio-token{
 background:#14263e!important;color:#e5f2ff!important;border-color:#6688b0!important;
}
body.rubik-hub-page.dark .rubik-studio-token.completed{
 background:#225a4e!important;color:#dafff2!important;
}
body.rubik-hub-page.dark .rubik-studio-token.current,
body.rubik-hub-page.dark .rubik-studio-token.is-playing{
 background:#f9d16c!important;color:#392700!important;border-color:#eaba50!important;
}
body.rubik-hub-page.dark :is(.rubik-studio-inline-speed select,
.rubik-studio-speed-rail select,.rubik-mobile-section,
.rubik-studio-form select,.rubik-studio-form textarea,
.rubik-alg-search,.rubik-studio-notation-input textarea){
 background:#152942!important;color:#f6faff!important;border:1px solid #87a9ce!important;
}
body.rubik-hub-page.dark :is(.rubik-studio-speed-pills button,
.rubik-two-look-back,.rubik-two-look-free,
.rubik-studio-actions button,.rubik-3d-controls button){
 background:#2a5075!important;color:#f5faff!important;border:1px solid #80a9cd!important;
}
body.rubik-hub-page.dark :is(.rubik-studio-speed-pills button[aria-pressed=true],
.rubik-two-look-free){background:#326eaa!important;border-color:#c0e2ff!important}
body.rubik-hub-page.dark :is(.rubik-studio-speed-pills button,
.rubik-two-look-back,.rubik-two-look-free,
.rubik-studio-actions button,.rubik-3d-controls button):hover{
 background:#426f9b!important;color:#fff!important;
}
body.rubik-hub-page.dark :is(.rubik-studio-form,.rubik-studio-cube) :is(button,select,textarea):focus-visible{
 outline:3px solid #c4e5ff!important;outline-offset:2px!important;
}
/* These surfaces are intentionally light because cube faces and 2D diagrams
   require white/yellow face separation. Their CAPTIONS must instead be dark. */
body.rubik-hub-page.dark :is(.rubik-net-view,.rubik-full-view){
 background:#f1f7ff!important;border-color:#99b7d5!important;color:#173d65!important;
}
body.rubik-hub-page.dark :is(.rubik-net-view,.rubik-full-view)
:is(h2,h3,h4,p,span,strong,small,figcaption,label){
 color:#153e68!important;
}
body.rubik-hub-page.dark .rubik-studio-cube .rubik-studio-progress{color:#e1f0ff!important}
body.rubik-hub-page.dark .rubik-two-look-lesson>p,
body.rubik-hub-page.dark .rubik-two-look-lesson li,
body.rubik-hub-page.dark .rubik-two-look-practice-lesson li{
 color:#d6e7fa!important;
}
body.rubik-hub-page.dark :is(.rubik-alg-code,.rubik-two-look-exact-algorithm){
 background:#172b45!important;color:#f4f9ff!important;border-color:#668fb7!important;
}
/* Admin dark mode: avoid pale labels on dark content and preserve clear keyboard focus. */
:root[data-admin-effective-theme="dark"] #webCmsAdmin
:is(.cms-v59-group,.cms-v60-workspace,.web-cms-inventory,.web-cms-editors,
.web-cms-live,.cms-v30-capacity){
 color:#eff6ff!important;
}
:root[data-admin-effective-theme="dark"] #webCmsAdmin
:is(.web-cms-inventory,.cms-v59-group) :is(h2,h3,strong,label,p,small){
 color:#e7f1ff!important;
}
:root[data-admin-effective-theme="dark"] #console
:is(.owner-studio-card,.owner-studio-sidebar-links a):focus-within{
 outline:2px solid #a8d9ff;outline-offset:2px;
}
