.schedule-page {
  --navy: #153455; --blue: #205ab2; --border: #d4e0ee; --muted: #52667c;
  min-height: 100vh; background: linear-gradient(160deg,#eaf3fe 0,#f2f7fc 24rem,#f7f9fc 54rem); color: var(--navy);
}
.schedule-page [hidden] { display:none !important; }
.schedule-page .portal-width { width:min(1160px,calc(100% - 4rem)); margin-inline:auto; }
.portal-header { background:#fff; border-bottom:1px solid var(--border); }
.portal-bar, .portal-bar nav, .intro, .month-toolbar, .month-controls, .detail-heading, .sync-footer { display:flex; align-items:center; }
.portal-bar, .intro, .month-toolbar, .sync-footer { justify-content:space-between; }
.portal-bar { min-height:4.6rem; gap:1rem; }
.portal-brand { font:750 1.12rem var(--heading); letter-spacing:-.035em; }
.portal-brand span { color:var(--blue); }
.portal-bar nav { gap:1.25rem; }
.portal-bar nav a, .portal-bar nav button, .sync-footer button { font-size:.9rem; font-weight:650; color:var(--blue); }
.portal-bar nav button, .sync-footer button { background:none; border:0; padding:.55rem 0; }
.portal-main { padding-block:clamp(1.6rem,4vw,3.4rem) 3rem; }
.intro { gap:1rem; flex-wrap:wrap; margin-bottom:1.45rem; }
.intro h1 { font:750 clamp(2.05rem,4vw,3rem)/1.06 var(--heading); letter-spacing:-.055em; margin:0; }
.intro p { margin:.6rem 0 0; color:var(--muted); font-size:1rem; }
.schedule-page .card { border:1px solid var(--border); border-radius:1.25rem; background:#fff; box-shadow:0 6px 24px rgba(35,71,115,.055); }
.login-card { max-width:32rem; padding:clamp(1.2rem,4vw,2rem); }
.schedule-page h2 { font:700 1.33rem/1.25 var(--heading); letter-spacing:-.035em; margin:0; }
.login-card p { color:var(--muted); line-height:1.55; }
#email-form { display:grid; gap:.55rem; }
#email-form label { font-size:.95rem; font-weight:650; }
#email-form input { width:100%; border:1px solid #96acc5; padding:.7rem; border-radius:.55rem; }
.primary-button, .quiet-button, .month-controls button { border-radius:.65rem; min-height:2.75rem; font-weight:650; padding:.55rem .95rem; }
.primary-button { color:white; border:1px solid #194fa0; background:var(--blue); }
.primary-button:hover { background:#154990; }
.quiet-button, .month-controls button { color:var(--navy); border:1px solid #cbd9e8; background:white; }
.quiet-button:hover, .month-controls button:hover { background:#ebf3fd; }
.schedule-page button:disabled { cursor:wait; opacity:.65; }
#notice:not(:empty) { background:#edf4ff; border:1px solid #c1d6f1; border-radius:.65rem; padding:.75rem 1rem; overflow-wrap:anywhere; }
#notice:empty { margin:0; }
.calendar-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(15rem,.37fr); gap:1.15rem; align-items:start; }
.month-card { overflow:hidden; }
.month-toolbar { padding:1.15rem 1.35rem 1rem; gap:.5rem; }
.month-toolbar h2 { font-size:clamp(1.25rem,2.5vw,1.65rem); }
.student-filter { display:flex; align-items:center; gap:.6rem; width:fit-content; min-height:2.75rem; margin:0 1.35rem .35rem; font-size:.95rem; font-weight:650; cursor:pointer; }
.student-filter input { width:1.2rem; height:1.2rem; margin:0; accent-color:var(--blue); }
.month-controls { gap:.3rem; }
.month-controls button { min-width:2.75rem; padding:.35rem .65rem; font-size:.88rem; }
.month-controls button span { display:block; font:500 1.6rem/1 system-ui,sans-serif; }
.weekdays, .date-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.weekdays { background:#f2f6fb; border-block:1px solid var(--border); color:#46617c; }
.weekdays span { text-align:center; padding:.6rem 0; font-size:.81rem; font-weight:700; }
.date-grid { background:#dce6f0; gap:1px; }
.date-cell { border:0; min-width:0; min-height:4.65rem; background:white; display:flex; flex-direction:column; align-items:flex-start; gap:.33rem; padding:.42rem; text-align:left; color:var(--navy); position:relative; font-size:.94rem; }
.date-cell.outside { color:#8a98a8; background:#f7f9fc; }
button.date-cell:hover { background:#f1f7ff; }
button.date-cell.selected { background:#e6f0ff; box-shadow:inset 0 0 0 2px #447bcc; }
button.date-cell:focus-visible { z-index:1; outline-offset:-4px; }
.number { display:grid; place-items:center; width:1.6rem; height:1.6rem; font-weight:650; }
.date-cell[aria-current="date"] .number { border-radius:50%; background:var(--navy); color:white; }
.markers, .legend, .legend li, .status-tag { display:flex; align-items:center; }
.markers { min-width:0; max-width:100%; gap:.15rem; flex-wrap:wrap; }
.status-tag { gap:.32rem; font-size:.875rem; font-weight:650; line-height:1.3; }
.status-open { --tone:#2864ad; --wash:#e6f0ff; }
.status-booked { --tone:#14705c; --wash:#ddf4ed; }
.status-blocked { --tone:#5e6878; --wash:#eef0f4; }
.status-changed { --tone:#955015; --wash:#fff0dd; }
.mark { display:inline-block; width:.56rem; height:.56rem; border-radius:50%; background:var(--tone); flex:none; }
.status-booked .mark { border-radius:2px; }
.status-blocked .mark { border-radius:1px; height:3px; }
.status-changed .mark { transform:rotate(45deg) scale(.82); border-radius:0; }
.markers .status-tag, .detail-row .status-tag { color:var(--tone); background:var(--wash); padding:.22rem .36rem; border-radius:.35rem; }
.legend { list-style:none; padding:.85rem 1.3rem; margin:0; flex-wrap:wrap; gap:.55rem 1rem; border-top:1px solid var(--border); }
.legend li { color:var(--muted); font-size:.875rem; font-weight:600; gap:.35rem; }
.detail-card { overflow:hidden; }
.detail-heading { gap:.85rem; padding:1.2rem; border-bottom:1px solid var(--border); background:#f3f8ff; }
.detail-label { color:var(--muted); font-size:.85rem; margin:0 0 .2rem; }
.detail-heading h2 { font-size:1.18rem; }
.date-stamp { flex:none; width:3.2rem; border:1px solid #c3d4e9; border-radius:.55rem; background:white; overflow:hidden; text-align:center; }
.date-stamp span { display:block; background:#e1ecfb; font-size:.66rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; padding:.18rem .1rem; }
.date-stamp strong { display:block; font:700 1.45rem/1.4 var(--heading); }
.detail-row, .detail-empty { padding:1.2rem; }
.detail-row + .detail-row { border-top:1px solid var(--border); }
.detail-row .status-tag { width:fit-content; padding:.28rem .55rem; }
.detail-row h3 { margin:.95rem 0 .35rem; font:700 1.3rem var(--heading); letter-spacing:-.035em; }
.detail-row p, .detail-empty { font-size:.95rem; line-height:1.5; color:var(--muted); margin:0; }
.detail-row .occupant { margin-top:.85rem; color:var(--navy); font-weight:650; overflow-wrap:anywhere; }
.detail-row .change-note { color:#81421a; padding-top:.65rem; }
.detail-row button { width:100%; margin-top:1.05rem; }
.sync-footer { gap:.5rem 1rem; flex-wrap:wrap; color:var(--muted); margin:.85rem .25rem 0; }
#sync-note { font-size:.88rem; margin:.25rem 0; }
.my-shifts { margin-top:1.25rem; }
.my-shifts ul { list-style:none; margin:.6rem 0 0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.my-shifts button { text-align:left; }
@media (max-width:850px) {
  .calendar-layout { grid-template-columns:minmax(0,1fr); }
  .date-cell { min-height:4.2rem; }
}
@media (max-width:640px) {
  .schedule-page .portal-width { width:calc(100% - 1.5rem); }
  .portal-brand { font-size:.99rem; }
  .portal-bar nav { gap:.65rem; }
  .portal-bar { min-height:3.6rem; gap:.5rem; }
  .portal-main { padding-top:1.5rem; }
  .intro { margin-bottom:.9rem; }
  .intro p { font-size:.94rem; }
  .month-toolbar { padding:.75rem; }
  .student-filter { margin-inline:.75rem; }
  .month-controls { gap:.19rem; }
  .month-controls button { min-width:2.5rem; padding:.35rem .5rem; }
  .date-cell { align-items:center; min-height:3.1rem; gap:.2rem; padding:.22rem .08rem; }
  .date-cell .status-word { display:none; }
  .markers .status-tag { padding:.1rem; background:none; }
  .legend { padding:.7rem .75rem; gap:.45rem .7rem; }
  .detail-heading, .detail-row, .detail-empty { padding:1rem; }
}

.schedule-page .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
