/* Dark palette derived from the matching presentation stylesheet. */
@media screen{
:where(html[data-theme="dark"]) .cardbox-main .button{border:1px solid #40594b;background:#18231e;color:#f2f0e7;}
:where(html[data-theme="dark"]) .cardbox-main .button-primary,:where(html[data-theme="dark"]) .cardbox-main .rating-known{background:#1e453a;border-color:#759783;color:#e2ebdd;}
:where(html[data-theme="dark"]) .cardbox-main .button-danger,:where(html[data-theme="dark"]) .cardbox-main .danger-text{color:#f3bba6;}
:where(html[data-theme="dark"]) .cardbox-main input,:where(html[data-theme="dark"]) .cardbox-main select{color:#f2f0e7;background:#18231e;border:1px solid #40594b;}
:where(html[data-theme="dark"]) .cardbox-main :focus-visible{outline:#b5d6a7 solid 2px;}
:where(html[data-theme="dark"]) .small-note,:where(html[data-theme="dark"]) .budget-note,:where(html[data-theme="dark"]) .round-plan,:where(html[data-theme="dark"]) .storage-status,:where(html[data-theme="dark"]) .tool-status,:where(html[data-theme="dark"]) .session-footnote,:where(html[data-theme="dark"]) .summary-detail,:where(html[data-theme="dark"]) .summary-caveat{color:#bccdc1;}
:where(html[data-theme="dark"]) .cardbox-account-status{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .cardbox-account-status[data-mode="saving"]{border-color:#40594b;}
:where(html[data-theme="dark"]) .cardbox-main .notice{border:1px solid #40594b;background:#18231e;}
:where(html[data-theme="dark"]) .subject-panel{border:1px solid #40594b;background:#18231e;}
:where(html[data-theme="dark"]) .subject-group{border-top:1px solid #40594b;}
:where(html[data-theme="dark"]) .subject-group > summary > span{color:#bccdc1;}
:where(html[data-theme="dark"]) .subject-card{border:1px solid #40594b;background:#101816;}
:where(html[data-theme="dark"]) .subject-card[data-active="true"]{border-color:#40594b;background:#223429;}
:where(html[data-theme="dark"]) .subject-meta,:where(html[data-theme="dark"]) .access-message{color:#bccdc1;}
:where(html[data-theme="dark"]) .locked-progress{border:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-main{background:#223429;border:1px solid #40594b;}
:where(html[data-theme="dark"]) .date-label{color:#bccdc1;}
:where(html[data-theme="dark"]) .cardbox-main .stats{border-block:1px solid #40594b;}
:where(html[data-theme="dark"]) .stats span{color:#bccdc1;}
:where(html[data-theme="dark"]) .settings-explanation{color:#bccdc1;}
:where(html[data-theme="dark"]) .below-plan{border-top:1px solid #40594b;}
:where(html[data-theme="dark"]) .cardbox-details,:where(html[data-theme="dark"]) .storage-tools{border:1px solid #40594b;background:#18231e;}
:where(html[data-theme="dark"]) .summary-hint{color:#bccdc1;}
:where(html[data-theme="dark"]) .confirmation-box{border:1px solid #40594b;}
:where(html[data-theme="dark"]) .session-progress-row{border-bottom:4px solid #40594b;}
:where(html[data-theme="dark"]) .flashcard{background:#18231e;border:1px solid #40594b;box-shadow:rgba(0,0,0,0.02) 0px 10px 35px;}
:where(html[data-theme="dark"]) .card-meta{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .card-id{color:#bccdc1;}
:where(html[data-theme="dark"]) .answer-prompt{color:#bccdc1;}
:where(html[data-theme="dark"]) .card-answer{border-top:1px solid #40594b;}
:where(html[data-theme="dark"]) .card-links{border-top:1px solid #40594b;}
:where(html[data-theme="dark"]) .summary-panel{background:#18231e;border:1px solid #40594b;}
:where(html[data-theme="dark"]) #cardbox-menu{border:1px solid #40594b;background:#18231e;color:#f2f0e7;}
:where(html[data-theme="dark"]) #cardbox-menu::backdrop{background:rgba(30,69,58,0.333);}
}
