:root{
  --bg:#0d0f12; --panel:#15191f; --panel2:#1b2027; --line:#2a313a; --text:#f5f7fa;
  --muted:#9aa5b1; --gold:#cfb991; --gold2:#e8d6b2; --good:#7bd88f; --bad:#ff7b72;
  --blue:#79c0ff; --shadow:0 14px 40px rgba(0,0,0,.24); --radius:18px;
}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at top,#171b21 0,#0d0f12 38%,#0b0d10 100%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:14px 4vw;border-bottom:1px solid rgba(255,255,255,.07);background:rgba(13,15,18,.88);backdrop-filter:blur(14px)}
.brand{display:flex;align-items:center;gap:12px;cursor:pointer}.brand-mark{width:38px;height:38px;border-radius:11px;background:var(--gold);color:#111;display:grid;place-items:center;font-weight:900;font-size:22px}.brand strong{display:block}.brand span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
nav{display:flex;gap:8px}nav button{background:transparent;border:1px solid transparent;color:var(--muted);padding:9px 12px;border-radius:10px}nav button:hover{color:var(--text);border-color:var(--line);background:#171b21}
main{width:min(1220px,92vw);margin:0 auto;padding:34px 0 56px}.search-shell{position:relative;z-index:15}.search-box{display:flex;align-items:center;gap:10px;background:#13171c;border:1px solid #303740;border-radius:15px;padding:11px 14px;box-shadow:var(--shadow)}.search-box:focus-within{border-color:var(--gold)}.search-box input{flex:1;background:transparent;border:0;outline:0;color:var(--text);font-size:16px}.search-icon{font-size:23px;color:var(--gold)}kbd{font-size:11px;border:1px solid var(--line);background:#20252c;padding:3px 7px;border-radius:6px;color:var(--muted)}
.search-results{position:absolute;top:54px;width:100%;background:#14181e;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);max-height:410px;overflow:auto}.hidden{display:none!important}.search-item{padding:11px 14px;border-bottom:1px solid #222831;display:flex;justify-content:space-between;gap:16px;cursor:pointer}.search-item:last-child{border-bottom:0}.search-item:hover{background:#1d232b}.search-item small{color:var(--muted)}
.hero{padding:56px 0 26px}.eyebrow{color:var(--gold);text-transform:uppercase;letter-spacing:.15em;font-size:12px;font-weight:800}.hero h1{font-size:clamp(36px,6vw,70px);line-height:.98;margin:12px 0 16px;letter-spacing:-.04em;max-width:900px}.hero p{font-size:18px;color:#b4bdc7;max-width:760px;line-height:1.6}
.grid{display:grid;gap:16px}.grid.cols-4{grid-template-columns:repeat(4,1fr)}.grid.cols-3{grid-template-columns:repeat(3,1fr)}.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.card{background:linear-gradient(180deg,#171c22,#13171c);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 8px 30px rgba(0,0,0,.12)}.card h3{margin:0 0 6px}.metric-label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.metric-value{font-size:30px;font-weight:780;margin-top:7px;letter-spacing:-.03em}.metric-sub{color:var(--muted);font-size:12px;margin-top:5px}
.section-title{display:flex;justify-content:space-between;align-items:end;margin:32px 0 12px}.section-title h2{margin:0;font-size:22px}.section-title p{margin:0;color:var(--muted);font-size:13px}.pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;border:1px solid var(--line);font-size:12px;color:var(--muted)}
.page-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:38px 0 14px}.page-head h1{margin:4px 0 8px;font-size:42px;letter-spacing:-.03em}.page-head .subtitle{color:var(--muted);font-size:16px}.controls{display:flex;gap:10px;flex-wrap:wrap}.controls select,.controls button{background:#171c22;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:9px 11px}.controls button.active{border-color:var(--gold);color:var(--gold2)}
.chart-card{padding:18px 18px 12px}.chart-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.chart-title h3{margin:0;font-size:15px}.legend{display:flex;gap:14px;color:var(--muted);font-size:12px}.legend span::before{content:"";display:inline-block;width:17px;height:3px;border-radius:2px;background:var(--gold);margin-right:6px;vertical-align:middle}.legend .course::before{background:var(--blue)}.chart{height:300px;width:100%}.chart svg{width:100%;height:100%;overflow:visible}.axis{stroke:#37404a;stroke-width:1}.gridline{stroke:#252c34;stroke-width:1}.chart-label{fill:#818c98;font-size:11px}.line-prof{fill:none;stroke:var(--gold);stroke-width:3}.line-course{fill:none;stroke:var(--blue);stroke-width:2;stroke-dasharray:7 5}.dot-prof{fill:var(--gold);stroke:#101317;stroke-width:2}.zero{stroke:#707983;stroke-dasharray:4 5}.average-line{stroke:#aeb6bf;stroke-width:1.5;stroke-dasharray:8 7;opacity:.9;pointer-events:none}.average-hit{stroke:transparent;stroke-width:14;pointer-events:stroke;cursor:default}.bar-pos{fill:#8bd49c}.bar-neg{fill:#ff8c84}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#13171c}table{width:100%;border-collapse:collapse;min-width:780px}th,td{padding:11px 13px;border-bottom:1px solid #242a32;text-align:left;white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#8f99a5;background:#171c22;position:sticky;top:0}td{font-size:13px}tbody tr{cursor:pointer}tbody tr:hover{background:#1a2027}.pos{color:var(--good);font-variant-numeric:tabular-nums}.neg{color:var(--bad);font-variant-numeric:tabular-nums}.num{font-variant-numeric:tabular-nums}
.list-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 16px;border-bottom:1px solid #242a32;cursor:pointer}.list-card:hover{background:#1b2128}.list-card:last-child{border-bottom:0}.list-card strong{display:block}.list-card small{color:var(--muted)}
.callout{border-left:3px solid var(--gold);background:#161a20;padding:13px 15px;border-radius:0 12px 12px 0;color:#b8c0ca;font-size:13px;line-height:1.55}.empty{padding:44px;text-align:center;color:var(--muted)}
footer{width:min(1220px,92vw);margin:0 auto 30px;border-top:1px solid var(--line);padding:18px 0;color:#7f8995;font-size:12px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
@media(max-width:900px){.grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr 1fr}.page-head{flex-direction:column}.topbar nav{display:none}}
@media(max-width:600px){main{width:94vw}.grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr}.hero{padding-top:38px}.page-head h1{font-size:34px}.chart{height:250px}.brand span{display:none}}

/* Hidden local data importer (Easter egg) */
.importer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(8px)}
.importer-overlay.hidden{display:none}
.importer-modal{position:relative;width:min(620px,100%);background:#15191f;border:1px solid #343b45;border-radius:18px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.importer-modal h2{margin:5px 0 8px;font-size:28px}
.importer-note,.importer-info{color:var(--muted);line-height:1.5}
.importer-info{background:#0f1318;border:1px solid #2c333d;padding:12px 14px;border-radius:10px;margin-top:18px}
.importer-info.error{color:#ffaaa3;border-color:#74443e}
.importer-label{display:block;margin:18px 0 7px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#cbd1d8}
.importer-modal input[type=file],.importer-modal select{width:100%;box-sizing:border-box;background:#0f1318;color:#f3f3f3;border:1px solid #343b45;border-radius:10px;padding:12px;font:inherit}
.importer-actions{display:flex;gap:10px;margin-top:20px}
.importer-actions button,.importer-close{border:1px solid #3a424d;background:#232a32;color:#fff;border-radius:10px;padding:10px 16px;cursor:pointer}
.importer-actions button:disabled{opacity:.45;cursor:not-allowed}
.importer-actions .importer-primary{background:var(--gold);color:#111;border-color:var(--gold);font-weight:800}
.importer-close{position:absolute;right:14px;top:14px;width:36px;height:36px;padding:0;border-radius:50%;font-size:22px;line-height:32px}

/* 2026-09 UX upgrades */
.topbar{gap:18px}.topbar nav{margin-left:auto}
.summer-toggle{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;cursor:pointer;white-space:nowrap}.summer-toggle input{position:absolute;opacity:0;pointer-events:none}.toggle-ui{width:34px;height:19px;border-radius:999px;background:#252b33;border:1px solid #3a424d;position:relative;transition:.2s}.toggle-ui::after{content:"";position:absolute;width:13px;height:13px;left:2px;top:2px;border-radius:50%;background:#8d98a5;transition:.2s}.summer-toggle input:checked+.toggle-ui{background:rgba(207,185,145,.22);border-color:var(--gold)}.summer-toggle input:checked+.toggle-ui::after{left:17px;background:var(--gold)}.summer-toggle:hover{color:var(--text)}
.filter-banner{margin-top:18px;padding:10px 14px;border:1px solid rgba(207,185,145,.3);background:rgba(207,185,145,.08);border-radius:12px;color:#d9c9a8;font-size:12px}
.metric-card{min-width:0}.metric-label{display:flex;align-items:center;gap:6px}.help-dot{width:18px;height:18px;display:inline-grid;place-items:center;border-radius:50%;border:1px solid #55606c;background:#1f252c;color:#aeb8c3;font-size:11px;font-weight:800;line-height:1;padding:0;vertical-align:middle}.help-dot:hover{border-color:var(--gold);color:var(--gold2);background:#252b32}.help-popover{position:absolute;z-index:9999;width:300px;max-width:calc(100vw - 24px);padding:12px 13px;background:#20262e;border:1px solid #48515d;border-radius:12px;color:#d5dbe2;font-size:12px;line-height:1.5;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.stats-secondary{margin-top:16px}
th.sortable{cursor:pointer;user-select:none;padding-right:26px}.sort-glyph{margin-left:6px;color:#56606b;font-size:12px}.sort-asc .sort-glyph::after{content:" ↑"}.sort-desc .sort-glyph::after{content:" ↓"}.sort-asc .sort-glyph,.sort-desc .sort-glyph{font-size:0;color:var(--gold)}.sort-asc .sort-glyph::after,.sort-desc .sort-glyph::after{font-size:12px}.sortable:hover{color:#c8d0d9;background:#1c2229}
.gpa-heat{display:inline-block;min-width:62px;text-align:center;border-radius:7px;padding:4px 7px;font-variant-numeric:tabular-nums;font-weight:700}
.course-professor-heading{gap:12px;flex-wrap:wrap}.course-professor-heading .subtle-action{flex-shrink:0}.course-professor-heading [hidden]{display:none}
.grade-bar-row{display:grid;grid-template-columns:28px 1fr 55px;gap:10px;align-items:center;margin:9px 0}.grade-bar-track{height:9px;background:#252c34;border-radius:6px;overflow:hidden}.grade-bar-fill{height:100%;background:var(--gold);border-radius:6px}.grade-bar-row .num{color:var(--muted)}
.chart circle{cursor:crosshair}.chart circle:hover{stroke:var(--text);stroke-width:3;r:7}
@media(max-width:900px){.summer-toggle{margin-left:auto}.topbar{flex-wrap:wrap}.topbar nav{order:3;width:100%;display:flex!important}.topbar nav button{flex:1}}
@media(max-width:600px){.summer-toggle #summerToggleText{display:none}.topbar nav{display:none!important}}

/* 2026-09 refinement pass */
.hover-help{cursor:help;text-decoration:underline dotted rgba(207,185,145,.45);text-underline-offset:3px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.hero-actions button,.subtle-button{background:#171c22;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:10px 14px;cursor:pointer}.hero-actions .primary-action{background:var(--gold);color:#111;border-color:var(--gold);font-weight:800}.hero-actions button:hover,.subtle-button:hover{border-color:var(--gold)}
.home-hero{padding-bottom:34px}.home-stats{margin-bottom:8px}.spotlight-card{cursor:pointer;transition:transform .18s,border-color .18s}.spotlight-card:hover{transform:translateY(-2px);border-color:#4b5561}.spotlight-card strong{display:block;font-size:24px;margin:8px 0 6px}.spotlight-card p{color:var(--muted);margin:0;line-height:1.45}.spotlight-kicker{color:var(--gold);font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.subject-cloud{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.subject-chip{background:#151a20;border:1px solid var(--line);border-radius:12px;padding:13px}.subject-chip b,.subject-chip small{display:block}.subject-chip small{color:var(--muted);margin-top:4px}
.pie-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.pie-card-title h3{margin:0}.pie-wrap{display:grid;grid-template-columns:minmax(220px,1fr) minmax(130px,.65fr);align-items:center;gap:18px}.pie-chart{width:100%;max-width:320px;margin:auto}.pie-hole{fill:#15191f}.pie-legend{display:grid;gap:9px}.pie-legend-row{display:grid;grid-template-columns:12px 28px 1fr;gap:8px;align-items:center;font-size:13px}.pie-legend-row span:last-child{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.pie-swatch{width:10px;height:10px;border-radius:3px}.snapshot-stats h3{margin-top:0}.snapshot-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #252c34}.snapshot-row span{color:var(--muted)}.snapshot-row b{font-size:18px;font-variant-numeric:tabular-nums}.snapshot-stats .callout{margin-top:18px}.period-table tbody tr{cursor:pointer}.period-table tbody tr:hover{background:#20262e}
@media(max-width:900px){.subject-cloud{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.subject-cloud{grid-template-columns:repeat(2,1fr)}.pie-wrap{grid-template-columns:1fr}.hero-actions button{flex:1}}

/* Performance + interaction pass */
.directory-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.directory-controls select,.directory-controls input{background:#171c22;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-width:190px}
.directory-controls input{min-width:240px}.directory-controls input:focus,.directory-controls select:focus{outline:none;border-color:var(--gold)}
.load-more{display:block;margin:18px auto 0;background:#171c22;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:11px 18px}.load-more:hover{border-color:var(--gold);color:var(--gold2)}
.subject-chip.clickable{width:100%;text-align:left;color:var(--text);cursor:pointer}.subject-chip.clickable:hover{border-color:var(--gold);transform:translateY(-1px)}
.muted-copy{color:var(--muted);line-height:1.6;margin-bottom:0}
.semester-strip{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:thin;scroll-snap-type:x proximity}
.semester-card{scroll-snap-align:start;flex:0 0 82px;min-height:82px;border:1px solid var(--line);border-radius:12px;background:#171c22;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:.16s;padding:8px}
.semester-card span{font-size:12px}.semester-card b{font-size:18px;color:var(--text);font-variant-numeric:tabular-nums}.semester-card small{font-size:10px;color:#78828d}.semester-card:hover{border-color:#56616e;background:#1d232a}.semester-card.selected{border-color:#5abf8a;background:linear-gradient(180deg,rgba(90,191,138,.16),rgba(90,191,138,.06));box-shadow:inset 0 -2px 0 #5abf8a}.semester-card.selected span{color:#b8f1d0}
.donut-shell{position:relative;width:min(100%,300px);aspect-ratio:1;margin:auto}.donut-shell .pie-chart{width:100%;height:100%;transform:none}.donut-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}.donut-center strong{font-size:34px;letter-spacing:-.04em}.donut-center span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;margin-top:2px}.pie-chart circle,.pie-chart path{transition:opacity .15s,filter .15s}.pie-chart path:hover{filter:brightness(1.12)}
.period-table tr.selected-row{background:rgba(90,191,138,.08);box-shadow:inset 3px 0 0 #5abf8a}
.chart circle{cursor:default}.chart circle:hover{stroke:var(--text);stroke-width:3}
@media(max-width:700px){.directory-controls{width:100%}.directory-controls select,.directory-controls input{flex:1 1 100%;min-width:0}.semester-card{flex-basis:74px}.donut-center strong{font-size:28px}}
/* Course trend selection: use chart points, not semester cards */
.selectable-point{cursor:pointer!important;transition:r .14s,stroke-width .14s,filter .14s}
.selectable-point:hover{r:7;filter:brightness(1.15)}
.selected-point{stroke:#fff!important;stroke-width:3!important;filter:drop-shadow(0 0 5px rgba(255,255,255,.22))}
.subtle-action{align-self:center;background:#1b2128;border:1px solid var(--line);color:var(--text);border-radius:9px;padding:8px 11px;cursor:pointer}
.subtle-action:hover{border-color:#596574;background:#202730}
/* More interactive donut */
.donut-segment{cursor:pointer;transition:opacity .14s,filter .14s}
.donut-segment:hover,.donut-segment.active-segment{filter:brightness(1.16)}
.donut-segment.muted-segment{opacity:.24}
.donut-track{pointer-events:none}
.pie-legend button.pie-legend-row{width:100%;text-align:left;background:transparent;color:var(--text);border:1px solid transparent;border-radius:8px;padding:7px 5px;cursor:pointer}.pie-legend button.pie-legend-row:hover{border-color:var(--gold);background:rgba(207,185,145,.08)}
.donut-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.donut-controls p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}.donut-segment:focus-visible{outline:none;stroke:var(--text);stroke-width:3}
.donut-center strong{font-variant-numeric:tabular-nums}
.donut-center span{max-width:100px;line-height:1.25}
.home-gpa-head{align-items:end}.home-dept-filter{min-width:180px}.home-gpa-card{margin-bottom:28px}.chart-summary{color:var(--muted);font-size:13px}.chart-summary b{color:var(--text)}
@media(max-width:700px){.home-gpa-head{align-items:stretch}.home-dept-filter{width:100%}}

/* Sitewide floating academic-period filters */
.term-filter-stack{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:100;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
.summer-toggle-floating{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(21,25,31,.94);
  box-shadow:0 10px 28px rgba(0,0,0,.30);
  backdrop-filter:blur(10px);
  color:var(--muted);
}
.summer-toggle-floating:hover{border-color:#4a535e;color:var(--text)}
.summer-toggle-floating:has(input:checked){border-color:rgba(207,185,145,.55);background:rgba(31,29,24,.96)}
@media(max-width:600px){
  .term-filter-stack{right:10px;bottom:10px}
  .summer-toggle-floating{padding:9px 10px}
  .summer-toggle-floating #summerToggleText,.summer-toggle-floating #sp20ToggleText{display:inline}
}


/* Detailed course statistics */
.brand{color:var(--text);text-decoration:none}
.brand .brand-mark{display:block;width:auto;height:auto;background:none;border-radius:0;line-height:1;margin:0}
.brand-wordmark{display:block;width:280px;height:auto;max-width:55vw}
.brand-icon{display:none;object-fit:contain}
.footer-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--gold);flex-basis:100%;font-size:15px}
.footer-brand img{object-fit:contain}
.academic-warning{flex-basis:100%;margin:0;padding:14px 16px;border:1px solid rgba(207,185,145,.35);border-left:3px solid var(--gold);border-radius:10px;background:rgba(207,185,145,.06);color:#d9c9a8;font-size:13px;line-height:1.6}.academic-warning strong{color:var(--gold2)}
@media(max-width:600px){.brand-wordmark{display:none}.brand-icon{display:block;width:56px;height:56px}.brand .brand-mark{display:block}.topbar .brand{margin-right:auto}}
a{color:var(--gold2);text-underline-offset:3px}
:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.skip-link{position:fixed;top:-80px;left:12px;z-index:1000;background:var(--panel);padding:12px}
.skip-link:focus{top:12px}
nav button[aria-current="page"]{color:var(--gold2);border-color:var(--gold)}
th.sortable button,.period-button{font:inherit;color:inherit;background:transparent;border:0;padding:0;text-align:left;cursor:pointer}
th.sortable button{width:100%;text-transform:inherit;letter-spacing:inherit}
.directory-controls label{display:grid;gap:6px;color:var(--muted);font-size:13px}
.directory-controls input,.directory-controls select{font-size:16px}
.search-box{user-select:none;caret-color:transparent}
.search-field{position:relative;flex:1;min-width:0;display:flex}
.search-box input{min-width:0;user-select:text}
.search-box input:focus{caret-color:auto}
#searchHint{display:none;position:absolute;inset-inline:2px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#globalSearch:placeholder-shown + #searchHint{display:block}
#searchHint::before{content:attr(data-hint)}
.search-item[aria-selected="true"]{background:#292d33;box-shadow:inset 3px 0 var(--gold)}
.search-item{width:100%;text-align:left;font:inherit;color:var(--text);background:transparent;border:0;border-bottom:1px solid #222831}
.summer-toggle input:focus-visible+.toggle-ui{outline:2px solid var(--gold);outline-offset:4px}
.methodology{max-width:850px;line-height:1.7}.methodology h2{margin-top:28px}.methodology h2:first-child{margin-top:0}
.methodology dt{font-weight:700;color:var(--gold2);margin-top:16px}.methodology dd{margin:4px 0 0;color:#c4ccd5}.methodology li{margin:8px 0}.gpa-context{color:var(--muted);font-size:14px;line-height:1.6;margin:14px 0}.gpa-context b{color:var(--text)}
.instructor-warning{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px;padding:15px 18px;border:1px solid #a64d49;border-left:4px solid #ff7b72;border-radius:12px;background:#321c20;color:#ffb4ae;line-height:1.5}
.instructor-warning>span{color:#ff7b72;font-size:26px;line-height:1.2}.instructor-warning strong{color:#ffc6c1}.instructor-warning p{margin:3px 0 0}
footer{padding-bottom:100px}
@media(max-width:600px){.topbar nav{display:flex!important;gap:2px;flex-wrap:wrap}.topbar nav button{padding:9px 6px;font-size:13px}.topbar{padding:10px 3vw;gap:10px}.term-filter-stack{position:static;flex-direction:row;flex-wrap:wrap;justify-content:center;margin:16px 3vw}.summer-toggle-floating{margin-left:0}footer{padding-bottom:0}.directory-controls label{width:100%}.directory-controls input,.directory-controls select{width:100%}th,td{white-space:normal}table{min-width:650px}}
.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stats-primary{margin-bottom:6px}
.stats-insight-grid{margin-top:18px}
.stat-insight strong{display:block;font-size:28px;margin:9px 0 6px;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.stat-insight p{margin:0;color:var(--muted);line-height:1.5}
@media(max-width:700px){.page-head .page-actions{width:100%}.page-head .page-actions button{width:100%}}

/* Teaching history fits its container, including wrapped sortable headings. */
.professor-history{min-width:0}
.professor-history table{min-width:0;width:100%;table-layout:fixed}
.professor-history th,.professor-history td{white-space:normal;overflow-wrap:anywhere;padding:10px 7px}
.professor-history th.sortable{padding-right:7px;letter-spacing:.025em;line-height:1.45}
.professor-history th button{white-space:normal;overflow-wrap:anywhere}
.professor-history .sort-glyph{margin-left:2px}
@media(max-width:600px){.professor-history th,.professor-history td{padding:8px 2px;font-size:10px}.professor-history th.sortable{padding-right:2px;letter-spacing:0}}
/* Saved GPA preference and accessible chart controls. */
.gpa-choice-card{position:relative;min-width:0}.gpa-choice-card>.card{height:100%;box-sizing:border-box}.gpa-choice-card .metric-label{padding-right:68px}.gpa-choice-card>.gpa-toggle{position:absolute;right:10px;top:10px;z-index:1}
.gpa-toggle{display:flex;justify-content:flex-end;gap:4px;margin-bottom:8px}.gpa-toggle button,.csv-export,.chart-range button{background:#20262e;color:#b9c2cb;border:1px solid #39434e;border-radius:6px;padding:6px;cursor:pointer}.gpa-toggle button[aria-pressed=true]{color:var(--gold);border-color:var(--gold);background:#302c21}.gpa-toggle svg,.csv-export svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8}.gpa-toggle button:focus-visible,.chart-tools :focus-visible,.csv-export:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.chart{height:auto;min-height:300px}.chart>svg{height:280px;display:block}.chart-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.chart-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.chart-range label{display:flex;align-items:center;gap:5px}.chart-range select{padding:5px;max-width:140px;font-size:12px}.csv-export{margin-left:auto;flex-shrink:0}.donut-export-tools{display:flex;justify-content:flex-end;margin-top:10px}.zero{stroke:#46515d;stroke-width:2;stroke-dasharray:none}
.about-overview{margin-bottom:18px}.about-details details{border-bottom:1px solid var(--line);padding:18px 0}.about-details details:last-child{border:0}.about-details summary{font-size:18px;font-weight:600;cursor:pointer;color:var(--gold)}.about-details p{max-width:85ch;line-height:1.65}
@media(max-width:600px){.chart>svg{height:230px}.chart-tools{align-items:flex-end}.chart-range{gap:5px}.chart-range select{max-width:115px}}
.chart .drag-zoom,.chart .drag-zoom circle{cursor:crosshair!important}.drag-zoom{touch-action:pan-y;user-select:none}.zoom-selection{fill:#d5b36a;fill-opacity:.18;stroke:#d5b36a;stroke-width:1;pointer-events:none}.drag-zoom:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.directory-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.directory-title-row .gpa-toggle{margin-bottom:0}.directory-title-row h1{margin-bottom:0}
.directory-controls>.gpa-toggle{align-self:flex-end;margin-bottom:0;flex-shrink:0}
.directory-gpa-type{display:flex;flex-direction:column;gap:6px;align-self:flex-end}.directory-gpa-type>span{font-size:12px;color:var(--muted)}.directory-gpa-type .gpa-toggle{margin-bottom:0;justify-content:flex-start}
.rmp-badge{display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;padding:3px 7px;border:1px solid hsl(var(--rating-hue) 45% 40%);border-radius:6px;background:hsl(var(--rating-hue) 35% 15%);color:hsl(var(--rating-hue) 70% 72%)!important;font-size:11px;font-weight:600;line-height:1.3;letter-spacing:0;white-space:nowrap;text-decoration:none}.rmp-badge:hover{border-color:hsl(var(--rating-hue) 70% 72%);background:hsl(var(--rating-hue) 35% 23%)}.rmp-badge:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.page-head h1 .rmp-badge{font-size:13px;vertical-align:middle}
/* Directory filters share labels, height, and input framing. */
.directory-gpa-type{display:grid;gap:6px;align-self:flex-end}.directory-gpa-type>span{font-size:13px;color:var(--muted)}
.directory-controls input,.directory-controls select,.directory-gpa-type .gpa-toggle{height:44px;box-sizing:border-box}
.directory-gpa-type .gpa-toggle{gap:0;border:1px solid var(--line);border-radius:8px;background:#171c22;padding:3px;margin:0}
.directory-gpa-type .gpa-toggle button{width:39px;height:36px;display:grid;place-items:center;border-color:transparent;background:transparent;border-radius:5px;padding:7px}
.directory-gpa-type .gpa-toggle button[aria-pressed=true]{border-color:var(--gold);background:#302c21}
#app>.academic-warning{margin:16px 0 24px}#footerWarning[hidden]{display:none}

/* Fit the semester instructor comparison without horizontal scrolling. */
#courseProfessors{min-width:0}
#courseProfessors table{width:100%;min-width:0;table-layout:fixed}
#courseProfessors th,#courseProfessors td{white-space:normal;overflow-wrap:anywhere;padding:10px 7px;line-height:1.4}
#courseProfessors th:first-child{width:21%}
#courseProfessors th.sortable{padding-right:7px;letter-spacing:.025em}
#courseProfessors th button{white-space:normal;overflow-wrap:anywhere}
#courseProfessors .sort-glyph{margin-left:2px}
@media(max-width:600px){#courseProfessors th,#courseProfessors td{padding:8px 2px;font-size:10px}#courseProfessors th.sortable{padding-right:2px;letter-spacing:0}}


/* Keep both homepage chart filters together on the row below the heading. */
.home-gpa-head{flex-wrap:wrap;gap:12px}.home-gpa-head>div:first-child{flex-basis:100%}.home-gpa-head>.controls{margin-left:auto;flex-wrap:nowrap;max-width:100%}.home-gpa-head .controls select{min-width:0;width:auto;flex:1 1 auto}

.directory-ranges{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:18px}.range-caption{display:flex;justify-content:space-between;gap:10px;font-size:13px}.range-caption output{color:var(--muted);font-variant-numeric:tabular-nums}.dual-range{position:relative;height:32px;margin-top:8px}.dual-range:before{content:'';position:absolute;left:0;right:0;top:14px;height:4px;background:#59616b;border-radius:4px}.dual-range input{position:absolute;inset:0;width:100%;margin:0;appearance:none;background:transparent;pointer-events:none;height:32px}.dual-range input::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border-radius:50%;background:var(--gold);border:2px solid #171c22;pointer-events:auto;cursor:ew-resize}.dual-range input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--gold);border:2px solid #171c22;pointer-events:auto;cursor:ew-resize}.dual-range input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.directory-ranges>button{align-self:center}

.semester-summary{position:fixed;bottom:16px;right:16px;z-index:40;width:260px;max-width:calc(100vw - 32px);padding:14px;background:#171c22;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 24px #0006;font-size:12px}.semester-summary p{margin:6px 0;color:var(--muted)}.semester-summary details{margin:8px 0}.semester-summary summary{cursor:pointer}.semester-summary ul{max-height:150px;overflow:auto;padding-left:20px}.semester-summary button{margin-top:6px}.semester-summary>span{display:block;margin-top:8px}footer{padding-bottom:180px}@media(max-width:600px){.semester-summary{bottom:8px;right:8px;width:230px;padding:10px;font-size:11px}footer{padding-bottom:180px}}

.semester-summary{max-height:calc(100dvh - 32px);overflow:auto}.semester-summary .term-filter-stack{position:static;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:10px 0 0}.semester-summary .summer-toggle-floating{margin:0;padding:8px;box-shadow:none;font-size:12px}.directory-filter-panel{margin-bottom:18px;border:1px solid var(--line);border-radius:12px}.directory-filter-panel>summary{padding:14px 18px;cursor:pointer;font-weight:600}.directory-filter-panel .directory-ranges{border:0;margin-bottom:0}.directory-filter-panel>summary:focus-visible,.term-filter-options>summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}footer{padding-bottom:260px}

#semesterSummaryContent{padding-right:24px}.reset-site-filters{position:absolute;top:8px;right:8px;border:0;background:transparent;color:var(--muted);padding:5px;cursor:pointer}.reset-site-filters:hover{color:var(--gold)}.reset-site-filters svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.reset-site-filters:focus-visible{outline:2px solid var(--gold);border-radius:4px}

.filter-count{font-size:12px;color:var(--gold);margin-left:8px}.comparison-plus{width:44px;height:44px;font-size:30px;background:#262b31;color:var(--gold);border:1px solid var(--gold);border-radius:50%;cursor:pointer;flex-shrink:0}.comparison-picker{padding:18px;margin-bottom:18px}.comparison-picker label{display:inline-flex;flex-direction:column;gap:6px;margin:0 12px 12px 0}.comparison-picker input,.comparison-picker select{padding:10px;background:#171c22;color:var(--text);border:1px solid var(--line);border-radius:8px;max-width:100%}.comparison-picker[hidden]{display:none}.comparison-picker #comparisonResults{max-height:320px;overflow:auto}.comparison-picker [data-add-comparison]{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px;background:#171c22;color:var(--text);border:1px solid var(--line);cursor:pointer}.comparison-picker [data-add-comparison] small{flex:1;color:var(--muted)}.comparison-picker [data-add-comparison]:disabled{opacity:.5;cursor:default}.comparison-toolbar{display:flex;align-items:center;gap:16px;margin:16px 0}.comparison-toolbar .gpa-toggle{margin:0}.comparison-table table{width:max-content;min-width:100%}.comparison-table th,.comparison-table td{min-width:170px;max-width:260px;white-space:normal;vertical-align:top}.comparison-table th:first-child{position:sticky;left:0;background:#171c22;z-index:1}.comparison-kind,.comparison-table small{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.comparison-remove{margin-left:10px;background:transparent;border:0;color:var(--muted);font-size:20px;cursor:pointer}.comparison-table{margin-bottom:24px}.comparison-picker input:focus-visible,.comparison-plus:focus-visible,.comparison-remove:focus-visible,.comparison-picker button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media(max-width:600px){.comparison-picker label{display:flex;margin-right:0}.comparison-table th,.comparison-table td{min-width:140px}.comparison-picker [data-add-comparison]{flex-wrap:wrap}}

.comparison-toolbar{flex-wrap:wrap}.comparison-scope{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:13px}.comparison-scope select{max-width:300px;padding:9px;background:#171c22;color:var(--text);border:1px solid var(--line);border-radius:8px}@media(max-width:600px){.comparison-scope{margin-left:0;width:100%}.comparison-scope select{min-width:0;flex:1}}

.comparison-chart{margin-bottom:24px;padding:18px}.comparison-chart h2{margin:0 0 8px}.comparison-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:12px 0;font-size:12px}.comparison-legend span{display:inline-flex;align-items:center;gap:7px}.comparison-legend i{width:18px;height:3px;flex-shrink:0}.comparison-series circle:focus{outline:none;stroke:white;stroke-width:2}

.title-period-range{font-size:.5em;font-weight:400;color:var(--muted);white-space:nowrap}.comparison-toolbar .comparison-scope{margin-left:0}.comparison-toolbar{align-items:center}

#comparisonSearchSlot .search-shell{margin-top:0}.comparison-table th button[data-comparison-sort]{text-align:left;cursor:pointer}.comparison-table th[aria-sort="ascending"],.comparison-table th[aria-sort="descending"]{color:var(--gold)}

.page-head h1:has(.title-period-range){display:flex;align-items:center;flex-wrap:wrap;column-gap:.3em}.page-head h1 .title-period-range{line-height:1.2}

/* Compact numeric filters, while retaining draggable and keyboard-accessible handles. */
.directory-filter-panel>summary{padding:10px 14px;font-size:13px}
.directory-filter-panel .directory-ranges{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px 18px;padding:8px 14px 12px}
.directory-ranges .range-caption{font-size:11px;gap:6px}
.directory-ranges .dual-range{height:24px;margin-top:2px}
.directory-ranges .dual-range:before{top:10px;height:3px}
.directory-ranges .dual-range input{height:24px}
.directory-ranges .dual-range input::-webkit-slider-thumb{width:16px;height:16px}
.directory-ranges .dual-range input::-moz-range-thumb{width:14px;height:14px}
.directory-ranges>button{font-size:11px;padding:6px 8px;justify-self:start}
@media(max-width:600px){.directory-filter-panel .directory-ranges{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.directory-ranges .range-caption{flex-wrap:wrap;gap:2px}.directory-ranges .range-caption output{font-size:10px}.directory-ranges>button{grid-column:1/-1}}

.topbar nav a{display:inline-block;padding:10px 12px;color:var(--muted);text-decoration:none;border:1px solid transparent;border-radius:12px}.topbar nav a[aria-current="page"]{border-color:var(--gold);color:var(--gold)}.topbar nav a:hover{color:var(--text)}.seo-directory{columns:3;column-gap:32px}.seo-directory li{break-inside:avoid;padding:5px 0}@media(max-width:700px){.seo-directory{columns:1}.topbar nav a{padding:9px 6px;font-size:13px}}

/* Compact course requirements; details remain discoverable without displacing grades. */
.course-requirements{margin:16px 0 20px;min-width:0}.req-disclosure{border:1px solid var(--line);border-radius:10px;background:var(--card);overflow:hidden}.req-disclosure>summary{display:flex;align-items:center;gap:16px;padding:13px 16px;cursor:pointer;list-style:none;font-size:13px}.req-disclosure>summary::-webkit-details-marker{display:none}.req-disclosure>summary:hover{background:#ffffff04}.req-summary-label{font-weight:600}.req-state{font-size:11px;font-weight:400;color:var(--muted);margin-left:10px}.req-summary-next{margin-left:auto;color:var(--muted);white-space:nowrap;font-size:12px}.req-summary-next b{color:var(--gold);font-weight:500;margin-left:5px}.req-chevron{width:7px;height:7px;border-right:1.5px solid var(--gold);border-bottom:1.5px solid var(--gold);transform:rotate(45deg);margin:0 2px 4px 0;flex-shrink:0}.req-disclosure[open] .req-chevron{transform:rotate(225deg);margin-top:6px}.req-body{padding:16px 18px;border-top:1px solid var(--line)}.req-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px}.req-columns>section{min-width:0}.req-columns h3{font-size:12px;color:var(--muted);font-weight:500;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}.req-course-link{color:var(--gold);text-underline-offset:3px}.req-course-label{color:var(--text)}.req-group{font-size:12px}.req-group-label{color:var(--muted);margin:7px 0}.req-group ul{list-style:none;padding-left:14px;margin:6px 0 10px;border-left:1px solid var(--line)}.req-group li{padding:3px 0}.req-leaf{font-size:12px;line-height:1.65}.req-condition{color:var(--muted);font-size:11px;margin-left:8px}.req-next-list{list-style:none;margin:8px 0;padding:0;max-height:290px;overflow:auto}.req-next-list li{display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center;padding:6px 0;font-size:12px;line-height:1.5}.req-next-list li>a,.req-next-list li>.req-course-label{white-space:nowrap}.req-note,.req-empty,.req-footnote{font-size:11px;line-height:1.6;color:var(--muted);margin:8px 0}.req-footnote{border-top:1px solid var(--line);padding-top:10px;margin:14px 0 0}.req-text{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.req-disclosure>summary:focus-visible,.req-course-link:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}.req-note button{font-size:12px}
@media(max-width:700px){.req-disclosure>summary{padding:12px;gap:12px}.req-state{display:block;margin:3px 0 0;font-size:10px}.req-summary-next{font-size:11px}.req-body{padding:14px}.req-columns{grid-template-columns:1fr;gap:20px}.req-condition{font-size:10px}.course-requirements{margin:14px 0 18px}}

.req-tag{display:inline-block;margin-left:7px;padding:1px 5px;border:1px solid var(--line);border-radius:4px;color:var(--gold);font-size:10px;vertical-align:baseline}.req-subheading{margin:16px 0 5px;font-size:12px;color:var(--text)}.req-next-list .req-tag{margin-left:0}

.req-disclosure>summary .req-chevron{margin-left:auto}

.req-disclosure>summary .req-chevron{margin-left:auto}

.importer-modal{max-height:calc(100dvh - 40px);overflow-y:auto}.importer-modal h3{margin:22px 0 10px;font-size:16px}

/* Make Boolean requirement groups readable as choices and bundles. */
.req-group{border-left:2px solid var(--line);padding-left:10px;margin:8px 0}
.req-group-label{font-weight:600;color:var(--text);margin:0 0 7px;font-size:12px}
.req-group ul{border:0;padding:0;margin:0;list-style:none}
.req-group li{padding:0}
.req-connector{display:block;color:var(--muted);font-size:9px;font-weight:600;letter-spacing:.06em;margin:4px 0;line-height:1.3}
.req-group .req-group{border:1px solid var(--line);border-left:2px solid var(--gold);border-radius:6px;padding:9px 10px;margin:4px 0;background:#ffffff03}

/* The prerequisite column sets the desktop height; reverse requirements scroll within it. */
@media(min-width:701px){
 .req-columns>section:last-child{display:flex;flex-direction:column;min-height:0}
 .req-next-list{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;margin-bottom:0}
}

/* A compact disclosure when closed; a full requirements panel when open. */
.req-disclosure:not([open]){border-color:transparent;background:transparent;border-radius:0;overflow:visible}
.req-disclosure:not([open])>summary{display:inline-flex;padding:8px 0;gap:12px;color:var(--muted);border-radius:5px}
.req-disclosure:not([open])>summary:hover{background:transparent;color:var(--text)}
.req-disclosure:not([open])>summary .req-chevron{margin-left:0}
.req-disclosure:not([open])>summary:focus-visible{outline-offset:4px}
.course-requirements:has(.req-disclosure:not([open])){margin:8px 0 12px}

.course-actions{flex-direction:column;align-items:stretch}.course-actions .subtle-action{text-align:center}.course-requirements[hidden]{display:none}

.course-actions{align-items:flex-end}.course-actions .subtle-action{text-align:left}
.req-next-list{min-height:var(--req-list-min,320px);max-height:var(--req-list-min,320px)}
@media(min-width:701px){.req-next-list{max-height:none}}
@media(max-width:700px){.page-head .course-actions button{width:auto}}

/* Course actions share a right edge, overriding the generic centered action style. */
.page-head .course-actions{display:grid;grid-template-columns:max-content;justify-content:end;align-self:flex-end;margin-left:auto}
.page-head .course-actions .subtle-action{width:100%;box-sizing:border-box;align-self:stretch;text-align:left}

/* Highlight only the innermost group under the pointer, preserving its boundary. */
.req-group{transition:background-color .12s,border-color .12s}
.req-group:hover:not(:has(.req-group:hover)),.req-group:focus-within:not(:has(.req-group:focus-within)){background:rgba(207,185,145,.045);border-color:var(--gold)}
.req-group:hover:not(:has(.req-group:hover))>.req-group-label,.req-group:focus-within:not(:has(.req-group:focus-within))>.req-group-label{color:var(--gold)}


.req-required-group{color:var(--gold);font-size:11px;font-weight:600;margin:10px 0 6px}

/* Connected prerequisite blocks. DOM order remains readable without the connectors. */
.req-diagram{padding:6px 0 12px;min-width:0}
.req-diagram .req-group,.req-diagram .req-group .req-group{border:0;padding:0;margin:0;background:transparent;border-radius:8px}
.req-diagram .req-group-label{position:relative;box-sizing:border-box;width:fit-content;max-width:100%;margin:0 auto;padding:9px 13px;text-align:center;border:1px solid #526576;border-radius:9px;background:#152530;color:#b9deef;font-size:11px}
.req-diagram .req-group-and>.req-group-label{border-style:solid;background:#1b2026;color:var(--text)}
.req-diagram .req-group-or>.req-group-label{border-style:dashed}
.req-diagram .req-group ul{position:relative;list-style:none;border:0;margin:0;padding:18px 0 0 12px}
.req-diagram .req-group ul::before{content:"";position:absolute;top:0;bottom:20px;left:0;border-left:1px solid #54616d}
.req-diagram .req-group li{position:relative;padding:0 0 14px 9px;min-width:0}
.req-diagram .req-group li::before{content:"";position:absolute;top:18px;left:-12px;width:21px;border-top:1px solid #54616d}
.req-diagram .req-group li:last-child{padding-bottom:0}
.req-diagram .req-connector{display:none}
.req-diagram .req-leaf{background:#102d40;border:1px solid #29485c;border-radius:8px;padding:9px 10px;line-height:1.7;overflow-wrap:anywhere}
.req-diagram .req-condition{display:inline;margin-left:6px}
.req-diagram .req-tag{white-space:normal;margin-left:0;margin-top:4px;display:table}
.req-diagram .req-required-group{text-align:center;border:1px solid var(--line);border-radius:8px;padding:9px;margin:0 0 14px;background:var(--card)}
.req-diagram .req-group:hover:not(:has(.req-group:hover)),.req-diagram .req-group:focus-within:not(:has(.req-group:focus-within)){background:rgba(207,185,145,.045)}
.req-diagram .req-group:hover:not(:has(.req-group:hover))>.req-group-label{border-color:var(--gold);color:var(--gold)}
@media(min-width:1100px){
 .req-columns:has(.req-diagram){grid-template-columns:minmax(0,1fr) 230px;gap:22px}
 .req-diagram>.req-group-and>ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:28px 0 0}
 .req-diagram>.req-group-and>ul::before{top:14px;bottom:auto;left:0;right:0;border-left:0;border-top:1px solid #54616d}
 .req-diagram>.req-group-and>.req-group-label::after{content:"";position:absolute;height:15px;border-left:1px solid #54616d;left:50%;top:100%}
 .req-diagram>.req-group-and>ul>li{padding:0}
 .req-diagram>.req-group-and>ul>li::before{top:-14px;left:50%;width:0;height:14px;border-top:0;border-left:1px solid #54616d}
}
@media(max-width:700px){.req-diagram .req-group ul{padding-left:8px}.req-diagram .req-group li{padding-left:6px}.req-diagram .req-group li::before{left:-8px;width:14px}.req-diagram .req-leaf{padding:8px}}

/* Refined diagram surfaces and hierarchy. */
.req-diagram{padding:12px 2px 16px}
.req-diagram .req-group-label{border:1px solid #bda16b40;border-radius:20px;background:#c8ae7810;color:#d8c395;padding:6px 12px;font-size:10px;letter-spacing:.02em;font-weight:600;box-shadow:none}
.req-diagram .req-group-or>.req-group-label{border-style:solid}
.req-diagram .req-group-and>.req-group-label{background:#ffffff05;border-color:#ffffff17;color:#b8c0c9}
.req-diagram .req-leaf{background:linear-gradient(135deg,#ffffff07,#ffffff02);border:1px solid #ffffff12;border-radius:10px;padding:9px 11px;box-shadow:0 2px 5px #0000000d;font-size:12px}
.req-diagram .req-course-link{color:#e0cc9d;text-decoration:none;font-weight:500}
.req-diagram .req-course-link:hover{text-decoration:underline;text-underline-offset:3px}
.req-diagram .req-condition{color:#909ca9;font-size:10px}
.req-diagram .req-tag{background:#c8ae7809;border:0;color:#b7a889;font-size:9px;padding:1px 0;margin-top:2px}
.req-diagram .req-required-group{border:0;border-bottom:1px solid #ffffff13;border-radius:0;background:none;color:#bdc6d0;text-align:left;text-transform:uppercase;letter-spacing:.09em;font-size:10px;padding:8px 0 12px;margin:0 0 16px}
.req-diagram .req-group ul::before,.req-diagram .req-group li::before{border-color:#ffffff1c}
.req-diagram .req-group li{padding-bottom:9px}
.req-diagram .req-group:hover:not(:has(.req-group:hover)),.req-diagram .req-group:focus-within:not(:has(.req-group:focus-within)){background:#d0b98f08}
@media(min-width:1100px){
 .req-diagram>.req-group-and>ul{gap:20px;padding-top:32px}
 .req-diagram>.req-group-and>ul::before{border-color:#ffffff1c}
 .req-diagram>.req-group-and>.req-group-label::after{border-color:#ffffff1c}
 .req-diagram>.req-group-and>ul>li::before{border-color:#ffffff1c;height:18px;top:-18px}
}
@media(prefers-reduced-motion:reduce){.req-diagram .req-group{transition:none}}

/* Actual node-to-node connectors, recomputed when the diagram resizes. */
.req-diagram{position:relative;isolation:isolate}
.req-wires{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:-1}
.req-wires path{fill:none;stroke:#65717e;stroke-opacity:.5;stroke-width:1.2;stroke-linejoin:round;stroke-linecap:round}
.req-wires path.active{stroke:#69d69b;stroke-opacity:1;stroke-width:2.4}
.req-diagram .req-group ul::before,.req-diagram .req-group li::before,.req-diagram>.req-group-and>.req-group-label::after{display:none}
.req-diagram .req-group-label{background:#17232a}
.req-diagram .req-group-and>.req-group-label{background:#1b2026}
.req-diagram .req-leaf{background:#192027}
.req-diagram .req-required-group{background:var(--card)}

.req-taken-control{display:flex;align-items:center;gap:4px;width:fit-content;font-size:10px;color:var(--muted);cursor:pointer;margin-bottom:4px;min-height:24px}
.req-taken-control input{width:13px;height:13px;margin:0;accent-color:#69d69b;cursor:pointer}
.req-diagram .req-leaf.req-taken{border-color:#69d69b70;background:#183026}
.req-taken-control:focus-within{outline:2px solid var(--gold);outline-offset:2px;border-radius:3px}

.req-diagram .req-leaf:has(.req-taken-control){position:relative;padding-right:42px}
.req-taken-control{position:absolute;right:8px;top:50%;transform:translateY(-50%);margin:0;width:28px;height:28px;display:grid;place-items:center}
.req-taken-control input{appearance:none;-webkit-appearance:none;width:18px;height:18px;border:1px solid #697781;border-radius:5px;background:#ffffff07;display:grid;place-content:center}
.req-taken-control input:checked{background:#69d69b;border-color:#69d69b}
.req-taken-control input:checked::after{content:"";width:8px;height:4px;border-left:2px solid #10261b;border-bottom:2px solid #10261b;transform:rotate(-45deg) translateY(-1px)}
.req-wires path.active{stroke-dasharray:5 4}
.req-wires path.completed{stroke:#69d69b;stroke-opacity:1;stroke-width:2.4;stroke-dasharray:none}

.req-diagram .req-required-group{text-align:center}
.req-diagram .req-required-group.req-satisfied,.req-diagram .req-group>.req-group-label.req-satisfied{color:#83e3ad;background:#193629;border-color:#69d69b80}
.req-diagram .req-group:hover>.req-group-label.req-satisfied{color:#83e3ad;border-color:#69d69b80}


/* Wrapped groups keep an outside connector lane and a clear gap above each row. */
@media(min-width:1100px){
 .req-diagram>.req-group-and>ul{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));column-gap:20px;row-gap:42px;padding-left:16px;padding-top:32px}
}

.req-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:12px}
.req-heading-row h3{border:0;margin:0;padding:0}
.req-view-toggle{display:inline-flex;border:1px solid var(--line);border-radius:7px;padding:2px;gap:2px}
.req-view-toggle button{background:transparent;color:var(--muted);border:0;border-radius:4px;padding:4px 8px;font:inherit;font-size:10px;cursor:pointer}
.req-view-toggle button[aria-pressed=true]{background:#c8ae781c;color:var(--gold)}
.req-view-toggle button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.req-list-view .req-columns{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.req-list-view .req-wires{display:none}
.req-list-view .req-diagram{padding:0}
.req-list-view .req-diagram .req-group{border-left:2px solid var(--line);padding-left:10px;margin:8px 0;border-radius:0}
.req-list-view .req-diagram .req-group .req-group{border:1px solid var(--line);border-left:2px solid var(--gold);border-radius:6px;padding:9px 10px;margin:4px 0;background:#ffffff03}
.req-list-view .req-diagram .req-group-label{width:auto;margin:0 0 7px;padding:0;border:0;border-radius:0;background:none;color:var(--text);text-align:left;font-size:12px;letter-spacing:normal}
.req-list-view .req-diagram .req-group ul{display:block;padding:0;margin:0;border:0}
.req-list-view .req-diagram .req-group li{padding:3px 0}
.req-list-view .req-diagram .req-connector{display:block}
.req-list-view .req-diagram .req-leaf{border:0;background:none;box-shadow:none;border-radius:3px;padding:3px 36px 3px 0;min-height:24px}
.req-list-view .req-diagram .req-tag{display:inline-block;margin:0 0 0 7px;padding:1px 5px;border:1px solid var(--line)}
.req-list-view .req-diagram .req-required-group{border:0;margin:8px 0;padding:4px;background:none}
.req-list-view .req-diagram .req-satisfied{color:#83e3ad;background:#193629}
.req-list-view .req-diagram .req-leaf.req-taken{background:#193629}
@media(max-width:700px){.req-list-view .req-columns{grid-template-columns:1fr}}

/* Rounded completion and hover highlights in the compact list. */
.req-list-view .req-diagram .req-group{border-radius:8px}
.req-list-view .req-diagram .req-group-label.req-satisfied,.req-list-view .req-diagram .req-required-group.req-satisfied{border-radius:7px;padding:4px 8px}
.req-list-view .req-diagram .req-leaf{border-radius:7px}



.comparison-toolbar #clearComparison{order:10;margin-left:auto}

.directory-ranges .range-caption{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:6px}
.directory-ranges .range-caption>span:first-child{min-width:0}
.directory-filter-panel .directory-ranges{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
@media(max-width:600px){.directory-filter-panel .directory-ranges{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}}
.range-values{flex:0 0 15ch;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px;color:var(--muted);min-width:0}
.range-values>span{text-align:center}
.range-values input{width:100%;min-width:0;padding:1px 2px;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;font:inherit;text-align:right;font-variant-numeric:tabular-nums;box-sizing:border-box}
.range-values input:hover{border-color:var(--line)}
.range-values input:focus{outline:1px solid var(--gold);background:var(--card);color:var(--text)}

.range-values input[data-edit-bound=min]{text-align:right}
.range-values input[data-edit-bound=max]{text-align:left}

.score-demo-open{display:block;margin-top:8px;padding:3px 0;border:0;background:none;color:var(--gold);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

.score-tour-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start;scroll-margin-top:100px;margin:16px 0}.score-tour-layout>.table-wrap{min-width:0;max-height:620px;overflow:auto;position:relative}.score-tour-tip{position:sticky;top:100px;padding:18px;border:1px solid #c8ae7880;border-radius:12px;background:#1b222a;box-shadow:0 8px 28px #0003}.score-tour-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.score-tour-tip h3{margin:12px 0;font-size:18px}.score-tour-tip p{font-size:13px;line-height:1.65}.score-tour-tip strong{display:block;color:var(--gold);font-size:18px;overflow-wrap:anywhere}.score-tour-tip small{display:block;color:var(--muted);margin-top:12px;line-height:1.5}.score-tour-controls{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.score-tour-tip button{background:#222c35;color:var(--text);border:1px solid var(--line);border-radius:6px;padding:6px 10px;cursor:pointer}.score-tour-tip button:disabled{opacity:.4;cursor:default}.score-tour-tip button:focus-visible{outline:2px solid var(--gold)}.score-tour-table th,.score-tour-table td{transition:background .35s}.score-tour-table .score-tour-highlight{background:#c8ae7829!important;box-shadow:inset 0 -2px #c8ae7880}.score-tour-excluded td{color:var(--muted)}.score-tour-table [data-tour-extra]{min-width:130px}.score-tour-table [hidden]{display:none!important}@media(max-width:850px){.score-tour-layout{grid-template-columns:minmax(0,1fr);scroll-margin-top:145px}.score-tour-tip{grid-row:1;position:static}.score-tour-layout>.table-wrap{max-height:420px}}@media(prefers-reduced-motion:reduce){.score-tour-table th,.score-tour-table td{transition:none}}

.score-tour-table{table-layout:auto!important;min-width:1150px}.score-tour-table th,.score-tour-table td{word-break:normal!important;overflow-wrap:normal!important}.score-tour-table th{min-width:85px}.score-tour-table [data-tour-extra]{min-width:140px}
.score-tour-table [data-tour-extra=minus],.score-tour-table [data-tour-extra=equals]{min-width:24px;width:24px;text-align:center;color:var(--gold);font-size:18px}.score-tour-table{min-width:780px}.score-tour-excluded td,.score-tour-excluded th{position:relative;color:#e59696!important}.score-tour-excluded td::after,.score-tour-excluded th::after{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#ef7777;transform-origin:left;animation:score-strike .65s ease-out both;pointer-events:none}@keyframes score-strike{from{transform:scaleX(0)}to{transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){.score-tour-excluded td::after,.score-tour-excluded th::after{animation:none}}
.metric-card:has(.score-demo-open){position:relative}.metric-card:has(.score-demo-open) .metric-label{padding-right:32px}.score-demo-open{position:absolute;right:12px;top:12px;display:grid;place-items:center;margin:0;padding:0;width:28px;height:28px;border:1px solid #c8ae7850;border-radius:50%;background:#c8ae780b;color:var(--gold);font-size:15px;font-weight:600;text-decoration:none;transition:background .2s,border-color .2s,transform .2s}.score-demo-open:hover{background:#c8ae7822;border-color:var(--gold);transform:translateY(-1px)}.score-demo-open:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.score-tour-table [data-tour-extra=times],.score-tour-table [data-tour-extra=product-equals]{min-width:24px;width:24px;text-align:center;color:var(--gold);font-size:18px}.score-tour-table{border-collapse:separate;border-spacing:0}.score-tour-table thead th{position:sticky;top:0;z-index:5;background:#171c22!important;box-shadow:0 1px #343d47}.score-tour-table thead th.score-tour-highlight{background:#333027!important;box-shadow:inset 0 -2px #c8ae7880,0 1px #343d47}.score-tour-tip{border-color:#c8ae7840;border-radius:16px;background:linear-gradient(145deg,#202831,#181f27);box-shadow:0 12px 32px #0003}.score-tour-tip button{transition:background .2s,border-color .2s}.score-tour-tip button:hover:not(:disabled){background:#303b47;border-color:#c8ae7860}.score-tour-tip [data-play]{color:var(--gold);border-color:#c8ae7860}.score-tour-tip [data-formula]{padding:12px 0;line-height:1.6}.score-tour-tip [data-progress]{letter-spacing:.05em;text-transform:uppercase}@media(prefers-reduced-motion:reduce){.score-demo-open,.score-tour-tip button{transition:none}}

.score-tour-table .score-tour-number{text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}.score-tour-table .score-tour-number button{justify-content:center;width:100%}.score-tour-table td[data-tour-extra=minus],.score-tour-table td[data-tour-extra=equals],.score-tour-table td[data-tour-extra=times],.score-tour-table td[data-tour-extra=product-equals]{text-align:center;vertical-align:middle;font-size:24px;font-weight:600;line-height:1;padding:12px 10px;min-width:40px;width:40px;color:#e5c98f;background:#c8ae7808}.score-tour-table th[data-tour-extra=minus],.score-tour-table th[data-tour-extra=equals],.score-tour-table th[data-tour-extra=times],.score-tour-table th[data-tour-extra=product-equals]{font-size:0;min-width:40px;width:40px}.score-tour-tip [data-formula]{font-size:17px;background:#ffffff04;border-radius:8px;padding:12px;line-height:1.7}

/* Quiet icon button, matching the card's existing secondary controls. */
.score-demo-open{width:32px;height:32px;right:10px;top:10px;border:0;border-radius:8px;background:transparent;color:var(--muted);box-shadow:none;transition:color .18s ease,background .18s ease}
.score-demo-open svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.score-demo-open:hover{background:#ffffff08;color:var(--text);transform:none}
.score-demo-open:focus-visible{outline:2px solid var(--gold);outline-offset:2px;background:#ffffff08;color:var(--text)}
@media(prefers-reduced-motion:reduce){.score-demo-open{transition:none}}

.score-tour-tip{overflow:hidden}.score-tour-tip::before{content:'';position:absolute;top:0;left:0;height:3px;width:20%;background:var(--gold);transition:width .55s cubic-bezier(.2,.8,.2,1)}.score-tour-tip[data-phase="1"]::before{width:40%}.score-tour-tip[data-phase="2"]::before{width:60%}.score-tour-tip[data-phase="3"]::before{width:80%}.score-tour-tip[data-phase="4"]::before{width:100%;background:#83e3ad}.score-tour-tip[data-phase="4"] [data-formula]{color:#83e3ad;background:#83e3ad0a}.score-tour-tip [data-copy]{font-size:14px;line-height:1.65}.score-tour-table .score-tour-highlight{transition:background .45s ease,box-shadow .45s ease}@media(max-width:850px){.score-tour-tip{position:relative;top:auto}}@media(prefers-reduced-motion:reduce){.score-tour-tip::before,.score-tour-table .score-tour-highlight{transition:none}}

.score-tour-table .score-tour-total th,.score-tour-table .score-tour-total td{position:sticky;top:auto;bottom:0;z-index:6;background:#203029!important;color:#a4e8bf;border-top:2px solid #83e3ad70;border-bottom:0;padding:14px 12px;font-weight:700;box-shadow:0 -4px 12px #0002}.score-tour-table .score-tour-total th{text-transform:none;letter-spacing:normal;font-size:13px;text-align:right}.score-tour-table .score-tour-total td{font-size:15px}



.pie-professor-name,.pie-period-label{display:block}.pie-professor-name+.pie-period-label{margin-top:5px;font-size:13px;font-weight:400;color:var(--muted)}.donut-controls:not(:has(p)):not(:has(button)){display:none}

/* One continuous strike across the entire excluded row. */
.score-tour-excluded{position:relative}
.score-tour-excluded td::after,.score-tour-excluded th::after{content:none;animation:none}
.score-tour-excluded::after{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#ef7777;transform-origin:left center;animation:score-strike .8s cubic-bezier(.2,.7,.2,1) both;pointer-events:none;z-index:2}
@media(prefers-reduced-motion:reduce){.score-tour-excluded::after{animation:none}}

/* Compact text outline for the prerequisite List view. */
.req-list-view .req-diagram .req-group,.req-list-view .req-diagram .req-group .req-group{border:0;border-radius:0;background:none;margin:4px 0;padding:0;box-shadow:none}
.req-list-view .req-diagram .req-group-label,.req-list-view .req-diagram .req-group-label.req-satisfied{padding:0;margin:0 0 3px;border:0;border-radius:0;background:none;color:var(--text);font-size:12px;text-align:left;font-weight:600}
.req-list-view .req-diagram .req-group ul{display:block;list-style:disc;margin:0;padding:0 0 0 19px}
.req-list-view .req-diagram .req-group li{padding:1px 0;font-size:12px}
.req-list-view .req-diagram .req-connector,.req-list-view .req-diagram .req-required-group,.req-list-view .req-taken-control{display:none}
.req-list-view .req-diagram .req-leaf,.req-list-view .req-diagram .req-leaf.req-taken,.req-list-view .req-diagram .req-leaf:has(.req-taken-control){padding:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;line-height:1.6}
.req-list-view .req-diagram .req-condition{margin-left:6px;font-size:11px}
.req-list-view .req-diagram .req-tag{display:inline;margin-left:6px;padding:0;border:0;border-radius:0;background:none;font-size:11px;color:var(--muted)}

/* Route transitions keep navigation in place while page content changes. */
#app{view-transition-name:boiler-page}
::view-transition-group(boiler-page){animation-duration:320ms;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(boiler-page){animation:boiler-page-out 150ms ease-out both;mix-blend-mode:normal}
::view-transition-new(boiler-page){animation:boiler-page-in 320ms cubic-bezier(.2,.8,.2,1) both;mix-blend-mode:normal}
@keyframes boiler-page-out{to{opacity:0;transform:translateY(-6px) scale(.992)}}
@keyframes boiler-page-in{from{opacity:0;transform:translateY(14px) scale(.995);filter:blur(2px)}to{opacity:1;transform:none;filter:blur(0)}}
.topbar nav button{transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.topbar nav button:active{transform:translateY(1px)}
@media(prefers-reduced-motion:reduce){
 #app{view-transition-name:none}
 ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
 .topbar nav button{transition:none;transform:none}
}

/* Immediate control feedback and smooth non-navigation updates. */
button,select,.req-course-link{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
button:active:not(:disabled){filter:brightness(1.12)}
svg[data-morphing="true"] .average-hit{pointer-events:none}
.req-leaf,.req-group-label,.req-required-group{transition:background-color .22s ease,border-color .22s ease,color .22s ease}
@media(prefers-reduced-motion:reduce){button,select,.req-course-link,.req-leaf,.req-group-label,.req-required-group{transition:none}}


/* Completion colors belong to the diagram, not the plain-text list. */
.req-list-view .req-diagram .req-group .req-group-label.req-satisfied,
.req-list-view .req-diagram .req-group:hover>.req-group-label.req-satisfied,
.req-list-view .req-diagram .req-required-group.req-satisfied,
.req-list-view .req-diagram .req-leaf.req-taken{
 color:var(--text);background:none;border-color:transparent;box-shadow:none;
}

/* Render a useful shell before data preparation completes. */
.loading-content{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:24px;min-height:270px}
.loading-bar{height:28px;margin:18px 0;border-radius:7px;background:linear-gradient(90deg,#20262e 20%,#2a323c 50%,#20262e 80%);background-size:200% 100%;animation:loading-sweep 1.5s ease-in-out infinite}
.loading-short{width:35%;height:18px;margin-bottom:28px}
@keyframes loading-sweep{from{background-position:200% 0}to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.loading-bar{animation:none;background:#20262e}}

/* Course catalog disclosure and preserved Purdue requirement tables. */
.course-info { margin-top: 6px; width:100%; min-width:0; }
.course-info > summary { display:flex; align-items:center; gap:12px; cursor:pointer; list-style:none; color:var(--muted); font-size:1rem; }
.course-info > summary::-webkit-details-marker { display:none; }
.course-info > summary .req-chevron { flex:0 0 8px; }
.course-info[open] > summary .req-chevron { transform:rotate(225deg); }
.course-info > summary:focus-visible { outline:2px solid #cfb991; outline-offset:5px; border-radius:3px; }
.course-info-body { margin-top:16px; padding:18px; border:1px solid var(--line); border-radius:10px; font-size:14px; }
.course-info-body h3 { margin:16px 0 8px; font-size:1rem; }
.catalog-text { white-space:pre-line; overflow-wrap:anywhere; line-height:1.65; }
.catalog-table-wrap { max-width:100%; overflow-x:auto; margin:12px 0; }
.catalog-table-wrap table { width:100%; font-size:13px; border-collapse:collapse; }
.catalog-table-wrap th,.catalog-table-wrap td { padding:8px; text-align:left; border-bottom:1px solid var(--line); white-space:normal; min-width:45px; }
.catalog-restrictions { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.req-columns > section { min-width:0; }
 .req-view-toggle[hidden] { display:none; }


.course-catalog-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 24px; }
.course-catalog-head > .course-info { grid-column:1 / -1; }
.course-catalog-head .course-actions { align-self:center; }
.course-info-body h3:first-child { margin-top:0; }
@media(max-width:600px){ .course-catalog-head { grid-template-columns:minmax(0,1fr); } .course-catalog-head > .course-info { grid-row:2; } .course-catalog-head > .course-actions { grid-row:3; margin-top:12px; } }
/* Schedule planner */
.comparison-modes{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.comparison-modes [aria-pressed=true]{background:var(--gold);color:#15191f;border-color:var(--gold)}
.schedule-intro,.schedule-section-top{display:flex;justify-content:space-between;align-items:start;gap:16px}
.schedule-intro h2{margin:0}.schedule-term{font-size:15px;color:var(--gold);margin-left:10px}
.schedule-controls{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:16px;margin:24px 0}
.schedule-controls label{display:grid;gap:8px;color:var(--muted);font-size:14px;min-width:0}
.schedule-controls input,.schedule-controls select{width:100%;min-width:0;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--text)}
.schedule-picker{max-height:440px;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--panel)}
.schedule-section{border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:12px;background:var(--panel2);min-width:0}
.schedule-section:last-child{margin-bottom:0}.schedule-section p{margin:8px 0}.schedule-section a{color:var(--gold2)}
.schedule-meeting,.schedule-stats{font-size:13px}.schedule-stats{border-top:1px solid var(--line);padding-top:8px;color:var(--muted)}
.schedule-stats strong:where(:not(.pos,.neg)){color:var(--text)}.schedule-note{color:var(--gold);font-size:13px}.schedule-conflict{color:var(--bad);font-weight:600}
.schedule-summary{margin:28px 0 14px}.schedule-summary h2{margin-bottom:6px}.schedule-summary p{margin:6px 0}
.schedule-calendar-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.schedule-calendar{display:grid;grid-template-columns:70px repeat(var(--day-count),minmax(130px,1fr));min-width:760px}
.schedule-day-heading{padding:14px 8px;text-align:center;background:var(--panel2);border-bottom:1px solid var(--line);font-weight:600;font-size:13px}
.schedule-day-column{position:relative;border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,var(--line) 59px,var(--line) 60px)}
.schedule-time-axis{position:relative;color:var(--muted);font-size:11px}.schedule-time-axis span{position:absolute;left:8px;padding-top:3px}
.schedule-event{position:absolute;display:flex;flex-direction:column;overflow:hidden;border:1px solid hsl(var(--event-hue) 45% 58%);border-radius:6px;background:hsl(var(--event-hue) 26% 22%);padding:5px;color:#fff;text-decoration:none;font-size:11px;line-height:1.4;min-width:0}
.schedule-event strong{font-size:12px}.schedule-event:focus{outline:3px solid var(--gold);z-index:2}.schedule-selected{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:16px;margin-top:24px}.schedule-selected .schedule-section{margin:0}
@media(max-width:680px){.schedule-controls{grid-template-columns:1fr}.schedule-intro{flex-wrap:wrap}.schedule-section-top{flex-wrap:wrap}.schedule-picker{max-height:400px}.schedule-section{padding:12px}}
/* Schedule search and campus labels */
.schedule-controls{display:block}.schedule-search-shell{position:relative;max-width:800px}
.schedule-search-shell>label{display:block;margin-bottom:8px}.schedule-search-shell .search-results{top:calc(100% + 6px);z-index:12}
.schedule-search-empty{padding:12px 16px;color:var(--muted)}
.schedule-campus{display:inline-block;vertical-align:middle;border-radius:5px;padding:3px 7px;margin:3px 0;font-size:12px;font-weight:800;letter-spacing:.03em;line-height:1.2}
.campus-wl{background:#e5c98f;color:#211b10;border:1px solid #f5dda8}.campus-ind{background:#9bd6ff;color:#08233c;border:1px solid #c2e7ff}.campus-other{background:#414954;color:#fff;border:1px solid #657080}
.schedule-event{padding-right:25px}.schedule-event a{color:#fff;text-decoration:none}.schedule-event a:hover{text-decoration:underline}
.schedule-event>.schedule-campus{position:absolute;bottom:2px;right:3px;padding:1px 3px;font-size:9px;margin:0}
.schedule-event-remove{position:absolute;right:1px;top:1px;width:23px;height:23px;padding:0;border:1px solid #ffffff70;border-radius:4px;background:#111a;color:#fff;font-size:20px;line-height:20px;cursor:pointer;z-index:1}
.schedule-event-remove:hover{background:#6d2929}.schedule-event-remove:focus-visible{outline:2px solid #fff;outline-offset:1px}
.schedule-warning{margin:20px 0}.schedule-warning a{color:var(--gold2);text-decoration:underline}.schedule-name-match{color:var(--gold)}
/* Section types are ordered lecture, laboratory, recitation. */
.schedule-picker{max-height:none;overflow:visible}
.schedule-section-columns{display:grid;grid-template-columns:repeat(var(--section-columns),minmax(0,1fr));gap:16px}
.schedule-section-column{min-width:0}.schedule-column-heading h3{display:flex;gap:10px;align-items:center;margin:0;color:var(--gold2);font-size:17px}
.schedule-column-heading h3 span{font-size:12px;padding:3px 7px;border-radius:20px;background:var(--panel2);color:var(--muted)}
.schedule-section-list{max-height:530px;overflow:auto;padding-right:4px}.schedule-section-column .schedule-section-top{flex-wrap:wrap}
.schedule-stats{border-top:0;padding-top:0;margin:10px 0}.schedule-warning{margin:0 0 24px}
@media(max-width:850px){.schedule-section-columns{grid-template-columns:1fr}.schedule-section-list{max-height:420px}}
.schedule-course-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;padding:18px 20px;background:var(--panel);border:1px solid var(--line);border-radius:14px}
.schedule-course-heading h2{margin:5px 0;font-size:23px}.schedule-course-heading a{color:var(--gold2);text-decoration:none}.schedule-course-heading p{margin:0;color:var(--muted)}
.schedule-instructor h4{font-size:19px;line-height:1.3;margin:0;letter-spacing:-.02em}.schedule-instructor h4 a{color:var(--text);text-decoration:none}.schedule-instructor h4 a:hover{color:var(--gold2);text-decoration:underline}
.schedule-instructor-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.schedule-stats{margin:0 0 14px}.schedule-instructor+.schedule-instructor{margin-top:18px}
.schedule-instructor-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:14px}.schedule-instructor-metrics>div{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:10px 8px;background:#11151b;border:1px solid var(--line);border-radius:9px}
.schedule-instructor-metrics span{font-size:10px;color:var(--muted);line-height:1.3}.schedule-instructor-metrics strong{font-size:21px;font-variant-numeric:tabular-nums;line-height:1.1;font-weight:650}
.schedule-instructor-metrics .schedule-score-tile{background:#29261f;border-color:#cfb99155}
.schedule-section .schedule-history-caption,.schedule-section .schedule-history-empty{color:var(--muted);font-size:11px;margin:9px 0 0}.schedule-section-meta{padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.schedule-section-action{margin-top:12px;width:100%}
@media(max-width:600px){.schedule-course-heading{align-items:start;flex-direction:column}.schedule-instructor h4{font-size:18px}}
.schedule-instructor h4{color:var(--text)}
/* Compact instructor cards with meeting days at the upper right. */
.schedule-section{display:flow-root;padding:16px;background:#191e25;border-radius:12px}
.schedule-meeting-corner{float:right;width:132px;margin:0 0 14px 12px;text-align:right}
.schedule-meeting-badge+.schedule-meeting-badge{margin-top:12px}.schedule-meeting-badge strong{display:block;color:var(--text);font-size:12px;font-weight:550;margin-top:7px;white-space:nowrap}.schedule-meeting-badge small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.schedule-day-strip{display:flex;justify-content:flex-end;gap:3px}.schedule-day-strip span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:22px;border-radius:4px;font-size:10px;font-weight:650;color:#687481;background:#242c35}.schedule-day-strip .active{background:var(--gold);color:#221c12}
.schedule-instructor-heading{display:block}.schedule-instructor-heading h4{font-size:17px;margin-bottom:7px;overflow-wrap:anywhere}.schedule-instructor-heading .rmp-badge{font-size:10px}
.schedule-instructor-metrics{clear:both;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:14px 0 2px}
.schedule-instructor-metrics>div,.schedule-instructor-metrics .schedule-score-tile{background:none;border:0;border-radius:0;padding:0;gap:5px}.schedule-instructor-metrics strong{font-size:19px;font-weight:600}.schedule-instructor-metrics span{font-size:11px}.schedule-instructor-metrics>div+div{border-left:1px solid var(--line);padding-left:12px}
.schedule-section-meta{clear:both;padding-top:10px}.schedule-section-action{width:auto;padding:7px 12px;float:right}.schedule-stats{margin-bottom:12px}.schedule-history-empty{padding-bottom:12px}
@media(max-width:400px){.schedule-meeting-corner{width:125px;margin-left:8px}.schedule-instructor-heading h4{font-size:16px}.schedule-day-strip{gap:2px}}
/* Compact cards and credit-weighted semester overview. */
.schedule-section{position:relative;padding:12px}.schedule-card-cap{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px;min-height:22px}.schedule-card-cap .schedule-campus{margin:0;font-size:10px;padding:3px 5px}
.schedule-card-remove{position:absolute;right:8px;top:8px;width:25px;height:25px;padding:0;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:21px;line-height:20px}.schedule-card-remove:hover{color:#fff;background:#633030}.schedule-card-remove:focus-visible{outline:2px solid var(--gold)}
.schedule-meeting-corner{margin-bottom:6px}.schedule-instructor-heading{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.schedule-instructor-heading h4{margin:0;font-size:16px}.schedule-instructor-metrics{padding-top:10px;gap:8px}.schedule-instructor-metrics strong{font-size:17px}.schedule-instructor-metrics span{font-size:10px}.schedule-instructor-metrics>div+div{padding-left:8px}.schedule-stats{margin-bottom:8px}.schedule-section-meta{padding-top:8px;font-size:11px}.schedule-section-action{margin-top:8px;padding:5px 10px}.schedule-section p.schedule-conflict{font-size:12px;margin:6px 0}
.schedule-session-label{display:inline-block!important;font-size:10px!important;color:var(--gold2);font-weight:600;margin-top:4px}
.schedule-semester-overview{margin:16px 0 22px}.schedule-overview-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}.schedule-overview-title h2{margin:0 0 12px;font-size:20px}.schedule-overview-title>span{color:var(--muted);font-size:13px}
.schedule-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.schedule-overview-panel{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.schedule-overview-panel h3{margin:0 0 16px;font-size:15px;color:var(--gold2)}
.schedule-overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.schedule-overview-metrics>div{display:flex;flex-direction:column;gap:6px}.schedule-overview-metrics span{font-size:12px;color:var(--muted)}.schedule-overview-metrics strong{font-size:24px;font-weight:600}.schedule-overview-metrics small{font-size:10px;color:var(--muted)}
.schedule-calculation{margin-top:12px;color:var(--muted);font-size:12px}.schedule-calculation summary{cursor:pointer}.schedule-credit-inputs{display:flex;gap:12px;flex-wrap:wrap}.schedule-credit-inputs label{display:flex;align-items:center;gap:10px}.schedule-credit-inputs input{width:80px;padding:8px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:6px}
.schedule-day-column{background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(30 * var(--minute-height) - 1px),var(--line) calc(30 * var(--minute-height) - 1px),var(--line) calc(30 * var(--minute-height)))}
.schedule-event{padding:7px 8px;gap:3px;font-size:12px;line-height:1.4;overflow:visible;overflow-wrap:anywhere}.schedule-event strong{font-size:14px}.schedule-event-cap{display:flex;align-items:center;justify-content:space-between;min-height:23px}.schedule-event-cap .schedule-campus{position:static;margin:0;padding:2px 5px;font-size:10px}.schedule-event .schedule-event-remove{position:static;flex-shrink:0;width:22px;height:22px}.schedule-event>span{display:block}
.schedule-day-heading{position:sticky;top:0;z-index:3}.schedule-calendar-scroll{max-height:1000px}.schedule-time-axis span{white-space:nowrap}
@media(max-width:750px){.schedule-overview-grid{grid-template-columns:1fr}.schedule-overview-panel{padding:14px}.schedule-overview-metrics strong{font-size:21px}}
.schedule-instructor-heading{flex-wrap:nowrap}.schedule-instructor-heading h4{min-width:0}.schedule-instructor-heading>a,.schedule-instructor-heading>span{flex-shrink:0}
.schedule-time-axis{position:sticky;left:0;z-index:2;background:var(--panel)}.schedule-day-heading:first-child{left:0;z-index:4}
/* Compact week and meeting-corner campus badge. */
.schedule-section{padding:10px}.schedule-meeting-corner{width:126px;margin-left:10px;margin-bottom:2px}.schedule-meeting-corner>.schedule-campus{font-size:9px;padding:2px 4px;margin:4px 0 0}.schedule-saved-card .schedule-meeting-corner{margin-right:24px}
.schedule-instructor-metrics{padding-top:5px;gap:6px}.schedule-instructor-metrics>div{gap:3px}.schedule-stats{margin-bottom:6px}.schedule-section-meta{padding-top:6px}.schedule-instructor h4{font-size:15px}.schedule-section-action{margin-top:6px}
.schedule-calendar-scroll{overflow:visible;max-height:none;min-width:0}.schedule-calendar{width:100%;min-width:0}.schedule-day-heading{padding:10px 2px;font-size:11px;position:static}.schedule-time-axis{position:relative;left:auto}.schedule-time-axis span{font-size:9px;left:3px}
.schedule-event{padding:5px;gap:2px;font-size:10px}.schedule-event strong{font-size:11px}.schedule-event>span,.schedule-event>a{flex-shrink:0}.schedule-event>a{padding-right:15px}.schedule-event-cap{position:absolute;top:3px;right:3px;min-height:0}.schedule-event .schedule-event-remove{width:17px;height:17px;line-height:14px;font-size:16px}.schedule-event>.schedule-campus{position:static;align-self:flex-end;margin:3px 0 0 auto;padding:1px 3px;font-size:9px;flex-shrink:0}
@media(max-width:600px){.schedule-day-heading{font-size:9px;overflow-wrap:anywhere}.schedule-event{padding:3px;font-size:9px}.schedule-event strong{font-size:9px}.schedule-event>a{padding-right:0;padding-top:16px}.schedule-event .schedule-event-remove{width:15px;height:15px}.schedule-time-axis span{font-size:8px}}
.schedule-semester-overview>summary{cursor:pointer;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:0;list-style:none}.schedule-semester-overview>summary::before{content:'▸';color:var(--gold)}.schedule-semester-overview[open]>summary::before{content:'▾'}.schedule-semester-overview>summary strong{margin-right:auto}.schedule-semester-overview[open]>.schedule-overview-grid{margin-top:12px}.schedule-credit-inputs small{color:var(--muted);font-size:11px}
/* Let statistics sit beside the meeting block instead of leaving a blank row. */
.schedule-instructor-metrics{clear:none;padding-top:8px}.schedule-instructor-metrics>div+div{padding-left:6px}.schedule-instructor-metrics strong{font-size:16px}.schedule-section .schedule-history-empty{padding-bottom:4px}
.schedule-section-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.schedule-section-meta>.schedule-campus{flex-shrink:0;margin:0 0 0 auto;font-size:9px;padding:2px 4px}
.schedule-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.schedule-search-heading label{color:var(--muted);font-size:14px}.schedule-search-heading button{padding:5px 10px;font-size:12px}.schedule-search-heading button:disabled{opacity:.45;cursor:default}
.schedule-search-row{display:flex;align-items:stretch;gap:10px}.schedule-search-row input{flex:1;min-width:0}.schedule-search-row>button{flex-shrink:0;white-space:nowrap;padding:8px 14px}.schedule-search-row>button:disabled{opacity:.45;cursor:default}
/* Clip the calendar's header and grid to its rounded outline without adding scrollbars. */
.schedule-calendar-scroll{overflow:clip;border-radius:14px;isolation:isolate}
.schedule-section-meta{justify-content:flex-start;gap:6px}.schedule-section-meta>.schedule-campus{margin:0;flex-shrink:0}
.schedule-saved-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:26px;margin-bottom:8px}.schedule-saved-heading h3{font-size:16px;margin:0;line-height:1.2}.schedule-saved-heading a{color:var(--gold2);text-decoration:none}.schedule-saved-heading a:hover{text-decoration:underline}
.schedule-card-credits{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap}.schedule-card-credits input{width:52px;padding:4px 5px;border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--text);font-size:12px}
.schedule-saved-card .schedule-meeting-corner{margin-right:0}.schedule-saved-card .schedule-instructor h4{font-size:14px}.schedule-selected{gap:10px;margin-top:16px}.schedule-saved-card .schedule-instructor-metrics{padding-top:6px}.schedule-saved-card .schedule-instructor-metrics strong{font-size:15px}.schedule-saved-card .schedule-stats{margin-bottom:4px}.schedule-overview-note{font-size:12px;color:var(--muted);margin:10px 0 0}
/* Course groups, section filters, and compact three-line calendar blocks. */
.schedule-card-action{position:absolute;right:6px;top:6px;width:23px;height:23px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--gold2);font-size:22px;line-height:18px;padding:0;cursor:pointer}.schedule-card-action:hover{background:var(--gold);color:var(--bg)}.schedule-card-action:focus-visible{outline:2px solid var(--gold)}
.schedule-section .schedule-meeting-corner{margin-right:23px}.schedule-selected{display:block}.schedule-course-group{margin:12px 0;border:1px solid var(--line);border-left:3px solid hsl(var(--course-hue) 45% 58%);border-radius:12px;padding:12px;background:var(--panel)}.schedule-course-group .schedule-saved-heading{padding-right:0;margin-bottom:10px}.schedule-course-components{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:8px}.schedule-course-components .schedule-section{margin:0}
.schedule-card-credits input{appearance:textfield;background:transparent;border:1px solid transparent;border-bottom-color:#cfb99155;border-radius:0;font-weight:600;text-align:center;width:43px;padding:2px}.schedule-card-credits input:hover,.schedule-card-credits input:focus{border-color:var(--gold);border-radius:4px;outline:none}.schedule-card-credits input::-webkit-inner-spin-button{appearance:none}
.schedule-instructor-metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:7px}.schedule-instructor-metrics>div:nth-child(3){border-left:0;padding-left:0}.schedule-instructor-metrics span{font-size:9px}
.schedule-event{gap:2px;padding:5px}.schedule-event-line{flex-shrink:0;overflow-wrap:anywhere}.schedule-event-line:first-of-type{padding-right:16px}.schedule-event-line .schedule-campus{position:static;margin:0 0 0 3px;padding:1px 3px;font-size:9px;vertical-align:baseline}.schedule-event-line strong{font-size:10px}
.schedule-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:15px}.schedule-grade-distribution{display:flex;gap:14px;align-items:center;margin-top:20px}.schedule-grade-pie{width:74px;height:74px;border-radius:50%;flex-shrink:0}.schedule-grade-distribution strong{font-size:12px}.schedule-grade-legend{display:flex;flex-wrap:wrap;gap:5px 10px;margin:7px 0;font-size:11px;color:var(--muted)}.schedule-grade-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:4px}.schedule-grade-distribution small{font-size:10px;color:var(--muted)}
.schedule-section-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0}.schedule-section-filters fieldset{margin:0;padding:7px 10px;border:1px solid var(--line);border-radius:8px;display:flex;flex-wrap:wrap;gap:8px}.schedule-section-filters legend,.schedule-section-filters>label{font-size:12px;color:var(--muted)}.schedule-section-filters fieldset label{display:flex;align-items:center;gap:3px;font-size:12px}.schedule-section-filters>label{display:grid;gap:5px}.schedule-section-filters input[type=time]{background:var(--panel);border:1px solid var(--line);border-radius:6px;color:var(--text);padding:7px;color-scheme:dark}.schedule-section-filters small{flex-basis:100%;font-size:11px;color:var(--muted)}.schedule-section-filters input[type=checkbox]{accent-color:var(--gold)}
@media(max-width:600px){.schedule-event-line:first-of-type{padding-top:15px;padding-right:0}.schedule-grade-distribution{gap:10px}.schedule-section-filters{gap:8px}}
.schedule-event-cap+.schedule-event-line{padding-right:16px}@media(max-width:600px){.schedule-event-cap+.schedule-event-line{padding-right:0;padding-top:15px}}
/* Compact saved courses: full-width section rows keep instructor metrics readable. */
.schedule-course-group{padding:9px 11px;margin:8px 0}
.schedule-course-group .schedule-saved-heading{margin-bottom:6px}
.schedule-course-components{grid-template-columns:1fr;gap:0}
.schedule-course-components .schedule-section{display:grid;grid-template-columns:minmax(0,1fr) 150px;column-gap:16px;padding:8px 28px 8px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.schedule-saved-card .schedule-meeting-corner{float:none;grid-column:2;grid-row:1 / span 2;width:auto;margin:0!important;align-self:center}
.schedule-saved-card .schedule-stats{grid-column:1;grid-row:1;margin:0;min-width:0}
.schedule-saved-card .schedule-instructor-metrics{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:4px;gap:6px}
.schedule-saved-card .schedule-instructor-metrics>div{border:0;padding-left:0}
.schedule-saved-card .schedule-instructor-metrics strong{font-size:14px}
.schedule-saved-card .schedule-section-meta{grid-column:1;grid-row:2;border:0;padding-top:4px;font-size:10px}
.schedule-saved-card .schedule-conflict{grid-column:1 / -1}
.schedule-saved-card .schedule-history-empty{margin:3px 0;padding:0}
.schedule-saved-card .schedule-meeting-badge strong{margin-top:4px;font-size:11px}
.schedule-overview-panel{padding:12px}
.schedule-overview-panel h3{margin-bottom:10px}
.schedule-overview-metrics strong{font-size:21px}
.schedule-overview-note+.schedule-overview-grid{margin-top:10px}
@media(max-width:600px){.schedule-course-components .schedule-section{grid-template-columns:minmax(0,1fr) 112px;column-gap:8px}.schedule-saved-card .schedule-instructor-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-saved-card .schedule-instructor-heading{flex-wrap:wrap}.schedule-saved-card .schedule-day-strip{gap:2px}.schedule-saved-card .schedule-day-strip span{min-width:17px;height:19px}}
/* Place saved course groups beside each other when their available width permits. */
.schedule-selected{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:10px;align-items:start}
.schedule-selected .schedule-course-group{margin:0;min-width:0;container-type:inline-size}
@container (max-width:620px){
 .schedule-course-components .schedule-section{grid-template-columns:minmax(0,1fr) 112px;column-gap:8px}
 .schedule-saved-card .schedule-instructor-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .schedule-saved-card .schedule-instructor-heading{flex-wrap:wrap}
 .schedule-saved-card .schedule-day-strip{gap:2px}
 .schedule-saved-card .schedule-day-strip span{min-width:17px;height:19px}
}
/* Stack course cards independently so taller neighbors do not leave row gaps. */
.schedule-selected{display:block;columns:460px;column-gap:10px}
.schedule-selected .schedule-course-group,.schedule-selected>.schedule-section{display:inline-block;vertical-align:top;box-sizing:border-box;width:100%;break-inside:avoid;margin:0 0 10px}

.semester-range-controls{display:grid;gap:7px;margin-top:10px}.semester-range-controls label{display:grid;grid-template-columns:45px minmax(0,1fr);align-items:center;gap:6px;color:var(--muted)}.semester-range-controls select{width:100%;min-width:0;padding:5px;border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--text);font:inherit}.schedule-history-filter{font-size:12px;color:var(--gold2);margin:10px 0 0}

.semester-range-inline{display:flex;align-items:center;gap:3px;margin:6px 0;color:var(--muted)}.semester-range-inline input{width:0;flex:1;min-width:0;padding:3px 0;background:transparent;border:1px solid transparent;border-radius:3px;color:var(--muted);font:inherit}.semester-range-inline input:hover,.semester-range-inline input:focus{border-color:var(--line);outline:none;color:var(--text)}.semester-range-inline input[aria-invalid=true]{border-color:#e06359}#semesterRangeError{color:#f2948c;font-size:11px}

.semester-summary .semester-range-display{display:block;margin:6px 0;padding:0;border:0;background:none;color:var(--muted);font:inherit;text-align:left;cursor:pointer}.semester-range-display:hover{color:var(--text)}.semester-range-display:focus-visible{outline:1px solid var(--gold);outline-offset:3px}.semester-range-display[hidden],.semester-range-inline[hidden]{display:none}.semester-range-inline{gap:6px}.semester-range-inline input{padding:4px 3px;border-color:var(--line)}

/* Give editable terms room for the complete name and the suggestion arrow. */

#semesterSummaryContent:has(.semester-range-inline:not([hidden])){padding-right:0}
.semester-range-inline{gap:2px}.semester-range-inline input{box-sizing:border-box;min-width:0;font-size:12px;padding:3px 0}

/* Prominent section-type labels distinguish components within the same course. */
.schedule-type-badge{display:inline-block;vertical-align:baseline;padding:3px 7px;margin-right:4px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-weight:750;line-height:1.15;letter-spacing:.2px}


.schedule-type-lecture{background:#393222;border-color:#a99462;color:#ffe3a3}
.schedule-type-lab{background:#193d40;border-color:#518f94;color:#b8f3ed}
.schedule-type-recitation{background:#34304c;border-color:#9382ba;color:#e0d2ff}
.schedule-saved-card .schedule-section-meta{font-size:11px;padding-top:6px}
.schedule-event .schedule-type-badge{font-size:11px;padding:2px 4px;margin-right:2px}
@media(max-width:600px){.schedule-event .schedule-type-badge{font-size:10px;padding:2px 3px}}

.schedule-type-heading{margin-bottom:5px}.schedule-type-heading .schedule-type-badge{margin-right:0}

.schedule-section>.schedule-type-heading{position:absolute;top:6px;right:35px;margin:0;z-index:1}.schedule-section .schedule-meeting-corner{padding-top:29px}

.schedule-event{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;transform-origin:center;}
@media(hover:hover){.schedule-event:hover{transform:scale(1.035);z-index:8;box-shadow:0 4px 16px #0008}}
.schedule-event:focus-visible{outline:2px solid var(--gold);outline-offset:1px;z-index:8}
.schedule-section{scroll-margin:90px}
@media(prefers-reduced-motion:reduce){.schedule-event{transition:none}.schedule-event:hover{transform:none}}

.schedule-course-arrival{position:relative;z-index:9;animation:course-arrival .48s ease-out}
@keyframes course-arrival{0%{transform:scale(1);box-shadow:0 0 0 1px transparent}25%{transform:scale(1.012);box-shadow:0 0 0 1px var(--gold)}100%{transform:scale(1);box-shadow:0 0 0 1px transparent}}
@media(prefers-reduced-motion:reduce){.schedule-course-arrival{animation:none;outline:2px solid var(--gold)}}

body.home-no-selection{-webkit-user-select:none;user-select:none}body.home-no-selection input,body.home-no-selection textarea,body.home-no-selection [contenteditable="true"]{-webkit-user-select:text;user-select:text}

.schedule-undo{display:flex;align-items:center;gap:10px;margin-top:8px;color:var(--muted);font-size:12px}.schedule-undo button{padding:4px 10px;color:var(--gold2)}

.schedule-course-heading{position:relative;padding-right:36px}.schedule-course-heading>#scheduleClearCourse{top:0;right:0}

#scheduleCalendarSlot{border:1px solid var(--border,#394149);border-radius:10px;overflow:hidden;margin:16px 0}
.schedule-preview-old{opacity:.25;pointer-events:none}.schedule-preview-new{outline:2px dashed var(--gold);outline-offset:-2px}.schedule-preview-new .schedule-event-remove,.schedule-preview-old .schedule-event-remove{display:none}
.schedule-saved-card>[data-swap]{margin-top:10px}
.schedule-event-change{width:22px;height:22px;padding:0;border:1px solid #ffffff70;border-radius:4px;background:#111a;color:#fff;cursor:pointer;line-height:18px;font-size:17px;flex-shrink:0}.schedule-event-change:hover{background:#665535}.schedule-event-change:focus-visible{outline:2px solid var(--gold)}
.schedule-event-cap{position:static;justify-content:flex-end;flex-wrap:wrap;gap:3px;min-height:22px}.schedule-event-cap+.schedule-event-line{padding-right:0;padding-top:0}.schedule-event{cursor:default}

/* Section alternatives live in the calendar at their meeting times. */
.schedule-event.schedule-alternative{opacity:.48;border:1px dashed var(--gold)}
.schedule-event.schedule-alternative:hover,.schedule-event.schedule-alternative:focus-within,.schedule-event.schedule-preview-new{opacity:1;transform:none}
.schedule-event.schedule-preview-old{opacity:.65;pointer-events:auto}
.schedule-preview-old .schedule-event-remove{display:block}
.schedule-option-status{font-size:10px;display:block}.schedule-alternative .subtle-action{padding:3px;font-size:10px;white-space:normal}
.schedule-untimed-options:empty{display:none}.schedule-untimed-options{display:flex;gap:8px;padding:8px;flex-wrap:wrap}.schedule-untimed-options>div{border:1px dashed var(--gold);border-radius:6px;padding:8px;display:grid;gap:5px}
.schedule-event .schedule-event-change{width:17px;height:17px;line-height:14px;font-size:16px}
@media(max-width:600px){.schedule-event .schedule-event-change{width:15px;height:15px}}

.schedule-calendar-scroll.schedule-calendar-swapping{overflow:clip;max-height:none}.schedule-event.schedule-alternative{cursor:pointer}

.schedule-exit-alternatives{position:sticky;top:0;left:0;z-index:10;display:flex;justify-content:flex-end;height:36px;pointer-events:none}.schedule-exit-alternatives button{pointer-events:auto;align-self:flex-start;margin:3px 6px;background:var(--panel);white-space:nowrap}.schedule-alternative[data-jump-crn]{cursor:pointer}.schedule-alternative[data-jump-crn]:focus-visible{outline:2px solid var(--gold)}

.schedule-event.schedule-preview-old{opacity:1;outline:2px solid var(--gold);outline-offset:-2px}.schedule-alternatives-source{color:var(--gold);font-weight:600}.schedule-exit-on-section{white-space:normal;padding:3px;font-size:10px}

.schedule-course-heading{flex-wrap:wrap;padding-right:20px}.schedule-course-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.schedule-course-metrics>div{display:flex;flex-direction:column;gap:5px}.schedule-course-metrics span{font-size:11px;color:var(--muted)}.schedule-course-metrics strong{font-size:21px;font-variant-numeric:tabular-nums}.schedule-course-metrics>div+div{border-left:1px solid var(--line);padding-left:14px}@media(max-width:600px){.schedule-course-metrics{width:100%;gap:10px}.schedule-course-metrics strong{font-size:18px}}

.schedule-calendar-actions{display:flex;justify-content:flex-end;margin:12px 0 -6px}


.schedule-section .schedule-instructor-heading{flex-wrap:wrap}
 .schedule-course-history{margin-top:8px;border-top:1px solid var(--line);padding-top:6px}
.schedule-history-heading{font-size:11px;color:var(--muted)}
.schedule-history-values{display:flex;flex-wrap:wrap;gap:5px 18px;margin:5px 0}
.schedule-history-values>div{display:grid;gap:1px}
.schedule-history-values span{font-size:10px;color:var(--muted)}
.schedule-history-values strong{font-size:15px}
.schedule-history-values .schedule-overall-score{margin-inline-start:auto;border-inline-start:1px solid var(--line);padding-inline-start:12px}


.schedule-column-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-bottom:10px}
.schedule-sort{position:relative;display:inline-flex;align-items:center;max-width:100%;color:var(--muted)}
.schedule-sort svg{position:absolute;left:9px;pointer-events:none}
.schedule-sort::after{content:"";position:absolute;right:11px;width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);pointer-events:none}
.schedule-sort select{appearance:none;max-width:100%;min-height:34px;padding:5px 26px 5px 31px;background:var(--panel2);border:1px solid var(--line);border-radius:8px;color:var(--text);font:inherit;font-size:12px;cursor:pointer;color-scheme:dark}
.schedule-sort:hover select{border-color:var(--muted)}
.schedule-sort select:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
@media(pointer:coarse){.schedule-sort select{min-height:44px}}

.schedule-search-row #scheduleCampus{width:auto;max-width:45%;flex:none;color-scheme:dark}

.schedule-return{padding-top:16px;margin-bottom:16px}.schedule-return button{color:var(--gold2)}

.course-availability-warning{border-color:#a64d49;border-left-color:#ff7b72;background:#321c20;color:#ffb4ae}.course-availability-warning strong{color:#ffc6c1}

.schedule-freshness{margin:7px 0 0;color:var(--muted);font-size:12px}

.schedule-term-picker{position:relative;display:inline-flex;align-items:center;color:var(--gold2);font-size:14px}
.schedule-term-picker select{appearance:none;min-width:0;max-width:100%;padding:6px 23px 6px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--gold2);font:inherit;font-weight:500;cursor:pointer;color-scheme:dark}
.schedule-term-picker::after{content:"";position:absolute;right:9px;width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);pointer-events:none}
.schedule-term-picker select:hover{background:var(--panel2);border-color:var(--line)}
.schedule-term-picker option{background:var(--panel2);color:var(--text)}
.schedule-intro{flex-wrap:wrap;gap:12px}
.schedule-term-picker select:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}

.schedule-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}

.schedule-time-block{position:absolute;left:2px;width:calc(100% - 4px);display:flex;flex-direction:column;gap:4px;min-width:0}
.schedule-time-block>.schedule-event{position:relative;flex:1 0 auto;min-height:max-content;width:100%}
.schedule-time-block-shared{padding:4px;border:1px solid hsl(var(--event-hue) 45% 58%);border-radius:8px;background:hsl(var(--event-hue) 26% 16%)}
.schedule-shared-time{display:flex;flex-direction:column;gap:2px;padding:3px 2px 5px;color:#fff;font-size:10px;overflow-wrap:anywhere;flex-shrink:0}
.schedule-shared-time span{color:var(--muted);font-size:9px}
.schedule-time-block-shared>.schedule-event:hover{transform:none}
