/* Compact header and an unpaginated, color-linked school day. */
.topbar .header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.topbar .theme-toggle,.topbar .pill-glass{position:static;inset:auto;flex:none}
.topbar .pill-glass .pi{width:36px;height:36px;padding:8px}
.topbar #btn-add{order:0;margin:0}
.topbar .mobile-brand{order:0;margin:0}
#page-timetable>.page-title,#page-calendar>.page-title,#page-clubs>.page-title,#page-settings>.page-title{margin-bottom:14px}
#page-list .page-heading{margin-bottom:10px}
.school-day{width:100%;padding:14px 14px 12px}
.school-day .sec-label{margin:0 0 10px}
.school-day .section-help{margin:0 0 8px;line-height:1.35}
#today-courses{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(var(--course-rows,1),minmax(36px,1fr));gap:5px;overflow:auto;align-content:stretch;background:transparent}
#today-courses[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--course-rows),minmax(48px,1fr))}
.school-day #today-courses[data-columns="2"] .course{grid-template-columns:30px minmax(0,1fr);gap:5px;padding:4px 5px!important}
#today-courses[data-columns="2"] .course-time{font-size:9px}
#today-courses[data-columns="2"] .course-name{font-size:11px}
#today-courses[data-columns="2"] .course-room{font-size:9px}
.school-day .course{width:100%;min-width:0;min-height:36px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:9px;padding:4px 9px!important;border:1px solid color-mix(in srgb,var(--course-color) 24%,var(--border-soft));border-left:3px solid var(--course-color);border-radius:7px;background:color-mix(in srgb,var(--course-color) 15%,var(--card));color:var(--text);text-align:left;font:inherit;cursor:pointer;transition:background .15s ease}
.school-day .course:hover{background:color-mix(in srgb,var(--course-color) 27%,var(--card))}
.school-day .course:focus-visible{outline:2px solid var(--text2);outline-offset:-2px}
.course-time{display:flex;flex-direction:column;gap:2px;font-size:10px;line-height:1.15;color:var(--text2);font-variant-numeric:tabular-nums}
.course-time span:last-child{opacity:.72}
.course-info{display:flex;flex-direction:column;min-width:0;gap:1px}
.course-name{font-size:12px;line-height:1.2;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.course-room{font-size:10px;line-height:1.15;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-schedule{gap:12px;align-items:stretch}.today-schedule .next-card{padding:14px 18px 12px}.today-schedule .next-content{min-height:65px}.today-schedule .next-content h2{margin:9px 0 5px;font-size:25px}.today-schedule .next-footer{padding-top:9px}.today-schedule .period-object{transform:scale(.8);height:62px}
:root[data-theme=dark] .school-day .course{background:color-mix(in srgb,var(--course-color) 16%,var(--card))}
:root[data-theme=dark] .school-day .course:hover{background:color-mix(in srgb,var(--course-color) 26%,var(--card))}
/* The grid must stretch to the available pane instead of its tallest task list. */
#list-modules{align-items:stretch;grid-template-rows:minmax(0,1fr)}
#list-modules>.task-group{max-height:100%;overflow:visible}
/* Calendar's final child is now functional content, not a removed help caption. */
#page-calendar .flex-row>.card>#cal-day-items{flex:1;min-height:0;margin-top:0!important;font-size:inherit!important;display:block}
.pager:has(button[hidden]){display:none}
@media(min-width:761px) and (max-height:800px){
  #today-due .task-group{padding:8px 16px 6px}#today-due .task-group header{min-height:24px;margin-bottom:2px}#today-due .group-icon{width:24px;height:24px}
  #today-due .hw-item{min-height:46px;padding:5px 0!important}#today-due .pager{height:24px;margin-top:2px}#today-due .pager button{height:23px}
  .today-schedule .next-content{min-height:40px}.today-schedule .next-content h2{font-size:22px;margin:5px 0}.today-schedule .next-content p{font-size:11px}.today-schedule .period-object{display:none}
  .school-day{padding:12px 12px 8px}.course-name{font-size:11px}.course-room{font-size:9px}#today-courses{gap:4px}
}
@media(max-width:760px){
  .topbar .header-actions{gap:5px}.topbar .theme-toggle{padding:7px}.topbar #btn-add{order:0;padding:9px 11px;font-size:12px}
  .topbar .pill-glass .pi{width:32px;height:34px}.topbar .mobile-brand{margin:0;order:0}
  #page-today[data-view=day] .school-day{padding:14px 14px 10px}
  #page-today[data-view=day] .next-content{min-height:40px}
  #today-courses{gap:5px}.course-name{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.school-day .course{transition:none}}
