#color-weekly-planner-v19.course-expanded{max-width:none;width:100%;box-sizing:border-box}
#color-weekly-planner-v19.course-expanded .course-layout{
  --list-width:clamp(18rem,33%,42rem);
  display:grid;grid-template-columns:minmax(0,var(--list-width)) 1.6rem minmax(0,1fr);
  column-gap:0;align-items:start;position:relative;
  transition:grid-template-columns .32s ease;
}
#color-weekly-planner-v19.course-expanded.course-rolled .course-layout{grid-template-columns:minmax(0,calc(100% - 1.6rem)) 1.6rem minmax(0,1fr)}
.course-expanded [data-cwp=courseSide]{padding-inline-end:.4rem;overflow-anchor:none}
.course-expanded .planner-grid-viewport{overflow:hidden;max-height:100000px;transition:opacity .25s,max-height 0s;overflow-anchor:none}
.course-expanded.course-rolled .planner-grid-viewport{opacity:0;max-height:0;pointer-events:none;transition:opacity .25s,max-height 0s .32s}
#color-weekly-planner-v19 .course-rail{
  position:sticky;top:1rem;display:flex;align-items:center;justify-content:center;
  min-width:0;width:1.4rem;height:clamp(5rem,26vh,12rem);padding:0;margin:1px auto;
  background:var(--soft);color:var(--accent);border:1px solid var(--line);border-radius:.5rem;
  cursor:pointer;touch-action:manipulation
}
#color-weekly-planner-v19 .course-rail:hover{border-color:var(--accent)}
#color-weekly-planner-v19 .course-rail[hidden],#color-weekly-planner-v19 [data-cwp=exploreCourses][hidden]{display:none}
#color-weekly-planner-v19 .cwp-status-row:has([data-cwp=coursePlans]:not([hidden])){display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}
#color-weekly-planner-v19 .cwp-status-row>.grid-toolbar{margin-left:auto}
#color-weekly-planner-v19 [data-cwp=exploreCourses][aria-pressed=true],#color-weekly-planner-v19 [data-cwp=expandCourses][aria-pressed=true]{background:var(--accent);color:var(--accent-ink,#fff);border-color:var(--accent)}
.course-build-options{background:var(--soft);border:1px solid var(--line);border-radius:.55rem;padding:.55rem .7rem;display:flex;align-items:start}
.course-build-filters{display:grid;gap:.3rem}
#color-weekly-planner-v19 .course-build-filters label{display:flex;align-items:center;gap:.45rem;line-height:1.35}
#color-weekly-planner-v19 .course-build-filters input{flex:0 0 auto;margin:0}
.course-day-summary{display:grid;gap:.25rem}
.course-day-summary strong{font-weight:650}
#color-weekly-planner-v19 .course-start-dialog{width:min(25rem,calc(100vw - 24px));box-sizing:border-box}
.course-start-dialog p{margin:.3rem 0 .8rem}
@media(max-width:750px){
 #color-weekly-planner-v19.course-expanded .course-layout{grid-template-columns:1.4rem minmax(0,1fr);gap:.35rem 0}
 #color-weekly-planner-v19.course-expanded .course-layout>[data-cwp=courseSide]{grid-column:1/-1}
 #color-weekly-planner-v19.course-expanded.course-rolled .course-layout{grid-template-columns:minmax(0,1fr) 1.4rem}
 #color-weekly-planner-v19.course-expanded.course-rolled [data-cwp=courseSide]{grid-column:1;grid-row:1}
 #color-weekly-planner-v19.course-expanded.course-rolled .course-rail{grid-column:2;grid-row:1}
 #color-weekly-planner-v19.course-expanded.course-rolled .planner-grid-viewport{visibility:hidden;grid-column:1/-1}
 #color-weekly-planner-v19.course-expanded .grid-toolbar{flex-basis:auto}
}
@media(prefers-reduced-motion:reduce){#color-weekly-planner-v19.course-expanded .course-layout,.course-expanded .planner-grid-viewport{transition:none}}

#color-weekly-planner-v19 .cwp-status-row>.course-plan-controls{max-width:100%;min-width:0;box-sizing:border-box}
@media(min-width:751px){
  #color-weekly-planner-v19.course-expanded .course-layout{container-type:inline-size}
  .course-expanded .planner-grid-viewport>.cwp-grid-frame{width:calc(100cqw - clamp(18rem,33cqw,42rem) - 1.6rem);box-sizing:border-box}
}
@media(max-width:750px){
  #color-weekly-planner-v19 .cwp-status-row>.course-plan-controls{flex:0 1 100%}
  #color-weekly-planner-v19 .course-plan-controls>.weekly-plan-nav{width:100%;min-width:0}
  #color-weekly-planner-v19.course-expanded:not(.course-rolled) .course-layout>.planner-grid-viewport{grid-row:1;grid-column:2;animation:course-grid-in .25s ease}
  #color-weekly-planner-v19.course-expanded:not(.course-rolled) .course-rail{grid-row:1;grid-column:1}
  #color-weekly-planner-v19.course-expanded:not(.course-rolled) .course-layout>[data-cwp=courseSide]{grid-row:2}
}
@keyframes course-grid-in{from{transform:translateX(12%);opacity:0}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){#color-weekly-planner-v19.course-expanded .course-layout>.planner-grid-viewport{animation:none;transition:none}}

#color-weekly-planner-v19 .course-save-status{margin:.3rem 0 .55rem;padding:.45rem .75rem;border-inline-start:3px solid var(--accent);border-radius:.25rem;background:var(--soft);color:var(--ink);font-size:.85rem}
#color-weekly-planner-v19 .course-save-status[hidden]{display:none}
