/* Actual minutes determine both event position and event height. No band rows. */
.timeline-controls{display:flex;align-items:center;gap:12px;margin:0 0 10px;flex-shrink:0}
.density-switch{display:inline-flex;border:1px solid #d5e2d9;border-radius:7px;padding:2px;background:#fff;flex-shrink:0}
.density-switch button{padding:5px 10px;font-size:11px;border:0;background:transparent}
.density-switch button[aria-pressed=true]{background:#e2f1e9;color:#14634d;font-weight:650}
#axis-note{font-size:10px;color:#77887c;line-height:1.6}.version{margin-left:auto;white-space:nowrap;color:#8a998f;font-size:10px}
.overlap-note{padding:7px 10px;color:#9a5e25;background:#fff2d9;font-size:11px;margin-bottom:8px;border-radius:6px;flex-shrink:0}
.board{scrollbar-gutter:stable;position:relative;overscroll-behavior:contain}
.timeline{--axis-width:60px;min-width:780px;position:relative;padding-bottom:12px}
.timeline-header,.timeline-body{display:grid;grid-template-columns:var(--axis-width) repeat(7,minmax(0,1fr))}
.timeline-header{position:sticky;top:0;z-index:3;background:#edf3ef;height:36px;border-bottom:1px solid #d9e5dc}
.timeline-header>div{display:flex;align-items:center;justify-content:center;gap:6px;border-right:1px solid #dfe9e2;color:#5d7765;font-size:12px}
.timeline-header small{font-size:10px;font-weight:400;color:#89998e}.timeline-header>div:last-child{border-right:0}
.timeline-header .axis-heading{font-size:11px}
.timeline-body{position:relative;margin-top:12px;height:1000px}
.timeline.overview{height:100%;min-height:390px;display:flex;flex-direction:column}
.timeline.overview .timeline-header{flex-shrink:0;display:grid}
.timeline.overview .timeline-body{flex:1;min-height:0}
.timeline-day{position:relative;min-width:0;border-right:1px solid #e3ebe5;background:#fff}
.timeline-day:nth-last-child(-n+2){background:#fbfdfb}
.timeline-day:last-child{border-right:0}
.time-scale{position:sticky;left:0;background:#f7faf8;z-index:2;border-right:1px solid #dfe8e2}
.timeline-header .axis-heading{position:sticky;left:0;z-index:4;background:#edf3ef}
.tick-label{position:absolute;right:9px;transform:translateY(-50%);font-size:10px;color:#9aa69e;font-variant-numeric:tabular-nums;background:#f7faf8;padding:0 1px;line-height:12px}
.tick-label.major{font-size:11px;color:#5e7565;font-weight:550}
.time-rule{position:absolute;left:0;right:0;border-top:1px dashed #edf1ee;pointer-events:none}
.time-rule.major{border-top:1px solid #e0e9e3}
.timeline-event{container-type:size;position:absolute;display:block;margin:0;padding:0;min-height:0;min-width:0;overflow:hidden;border:1px solid #c6e4d2;border-left:3px solid #52976c;border-radius:5px;background:#eff8f0;color:#27533c;text-align:left;z-index:1}
.timeline-event:hover{background:#e6f4e9;box-shadow:0 2px 8px #153b241c;z-index:2}
.timeline-event:focus-visible{z-index:4;outline-offset:0;outline:2px solid #14634d}
.event-body{height:100%;display:flex;flex-direction:column;padding:4px 5px;overflow:hidden;line-height:1.35}
.timeline-event .time{font-size:11px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.timeline-event .course{font-size:12px;font-weight:650;margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline-event .numbers{display:flex;align-items:center;gap:3px;justify-content:space-between;font-size:10px;color:#738475;white-space:nowrap;min-width:0}
.timeline-event .badge{font-size:9px;border-radius:8px;padding:0 4px;background:#d9eedf;color:#236342}
.timeline-event.full{background:#fff7e9;border-color:#f0d6ad;border-left-color:#d19944;color:#805620}.timeline-event.full:hover{background:#fff0d8}
.timeline-event.full .badge{background:#f9e4bd;color:#82591f}
.timeline-event.over{background:#fff0ed;border-color:#edc6bd;border-left-color:#d07b65;color:#8e4d3d}.timeline-event.over .badge{background:#f7d8d0;color:#8e4d3d}
.timeline-event.check{background:#f2f3f4;border-color:#d6dadd;border-left-color:#8c9a9e;color:#566267}.timeline-event.check .badge{background:#e3e7e9;color:#566267}
.timeline-event.overlap{border-style:dashed;border-left-style:solid}
@container (max-height: 62px){
  .event-body{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr 1fr;column-gap:3px;row-gap:0;padding:2px 4px;align-content:center;align-items:center;line-height:1.1}
  .timeline-event .time{grid-column:1;grid-row:1;font-size:10px}
  .timeline-event .course{grid-column:1;grid-row:2;font-size:11px;margin:0}
  .timeline-event .numbers{display:contents}.timeline-event .class-type{display:none}
  .timeline-event .numbers strong{grid-column:2;grid-row:1;font-size:9px}
  .timeline-event .badge{grid-column:2;grid-row:2;font-size:8px;padding:0 3px;justify-self:end}
}
@container (max-width: 112px){
  .event-body{display:flex;padding:3px 3px;gap:2px;line-height:1.15}
  .timeline-event .time{font-size:9px;letter-spacing:-.15px}
  .timeline-event .course{font-size:10px;margin:0;flex-shrink:0}
  .timeline-event .numbers{display:flex;justify-content:space-between;font-size:9px}
  .timeline-event .class-type{display:none}.timeline-event .badge{font-size:8px;padding:0 2px}
}
@container (max-height: 26px){
  .event-body{display:flex;flex-direction:row;align-items:center;gap:4px;padding:1px 3px;line-height:1.1}
  .timeline-event .time{font-size:9px;flex-shrink:0;letter-spacing:-.15px}
  .timeline-event .course{font-size:10px;margin:0;flex:1;min-width:0}
  .timeline-event .numbers{display:none}
}
@media(min-width:701px){.board{height:0;min-height:160px}.heading{margin-bottom:10px}.toolbar{margin-bottom:8px}}
@media(max-height:800px){.timeline.overview .tick-label:not(.major){display:none}}
@media(max-width:1100px){.timeline{--axis-width:54px}.timeline-controls{gap:8px}.version{display:none}}
@media(max-width:700px){.timeline-controls{flex-wrap:wrap}.board{height:65dvh;min-height:380px}.timeline{min-width:850px}.timeline.overview{height:100%}#axis-note{font-size:10px}.timeline-body{height:1000px}}
