#dayStrip{margin:0;padding-bottom:0}
.schedule-modes{display:flex;background:#e9edf5;border-radius:12px;padding:3px;max-width:260px;margin:0 auto 18px}.schedule-modes button{flex:1;background:transparent;border:0;border-radius:9px;min-height:36px;color:var(--muted);font:inherit;font-size:14px}.schedule-modes button[aria-pressed=true]{color:var(--blue);background:#fff;box-shadow:0 2px 6px #13223a0c;font-weight:700}
.schedule-default{border:0;padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid var(--line);min-width:0}.schedule-default legend{font-weight:700;font-size:15px}.schedule-default-options{display:flex;gap:6px}.schedule-default-options label{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:11px;padding:10px 4px;min-height:44px;font-size:14px}.schedule-default-options label:has(:checked){color:var(--blue);border-color:#b7c9f4;background:var(--blue-soft)}.schedule-default-options input{accent-color:var(--blue);margin:0}
#accountView .account-section-heading,#accountView #notificationsTitle{font-size:20px;margin:26px 2px 12px;line-height:1.4}#accountView .display-preference,#accountView .profile-feature{margin-top:0}
#scheduleGrid{margin:0 0 18px;min-width:0}.timetable-head,.timetable-calendar{display:grid;grid-template-columns:repeat(var(--days),minmax(0,1fr));padding-right:47px;gap:3px}.timetable-head{margin:0 0 10px;text-align:center;font-size:12px}.timetable-head small{display:block;font-size:11px;direction:ltr;color:var(--muted)}.timetable-head>span{padding:5px 0;border-radius:8px}.timetable-head .selected{background:#e9edf5}.timetable-calendar{position:relative;margin-bottom:12px}.timetable-calendar-label{position:absolute;right:0;top:7px;width:40px;color:var(--muted);font-size:11px;line-height:1.5}.timetable-calendar button{display:flex;align-items:stretch;flex-direction:column;gap:4px;height:60px;min-width:0;border:1px solid var(--line);border-radius:7px;background:#fff;padding:5px 2px;color:var(--ink);font-size:11px;text-align:right}.timetable-calendar-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.timetable-calendar .planned-exam-badge{font-size:11px;padding:1px 0;white-space:nowrap;line-height:1.4;text-align:center;border-radius:5px}.timetable-count{display:grid;place-items:center;align-self:flex-end;margin-top:auto;width:23px;height:23px;flex:0 0 23px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:12px;line-height:23px;text-align:center;direction:ltr}.timetable-divider{border:0;border-top:1px solid #d8e0eb;margin:0 0 19px}
.timetable-axis{padding-right:47px;margin:4px 0 18px}.timetable-grid{position:relative;background:var(--bg);display:grid;grid-template-columns:repeat(var(--days),minmax(0,1fr))}.timetable-lane{position:relative;min-width:0;border-left:1px solid #e0e6ee}.timetable-lane:first-of-type{border-right:1px solid #e0e6ee}.timetable-tick{position:absolute;right:-47px;width:41px;text-align:left;transform:translateY(-50%);font-size:11px;color:var(--muted);direction:ltr;font-variant-numeric:tabular-nums}.timetable-rule{position:absolute;left:0;right:0;border-top:1px solid #e0e6ee;pointer-events:none}.timetable-slot{position:absolute;min-width:0;z-index:2}.timetable-lesson{display:flex;flex-direction:column;align-items:stretch;gap:2px;justify-content:flex-start;width:100%;height:100%;min-width:0;overflow:hidden;padding:6px 10px;border:1px solid #d5deea;border-radius:7px;box-shadow:0 1px 3px #13223a0a;background:#fff;color:var(--ink);text-align:right;font:inherit}.timetable-lesson>*{flex-shrink:0}.timetable-lesson strong{font-size:16px;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.timetable-details{display:flex;flex-direction:column;gap:2px;min-width:0;align-items:flex-start}.timetable-replacement-details{flex-direction:row;gap:8px;align-items:center}.timetable-details small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timetable-teacher-name{min-width:0}.timetable-details .timetable-room{flex-shrink:0;max-width:100%;background:var(--blue-soft);color:var(--blue);border-radius:6px;padding:2px 6px;font-size:11px;line-height:14px}.timetable-lesson small{font-size:12px;line-height:1.3;color:var(--muted)}.timetable-lesson .timetable-room{color:var(--blue)}.timetable-time{direction:ltr;text-align:right}.timetable-room{background:none}.timetable-lesson.timetable-room{background:#fff7e6;border-color:#ecd7a9;border-right:3px solid #b98712}.timetable-teacher{background:var(--blue-soft);border-color:#cbd8f6;border-right:3px solid var(--blue)}.timetable-time:not(small),.timetable-added,.timetable-source{border-right:3px solid #7654d6;background:#f5f1ff}.timetable-exam{background:var(--red-soft);border-right:3px solid var(--red)}.timetable-cancel{background:transparent;border:1px dashed #d9939f;box-shadow:none;color:#b82c42}.timetable-cancel strong{text-decoration:line-through}.timetable-status{font-size:11px;line-height:1.3;font-weight:700;color:var(--blue)}.timetable-cancel .timetable-status{color:#b82c42}.timetable-room .timetable-status{color:#8b620b}.timetable-week .timetable-lesson{padding:6px 2px;gap:4px;border-radius:6px}.timetable-week .timetable-lesson strong{font-size:11px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.timetable-week .timetable-lesson small{font-size:11px;overflow-wrap:anywhere}
.timetable-gap{position:absolute;right:2px;left:2px;display:flex;align-items:center;z-index:1}.timetable-gap .free-gap{width:100%;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:13px}.timetable-gap .free-gap strong{font-size:15px}.timetable-week .timetable-gap{justify-content:center;border:1px dashed #9fb0c8;border-radius:6px;background:repeating-linear-gradient(135deg,rgba(255,255,255,.7),rgba(255,255,255,.7) 10px,rgba(232,238,247,.65) 10px,rgba(232,238,247,.65) 20px);color:#506078;font-size:11px}.timetable-gap.has-cancellation{opacity:.5}.timetable-gap.has-cancellation>*{visibility:hidden}.timetable-gap.has-cancellation{background:repeating-linear-gradient(135deg,#ffffffb3,#ffffffb3 10px,#e8eef7a6 10px,#e8eef7a6 20px)}
.timetable-closure{position:absolute;inset:0;width:100%;overflow:hidden;overflow-wrap:anywhere;border:0;background:var(--blue-soft);display:flex;align-items:center;flex-direction:column;gap:7px;padding:17px 3px;text-align:center;color:var(--ink);font:inherit;font-size:12px;line-height:1.5}.timetable-closure>strong,.timetable-closure>small{max-width:100%;min-width:0}.timetable-closure small{font-size:11px;color:var(--muted)}.timetable-source-days{position:relative;display:grid;grid-template-columns:repeat(var(--days),minmax(0,1fr));padding-right:47px;gap:3px;margin-bottom:12px}.timetable-source-day{min-width:0;display:flex;flex-direction:column;gap:6px}.timetable-source-note{background:var(--blue-soft);border:1px solid #d6e1fc;border-radius:7px;padding:6px 3px;width:100%;min-width:0;height:64px;font:inherit;font-size:11px;line-height:1.4;color:var(--ink);text-align:center;overflow:hidden}.timetable-source-note{display:flex;flex-direction:column;align-items:stretch;gap:4px;height:60px;padding:5px 2px;text-align:right}.timetable-source-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.timetable-slot>div{height:100%;padding:0;margin:0;min-width:0}.timetable-slot .notification-marker{max-width:100%;font-size:10px;padding:2px;bottom:0;top:auto}.timetable-slot .notification-marker svg{display:none}.timetable-lane>.notification-target{height:100%;margin:0;padding:0}.timetable-now{position:absolute;left:0;right:0;border-top:2px solid var(--blue);z-index:5;pointer-events:none;box-shadow:0 1px 0 var(--bg),0 -1px 0 var(--bg)}.timetable-now:before{content:'';position:absolute;right:-4px;top:-5px;width:8px;height:8px;background:var(--blue);border-radius:50%}.timetable-now>span{position:absolute;left:25%;transform:translateX(-50%);top:-10px;color:var(--blue);background:var(--bg);padding:1px 2px;font-size:11px;direction:ltr}.timetable-week .timetable-now>span{display:none}
@media(max-width:360px){.timetable-gap .free-gap{grid-template-columns:1fr;gap:7px}.timetable-gap .free-gap .duration{grid-column:1}}

/* Align the annual-calendar label and weekly time labels on the same axis. */
.timetable-calendar-label{width:41px;text-align:center}
.timetable-week .timetable-tick{text-align:center}

.timetable-closure-label{position:absolute;left:3px;right:3px;top:17px;display:flex;flex-direction:column;align-items:center;gap:7px;overflow:hidden}.timetable-closure-label>*{max-width:100%;min-width:0;flex-shrink:0}

/* A backdrop follows the selected weekday through calendar events and time slots. */
#scheduleGrid{position:relative;isolation:isolate}
.timetable-selection{position:absolute;top:0;bottom:0;z-index:-1;background:#e4e9f1;border-radius:8px 8px 0 0;pointer-events:none}
.timetable-head .selected{background:transparent}
.timetable-grid.timetable-week{background:transparent}

/* Keep notification controls inside narrow weekly cells, including overlap lanes. */
.timetable-week .notification-target{border-radius:6px;outline-offset:-1px}
.timetable-week .notification-marker{left:0;right:0;top:auto;bottom:0;width:100%;min-width:0;max-width:100%;height:24px;min-height:24px;padding:0}
.timetable-week .notification-marker>span{font-size:0;line-height:0;gap:0;padding:3px;border-radius:5px;max-width:100%}
.timetable-week .notification-marker svg{display:block;width:12px;height:12px}
.timetable-week .notification-target>.timetable-lesson{padding-bottom:24px}

/* Keep the same clock line across views; agenda positions it over the active card. */
.agenda-now{position:relative;margin:12px 0;left:auto;right:auto}
.agenda-now:has(.now-detail){margin-bottom:26px}
.agenda-now .now-detail{position:absolute;right:12px;top:4px;color:var(--muted)}

#schedule{position:relative;isolation:isolate}
.agenda-now.agenda-now-inside{position:absolute;margin:0;left:0;right:0}

.timetable-lesson.timetable-source{background:#fff7e7;border-inline-start:3px solid #c28c2c}
.timetable-source .timetable-status{display:flex;align-items:center;gap:4px;color:#946617}
.timetable-source .uncertain-mark{width:13px;height:13px;flex-basis:13px;font-size:10px}

.timetable-source-note:has(.timetable-count) .timetable-source-title{-webkit-line-clamp:1;flex-shrink:0}.timetable-source-note .timetable-count{background:var(--surface)}

/* Estimated ends belong to the affected card, including narrow weekly columns. */
.lesson.estimated-end,.agenda-cell .lesson.estimated-end,.timetable-lesson.estimated-end{background:#e4f5f1;border-inline-start:3px solid #268577}
.estimated-end-label,.lesson .estimated-end-label{color:#17675d;font-size:12px;font-weight:700;line-height:1.3}
.timetable-week .estimated-end-label{align-self:flex-start;display:grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-size:14px;line-height:1;flex-shrink:0}
.estimated-end-note{border-inline-start:3px solid #268577;background:#e4f5f1;color:#17675d;padding:10px 12px;border-radius:8px}
/* Preserve a definite cancellation while still marking the estimated time. */
.lesson.change-cancel.estimated-end,.timetable-cancel.estimated-end{background:var(--red-soft);border-inline-start-color:var(--red)}
