/* ==UserStyle== @name WaniKani Dark Mode @namespace https://github.com/cabe9/wanikani-dark-mode @version 2.3.0 @description A site-wide near-black theme for WaniKani: dashboard, lessons, reviews, item pages, settings, userscript panels, and the Community forum. @author cabe9 @homepageURL https://github.com/cabe9/wanikani-dark-mode @supportURL https://github.com/cabe9/wanikani-dark-mode/issues @updateURL https://raw.githubusercontent.com/cabe9/wanikani-dark-mode/main/wanikani-dark-mode.user.css @license MIT ==/UserStyle== */ /* Generated by tools/build-usercss.mjs from review-dark-mode.user.js. Install with Stylus; enable only one edition of this theme at a time. Requires a browser with CSS :has() support. No theme JavaScript is needed. */ @-moz-document url-prefix("https://www.wanikani.com/"), url-prefix("https://preview.wanikani.com/") { html:root { color-scheme: dark; --wkrd-bg: #151719; --wkrd-surface: #1c1f22; --wkrd-surface-raised: #25292d; --wkrd-surface-hover: #30353a; --wkrd-border: #41474d; --wkrd-border-strong: #596169; --wkrd-text: #f3f5f6; --wkrd-muted: #aeb6bc; --wkrd-focus: #78a9be; --wkrd-correct: #254b35; --wkrd-correct-border: #3f7655; --wkrd-incorrect: #5a2930; --wkrd-incorrect-border: #8a414b; --color-text: #f3f5f6; --color-text-subdued: #b7bec3; --color-text-dimmed: #929ba2; --color-text-link: #86bdd4; --color-link: #86bdd4; --color-border: #41474d; --color-widget-background: #1c1f22; /* Native dashboard widgets have their own text and surface tokens. */ --color-widget-primary-text: var(--wkrd-text); --color-widget-secondary-text: var(--wkrd-muted); --color-widget-border: var(--wkrd-border); --color-widget-divider: var(--wkrd-border); --color-item-spread-total-background: var(--wkrd-surface-raised); --color-item-spread-total-border: var(--wkrd-border-strong); --color-item-spread-row-icon: var(--wkrd-muted); --color-item-spread-graph-axis-label: var(--wkrd-muted); --color-count-bubble-background: var(--wkrd-surface-raised); --color-count-bubble-border: var(--wkrd-border-strong); --color-count-bubble-text: var(--wkrd-text); --color-count-bubble-divider: var(--wkrd-border-strong); --color-extra-study-button-background: var(--wkrd-surface-raised); --color-extra-study-button-hover-background: var(--wkrd-surface-hover); --color-extra-study-button-active-background: var(--wkrd-surface-hover); --color-extra-study-button-disabled-background: var(--wkrd-surface); --color-extra-study-button-border: var(--wkrd-border); --color-extra-study-button-text: var(--wkrd-text); --color-extra-study-button-icon: var(--wkrd-muted); --color-extra-study-button-remaining-text: var(--wkrd-muted); --color-extra-study-single-button-empty-background: var(--wkrd-surface-raised); --color-extra-study-split-subjects-background: var(--wkrd-surface-raised); --color-extra-study-split-subjects-border: var(--wkrd-border); --color-level-progress-item-stat-border: var(--wkrd-border); --color-level-progress-item-stat-hover-background: var(--wkrd-surface-hover); --color-level-progress-item-stat-active-background: var(--wkrd-surface-hover); --color-level-progress-subjects-background: var(--wkrd-surface-raised); --color-level-progress-subjects-border: var(--wkrd-border); --color-days-studied-content-background: var(--wkrd-surface); --color-days-studied-digit: var(--wkrd-muted); --color-days-studied-digit-background: var(--wkrd-surface-raised); --color-days-studied-digit-border: var(--wkrd-border); --color-study-streak-today-incomplete-background: var(--wkrd-surface-raised); --color-grouped-navigation-background: var(--wkrd-surface); --color-grouped-navigation-header-text: var(--wkrd-muted); --color-grouped-navigation-link-background: var(--wkrd-surface-raised); --color-grouped-navigation-link-text: var(--wkrd-text); --color-grouped-navigation-link-hover-background: var(--wkrd-surface-hover); --color-grouped-navigation-link-hover-text: var(--wkrd-text); --color-grouped-navigation-link-active-background: var(--wkrd-surface-hover); --color-grouped-navigation-link-active-border: var(--wkrd-border-strong); --color-wk-panel-background: #1c1f22; --color-wk-panel-content-background: #1c1f22; --color-wk-panel-border: #41474d; --color-wk-panel-header-text: #f3f5f6; --color-button-primary-background: var(--wkrd-surface-raised); --color-button-primary-hover-background: var(--wkrd-surface-hover); --color-button-primary-active-background: var(--wkrd-surface-hover); --color-button-primary-border: var(--wkrd-border-strong); --color-button-primary-icon: var(--wkrd-muted); --color-button-secondary-background: var(--wkrd-surface-raised); --color-button-secondary-hover-background: var(--wkrd-surface-hover); --color-button-secondary-active-background: var(--wkrd-surface-hover); --color-button-secondary-border: var(--wkrd-border-strong); --color-button-secondary-icon: var(--wkrd-muted); --color-button-frameless-text: #c0c7cc; --color-focus-ring: #78a9be; /* Shared native tokens cover pages outside the review interface. */ --color-app-background: var(--wkrd-bg); --color-title-underline: var(--wkrd-border); --color-link-hover: #b8dbe9; --color-link-active: #b8dbe9; --color-focus: var(--wkrd-focus); --color-radical: #176384; --color-radical-dark: #124c66; --color-radical-highlight: #57b6dc; --color-radical-lowlight: #103e52; --color-kanji: #812456; --color-kanji-dark: #652044; --color-kanji-highlight: #d473aa; --color-kanji-lowlight: #481b3a; --color-vocabulary: #593180; --color-vocabulary-dark: #452763; --color-vocabulary-highlight: #a982d2; --color-vocabulary-lowlight: #35204f; --color-locked: #41474d; --color-locked-dark: #353a3f; --color-locked-highlight: #596169; --color-locked-lowlight: #30353a; --color-text-highlight-radical-background: #1d5065; --color-text-highlight-radical-text: #e0f3fb; --color-text-highlight-kanji-background: #652448; --color-text-highlight-kanji-text: #ffe3f1; --color-text-highlight-vocabulary-background: #4e3168; --color-text-highlight-vocabulary-text: #f1e4ff; --color-text-highlight-meaning-background: #3c4249; --color-text-highlight-meaning-text: var(--wkrd-text); --color-text-highlight-reading-background: #28543f; --color-text-highlight-reading-text: #e2f7eb; --color-page-header-title: var(--wkrd-text); --color-page-header-subtitle: var(--wkrd-muted); --color-page-header-description: var(--wkrd-muted); --color-page-nav-header-icon: var(--wkrd-muted); --color-global-header-background: var(--wkrd-surface); --color-global-header-border: var(--wkrd-border); --color-hint-background: var(--wkrd-surface-raised); --color-text-shadow-light: transparent; --text-shadow-light: none; --color-input-background: #111315; --color-input-border: var(--wkrd-border-strong); --color-input-focus-border: var(--wkrd-focus); --color-code-text: #f4afca; --color-code-background: var(--wkrd-surface-raised); --color-code-border: var(--wkrd-border); --color-form-error-text: #ffadb7; --color-form-error-background: #45262c; --color-form-error-text-shadow: transparent; --color-form-control-indicator-success: #9bd5ac; --color-form-control-indicator-loading: var(--wkrd-muted); --color-alert-error-background: #45262c; --color-alert-error-text: #ffdfe2; --color-alert-error-border: #8a414b; --color-alert-info-background: #243542; --color-alert-info-text: #d8eaf4; --color-alert-info-border: #54788b; --color-notification-error-background: #45262c; --color-notification-error-border: #8a414b; --color-notification-error-icon: #ffadb7; --color-notification-error-reload: #ffdfe2; --color-notification-info-background: #243542; --color-notification-info-border: #54788b; --color-notification-info-icon: #a9d6ed; --color-notification-info-reload: #d8eaf4; --color-notification-success-background: #254b35; --color-notification-success-border: #3f7655; --color-notification-success-icon: #9bd5ac; --color-notification-success-reload: #dcf3e3; --color-button-icon-only-text: var(--wkrd-muted); --color-button-icon-only-hover-background: var(--wkrd-surface-hover); --color-button-icon-only-active-background: var(--wkrd-surface-hover); --color-button-frameless-icon: var(--wkrd-muted); --color-button-frameless-hover-background: var(--wkrd-surface-hover); --color-button-frameless-active-background: var(--wkrd-surface-hover); --color-chip-background: var(--wkrd-surface-raised); --color-chip-border: var(--wkrd-border); --color-chip-text: var(--wkrd-text); --color-chip-hover-background: var(--wkrd-surface-hover); --color-chip-hover-border: var(--wkrd-border-strong); --color-chip-hover-text: var(--wkrd-text); --color-chip-active-background: #315568; --color-chip-active-border: var(--wkrd-focus); --color-chip-active-text: var(--wkrd-text); /* Lessons, subject lists, and item details use the same palette. */ --colorSlideBackground: var(--wkrd-surface); --colorSlideBorder: var(--wkrd-border); --colorSlideShadow: transparent; --color-subject-slide-navigation-background: var(--wkrd-surface-raised); --color-subject-slide-navigation-button-hover: var(--wkrd-surface-hover); --color-section-header-border: var(--wkrd-border); --color-section-subtitle: var(--wkrd-muted); --color-mnemonic-image-background: var(--wkrd-surface-raised); --color-lesson-picker-footer-background: #1c1f22ee; --color-lesson-picker-footer-border: 1px solid var(--wkrd-border); --color-lesson-and-review-border: var(--wkrd-border); --color-lesson-and-review-border-hover: var(--wkrd-focus); --color-lesson-and-review-count-background: var(--wkrd-surface-hover); --color-lesson-and-review-count-zero-background: var(--wkrd-surface-raised); --color-subject-list-separator: var(--wkrd-border); --color-subject-legend-title: var(--wkrd-muted); --color-subject-character-secondary-info: var(--wkrd-muted); --color-subject-character-grid-header-background: var(--wkrd-surface); --color-subject-character-grid-header-title: var(--wkrd-text); --color-subject-character-grid-header-subtitle: var(--wkrd-muted); --color-subject-character-grid-item-background: var(--wkrd-surface-raised); --color-subject-character-grid-item-border: var(--wkrd-border); --color-subject-page-header-border: var(--wkrd-border); --color-subject-srs-progress-stage-background: var(--wkrd-surface-hover); --color-subject-srs-progress-text: var(--wkrd-muted); --color-user-note-count: var(--wkrd-muted); --color-recent-mistakes-intro-divider: var(--wkrd-border); --color-last-item-border: var(--wkrd-border); --color-last-item-section-divider: var(--wkrd-border); --color-last-item-correct-icon: #9bd5ac; --color-last-item-incorrect-icon: #ffadb7; --color-wk-panel-content-title-underline: var(--wkrd-border); --colorAdditionalInfoButtonBackground: var(--wkrd-surface); --colorAdditionalInfoButtonShadow: transparent; --colorAdditionalInfoButtonText: var(--wkrd-text); --colorAdditionalInfoButtonDisabledBackground: #1a1c1f; --colorAdditionalInfoButtonDisabledShadow: transparent; --colorAdditionalInfoButtonDisabledText: #717980; --colorAdditionalInfoButtonActiveBackground: var(--wkrd-surface-hover); --colorAdditionalInfoButtonActiveShadow: transparent; --colorAdditionalInfoButtonActiveText: var(--wkrd-text); --colorAdditionalInfoBackground: var(--wkrd-bg); --colorAdditionalInfoBorder: var(--wkrd-border); --colorAdditionalInfoShadow: transparent; --colorQuizExceptionBackground: var(--wkrd-surface-raised); --colorQuizExceptionShadow: transparent; --colorQuizExceptionText: var(--wkrd-text); /* Forms, account pages, and dialogs. */ --color-modal-background: var(--wkrd-surface-raised); --color-setting-divider: var(--wkrd-border); --color-authentication-footer-divider: var(--wkrd-border); --color-subscription-plan-background: var(--wkrd-surface); --color-subscription-plan-border: var(--wkrd-border); --color-subscription-plan-divider: var(--wkrd-border); --color-billing-plan-background: var(--wkrd-surface); --color-billing-plan-border: var(--wkrd-border); --color-billing-plan-title-background: var(--wkrd-surface-raised); --color-billing-receipt-background-hover: var(--wkrd-surface-hover); --color-billing-activation-error: #ffadb7; --color-public-profile-info-background: var(--wkrd-surface); --color-public-profile-info-text: var(--wkrd-muted); --color-public-profile-avatar-border: var(--wkrd-border); --color-count_bubble-background: var(--wkrd-surface-raised); --color-count_bubble-text: var(--wkrd-text); /* Dashboard charts, empty states, and widget customization. */ --color-empty-widget-background: var(--wkrd-surface); --color-placeholder-pulse-default-stop-1: var(--wkrd-surface-raised); --color-placeholder-pulse-default-stop-2: var(--wkrd-surface-hover); --color-extra-study-flashcard-loading-background: var(--wkrd-surface); --color-extra-study-flashcard-placeholder-pulse-stop-1: var(--wkrd-surface-raised); --color-extra-study-flashcard-placeholder-pulse-stop-2: var(--wkrd-surface-hover); --color-item-spread-row-background: var(--wkrd-surface-raised); --color-item-spread-row-border: var(--wkrd-border); --color-item-spread-row-hover-background: var(--wkrd-surface-hover); --color-item-spread-row-active-background: var(--wkrd-surface-hover); --color-item-spread-graph-grid-line: var(--wkrd-border); --color-level-progress-indicator-background: var(--wkrd-border); --color-level-progress-bar: var(--wkrd-border); --color-heat-map-cell-empty: var(--wkrd-surface); --color-heat-map-cell-level-0: var(--wkrd-surface-raised); --color-heat-map-cell-selected-border: var(--wkrd-focus); --color-review-forecast-header-background: #423b28; --color-review-forecast-bar-zero: var(--wkrd-surface-raised); --color-review-forecast-bar-zero-border: var(--wkrd-border); --color-review-forecast-day-hover: var(--wkrd-surface-raised); --color-review-forecast-day-active: var(--wkrd-surface-hover); --color-review-forecast-day-header-label: var(--wkrd-muted); --color-review-forecast-priority-count: var(--wkrd-muted); --color-review-forecast-increase-positive: #9bd5ac; --color-study-streak-day-miss-icon: var(--wkrd-muted); --color-study-streak-today-complete-background: #254b35; --color-study-streak-today-complete-text: #dcf3e3; --color-progress-chart-bar-background: var(--wkrd-border); --color-progress-chart-metric-text: var(--wkrd-muted); --color-progress-chart-metric-count: var(--wkrd-text); --color-progress-chart-metric-count-background: var(--wkrd-surface-hover); --color-widget-gallery-divider: var(--wkrd-border); --color-widget-gallery-background: var(--wkrd-surface); --color-widget-gallery-widget-background: var(--wkrd-bg); --color-widget-gallery-navigation-background: var(--wkrd-surface-raised); --color-widget-gallery-description: var(--wkrd-muted); --color-dashboard-customization-menu-background: var(--wkrd-surface); --color-dashboard-customization-menu-border: var(--wkrd-border); --color-dashboard-customization-menu-divider: var(--wkrd-border); --color-dashboard-customization-menu-text: var(--wkrd-text); --color-dashboard-customization-row-background: var(--wkrd-surface-raised); --color-dashboard-customization-row-control: var(--wkrd-muted); --color-dashboard-customization-widget-container-background: var(--wkrd-bg); --color-dashboard-customization-widget-container-control: var(--wkrd-muted); --color-dashboard-customization-template-background: var(--wkrd-surface); --color-dashboard-customization-template-hover-background: var(--wkrd-surface-hover); --color-dashboard-customization-template-selected-background: #243542; --color-dashboard-customization-template-disabled-background: #1a1c1f; --color-dashboard-customization-template-border: var(--wkrd-border); --color-dashboard-customization-template-selected-border: var(--wkrd-focus); --color-dashboard-customization-template-disabled-border: var(--wkrd-border); --color-dashboard-customization-template-illustration-background: var(--wkrd-bg); --color-dashboard-customization-template-illustration-selected-background: #243542; --color-dashboard-customization-template-illustration-border: var(--wkrd-border); --color-dashboard-customization-template-illustration-selected-border: var(--wkrd-focus); --color-dashboard-customization-template-illustration-bar-background: var(--wkrd-border); --color-dashboard-customization-template-illustration-bar-selected-background: #54788b; --color-dashboard-customization-template-illustration-bar-disabled-background: var(--wkrd-surface); --color-dashboard-customization-template-illustration-bar-border: var(--wkrd-muted); --color-dashboard-customization-template-illustration-bar-selected-border: var(--wkrd-focus); --color-dashboard-customization-template-illustration-bar-disabled-border: var(--wkrd-border); --color-dashboard-customization-template-radio: var(--wkrd-muted); --color-dashboard-customization-template-radio-selected: var(--wkrd-focus); } /* Preserve each widget's identity with dark pink and blue surfaces. */ html:root :is(.todays-lessons-widget, .reviews-widget)[class] { --color-widget-background: var(--wkrd-surface); --color-widget-border: var(--wkrd-border); --color-widget-primary-text: var(--wkrd-text); --color-widget-secondary-text: var(--wkrd-muted); --color-count-bubble-background: var(--wkrd-surface-raised); --color-count-bubble-border: var(--wkrd-border-strong); --color-count-bubble-divider: var(--wkrd-border); --color-count-bubble-text: var(--wkrd-text); --color-button-border: var(--wkrd-border-strong); --color-button-hover-border: var(--wkrd-focus); --color-button-active-border: var(--wkrd-border-strong); --color-button-edge: var(--wkrd-bg); --color-button-hover-edge: var(--wkrd-bg); --color-button-active-edge: var(--wkrd-bg); } html:root .todays-lessons-widget[class] { --color-widget-background: #35202d; --color-widget-border: #694458; --color-widget-secondary-text: #dcbacb; --color-count-bubble-background: #593149; --color-count-bubble-border: #80556c; --color-count-bubble-text: #ffe3f1; } html:root .reviews-widget[class] { --color-widget-background: #1d3443; --color-widget-border: #42677d; --color-widget-secondary-text: #b6cfdf; --color-count-bubble-background: #2b4c62; --color-count-bubble-border: #547f99; --color-count-bubble-text: #e0f3ff; } html:root .days-studied-widget__background { opacity: 0.65; } /* Fill only the gator silhouette behind the site's original logo. The clip follows the 309x65 native artwork, inset at its blue edge. */ html:root .logo__link h1::before { top: 0; height: auto; aspect-ratio: 309 / 65; visibility: visible; background: #fff; clip-path: polygon(42.72% 61.54%, 42.72% 44.62%, 43.04% 44.62%, 43.04% 40.00%, 43.37% 40.00%, 43.37% 36.92%, 43.69% 36.92%, 44.01% 30.77%, 44.66% 29.23%, 44.66% 26.15%, 47.25% 16.92%, 47.25% 13.85%, 47.57% 13.85%, 47.57% 7.69%, 47.90% 7.69%, 47.90% 4.62%, 48.54% 3.08%, 48.54% 1.54%, 49.84% 1.54%, 49.84% 3.08%, 50.49% 3.08%, 50.49% 6.15%, 51.46% 9.23%, 51.46% 10.77%, 52.10% 10.77%, 52.43% 7.69%, 52.75% 7.69%, 52.75% 4.62%, 53.40% 3.08%, 53.40% 1.54%, 54.69% 1.54%, 54.69% 3.08%, 55.34% 3.08%, 55.66% 9.23%, 55.99% 9.23%, 55.99% 16.92%, 56.31% 16.92%, 56.31% 18.46%, 56.96% 18.46%, 57.93% 24.62%, 58.58% 24.62%, 58.58% 27.69%, 59.55% 30.77%, 59.55% 33.85%, 59.87% 33.85%, 60.19% 41.54%, 60.52% 41.54%, 60.52% 46.15%, 60.84% 46.15%, 60.84% 64.62%, 60.52% 64.62%, 60.52% 69.23%, 60.19% 69.23%, 60.19% 73.85%, 59.87% 73.85%, 59.55% 80.00%, 58.58% 83.08%, 58.58% 86.15%, 57.93% 86.15%, 56.96% 92.31%, 55.66% 93.85%, 55.66% 95.38%, 53.40% 96.92%, 53.40% 98.46%, 49.84% 98.46%, 49.84% 96.92%, 48.87% 96.92%, 48.87% 95.38%, 47.90% 95.38%, 47.90% 93.85%, 46.60% 92.31%, 46.28% 89.23%, 45.63% 89.23%, 44.98% 84.62%, 44.66% 84.62%, 44.66% 81.54%, 44.34% 81.54%, 44.34% 80.00%, 44.01% 80.00%, 44.01% 76.92%, 43.69% 76.92%, 43.37% 70.77%, 43.04% 70.77%, 43.04% 66.15%, 42.72% 66.15%); transition: none; } html:root .sitemap__section-header { background: var(--wkrd-surface-raised) !important; color: var(--wkrd-text) !important; border-color: var(--wkrd-border) !important; text-shadow: none !important; } html:root .sitemap__section-header:hover { background: var(--wkrd-surface-hover) !important; } html:root .character-header--radical { background: var(--color-radical-gradient) !important; text-shadow: none; } html:root .character-header--kanji { background: var(--color-kanji-gradient) !important; text-shadow: none; } html:root .character-header--vocabulary { background: var(--color-vocabulary-gradient) !important; text-shadow: none; } html:root .subject-character { --color-blue: var(--color-radical); --color-blue-dark: #9ed9ed; --color-blue-light: #253f4b; --color-pink: var(--color-kanji); --color-pink-dark: #f2b3d7; --color-pink-light: #4b293b; --color-purple: var(--color-vocabulary); --color-purple-dark: #d4b9ee; --color-purple-light: #3f2d53; } html:root .subject-character__characters-text { color: var(--wkrd-text) !important; } html:root :is(.lesson-picker__section-toggle, .lesson-picker__section-toggle-all) { background: var(--wkrd-surface-raised) !important; color: #b8dbe9 !important; border: 1px solid var(--wkrd-border); border-radius: 6px; padding: 6px 10px; } html:root .lesson-picker__subject[aria-selected=false] { opacity: 0.85; } html:root .lesson-picker__subject[aria-selected=true] { outline: 2px solid var(--wkrd-focus); outline-offset: 3px; border-radius: 8px; } html:root :is(.reader, .readers-list__item, .empty-message-container) { background: var(--wkrd-surface); color: var(--wkrd-text); } html:root :is(.subject-progress__button, .sitemap__section-header) { color: var(--wkrd-text); text-shadow: none; } html:root :is(.kana-chart__character, .kana-chart__backspace, .batch-list__item-button) { background: var(--wkrd-surface-raised); color: var(--wkrd-text); text-shadow: none; } html:root .kana-chart__tab:not(.kana-chart__tab--selected):hover { color: var(--wkrd-text); } html:root .subject-collocations__pattern-name[aria-selected=true], html:root .subject-collocations__pattern-name[aria-selected=true]::after { background: var(--wkrd-surface-hover); color: var(--wkrd-text); text-shadow: none; } html:root turbo-frame[data-show-loading=true]:not([complete])::after { background-color: #151719e6; } html:root, html:root body, html:root #turbo-body, html:root main, html:root .page-container, html:root .dashboard, html:root .dashboard__content { background-color: var(--wkrd-bg) !important; color: var(--wkrd-text) !important; } html:root body { scrollbar-color: var(--wkrd-border-strong) var(--wkrd-bg); } html:root ::selection { background: #315d70; color: #fff; } html:root a:not(.subject-character):not(.subject-character__link) { color: #86bdd4; } html:root .global-header, html:root .site-header, html:root .navigation, html:root .navigation__menu, html:root .navigation__mobile-menu, html:root .user-summary, html:root .sitemap, html:root body > footer, html:root .site-footer { background: var(--wkrd-surface) !important; background-image: none !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; } html:root .global-header a, html:root .site-header a, html:root .navigation a, html:root .user-summary a, html:root .sitemap a, html:root body > footer a, html:root .site-footer a { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .global-header__container { align-items: center; } /* Keep the mobile Help separator quiet on the dark menu. */ html:root .sitemap--divider { border-color: var(--wkrd-border) !important; } @media (max-width: 1023px) { /* A sticky blank row keeps the close control clear of menu items. */ html:root .sitemap::before { content: ''; display: block; position: sticky; top: 0; height: 64px; background: var(--wkrd-surface); z-index: 1; } html:root .navigation--open .navigation__toggle { position: fixed; } } html:root a.callout__link[class] { background: #17465d; box-shadow: none; color: var(--wkrd-text); text-shadow: none; } html:root a.callout__link[class]:hover { background: #205b75; } html:root .navigation__link, html:root .navigation__button, html:root .global-header button, html:root .site-header button, html:root .user-summary button { background: var(--wkrd-surface-raised) !important; background-image: none !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .navigation__link:hover, html:root .navigation__button:hover, html:root .global-header button:hover, html:root .site-header button:hover, html:root .user-summary button:hover { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; } /* Flatten the search submit button's stacked frame into one surface. */ html:root .search__query { min-width: 0; } html:root .search__button { flex: 0 0 auto; } html:root .search__button .wk-button { padding: 0 !important; border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important; } html:root .search__button .wk-button__shadow, html:root .search__button .wk-button__edge { display: none; } html:root .search__button .wk-button .wk-button__content { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--wkrd-surface-raised); color: var(--wkrd-text); box-shadow: none; transform: none; } html:root .search__button .wk-button:hover .wk-button__content { background: var(--wkrd-surface-hover); } /* Match the header icons without adding visible button boxes. */ html:root :is(.search-button, .navigation__toggle)[class] { width: 44px; height: 44px; padding: 0; border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: var(--wkrd-text) !important; } html:root :is(.search-button, .navigation__toggle)[class]:hover { background: transparent !important; } html:root .search-button--mobile { top: 10px; right: 60px; } /* The desktop navigation row is 32px tall; keep the 44px hit area centered. */ html:root .search-button--desktop { margin-block: -6px; } html:root .search-button__icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; } html:root .search-button__icon .wk-icon { display: block; width: 18px; height: 18px; } html:root .navigation__toggle-icon { top: 50%; left: 50%; width: 18px; height: 14px; border: 0 !important; border-radius: 0; transform: translate(-50%, -50%); background: linear-gradient(to bottom, var(--wkrd-text) 0 2px, transparent 2px 6px, var(--wkrd-text) 6px 8px, transparent 8px 12px, var(--wkrd-text) 12px 14px) !important; } html:root .navigation__toggle-icon::before, html:root .navigation__toggle-icon::after { display: none; } html:root .navigation--open .navigation__toggle-icon { background: transparent !important; } html:root .navigation--open .navigation__toggle-icon::before, html:root .navigation--open .navigation__toggle-icon::after { display: block; top: 6px; left: 0; width: 18px; height: 2px; border: 0; border-radius: 0; background: var(--wkrd-text); transform-origin: center; } html:root .navigation--open .navigation__toggle-icon::before { transform: rotate(-45deg); } html:root .navigation--open .navigation__toggle-icon::after { transform: rotate(45deg); } html:root .wk-panel, html:root [class*="wk-panel--"], html:root .wk-panel__header, html:root .wk-panel__content, html:root .item-spread-table-widget, html:root .item-spread-table-row, html:root .review-forecast, html:root .progress-and-forecast, html:root .recent-unlocks, html:root .level-progressions, html:root .dashboard__row { background-color: var(--wkrd-surface) !important; background-image: none !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .wk-panel__header, html:root .item-spread-table-row__header { background-color: var(--wkrd-surface-raised) !important; } html:root .wk-panel *, html:root .item-spread-table-widget *, html:root .review-forecast *, html:root .progress-and-forecast * { border-color: var(--wkrd-border); text-shadow: none !important; } html:root .wk-panel :is(h1, h2, h3, h4, p, span, time, strong), html:root .item-spread-table-widget :is(h1, h2, h3, h4, p, span, time, strong), html:root .review-forecast :is(h1, h2, h3, h4, p, span, time, strong) { color: inherit; } /* Keep the SRS extension's secondary labels distinct from its counts. */ html:root .item-spread-table-widget .wk-srs-breakdown { color: var(--wkrd-muted); } html:root .item-spread-table-widget .wk-srs-breakdown strong { color: var(--wkrd-text); } html:root table:not(.subject-character), html:root .table { background: var(--wkrd-surface) !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; } html:root table:not(.subject-character) thead, html:root table:not(.subject-character) th, html:root .table thead, html:root .table th { background: var(--wkrd-surface-raised) !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; } html:root table:not(.subject-character) td, html:root table:not(.subject-character) tr, html:root .table td, html:root .table tr { border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; } html:root table:not(.subject-character) tbody tr:nth-child(even), html:root .table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025) !important; } html:root .subject-page, html:root .subject-page__content, html:root .subject-section, html:root .subject-section__content, html:root .subject-navigation, html:root .subject-pager, html:root .subject-list, html:root .subject-legend { background-color: var(--wkrd-bg) !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; } html:root :is( .page-nav__link, .page-navigation__link, .wk-nav__item-link, .subject-navigation__link, .subject-page__navigation-link, .subject-section-navigation__link, a[href="#meaning"], a[href="#readings"], a[href="#reading"], a[href="#found-in-vocabulary"], a[href="#found-in-vocab"], a[href="#found-in-kanji"], a[href="#vocabulary"], a[href="#vocabulary-items"], a[href="#progress"] ) { background: var(--wkrd-surface-raised) !important; background-image: none !important; border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; color: #b8dbe9 !important; text-shadow: none !important; } html:root :is( .page-nav__link, .page-navigation__link, .wk-nav__item-link, .subject-navigation__link, .subject-page__navigation-link, .subject-section-navigation__link, a[href="#meaning"], a[href="#readings"], a[href="#reading"], a[href="#found-in-vocabulary"], a[href="#found-in-vocab"], a[href="#found-in-kanji"], a[href="#vocabulary"], a[href="#vocabulary-items"], a[href="#progress"] ):hover, html:root :is( .page-nav__link, .page-navigation__link, .wk-nav__item-link, .subject-navigation__link, .subject-page__navigation-link, .subject-section-navigation__link )[aria-current="true"] { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; color: var(--wkrd-text) !important; } html:root main h1, html:root main h1 *, html:root .page-header__content, html:root .page-header__title, html:root .page-header__title-text, html:root .subject-header, html:root .subject-header__title, html:root .subject-header__title-text, html:root .subject-header__meaning, html:root .subject-page__title, html:root .subject-page__title-text, html:root .subject-page__meaning { color: #dce2e5 !important; text-shadow: none !important; } html:root .subject-character, html:root .subject-character__link, html:root .subject-character__content, html:root .subject-character__info { border-color: var(--wkrd-border) !important; box-shadow: none !important; } html:root .subject-character__info, html:root .subject-character__meaning, html:root .subject-character__reading { background: var(--wkrd-surface-raised) !important; color: var(--wkrd-text) !important; text-shadow: none !important; } /* Community Mnemonics adds badges before the card content. Keep them out of flow, with the same top gutter on every card in that grid. */ html:root .subject-character--grid:has(> [class*="wkcm-list-badge-cm-"]) { position: relative; } html:root .subject-character-grid__items:has([class*="wkcm-list-badge-cm-"]) .subject-character--grid > .subject-character__content { padding-top: 34px; } html:root .subject-character--grid > .subject-character__badge[class*="wkcm-list-badge-cm-"] { position: absolute; top: 7px; left: 8px; right: auto; bottom: auto; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 5px; font-size: 12px; line-height: 1; text-shadow: none; box-shadow: none; transform: none !important; } html:root .subject-character--grid:has(> .wkcm-list-badge-cm-request) > .wkcm-list-badge-cm-available { left: 33px; } html:root :is(.wkcm-list-badge-cm-available, .wkcm-legend-badge-available) { background: #254136 !important; color: #baddc9 !important; box-shadow: none !important; text-shadow: none !important; } html:root :is(.wkcm-list-badge-cm-request, .wkcm-legend-badge-request) { background: #4b3c22 !important; color: #f2d18a !important; box-shadow: none !important; text-shadow: none !important; } html:root:has([class*="wkcm-list-badge-cm-"], [class*="wkcm-legend-badge-"]) .subject-character--grid .subject-character__characters { padding-left: 0 !important; } html:root .dropdown-menu, html:root .popover, html:root .menu:not(.character-header__menu), html:root [role="menu"], html:root .modal, html:root .wk-modal, html:root [role="dialog"]:not(.ui-dialog) { background: var(--wkrd-surface-raised) !important; background-image: none !important; border-color: var(--wkrd-border) !important; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important; color: var(--wkrd-text) !important; } html:root .dropdown-menu a, html:root .popover a, html:root [role="menu"] a, html:root [role="menuitem"] { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .dropdown-menu a:hover, html:root [role="menuitem"]:hover { background: var(--wkrd-surface-hover) !important; } html:root .user-synonyms__form_container { background: var(--wkrd-surface-raised) !important; border: 1px solid var(--wkrd-border) !important; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55) !important; color: var(--wkrd-text) !important; } html:root .user-synonyms__form_container .wk-title { border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .user-synonyms__form_container .wk-form__input { background: #111315 !important; border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root .user-synonyms__form_container .wk-form__input:focus { border-color: var(--wkrd-focus) !important; box-shadow: 0 0 0 3px rgba(120, 169, 190, 0.22) !important; outline: none !important; } html:root .user-synonyms__form_container .wk-button__shadow { display: none !important; } html:root .user-synonyms__form_container .wk-button__edge { background: #111315 !important; } html:root .user-synonyms__form_container .wk-button:not(.wk-button--icon-only) .wk-button__content { background: var(--wkrd-surface-hover) !important; background-image: none !important; border-color: var(--wkrd-border-strong) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .user-synonyms__form_container .wk-button:not(.wk-button--icon-only):hover .wk-button__content { background: #394047 !important; border-color: var(--wkrd-focus) !important; } html:root .user-synonyms__form_container .user-synonyms__close-button .wk-button, html:root .user-synonyms__form_container .user-synonyms__close-button .wk-button__content { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: var(--wkrd-muted) !important; } html:root .user-synonyms__form_container .user-synonyms__close-button .wk-button:hover .wk-button__content { color: var(--wkrd-text) !important; } html:root .user-synonyms__form_container :is(.wk-button__icon, .wk-button__text, .wk-icon, svg) { color: inherit !important; fill: currentColor !important; } html:root input:not(.quiz-input__input):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), html:root textarea, html:root select { background-color: #111315 !important; border-color: var(--wkrd-border) !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root input[type="checkbox"], html:root input[type="radio"] { accent-color: #628fa3; } html:root :is(input, textarea, select, button, a):focus-visible { outline-color: var(--wkrd-focus) !important; } html:root body, html:root .quiz, html:root .quiz__content { background: var(--wkrd-bg) !important; color: var(--wkrd-text) !important; } html:root .quiz-input, html:root .quiz-input__input-container, html:root #answer-form { background: var(--wkrd-surface) !important; } html:root .quiz-input__question-type-container, html:root .quiz-input__question-type-container[data-question-type="meaning"], html:root .quiz-input__question-type-container[data-question-type="reading"] { background: #181a1d !important; background-image: none !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .quiz-input__question-type-container[data-question-type="meaning"] { border-top-color: #555d64 !important; } html:root .quiz-input__question-type-container[data-question-type="reading"] { border-top-color: #426777 !important; } html:root .quiz-input__question-category, html:root .quiz-input__question-type { color: var(--wkrd-text) !important; } html:root input#user-response.quiz-input__input, html:root .quiz-input__input { background: #111315 !important; border: 1px solid var(--wkrd-border) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .quiz-input__input::placeholder { color: #858e95 !important; opacity: 1; } html:root .quiz-input__input:focus { border-color: var(--wkrd-focus) !important; box-shadow: 0 0 0 3px rgba(120, 169, 190, 0.22) !important; outline: none !important; } html:root .quiz-input__input-container[correct="true"]:not([incorrect]) .quiz-input__input, html:root .quiz-input__input-container[correct]:not([correct="false"]):not([incorrect]) .quiz-input__input { background: var(--wkrd-correct) !important; border-color: var(--wkrd-correct-border) !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root .quiz-input__input-container[incorrect] .quiz-input__input, html:root .quiz-input__input-container[correct="false"] .quiz-input__input { background: var(--wkrd-incorrect) !important; border-color: var(--wkrd-incorrect-border) !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root .quiz-input__submit-button, html:root button.later-crabigator { background: var(--wkrd-surface-raised) !important; border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .quiz-input__submit-button:hover:not(:disabled), html:root button.later-crabigator:hover:not(:disabled) { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; } html:root .quiz-input__submit-button:focus-visible, html:root button.later-crabigator:focus-visible { outline: 3px solid rgba(120, 169, 190, 0.55) !important; outline-offset: -3px !important; } html:root .quiz-input__submit-button:disabled, html:root button.later-crabigator:disabled { background: #202327 !important; color: #798188 !important; opacity: 1 !important; } html:root #additional-content, html:root #additional-content .additional-content__menu { background: var(--wkrd-bg) !important; } html:root #additional-content .additional-content__item { background: var(--wkrd-surface) !important; border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #additional-content .additional-content__item:hover:not(.additional-content__item--disabled) { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; } html:root #additional-content .additional-content__item--disabled { background: #1a1c1f !important; border-color: #30353a !important; color: #717980 !important; opacity: 1 !important; } html:root #additional-content .additional-content__item-text, html:root #additional-content .wk-icon, html:root #additional-content svg { color: inherit !important; fill: currentColor !important; } html:root .quiz-input__exception, html:root .answer-exception { background: var(--wkrd-surface-raised) !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .quiz-input__exception::before, html:root .answer-exception::before { border-bottom-color: var(--wkrd-surface-raised) !important; } html:root turbo-frame#subject-info, html:root .subject-info, html:root .additional-content__content, html:root turbo-frame#last-items { background: var(--wkrd-surface) !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; } /* A quiet navigation strip leads into a continuous reading pane. */ html:root #additional-content .additional-content__menu .additional-content__menu-item .additional-content__item { background: transparent !important; border: 0 !important; border-radius: 6px; } html:root #additional-content .additional-content__menu .additional-content__menu-item .additional-content__item:hover:not(.additional-content__item--disabled) { background: rgba(255, 255, 255, 0.06) !important; } html:root #additional-content .additional-content__item--open::after { content: ''; position: absolute; inset: auto auto -4px 50%; width: 28px; height: 2px; margin: 0; border: 0; border-radius: 2px; background: var(--wkrd-focus); transform: translateX(-50%); } html:root #additional-content .additional-content__item:focus-visible { outline: 2px solid var(--wkrd-focus); outline-offset: -3px; } html:root #additional-content #information { border: 0 !important; box-shadow: none !important; background: var(--wkrd-bg) !important; margin: 12px 10px 0; } html:root #information .item-info { padding-top: 8px; padding-bottom: 16px; } html:root #information :is(turbo-frame#subject-info, .subject-info) { background: transparent !important; } html:root .subject-section--collapsible { --wkrd-panel-inset: clamp(16px, 2vw, 24px); box-sizing: border-box; margin: 0; border: 0 !important; border-bottom: 1px solid rgba(174, 182, 188, 0.14) !important; border-radius: 0; background: transparent !important; } html:root .subject-section--collapsible:last-child { border-bottom: 0 !important; } html:root .subject-section--collapsible > .subject-section__title { margin: 0 !important; padding: 0 !important; border: 0 !important; } html:root .subject-section--collapsible .subject-section__toggle { box-sizing: border-box; display: flex; position: relative; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 62px; padding: 18px var(--wkrd-panel-inset); border-radius: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color 120ms ease; } html:root .subject-section--collapsible .subject-section__toggle::before { content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 20px; border-radius: 2px; background: var(--wkrd-focus); transform: translateY(-50%); opacity: 0; } html:root .subject-section--collapsible[expanded] .subject-section__toggle::before { opacity: 1; } html:root .subject-section--collapsible[expanded] > .subject-section__title .subject-section__title-text { color: #b8dbe9 !important; } html:root .subject-section--collapsible .subject-section__toggle:hover { background: rgba(255, 255, 255, 0.035); } html:root .subject-section--collapsible .subject-section__toggle:focus-visible { outline: 2px solid var(--wkrd-focus); outline-offset: -3px; } html:root .subject-section--collapsible .subject-section__title-text { min-width: 0; } html:root .subject-section--collapsible .subject-section__toggle-icon { display: grid; place-items: center; flex: 0 0 14px; width: 14px; height: 14px; line-height: 1; opacity: 0.65; } html:root .subject-section--collapsible .subject-section__toggle-icon svg { display: block; width: 14px; height: 14px; } html:root .subject-section--collapsible > .subject-section__content { box-sizing: border-box; padding: 4px var(--wkrd-panel-inset) 30px; border: 0; background: transparent !important; line-height: 1.7; } html:root .subject-section--collapsible .subject-section__subtitle { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.045em; color: var(--wkrd-muted) !important; } @media (prefers-reduced-motion: reduce) { html:root .subject-section--collapsible .subject-section__toggle { transition: none; } } html:root .subject-section, html:root .subject-section__title, html:root .subject-section__title-text, html:root .subject-section__subtitle, html:root .subject-section__content, html:root .subject-section__meanings, html:root .subject-section__meanings-items, html:root .subject-section__meanings-item, html:root .subject-section__readings, html:root .subject-section__readings-items, html:root .subject-section__readings-item, html:root .subject-section__user-synonyms, html:root .subject-section__user-synonyms-items, html:root .subject-section__user-synonyms-item, html:root .subject-section__text, html:root .subject-section p, html:root .subject-section li, html:root .subject-section dd, html:root .subject-section strong, html:root .subject-section em, html:root .subject-section span:not(.subject-character__badge):not([class*="highlight-"]) { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root turbo-frame#subject-info .subject-section *, html:root .subject-info .subject-section *, html:root .additional-content__content .subject-section * { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .subject-section__meanings-title, html:root .subject-section__readings-title, html:root .subject-section__user-synonyms-title, html:root .subject-section__label, html:root .subject-section small, html:root .text-subdued, html:root .text-muted { color: var(--wkrd-muted) !important; text-shadow: none !important; } html:root .subject-section button:disabled, html:root .subject-section [aria-disabled="true"] { color: #7f888f !important; opacity: 1 !important; } html:root .subject-section a, html:root #wkcm2 a, html:root .wk_keisei a { color: #86bdd4 !important; } html:root .subject-section .subject-character, html:root .subject-section .subject-character__link, html:root .subject-section .subject-character__content, html:root .subject-section .subject-character__info { background: var(--wkrd-surface-raised) !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .subject-section .subject-character:hover, html:root .subject-section .subject-character__link:hover { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; } html:root .subject-section .subject-character__meaning, html:root .subject-section .subject-character__reading, html:root .subject-section .subject-character__meaning--primary, html:root .subject-section .subject-character__reading--primary { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .subject-section .subject-character__meaning-label, html:root .subject-section .subject-character__reading-label { color: var(--wkrd-muted) !important; } /* Put the card surface and border on the link, not competing nested layers. */ html:root .subject-section .subject-character-grid__item { background: transparent !important; border: 0 !important; border-radius: 10px; box-shadow: none !important; } html:root .subject-section .subject-character-grid__item > .subject-character { box-sizing: border-box; border: 1px solid var(--wkrd-border) !important; border-radius: 10px; } html:root .subject-section .subject-character-grid__item > .subject-character:hover { border-color: var(--wkrd-border-strong) !important; } html:root .subject-section .subject-character-grid__item :is( .subject-character__content, .subject-character__info, .subject-character__reading, .subject-character__meaning ) { background: transparent !important; } /* Keep both play and stop icons legible without changing their visibility logic. */ html:root .subject-section .reading-with-audio__icons { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; margin-right: 8px; padding: 6px; border: 1px solid #54788b !important; border-radius: 8px; background: #263944 !important; color: var(--wkrd-text) !important; cursor: pointer; } html:root .subject-section .reading-with-audio__icons:hover:not(:disabled) { background: #354f5d !important; border-color: var(--wkrd-focus) !important; } html:root .subject-section .reading-with-audio__icons svg { width: 18px; height: 18px; fill: currentColor !important; } html:root .subject-section .reading-with-audio__icons:focus-visible { outline: 2px solid var(--wkrd-focus); outline-offset: 3px; } html:root .subject-section mark, html:root .subject-section [class*="highlight-"], html:root .subject-section [class*="-highlight"], html:root .wk-kanjidamage-mnemonic [class*="highlight-"], html:root .wk-kanjidamage-mnemonic [class*="-highlight"] { background-image: none !important; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important; color: #f7f8f8 !important; text-shadow: none !important; } html:root .subject-section .radical-highlight, html:root .subject-section .highlight-radical, html:root .wk-kanjidamage-mnemonic .radical-highlight, html:root .wk-kanjidamage-mnemonic .highlight-radical { background: #1d5065 !important; } html:root .subject-section .kanji-highlight, html:root .subject-section .highlight-kanji, html:root .wk-kanjidamage-mnemonic .kanji-highlight, html:root .wk-kanjidamage-mnemonic .highlight-kanji { background: #652448 !important; } html:root .subject-section .vocabulary-highlight, html:root .subject-section .highlight-vocabulary, html:root .wk-kanjidamage-mnemonic .vocabulary-highlight, html:root .wk-kanjidamage-mnemonic .highlight-vocabulary { background: #4e3168 !important; } html:root .subject-section .reading-highlight, html:root .subject-section .highlight-reading, html:root .wk-kanjidamage-mnemonic .reading-highlight, html:root .wk-kanjidamage-mnemonic .highlight-reading { background: #28543f !important; } html:root .subject-section mark:not([class]), html:root .subject-section [class*="highlight-"]:not(.highlight-radical):not(.highlight-kanji):not(.highlight-vocabulary):not(.highlight-reading), html:root .subject-section [class*="-highlight"]:not(.radical-highlight):not(.kanji-highlight):not(.vocabulary-highlight):not(.reading-highlight) { background: #4a414f !important; } html:root .wk-hint, html:root .subject-hint { --color-text: var(--wkrd-text); --color-text-subdued: var(--wkrd-muted); --wk-hint-background-color: var(--wkrd-surface-raised); background: var(--wkrd-surface-raised) !important; border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .wk-hint__title, html:root .wk-hint__text, html:root .subject-hint__title, html:root .subject-hint__text { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .cm-mnem-text, html:root .cm-form.cm-mnem-text { background: #17191b !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; } html:root .cm-prev, html:root .cm-next, html:root .cm-format-btn { background: var(--wkrd-surface-raised) !important; background-image: none !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-muted) !important; text-shadow: none !important; } html:root .cm-prev:not(.disabled):hover, html:root .cm-next:not(.disabled):hover, html:root .cm-format-btn:hover { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; } html:root .cm-prev svg, html:root .cm-next svg, html:root .cm-prev svg *, html:root .cm-next svg * { color: inherit !important; fill: currentColor !important; } html:root .cm-info, html:root .cm-score, html:root .cm-score-num { color: var(--wkrd-muted) !important; } html:root .cm-small-btn, html:root .cm-submit-highlight, html:root .cm-upvote-highlight, html:root .cm-downvote-highlight, html:root .form-button-wrapper .cm-save-highlight, html:root .form-button-wrapper .cm-cancel-highlight { border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root .cm-edit-highlight { background: #353a3f !important; } html:root .cm-delete-highlight, html:root .cm-downvote-highlight { background: #613138 !important; } html:root .cm-request-highlight { background: #61451f !important; } html:root .cm-upvote-highlight { background: #294d38 !important; } html:root .cm-submit-highlight, html:root .cm-save-highlight, html:root .cm-cancel-highlight { background: #353a3f !important; } html:root .cm-text, html:root .additional-content__content textarea, html:root .additional-content__content select, html:root .additional-content__content input:not([type="checkbox"]):not([type="radio"]) { background: #111315 !important; border: 1px solid var(--wkrd-border) !important; box-shadow: none !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root .cm-text::placeholder, html:root .additional-content__content textarea::placeholder, html:root .additional-content__content input::placeholder { color: #858e95 !important; opacity: 1; } html:root .wk-kanjidamage-mnemonic, html:root .wk-kanjidamage-mnemonic__text, html:root .wk_keisei { color: var(--wkrd-text) !important; } html:root .wk-kanjidamage-mnemonic__empty, html:root .wk_keisei .text-muted { color: var(--wkrd-muted) !important; } html:root .wk_keisei button, html:root .wk_keisei .btn { background: var(--wkrd-surface-raised) !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #wkec-context-panel { background: var(--wkrd-surface) !important; border-color: var(--wkrd-border) !important; border-left-color: var(--wkrd-focus) !important; color: var(--wkrd-text) !important; } html:root #wkec-context-panel .wkec-counter, html:root #wkec-context-panel .wkec-english { color: var(--wkrd-muted) !important; } html:root #confusionGuesserOverlay { --vissim: #66521c !important; --onon: #24566b !important; --onkun: #24566b !important; --kunon: #3e4b73 !important; --kunkun: #3e4b73 !important; --naon: #67461f !important; --nakun: #67461f !important; --onna: #67461f !important; --kunna: #67461f !important; --nana: #67461f !important; --special: #454b50 !important; --text: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root #confusionGuesserOverlay > div, html:root #confusionGuesserOverlay > div.highContrast { background: var(--wkrd-surface-raised) !important; border-color: var(--wkrd-border-strong) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38) !important; color: var(--wkrd-text) !important; } html:root #confusionGuesserOverlay .confusion-guesser__header { color: var(--wkrd-muted) !important; text-shadow: none !important; } html:root #confusionGuesserOverlay #guesses > a, html:root #confusionGuesserOverlay #guesses > a > *, html:root #confusionGuesserOverlay #guesses > a::before { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #confusionGuesserOverlay #guesses > a > *, html:root #confusionGuesserOverlay #guesses > a::before { box-shadow: none !important; } html:root #confusionGuesserOverlay #guesses > a.show > *, html:root #confusionGuesserOverlay #guesses > a.show::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important; } html:root #confusionGuesserOverlay > div > label, html:root #confusionGuesserOverlay > button, html:root #confusionGuesserOverlay #guesses > button { background: var(--wkrd-surface) !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #confusionGuesserOverlay > div > label:hover, html:root #confusionGuesserOverlay > button:hover, html:root #confusionGuesserOverlay #guesses > button:hover { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; } html:root #wkof_ds .ui-dialog, html:root #wkof_ds .ui-dialog-content, html:root #wkof_ds .ui-dialog-buttonpane, html:root #wkof_ds .ui-widget-content, html:root #wkof_ds .wkof_settings, html:root #wkof_ds .ui-tabs-panel { background: var(--wkrd-surface) !important; background-image: none !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #wkof_ds .ui-dialog { box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5) !important; } html:root #wkof_ds .ui-widget, html:root #wkof_ds .ui-widget button { text-shadow: none !important; } html:root #wkof_ds .ui-widget-header, html:root #wkof_ds .ui-dialog-titlebar { background: var(--wkrd-surface-raised) !important; background-image: none !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #wkof_ds .ui-dialog-title, html:root #wkof_ds .wkof_settings, html:root #wkof_ds .wkof_settings label, html:root #wkof_ds .wkof_settings legend, html:root #wkof_ds .wkof_settings .left, html:root #wkof_ds .wkof_settings .right, html:root #wkof_ds .ui-widget-content a { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #wkof_ds .wkof_settings fieldset { background: rgba(255, 255, 255, 0.025) !important; border-color: var(--wkrd-border) !important; } html:root #wkof_ds .wkof_settings section { background: var(--wkrd-surface-raised) !important; border-left: 3px solid var(--wkrd-border-strong); color: var(--wkrd-muted) !important; } html:root #wkof_ds .wkof_settings hr, html:root #wkof_ds .wkof_settings .ui-tabs .ui-tabs-nav { background: transparent !important; border-color: var(--wkrd-border) !important; } html:root #wkof_ds .ui-state-default, html:root #wkof_ds .ui-widget-content .ui-state-default, html:root #wkof_ds .ui-widget-header .ui-state-default, html:root #wkof_ds .ui-button { background: var(--wkrd-surface-raised) !important; background-image: none !important; border-color: var(--wkrd-border) !important; color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #wkof_ds .ui-state-hover, html:root #wkof_ds .ui-state-focus, html:root #wkof_ds .ui-button:hover, html:root #wkof_ds .ui-button:focus { background: var(--wkrd-surface-hover) !important; border-color: var(--wkrd-border-strong) !important; color: var(--wkrd-text) !important; } html:root #wkof_ds .ui-state-active, html:root #wkof_ds .ui-widget-content .ui-state-active, html:root #wkof_ds .ui-widget-header .ui-state-active, html:root #wkof_ds .wkof_settings .ui-tabs .ui-tabs-nav li.ui-tabs-active { background: #343a3f !important; border-color: var(--wkrd-border-strong) !important; color: var(--wkrd-text) !important; } html:root #wkof_ds .ui-state-default a, html:root #wkof_ds .ui-state-active a, html:root #wkof_ds .ui-state-hover a, html:root #wkof_ds .ui-state-focus a { color: var(--wkrd-text) !important; text-shadow: none !important; } html:root #wkof_ds .wkof_settings select, html:root #wkof_ds .wkof_settings textarea, html:root #wkof_ds .wkof_settings input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) { background: #111315 !important; border-color: var(--wkrd-border) !important; box-shadow: none !important; caret-color: var(--wkrd-text) !important; color: var(--wkrd-text) !important; } html:root #wkof_ds .wkof_settings select:focus, html:root #wkof_ds .wkof_settings textarea:focus, html:root #wkof_ds .wkof_settings input:focus { border-color: var(--wkrd-focus) !important; outline: 2px solid rgba(120, 169, 190, 0.35) !important; outline-offset: 0; } html:root #wkof_ds .wkof_settings input[type="checkbox"], html:root #wkof_ds .wkof_settings input[type="radio"] { accent-color: #628fa3; } html:root #wkof_ds .ui-slider { background: #111315 !important; border-color: var(--wkrd-border) !important; } html:root #wkof_ds .ui-slider .ui-slider-range { background: #4d7385 !important; background-image: none !important; } html:root #wkof_ds .ui-slider .ui-slider-handle { background: #8ca7b3 !important; border-color: #b7c7ce !important; box-shadow: 0 0 0 2px var(--wkrd-surface) !important; } html:root #wkof_ds .wkof_settings .note { color: var(--wkrd-muted) !important; } html:root #wkof_ds .wkof_settings .note.error { color: #e68b94 !important; } html:root #wkof_ds .wkof_settings .setting.invalid, html:root #wkof_ds .ui-state-error { background: #48262b !important; border-color: var(--wkrd-incorrect-border) !important; color: #ffdfe2 !important; } html:root #wkof_ds .wkof_settings .setting[disabled], html:root #wkof_ds .ui-state-disabled { background: #202327 !important; color: #798188 !important; opacity: 1 !important; } html:root #wkof_ds .ui-dialog-titlebar-close .ui-icon { filter: invert(1) brightness(1.4); } html:root #wkof_ds #wkofs_bkgd { background: rgba(0, 0, 0, 0.68) !important; } @media (max-height: 560px), (max-width: 680px) and (max-height: 760px) { html:root, html:root body, html:root .quiz { min-height: 100%; overflow-y: auto !important; } html:root .character-header { min-height: 0 !important; padding-top: 4px !important; padding-bottom: 4px !important; } html:root .character-header__content { min-height: 0 !important; padding-top: 2px !important; padding-bottom: 2px !important; } html:root .character-header__characters { font-size: 3.5rem !important; line-height: 1.05 !important; min-height: 0 !important; padding-top: 2px !important; padding-bottom: 2px !important; } html:root .quiz-input__question-type-container, html:root .quiz-input__question-type-container[data-question-type] { min-height: 30px !important; padding-top: 3px !important; padding-bottom: 3px !important; } html:root .quiz-input__question-category, html:root .quiz-input__question-type { font-size: 0.8rem !important; line-height: 1.2 !important; } html:root .quiz-input__input-container, html:root #answer-form { min-height: 46px !important; } html:root input#user-response.quiz-input__input, html:root .quiz-input__input { height: 46px !important; min-height: 46px !important; font-size: 1.2rem !important; line-height: 1.2 !important; padding-top: 4px !important; padding-bottom: 4px !important; } html:root .quiz-input__submit-button { width: 50px !important; min-width: 50px !important; } html:root button.later-crabigator { top: 5px !important; right: 54px !important; bottom: 5px !important; min-width: 58px !important; padding: 0 8px !important; } html:root button.later-crabigator.left { right: auto !important; left: 6px !important; } html:root #additional-content .additional-content__menu { min-height: 42px !important; align-items: stretch !important; justify-content: center !important; flex-wrap: wrap !important; gap: 4px !important; padding: 4px !important; } html:root #additional-content .additional-content__menu > .additional-content__menu-item { flex: 1 1 42px !important; min-width: 42px !important; } html:root #additional-content #option-retype { flex: 0 0 96px !important; width: 96px !important; min-width: 96px !important; margin: 0 !important; } html:root #additional-content #option-retype .additional-content__item { display: flex !important; min-height: 36px !important; align-items: center !important; justify-content: center !important; gap: 6px !important; padding: 4px 8px !important; } html:root #additional-content #option-retype .additional-content__item-text { display: block !important; overflow: visible !important; font-size: 0.78rem !important; text-overflow: clip !important; } html:root #additional-content #option-retype .additional-content__item-icon-container, html:root #additional-content #option-retype svg { width: 1rem !important; height: 1rem !important; } } html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) .quiz-input, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) .quiz-input__input-container, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) #answer-form, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) #additional-content, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) #additional-content .additional-content__menu { background: #17271d !important; } html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) .quiz-input__question-type-container, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) .quiz-input__question-type-container[data-question-type] { background: #1d3526 !important; border-color: var(--wkrd-correct-border) !important; } html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) input#user-response.quiz-input__input, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) .quiz-input__input, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) .quiz-input__submit-button, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) button.later-crabigator, html:root:has(.quiz-input__input-container[correct]:not([correct="false"]):not([incorrect])) #additional-content .additional-content__item { background: var(--wkrd-correct) !important; border-color: var(--wkrd-correct-border) !important; color: var(--wkrd-text) !important; } html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) .quiz-input, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) .quiz-input__input-container, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) #answer-form, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) #additional-content, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) #additional-content .additional-content__menu { background: #2b181b !important; } html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) .quiz-input__question-type-container, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) .quiz-input__question-type-container[data-question-type] { background: #3b2025 !important; border-color: var(--wkrd-incorrect-border) !important; } html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) input#user-response.quiz-input__input, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) .quiz-input__input, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) .quiz-input__submit-button, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) button.later-crabigator, html:root:has(.quiz-input__input-container:is([incorrect], [correct="false"])) #additional-content .additional-content__item { background: var(--wkrd-incorrect) !important; border-color: var(--wkrd-incorrect-border) !important; color: var(--wkrd-text) !important; } /* Native dark artwork; the site still supplies the animation and spaceship. */ html:root .days-studied-widget__background { background-image: url("https://assets.wanikani.com/assets/widgets/days-studied/default-dark-void-38521444.svg"); } html:root .theme--candy .days-studied-widget__background { background-image: url("https://assets.wanikani.com/assets/widgets/days-studied/candy-dark-void-3aeb5eea.svg"); } html:root .theme--pastel .days-studied-widget__background { background-image: url("https://assets.wanikani.com/assets/widgets/days-studied/pastel-dark-void-0d508c04.svg"); } html:root .theme--vintage .days-studied-widget__background { background-image: url("https://assets.wanikani.com/assets/widgets/days-studied/vintage-dark-void-f607dbc5.svg"); } } @-moz-document url-prefix("https://community.wanikani.com/") { /* Discourse palette: keep this separate from the learning site's selectors. */ html:root { color-scheme: dark; --csstools-color-scheme--light: ; --scheme-type: dark; --primary: #f3f5f6; --secondary: #151719; --tertiary: #86bdd4; --quaternary: #eea086; --header_background: #1c1f22; --header_primary: #f3f5f6; --primary-rgb: 243, 245, 246; --secondary-rgb: 21, 23, 25; --header_background-rgb: 28, 31, 34; --tertiary-rgb: 134, 189, 212; --primary-very-low-rgb: 28, 31, 34; --primary-low-rgb: 48, 53, 58; --primary-very-low: #1c1f22; --primary-low: #30353a; --primary-low-mid: #596169; --primary-medium: #aeb6bc; --primary-high: #c9cfd3; --primary-very-high: #e4e8eb; --primary-50: #1c1f22; --primary-100: #25292d; --primary-200: #30353a; --primary-300: #41474d; --primary-400: #596169; --primary-500: #929ba2; --primary-600: #aeb6bc; --primary-700: #bac3ca; --primary-800: #c9cfd3; --primary-900: #e4e8eb; --secondary-low: #c9cfd3; --secondary-medium: #aeb6bc; --secondary-high: #596169; --secondary-very-high: #25292d; --header_primary-low: #25292d; --header_primary-low-mid: #41474d; --header_primary-medium: #aeb6bc; --header_primary-high: #c9cfd3; --header_primary-very-high: #e4e8eb; --tertiary-very-low: #1b2b33; --tertiary-low: #203b48; --tertiary-medium: #4b7b90; --tertiary-high: #86bdd4; --tertiary-very-high: #b6dbea; --tertiary-hover: #b6dbea; --tertiary-25: #18252b; --tertiary-50: #1b2b33; --tertiary-100: #1e323c; --tertiary-200: #203b48; --tertiary-300: #294956; --tertiary-400: #365e70; --tertiary-500: #416d80; --tertiary-600: #4b7b90; --tertiary-700: #659bb1; --tertiary-800: #78adc3; --tertiary-900: #86bdd4; --quaternary-low: #422b25; --highlight: #ecd49b; --highlight-rgb: 236, 212, 155; --highlight-bg: #3c3423; --highlight-low: #3c3423; --highlight-medium: #5a4b2f; --highlight-high: #ecd49b; --danger: #f0a3ac; --danger-low: #3b2025; --danger-low-mid: #5a2930; --danger-medium: #d77683; --danger-hover: #ffd0d6; --success: #9bcaaa; --success-rgb: 155, 202, 170; --success-very-low: #1d2a22; --success-low: #254132; --success-medium: #689f7c; --success-hover: #c1e7cd; --love: #eea0b8; --love-low: #432735; --wiki: #9bcaaa; --d-selected: #203b48; --d-selected-text-color: #f3f5f6; --d-selected-hover: #294956; --d-hover: #25292d; --blend-primary-secondary-5: #1c1f22; --primary-med-or-secondary-med: #aeb6bc; --primary-med-or-secondary-high: #aeb6bc; --primary-high-or-secondary-low: #c9cfd3; --primary-low-mid-or-secondary-high: #596169; --primary-low-mid-or-secondary-low: #596169; --primary-or-primary-low-mid: #f3f5f6; --highlight-low-or-medium: #3c3423; --tertiary-or-tertiary-low: #86bdd4; --tertiary-low-or-tertiary-high: #203b48; --tertiary-med-or-tertiary: #86bdd4; --secondary-or-primary: #f3f5f6; --tertiary-or-white: #f3f5f6; --hljs-bg: #1c1f22; --inline-code-bg: #25292d; --hljs-comment: #aeb6bc; --hljs-attr: #93c9e3; --hljs-attribute: #dcade5; --hljs-keyword: #93c9e3; --hljs-title: #e9b98e; --hljs-name: #e9b98e; --hljs-punctuation: #c9cfd3; --hljs-symbol: #bad69d; --hljs-variable: #bad69d; --hljs-string: #bad69d; --hljs-number: #e9b98e; --hljs-tag: #dcade5; --hljs-addition: #9bcaaa; --hljs-deletion: #f0a3ac; --content-border-color: #41474d; --input-border-color: #596169; --d-input-bg-color: #1c1f22; --d-input-text-color: #f3f5f6; --d-input-focused-color: #86bdd4; --d-sidebar-background: #1c1f22; --d-content-background: #151719; --d-category-box-background-color: #1c1f22; --d-button-primary-bg-color: #294f62; --d-button-primary-bg-color--hover: #36687d; --d-button-primary-text-color: #f3f5f6; --d-button-primary-text-color--hover: #fff; --d-button-primary-icon-color: #f3f5f6; --d-button-primary-icon-color--hover: #fff; --d-button-danger-bg-color: #5a2930; --d-button-danger-bg-color--hover: #73343f; --d-button-danger-text-color: #f3f5f6; --d-button-danger-icon-color: #f3f5f6; --topic-timeline-border-color: #365e70; --topic-timeline-handle-color: #86bdd4; --chat-skeleton-animation-rgb: 28, 31, 34; --calendar-normal: #1b2b33; --calendar-close-to-working-hours: #203b48; --calendar-in-working-hours: #294956; --shadow-header: 0 1px 0 #41474d; --shadow-menu-panel: 0 8px 28px #0008; } html:root, html:root body { background: var(--secondary); color: var(--primary); } /* WaniKani-specific forum components still use fixed light-theme colors. */ html:root .wanikani-app-nav ul, html:root #page-footer { border-color: var(--content-border-color); } html:root .wanikani-app-nav ul li a { color: var(--tertiary); } html:root .wanikani-app-nav ul li.wanikani-app-nav-list-header { color: var(--primary-medium); } html:root #wanikani-promo { background: var(--primary-very-low); color: var(--primary-high); } html:root .moderator .topic-body, html:root .user-main .user-stream .item.moderator-action { background: #30212d; } /* Use the forum's own dark wordmark, preserving its artwork. */ html:root #site-logo.logo-big { content: url("https://global.discourse-cdn.com/wanikanicommunity/original/4X/f/8/3/f831b88f48531610023b1f8f61089f62690cb6f4.png"); } html:root :is(.relative-date, .topic-last-activity a, .topic-list .age a, .post-info .post-date, .post-info a, .topic-meta-data .names .username a) { color: var(--primary-medium); } html:root .d-header { background: var(--header_background); color: var(--header_primary); } html:root :is(.d-modal__container, .menu-panel, .user-card, .group-card, #reply-control) { background-color: var(--primary-very-low); color: var(--primary); } html:root :is(.d-editor-textarea-wrapper, .d-editor-input, .ProseMirror) { background-color: var(--secondary); color: var(--primary); } html:root .cooked :is(pre, code), html:root .d-editor-preview :is(pre, code) { background-color: var(--hljs-bg); } html:root :is(.cooked, .d-editor-preview) :is(blockquote, aside.onebox) { border-color: var(--content-border-color); } /* Keep generic button themes from painting the forum header controls. */ html:root .d-header .d-header-icons .icon { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--header_primary) !important; } html:root .d-header .d-header-icons .icon:hover, html:root .d-header .d-header-icons .icon[aria-expanded="true"] { background: var(--primary-low) !important; } html:root .d-header .d-header-icons .icon .d-icon { color: inherit !important; fill: currentColor !important; } html:root .btn { background-color: var(--primary-low) !important; color: var(--primary) !important; text-shadow: none !important; box-shadow: none; } html:root .btn .d-icon { color: inherit !important; } html:root .btn:hover { background-color: var(--primary-300) !important; } html:root .btn-primary { background-color: var(--d-button-primary-bg-color) !important; } html:root .btn-primary:hover { background-color: var(--d-button-primary-bg-color--hover) !important; } html:root .btn-danger { background-color: var(--d-button-danger-bg-color) !important; } html:root .btn-danger:hover { background-color: var(--d-button-danger-bg-color--hover) !important; } html:root .btn-flat { background: transparent !important; } html:root .btn-flat:hover { background-color: var(--primary-low) !important; } html:root :is(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--tertiary); outline-offset: 3px; } }