:root{--dmm-font-scale:1}body{font-size:calc(16px * var(--dmm-font-scale))!important}.dmm-display-controls{display:flex;gap:7px;align-items:center;flex:none}.dmm-display-btn{width:36px;height:36px;border:1px solid #e1e2e6;border-radius:50%;background:#fff;color:#344054;font:700 22px Arial,sans-serif;display:grid;place-items:center;padding:0;cursor:pointer}.dmm-display-btn:focus-visible,.dmm-font-dialog button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}.dmm-font-dialog{border:1px solid #d9dfe7;border-radius:18px;padding:22px;width:min(370px,calc(100% - 30px));box-shadow:0 18px 65px #0003;color:#18212e;background:#fff;direction:rtl}.dmm-font-dialog::backdrop{background:#0008}.dmm-font-head{display:flex;align-items:center;justify-content:space-between;font-size:20px}.dmm-font-close{border:0;background:#f1f3f6;border-radius:9px;font-size:25px;width:35px;height:35px}.dmm-font-dialog p{margin:15px 0}.dmm-font-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}.dmm-font-controls button,.dmm-font-reset{padding:10px 15px;border-radius:10px;border:1px solid #d7dce4;background:#f8fafc;font-weight:700}.dmm-font-dialog input{width:100%;accent-color:#c92c35}.dmm-font-reset{display:block;margin:20px auto 0}/* Shared light/dark palette, including imported exercises and native dialogs. */
html.dmm-dark{color-scheme:dark;--ink:#f1f5f9;--muted:#b0bfd0;--red:#cf3543;--red-dark:#ff9ba5;--gold:#efbf58;--cream:#101722;--line:#3a485d;--blue:#23364a;--white:#192333;--shadow:0 24px 70px #0005;background:#101722}
html.dmm-dark body{background:#101722!important;color:#edf2f9!important}
html.dmm-dark :is(.site-header,.main-nav,.mobile-bottom-nav,.bank-nav){background:#151e2c!important;color:#edf2f9!important;border-color:#38465a!important}
html.dmm-dark :is(.main-nav a,.brand strong,.header-actions,.text-button,.bank-nav a){color:#edf2f9!important}
html.dmm-dark :is(.hero,.app-hero,.pricing-hero,.pricing-section,.spv-shell,#lesen-themen-katalog){background:#101722!important;color:#edf2f9!important}
html.dmm-dark :is(.card,.bank-card,.preview-card,.exercise-card,.skill-card,.level-panel,.level-switch,.overview,.instruction,.reading,.task-sheet,.editor-card,.writing-card,.result,.notice,.tool-btn,.part-tab,.task-pick button,#task-pick button,.spv-topic,.spv-learning,.spv-ai-result,.spv-pdf-section,.spv-report-section,.dmm-question-card,.dmm-ad-card,.dmm-import-paragraph,.dmm-import-ar,.pdf-intro,.pdf-group,.pdf-topic,.pdf-topic-body,.pdf-audio-wrap,.plan-card,.pricing-assurance,.notif-panel,.dmm-profile-panel,.dmm-profile-plan,.dmm-profile-expiry){background:#192333!important;color:#edf2f9!important;border-color:#3a485d!important;box-shadow:none}
html.dmm-dark :is(dialog,.dmm-font-dialog,.dmm-variants,.spv-dialog,.spv-report-modal,.dmm-session-dialog,.dmm-gate,.auth-dialog){background:#192333!important;color:#edf2f9!important;border-color:#3a485d!important}
html.dmm-dark :is(.dmm-variants-head,.dmm-variants-footer,.dmm-variant-row,.dmm-variants-close,.dmm-profile-link,.dmm-profile-logout,.spv-dialog-body section,.pdf-back,.catalog-tab,.lesen-themen-grid button,.dmm-answer,.dmm-heading-option,.dmm-teil3-choice,.dmm-font-controls button,.dmm-font-reset,.dmm-font-close,.dmm-display-btn,.bank-btn.alt){background:#233044!important;color:#edf2f9!important;border-color:#44556f!important}
html.dmm-dark :is(.dmm-variant-row:hover,.pdf-group:hover,.spv-topic:hover,.lesen-themen-grid button:hover){background:#303f55!important}
html.dmm-dark :is(h1,h2,h3,h4,h5,p,label,small,strong,.dmm-reading,.pdf-group strong,.pdf-intro h2,.spv-topic strong,.plan-price strong,.task-sheet,.bank-title,.bank-muted,.section-label,.spv-part-title,.dmm-import-count){color:inherit!important}
html.dmm-dark body .main-nav a{color:#edf2f9!important}
html.dmm-dark body .main-nav a.active{color:#ffabb3!important}
html.dmm-dark body :is(.pricing-intro,.pricing-kicker){background:#233044!important;color:#edf2f9!important;border-color:#44556f!important}
html.dmm-dark body .plan-card :is(h2,p,li,.plan-price,.plan-price strong,.plan-price span){color:#edf2f9!important}
html.dmm-dark .subscriptions-page .pricing-grid .plan-card :is(.plan-header h2,.plan-header p,.plan-price strong,.plan-price span){color:#edf2f9!important}
html.dmm-dark :is(input,select,textarea){background:#101722!important;color:#f3f6fb!important;border-color:#52617a!important;caret-color:#f3f6fb}
html.dmm-dark input::placeholder,html.dmm-dark textarea::placeholder{color:#aebdd0!important;opacity:1}
html.dmm-dark :is(.dmm-variant-number,.dmm-variant-level,.plan-badge){background:#46391f!important;color:#ffe1a0!important;border-color:#bc9140!important}
html.dmm-dark :is(.dmm-variants-icon,.button-red,.plan-button,.bank-btn:not(.alt)){background:#b62939!important;color:#fff!important}
html.dmm-dark .button-dark{background:#efbf58!important;color:#171b20!important}
html.dmm-dark :is(.catalog-tab.active,.level-switch .active,.part-tab.active,.spv-level-btn.selected,.spv-part-btn.selected){background:#a72a39!important;color:#fff!important;border-color:#f78e9a!important}
html.dmm-dark :is(.pdf-quiz-table th,th){background:#243246!important;color:#e7edf6!important;border-color:#46546b!important}
html.dmm-dark :is(.pdf-quiz-table td,td){border-color:#3a485d!important}
html.dmm-dark :is(.pdf-right,.dmm-import-right,.dmm-gap-correct,.dmm-teil3-choice.right){background:#173c30!important;color:#b7f1d4!important}
html.dmm-dark :is(.pdf-wrong,.dmm-import-wrong,.dmm-gap-incorrect,.dmm-teil3-choice.wrong){background:#512832!important;color:#ffced3!important}
html.dmm-dark :is(.pdf-missing,.pdf-source-note,.notice){background:#403621!important;color:#ffe0a0!important}
html.dmm-dark mark,html.dmm-dark .pdf-fluorescent{background:#e2ed84!important;color:#142113!important}
html.dmm-dark .site-footer{background:#0b111a!important;color:#e2eaf5!important}
html.dmm-dark dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}
.dmm-ai-credit-status{padding:12px 15px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--cream,#fbf8f2);line-height:1.8;font-weight:700}
html.dmm-dark .dmm-ai-credit-status{background:#223147!important;color:#f1f5f9!important;border-color:#465b79!important}
html.dmm-dark #ai-credit-admin :is(h2,h3,p,label,td){color:#edf2f9!important}
html.dmm-dark [hidden],html.dmm-dark .cloud-hide{display:none!important}
.dmm-reading,.dmm-answer,.dmm-heading-option,.dmm-ad-card p,.dmm-teil3-situation p,.dmm-gap-text{font-size:calc(1em * var(--dmm-font-scale))!important;line-height:1.8!important}
@media(max-width:760px){.dmm-display-controls{gap:5px}.dmm-display-btn{width:32px;height:32px;font-size:19px}.header-inner{gap:7px!important}}
