@charset "UTF-8";
:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#18212f;
  --muted:#667085;
  --line:#d9e0ea;
  --brand:#1f5eff;
  --danger:#d92d20;
  --danger-bg:#fff1f0;
  --ok:#067647;
  --ok-bg:#ecfdf3;
  --warn:#b54708;
  --warn-bg:#fffaeb;
  --min-slot-height: 48px;
  --title-padding-left: 15px;
  --title-padding-right: 15px;
}
*{box-sizing:border-box;line-height:1.2;margin:0}
body{
  margin:0;
  font-family:Nexa,Roboto,Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  user-select: none;
}
button,input,select{font:inherit;-webkit-app-region:no-drag}
input {user-select: text;}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{
  outline:3px solid rgba(31,94,255,.22);
  outline-offset:2px;
}
header{
  background:#0e1b3d;
  color:white;
  padding:4px 0px;
  padding-left: var(--title-padding-left);
  padding-right: var(--title-padding-right);
  -webkit-app-region: drag;
  width: 100%;
  height: 50px;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  box-sizing: border-box;
}
header.invisible > *{
  display: none;
}
header h1{font-size:20px;margin:0}
header p{margin:3px 0 0;color:#cbd5e1;font-size:13px}
main{
  display:grid;
  grid-template-columns:minmax(350px,460px) minmax(700px,1fr);
  gap:16px;
  padding:16px;
  height: calc(100vh - 50px);
}
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 4px 18px rgba(16,24,40,.05);
  overflow:hidden;
}
.panel-head{padding:14px 16px;border-bottom:1px solid var(--line)}
.panel-body{padding:14px 16px;height: calc(100vh - 130px);}
#controls{height:100%;display: grid;grid-template-rows: max-content max-content max-content max-content auto;}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.drop{
  border:2px dashed #9fb4dd;
  border-radius:12px;
  padding:20px;
  text-align:center;
  background:#f8fbff;
  cursor:pointer;
}
.drop.drag{background:#eaf1ff;border-color:var(--brand)}
.drop strong{display:block;margin-bottom:5px}
.csv-status{
  margin-top:9px;
  font-size:12px;
  color:var(--muted);
}
.csv-status.loading{color:var(--brand)}
.csv-status.ok{color:var(--ok)}
.csv-status.error{color:var(--danger)}
.btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  padding:9px 12px;
  cursor:pointer;
}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.danger{color:var(--danger)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.banner{background:#f59e0b;color:#172033;border-color:#f59e0b;font-weight:800}
.btn.close::before{content:"✕"}
.btn.close{background: #f50b3c;color: #ffffff;border-color: #9a0000;font-size: 30px;padding: 0px;width: 39px;height: 39px;font-weight:800;margin-right: -10px;}
.save-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
  margin-left:auto;
}
.save-slot{
  min-width:155px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:9px;
  background:rgba(255,255,255,.1);
  color:white;
}
.save-slot option{
  color:#172033;
  background:#fff;
}
.save-name-input{
  width:180px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:9px;
  background:rgba(255,255,255,.1);
  color:white;
}
.rename-slot-input {
  width: 180px;
}

.rename-slot-input[hidden] {
  display: none !important;
}
.save-name-input::placeholder{color:#cbd5e1}
.save-status{
  color:#cbd5e1;
  font-size:12px;
  white-space:nowrap;
}
.banner-tools{
  display:flex;
  align-items: flex-start;
  gap:7px;
  flex-wrap:wrap;
  height: 39.2px;
}
.usermenu {
  height: 48px;
  margin-top: -4px;
  padding: 0px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-left: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #172033;
  background: linear-gradient(270deg, white 0px,white 46px, #f59e0b 76px);
  border-color: #f59e0b;
  display: none;
}
.usermenu > div {
  height: 46px;
  width: 46px;
  background-size: cover;
  background-position: top center;
  border-radius: 7px;
}
.usermenu > span:nth-child(2) {
  font-size: 32px;
  margin-top: -2px;
  width: 15px;
}
.banner-term{
  width:92px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:9px;
  background:rgba(255,255,255,.1);
  color:white;
}
.banner-term::placeholder{color:#cbd5e1}
.banner-dialog{
  border:0;
  border-radius:14px;
  padding:0;
  width:min(520px,calc(100vw - 32px));
  box-shadow:0 22px 70px rgba(0,0,0,.28);
}
.banner-dialog::backdrop{background:rgba(15,23,42,.62)}
.banner-dialog-body{padding:20px}
.banner-dialog h2{margin:0 0 8px;font-size:19px}
.banner-dialog p{color:var(--muted);font-size:13px;line-height:1.5}
.banner-crns{
  margin:12px 0;
  padding:10px;
  max-height:160px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f8fafc;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:12px;
  word-break:break-word;
}
.banner-warning{
  padding:10px;
  border:1px solid #fedf89;
  border-radius:9px;
  background:#fffaeb;
  color:#7a2e0e;
  font-size:12px;
  line-height:1.45;
}
input[type="search"]{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  height: 43px;
}
.filter-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(125px,.7fr) minmax(155px,.9fr);
  gap:8px;
  margin-top:8px;
}
.filter-row select{width:100%}
.stats{font-size:12px;color:var(--muted);margin-top:9px}
.small{font-size:12px;color:var(--muted)}
.badge{
  display:inline-block;
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
  background:#eef3ff;
  color:#264c9b;
  margin:2px 4px 2px 0;
}
.badge.aux{background:#f4ebff;color:#6941c6}
.badge.selected{background:#eaf1ff;color:#1747bf}
.course-list{
  overflow:auto;
  border-top:1px solid var(--line);
  margin:12px -16px -14px;
  height: 100%;
}
.course-group{
  border-bottom:1px solid #edf0f4;
  background:#fff;
}
.course-group[open]{background:#fbfcff}
.course-group summary{
  cursor:pointer;
  list-style:none;
  padding:13px 16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.course-group summary::-webkit-details-marker{display:none}
.course-group summary:hover{background:#fafcff}
.course-heading{min-width:0}
.course-code{font-size:14px;font-weight:800}
.course-name{
  font-size:12px;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:2px;
}
.course-summary-side{text-align:right}
.course-credit{font-size:12px;font-weight:700}
.section-count{font-size:11px;color:var(--muted);margin-top:3px}
.course-fit-summary{
  margin-top:5px;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px;
  max-width:220px;
}
.course-major-pill{
  border-radius:999px;
  padding:3px 7px;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
  background:#d9d9d9;color:#101010;
}
.course-major-pill.faculty {background:#f1e3ff;color:#400050}
.course-major-pill.D {background: #ff0000;color: #ffffff;}
.course-major-pill.R {background:#ffdddd;color:#860000}
.course-major-pill.C {background:#fff0d6;color:#412800}
.course-major-pill.A {background:#d3f0ff;color:#00283c}
.course-major-pill.F {background:#d4ffd7;color:#00500b}
.course-major-pill.S {background:#ffd4f0;color:#390019}
.course-major-pill.S {background:#ffd4f0;color:#390019}
.course-major-pill.useless {background:#a40000;color:#ffffff}
.course-major-pill.requirement {border: 2px solid red;}
.requirement.creditneeded {background:#ffe3f0;color:#500023}
.course-credits-pill{
  border-radius:999px;
  padding:3px 7px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  background: #ffebd7;
  color: #7f3f00;
}
.course-credits-pill.ects{
  background:#f0f5ff;
  color: #0646eb;
}
.course-credits-pill.basic{
  background: #f0fff0;
  color: #017800;
}
.course-fit-pill{
  border-radius:999px;
  padding:3px 7px;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.course-fit-pill.ok{background:var(--ok-bg);color:var(--ok)}
.course-fit-pill.bad{background:var(--danger-bg);color:var(--danger)}
.course-fit-pill.unknown{background:var(--warn-bg);color:var(--warn)}
.expand-label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:5px;
  color:var(--brand);
  font-size:11px;
  font-weight:700;
}
.expand-label::after{content:"▾";transition:transform .15s ease}
.course-group[open] .expand-label::after{transform:rotate(180deg)}
.section-list{
  border-top:1px solid #e8edf3;
  padding:7px 10px 10px;
}
.lecture-heading,
.auxiliary-heading{
  margin:10px 2px 6px;
  font-size:11px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.lecture-heading:first-child{margin-top:4px}
.auxiliary-group{
  margin-top:10px;
  padding-top:8px;
  border-top:1px dashed #d8deea;
}
.auxiliary-options{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.section-option.compact{
  flex:1 1 230px;
  min-width:210px;
  margin-top:0;
}
.section-option{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:8px;
  padding:10px;
  margin-top:5px;
  border:1px solid #e5eaf1;
  border-radius:10px;
  background:#fff;
}
.section-option.selected-section{border-color:#94b3ff;background:#f7f9ff}
.section-option.conflicting-section{border-color:#fda29b;background:#fffafa}
.section-option input{margin-top:3px}
.section-main{min-width:0}
.section-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.section-title{font-weight:750;font-size:13px}
.section-meta{
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  margin-top:4px;
}
.fit-status{
  border-radius:999px;
  padding:3px 7px;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.fit-status.ok{background:var(--ok-bg);color:var(--ok)}
.fit-status.bad{background:var(--danger-bg);color:var(--danger)}
.fit-status.unknown{background:var(--warn-bg);color:var(--warn)}
.fit-detail{font-size:11px;margin-top:5px}
.fit-detail.bad{color:var(--danger)}
.fit-detail.ok{color:var(--ok)}
.fit-detail.unknown{color:var(--warn)}
.conflict-note {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 200px;
}
.conflict-note > div{
  background:var(--danger-bg);
  color:#912018;
  border:1px solid #fecdca;
  padding:9px 11px;
  border-radius:8px;
  margin-top:10px;
  font-size:13px;
}
.conflict-note.show{display:block}
.selected-summary-wrap{padding:12px 14px 0}
.selected-summary{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fbfcff;
  overflow:hidden;
}
.selected-summary summary{
  cursor:pointer;
  list-style:none;
  padding:11px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:700;
}
.selected-summary summary::-webkit-details-marker{display:none}
.selected-summary summary::after{
  content:"▾";
  color:var(--muted);
  transition:transform .15s ease;
}
.selected-summary[open] summary::after{transform:rotate(180deg)}
.selected-summary-list{border-top:1px solid var(--line);padding:5px 13px}
.selected-summary-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #edf0f4;
}
.selected-summary-item:last-child{border-bottom:0}
.selected-summary-code{font-weight:700;font-size:13px}
.selected-summary-name,.selected-summary-note{font-size:11px;color:var(--muted);margin-top:2px}
.selected-summary-credit{font-size:12px;font-weight:700;white-space:nowrap}
.selected-summary-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.remove-course-btn{
  width:23px;
  height:23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:50%;
  padding:0;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.remove-course-btn:hover{
  background:var(--danger-bg);
  color:var(--danger);
}
.selected-summary-empty{padding:12px 0;color:var(--muted);font-size:12px}
.schedule-wrap{overflow: hidden;padding:14px;}
.schedule-wrap > div {overflow: auto;height: 100%;border-radius: 10px;}
.schedule{
  min-width:850px;
  display:grid;
  grid-template-rows: 42px 1fr;
  grid-template-columns:72px repeat(5,minmax(150px,1fr));
  position:relative;
  --total-slots: 14;
  --dynamic-slot-height: calc(100% / var(--total-slots));
  --slot-height: max(var(--dynamic-slot-height), var(--min-slot-height));
  height: calc(var(--total-slots) * var(--slot-height));
}
.day-head,.time-head{
  height:42px;
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  background:#f9fafb;
  position:sticky;
  top:0;
  z-index:6;
}
.time-head{left:0;z-index:100}
.time-col{
  position: sticky;
  border-right:1px solid var(--line);
  background:#fbfcfe;
  z-index:3;
  height: 100%;
  left: 0;
  z-index: 99;
  display: grid;
  grid-template-rows: repeat(var(--total-slots), var(--slot-height));
  min-height: calc(var(--total-slots) * var(--min-slot-height));
}
.day-col{
  position:relative;
  border-right:1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    #fff,
    #fff calc(var(--slot-height) - 1px),
    #e8edf3 calc(var(--slot-height) - 1px),
    #e8edf3 var(--slot-height)
  );
  min-height: calc(var(--total-slots) * var(--min-slot-height));
}
.time-label{
  font-size:11px;
  color:var(--muted);
  text-align:center;
  border-bottom:1px solid #e8edf3;
  height: 100%;
  min-height: var(--min-slot-height);
}
.event{
  position:absolute;
  left:5px;
  right:5px;
  border-radius:8px;
  padding:6px 8px;
  font-size:11px;
  line-height:1.22;
  overflow:hidden;
  border-left:4px solid rgba(0,0,0,.24);
  box-shadow:0 2px 5px rgba(0,0,0,.12);
  z-index:4;
  cursor:pointer;
  top: calc((var(--row) * var(--slot-height)) + 5px);
  height: calc((var(--duration) * var(--slot-height)) - 10px);
}
.event:hover{filter:brightness(.97);transform:translateY(-1px)}
.event strong{display:block;font-size:12px;margin-bottom:2px}
.event.conflict{outline:3px solid var(--danger);z-index:5}
.empty{padding:40px;text-align:center;color:var(--muted)}
@media(max-width:1050px){
  main{grid-template-columns:1fr}
  .course-list{max-height:42vh}
}
@media(max-width:560px){
  .filter-row{grid-template-columns:1fr}
}
#attemptsdiv {
  --back: #0e1b3d;
  --fore: #24418c;
  margin-top: -6px;
  width: max-content;
  background: repeating-linear-gradient(45deg, var(--back) 0px, var(--back) 9px,var(--fore) 10px, var(--fore) 19px, var(--back) 20px);
  background-position-x: 1px;
  background-attachment: fixed;
  animation: backgroundscroll 0.7s linear infinite;
  z-index: revert-layer;
  margin-right: -100px;
}
#attemptsdiv > div {
  background: linear-gradient(90deg, var(--back) 0px, transparent 50px, transparent calc(100% - 15px), var(--back) calc(100% - 5px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 50px;
  padding-right: 100px;
  height: 50px;
}
@keyframes backgroundscroll {
  0% {
    background-position-x: calc(0.70710678118*40px);
  }
  100% {
    background-position-x: 0px;
  }
}
#attemptscontainer {
  display:flex;
  gap:5px;
}
#attemptscontainer > div {
  border:1px solid var(--line);
  border-radius: 15px;
  height: 30px;
  width: 30px;
  display: flex;
  color: white;
  transition: background-color 0.3s ease-in-out;
  animation: attemptappear 0.3s cubic-bezier(0, 1, 1, 1) forwards, attemptpending 1s ease-in-out infinite;
  align-items: center;
  justify-content: center;
}
@keyframes attemptappear {
  from {transform: scale(0);margin-right: -35px;}
  to {transform: scale(1);margin-left: 0px;}
}
@keyframes attemptpending {
  0% {opacity: 1;}
  50% {opacity: 0.5;}
  100% {opacity: 1;}
}
@keyframes attemptdisappear {
  from {transform: scale(1) translateX(0px);margin-right: 0px;}
  to {transform: scale(0) translateX(-70px);margin-right: -35px;}
}
@keyframes modalBG {
  from {background: rgba(0,0,0,0);}
  to {background: rgba(15,23,42,.62);}
}
@keyframes modalBGDisappear {
  from {background: rgba(15,23,42,.62);}
  to {background: rgba(0,0,0,0);}
}
@keyframes modalAppear {
  from {opacity: 0;transform: scale(0.8);}
  to {opacity: 1;transform: scale(1);}
}
@keyframes modalDisppear {
  from {opacity: 1;transform: scale(1);}
  to {opacity: 0;transform: translateY(50px);}
}
.modal {
  display: none;
  justify-content:center;
  align-items:center;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding: 10px;
  background: rgba(15,23,42,.62);
  border: none;
}
.modal > div {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 22px 70px rgba(0,0,0,.28);
  overflow:hidden;
  width: 90%;
  height: 90%;
  z-index: 999999;
}
.modal-header {
  background:#0e1b3d;
  color:white;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal > div > div {
  display: grid;
  grid-template-columns: max-content auto;
  gap: 10px;
  padding: 10px;
  height: calc(100% - 49px);
}
.modal > div > div > section {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow-y: auto;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar > button {
  text-align: left;
  border:1px solid var(--line);
  background: #f0f0f0;
  border-radius:9px;
  padding:9px 12px;
  cursor:pointer;
  display: grid;
  grid-template-columns: 20px auto;
  height: 40px;
  gap: 5px;
}
button.active {
  background: var(--brand);
  color: white;
}
.centeredbuttonmenu {
  display: flex;
  flex-direction: column;
}
.centeredbuttonmenu > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.settings {
  display: flex;
  flex-direction:column;
  gap: 10px;
}
.settings > * {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
}

.settingsSwitch {
  display: grid;
  grid-template-columns: auto max-content;
  align-items: center;
  gap: 20px;
}
.settingsSwitch > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
.settingsSwitch > input {
  height: 50px;
  width: 50px;
  margin-right: 50px;
}
.settingsSwitch > div > span:first-child, .settings > div > h3:first-child {
  font-weight: 800;
  font-size: 18px;
}
.explanationboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  width: 100%;
  align-items: start;
}
.explanation {
  display: flex;
  background: #ff71005e;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
}
.explanation > button {
  text-wrap: nowrap;
}
.explanation > div {
  display: flex;
  flex-direction: column;
}
.explanation > div > span:first-child {
  font-weight: 800;
}
.update-dialog{
  border:0;
  border-radius:14px;
  padding:0;
  width:min(470px,calc(100vw - 32px));
  box-shadow:0 22px 70px rgba(0,0,0,.28);
}
.update-dialog::backdrop{
  background:rgba(15,23,42,.62);
}
.update-dialog-body{
  padding:20px;
}
.update-dialog h2{
  margin:0 0 8px;
  font-size:19px;
}
.update-dialog p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.update-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px;
}
