/* Dark palette derived from the matching presentation stylesheet. */
@media screen{
:where(html[data-theme="dark"]) .plan-toolbar{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-toolbar strong{color:#f2f0e7;}
:where(html[data-theme="dark"]) .planner-calendar,:where(html[data-theme="dark"]) .progress-chart-panel{border:1px solid #40594b;background:#18231e;}
:where(html[data-theme="dark"]) .week-arrows .icon-button{border:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-days{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-day.has-tasks .day-indicator{background:#548566;}
:where(html[data-theme="dark"]) .plan-day[aria-pressed="true"]{background:#1e453a;color:#e2ebdd;}
:where(html[data-theme="dark"]) .plan-day[aria-pressed="true"] .day-indicator{background:#223429;}
:where(html[data-theme="dark"]) .plan-day:hover:not(:disabled):not([aria-pressed="true"]){background:#223429;}
:where(html[data-theme="dark"]) .agenda-heading span{color:#bccdc1;}
:where(html[data-theme="dark"]) .agenda-task{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .task-toggle{border:1px solid #40594b;}
:where(html[data-theme="dark"]) .task-toggle[aria-pressed="true"]{background:#1e453a;border-color:#759783;color:#e2ebdd;}
:where(html[data-theme="dark"]) .agenda-task small{color:#bccdc1;}
:where(html[data-theme="dark"]) .agenda-task.done h4{color:#bccdc1;}
:where(html[data-theme="dark"]) .agenda-empty h4{color:#f2f0e7;}
:where(html[data-theme="dark"]) .plan-summary{background:#223429;}
:where(html[data-theme="dark"]) .plan-summary dl > div{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-summary dd{color:#f2f0e7;}
:where(html[data-theme="dark"]) .plan-fit strong{color:#f2f0e7;}
:where(html[data-theme="dark"]) .plan-fit summary{color:#f2f0e7;}
:where(html[data-theme="dark"]) #plan-settings{border:1px solid #40594b;background:#18231e;color:#f2f0e7;}
:where(html[data-theme="dark"]) #plan-settings::backdrop{background:rgba(30,69,58,0.4);}
:where(html[data-theme="dark"]) .plan-fieldset{border-top:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-fieldset legend > span{color:#bccdc1;}
:where(html[data-theme="dark"]) .plan-form-grid input,:where(html[data-theme="dark"]) .plan-form-grid select,:where(html[data-theme="dark"]) .time-inputs input,:where(html[data-theme="dark"]) .select-label select,:where(html[data-theme="dark"]) .subject-blocks input{background:#18231e;border:1px solid #40594b;color:#f2f0e7;}
:where(html[data-theme="dark"]) .subject-choices-group{border-bottom:1px solid #40594b;}
:where(html[data-theme="dark"]) .plan-subject-choice input[type="checkbox"]{accent-color:#f2f0e7;}
:where(html[data-theme="dark"]) .subject-blocks{color:#bccdc1;}
:where(html[data-theme="dark"]) .plan-form-actions{border-top:1px solid #40594b;}
:where(html[data-theme="dark"]) #plan-form-error{background:#18231e;color:#f3bba6;border-left:3px solid #40594b;}
:where(html[data-theme="dark"]) .progress-stat{background:#18231e;border:1px solid #40594b;}
:where(html[data-theme="dark"]) .weekly-stat{background:#223429;border-color:#40594b;}
:where(html[data-theme="dark"]) .progress-number{color:#f2f0e7;}
:where(html[data-theme="dark"]) .week-goal-track{background:#223429;}
:where(html[data-theme="dark"]) .week-goal-track span{background:#1e453a;}
:where(html[data-theme="dark"]) .chart-total > span{color:#bccdc1;}
:where(html[data-theme="dark"]) .learning-bar-track{background:linear-gradient(to top,#40594b 1px,transparent 1px);}
:where(html[data-theme="dark"]) .learning-bar-track > span{background:#1e453a;}
:where(html[data-theme="dark"]) .learning-bar.future .learning-bar-track{background:repeating-linear-gradient(135deg, transparent, transparent 5px, #18231e 5px, #18231e 6px);}
:where(html[data-theme="dark"]) .progress-explain{border-top:1px solid #40594b;}
}
