#color-weekly-planner-v19:is(.course-expanded,.course-mode){max-width:none}
#color-weekly-planner-v19.course-mode>section:not(.course-catalog){display:none}
#color-weekly-planner-v19 .course-layout{min-width:0}
#color-weekly-planner-v19.course-expanded .course-layout{display:grid;grid-template-columns:minmax(280px,32%) minmax(0,1fr);gap:16px;align-items:start}
.course-layout .planner-grid-viewport{min-width:0}
.course-catalog,[data-cwp=courseSide]{position:relative;min-width:0;background:var(--panel);color:var(--ink)}
.course-catalog{padding:12px 0}
.course-catalog h1,[data-cwp=courseSide] h2{margin:0 0 10px;font-size:1.15rem}
.course-bar,.course-bar-actions,.course-plan-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.course-bar{margin-bottom:9px}.course-bar-actions:last-of-type{margin-left:auto}
.course-bar>span,.course-status,.course-plan-summary{font-size:.8rem;color:var(--muted)}
.course-status:empty{display:none}
.course-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.course-table{width:max-content;min-width:100%;border-spacing:0;font-size:.83rem;text-align:left}
.course-table thead{position:sticky;top:0;background:var(--soft);z-index:1}
#color-weekly-planner-v19 .course-table :is(th,td){padding:2px 5px;border-bottom:1px solid var(--line);vertical-align:middle;line-height:1.25}
.course-table th[data-column]{vertical-align:bottom}
.course-table th:first-child,.course-table td:first-child{position:sticky;left:0;background:var(--panel);text-align:center}
.course-table th:first-child{background:var(--soft)}
.course-selected td,.course-selected td:first-child{background:color-mix(in srgb,var(--accent) 12%,var(--panel))}
#color-weekly-planner-v19 .course-table .column-sort{display:flex;align-items:center;gap:3px;min-height:22px;margin:0;padding:0;white-space:nowrap;background:transparent;color:var(--ink);border:0;box-shadow:none;text-align:left;font-size:inherit}
.course-table .column-sort::after{display:block;flex:none}
.course-table{--course-width:7.5rem}
.course-table [data-column=title],.course-table [data-column=faculty]{--course-width:12rem}
.course-table [data-column=code],.course-table [data-column=building],.course-table [data-column=starts],.course-table [data-column=ends]{--course-width:4.7rem}
.course-table [data-column=number],.course-table [data-column=room],.course-table [data-column=credits],.course-table [data-column=periods],.course-table [data-column=days]{--course-width:3.7rem}
.course-table .choice-field{width:var(--course-width,8rem);max-width:100%}
.course-table td{max-width:20rem;overflow-wrap:anywhere}
.course-table :is(td[data-column=code],td[data-column=starts],td[data-column=ends]){white-space:nowrap}
#color-weekly-planner-v19 .course-table td .course-trash{display:inline-grid;place-items:center;width:24px;height:23px;min-height:0;margin:0;padding:2px;border:0;background:transparent;box-shadow:none;color:var(--muted);vertical-align:middle}
.course-trash svg{display:block;width:15px;height:15px}
#color-weekly-planner-v19 .course-table .course-trash:hover{background:var(--soft);color:var(--ink)}
#color-weekly-planner-v19 .course-table .faculty-cell{display:inline;min-height:0;margin:0;padding:0;background:transparent;color:inherit;border:0;box-shadow:none;font:inherit;text-align:left}
.course-table td[data-column=faculty]{cursor:pointer}
.course-professor{display:inline-flex;align-items:center;gap:4px;margin-right:6px}
.course-rating{padding:1px 5px;border-radius:1em;background:hsl(var(--rating-hue),62%,80%);color:#192521;font-variant-numeric:tabular-nums;font-weight:650}
.course-bar .column-picker{position:relative}
.course-bar .column-picker>summary{cursor:pointer}
.course-bar .column-picker>div{position:absolute;z-index:5;background:var(--panel);padding:8px 12px;border:1px solid var(--line);border-radius:8px;width:max-content;max-height:52vh;overflow:auto}
.course-bar .column-picker label,.course-plan-controls label,#grid-choices .follow-theme{display:flex;align-items:center;gap:6px;font:inherit}
.course-table input[type=checkbox],.course-bar input[type=checkbox],.course-plan-controls input[type=checkbox],#grid-choices .follow-theme input{width:1rem;height:1rem;min-height:0;margin:0;accent-color:var(--accent)}
.course-plan-controls{margin:0 0 9px;font-size:.84rem}
.course-plan-controls input[inputmode=numeric]{width:6em}
#color-weekly-planner-v19 [data-cwp=weekLabel] select{width:auto;min-width:5.5em;height:36px;min-height:36px;padding-block:2px;margin:0}
#grid-choices .follow-theme{width:max-content;max-width:100%;margin:5px 0 2px;font-size:.82rem}
#color-weekly-planner-v19 .course-dialog{width:min(640px,94vw);max-height:88dvh;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--panel);color:var(--ink)}
.course-dialog h2{margin:0 0 12px;font-size:1.1rem}
#color-weekly-planner-v19 .course-dialog label{display:grid;gap:3px;font-size:.85rem}#color-weekly-planner-v19 .course-dialog input,#color-weekly-planner-v19 .course-dialog textarea{width:100%;min-width:0}
.course-dialog textarea{resize:vertical;line-height:1.4}
.course-dialog p:empty{display:none}
.course-professor-entry{display:grid;grid-template-columns:1fr 1.6fr 1fr auto;gap:6px;align-items:end;margin-bottom:8px}
#color-weekly-planner-v19 .course-plan-controls[hidden],#color-weekly-planner-v19 .course-catalog[hidden],#color-weekly-planner-v19 [data-cwp=courseSide][hidden]{display:none}
@media(max-width:750px){
 #color-weekly-planner-v19.course-expanded .course-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .course-professor-entry{grid-template-columns:1fr 1fr}
 #color-weekly-planner-v19 .mast nav{flex-wrap:wrap}
 #color-weekly-planner-v19 [data-cwp=courseMode]{font-size:12px;min-height:30px}
}

.course-titlebar{display:flex;align-items:center;gap:.65rem;margin-bottom:.5rem}
#color-weekly-planner-v19 .course-titlebar h1{margin:0}
#color-weekly-planner-v19 .course-bar>select{flex:0 1 12rem;width:12rem;max-width:100%}
#color-weekly-planner-v19 .course-bar .column-picker>div{left:0;right:auto;top:calc(100% + 3px);width:max-content;min-width:13rem;max-width:calc(100vw - 24px);padding:.3rem .5rem}
.column-picker-actions{position:sticky;top:-.3rem;z-index:1;display:flex;gap:.35rem;padding:.3rem 0;background:var(--panel)}
.course-column-choice{display:flex;align-items:center;gap:4px;border-radius:3px}
#color-weekly-planner-v19 .course-column-choice .column-grip{touch-action:none;cursor:grab;min-height:23px;padding:3px 5px;border:none;background:transparent;color:var(--muted);box-shadow:none}
.column-grip::before{content:"";display:block;width:9px;height:13px;background:radial-gradient(circle,currentColor 1.2px,transparent 1.4px) 0 0 / 4.5px 4.3px}
.course-column-choice.moving{opacity:.6}.course-column-choice.drop-target{outline:1px solid var(--accent)}
#color-weekly-planner-v19 .course-dialog.course-import{width:min(330px,calc(100vw - 20px));padding:12px}
#color-weekly-planner-v19 .course-import :is(textarea,.choice-field,input){width:100%;max-width:100%;box-sizing:border-box}
#color-weekly-planner-v19 .course-import label{display:block;margin:.55rem 0 .2rem}
.course-import small{color:var(--muted)}
.course-professor-entry a{font-size:.8rem;color:var(--accent)}
#color-weekly-planner-v19 dialog.course-dialog:not([open]){display:none}

.course-bar details.column-picker>summary{list-style:none;display:flex;align-items:center;gap:.35rem}
.course-bar details.column-picker>summary::-webkit-details-marker{display:none}
.course-bar details.column-picker>summary::after{content:"";border:4px solid transparent;border-top-color:currentColor;transform:translateY(2px)}
.course-bar details.column-picker[open]>summary::after{transform:rotate(180deg) translateY(2px)}

.course-import .college-link{font-size:.8rem;color:var(--accent)}

.professor-pair{display:inline-flex;align-items:baseline;gap:.3em;margin-inline-end:.55em}
.professor-pair .course-professor{margin:0}
#color-weekly-planner-v19 .faculty-name{display:inline;border:0;min-height:0;margin:0;padding:0;background:transparent;color:inherit;font:inherit;box-shadow:none}
.faculty-name:hover,.faculty-name:focus-visible{text-decoration:underline}
.rmp-badge{display:inline-block;padding:.12em .32em;border:1px solid currentColor;border-radius:.35em;font:bold .64rem/1.15 system-ui,sans-serif;color:var(--accent);text-decoration:none}
a.rmp-badge:is(:hover,:focus-visible){background:var(--soft);text-decoration:underline}
.rmp-badge[aria-disabled]{color:var(--muted);border-style:dotted}
#color-weekly-planner-v19 label.course-preview-category{display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-width:0;padding:0 .7em;border:1px solid var(--line);cursor:pointer}
#color-weekly-planner-v19 .course-preview-category input{width:1em;min-height:0;height:1em;margin:0}
[data-item-shape=boxes] #color-weekly-planner-v19 label.course-preview-category{border-radius:4px}
.course-block-hint{max-width:min(27rem,calc(100vw - 12px))}
.course-block-hint dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.35em .8em;margin:0}
.course-block-hint dt{font-weight:700}
.course-block-hint dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}

.course-display-settings{order:3;position:relative;margin-inline-start:auto}
.course-display-settings>summary{display:grid;place-items:center;width:2.2rem;height:2rem;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
.course-display-settings>summary::-webkit-details-marker{display:none}
.course-display-settings svg{width:1.1rem;height:1.1rem}
.course-display-settings>div,.weekly-plan-menu{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 14px #0002;padding:.5rem}
.course-display-settings>div{position:absolute;right:0;top:100%;width:min(16rem,80vw);z-index:6}
.course-display-settings select{width:100%}.course-display-settings fieldset{margin:.5rem 0 0;padding:.35rem .5rem;border:1px solid var(--line)}
#color-weekly-planner-v19 .course-display-settings label,#color-weekly-planner-v19 .course-build-options label{display:flex;align-items:center;gap:.4rem;font-size:.85rem}
#color-weekly-planner-v19 .course-display-settings label:has(select){display:grid;margin-bottom:.35rem}
.course-build-options{display:flex;gap:.5rem 1rem;align-items:center;flex-wrap:wrap;padding:.5rem 0;margin-bottom:.4rem}
.course-day-summary{width:100%;font-size:.84rem}
#color-weekly-planner-v19 :is(.course-build-options,.weekly-plan-menu) input[type=checkbox]{min-height:0;width:1rem;height:1rem;margin:0;accent-color:var(--accent)}
#color-weekly-planner-v19 .course-plan-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin:0}
#color-weekly-planner-v19 .weekly-plan-field{display:block;width:min(13rem,65vw);padding-inline:.55rem 1.45rem;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}
.weekly-plan-field::after{content:"";position:absolute;right:.5rem;top:48%;border:4px solid transparent;border-top-color:currentColor}
.weekly-plan-menu{position:fixed;inset:auto;margin:0;overflow:auto;width:min(23rem,calc(100vw - 16px));box-sizing:border-box;font:.85rem/1.3 system-ui}
.weekly-plan-menu>label{display:flex;align-items:center;gap:.4rem;margin-bottom:.4rem}
.weekly-plan-item{display:grid;grid-template-columns:minmax(0,1fr) 4.1rem 4.1rem;gap:.25rem;align-items:center;border-top:1px solid var(--line);padding:.2rem 0}
.weekly-plan-item input[type=checkbox]{justify-self:center}
.weekly-plan-item input:not([type=checkbox]){min-width:0;width:100%}
.weekly-plan-head{font-weight:650}.weekly-plan-head span:not(:first-child){text-align:center}
#color-weekly-planner-v19 .weekly-plan-item .plan-choice{font:inherit;min-height:1.65rem;text-align:left;color:inherit;background:transparent;border:0;box-shadow:none;overflow-wrap:anywhere}
#color-weekly-planner-v19 .weekly-plan-item .plan-choice[aria-current=true]{background:var(--soft);font-weight:650}
.weekly-plan-pages{display:flex;justify-content:space-between}
#color-weekly-planner-v19 .weekly-plan-arrow{display:none}
#color-weekly-planner-v19 :is(.course-build-options,.weekly-plan-pages,.weekly-plan-menu,.course-plan-controls)[hidden]{display:none}
@media(max-width:750px){#color-weekly-planner-v19 .weekly-plan-arrow{display:inline-grid;place-items:center;min-width:2rem}
 #color-weekly-planner-v19 .weekly-plan-field{width:min(11rem,48vw)}}

.weekly-plan-nav{display:flex;align-items:center;gap:.3rem;max-width:100%;min-width:0}
.weekly-plan-nav>button:first-child,.weekly-plan-nav>.weekly-plan-arrow{flex:none}
.course-display-settings>summary{color:var(--ink)}
@media(max-width:750px){#color-weekly-planner-v19 .weekly-plan-nav{width:100%}
 #color-weekly-planner-v19 .weekly-plan-nav>.weekly-plan-field{flex:0 1 11rem;min-width:4rem}
 #color-weekly-planner-v19 .weekly-plan-nav>.weekly-plan-arrow{padding-inline:.35rem;min-width:1.75rem}}
