/* R129: opaque study surfaces, legible markers and the original exam-card proportions. */
html[data-theme="grafito-mate"],html[data-theme="oliva-mate"],html[data-theme="tinta-mate"]{
 color-scheme:dark;--bg:#252f34;--card:#303d41;--panel:#2b373b;--raised:#3b4a4e;--field:#354448;--line:#586d6b;
 --ink:#e0e7df;--muted:#bbc9c0;--brand:#8db9aa;--brand2:#aecbbe;--gold:#cebf9b;--mint:#acd1b8;--pink:#e0acbc;
 --secondary:#354448;--secondary-line:#66847b;--brand-ink:#20352e;--button-line:#73978a;
 --hero:#2d3d3d;--hero-line:#5c7970;--hero-ink:#e0e7df;--hero-button:#41695d;--hero-button-ink:#eee9dd;--hero-button-line:#88ac9b;
 --badge-bg:#40544d;--badge-line:#7c9c8d;--selected-bg:#40564e;--selected-line:#92b9a5;
 --timer-bg:#354448;--timer-line:#7d9c8d;--urgent-bg:#53323d;--urgent-line:#d38b9d;--urgent-ink:#f0c1cc;
 --good-bg:#2d4b3d;--good-line:#8bb99b;--good:#c1e2cb;--bad-bg:#543640;--bad-line:#c78b9a;--bad-ink:#f0c5d0;--bad:#f0c5d0;
 --nav-bg:#2b373b;--progress-bg:#4a5d59;--question-ink:#e0e7df;--plain-question:#e0e7df;--context-ink:#d2dfd5;--asked-ink:#e0e7df;
 --noquestion-ink:#e0e7df;--question-label-ink:#bbc9c0;--option-ink:#dee6df;--quiz-answer:#dee6df;--read-context:#d2dfd5;--read-question:#e0e7df;--read-answer:#c4ddc7;--incise-ink:#d3c5e1;--option-correct-ink:#d1ead9;
 --letter-bg:#384b47;--letter-line:#718f83;--resume-bg:#314840;--resume-line:#709582;--notice-bg:#494631;--notice-line:#b6a56c;--notice-ink:#e5dcc0;
 --strong-red:#efadbf;--memory-question:#e0e7df;--future:#d2c3df;--future-soft:#443d4d;--accent:#a7c5b4;--accent-soft:#40554c;
 --review-green:#c1e2cb;--review-red:#f0c5d0;--review-good-fill:#2d4b3d;--review-bad-fill:#543640;--review-good-line:#8bb99b;--review-bad-line:#c78b9a;
 --paper-rule:#77978b24;--paper-margin:#b381902e;
 --cpu-page:var(--bg);--cpu-card:var(--card);--cpu-ink:var(--ink);--cpu-muted:var(--muted);--cpu-line:var(--line);--cpu-red:#efa9ba;--cpu-soft:#45343e;
}
html[data-theme="oliva-mate"]{--bg:#2e342d;--card:#384135;--panel:#333c31;--field:#3d4839;--raised:#465041;--line:#6b7d62;--secondary:#3d4839;--nav-bg:#333c31;--hero:#354230;--hero-line:#7c916a;--brand:#b2c89e;--brand2:#c4d4b4;--gold:#d1c49d;--accent:#bdcba6;--accent-soft:#4b5940;--selected-bg:#4b5940;--selected-line:#a3ba8e;--letter-bg:#434f3c;--future-soft:#4a4538}
html[data-theme="tinta-mate"]{--bg:#342f38;--card:#403947;--panel:#3b3441;--field:#48414f;--raised:#504757;--line:#81728b;--secondary:#48414f;--nav-bg:#3b3441;--hero:#403748;--hero-line:#8c7899;--brand:#c7b3d6;--brand2:#d2c1dc;--gold:#d9c2a6;--accent:#cbb8d9;--accent-soft:#55455f;--selected-bg:#55455f;--selected-line:#b39ac4;--letter-bg:#514259;--future-soft:#514259;--muted:#cec3d1}
html[data-matte-study] body{background:var(--bg)!important;background-image:none!important;color:var(--ink)!important}
html[data-matte-study] body #app :is(.top,.nav,.reader-toolbar,.ps-session-head,.mobile-study-footer){background:var(--panel)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-matte-study] body #app :is(.question,.memory-prompt,.ps-question-card,.ps-answer-card,.card,.book,.reading-entry,.settings-group,.settings-panel,.book-intro,.ps-catalog-heading,.block-choice,.memory-block-choice){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-matte-study] body :is(dialog,.mode-settings-dialog,.ps-settings-dialog,.hl-editor,.hl-catalog,.question-selector){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-matte-study] body :is(.ps-settings-head,.ps-settings-footer,.mode-settings-dialog>header,.mode-settings-dialog>footer){background:var(--panel)!important;border-color:var(--line)!important}
html[data-matte-study] body dialog.reactor-intro{background:#0d1018!important;color:#eef1f7!important}
html[data-matte-study] body #app :is(.answer,.memory-choice){background:var(--card)!important;color:var(--option-ink)!important;border-color:var(--line)!important;opacity:1!important}
html[data-matte-study] body #app :is(.answer.correct,.memory-choice[data-state="correct"]){background:var(--good-bg)!important;color:var(--good)!important;border-color:var(--good-line)!important}
html[data-matte-study] body #app :is(.answer.wrong,.memory-choice[data-state="wrong"]){background:var(--bad-bg)!important;color:var(--bad-ink)!important;border-color:var(--bad-line)!important}
html[data-matte-study] body #app :is(.answer.chosen,.memory-choice[aria-pressed="true"]){border-color:var(--selected-line)!important}
html[data-matte-study] body :is(#app,dialog) :is(button.primary:not(:disabled),.ps-next:not(:disabled)){background:#41695d!important;color:#eee9dd!important;-webkit-text-fill-color:#eee9dd!important;border-color:#88ac9b!important;box-shadow:none!important}
html[data-theme="oliva-mate"] body :is(#app,dialog) :is(button.primary:not(:disabled),.ps-next:not(:disabled)){background:#516845!important;border-color:#a5bc93!important}
html[data-theme="tinta-mate"] body :is(#app,dialog) :is(button.primary:not(:disabled),.ps-next:not(:disabled)){background:#695175!important;border-color:#bba2cb!important}
html[data-matte-study] body button:disabled:not(.answer):not(.memory-choice){background:var(--raised)!important;color:var(--muted)!important;-webkit-text-fill-color:var(--muted)!important;opacity:1!important;border-color:var(--line)!important}
html[data-matte-study] body :is(.question-selector-list,.memory-picker-list) :is(button,strong,.asked,.question-context){color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;background:transparent!important;text-shadow:none!important}
html[data-matte-study] body :is(.question-selector-list,.memory-picker-list) button{background:var(--field)!important;border-color:var(--line)!important}
html[data-matte-study] body #app :is(.ps-card-heading,.ps-answer-footer,.ps-toolbar,.reader-voice-tools){background:var(--panel)!important;border-color:var(--line)!important}
html[data-matte-study] body #app :is(.question-label,.book-n,.eyebrow,.ps-kicker,.memory-preview-label,.reading-subject,.reader-location,.small-copy,.subtitle,.ps-help){color:var(--muted)!important;-webkit-text-fill-color:var(--muted)!important}
html[data-matte-study] body #app .nav button.active{background:var(--selected-bg)!important;color:var(--ink)!important;border-color:var(--selected-line)!important}
html[data-matte-study] :is(.question,.reading-answer,.answer,.memory-option-copy,.memory-feedback,.review-response) mark.study-marker{background:var(--marker-color,#ffe784)!important;color:#203744!important;-webkit-text-fill-color:#203744!important}
html[data-matte-study] .notes-example .marker-concept{background:#fff18a!important}
html[data-matte-study] .notes-example .marker-anchor{background:#c1eea4!important}
html[data-matte-study] .notes-example .marker-relation{background:#ffc4d7!important}
html[data-matte-study] .theme-preview.grafito-mate{background:#252f34!important}.theme-preview.grafito-mate i:nth-child(1){background:#88ac9b}.theme-preview.grafito-mate i:nth-child(2){background:#d8c49b}.theme-preview.grafito-mate i:nth-child(3){background:#c8b6d6}
.theme-preview.oliva-mate{background:#2e342d!important}.theme-preview.oliva-mate i:nth-child(1){background:#a3ba8e}.theme-preview.oliva-mate i:nth-child(2){background:#d1c49d}.theme-preview.oliva-mate i:nth-child(3){background:#c6b5ce}
.theme-preview.tinta-mate{background:#342f38!important}.theme-preview.tinta-mate i:nth-child(1){background:#c7b3d6}.theme-preview.tinta-mate i:nth-child(2){background:#d9c2a6}.theme-preview.tinta-mate i:nth-child(3){background:#a9c6b7}
/* R100 card metrics: 20/18/19 padding, 29–38px title; 30px padding on desktop. */
html[data-theme] body #app #main-content .admission-card{--admission-red:#f3a0b4;--admission-soft:#ffffff10;background:#84102a!important;border:1px solid #d4617b!important;border-top:3px solid #f18ba5!important;border-left:5px solid #ef708f!important;padding:20px 18px 19px!important;border-radius:16px!important;color:#f9ece4!important;box-shadow:0 7px 22px #62112624!important}
html[data-theme] body #app #main-content .admission-card .admission-heading{padding-bottom:15px;border-color:#d4778d!important}
html[data-theme] body #app #main-content .admission-card h2{font-size:clamp(29px,7.7vw,38px)!important;line-height:1.12!important;letter-spacing:-.8px!important;margin:12px 0 9px!important;color:#fff0df!important;-webkit-text-fill-color:#fff0df!important;font-weight:850!important}
html[data-theme] body #app #main-content .admission-card :is(p,span,small,summary,strong,.admission-kicker){color:#f6dce3!important;-webkit-text-fill-color:#f6dce3!important;opacity:1!important;text-shadow:none!important}
html[data-theme] body #app #main-content .admission-card .admission-kicker{font-size:11px!important;letter-spacing:1.3px}
html[data-theme] body #app #main-content .admission-card :is(.admission-facts,.exam-distribution,.cpu-exam-settings-row){border-color:#c7768b!important}
html[data-theme] body #app #main-content .admission-card svg{color:#f7d2da!important;stroke:currentColor!important}
html[data-theme] body #app #main-content .admission-card .cpu-exam-settings-row .cpu-exam-setup-summary{color:#f6dce3!important;-webkit-text-fill-color:#f6dce3!important;font-size:14px!important}
html[data-theme] body #app #main-content .admission-card :is(.cpu-exam-settings-button,.cpu-exam-resume){background:#641024!important;color:#f9e4e8!important;-webkit-text-fill-color:#f9e4e8!important;border-color:#d48196!important;min-height:42px!important}
html[data-theme] body #app #main-content .admission-card .admission-start{background:#be1e44!important;color:#fff0e5!important;-webkit-text-fill-color:#fff0e5!important;border:1px solid #ef8aa3!important;min-height:50px!important;font-size:16px!important}
html[data-theme] body #app #main-content .admission-card .admission-start svg{color:#fff0e5!important}
@media(min-width:1000px){html[data-pwa="desktop"][data-theme] body #app #main-content .admission-card{padding:30px!important}html[data-pwa="desktop"][data-theme] body #app #main-content .admission-card h2{font-size:38px!important}}
/* Matte mode also reaches the exam workspace and dialogs, not only the home page. */
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-clock{background:var(--cpu-soft)!important;border-color:#bc7a8d!important;border-bottom-color:#dc7892!important;color:var(--cpu-red)!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content :is(.cpu-exam-submit,.cpu-exam-navigation>button.primary){background:#b62043!important;color:#f9eae3!important;-webkit-text-fill-color:#f9eae3!important;border-color:#e68b9e!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-dock{background:var(--cpu-page)!important;border-color:var(--cpu-line)!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-workspace .answer.chosen{background:#573844!important;color:#f5d7df!important;-webkit-text-fill-color:#f5d7df!important;border-color:#df92a7!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-workspace .answer .letter{background:#48333c!important;color:#f1b5c4!important;-webkit-text-fill-color:#f1b5c4!important;border-color:#be7b8e!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-navigation>button:disabled{background:var(--raised)!important;color:var(--muted)!important;-webkit-text-fill-color:var(--muted)!important;border-color:var(--line)!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-map summary{color:#f1b5c4!important;-webkit-text-fill-color:#f1b5c4!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-map .question-dots{background:var(--panel)!important;border-color:#be7b8e!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-map .question-dots button{background:var(--field)!important;color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;border-color:var(--line)!important}
html[data-cpu-main-exam][data-matte-study] body #app #main-content .cpu-exam-map .question-dots button.done{background:#5c3c48!important;color:#f4d5dd!important;-webkit-text-fill-color:#f4d5dd!important}
html[data-matte-study] body .cpu-exam-settings-dialog{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-matte-study] body .cpu-exam-settings-dialog :is(h2,span,p,label,legend,small,output){color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important}
html[data-matte-study] body .cpu-exam-settings-dialog :is(header,footer){background:var(--panel)!important;border-color:var(--line)!important}
html[data-matte-study] body .cpu-exam-settings-dialog :is(input:not([type=range]):not([type=checkbox]),select,.time-options button,[data-apply-time]){background:var(--field)!important;color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;border-color:var(--line)!important}
html[data-matte-study] body .cpu-exam-settings-dialog .time-options :is(button.active,button[aria-pressed="true"]){background:#8d2844!important;color:#f7e7df!important;-webkit-text-fill-color:#f7e7df!important;border-color:#da93a5!important}
html[data-matte-study] body :is(.welcome-student,.welcome-plan,.access-gate-card){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-matte-study] body :is(.welcome-student,.access-gate-card) :is(h1,h2,h3,p,small,span,strong,em){color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;text-shadow:none!important}
html[data-matte-study] body .welcome-full{background:#493b42!important;border-color:#bd8b9c!important}
html[data-matte-study] body .welcome-full h3 :is(strong,span){color:#e8d5ac!important;-webkit-text-fill-color:#e8d5ac!important}
.access-gate-price{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);margin:14px 0}
.access-gate-price strong{font-size:28px;white-space:nowrap}.access-gate-price span{font-size:13px;text-align:left;line-height:1.5}
/* Personal: quiet, independent reading preferences in each mode. */
html[data-personal="true"] .ps-quiz .ps-workspace{grid-template-columns:var(--personal-quiz-columns,minmax(0,1fr) minmax(0,1fr))}
html[data-personal="true"] .ps-memory .ps-workspace{grid-template-columns:var(--personal-memory-columns,minmax(0,1fr) minmax(0,1fr))}
html[data-personal="true"] #app .ps-quiz .question :is(.asked,.question-context),html[data-personal="true"] #app .ps-quiz .ps-option-copy{line-height:var(--personal-quiz-line,1.6)!important}
html[data-personal="true"] #app .ps-memory .question :is(.asked,.question-context),html[data-personal="true"] #app .ps-memory .memory-option-copy{line-height:var(--personal-memory-line,1.6)!important}
html[data-personal="true"] #app .reader-text{max-width:var(--personal-reader-width,900px)!important}
html[data-personal="true"] #app .reader-text :is(.question-context,.asked,.reading-answer strong){line-height:var(--personal-reader-line,1.65)!important;font-weight:var(--personal-reader-weight,700)!important}
html[data-personal="true"] #app .ps-session :is(.ps-question-scroll,.ps-answer-scroll),html[data-personal="true"] .ps-settings-body{overscroll-behavior:contain;scrollbar-gutter:stable}
html[data-personal="true"] #app .ps-session button{transition:background-color .12s,border-color .12s!important}
html[data-personal="true"][data-quiz-density="compact"] #app .ps-quiz :is(.ps-question-scroll,.ps-answer-scroll){padding:14px!important}
html[data-personal="true"][data-memory-density="compact"] #app .ps-memory :is(.ps-question-scroll,.ps-answer-scroll){padding:14px!important}
html[data-personal="true"][data-quiz-density="compact"] #app .ps-quiz .answer,html[data-personal="true"][data-memory-density="compact"] #app .ps-memory .memory-choice{padding:10px 12px!important;min-height:50px!important}
html[data-personal="true"][data-study-motion="reduced"] #app .ps-session :is(.answer,.memory-choice,.ps-button){animation:none!important;transition:none!important}
.ps-palette-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}.ps-palette-list button{border:1px solid var(--line);border-radius:9px;background:var(--field);color:var(--ink);padding:9px 12px;min-height:38px;font-size:13px}
.ps-reader-customize{flex:none!important;width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;padding:7px!important;margin:0!important}.ps-reader-customize svg{width:19px;height:19px}
html[data-personal="true"] .ps-settings-tabs{display:flex!important;gap:6px;overflow-x:auto;flex:none}
html[data-personal="true"] .ps-settings-tabs [role=tab]{flex:1;white-space:nowrap}
.personal-exam-reading{display:block;margin:14px 0;font-size:13px}.personal-exam-reading>span{display:flex;justify-content:space-between;gap:10px}.personal-exam-reading input{width:100%;accent-color:#b51f3e}
html[data-personal="true"][data-cpu-main-exam] body #app #main-content .cpu-exam-workspace .question .question-context{font-size:calc(23px * var(--personal-exam-scale,1))!important}
html[data-personal="true"][data-cpu-main-exam] body #app #main-content .cpu-exam-workspace .question .asked{font-size:calc(25px * var(--personal-exam-scale,1))!important}
html[data-personal="true"][data-cpu-main-exam] body #app #main-content .cpu-exam-workspace .answer{font-size:calc(21px * var(--personal-exam-scale,1))!important}
@media(max-width:999px){html[data-personal="true"] :is(.ps-quiz,.ps-memory) .ps-workspace{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:600px){
 html[data-personal="true"][data-cpu-main-exam] body #app #main-content .cpu-exam-workspace .question .question-context{font-size:calc(20px * var(--personal-exam-scale,1))!important}
 html[data-personal="true"][data-cpu-main-exam] body #app #main-content .cpu-exam-workspace .question .asked{font-size:calc(22px * var(--personal-exam-scale,1))!important}
 html[data-personal="true"][data-cpu-main-exam] body #app #main-content .cpu-exam-workspace .answer{font-size:calc(18px * var(--personal-exam-scale,1))!important}
 html[data-personal="true"] .ps-settings-tabs{flex-wrap:wrap;display:flex!important}.ps-settings-tabs [role=tab]{flex:1 0 28%}
}
