:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #19312d;
  background: #f6f9f8;
}
* { box-sizing: border-box; }
#course-picker { flex-basis: 100%; min-width: 0; margin: 0; padding: .75rem 1rem; border: 1px solid #d4e1dd; border-radius: .5rem; }
#course-options { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
#course-options label { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem 0; cursor: pointer; }
#course-options input { width: 1rem; height: 1rem; accent-color: #174c42; }
#course-picker small { display: block; margin-top: .5rem; color: #3d625a; }
body { margin: 0; }
main { width: min(100% - 2rem, 62rem); margin: 3rem auto; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.05em; margin: 0 0 1.75rem; }
h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
form, .summary {
  padding: 1.25rem;
  border: 1px solid #d4e1dd;
  background: #fff;
  border-radius: .8rem;
}
form { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input, select, button { font: inherit; padding: .6rem .8rem; border: 1px solid #a5bdb6; border-radius: .5rem; }
input { min-width: 0; }
button { cursor: pointer; font-weight: 600; background: #fff; color: #174c42; }
button[type="submit"] { color: #fff; background: #174c42; border-color: #174c42; }
button:disabled { cursor: wait; opacity: .65; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
#status { min-height: 1.5em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
li { border-top: 1px solid #e1eae7; padding: .8rem 0; }
li p { color: #3d625a; white-space: pre-line; }
p { margin: .3rem 0 0; line-height: 1.55; }
.input-view { margin-top: 2rem; }
.input-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.input-heading h2 { margin: 0; }
#input-status { min-height: 1.5em; margin: .65rem 0; }
#input-content:not([hidden]) { display: grid; gap: 1rem; }
.input-card { padding: 1.25rem; background: #fff; border: 1px solid #d4e1dd; border-radius: .8rem; }
.input-card h3 { margin: 0 0 .75rem; font-size: 1.075rem; }
.input-card h4 { margin: 1rem 0 .4rem; }
.muted { color: #3d625a; }
.task-list, #result { margin-top: 1rem; }
#source-info { margin: -1rem 0 1rem; }
.completion-form { margin-top: .5rem; }
.completion-form summary { cursor: pointer; color: #174c42; }
.completion-form form { margin-top: .5rem; padding: .75rem; gap: .75rem; }
.completion-form input[type=number] { width: 6rem; }
.completion-form select { max-width: 100%; }
.feedback-result:not(:empty) { margin: .75rem 0; padding: .75rem; background: #f6f9f8; border-radius: .5rem; }
.feedback-result button { margin-top: .5rem; }
.calendar-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; margin: .7rem 0; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.calendar-legend span { border-radius: .35rem; padding: .2rem .45rem; font-size: .875rem; }
.class-key, .study-key { border: 1px solid #81938e; }
.study-key { border-style: dashed; }
#course-legend:not(:empty) { margin: 0 0 .7rem; }
.course-chip, .calendar-event {
  background: hsl(var(--course-hue, 215) 63% 91%);
  color: hsl(var(--course-hue, 215) 54% 24%);
}
.task-course { display: inline-block; border-radius: .35rem; padding: .15rem .45rem; margin-inline-start: .5rem; font-size: .875rem; }
.calendar-scroll { overflow: auto; background: #fff; border: 1px solid #d4e1dd; border-radius: .75rem; max-height: 42rem; }
.week-calendar { display: grid; grid-template-columns: 4rem repeat(7, minmax(7.1rem, 1fr)); min-width: 54rem; }
.calendar-header { position: sticky; top: 0; z-index: 2; padding: .65rem .35rem; background: #f6f9f8;
  border-bottom: 1px solid #d4e1dd; text-align: center; font-size: .875rem; font-weight: 650; }
.calendar-times { color: #3d625a; text-align: center; }
.calendar-hour { height: var(--calendar-hour); padding-top: .15rem; font-size: .875rem; }
.calendar-day { position: relative; border-left: 1px solid #e1eae7;
  background: repeating-linear-gradient(to bottom, #e1eae7 0 1px, transparent 1px var(--calendar-hour)); }
.calendar-event { position: absolute; overflow: hidden; padding: 0 .3rem; border-radius: .3rem;
  border-left: 3px solid; display: flex; flex-direction: column; justify-content: safe center; font-size: .875rem; line-height: 1.1; }
.calendar-event > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 0 0 auto; }
.study-event { border: 1px dashed currentColor; border-left-width: 3px; }
.course-settings { border-top: 1px solid #e1eae7; padding: .75rem 0; }
.course-settings summary { cursor: pointer; font-weight: 600; }
.summary-periods li { display: grid; gap: .2rem; }
.summary-period strong { color: #174c42; }
.summary-issues, .summary-pending { margin-top: .4rem; color: #3d625a; font-size: .925rem; }
.summary-issues summary, .summary-pending summary { cursor: pointer; }
.summary-issues li, .summary-pending li { padding: .35rem 0; border-top: 0; }
.summary-pending { border-top: 1px solid #e1eae7; padding-top: .8rem; font-size: 1rem; }
.summary-pending summary { font-weight: 600; color: #8a4b12; }
.summary-text { white-space: pre-line; }
#decision { border-inline-start: .35rem solid #a6611d; }
#decision h3, #decision .actions { margin-top: 1.25rem; }
#decision details { margin: .5rem 0 1rem; }
#decision summary { cursor: pointer; }
#decision pre { overflow-x: auto; padding: .75rem; background: #f6f9f8; }
