/* R99: light mint palette; existing text-color overrides stay in force. */
:root[data-theme="mint"]{
 color-scheme:light;--bg:#d8eee4;--card:#f4fcf8;--panel:#e7f5ee;--raised:#ffffff;--line:#a4cbb9;--ink:#193d32;--muted:#4c6b5e;--question-label-ink:#145e48;
 --brand:#18745c;--gold:#09634e;--mint:#147956;--pink:#86546c;--field:#f8fdfb;--secondary:#e0f0e7;--secondary-line:#87b9a2;--button-line:#146149;
 --nav-bg:#edf8f2;--hero:#c1e6d5;--hero-line:#8bc4a8;--hero-ink:#193d32;--hero-button:#18745c;--hero-button-ink:#ffffff;--hero-button-line:#146149;
 --letter-bg:#d3ecdf;--letter-line:#87b9a2;--badge-bg:#d7eee2;--badge-line:#91bea7;--selected-bg:#d4eddf;--selected-line:#18745c;
 --question-ink:#193d32;--context-ink:#304f42;--asked-ink:#0b5942;--noquestion-ink:#193d32;--plain-question:#193d32;--asked-surface:transparent;--asked-bg:transparent;--option-ink:#193d32;--incise-ink:#0b5942;
 --good-bg:#d1f0db;--good-line:#28844d;--bad-bg:#fce4e5;--bad-line:#bf4f5d;--bad-ink:#8c2638;--option-correct-ink:#0f5832;--strong-red:#ad2444;
 --timer-bg:#d0efdf;--timer-line:#5da885;--urgent-bg:#ffe2e7;--urgent-ink:#ac2140;--urgent-line:#cb6a7e;--progress-bg:#bedfce;
 --notice-bg:#e5f3eb;--notice-line:#92bea8;--notice-ink:#284d3d;--resume-bg:#e1f2e8;--resume-line:#8cb9a0;
 --read-context:#304f42;--read-question:#145e48;--read-answer:#153d30;--memory-question:#145e48;--score:#145e48;
 --review-good-fill:#def3e4;--review-good-line:#4a9569;--review-bad-fill:#fbe6e7;--review-bad-line:#bc6673;
 --r96-exam-main:#fff0ef;--r96-exam-main-line:#c72345;--r96-exam-title:#981333;--r96-exam-ink:#4e1829;--r96-exam-muted:#78515d;
 --r96-exam-book:#f4fcf8;--r96-exam-book-line:#8cbea6;--r96-book-title:#145e48;--r96-book-button:#18745c;--r96-exam-field:#fffdfa;--r96-exam-cta:#bc173b;--r96-exam-active:#ffe0e5;
 --exam-panel:#fff3f4;--exam-surface:#fff9f9;--exam-ink:#4e1829;--exam-muted:#78515d;--exam-line:#d7a1ac;--countdown-ink:#911a37;--verse-ink:#5e3040;--verse-ref:#7d4052;
}
:root[data-theme="mint"] body{background:var(--bg);color:var(--ink)}
html[data-pwa="desktop"][data-theme="mint"] body{min-width:0}
:root[data-theme="mint"] :is(.card,.book,.block,.metric,.answer,.theme-option,.settings-group,.text-sample,.theme-color-sample){background:var(--card);border-color:var(--line);color:var(--ink);box-shadow:none}
:root[data-theme="mint"] :is(input,select,textarea,.sound-toggle,.avatar,.mode-tabs button,.filter-tabs button,.question-choice,.question-dots button){background:var(--field);border-color:var(--line);color:var(--ink)}
:root[data-theme="mint"] :is(.cover-wrap,.nav,.session-header,.reader-toolbar,.reading-entry,.cloud-card,.cloud-form){background:var(--panel);color:var(--ink);border-color:var(--line)}
:root[data-theme="mint"] .nav button{color:var(--muted)}
:root[data-theme="mint"] .nav button.active{color:var(--gold)}
:root[data-theme="mint"] .primary{background:var(--brand);color:#fff;border-color:var(--button-line)}
:root[data-theme="mint"] .secondary{background:var(--secondary);color:var(--gold);border-color:var(--secondary-line)}
:root[data-theme="mint"] :is(.question,.question-context,.asked.no-question,.answer>span:last-child){color:var(--ink);text-shadow:none}
:root[data-theme="mint"] .asked{color:var(--asked-ink);text-shadow:none}
:root[data-theme="mint"] .letter{background:var(--letter-bg);border-color:var(--letter-line);color:var(--gold)}
:root[data-theme="mint"] .answer.correct{background:var(--good-bg);border-color:var(--good-line);color:var(--option-correct-ink)}
:root[data-theme="mint"] .answer.wrong{background:var(--bad-bg);border-color:var(--bad-line);color:var(--bad-ink)}
:root[data-theme="mint"] .answer.chosen{background:var(--selected-bg);border-color:var(--selected-line)}
:root[data-theme="mint"] .timer{background:var(--timer-bg);color:#145e48;border-color:var(--timer-line)}
:root[data-theme="mint"] .timer.urgent{background:var(--urgent-bg);color:var(--urgent-ink);border-color:var(--urgent-line)}
:root[data-theme="mint"] .hero{background:var(--hero);border-color:var(--hero-line)}
:root[data-theme="mint"] .hero :is(h2,p){color:var(--hero-ink)}
:root[data-theme="mint"] .theme-option.selected{border:2px solid var(--brand)}
.theme-preview.mint{background:#d8eee4}.theme-preview.mint i:nth-child(1){background:#18745c}.theme-preview.mint i:nth-child(2){background:#f4fcf8}.theme-preview.mint i:nth-child(3){background:#96cbb3}
/* Notice artwork with functional accessible buttons. */
:root[data-theme] dialog.welcome-art-notice{position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;width:min(calc(100% - 14px),calc((100dvh - 24px)*var(--welcome-art-ratio,0.83661561)),680px);min-width:0;min-height:0;max-width:none;max-height:none;height:auto;max-inline-size:none;padding:0!important;border:0!important;outline:0;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible;line-height:0}
dialog.welcome-art-notice::backdrop{background:#0b1118a8;backdrop-filter:blur(4px)}
.welcome-art-frame{position:relative;width:100%;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;clip-path:none!important;overflow:visible!important;background:transparent!important;line-height:0;isolation:isolate}
:root[data-theme] .welcome-art-notice .welcome-art-image{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;max-inline-size:none!important;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;clip-path:none!important;box-shadow:none!important;background:transparent!important;user-select:none;-webkit-user-drag:none}
:root[data-theme] .welcome-art-hit{position:absolute;display:block;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;font-size:0!important;line-height:0;min-height:0!important;min-width:0;text-shadow:none!important;z-index:2}
.welcome-art-hit:focus-visible{outline:3px solid #fff4b0!important;outline-offset:1px}
.welcome-art-close{left:85%;top:1.2%;width:11.5%;height:9.4%;border-radius:50%}
.welcome-art-study{left:6.8%;top:72.5%;width:42%;height:12.2%;border-radius:20%}
.welcome-art-buy{left:52.8%;top:72.5%;width:41.5%;height:12.2%;border-radius:20%}
.r100-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
/* The trial notice follows the welcome artwork and keeps the existing access checks. */
:root[data-theme] #access-gate.access-gate-art{display:grid;place-items:center;padding:12px;background:radial-gradient(ellipse at center,#491121,#19070e);overflow:auto}
:root[data-theme] #access-gate.access-gate-art[hidden]{display:none!important}
.trial-ended-frame{position:relative;width:min(100%,calc((100dvh - 24px)*.800285),560px);margin:auto;padding:0;border:0;border-radius:0;background:transparent;line-height:0;isolation:isolate}
:root[data-theme] .trial-ended-frame .trial-ended-image{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;clip-path:none!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important;user-select:none;-webkit-user-drag:none}
:root[data-theme] .trial-ended-hit{position:absolute;display:block;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;font-size:0!important;line-height:0;min-height:0!important;min-width:0;text-shadow:none!important;z-index:2}
.trial-ended-hit:focus-visible{outline:3px solid #fff4b0!important;outline-offset:1px}
.trial-ended-buy{left:9.5%;top:68.1%;width:81%;height:9.2%;border-radius:50px}
.trial-ended-retry{left:10%;top:78%;width:80%;height:8.9%;border-radius:50px}
.trial-ended-signout{left:29%;top:87.3%;width:42%;height:5%;border-radius:8px}
