/* A single class chooser and a homework section for each period. */
.choose-classes { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px; border-radius: 10px; background: var(--purple); color: #fff; font-size: 14px; font-weight: 600; }
.choose-classes:hover { background: var(--purple-dark); }
.choose-classes svg { width: 18px; height: 18px; }
.classes-summary { margin-top: 12px; font-size: 14px; text-align: center; color: var(--muted); }
.classes-side-hint { margin-top: 28px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.board-layout { display: block; margin-top: 26px; }
.board-controls { padding: 16px 18px; }
.filter-help { font-size: 14px; }
.section-heading { margin-bottom: 14px; }
#results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.homework-class { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.homework-class-heading { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid #eeedf5; }
.class-number { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: #eeebff; color: var(--purple); font-size: 16px; font-weight: 600; }
.homework-class-heading > div { flex: 1; min-width: 0; }
.class-kicker { display: block; font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 3px; }
.homework-class-heading h3 { font-size: 19px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.homework-class-heading p { font-size: 14px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.class-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px; border-radius: 8px; color: var(--purple); font-size: 14px; }
.class-add:hover { background: #f2efff; }
.class-add svg { width: 17px; height: 17px; }
.class-add span { display: none; }
.class-empty { padding: 28px 20px 32px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.class-homework .assignment-card { border: 0; border-radius: 0; box-shadow: none; padding: 20px; }
.class-homework .assignment-card + .assignment-card { border-top: 1px solid #eeedf5; }
.class-homework .assignment-meta, .class-homework .course-name { display: none; }
.class-homework .assignment-title { font-size: 16px; }
.class-homework .assignment-description { font-size: 14px; margin-left: 29px; }
.class-homework .assignment-footer { border: 0; padding-top: 0; margin-top: 12px; }
.class-homework .recorded-date { display: none; }
.class-homework .task { padding-top: 0; }
#classes-dialog { width: min(620px, calc(100vw - 32px)); }
.classes-intro { color: var(--muted); font-size: 14px; line-height: 1.7; margin: -8px 0 18px; }
.classes-search { display: flex; align-items: center; gap: 10px; border: 1px solid #dcd9e9; border-radius: 9px; padding: 10px 12px; margin-bottom: 10px; }
.classes-search svg { width: 18px; height: 18px; color: var(--muted); }
.classes-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 16px; }
.classes-search:focus-within { border-color: #9384ed; box-shadow: 0 0 0 3px #eeeaff; }
.classes-search input:focus-visible { outline: none; }
.class-choice { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: start; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid #eeedf5; }
.class-teacher-label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; }
.class-teacher-label .class-number { width: 30px; height: 30px; flex-basis: 30px; font-size: 14px; border-radius: 8px; }
.class-choice > select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #dcd9e9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; padding: 8px 10px; }
.class-scope { grid-column: 2; }
.class-scope summary { cursor: pointer; min-height: 30px; padding-top: 6px; color: var(--muted); font-size: 13px; }
.class-scope summary span { opacity: .8; }
.class-scope .form-grid { display: block; margin-top: 12px; }
.class-scope .form-field { font-size: 14px; margin-bottom: 12px; }
#classes-add-teacher { margin-top: 14px; font-size: 14px; }
#classes-form .dialog-actions { position: sticky; bottom: -28px; background: #fff; padding-bottom: 20px; margin-bottom: -20px; }
.assignment-details { border-top: 1px solid var(--line); margin-top: 18px; }
.assignment-details summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 14px 0; min-height: 44px; }
.assignment-details .form-field { margin-bottom: 14px; }
@media (min-width: 1440px) { .class-add span { display: inline; } }
@media (max-width: 1100px) { #results { grid-template-columns: 1fr; } .class-add span { display: inline; } }
@media (max-width: 720px) {
  .sidebar { padding-bottom: 18px; }
  .choose-classes { clear: both; }
  .classes-summary { margin-top: 8px; }
  .classes-side-hint { display: none; }
  .board-controls { margin-top: 20px; padding: 14px; }
  .homework-class-heading { padding: 17px; }
  .class-empty { padding: 22px 17px; }
  .class-homework .assignment-card { padding: 17px; }
  .class-homework .assignment-description { margin-left: 0; }
}
@media (max-width: 400px) {
  .class-choice { grid-template-columns: 1fr; gap: 6px; }
  .class-scope { grid-column: 1; }
  .class-add span { display: none; }
  #classes-form .dialog-actions { flex-wrap: wrap; }
}
