.mm-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:40px;min-height:40px;padding:5px 10px;border:1px solid #829271;border-radius:7px;background:#fff;color:#354529;cursor:pointer;font:700 14px Arial,sans-serif}
.mm-theme-toggle>span:first-child{font-size:25px;line-height:1}
#menuLeft .mm-theme-toggle{margin:5px auto;display:flex;max-width:100%}
.mm-theme-toggle:focus-visible{outline:3px solid #16849b;outline-offset:2px}
.mm-theme-toggle-public{position:fixed;right:12px;bottom:12px;z-index:1900}
.mm-theme-settings{position:fixed;right:12px;bottom:12px;z-index:1900;font:12px Arial,sans-serif;background:#fff;color:#354529;border:1px solid #829271;border-radius:6px;padding:8px}
.mm-theme-settings summary{cursor:pointer}
.mm-theme-settings-menu{position:relative;right:auto;bottom:auto;margin:6px 3px;background:transparent;border:0;padding:4px;font-size:18px}
.mm-theme-settings-menu[open] .mm-theme-toggle{position:absolute;left:100%;bottom:0;width:135px;z-index:1901}
html[data-mm-theme="dark"] :is(.reatRigth,.reat-card,.pReat,.block-reat-tren,.dReat,.aReat,.sl3-2,#tor){background:#303335!important;background-image:none!important;color:#edf0ec!important;border-color:#535a52!important}
html[data-mm-theme="dark"] :is(.nameReat,.resReat,.countReat,#tor p,#tor strong,#tor span){color:#dce7d2!important}
.mm-theme-settings .mm-theme-toggle{margin-top:8px;font-size:12px;min-height:30px}
html[data-mm-theme="dark"] .mm-theme-settings{background:#303335;color:#edf0ec}
html[data-mm-theme="dark"] :is(.mn-btn:not(.active),.mn-thesis-btn,.mn-discipline,.mn-rating-card,.mn-rating-row,.mn-format-link,.mn-ach-item,.mn-modal-box,.mn-history-search,.mn-search-toggle,.preset-switch:not(.is-active),.exp-table-wrap,.b_Index,.inspan,#afterAuth,.obvTren,.Tli,#b4,#block_ay,.home-podium,.social-login-card){background:#303335!important;background-image:none!important;color:#edf0ec!important;border-color:#535a52!important}
html[data-mm-theme="dark"] :is(table,thead,tbody,tr,th,td){background-color:#303335!important;color:#edf0ec!important;border-color:#535a52!important}
html[data-mm-theme="dark"] th{background-color:#383c3e!important}
html[data-mm-theme="dark"] :is(.exp-row-link,.results-user-name,.results-score-count,.results-recall-time,.mn-thesis-btn strong,.mn-thesis-btn span,.mn-rating-row strong,.mn-rating-row small,.mn-rating-card h3,.mn-rating-card p,.mn-format-link,.tet,.zoptex,.inspan){color:#dce7d2!important}
html[data-mm-theme="dark"] :is(.mn-avatar,.results-avatar,.mn-discipline-status){background:#28432e!important;color:#dcf0d7!important}
html[data-mm-theme="dark"] .mn-row.mn-row-tournament{border-color:#c49a32!important}
html[data-mm-theme="dark"] :is(.mn-state.done,.mn-badge.gold){color:#ffdf82!important;background:#51462c!important}
html[data-mm-theme="dark"]{color-scheme:dark;--exp-bg:#242628;--exp-surface:#303335;--exp-surface-2:#383c3e;--exp-text:#edf0ec;--exp-muted:#bcc4b7;--exp-border:#535a52;--exp-green-dark:#b4d779;--exp-shadow:0 12px 36px rgba(0,0,0,.22)}
html[data-mm-theme="dark"] body{background:#242628!important;color:#edf0ec!important}
html[data-mm-theme="dark"] :is(#b1,.obvjz,.experimental-page,.spectate-page,.duelPage){background-color:#242628!important;background-image:none!important;color:#edf0ec}
html[data-mm-theme="dark"] :is(.experimental-shell,.spectate-shell,.duelShell,.mn-shell,.duelScene,.duelSceneTable,.duelSceneCenter,.duelCard,.experimental-card,.settings-card,.phase-card,.results-card,.spectate-card,.spectate-player-card,.spectate-recall-shell,.spectate-headline,.spectate-lobby-intro,.spectate-final-dialog,.spectate-score-dialog,.tournament-admin-panel,.mm-tournament-score-drawer,.mn-card,.mn-row,.mn-row-tournament){background:#303335!important;color:#edf0ec!important;border-color:#535a52;box-shadow:none}
html[data-mm-theme="dark"] :is(h1,h2,h3,h4,p,label,.duelRoomTitle,.duelSceneTitle,.spectate-player-title,.spectate-focus-name,.mn-row-name,.phase-title,.settings-title,.results-title){color:#edf0ec}
html[data-mm-theme="dark"] :is(.duelSceneCenter,.duelSceneTable){background:#363a37!important}
html[data-mm-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){background:#26292b!important;color:#f2f4ef!important;border-color:#687062!important}
html[data-mm-theme="dark"] :is(.mm-theme-toggle,.exp-button.is-secondary,.duelBtn.alt,.spectate-observer-switch,.spectate-observer-btn:not(.is-active),.spectate-view-pill,.mm-quick-home,.mm-tournament-score-open,.mm-tournament-score-close){background:#383c3e!important;color:#e6eddc!important;border-color:#67745d}
html[data-mm-theme="dark"] :is(#menuLeft,.blokD,.knop_menu,.mm-duel-panel,.mm-notify-panel,.mm-duel-item,.mm-notify-item){background:#303335!important;color:#edf0ec!important}
html[data-mm-theme="dark"] :is(#menuLeft a,.blokD a,.mm-duel-item-title,.mm-duel-item-text,.mm-duel-item-foot){color:#dce7d2!important}
html[data-mm-theme="dark"] :is(.mm-tournament-scorebar,.mm-tournament-score-heading,.mm-tournament-score-table th,.mm-tournament-score-table td,.mm-tournament-score-table td:nth-child(2),.mm-tournament-score-table tr.is-out td,.mm-tournament-score-table .total){background:#303335!important;color:#e4ebde!important;border-color:#535a52}
html[data-mm-theme="dark"] :is(.mm-tournament-rank,.mm-tournament-rank .points,.mm-tournament-round){color:#dce7d2}
html[data-mm-theme="dark"] :is(.mm-tournament-rank.is-out,.mm-tournament-score-table tr.is-out td){color:#9a9f97!important}
html[data-mm-theme="dark"] :is(.digit-result-cell,.recall-digit-cell,.results-answer-cell,.image-recall-slot,.image-result-card,.spectate-image-order-card,.spectate-flow-pill,.spectate-lobby-player,.duelPlayerCard,.duelScenePlayer,.duelChat,.duelChatMessage,.spectate-places-row,.spectate-final-badge){background:#383c3e!important;color:#edf0ec!important}
html[data-mm-theme="dark"] :is(.digit-result-cell,.results-answer-cell,.image-result-card,.spectate-image-order-card).is-correct{background:#28432e!important;border-color:#65ac68!important}
html[data-mm-theme="dark"] :is(.digit-result-cell,.results-answer-cell,.image-result-card,.spectate-image-order-card).is-wrong{background:#503233!important;border-color:#d16a63!important}
html[data-mm-theme="dark"] .digit-result-cell.is-correct strong{background:#28432e!important;color:#dcf0d7!important}
html[data-mm-theme="dark"] .digit-result-cell.is-wrong strong{background:#503233!important;color:#ffd8d3!important}
html[data-mm-theme="dark"] :is(.digit-result-cell strong,.digit-result-cell em,.digit-result-cell small,.results-answer-cell strong){color:#edf0ec!important}
html[data-mm-theme="dark"] .recall-input.is-correct{border-color:#65ac68!important}
html[data-mm-theme="dark"] .recall-input.is-wrong{border-color:#d16a63!important}
html[data-mm-theme="dark"] :is(.spectate-player-card,.spectate-grid-cell).is-winner{border-color:#65ac68!important}
html[data-mm-theme="dark"] .mn-tournament-label{color:#e5bd60}
html[data-mm-theme="dark"] :is(.spectate-digit-cell,.spectate-text-cell,.spectate-photo,.image-preview-box,.image-preview-frame,.image-tray-panel,.image-order-slot,.recall-panel,.memorize-panel,.settings-panel,.result-panel,.duelScenePlayerCard,.duelSceneCenterCard,.spectate-focus-card,.spectate-final-content){background:#383c3e!important;color:#edf0ec!important;border-color:#535a52}
html[data-mm-theme="dark"] .spectate-digit-cell.is-correct{background:#28432e!important;border-color:#65ac68!important}
html[data-mm-theme="dark"] .spectate-digit-cell.is-wrong{background:#503233!important;border-color:#d16a63!important}
html[data-mm-theme="dark"] :is(.spectate-digit-cell strong,.spectate-digit-cell em,.spectate-digit-cell span,.spectate-player-score,.spectate-places-title,.spectate-final-title,.spectate-final-sub,.duelSceneStatus,.duelSceneHint){color:#e8ece4!important}
html[data-mm-theme="dark"] :is(.spectate-place-pill,.spectate-player-metrics span,.spectate-live-chat,.spectate-live-chat-action-btn.is-light,.spectate-score-button,.spectate-final-close,.tournament-admin-controls button,.duelSceneBoardInner,.duelSeat,.duelSeatStats>div,.duelSceneWaiting,.duelSceneWaitingItem,.duelChatBox,.duelChatList,.duelStakeRow,.duelStageStep){background:#383c3e!important;color:#edf0ec!important;border-color:#63705c}
html[data-mm-theme="dark"] :is(.duelSceneBoardTitle,.duelSceneBoardText,.duelSeatName,.duelSeatStats strong,.duelSceneWaitingTitle,.duelSceneWaitingItem strong,.duelSceneWaitingItem span){color:#e4ebde!important}
html[data-mm-theme="dark"] :is(.spectate-place-pill.is-winner,.spectate-final-badge.is-gold,.spectate-places-row.is-gold){background:#51462c!important;color:#ffdf82!important;border-color:#c49a32!important}
html[data-mm-theme="dark"] .spectate-player-card.is-lead{border-color:#79a85e!important}
html[data-mm-theme="dark"] .spectate-player-card.is-trail{border-color:#cd7770!important}
html[data-mm-theme="dark"] :is(.spectate-text-card,.spectate-text-memory,.spectate-recall-card,.results-answer-card,.spectate-recall-photo,.spectate-focus-chip,.spectate-summary-strip,.spectate-score-term,.spectate-score-fact,.spectate-score-equation){background:#383c3e!important;color:#edf0ec!important;border-color:#63705c!important}
html[data-mm-theme="dark"] :is(.spectate-text-card small,.spectate-text-card span,.spectate-text-card strong,.spectate-text-memory small,.spectate-text-memory strong,.spectate-answer,.spectate-live-chat,.spectate-place-pill,.spectate-player-metrics span){color:#edf0ec!important}
html[data-mm-theme="dark"] :is(.spectate-text-card.is-correct strong,.spectate-answer.is-correct){background:#28432e!important;color:#dcf0d7!important}
html[data-mm-theme="dark"] :is(.spectate-text-card.is-wrong strong,.spectate-answer.is-wrong){background:#503233!important;color:#ffd8d3!important}
html[data-mm-theme="dark"] :is(.spectate-text-card.is-typo strong,.spectate-answer.is-typo,.spectate-digit-cell.is-typo){background:#51462c!important;color:#ffdf82!important}
html[data-mm-theme="dark"] :is(.spectate-final-close,.spectate-score-close,.spectate-live-chat-action-btn.is-light,.spectate-place-pill,.spectate-player-metrics span){background:#383c3e!important;color:#edf0ec!important}
html[data-mm-theme="dark"] .spectate-live-chat{background:#303335!important;color:#edf0ec!important}
html[data-mm-theme="dark"] :is(.spectate-place-pill.is-winner,.spectate-final-badge.is-gold,.spectate-places-row.is-gold){background:#51462c!important;color:#ffdf82!important}

/* Mode pages and game surfaces share the same dark palette. */
html[data-mm-theme="dark"] :is(.mm-shell,.ml-shell,.mm-card,.mm-item,.mm-quick,.ml-panel,.ml-item,.ml-live-room,.country-map-panel,.country-answer-panel,.country-result-popover,.spectate-country-inspector,.spectate-country-memory,.spectate-focus-summary,.spectate-derby-row,.recall-word-prompt,.results-word-prompt,.memorize-stage,.digit-recall-row,.duelAdminDetails,.duelDisciplineDetails,.duelDisciplineControl,.duelDisciplineMenu,.duelDisciplineMenuItem,.duelChatWrap,.duelChatItem,.duelBidModalBox,.duelBidSummary,.duelInviteWrap,.duelInviteResultRow,.duelMentionSuggest,.duelMentionItem,.duelHelpDetails){background:#303335!important;background-image:none!important;color:#edf0ec!important;border-color:#63705c!important}
html[data-mm-theme="dark"] :is(.mm-shell,.ml-shell)::before{border-color:#63705c}
html[data-mm-theme="dark"] :is(.mm-meta,.mm-quick .mm-meta,.mm-shadow-control label,.ml-live-room-title,.ml-live-room-meta,.ml-live-status,.country-map-toolbar strong,.country-answer-number,.country-answer-progress,.country-result-popover strong,.country-result-popover small,.spectate-country-inspector strong,.duelSeatStatValue,.duelSeatRounds strong,.duelChatText,.duelChatHead,.duelBidTitle,.duelBidSummaryTitle,.duelBidSummaryRow,.duelAdminDetails summary,.duelDisciplineDetails summary,.duelMentionItemText strong){color:#edf0ec!important}
html[data-mm-theme="dark"] :is(.duelSeatStatLabel,.duelSeatRounds,.duelChatMeta,.duelNote,.duelBidTimer,.duelBidHint,.duelMentionItemText span,.spectate-derby-sub,.spectate-focus-summary small){color:#bcc4b7!important}
html[data-mm-theme="dark"] :is(.ml-btn.is-light,.duelChatDrawerToggle,.duelSeatRole,.duelSeatBadge,.ml-live-tag,.country-result-popover-close,.memorize-nav-btn,.memorize-index-button,.settings-toggle){background:#383c3e!important;color:#edf0ec!important;border-color:#687062!important}
html[data-mm-theme="dark"] input::placeholder,html[data-mm-theme="dark"] textarea::placeholder{color:#abb4aa!important;opacity:1}
html[data-mm-theme="dark"] .duelSeatBadge.is-live,html[data-mm-theme="dark"] .mm-status.on{background:#28432e!important;color:#bcf0c1!important}
html[data-mm-theme="dark"] .duelSeatBadge.is-stale,html[data-mm-theme="dark"] .duelNoteError{background:#503233!important;color:#ffd8d3!important}
html[data-mm-theme="dark"] .duelSeatBadge.is-wait{background:#51462c!important;color:#ffdf82!important}
html[data-mm-theme="dark"] .mm-status.off{background:#383c3e!important;color:#c4cbd3!important}
html[data-mm-theme="dark"] .spectate-derby-row.is-gold{background:#51462c!important;border-color:#c49a32!important}
html[data-mm-theme="dark"] .spectate-derby-row.is-silver{background:#3d4247!important;border-color:#a5afb9!important}
html[data-mm-theme="dark"] .spectate-derby-row.is-bronze{background:#493a31!important;border-color:#bd916d!important}
html[data-mm-theme="dark"] :is(.spectate-derby-row,.spectate-focus-summary) :is(strong,span,small){color:inherit}
html[data-mm-theme="dark"] .mm-item.is-self{border-color:#9eb86b!important}
html[data-mm-theme="dark"] .country-map-svg{background:#273e46!important}
html[data-mm-theme="dark"] .country-ocean{fill:#273e46}
html[data-mm-theme="dark"] :is(.recall-word-prompt,.results-word-prompt).is-active{border-color:#b4d779!important}
html[data-mm-theme="dark"] :is(.results-answer-cell,.spectate-answer,.image-result-card,.image-recall-slot,.image-order-slot).is-correct{background:#28432e!important;color:#dcf0d7!important;border-color:#65ac68!important}
html[data-mm-theme="dark"] :is(.results-answer-cell,.spectate-answer,.image-result-card,.image-recall-slot,.image-order-slot).is-wrong{background:#503233!important;color:#ffd8d3!important;border-color:#d16a63!important}
html[data-mm-theme="dark"] :is(.results-answer-cell,.spectate-answer,.image-result-card,.image-recall-slot,.image-order-slot).is-typo{background:#51462c!important;color:#ffdf82!important;border-color:#c49a32!important}
html[data-mm-theme="dark"] [data-discipline="names"]{--discipline-color:#8ed29b}
html[data-mm-theme="dark"] [data-discipline="foreign_words"]{--discipline-color:#c2a1e6}
html[data-mm-theme="dark"] [data-discipline="login_passwords"]{--discipline-color:#ffb77e}
html[data-mm-theme="dark"] [data-discipline="auditory_digits"]{--discipline-color:#79cfdf}
html[data-mm-theme="dark"] [data-discipline="digits"]{--discipline-color:#8cbeed}
html[data-mm-theme="dark"] [data-discipline="fictional_countries"]{--discipline-color:#f39b9b}
html[data-mm-theme="dark"] [data-discipline="images"]{--discipline-color:#e8c66d}
html[data-mm-theme="dark"] :is(.mm-card[data-discipline] h3,.mm-card-title[data-discipline],.mn-discipline[data-discipline] .mn-discipline-title){color:var(--discipline-color)!important}
html[data-mm-theme="dark"] :is(.duelDisciplineOption,.recall-digit-group-label,.results-digit-group-label,.live-room-final-row){background:#383c3e!important;color:#edf0ec!important;border-color:#63705c!important}
html[data-mm-theme="dark"] :is(.duelDisciplineNote,.duelTournamentChooserHint,.duelTournamentChooserLabel,.duelStageText,.duelStateRound,.duelSyncLabel,.duelSyncValue,.duelSyncNote,.duelPrimaryCardTitle,.duelPrimaryCardText,.duelStakeRow strong,.duelStakeRow span,.duelRoundSummaryCell,.duelRoundSummaryTitle,.duelRoundSummaryHead){color:#dce7d2!important}
html[data-mm-theme="dark"] .duelDisciplineOption[aria-selected="true"]{background:#28432e!important;border-color:#65ac68!important}
html[data-mm-theme="dark"] :is(.duelSceneDisciplineLabel,.duelSceneBoardKicker,.live-mode-title){color:#dce7d2!important}
html[data-mm-theme="dark"] .duelSceneDiscipline[data-discipline]{color:var(--discipline-color,#dce7d2)!important}
html[data-mm-theme="dark"] #shadowLiveBadgeText{color:#dce7d2!important}
html[data-mm-theme="dark"] .toggle-card{background:#383c3e!important;color:#edf0ec!important;border-color:#687062!important}
html[data-mm-theme="dark"] :is(.duelHelpDetails>summary,.duelHelpDetails>div,.spectate-focus-auto-btn,.spectate-focus-auto-btn.is-on,.duelDebugDetails pre,.duelDetailEmpty,.duelStageNum){background:#383c3e!important;color:#edf0ec!important;border-color:#687062!important}
html[data-mm-theme="dark"] :is(.duelHelpDetails>summary,.spectate-focus-auto-btn):hover{background:#454b48!important;color:#fff!important}
html[data-mm-theme="dark"] .duelBtn.danger.alt{background:#503233!important;color:#ffd8d3!important;border-color:#d16a63!important}
html[data-mm-theme="dark"] :is(.score-visual-main,.score-equation,.score-equation-part,.score-visual-total,.score-timing-summary span,.results-metric,.score-stack-row){background:#383c3e!important;color:#edf0ec!important;border-color:#687062!important}
html[data-mm-theme="dark"] :is(.score-equation-part span,.score-visual-total-label,.results-metric-label,.score-equation-sign){color:#bcc4b7!important}
html[data-mm-theme="dark"] :is(.score-equation-part.is-plus strong,.score-visual-total-value,.score-equation-part.is-total strong){color:#b4d779!important}
html[data-mm-theme="dark"] .score-equation-part.is-speed strong{color:#ffdf82!important}
html[data-mm-theme="dark"] .score-equation-part.is-minus strong{color:#ffb1a8!important}
html[data-mm-theme="dark"] .score-stack-row.is-positive .score-stack-fill,html[data-mm-theme="dark"] .score-stack-row.is-result .score-stack-fill{background:#315b38!important}
html[data-mm-theme="dark"] .score-stack-row.is-speed .score-stack-fill{background:#655327!important}
html[data-mm-theme="dark"] .score-stack-row.is-penalty .score-stack-fill{background:#723f3a!important}
html[data-mm-theme="dark"] .score-stack-text{color:#edf0ec!important}
