/* V72 — computed-style fixes for five user-reported Rubik night-mode screens.
   Scoped to dark modes only. Stickers, algorithm states and owner data untouched. */
body.rubik-hub-page.dark .rubik-level-picker {
 background:#223851!important; border:1px solid #6b8caf!important;
 color:#f2f7ff!important; box-shadow:none!important;
}
body.rubik-hub-page.dark .rubik-level-picker label,
body.rubik-hub-page.dark .rubik-level-picker label span {
 color:#eff7ff!important;
}
body.rubik-hub-page.dark .rubik-level-picker p{
 color:#cfdef2!important;font-weight:600!important;line-height:1.65!important;
}
body.rubik-hub-page.dark .rubik-level-picker select{
 background:#142941!important;border:1px solid #86abd0!important;
 color:#fff!important;color-scheme:dark;
}
body.rubik-hub-page.dark .rubik-show-all-cases {
 background:#284a70!important;color:#f4f9ff!important;
 border:1px solid #8eb9df!important;
}
body.rubik-hub-page.dark .rubik-show-all-cases:hover,
body.rubik-hub-page.dark .rubik-show-all-cases:focus-visible{
 background:#355f88!important;color:#fff!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-art{
 background:#304a65!important;border:1px solid #718dab!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card{
 background:#23364e!important;border-color:#6684a6!important;color:#f2f8ff!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card strong,
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card small {
 color:#edf6ff!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-card-open {
 background:#2a5277!important;color:#f4faff!important;
 border:1px solid #88b0d5!important;padding:4px 8px!important;
 border-radius:7px!important;font-weight:800!important;text-decoration:none!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-height:29px;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card:focus-visible {
 outline:3px solid #bce1ff!important;outline-offset:2px!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card:hover{
 border-color:#a6d3f7!important;background:#2d4765!important;
}
body.rubik-hub-page.dark .rubik-card-open,
body.rubik-hub-page.dark :is(.rubik-back,.rubik-set-switch,.rubik-practice-choice){
 color:#e9f5ff!important;
}
body.rubik-hub-page.dark :is(.rubik-case-toolbar,.rubik-study-practice,.rubik-section-header)
 :is(label,p,small,span){color:#d7e8fa!important}

/* Beginner course original page: the lesson route was bright white with near-white text. */
body.rubik-guide-page.dark .rubik-course .rubik-module {
 background:#293f59!important;border:1px solid #7391b1!important;color:#edf6ff!important;
}
body.rubik-guide-page.dark .rubik-course .rubik-module :is(h3,p,strong,small){
 color:#f5faff!important;
}
body.rubik-guide-page.dark .rubik-course .rubik-module a{
 background:#294f77!important;color:#edf8ff!important;
 border:1px solid #94c2ea!important;border-radius:9px;
 display:inline-flex;align-items:center;min-height:38px;
 padding:8px 12px;margin-top:9px;text-decoration:none!important;
 font-weight:850!important;
}
body.rubik-guide-page.dark .rubik-course .rubik-module a:hover,
body.rubik-guide-page.dark .rubik-course .rubik-module a:focus-visible{
 background:#396994!important;color:#fff!important;
 outline:2px solid #b9ddfa;outline-offset:2px;
}
body.rubik-guide-page.dark .rubik-course .rubik-pattern-guide .rubik-face-example figcaption {
 color:#f5faff!important;
}
body.rubik-guide-page.dark .rubik-course :is(.rubik-card,.rubik-algorithm,.rubik-note){
 background:#233953!important;border-color:#6987a9!important;color:#ebf5ff!important;
}
body.rubik-guide-page.dark .rubik-course :is(.rubik-card,.rubik-algorithm,.rubik-note)
 :is(h2,h3,p,strong,small,figcaption){color:#e9f5ff!important;}
body.rubik-guide-page.dark .rubik-course .rubik-diagram{
 background:#293d54!important;border:1px solid #7795af!important;
}
body.rubik-guide-page.dark .rubik-course .rubik-controls button{
 background:#2b4d70!important;color:#f5faff!important;
 border:1px solid #8fb9dc!important;
}
body.rubik-guide-page.dark .rubik-course .rubik-controls button:hover,
body.rubik-guide-page.dark .rubik-course .rubik-controls button:focus-visible{
 background:#37658c!important;outline:2px solid #b9e0ff;
}
body.rubik-guide-page.dark .rubik-course .rubik-progress,
body.rubik-guide-page.dark .rubik-course .rubik-section-num{
 color:#d8eaff!important;
}
/* Reference diagrams keep their true white face stickers, but not a white panel. */
body.rubik-guide-page.dark .rubik-course :is(.rubik-full-view,.rubik-net-view){
 background:#263e58!important;border-color:#7698b8!important;color:#f5faff!important;
}
body.rubik-guide-page.dark .rubik-course :is(.rubik-full-view,.rubik-net-view) h4{
 color:#f8fbff!important;
}
body.rubik-guide-page.dark .rubik-course .rubik-cube-3d{
 background:transparent!important;
}
body.rubik-hub-page.dark .rubik-studio-view .rubik-full-view.rubik-overlay-cube-view
 :is(.rubik-3d-controls,.rubik-notation-live-actions) button {
 background:#2b5178!important;color:#eff8ff!important;
 border:1px solid #91bfe8!important;
}
body.rubik-hub-page.dark .rubik-studio-view .rubik-full-view.rubik-overlay-cube-view
 :is(.rubik-3d-controls,.rubik-notation-live-actions) button:hover{
 background:#396893!important;
}
body.rubik-hub-page.dark .rubik-studio-view .rubik-full-view.rubik-overlay-cube-view
 :is(.rubik-3d-controls,.rubik-notation-live-actions) button:focus-visible{
 outline:3px solid #a4d3fc!important;outline-offset:2px;
}
@media(max-width:650px){
 body.rubik-guide-page.dark .rubik-course .rubik-modules{
 grid-template-columns:minmax(0,1fr)!important;gap:11px;
 }
 body.rubik-hub-page.dark .rubik-level-picker{
 padding:12px!important;
 }
}

body.rubik-guide-page.dark .footer{background:#14273d!important;color:#dbeaff!important;border-top:1px solid #53708c!important}
body.rubik-guide-page.dark .footer .wrap{color:#e8f3ff!important}
body.rubik-hub-page.dark .rubik-case-art .rubik-case-thumbnail{background:transparent!important}

/* An eight-column desktop gallery made the algorithm labels unreadably small. */
body.rubik-hub-page.dark .rubik-case-grid{
 grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr))!important;
 gap:13px!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card{
 gap:8px!important;padding:12px!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card strong{
 font:850 clamp(13px,.97vw,15px)/1.35 system-ui,Tahoma,sans-serif!important;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-case-card small{
 font:700 12px/1.55 ui-monospace,Consolas,monospace!important;
 overflow-wrap:anywhere;min-height:24px;
}
body.rubik-hub-page.dark .rubik-case-grid .rubik-card-open{min-height:34px}
