/* Month geometry is independent from the height of its task pane. */
html[data-theme] body #studyCalendarWorkspace { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr); align-items:start; gap:24px; }
html[data-theme] body #studyCalendarWorkspace .studyCalendarGrid { align-self:start; align-content:start; height:auto!important; min-height:0!important; max-width:none!important; width:100%; box-sizing:border-box; grid-template-rows:38px; grid-auto-rows:minmax(88px,auto); border-radius:12px!important; overflow:hidden; }
html[data-theme] body #studyCalendarWorkspace .studyDay { min-height:88px; height:auto; padding:6px; box-sizing:border-box; background:var(--note-paper); }
html[data-theme] body #studyCalendarWorkspace .studyDayOutside { background:var(--note-bar); opacity:.65; }
html[data-theme] body #studyCalendarWorkspace .studyDaySelect { display:inline-grid; place-items:center; padding:0; min-width:28px; min-height:28px; background:transparent; border:0; box-shadow:none; color:var(--text-main); cursor:pointer; }
html[data-theme] body #studyCalendarWorkspace .studyDay time { font-size:12px; min-width:26px; min-height:26px; }
html[data-theme] body #studyCalendarWorkspace .studyDaySelected { outline:2px solid var(--text-accent); outline-offset:-2px; background:color-mix(in srgb,var(--text-accent) 8%,var(--note-paper)); }
html[data-theme] body #studyCalendarWorkspace .studyDaySelect:focus-visible { outline:2px solid var(--text-accent); outline-offset:1px; }
html[data-theme] body #studyCalendarWorkspace .studyEvent { margin-top:5px; gap:4px; padding:4px; min-height:25px; display:flex; justify-content:space-between; font-size:11px; }
html[data-theme] body #studyCalendarWorkspace .studyEventTitle { display:none; }
html[data-theme] body #studyCalendarWorkspace #studySessionDialog { position:sticky; top:20px; max-height:75dvh!important; align-self:start; border-radius:12px!important; }
html[data-theme] body #studyCalendarWorkspace .studyAddTopics { width:100%; margin:12px 0; min-height:44px; font-size:12px; }
.studyDaySummary,.studyEmptyDay { font-size:12px; line-height:1.8; }
@media(max-width:1000px) {
 html[data-theme] body #studyCalendarWorkspace { grid-template-columns:minmax(0,1fr); gap:18px; }
 html[data-theme] body #studyCalendarWorkspace #studySessionDialog { position:static; max-height:none!important; }
}
@media(max-width:600px) {
 html[data-theme] body #studyCalendarWorkspace .studyCalendarGrid { grid-template-rows:32px; grid-auto-rows:minmax(64px,auto); }
 html[data-theme] body #studyCalendarWorkspace .studyDay { min-height:64px; padding:3px; }
 html[data-theme] body #studyCalendarWorkspace .studyEvent { font-size:9px; padding:3px 1px; }
 html[data-theme] body #studyCalendarWorkspace .studyDay time { font-size:10px; min-width:23px; min-height:23px; }
}
