:root {
  color-scheme: light;
  --ink: #223343; --ink-soft: #5b6873; --paper: #f6f5f0; --surface: #fff;
  --line: #dce2e3; --brand: #244d70; --brand-dark: #1a3b57; --brand-tint: #edf3f7;
  --teal: #26715c; --teal-tint: #eaf4ef; --gold: #a26b1d; --gold-tint: #fff5df;
  --danger: #a33442; --busy-bg: #e8ecee; --meeting-bg: #f1ede4;
  --office-bg: #eee6f5; --office-ink: #64407f;
  --danger-tint: #fff0f1;
  --radius: 14px; --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #e6edf2; --ink-soft: #a8b6c2; --paper: #141c23; --surface: #1d2731; --line: #34434f;
    --brand: #9ac5e7; --brand-dark: #c1e0f5; --brand-tint: #293d50; --teal: #91d4b9; --teal-tint: #253f36;
    --gold: #e4b76d; --gold-tint: #41351f; --danger: #f0a5af; --danger-tint: #402930; --busy-bg: #35424c; --meeting-bg: #3e3a31; --office-bg: #3d2e4d; --office-ink: #ddc5f2; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font-ui); }
.app-shell { max-width: 1440px; margin: auto; padding: 28px 36px 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 18px; font-weight: 700; letter-spacing: -.4px; }
h2 { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; font-weight: 650; letter-spacing: -.8px; margin-bottom: 10px; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
button, input, select, summary { font: inherit; }
button, .course-options > summary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; min-height: 42px; padding: 10px 15px; font-size: 14px; font-weight: 600; cursor: pointer; }
button:hover, .course-options > summary:hover { border-color: var(--brand); background: var(--brand-tint); }
button:disabled { opacity: .55; cursor: default; }
button.primary-btn { background: var(--brand); border-color: var(--brand); color: var(--surface); }
button.primary-btn:hover { background: var(--brand-dark); }
button.danger-btn { color: var(--danger); }
input, select { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 42px; max-width: 100%; font-size: 14px; }
select { cursor: pointer; }
input[type="checkbox"] { min-height: 24px; width: 24px; height: 24px; accent-color: var(--teal); cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { display: block; padding: 12px; background: var(--surface); }
.hint { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.app-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 11px; }
.wordmark svg { flex-shrink: 0; }
.wordmark p { color: var(--ink-soft); font-size: 12px; }
.course-bar { display: grid; grid-template-columns: minmax(130px, 190px) minmax(140px, 200px) auto auto; gap: 10px; align-items: end; min-width: 0; }
.course-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink-soft); font-size: 12px; }
.course-field input, .course-field select { width: 100%; min-width: 0; height: 44px; min-height: 44px; line-height: 22px; }
#course-select { appearance: none; -webkit-appearance: none; font-weight: 600; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%235b6873' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.course-bar > button, .course-options > summary { min-height: 44px; }
.course-options { position: relative; }
.course-options > summary { list-style: none; display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.course-options > summary::-webkit-details-marker { display: none; }
.options-panel { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); width: 290px; max-width: calc(100vw - 32px); padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px #152b4224; }
.options-panel button { display: block; text-align: left; width: 100%; border-color: transparent; }
#delete-all-btn { background: var(--danger-tint); }
#delete-all-btn:hover { border-color: var(--danger); }
.options-panel .hint { font-size: 12px; margin: 6px 0; }
.options-divider { border-top: 1px solid var(--line); margin: 10px 0; }
.device-status { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 11px 0 24px; color: var(--ink-soft); font-size: 11px; }
#save-indicator::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 100%; background: var(--teal); margin-right: 6px; }
#save-indicator.unsaved { color: var(--danger); font-weight: 600; }
#save-indicator.unsaved::before { background: var(--danger); }
.device-note { border-left: 1px solid var(--line); padding-left: 12px; }
.tabs { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 30px; }
.tab-btn { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; text-align: left; flex: 1; padding: 11px 16px; color: var(--ink-soft); }
.tab-btn.active { background: var(--brand-tint); color: var(--brand); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; flex-shrink: 0; }
.tab-btn.active .step-number { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.tab-btn small { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; color: var(--ink-soft); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.section-heading .hint { max-width: 70ch; }
.section-heading > button { flex-shrink: 0; }
.calendar-card { padding: 20px; min-width: 0; }
.calendar-toolbar, .coverage-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.calendar-toolbar .hint { font-size: 12px; }
.calendar-scroll { overflow: auto; max-height: 660px; scroll-padding-left: 100px; border: 1px solid var(--line); border-radius: 9px; }
.oho-grid { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.oho-grid th, .oho-grid td { text-align: center; vertical-align: middle; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.oho-grid tr > :last-child { border-right: 0; }
.oho-grid tbody tr:last-child > * { border-bottom: 0; }
.oho-grid thead th { position: sticky; top: 0; z-index: 2; padding: 14px 5px; background: var(--surface); font-weight: 600; }
.oho-grid .oho-corner { width: 100px; left: 0; z-index: 3; font-size: 11px; color: var(--ink-soft); }
.oho-day-head { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 600; font-size: 12px; padding: 10px 5px; }
.oho-hour-head { font-variant-numeric: tabular-nums; font-size: 12px; }
.hour-end { display: block; font-size: 10px; color: var(--ink-soft); font-weight: 400; }
.oho-cell { height: 55px; position: relative; cursor: pointer; user-select: none; padding: 7px 4px; }
.oho-cell:focus-visible { outline-offset: -4px; z-index: 1; }
.oho-edit-cell { font-size: 12px; }
.oho-edit-cell.oho-free { background: var(--teal-tint); color: var(--teal); }
.oho-edit-cell.oho-busy { background: var(--brand); color: var(--surface); font-weight: 600; }
.oho-edit-cell:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.oho-review-flag { box-shadow: inset 0 0 0 2px var(--gold); }
.oho-review-flag::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; outline: 2px solid var(--surface); }
.oho-heat-cell { color: white; }
.oho-heat-cell:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.oho-faculty-busy { background: var(--busy-bg); color: var(--ink-soft); cursor: default; font-size: 12px; }
.oho-meeting { background: repeating-linear-gradient(-45deg, transparent 0 5px, #a28a6412 5px 8px), var(--meeting-bg); color: var(--ink-soft); cursor: default; font-size: 12px; }
.oho-cell.oho-office-hours { background: var(--office-bg); color: var(--office-ink); font-weight: 600; }
.oho-cell.oho-busy-overlap { box-shadow: inset 0 -4px var(--brand); }
.oho-selected { box-shadow: inset 0 0 0 3px var(--ink); }
.oho-selected:hover { box-shadow: inset 0 0 0 3px var(--ink); }
.oho-check { position: absolute; top: 4px; right: 5px; font-size: 11px; font-weight: 700; }
.oho-cell-label { font-size: 17px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.oho-cell-sub { font-size: 10px; margin-top: 1px; }
.oho-empty-pool { background: var(--paper); color: var(--ink-soft); }
.oho-suggested::after { content: ''; position: absolute; left: 0; top: 0; border-style: solid; border-width: 12px 12px 0 0; border-color: #e7b65d transparent transparent transparent; }
.grid-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-soft); font-size: 12px; }
.grid-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 3px; flex-shrink: 0; }
.swatch.free { background: var(--teal-tint); border-color: var(--teal); }
.swatch.busy { background: var(--busy-bg); }
.swatch.office-hours { background: var(--office-bg); border-color: var(--office-ink); }
.swatch.meeting { background: repeating-linear-gradient(-45deg, var(--meeting-bg) 0 3px, var(--line) 3px 4px); }
.swatch.selected { border: 2px solid var(--ink); }
.calendar-toolbar .swatch.busy { background: var(--brand); border-color: var(--brand); }
.heatmap-legend { margin-top: 16px; font-size: 11px; gap: 10px 14px; }
.coverage-ramp { display: inline-block; width: 52px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #aa3c48, #a57827, #2f7459); }
.suggested-key { width: 10px; height: 10px; background: #e7b65d; clip-path: polygon(0 0,100% 0,0 100%); }
.copy-source-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.copy-source-group { min-width: 0; }
.copy-source-row label { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.copy-source-row .hint, .copy-help { font-size: 12px; font-weight: 400; }
.copy-help { margin-top: 10px; }
.copy-source-actions { display: flex; gap: 8px; }
.copy-source-actions select { flex: 1; min-width: 0; width: 0; }
.copy-source-row button { font-size: 12px; }
.import-card { padding: 18px 22px; margin-bottom: 20px; }
.import-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.student-actions { display: flex; gap: 9px; flex-shrink: 0; }
.help-details { font-size: 13px; max-width: 500px; }
.help-details summary { color: var(--brand); cursor: pointer; padding: 11px 0; }
.help-details p { margin: 8px 0; color: var(--ink-soft); }
#schedule-import-status:not(:empty) { margin-top: 14px; font-size: 13px; }
#schedule-review-panel > .hint { margin-top: 12px; }
.student-add-row { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.student-add-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-soft); }
.optional { font-weight: 400; display: contents; }
.review-progress-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
#verification-progress { font-weight: 600; color: var(--teal); font-size: 14px; }
#review-status { font-size: 12px; }
.student-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.roster-panel { padding: 16px 0 0; overflow: hidden; }
.search-label { display: block; padding: 0 16px; font-size: 12px; margin-bottom: 6px; font-weight: 600; }
#student-search { margin: 0 16px; width: calc(100% - 32px); }
.roster-filters { display: flex; gap: 3px; padding: 12px 12px 8px; }
.roster-filters button { min-height: 38px; font-size: 11px; padding: 8px; border-color: transparent; flex: 1; white-space: nowrap; }
.roster-filters button[aria-pressed="true"] { color: var(--brand); background: var(--brand-tint); }
#roster-count { padding: 0 16px 12px; font-size: 11px; }
.student-list { list-style: none; margin: 0; padding: 0; max-height: 500px; overflow-y: auto; }
.student-row { display: flex; align-items: center; gap: 5px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); }
.student-row.active { background: var(--brand-tint); box-shadow: inset 3px 0 var(--brand); }
.student-number { font-size: 11px; color: var(--ink-soft); min-width: 15px; font-variant-numeric: tabular-nums; }
.student-name { display: block; text-align: left; flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px; font-size: 13px; }
.student-name > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-name .student-state { font-size: 10px; font-weight: 400; margin-top: 2px; color: var(--ink-soft); }
.student-state.verified { color: var(--teal); }
.student-state.flagged { color: var(--gold); }
.student-delete-btn { width: 38px; min-height: 38px; padding: 0; border-color: transparent; background: transparent; color: var(--ink-soft); font-size: 18px; flex-shrink: 0; }
.student-delete-btn:hover { color: var(--danger); }
.student-grid-panel { padding: 22px; min-width: 0; }
.student-editor-header { margin-bottom: 16px; }
.student-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.student-title-row h3 { overflow-wrap: anywhere; }
.review-badge { background: var(--gold-tint); color: var(--gold); border-radius: 20px; font-size: 11px; padding: 5px 10px; }
.review-badge.verified { background: var(--teal-tint); color: var(--teal); }
.student-meta { color: var(--ink-soft); font-size: 12px; margin: 4px 0 12px; overflow-wrap: anywhere; }
.rename-row { font-size: 12px; color: var(--ink-soft); }
.rename-row input { margin-left: 8px; width: 220px; }
.needs-review-note { color: var(--gold); background: var(--gold-tint); padding: 10px 12px; border-radius: 8px; font-size: 12px; margin: 12px 0; }
.student-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.student-review-actions .hint { font-size: 12px; max-width: 43ch; }
.student-review-actions button { flex-shrink: 0; }
.empty-hint { padding: 30px 18px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.verification-section { padding: 22px; margin-top: 24px; }
.checklist-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.checklist-heading .hint { font-size: 12px; margin-top: 4px; }
#verification-checklist-panel { overflow: auto; }
.verify-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
.verify-table th, .verify-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.verify-table th { background: var(--paper); font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.verify-table td { vertical-align: middle; }
.verify-day { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.verify-number { color: var(--ink-soft); }
.verify-name { overflow-wrap: anywhere; }
.verify-flagged .verify-name { color: var(--gold); }
.verify-check { text-align: center !important; }
.check-status-label { display: block; white-space: nowrap; font-size: 10px; color: var(--ink-soft); }
.warnings-box, .review-box { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--gold-tint); border-radius: 8px; margin: 14px 0; font-size: 13px; overflow-wrap: anywhere; }
.warnings-box ul { padding-left: 20px; margin: 8px 0 0; }
.action-warning { color: var(--danger); background: var(--danger-tint); border-left: 3px solid var(--danger); border-radius: 8px; padding: 10px 12px; }
.review-box .hint { font-size: 12px; margin-top: 5px; }
.import-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.coverage-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
.control-label { font-size: 12px; color: var(--ink-soft); }
.view-switch { display: flex; padding: 3px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.view-switch button { min-height: 36px; font-size: 12px; background: transparent; border-color: transparent; padding: 7px 10px; }
.view-switch button[aria-pressed="true"] { color: var(--brand); background: var(--surface); box-shadow: 0 1px 4px #172f4512; border-color: var(--line); }
.calendar-explanation { font-size: 12px; margin-bottom: 14px; }
.calendar-explanation:empty { display: none; }
#copy-slots-status:not(:empty) { margin: 10px 0 0; }
.coverage-notice { background: var(--teal-tint); color: var(--teal); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.coverage-summary { padding: 18px 22px; min-width: 0; }
.summary-top-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto; gap: 24px; align-items: center; }
.summary-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.summary-bottom-row { display: flex; gap: 24px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.summary-selections { flex: 1; min-width: 0; }
.summary-eyebrow { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.coverage-metric { font-size: 28px; font-weight: 700; letter-spacing: -1.2px; margin: 2px 0 0; line-height: 1.25; }
.coverage-metric small { font-size: 18px; color: var(--ink-soft); font-weight: 400; letter-spacing: -.3px; }
.coverage-caption { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.coverage-progress { width: 100%; height: 6px; border: 0; display: block; margin: 0 0 8px; accent-color: var(--teal); }
.coverage-progress::-webkit-progress-bar { background: var(--line); border-radius: 20px; }
.coverage-progress::-webkit-progress-value { background: var(--teal); border-radius: 20px; }
.coverage-progress::-moz-progress-bar { background: var(--teal); border-radius: 20px; }
.coverage-summary .all-covered { color: var(--teal); font-size: 12px; font-weight: 600; }
.coverage-summary .hint { font-size: 12px; margin-top: 6px; }
.selected-hours-heading { margin: 0 0 8px; font-size: 13px; }
.selected-hours-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.selected-hour { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); max-width: 100%; }
.selected-hour-details { flex: 1; min-width: 0; }
.selected-hour-details strong { display: block; font-size: 13px; }
.selected-hour-details span { display: block; font-size: 11px; color: var(--ink-soft); }
.selected-hour button { width: 38px; min-height: 38px; flex-shrink: 0; padding: 0; border: 0; font-size: 18px; color: var(--ink-soft); }
#copy-slots-btn { width: auto; }
.uncovered-details { min-width: 150px; max-width: 260px; font-size: 12px; }
.uncovered-details summary { cursor: pointer; font-weight: 600; }
.uncovered-list { padding-left: 18px; max-height: 170px; overflow-y: auto; margin: 8px 0 0; overflow-wrap: anywhere; }
.summary-review-btn { display: block; border: 0; padding: 5px 0; min-height: 32px; font-size: 12px; color: var(--brand); }
.results-panel { margin-top: 24px; padding: 22px; }
.results-panel:empty { display: none; }
.results-panel > .hint { font-size: 12px; margin-top: 4px; }
.results-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.results-columns ol { padding: 0; margin: 0; list-style: none; }
.results-columns li { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.recommendation-slots { flex: 1; }
.recommendation-slots span { display: block; }
.recommendation-count { white-space: nowrap; font-weight: 600; color: var(--teal); }
.app-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 25px 0 10px; margin-top: 25px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); }
.footer-credit { text-align: center; }
.footer-note { text-align: right; }
.footer-credit a { color: var(--brand); text-underline-offset: 2px; overflow-wrap: anywhere; }
.footer-credit a:hover { color: var(--brand-dark); }
@media (max-width: 1050px) {
  .app-shell { padding: 22px 24px; }
  .coverage-layout { gap: 16px; }
  .coverage-summary { padding: 20px; }
  .student-layout { grid-template-columns: 230px minmax(0,1fr); gap: 16px; }
  .calendar-card, .student-grid-panel { padding: 16px; }
  .course-bar { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; }
}
@media (max-width: 800px) {
  .app-footer { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .footer-note { text-align: center; }
  .summary-top-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .summary-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
  .summary-bottom-row { flex-wrap: wrap; gap: 14px; }
  .summary-selections { flex-basis: 100%; }
  .copy-source-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .student-layout { grid-template-columns: 1fr; }
  .student-list { max-height: 235px; }
  .student-review-actions { flex-wrap: wrap; }
  .import-toolbar { flex-direction: column; gap: 4px; }
  .section-heading { align-items: flex-start; }
  .section-heading > button { font-size: 12px; }
  .app-header { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .course-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .course-options > summary { justify-content: space-between; }
  .tab-btn { padding: 10px; }
  .tab-btn small { display: none; }
  .tabs { margin-bottom: 25px; }
}
@media (max-width: 480px) {
  .app-shell { padding: 18px 14px; }
  h1 { font-size: 16px; } h2 { font-size: 25px; }
  .wordmark p { font-size: 11px; }
  .course-bar { width: 100%; margin: 0; }
  .course-options > summary { font-size: 12px; gap: 8px; }
  .device-status { justify-content: flex-start; margin: 10px 0 20px; }
  .tabs { gap: 3px; padding: 4px; }
  .tab-btn { flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 11px; padding: 9px 3px; }
  .step-number { width: 23px; height: 23px; font-size: 10px; }
  .section-heading { flex-direction: column; gap: 12px; }
  .section-heading > button { align-self: flex-start; }
  .calendar-card, .student-grid-panel { padding: 12px; }
  .calendar-scroll { border-radius: 6px; }
  .oho-grid thead th { padding: 11px 2px; font-size: 12px; }
  .oho-cell { height: 56px; padding: 6px 1px; }
  .oho-cell-label { font-size: 15px; } .oho-cell-sub { font-size: 9px; }
  .oho-check { font-size: 9px; top: 2px; right: 3px; }
  .coverage-toolbar { gap: 8px; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; font-size: 11px; padding: 8px 5px; }
  .calendar-toolbar .hint { font-size: 10px; }
  .import-card { padding: 15px; }
  .student-add-row label, .student-add-row input { width: 100%; }
  .student-add-row label { flex-basis: 100%; }
  .student-review-actions { gap: 10px; }
  .student-review-actions button { width: 100%; }
  .rename-row label { display: flex; flex-direction: column; gap: 5px; }
  .rename-row input { width: 100%; margin: 0; }
  .verification-section, .results-panel { padding: 15px; }
  .checklist-heading { flex-wrap: wrap; }
  .results-columns { grid-template-columns: 1fr; }
}
@media print {
  @page { size: landscape; margin: .4in; }
  :root { color-scheme: light; }
  body, .app-shell { margin: 0; padding: 0; background: white; color: black; max-width: none; }
  .app-header, .device-status, #storage-status, #course-name-status, #schedule-conflict-status, .tabs, .app-footer, .skip-link,
  #tab-faculty, #tab-coverage, #tab-students > :not(.verification-section), .no-print { display: none !important; }
  #tab-students { display: block !important; }
  .verification-section { padding: 0; margin: 0; border: 0; border-radius: 0; background: white; }
  .checklist-heading .hint { color: #444; }
  #verification-checklist-panel { overflow: visible; }
  .verify-table { min-width: 0; color: black; }
  .verify-table th, .verify-table td { background: white; color: black !important; border-color: #999; padding: 7px; }
  .verify-table tr { break-inside: avoid; }
  .check-status-label { color: #444; }
}
