html {
  color-scheme: light;
}

body {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 3px;
}

:root {
  --review-ink: #0f172a;
  --review-muted: #475569;
  --review-border: #d8dee7;
  --review-soft: #f8fafc;
  --review-emerald: #047857;
  --review-emerald-hover: #065f46;
  --review-amber: #b45309;
  --review-amber-border: #f59e0b;
  --review-red: #dc2626;
  --review-blue: #0369a1;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-page { margin: 0; min-height: 100vh; background: #f4f6f8; color: #172033; font-family: system-ui, sans-serif; }
.admin-login-shell { width: min(440px, calc(100% - 40px)); margin: 10vh auto; padding: 36px; background: #fff; border: 1px solid #d8dee8; }
.admin-eyebrow { margin: 0 0 8px; color: #53657d; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.admin-login-form { display: grid; gap: 10px; margin: 28px 0 20px; }
.admin-login-form input, .admin-action-grid input, .admin-action-grid textarea { box-sizing: border-box; width: 100%; padding: 11px; border: 1px solid #aeb9c8; background: #fff; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(24px, calc((100% - 1180px) / 2)); border-bottom: 1px solid #d8dee8; background: #fff; }
.admin-header a { color: #172033; font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.admin-header form { display: flex; align-items: center; gap: 16px; }
.admin-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-heading h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.admin-heading p { margin: 0; color: #5b687a; }
.admin-section { margin: 20px 0; padding: 24px; border: 1px solid #d8dee8; background: #fff; }
.admin-section__heading { display: flex; align-items: center; justify-content: space-between; }
.admin-section__heading > span { white-space: nowrap; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid #e3e7ed; text-align: left; vertical-align: top; }
.admin-table th { color: #53657d; font-size: .76rem; text-transform: uppercase; }
.admin-table a { color: #0759a8; font-weight: 700; }
.status-badge { display: inline-block; padding: 5px 9px; border: 1px solid #aeb9c8; background: #f7f9fb; font-size: .72rem; font-weight: 800; }
.status-badge--published { border-color: #70ad8e; background: #eaf7ef; color: #17613a; }
.status-badge--draft { border-color: #c5a44a; background: #fff8df; color: #715600; }
.status-badge--human_approved, .status-badge--tested { border-color: #6f94c4; background: #edf5ff; color: #174c84; }
.admin-empty { color: #6d7887; }
.admin-back { display: inline-block; margin-bottom: 20px; color: #0759a8; }
.admin-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: #d8dee8; border: 1px solid #d8dee8; }
.admin-facts div { padding: 16px; background: #fff; }
.admin-facts dt { color: #667487; font-size: .76rem; font-weight: 700; }
.admin-facts dd { margin: 6px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.admin-payload { max-height: 420px; overflow: auto; padding: 18px; background: #101722; color: #dfe8f5; white-space: pre-wrap; }
.admin-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.admin-action-grid form { display: grid; gap: 12px; padding: 22px; border: 1px solid #d8dee8; background: #fff; }
.admin-action-grid h2 { margin: 0; }
.admin-action-grid label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.button-link, .admin-form button, .admin-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #0759a8; border-radius: 4px; color: #fff; background: #0759a8; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.admin-form { display: grid; max-width: 620px; gap: 12px; }
.admin-form label { font-weight: 750; }
.admin-form input[type="file"] { padding: 14px; border: 1px solid #aeb9c8; background: #fff; }
.admin-alert { margin: 20px 0; padding: 16px 18px; border: 1px solid #dc2626; color: #991b1b; background: #fef2f2; }
.admin-actions { display: flex; justify-content: flex-end; margin: 20px 0; }
.admin-table ul { min-width: 260px; margin: 0; padding-left: 18px; }
.admin-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.admin-edit-grid label { display: grid; align-content: start; gap: 7px; color: #364458; font-size: .82rem; font-weight: 750; }
.admin-edit-grid input, .admin-edit-grid select, .admin-edit-grid textarea { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #aeb9c8; background: #fff; font: inherit; }
.admin-edit-grid textarea { min-height: 96px; resize: vertical; }
.admin-heading__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.button-link--secondary { border-color: #64748b; background: #fff; color: #334155; }
.consultation-shell { max-width: 1120px; }
.step-indicator { color: #475569; font-size: .86rem; font-weight: 750; }
.consultation-form small, .form-help { color: #64748b; font-size: .78rem; font-weight: 500; line-height: 1.5; }
.consultation-note { display: grid; gap: 8px; color: #364458; font-size: .82rem; font-weight: 750; }
.consultation-note textarea { width: 100%; min-height: 110px; padding: 12px; border: 1px solid #aeb9c8; font: inherit; resize: vertical; }
.program-picker { display: grid; gap: .8rem; margin-top: 1rem; }
.program-picker__tools { display: grid; grid-template-columns: minmax(15rem, 1fr) auto auto; gap: .75rem; align-items: end; }
.program-group { padding: .8rem; border: 1px solid #d8dee8; border-radius: .75rem; }
.program-group legend { padding: 0 .35rem; font-weight: 700; }
.program-option { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem; border-radius: .5rem; }
.program-option[hidden], .program-group[hidden] { display: none !important; }
.program-option:hover { background: #f4f7fb; }
.program-option span { display: grid; gap: .15rem; }
.program-option small, .consultation-result-table small { display: block; margin-top: .2rem; color: #526174; }
.consultation-result-table { min-width: 86rem; }
.consultation-evidence-card { padding: 1rem 0; border-top: 1px solid #d8dee8; }
.consultation-evidence-card:first-of-type { border-top: 0; }
.consultation-evidence-card h3 { margin: 0 0 .5rem; }
.print-results { font-size: .82rem; }
.print-break-avoid { break-inside: avoid; }
.consultation-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; border: 1px solid #d8dee8; background: #fff; }
.consultation-summary > div { display: grid; gap: 6px; min-width: 0; padding: 18px; border-right: 1px solid #e2e8f0; }
.consultation-summary > div:last-child { border-right: 0; }
.consultation-summary span { color: #64748b; font-size: .78rem; }
.consultation-summary strong { overflow-wrap: anywhere; font-size: 1.08rem; }
.consultation-summary--compact { margin: 12px 0; }
.ai-draft-form { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(220px, 1.3fr) auto; gap: 10px 14px; align-items: end; margin-top: 16px; }
.ai-draft-form label { align-self: end; color: #364458; font-size: .78rem; font-weight: 750; }
.ai-draft-form select, .ai-draft-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #aeb9c8; background: #fff; color: #182233; font: inherit; }
.evidence-warning { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid #d97706; background: #fffbeb; color: #78350f; }
.evidence-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.evidence-list span { color: #64748b; font-size: .86rem; }
.print-actions { margin: 24px 0; padding: 20px; border: 1px solid #cbd5e1; background: #f8fafc; }
.print-actions h2 { margin: 0 0 6px; }
.print-actions > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.print-actions form { margin: 0; }
.consultation-print-page { margin: 0; background: #eef2f6; color: #182233; font-family: Arial, "Noto Sans KR", sans-serif; }
.print-sheet { box-sizing: border-box; width: min(210mm, 100%); min-height: 297mm; margin: 24px auto; padding: 14mm; background: #fff; box-shadow: 0 14px 38px rgba(15, 23, 42, .12); }
.print-toolbar { display: flex; justify-content: space-between; gap: 16px; margin: -5mm 0 8mm; color: #64748b; font-size: .82rem; }
.print-title { display: block; padding-bottom: 7mm; border-bottom: 2px solid #0f766e; }
.print-title p, .print-title h1, .print-title span { margin: 0; }
.print-title p { color: #0f766e; font-size: 9pt; font-weight: 800; letter-spacing: .08em; }
.print-title h1 { margin-top: 2mm; font-size: 21pt; }
.print-title span { display: block; margin-top: 2mm; color: #64748b; font-size: 9pt; }
.print-target { padding: 7mm 0 4mm; }
.print-target h2, .print-target p { margin: 0; }
.print-target p { margin-top: 2mm; color: #475569; }
.print-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #cbd5e1; }
.print-metrics > div { display: grid; gap: 2mm; padding: 4mm; border-right: 1px solid #cbd5e1; }
.print-metrics > div:last-child { border-right: 0; }
.print-metrics span { color: #64748b; font-size: 8pt; }
.print-metrics strong { font-size: 12pt; }
.print-sheet section { margin-top: 7mm; }
.print-sheet section > h2 { margin: 0 0 3mm; font-size: 12pt; }
.print-sheet table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.print-sheet th, .print-sheet td { padding: 2.4mm; border: 1px solid #cbd5e1; text-align: left; }
.print-sheet th { background: #f1f5f9; }
.print-warning { padding: 4mm; border: 1px solid #f59e0b; background: #fffbeb; }
.print-warning p { margin: 1mm 0 0; }
.teacher-detail ul { margin: 0; padding-left: 5mm; }
.preserve-lines { min-height: 15mm; white-space: pre-wrap; }
.print-disclaimer { margin-top: 9mm; padding-top: 4mm; border-top: 1px solid #94a3b8; color: #475569; font-size: 8pt; }
@media (max-width: 760px) { .admin-facts { grid-template-columns: 1fr; } .admin-header { align-items: flex-start; } .admin-heading { display: block; } }
@media (max-width: 760px) { .consultation-summary, .print-metrics, .ai-draft-form { grid-template-columns: 1fr; } .consultation-summary > div, .print-metrics > div { border-right: 0; border-bottom: 1px solid #e2e8f0; } .consultation-summary > div:last-child, .print-metrics > div:last-child { border-bottom: 0; } .print-toolbar { display: grid; } }
@media (max-width: 760px) { .program-picker__tools { grid-template-columns: 1fr; } }

.product-page.public-calculation-page { color: var(--product-ink); background: var(--product-bg); }
.product-page [hidden] { display: none !important; }

.teacher-summary { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; overflow: hidden; border: 1px solid #d9e2ee; border-radius: 12px; background: #fff; }
.teacher-summary > div { display: grid; gap: 6px; padding: 18px; border-right: 1px solid #e2e8f0; }
.teacher-summary > div:last-child { border-right: 0; }
.teacher-summary span { color: #64748b; font-size: 12px; font-weight: 700; }
.teacher-summary strong { color: #102544; font-size: 24px; }
.teacher-outcome-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.teacher-outcome-form label, .teacher-filter-form label { display: grid; gap: 6px; }
.teacher-outcome-form__track, .teacher-outcome-form__notes { grid-column: span 2; }
.teacher-filter-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
@media (max-width: 900px) { .teacher-summary { grid-template-columns: repeat(2, 1fr); } .teacher-outcome-form, .teacher-filter-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .teacher-summary, .teacher-outcome-form, .teacher-filter-form { grid-template-columns: 1fr; } .teacher-outcome-form__track, .teacher-outcome-form__notes { grid-column: auto; } }
.source-document-form, .source-validation-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; margin-bottom: 20px; }
.source-document-form label, .source-validation-form label { display: grid; gap: 6px; }
.source-document-form__wide { grid-column: span 2; }
.validation-decision { margin-top: 12px; padding: 16px; border: 1px solid #d9e2ee; border-radius: 10px; }
.validation-decision > header { display: flex; justify-content: space-between; gap: 16px; }
.validation-decision > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.validation-decision > div p { display: grid; gap: 5px; margin: 0; padding: 10px; background: #f7f9fc; }
.validation-decision > div span { color: #64748b; font-size: 12px; font-weight: 700; }
.validation-decision form { display: grid; grid-template-columns: .5fr 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 800px) { .source-document-form, .source-validation-form, .validation-decision > div, .validation-decision form { grid-template-columns: 1fr; } .source-document-form__wide { grid-column: auto; } }

/* Phase 15 product shell: public counseling is the primary workspace. */
.product-page {
  --product-bg: #f3f6fb;
  --product-surface: #fff;
  --product-ink: #102544;
  --product-muted: #60708a;
  --product-border: #d7e0ec;
  --product-blue: #135ed6;
  --product-blue-soft: #eaf1ff;
  --product-teal: #078697;
  min-width: 320px;
  margin: 0;
  color: var(--product-ink);
  background: var(--product-bg);
  overflow-x: hidden;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}
.product-header {
  min-height: 64px;
  padding: 0 max(24px, calc((100% - 1360px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: #092850;
}
.product-header a { color: inherit; text-decoration: none; }
.product-brand { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.product-brand span { display: inline-block; margin-left: 8px; padding: 5px 9px; border-radius: 999px; color: #dcfbff; background: #087f91; font-size: 12px; vertical-align: 2px; }
.product-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.product-header nav strong { padding: 8px 12px; border: 1px solid #416080; border-radius: 8px; }
.product-shell { width: min(1360px, calc(100% - 48px)); margin-inline: auto; padding: 28px 0 72px; }
.product-shell--with-dock { padding-bottom: 150px; }
.product-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 8px 0 22px; }
.product-intro--compact { align-items: center; }
.product-intro > div:first-child { min-width: 0; flex: 1; }
.product-intro h1 { max-width: none; margin: 5px 0 8px; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.product-intro p { max-width: 800px; margin: 0; color: var(--product-muted); line-height: 1.65; }
.eyebrow { color: var(--product-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.target-facts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.target-facts span { padding: 7px 10px; border: 1px solid #b9d9dd; border-radius: 999px; color: #086a77; background: #eefafb; font-size: 13px; font-weight: 700; }
.product-page .public-steps { margin: 0 0 20px; overflow: hidden; border: 1px solid var(--product-border); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(16,37,68,.05); }
.product-page .public-steps > * { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 10px; border-color: var(--product-border); color: #65748b; background: #fff; font-weight: 650; }
.product-page .public-steps > * > span, .product-page .public-steps > * > b { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: #edf1f6; color: #66758a; font-size: 13px; }
.product-page .public-steps [aria-current="step"] { color: var(--product-blue); background: #f8faff; box-shadow: inset 0 -3px var(--product-blue); }
.product-page .public-steps [aria-current="step"] > span { color: #fff; background: var(--product-blue); }
.start-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.start-rail a { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 17px 20px; border: 1px solid #acc5ed; border-radius: 12px; color: var(--product-ink); background: #fff; text-decoration: none; }
.start-rail a:last-child { border-color: #9ed3d8; }
.start-rail a > span { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--product-blue); font-weight: 800; }
.start-rail a:last-child > span { background: var(--product-teal); }
.start-rail strong { font-size: 16px; }
.start-rail small { margin-top: 3px; color: var(--product-muted); }
.public-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, .75fr); gap: 20px; align-items: start; }
.workspace-panel, .result-list { padding: 22px; border: 1px solid var(--product-border); border-radius: 14px; background: var(--product-surface); box-shadow: 0 6px 22px rgba(16,37,68,.055); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.02em; }
.panel-heading > span, .panel-heading > strong { color: var(--product-muted); font-size: 13px; }
.text-link { color: var(--product-blue); font-weight: 700; text-decoration: none; }
.input-mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; padding: 0; overflow: hidden; border: 1px solid var(--product-border); border-radius: 10px; }
.input-mode-tabs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.input-mode-tabs label { margin: 0; }
.input-mode-tabs input { position: absolute; opacity: 0; }
.input-mode-tabs span { min-height: 48px; display: grid; place-items: center; border-right: 1px solid var(--product-border); font-weight: 700; cursor: pointer; }
.input-mode-tabs label:last-child span { border-right: 0; }
.input-mode-tabs input:checked + span { color: var(--product-blue); background: var(--product-blue-soft); box-shadow: inset 0 -2px var(--product-blue); }
.source-controls { display: flex; align-items: end; gap: 18px; margin-bottom: 18px; }
.source-controls > label:first-child { min-width: 230px; }
.check-control { min-height: 42px; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.check-control input { width: auto; }
.course-list { display: grid; gap: 12px; }
.course-row { margin: 0; padding: 15px; border: 1px solid var(--product-border); border-radius: 10px; }
.course-row legend { padding: 0 6px; color: #324866; font-size: 13px; font-weight: 750; }
.course-row__term, .course-row__core, .course-row__more > div { display: grid; gap: 9px; }
.course-row__term { grid-template-columns: 1.2fr .8fr .8fr; margin-bottom: 9px; }
.course-row__core { grid-template-columns: 1fr 1.4fr .7fr .7fr auto; align-items: end; }
.course-row label, .alternative-input label { display: grid; gap: 5px; color: #52627a; font-size: 12px; font-weight: 700; }
.course-row input, .course-row select, .program-preview input { width: 100%; min-height: 39px; padding: 8px 9px; border: 1px solid #cbd5e2; border-radius: 7px; color: var(--product-ink); background: #fff; }
.course-row__more { margin-top: 10px; }
.course-row__more summary, .alternative-input summary { color: var(--product-blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.course-row__more > div { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.score-row-delete { min-height: 39px; padding: 7px 10px; color: #a12b38; border: 0; background: transparent; cursor: pointer; }
.alternative-input { margin-top: 18px; padding: 15px; border: 1px dashed #bdc9da; border-radius: 10px; }
.alternative-input__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 14px; }
.alternative-input textarea { width: 100%; resize: vertical; }
.form-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--product-border); }
.form-submit-bar p { margin: 0; color: var(--product-muted); font-size: 12px; }
.form-submit-bar button, .comparison-dock button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; color: #fff; background: var(--product-blue); font-weight: 800; cursor: pointer; }
.program-preview { position: sticky; top: 18px; }
.program-preview__search { display: grid; gap: 6px; color: #52627a; font-size: 13px; font-weight: 700; }
.program-preview__list { max-height: 610px; display: grid; gap: 8px; margin-top: 14px; overflow: auto; }
.program-preview__list article { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px; border: 1px solid #e0e6ef; border-radius: 8px; }
.program-preview__list article span { grid-column: 1 / -1; color: var(--product-blue); font-size: 11px; font-weight: 800; }
.program-preview__list article small { color: var(--product-muted); }
.fixed-facts-panel { margin-bottom: 18px; }
.fixed-facts-panel > p { margin: -4px 0 18px; color: var(--product-muted); }
.verified-mark { padding: 6px 9px; border-radius: 999px; color: #087466 !important; background: #e8f7f3; font-weight: 800; }
.optional-facts { display: grid; grid-template-columns: minmax(220px, .5fr) 1.5fr; gap: 14px; align-items: start; }
.optional-facts > label, .optional-facts details > div label { display: grid; gap: 5px; color: #52627a; font-size: 13px; font-weight: 700; }
.optional-facts details { padding: 10px 12px; border: 1px solid var(--product-border); border-radius: 8px; }
.optional-facts details > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.program-selection-panel { padding-bottom: 100px; }
.product-page .program-picker__tools { grid-template-columns: 1.2fr .8fr auto; }
.program-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.program-groups:has(.program-group[hidden]) { grid-template-columns: 1fr; }
.product-page .program-group { margin: 0; border: 1px solid var(--product-border); border-radius: 10px; background: #fbfcfe; }
.product-page .program-option { border-radius: 7px; }
.selected-chips { min-height: 26px; display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.selection-chip { padding: 6px 9px; border: 1px solid #b9ccef; border-radius: 999px; color: #244c88; background: #f1f6ff; font-size: 12px; cursor: pointer; }
.comparison-dock { position: fixed; z-index: 20; left: 50%; bottom: 18px; width: min(1320px, calc(100% - 40px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 18px; border: 1px solid #cbd7e7; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 12px 36px rgba(17,39,72,.18); }
.comparison-dock > div { min-width: 0; display: grid; grid-template-columns: auto auto 1fr; gap: 8px 14px; align-items: center; }
.comparison-dock [data-dock-labels] { grid-column: 1 / -1; overflow: hidden; color: var(--product-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.result-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.result-list { display: grid; gap: 14px; }
.result-card { overflow: hidden; border: 1px solid var(--product-border); border-radius: 12px; background: #fff; }
.result-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border-bottom: 1px solid var(--product-border); }
.result-card > header span:first-child { color: var(--product-blue); font-size: 12px; font-weight: 750; }
.result-card h3 { margin: 3px 0; font-size: 20px; }
.result-card header p { margin: 0; color: var(--product-muted); font-size: 13px; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.result-metrics > div { min-width: 0; display: grid; gap: 6px; padding: 18px; border-right: 1px solid var(--product-border); }
.result-metrics > div:last-child { border-right: 0; }
.result-metrics span { color: var(--product-muted); font-size: 12px; font-weight: 700; }
.result-metrics strong { font-size: 18px; }
.result-metrics small { color: var(--product-muted); line-height: 1.45; }
.result-evidence { border-top: 1px solid var(--product-border); }
.result-evidence summary { padding: 13px 18px; color: var(--product-blue); font-weight: 750; cursor: pointer; }
.result-evidence .public-trace-grid { padding: 0 18px 18px; }
.result-evidence h4 { margin: 0 0 8px; }
.result-disclaimer { margin: 15px 0 24px; color: var(--product-muted); font-size: 13px; }
.result-next-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.result-next-actions > div { padding: 20px; border: 1px solid var(--product-border); border-radius: 12px; background: #fff; }
.result-next-actions h2 { margin: 4px 0 7px; }
.result-next-actions p { color: var(--product-muted); }
.print-actions__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.print-actions__buttons form { margin: 0; }
.complete-form { margin-top: 20px; text-align: right; }

/* Excel-reference score entry: five semester tables, not one card per subject. */
.product-shell--score-entry { width: min(1440px, calc(100% - 48px)); }
.excel-score-form { display: grid; gap: 18px; }
.score-entry-controls .source-controls select { min-height: 42px; padding: 8px 10px; border: 1px solid #cbd5e2; border-radius: 7px; background: #fff; }
.semester-grid-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.semester-card { min-width: 0; overflow: hidden; border: 1px solid var(--product-border); border-radius: 10px; background: #fff; }
.semester-card--zscore { grid-column: 1 / -1; }
.semester-card > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--product-border); background: #f7f9fc; }
.semester-card h3 { margin: 0; color: #17345f; font-size: 17px; }
.semester-card header p { margin: 4px 0 0; color: var(--product-muted); font-size: 12px; }
.term-add-button { min-height: 36px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid #9fb9e2; border-radius: 6px; color: #174e9d; background: #fff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.semester-table-wrap { overflow-x: auto; }
.semester-score-table { width: 100%; min-width: 650px; border-collapse: collapse; table-layout: fixed; }
.semester-card--zscore .semester-score-table { min-width: 1020px; }
.semester-score-table th { padding: 9px 6px; border-right: 1px solid #e0e6ef; border-bottom: 1px solid #d5deeb; color: #43536b; background: #eef3f9; font-size: 11px; text-align: center; }
.semester-score-table th:nth-child(1) { width: 17%; }
.semester-score-table th:nth-child(2) { width: 23%; }
.semester-score-table th:nth-child(3), .semester-score-table th:nth-child(4) { width: 11%; }
.semester-score-table th:nth-last-child(2) { width: 12%; }
.semester-score-table th:last-child { width: 9%; }
.semester-score-table td { padding: 5px; border-right: 1px solid #e5eaf1; border-bottom: 1px solid #e5eaf1; vertical-align: top; }
.semester-score-table tr:last-child td { border-bottom: 0; }
.semester-score-table th:last-child, .semester-score-table td:last-child { border-right: 0; }
.semester-score-table input, .semester-score-table select { width: 100%; min-width: 0; min-height: 36px; padding: 6px 7px; border: 1px solid #c9d4e3; border-radius: 4px; color: var(--product-ink); background: #fff; font: inherit; font-size: 13px; }
.semester-score-table input:focus, .semester-score-table select:focus { border-color: var(--product-blue); outline: 2px solid #cfe0ff; }
.score-term-hidden { display: none; }
.score-row-more { position: relative; }
.score-row-more summary { min-height: 36px; display: grid; place-items: center; color: var(--product-blue); font-size: 12px; font-weight: 750; cursor: pointer; }
.score-row-more[open] > div { position: absolute; z-index: 12; right: 0; width: min(440px, calc(100vw - 48px)); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; border: 1px solid #b8c7da; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(16,37,68,.18); }
.score-row-more label { display: grid; gap: 4px; color: #52627a; font-size: 11px; font-weight: 700; }
.semester-score-table .score-row-delete { width: 100%; min-height: 36px; margin: 0; padding: 6px; border: 0; color: #a12b38; background: #fff; font-size: 11px; }
.excel-score-form > .alternative-input { margin: 0; }
.score-submit-bar { position: sticky; z-index: 10; bottom: 0; margin: 0; padding: 14px 18px; border: 1px solid #cbd7e7; border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: 0 -5px 22px rgba(17,39,72,.10); }

@media (max-width: 980px) {
  .public-workspace, .result-next-actions { grid-template-columns: 1fr; }
  .program-preview { position: static; }
  .program-groups { grid-template-columns: 1fr; }
  .course-row__core { grid-template-columns: repeat(2, 1fr); }
  .course-row__more > div, .optional-facts details > div { grid-template-columns: repeat(2, 1fr); }
  .product-page .program-picker__tools { grid-template-columns: 1fr 1fr; }
  .semester-grid-list { grid-template-columns: 1fr; }
  .semester-card--zscore { grid-column: auto; }
}
@media (max-width: 680px) {
  .product-header { min-height: 58px; padding-inline: 16px; }
  .product-header nav strong { display: none; }
  .product-header nav { gap: 12px; }
  .product-shell { width: min(100% - 24px, 1360px); padding-top: 18px; }
  .product-intro { display: grid; gap: 14px; }
  .target-facts { justify-content: flex-start; }
  .start-rail, .alternative-input__grid, .optional-facts { grid-template-columns: 1fr; }
  .product-page .public-steps > * { font-size: 0; }
  .product-page .public-steps > * > span, .product-page .public-steps > * > b { font-size: 13px; }
  .workspace-panel, .result-list { padding: 15px; }
  .source-controls, .form-submit-bar, .comparison-dock { align-items: stretch; flex-direction: column; }
  .course-row__term, .course-row__core, .course-row__more > div, .optional-facts details > div, .result-metrics { grid-template-columns: 1fr; }
  .result-metrics > div { border-right: 0; border-bottom: 1px solid var(--product-border); }
  .result-metrics > div:last-child { border-bottom: 0; }
  .product-page .program-picker__tools { grid-template-columns: 1fr; }
  .comparison-dock { bottom: 8px; }
  .comparison-dock > div { display: block; }
  .comparison-dock [data-dock-labels] { margin-top: 4px; }
  .product-shell--score-entry { width: min(100% - 20px, 1440px); }
  .excel-score-panel, .score-entry-controls { padding: 13px; }
  .semester-card > header { align-items: flex-start; }
  .semester-score-table { min-width: 620px; }
  .semester-card--zscore .semester-score-table { min-width: 960px; }
  .score-submit-bar { position: static; align-items: stretch; }
}

@media (max-width: 520px) {
  .semester-table-wrap { overflow: visible; }
  .semester-score-table, .semester-card--zscore .semester-score-table,
  .semester-score-table tbody { min-width: 0; display: block; width: 100%; }
  .semester-score-table thead { display: none; }
  .semester-score-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border-bottom: 1px solid var(--product-border); }
  .semester-score-table tr:last-child { border-bottom: 0; }
  .semester-score-table td { display: grid; gap: 4px; padding: 0; border: 0; }
  .semester-score-table td::before { content: attr(data-label); color: #52627a; font-size: 11px; font-weight: 750; }
  .semester-score-table .score-term-hidden { display: none; }
  .score-row-more[open] > div { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; }
  .semester-score-table td[data-label="추가정보"], .semester-score-table td[data-label="삭제"] { align-content: end; }
}

.review-page {
  min-width: 320px;
  margin: 0;
  color: var(--review-ink);
  background: #fff;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

.review-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.review-header {
  border-bottom: 1px solid var(--review-border);
  background: #fff;
}

.review-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  color: var(--review-ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.text-action {
  appearance: none;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.text-action--blue {
  color: var(--review-blue);
}

.text-action--danger {
  color: var(--review-red);
}

.review-main {
  padding-block: 48px 120px;
}

.review-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.review-heading p {
  margin: 14px 0 0;
  color: var(--review-muted);
  font-size: 18px;
  line-height: 1.6;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 32px 0 0;
  border: 1px solid var(--review-border);
  border-radius: 9px;
}

.review-summary div {
  min-width: 0;
  padding: 20px 24px;
  text-align: center;
}

.review-summary div + div {
  border-left: 1px solid var(--review-border);
}

.review-summary dt {
  color: var(--review-muted);
  font-size: 13px;
  font-weight: 650;
}

.review-summary dd {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 750;
}

.ocr-warning {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--review-amber-border);
  border-radius: 9px;
  color: #92400e;
  background: #fffbeb;
}

.ocr-warning__icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}

.ocr-warning h2,
.form-alert h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.ocr-warning p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.form-alert {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--review-red);
  color: #991b1b;
  background: #fef2f2;
}

.form-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.review-form {
  margin-top: 30px;
}

.review-grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--review-border);
  border-radius: 9px;
  background: #fff;
}

.review-grid {
  display: grid;
  grid-template-columns: 48px 78px 62px 62px 110px 160px 82px 88px 88px 94px 80px 92px 82px 140px 150px 90px 104px;
  min-width: 1610px;
  align-items: stretch;
}

.review-grid--head {
  min-height: 54px;
  color: #334155;
  background: var(--review-soft);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.review-grid--head > * {
  display: grid;
  min-width: 0;
  padding: 10px 7px;
  place-items: center;
  border-right: 1px solid var(--review-border);
}

.review-grid--head > *:last-child {
  border-right: 0;
}

.review-row {
  min-inline-size: 1230px;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--review-border);
}

.review-row > * {
  min-width: 0;
  padding: 14px 7px;
  border-right: 1px solid var(--review-border);
}

.review-row > *:last-child {
  border-right: 0;
}

.row-selector,
.select-all-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-selector input,
.select-all-cell input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--review-emerald);
}

.mobile-row-number {
  display: none;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.review-field input,
.review-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #b9c2cf;
  border-radius: 6px;
  color: var(--review-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.review-field input:hover {
  border-color: #64748b;
}

.review-field--error {
  background: #fff7f7;
}

.review-field--error input {
  border-color: var(--review-red);
  color: #991b1b;
}

.field-error {
  margin: 5px 0 0;
  color: var(--review-red);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.source-cell {
  display: flex;
  align-items: center;
  color: var(--review-muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--review-border);
  background: rgba(255, 255, 255, 0.97);
}

.review-actions strong {
  font-size: 18px;
}

.review-actions p {
  margin: 5px 0 0;
  color: var(--review-muted);
  font-size: 13px;
}

.primary-button {
  min-height: 50px;
  padding: 12px 28px;
  border: 1px solid var(--review-emerald);
  border-radius: 8px;
  color: #fff;
  background: var(--review-emerald);
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.primary-button:hover {
  border-color: var(--review-emerald-hover);
  background: var(--review-emerald-hover);
}

.primary-button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  text-decoration: none;
}

.discard-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.completion-shell {
  width: min(560px, calc(100% - 40px));
  margin: 110px auto;
  text-align: center;
}

.completion-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--review-emerald);
  font-size: 28px;
  font-weight: 800;
}

.completion-shell h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.completion-shell p {
  margin: 16px 0 0;
  color: var(--review-muted);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .review-shell {
    width: min(100% - 32px, 640px);
  }

  .review-header__inner {
    min-height: 64px;
  }

  .brand-link {
    font-size: 16px;
  }

  .text-action {
    font-size: 14px;
  }

  .review-main {
    padding-block: 30px 130px;
  }

  .review-heading h1 {
    font-size: 30px;
  }

  .review-heading p {
    font-size: 16px;
  }

  .review-summary {
    grid-template-columns: repeat(2, 1fr);
    border: 0;
    border-radius: 0;
  }

  .review-summary div {
    padding: 16px 8px 16px 0;
    text-align: left;
    border-bottom: 1px solid var(--review-border);
  }

  .review-summary div + div {
    padding-left: 16px;
    border-left: 1px solid var(--review-border);
  }

  .review-summary div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .ocr-warning {
    padding: 18px;
  }

  .review-grid-wrap {
    overflow: visible;
    border-inline: 0;
    border-radius: 0;
  }

  .review-grid--head {
    display: none;
  }

  .review-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding: 22px 0;
    column-gap: 16px;
    row-gap: 16px;
  }

  .review-row:first-of-type {
    border-top: 0;
  }

  .review-row > * {
    padding: 0;
    border-right: 0;
  }

  .row-selector {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-row-number {
    display: inline;
  }

  .field-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 7px;
    overflow: visible;
    clip: auto;
    color: #334155;
    white-space: normal;
    font-size: 12px;
    font-weight: 700;
  }

  .review-field input {
    min-height: 48px;
    font-size: 16px;
  }

  .source-cell {
    display: block;
    grid-column: 1 / -1;
    min-height: 44px;
    padding-top: 4px;
  }

  .review-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px 16px;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
  }

  .review-actions p {
    display: none;
  }

  .review-actions strong {
    font-size: 15px;
  }

  .primary-button {
    min-height: 52px;
    padding-inline: 18px;
  }

  .discard-form {
    justify-content: center;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* Phase 11 internal staff authentication and member governance */
.landing-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #0f172a;
  background: #f8fafc;
}

.landing-header {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.landing-header__inner,
.landing-main,
.landing-footer > div {
  width: min(1152px, calc(100% - 40px));
  margin-inline: auto;
}

.landing-header__inner {
  display: flex;
  min-height: 68px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.landing-brand,
.landing-nav a,
.landing-nav button {
  color: #1e293b;
  font-weight: 700;
  text-decoration: none;
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
}

.landing-nav form {
  margin: 0;
}

.landing-nav button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.landing-account {
  color: #475569;
}

.landing-nav .landing-nav__warning {
  color: #92400e;
}

.landing-main {
  padding-block: clamp(40px, 6vw, 64px);
}

.landing-hero {
  max-width: 768px;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.landing-hero > p:not(.landing-hero__note) {
  margin: 20px 0 0;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
}

.landing-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 28px;
  padding: 12px 20px;
  color: #fff;
  background: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.landing-cta--pending {
  background: #b45309;
}

.landing-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-cta--secondary { border: 1px solid #1d4ed8; color: #173464; background: #fff; }

.public-calculation-page { color: #132646; background: #fff; }
.public-calculation-page .admin-header { border-bottom-color: #d5ddea; box-shadow: none; }
.public-calculation-page .admin-section { border-color: #b9c9e2; border-radius: 2px; box-shadow: none; }
.public-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; border: 1px solid #b9c9e2; }
.public-steps > * { min-width: 0; padding: 13px 12px; border-right: 1px solid #b9c9e2; color: #18345f; background: #fff; text-align: center; text-decoration: none; }
.public-steps > *:last-child { border-right: 0; }
.public-steps [aria-current="step"] { color: #fff; background: #1266d6; }
.public-notice { margin: 18px 0; padding: 14px 16px; border-left: 4px solid #1266d6; background: #eef5ff; color: #18345f; }
.public-mode-grid { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0; }
.public-mode-grid label { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid #b9c9e2; font-weight: 750; }
.public-source { display: grid; max-width: 320px; gap: 6px; font-weight: 750; }
.public-source select { min-height: 42px; padding: 8px 10px; border: 1px solid #9fb0c9; background: #fff; }
.public-grade-grid-wrap { margin: 18px 0; overflow-x: auto; border: 1px solid #b9c9e2; }
.public-grade-grid { display: grid; grid-template-columns: 82px 58px 58px 100px minmax(130px, 1.3fr) 82px 82px 82px 82px 90px 76px 82px 140px 88px 62px; min-width: 1340px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #d5ddea; }
.public-grade-grid:last-child { border-bottom: 0; }
.public-grade-grid legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.public-grade-grid label { display: grid; gap: 3px; padding: 5px; border-right: 1px solid #d5ddea; }
.public-grade-grid label:last-child { border-right: 0; }
.public-grade-grid label span { display: none; color: #526174; font-size: .7rem; }
.public-grade-grid input, .public-grade-grid select { width: 100%; min-width: 0; min-height: 36px; padding: 6px; border: 1px solid transparent; background: #fff; font: inherit; }
.score-row-delete { margin: 5px; border: 1px solid #b91c1c; color: #b91c1c; background: #fff; font: inherit; font-size: .72rem; }
.public-grade-grid input:focus { border-color: #1266d6; outline: 2px solid #b9d7ff; }
.public-grade-grid--head { color: #354864; background: #f4f7fb; font-size: .75rem; font-weight: 800; text-align: center; }
.public-grade-grid--head span { padding: 10px 4px; border-right: 1px solid #d5ddea; }
.public-alternative-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.public-alternative-inputs textarea, .public-alternative-inputs input[type="file"] { width: 100%; padding: 10px; border: 1px solid #9fb0c9; background: #fff; font: inherit; }
.public-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.public-year-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 18px; }
.public-year-filter label { display: grid; gap: 5px; font-size: .8rem; font-weight: 750; }
.public-year-filter input { min-height: 40px; padding: 7px 9px; border: 1px solid #9fb0c9; }
.public-year-filter button { min-height: 40px; padding: 7px 12px; border: 1px solid #1266d6; color: #fff; background: #1266d6; font: inherit; font-weight: 750; }
.public-result-table { min-width: 1120px; }
.public-trace-row td { padding: 0 12px 14px; background: #f8fafc; }
.public-trace-row summary { padding: 10px 0; color: #0759a8; font-weight: 750; cursor: pointer; }
.public-trace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 12px 0; }
.public-trace-grid h3 { margin: 0 0 8px; font-size: .9rem; }
.public-trace-grid p, .public-trace-grid li { color: #46566c; font-size: .8rem; line-height: 1.5; }
.public-save-boundary { margin: 24px 0; padding: 20px; border: 1px solid #b9c9e2; }
.public-save-boundary summary { color: #0759a8; font-size: 1rem; font-weight: 800; cursor: pointer; }
.public-save-boundary h2, .public-save-boundary p { margin: 0 0 8px; }
.public-save-boundary a { color: #0759a8; font-weight: 750; }

@media (max-width: 640px) {
  .public-steps { grid-template-columns: repeat(4, 1fr); font-size: .72rem; }
  .public-steps > * { padding: 10px 4px; }
  .public-alternative-inputs, .public-trace-grid { grid-template-columns: 1fr; }
  .public-grade-grid-wrap { overflow: visible; border: 0; }
  .public-grade-grid--head { display: none; }
  .public-grade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; margin-bottom: 12px; padding: 8px; border: 1px solid #b9c9e2; }
  .public-grade-grid label { border: 0; }
  .public-grade-grid label span { display: block; }
  .public-grade-grid input, .public-grade-grid select { border-color: #cbd5e1; }
  .public-mode-grid { display: grid; }
}

.narrow-shell { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.page-shell { color: #172033; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header h1 { margin: 0 0 7px; }
.page-header p { margin: 0; color: #526174; }
.secondary-button { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 13px; border: 1px solid #64748b; color: #334155; background: #fff; text-decoration: none; }
.table-scroll { overflow-x: auto; border: 1px solid #cbd5e1; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 11px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.table-scroll th { color: #526174; background: #f8fafc; font-size: .78rem; }
.error-banner { margin: 18px 0; padding: 14px 16px; border: 1px solid #dc2626; color: #991b1b; background: #fef2f2; }
.empty-state { padding: 24px; border: 1px solid #cbd5e1; color: #526174; background: #f8fafc; }
.danger-link { padding: 7px 10px; border: 1px solid #dc2626; color: #b91c1c; background: #fff; font: inherit; cursor: pointer; }

.landing-hero .landing-hero__note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.landing-status {
  margin-top: 48px;
  border-block: 1px solid #e2e8f0;
  background: #fff;
}

.landing-status > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.landing-status > div > div {
  padding: 24px;
  border-right: 1px solid #e2e8f0;
}

.landing-status > div > div:last-child {
  border-right: 0;
}

.landing-status h2 {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.landing-status p {
  margin: 8px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.landing-principles {
  margin-top: 40px;
}

.landing-principles h2 {
  margin: 0;
  font-size: 1.25rem;
}

.landing-principles ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  color: #334155;
  list-style: none;
}

.landing-principles li {
  padding: 16px 20px;
  border-left: 4px solid #059669;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
}

.landing-principles li:nth-child(2) { border-color: #f59e0b; }
.landing-principles li:nth-child(3) { border-color: #0284c7; }
.landing-principles li:nth-child(4) { border-color: #e11d48; }

.landing-footer {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  background: #fff;
  font-size: 0.875rem;
}

.landing-footer > div {
  padding-block: 20px;
}

.auth-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #172033;
  background: #f4f6f8;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

.auth-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100% - 1080px) / 2));
  border-bottom: 1px solid #d8dee8;
  color: #53657d;
  background: #fff;
  font-size: 0.88rem;
}

.auth-header a:not(.brand-link) {
  color: #0759a8;
  font-weight: 750;
}

.auth-shell {
  width: min(460px, calc(100% - 32px));
  margin: clamp(36px, 8vh, 88px) auto;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.auth-shell--wide {
  width: min(580px, calc(100% - 32px));
}

.auth-shell h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.auth-lead {
  margin: 14px 0 0;
  color: #5b687a;
  line-height: 1.7;
}

.auth-action-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  color: #334155;
  background: #d8dee8;
  text-align: left;
}

.auth-action-guide > div {
  min-width: 0;
  padding: 10px 12px;
  background: #f8fafc;
}

.auth-action-guide dt {
  color: #53657d;
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-action-guide dd {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.auth-form label {
  margin-top: 6px;
  color: #29374a;
  font-size: 0.88rem;
  font-weight: 750;
}

.auth-form input,
.member-inline-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aeb9c8;
  border-radius: 4px;
  color: #172033;
  background: #fff;
  font: inherit;
}

.auth-form input:focus,
.member-inline-form select:focus {
  border-color: #0369a1;
}

.field-note {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
}

.field-help {
  margin: -3px 0 4px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.auth-submit {
  width: 100%;
  margin-top: 14px;
  border: 1px solid #0759a8;
  border-radius: 4px;
  background: #0759a8;
}

.auth-alert {
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  line-height: 1.6;
}

.auth-alert p,
.auth-alert ul {
  margin: 6px 0 0;
}

.auth-alert ul {
  padding-left: 20px;
}

.auth-alert--error {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}

.auth-alert--info {
  border-color: #93c5fd;
  color: #1e3a8a;
  background: #eff6ff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: #64748b;
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #d8dee8;
  content: "";
}

.auth-provider-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: #1e293b;
  background: #fff;
  font-weight: 750;
  text-decoration: none;
}

.auth-provider-button:hover {
  background: #f8fafc;
}

.auth-provider-note {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.55;
}

.demo-credentials,
.demo-banner {
  border: 1px solid #67e8f9;
  border-radius: 0.9rem;
  background: #ecfeff;
  color: #164e63;
  padding: 1rem;
}

.demo-credentials {
  margin: 1.25rem 0;
}

.demo-credentials h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.demo-credentials p {
  margin: 0 0 0.75rem;
}

.demo-credentials dl,
.demo-credentials dl div {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.demo-credentials dl {
  gap: 0.5rem;
}

.demo-credentials dl div {
  grid-template-columns: 5rem 1fr;
}

.demo-credentials dt {
  font-weight: 700;
}

.demo-credentials dd {
  margin: 0;
}

.demo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.86rem;
}

.auth-links a {
  color: #0759a8;
  font-weight: 700;
}

.account-access-nav-form {
  display: inline-flex;
  margin: 0;
}

.account-access-nav-form button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-consent {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.6;
}

.auth-consent p,
.auth-consent ul {
  margin: 0;
}

.auth-consent ul {
  margin-top: 5px;
  padding-left: 19px;
}

.auth-status-card {
  text-align: center;
}

.auth-status-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 2rem;
  font-weight: 850;
}

.auth-status-mark--blocked {
  color: #b91c1c;
  background: #fee2e2;
}

.auth-account-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 26px 0 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  text-align: left;
}

.admin-header__account,
.admin-header__account form,
.account-security-page .admin-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header__account form,
.account-security-page .admin-header nav form {
  margin: 0;
}

.account-security {
  max-width: 1120px;
}

.account-security-summary {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.account-security-summary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.account-security-summary dl div {
  min-width: 0;
  padding: 12px 14px;
  background: #f8fafc;
}

.account-security-summary dt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.account-security-summary dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.account-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-security-grid .admin-section:last-child {
  grid-column: 1 / -1;
}

.account-security-grid .auth-form {
  margin-top: 18px;
}

.account-security-grid .auth-action-guide {
  margin-top: 14px;
}

.security-status {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.75rem;
}

.security-status--verified {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.security-status--warning {
  border-color: #fcd34d;
  color: #92400e;
  background: #fffbeb;
}

.account-security button:disabled,
.account-security input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-account-summary div {
  min-width: 0;
  padding: 13px;
}

.auth-account-summary div + div {
  border-left: 1px solid #e2e8f0;
}

.auth-account-summary dt {
  color: #64748b;
  font-size: 0.72rem;
}

.auth-account-summary dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 750;
}

.members-notice {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #86efac;
  color: #166534;
  background: #f0fdf4;
}

.members-table {
  min-width: 980px;
}

.member-secondary,
.member-email {
  color: #64748b;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.member-role,
.member-status {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.member-status--active {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.member-status--pending_approval {
  border-color: #fcd34d;
  color: #92400e;
  background: #fffbeb;
}

.member-status--rejected,
.member-status--suspended {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}

.member-actions {
  display: grid;
  min-width: 220px;
  gap: 10px;
}

.member-actions form {
  margin: 0;
}

.member-inline-form {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto;
  gap: 6px 8px;
  align-items: end;
}

.member-inline-form label {
  grid-column: 1 / -1;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
}

.member-inline-form select {
  min-height: 38px;
  padding: 6px 8px;
  font-size: 0.8rem;
}

.member-action-button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #64748b;
  border-radius: 4px;
  color: #334155;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.member-action-button--approve {
  border-color: #047857;
  color: #fff;
  background: #047857;
}

.member-action-button--danger {
  border-color: #dc2626;
  color: #b91c1c;
}

.members-warning {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid #d97706;
  color: #78350f;
  background: #fffbeb;
}

.members-warning h2,
.members-warning p {
  margin: 0;
}

.members-warning h2 {
  font-size: 1rem;
}

.members-warning p {
  margin-top: 6px;
  line-height: 1.6;
}

.page-header__actions,
.student-counseling-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.admin-header nav a {
  font-size: 0.84rem;
  font-weight: 750;
}

.role-dashboard__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #0f172a;
}

.role-dashboard__intro h1,
.role-dashboard__intro p {
  margin: 0;
}

.role-dashboard__lead {
  max-width: 820px;
  margin: 24px 0;
  color: #475569;
  line-height: 1.75;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.role-card-grid--single {
  grid-template-columns: minmax(280px, 520px);
}

.role-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #0759a8;
  border-radius: 5px;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: #0759a8;
  box-shadow: 0 10px 28px rgb(15 23 42 / 10%);
  transform: translateY(-2px);
}

.role-card > span {
  color: #0759a8;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.role-card h2 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
}

.role-card p {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.65;
}

.classroom-create-form,
.classroom-student-create,
.classroom-link-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.classroom-link-form {
  grid-template-columns: minmax(260px, 520px) minmax(220px, auto) auto;
  justify-content: start;
}

.classroom-share-scope {
  padding-left: 20px;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.65;
}

.classroom-share-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  font-size: 0.82rem;
}

.classroom-share-consent input {
  width: auto;
}

.classroom-student-create {
  grid-template-columns: minmax(180px, 1fr) auto;
  margin: 16px 0;
}

.classroom-create-form label,
.classroom-student-create label,
.classroom-link-form > label:not(.classroom-share-consent),
.student-course-grid label {
  display: grid;
  gap: 6px;
  color: #364458;
  font-size: 0.8rem;
  font-weight: 750;
}

.classroom-create-form input,
.classroom-student-create input,
.classroom-link-form input:not([type="checkbox"]),
.student-course-grid input,
.student-course-grid select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #aeb9c8;
  border-radius: 3px;
  color: #182233;
  background: #fff;
  font: inherit;
}

.classroom-create-form button,
.classroom-student-create button,
.classroom-link-form > button,
.student-course-entry > form > button,
.classroom-student-list button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #0759a8;
  border-radius: 4px;
  color: #fff;
  background: #0759a8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.classroom-student-list .danger-link {
  border-color: #dc2626;
  color: #b91c1c;
  background: #fff;
}

.classroom-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(480px, 1.4fr);
  gap: 20px;
  align-items: start;
}

.classroom-card {
  padding: 16px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #f8fafc;
}

.classroom-card + .classroom-card {
  margin-top: 14px;
}

.classroom-card > header,
.linked-classroom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.classroom-card h3,
.classroom-card p {
  margin: 0;
}

.classroom-card p,
.linked-classroom-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.8rem;
}

.classroom-student-list,
.record-course-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.classroom-student-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #d8dee8;
}

.classroom-student-list li.is-selected {
  border-left: 3px solid #0759a8;
  background: #eff6ff;
}

.classroom-student-list a {
  color: #0f172a;
  text-decoration: none;
}

.classroom-student-list a span,
.record-course-list span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.76rem;
  white-space: nowrap;
}

.record-course-list li + li {
  margin-top: 8px;
}

.connection-code-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, auto);
  gap: 20px;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  border: 2px solid #0f766e;
  color: #134e4a;
  background: #f0fdfa;
}

.connection-code-panel h2,
.connection-code-panel p {
  margin: 3px 0 0;
}

.connection-code-panel code {
  padding: 12px 15px;
  overflow-wrap: anywhere;
  border: 1px dashed #0f766e;
  background: #fff;
  font-weight: 800;
  user-select: all;
}

.student-course-entry {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8dee8;
}

.student-course-entry summary {
  cursor: pointer;
  font-weight: 800;
}

.student-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.student-course-grid .check-control {
  align-self: end;
  min-height: 42px;
}

.linked-classroom-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

@media (max-width: 980px) {
  .role-card-grid,
  .student-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classroom-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-header__inner {
    align-items: flex-start;
  }

  .landing-status > div,
  .landing-principles ul {
    grid-template-columns: 1fr;
  }

  .landing-status > div > div {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .landing-status > div > div:last-child {
    border-bottom: 0;
  }

  .auth-header {
    align-items: flex-start;
    padding-inline: 16px;
  }

  .auth-shell {
    margin-block: 24px;
    padding: 24px 20px;
  }

  .auth-links {
    display: grid;
  }

  .auth-action-guide {
    grid-template-columns: 1fr;
  }

  .auth-account-summary {
    grid-template-columns: 1fr;
  }

  .auth-account-summary div + div {
    border-top: 1px solid #e2e8f0;
    border-left: 0;
  }

  .admin-header__account,
  .admin-header__account form,
  .account-security-page .admin-header nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-security-grid {
    grid-template-columns: 1fr;
  }

  .account-security-grid .admin-section:last-child {
    grid-column: auto;
  }

  .role-dashboard__intro,
  .page-header,
  .linked-classroom-card,
  .classroom-card > header,
  .classroom-student-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header nav {
    justify-content: flex-start;
  }

  .role-card-grid,
  .role-card-grid--single,
  .student-course-grid,
  .classroom-create-form,
  .classroom-student-create,
  .classroom-link-form,
  .connection-code-panel {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: 0;
  }

  .page-header__actions {
    width: 100%;
  }

  .account-records-table-wrap {
    overflow: visible;
    border: 0;
  }

  .account-records-table,
  .account-records-table tbody,
  .account-records-table tr {
    display: block;
    width: 100%;
  }

  .account-records-table thead {
    display: none;
  }

  .account-records-table tr {
    border: 1px solid #cbd5e1;
    background: #fff;
  }

  .account-records-table tr + tr {
    margin-top: 14px;
  }

  .account-records-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 12px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid #e2e8f0;
  }

  .account-records-table td::before {
    color: #526174;
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 800;
  }

  .account-records-table td:last-child {
    border-bottom: 0;
  }

  .account-records-table__courses,
  .account-records-table__manage {
    grid-template-columns: 1fr !important;
  }

  .account-records-table__courses::before,
  .account-records-table__manage::before {
    margin-bottom: 2px;
  }

  .account-records-table .record-course-list span {
    white-space: normal;
  }
}
