/* Shared school interface and the student dashboard. Loaded after legacy styles. */
body.curriculum-app,
body.curriculum-app.advanced-motion {
  --page: #f4f6f8;
  --ink: #182a40;
  --muted: #677486;
  --line: #dfe5eb;
  --blue: #173b59;
  --blue-soft: #eef3f8;
  --teal: #137e7c;
  --teal-soft: #eaf5f3;
  --shadow: 0 8px 28px #17324d08;
  background: var(--page);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.curriculum-app::before,
body.curriculum-app.advanced-motion::before { height: 3px; background: #173b59; box-shadow: none; }
body.curriculum-app .page { width: min(1280px, calc(100% - 64px)); margin: 28px auto 40px; }
body.curriculum-app .skip-link { position: fixed; left: 20px; top: -80px; z-index: 1000; padding: 12px 18px; background: #fff; color: #173b59; border: 2px solid #137e7c; border-radius: 6px; }
body.curriculum-app .skip-link:focus { top: 12px; }
body.curriculum-app :focus-visible { outline: 3px solid #269d98; outline-offset: 3px; }
body.curriculum-app :is(button, input, select) { font: inherit; }
body.curriculum-app :is(input, select) { min-height: 46px; border-color: #cbd5df; border-radius: 7px; box-shadow: none; background: #fff; color: #182a40; }
body.curriculum-app label { font-size: 12px; font-weight: 700; color: #536278; margin-bottom: 7px; }
body.curriculum-app.advanced-motion .btn,
body.curriculum-app.advanced-motion .btn:not(.secondary):not(.ghost),
body.curriculum-app .btn { min-height: 44px; padding: 10px 17px; border-radius: 7px; background: #173b59 !important; border-color: #173b59; box-shadow: none; font-size: 13px; font-weight: 700; }
body.curriculum-app.advanced-motion .btn.secondary,
body.curriculum-app .btn.secondary { color: #314960; background: #fff !important; border-color: #d4dde6; }
body.curriculum-app .btn:hover,
body.curriculum-app .mode-btn:hover { transform: none; box-shadow: none !important; border-color: #137e7c; }
body.curriculum-app.advanced-motion .btn:not(.secondary):not(.ghost):hover { background: #225172 !important; }
body.curriculum-app .btn:disabled { opacity: .48; }
body.curriculum-app .badge { min-height: 24px; font-size: 11px; font-weight: 700; box-shadow: none !important; }
body.curriculum-app .badge.info { background: #edf2f7; border-color: #e0e7ed; color: #496177; }
body.curriculum-app .badge.good { background: #eaf5f2; border-color: #d1e9e3; color: #14705f; }
body.curriculum-app .badge.warn { background: #fff5e5; border-color: #f3e3c7; color: #96601a; }
body.curriculum-app.advanced-motion :is(.gate-card, .panel, .app-header, .modal-panel),
body.curriculum-app :is(.gate-card, .panel, .app-header, .modal-panel) { background: #fff; border: 1px solid #dfe5eb; box-shadow: none; border-radius: 10px; }
body.curriculum-app.advanced-motion :is(.gate-card, .panel, .app-header, .modal-panel):hover { border-color: #dfe5eb; }
body.curriculum-app .gate { min-height: calc(100vh - 105px); display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 80px; max-width: 1120px; }
body.curriculum-app .gate.hidden { display: none; }
.gate-intro { padding: 18px 0; }
.school-label { color: #14716f; font-weight: 700; font-size: 12px; letter-spacing: .04em; margin: 0 0 25px; }
.gate-intro h2 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.48; font-weight: 750; letter-spacing: -.065em; margin: 0 0 22px; color: #17324d; word-break: keep-all; }
.gate-description { margin: 0; font-size: 15px; color: #69788a; line-height: 1.9; }
.gate-features { margin: 39px 0 0; padding: 0; display: grid; gap: 25px; list-style: none; }
.gate-features li { display: flex; align-items: baseline; gap: 17px; }
.gate-features li > span { font-size: 11px; color: #1c8381; font-weight: 800; font-variant-numeric: tabular-nums; }
.gate-features strong { font-size: 14px; font-weight: 700; color: #344b60; }
.gate-features p { margin: 4px 0 0; color: #7a8694; font-size: 12px; }
.gate-signature { display: flex; align-items: center; gap: 12px; margin-top: 47px; font-size: 11px; color: #7f8c99; }
.gate-signature-line { display: block; width: 30px; height: 1px; background: #a1b3bd; }
body.curriculum-app .gate-card { width: 100%; max-width: 490px; padding: 34px; border-color: #dde4eb; box-shadow: 0 12px 40px #17324d06; }
body.curriculum-app .brand-row { gap: 16px; }
body.curriculum-app .logo-box,
body.curriculum-app.advanced-motion .logo-box { width: 62px !important; height: 62px !important; padding: 4px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
body.curriculum-app .gate-title { font-size: 23px; letter-spacing: -.05em; line-height: 1.3; }
body.curriculum-app .subline { margin-top: 7px; font-size: 12px; color: #82909e; }
body.curriculum-app .mode-row { gap: 10px; margin-top: 31px; grid-template-columns: 1fr 1fr; }
body.curriculum-app .mode-btn,
body.curriculum-app.advanced-motion .mode-btn { text-align: left; padding: 16px 14px; border: 1px solid #dbe2e9; background: #fff !important; color: #30475c; font-size: 14px; font-weight: 700; border-radius: 8px; box-shadow: none; }
body.curriculum-app .mode-btn span { font-size: 10px; font-weight: 400; margin-top: 5px; color: #7e8a99; white-space: normal; }
body.curriculum-app .mode-btn.active,
body.curriculum-app.advanced-motion .mode-btn.active { background: #edf6f4 !important; border-color: #248a84; box-shadow: 0 0 0 1px #248a84; color: #146d69; }
body.curriculum-app .mode-btn.active span { color: #568780; }
body.curriculum-app .auth-box { margin-top: 25px; padding: 22px 0 0; border: 0; border-top: 1px solid #e7ecf0; background: transparent; border-radius: 0; }
body.curriculum-app .auth-box h2 { font-size: 13px; color: #56687b; margin-bottom: 18px; }
body.curriculum-app .field-grid.two { grid-template-columns: 1fr 1fr; }
body.curriculum-app .actions { margin-top: 21px; gap: 9px; }
body.curriculum-app .actions .btn:last-child { flex: 1; }
body.curriculum-app .actions .btn.secondary { min-width: 80px; }
.gate-help { margin: 27px 0 0; padding-top: 19px; border-top: 1px solid #edf0f3; text-align: center; font-size: 11px; color: #8893a0; }
body.curriculum-app .gate-status:empty { display: none; }
body.curriculum-app .gate-status { font-size: 12px; margin-top: 18px; }
body.curriculum-app .app-header { padding: 20px 24px; margin: 0; gap: 18px; overflow: visible; border-color: #e0e6ec; }
body.curriculum-app .app-header::before { display: none; }
body.curriculum-app .app-logo { align-self: start; margin-top: 1px; }
.app-school { display: block; font-size: 10px; color: #698094; font-weight: 700; letter-spacing: .03em; margin-bottom: 3px; }
body.curriculum-app .app-title { font-size: 22px; letter-spacing: -.055em; line-height: 1.3; color: #17324d; text-shadow: none; }
body.curriculum-app .mode-text { font-size: 11px; margin: 4px 0 0; color: #7a8897; }
body.curriculum-app .toolbar { gap: 7px; margin-top: 17px; }
body.curriculum-app .app-header .toolbar .btn { min-height: 34px; padding: 6px 12px; font-size: 11px; }
body.curriculum-app .app-header #changeModeBtn { margin-right: 8px; border-color: transparent; background: #f3f5f7 !important; color: #718093; }
body.curriculum-app #teacherTools { margin-top: 20px; padding: 23px 25px; }
body.curriculum-app #teacherTools h3 { font-size: 15px; margin: 0; }
.tools-description { font-size: 12px; color: #7b8796; margin: 5px 0 0; }
body.curriculum-app .tools-grid { gap: 18px 35px; }
body.curriculum-app #teacherTools .section-title { margin-bottom: 21px; }
body.curriculum-app #status { font-size: 12px; box-shadow: none; margin: 18px 0 0; padding: 10px 14px; border-radius: 6px; }
body.curriculum-app #status:empty { display: none; }
body.curriculum-app .result { margin-top: 25px; }
body.curriculum-app .site-footer,
body.curriculum-app.advanced-motion .site-footer { margin: 30px auto 20px; background: none; font-size: 10px; color: #8b97a4; }
body.curriculum-app .modal-head { background: #173b59; }
body.curriculum-app .modal-panel { max-height: 92vh; }
body.curriculum-app .modal-body { background: #f7f9fb; }
body.curriculum-app .table-wrap { border: 1px solid #e3e8ee; border-radius: 7px; box-shadow: none !important; }
body.curriculum-app th,
body.curriculum-app.advanced-motion th { background: #f3f6f8; color: #53677a; font-size: 11px; font-weight: 700; }
body.curriculum-app td { color: #405368; font-size: 12px; border-bottom-color: #edf0f3; }
body.curriculum-app .metric,
body.curriculum-app .metric.neutral,
body.curriculum-app .metric.good,
body.curriculum-app .metric.warn,
body.curriculum-app .metric.bad,
body.curriculum-app .group-credit-card { background: #fff; }

.student-dashboard { display: grid; gap: 22px; }
.dashboard-overview { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 3px 0 1px; }
.dashboard-eyebrow { display: block; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #8391a1; margin: 0 0 7px; }
.dashboard-overview h2 { margin: 0; color: #19354d; font-size: 28px; letter-spacing: -.045em; font-weight: 750; }
.dashboard-overview h2 > span { font-size: 22px; margin-left: 3px; font-weight: 400; color: #5b6c7e; }
.dashboard-student-meta { display: flex; gap: 16px; margin: 9px 0 0; font-size: 12px; color: #8a96a3; }
.dashboard-student-meta strong { margin-left: 5px; font-weight: 600; color: #6b7b8d; }
.dashboard-overview-status { text-align: right; }
.dashboard-overview-status p { margin: 8px 0 0; color: #95a0ac; font-size: 10px; }
.dashboard-mark { display: inline-flex; flex-shrink: 0; gap: 6px; align-items: center; color: #785c32; background: #fff6e7; border-radius: 5px; padding: 5px 8px; font-size: 10px; line-height: 1.3; font-weight: 600; white-space: nowrap; }
.dashboard-mark i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.dashboard-mark.is-good { color: #247c6a; background: #edf7f3; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dfe5eb; border-radius: 9px; background: #fff; overflow: hidden; }
.dashboard-kpis article { padding: 20px 24px; border-right: 1px solid #e7ecf0; }
.dashboard-kpis article:last-child { border-right: 0; }
.dashboard-kpis article > span { font-size: 11px; font-weight: 600; color: #758497; }
.dashboard-kpis strong { display: block; margin-top: 7px; font-size: 27px; font-weight: 700; color: #21435b; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dashboard-kpis small { color: #9aa5b1; font-size: 11px; font-weight: 400; margin-left: 5px; }
.dashboard-kpis p { color: #8f9aaa; font-size: 10px; margin: 4px 0 0; }
.dashboard-main-grid { display: grid; grid-template-columns: 1.28fr 1fr; gap: 22px; align-items: start; }
.dashboard-primary,
.dashboard-secondary { display: grid; gap: 22px; min-width: 0; }
.dashboard-panel { background: #fff; border: 1px solid #dfe5eb; border-radius: 9px; padding: 23px 25px; min-width: 0; scroll-margin-top: 20px; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dashboard-panel-heading h3 { font-size: 15px; letter-spacing: -.015em; font-weight: 700; margin: 0; color: #233f55; }
.dashboard-panel-heading .dashboard-eyebrow { margin-bottom: 5px; font-size: 8px; }
.dashboard-unit { color: #99a3ae; font-size: 10px; white-space: nowrap; }
.dashboard-credit-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.dashboard-credit-summary p { font-size: 11px; color: #7c8a9a; margin: 0; }
.dashboard-credit-summary strong { display: block; font-size: 35px; letter-spacing: -.035em; color: #1a756e; font-variant-numeric: tabular-nums; margin: 5px 0; }
.dashboard-credit-summary strong > span { font-size: 15px; color: #9aa6b1; font-weight: 400; letter-spacing: -.02em; }
.dashboard-credit-summary p.dashboard-credit-caption { font-size: 11px; color: #8393a1; margin-top: 8px; }
.dashboard-ring { position: relative; width: 105px; height: 105px; flex-shrink: 0; }
.dashboard-ring svg { width: 100%; height: 100%; }
.dashboard-ring circle { fill: none; stroke-width: 8px; }
.dashboard-ring .ring-track { stroke: #edf2f2; }
.dashboard-ring .ring-fill { stroke: #268d83; stroke-linecap: round; }
.dashboard-ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 700; color: #3a6970; }
.dashboard-ring small { font-size: 12px; margin: 4px 0 0 2px; color: #88a2a5; font-weight: 400; }
.dashboard-requirement-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid #edf0f3; gap: 15px; color: #647588; font-size: 11px; }
.dashboard-footnote { font-size: 10px; color: #8e9baa; line-height: 1.8; margin: 13px 0 0; }
.dashboard-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 25px; }
.dashboard-group { min-width: 0; }
.dashboard-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #50667a; }
.dashboard-group-heading strong { font-size: 11px; font-weight: 600; }
.dashboard-group-heading > span { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-group-heading small { color: #9ba7b4; font-weight: 400; font-size: 10px; }
.dashboard-meter { height: 5px; border-radius: 4px; background: #eef2f4; overflow: hidden; margin: 9px 0 0; }
.dashboard-meter > span { display: block; height: 100%; background: #42938b; border-radius: inherit; }
.dashboard-group.needs-review .dashboard-meter > span,
.dashboard-meter.is-over > span { background: #cfa462; }
.dashboard-group p { color: #93a0ad; font-size: 9px; margin: 5px 0 0; }
.dashboard-group.needs-review p { color: #b28b53; }
.dashboard-chart { display: block; width: 100%; margin: -6px 0 0; overflow: visible; }
.chart-grid { stroke: #edf1f5; stroke-width: 1; }
.chart-axis { fill: #93a0ae; font-size: 12px; }
.chart-value { fill: #416577; font-weight: 600; font-size: 14px; }
.chart-bar { fill: #4b9895; }
.dashboard-chart-note { color: #96a3af; font-size: 9px; margin: 3px 0 0; }
.dashboard-kme-number { font-size: 27px; color: #234a62; letter-spacing: -.035em; margin: 0; font-weight: 700; }
.dashboard-kme-number > span { font-size: 13px; font-weight: 400; color: #93a1b0; }
.dashboard-kme .dashboard-panel-heading { margin-bottom: 15px; }
.dashboard-kme .dashboard-meter { margin-top: 15px; }
.dashboard-next-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 19px; }
.dashboard-next-list > li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.dashboard-step-number { color: #44968f; font-size: 9px; font-weight: 700; padding-top: 3px; }
.dashboard-next-list a,
.dashboard-next-list button { font-size: 11px; line-height: 1.6; color: #416278; text-decoration: none; border: none; background: none; padding: 0; cursor: pointer; text-align: left; font-weight: 600; }
.dashboard-next-list a:hover,
.dashboard-next-list button:hover { color: #137e7c; text-decoration: underline; }
.dashboard-next-list p { font-size: 10px; color: #93a0ad; line-height: 1.75; margin: 5px 0 0; }
.dashboard-issues-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 28px; }
.dashboard-issue { min-width: 0; border-top: 1px solid #edf0f3; }
.dashboard-issue summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; color: #52677b; font-size: 11px; cursor: pointer; }
.dashboard-issue summary::-webkit-details-marker { display: none; }
.dashboard-issue-count { display: flex; align-items: center; gap: 15px; font-size: 10px; color: #9aa8b2; white-space: nowrap; }
.dashboard-issue-count > span { font-size: 14px; color: #aab5be; }
.dashboard-issue.has-issues .dashboard-issue-count { color: #b08545; }
.dashboard-issue[open] .dashboard-issue-count > span { transform: rotate(180deg); }
.dashboard-issue-body { margin: 0 0 14px; padding: 12px 14px; background: #f8fafb; border-radius: 6px; }
.dashboard-issue.has-issues .dashboard-issue-body { background: #fdf9f2; }
.dashboard-issue-body p { margin: 0; font-size: 10px; color: #8995a3; line-height: 1.7; }
.dashboard-issue-body ul { margin: 9px 0 0; padding-left: 16px; color: #8e7756; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.dashboard-advisory { margin-top: 17px; padding: 15px 18px; background: #f0f7f7; border-left: 3px solid #7db1ad; border-radius: 4px; color: #507a7a; }
.dashboard-advisory strong { font-size: 12px; }
.dashboard-advisory p { margin: 5px 0 0; font-size: 11px; color: #759292; }
.dashboard-advisory ul { padding-left: 17px; margin: 8px 0 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.dashboard-courses .dashboard-panel-heading .btn { font-size: 10px; min-height: 33px; padding: 6px 10px; }
.dashboard-semester-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e4e9ef; margin-bottom: 21px; }
.dashboard-semester-tabs button { min-height: 40px; padding: 9px 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 11px; font-weight: 500; color: #8a98a6; cursor: pointer; }
.dashboard-semester-tabs button[aria-pressed="true"] { color: #147d77; font-weight: 700; border-bottom-color: #258e85; }
.dashboard-semester-section + .dashboard-semester-section { margin-top: 23px; }
.dashboard-semester-section[hidden] { display: none; }
.dashboard-semester-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; gap: 14px; }
.dashboard-semester-heading h4 { margin: 0; font-size: 12px; color: #60748a; font-weight: 700; }
.dashboard-semester-heading > span { font-size: 10px; color: #93a1af; }
.dashboard-semester-heading i { margin: 0 6px; font-style: normal; }
.dashboard-empty { color: #91a0ae; font-size: 12px; padding: 12px 0; }
.dashboard-requirement-row,
.dashboard-group-heading strong,
.dashboard-next-list a,
.dashboard-next-list button,
.dashboard-issue summary,
.dashboard-issue-body ul { font-size: 12px; }
.dashboard-footnote,
.dashboard-group p,
.dashboard-chart-note,
.dashboard-next-list p,
.dashboard-issue-body p { font-size: 11px; }

@media (min-width: 1400px) {
  body.curriculum-app .gate { gap: 110px; }
}
@media (max-width: 1000px) {
  body.curriculum-app .gate { gap: 35px; grid-template-columns: 1fr 1fr; }
  .gate-intro h2 { font-size: 31px; }
  body.curriculum-app .gate-card { padding: 26px; }
  .dashboard-main-grid { grid-template-columns: 1.13fr 1fr; gap: 18px; }
  .dashboard-panel { padding: 21px; }
  .dashboard-groups { gap: 19px; }
  .dashboard-kpis article { padding: 19px; }
}
@media (max-width: 800px) {
  body.curriculum-app .page { width: calc(100% - 34px); margin-top: 19px; }
  body.curriculum-app .gate { grid-template-columns: 1fr; gap: 26px; max-width: 490px; min-height: auto; margin-top: 45px; }
  .gate-intro { width: 100%; padding: 0; }
  .school-label { margin-bottom: 17px; }
  .gate-intro h2 { font-size: 30px; margin-bottom: 12px; }
  .gate-description { font-size: 13px; }
  .gate-features,
  .gate-signature { display: none; }
  body.curriculum-app .gate-card { max-width: none; padding: 28px; }
  .dashboard-main-grid { grid-template-columns: 1fr; }
  .dashboard-secondary { grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
  .dashboard-secondary .dashboard-next { grid-column: 1 / -1; }
  .dashboard-next-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
  .dashboard-kpis article:nth-child(2) { border-right: 0; }
  .dashboard-kpis article:nth-child(-n+2) { border-bottom: 1px solid #e7ecf0; }
  .dashboard-overview h2 { font-size: 26px; }
  .dashboard-overview h2 > span { font-size: 19px; }
}
@media (max-width: 600px) {
  body.curriculum-app .app-header { padding: 18px; gap: 11px; }
  body.curriculum-app .app-logo { width: 44px !important; height: 44px !important; }
  body.curriculum-app .app-title { font-size: 21px; }
  body.curriculum-app .toolbar { flex-direction: row; align-items: center; gap: 5px; }
  body.curriculum-app .toolbar .btn { width: auto; }
  body.curriculum-app .app-header .toolbar .btn { font-size: 10px; padding: 6px 9px; }
  body.curriculum-app .app-header #changeModeBtn { margin-right: 0; }
  body.curriculum-app #teacherTools { padding: 20px 18px; }
  body.curriculum-app .select-row { flex-direction: row; align-items: end; }
  body.curriculum-app .select-row > div { min-width: 160px; }
  body.curriculum-app .select-row .btn { width: auto; flex: 1 1 auto; }
  body.curriculum-app .mode-row { grid-template-columns: 1fr 1fr; }
  body.curriculum-app .actions { flex-direction: row; align-items: stretch; }
  body.curriculum-app .actions .btn { width: auto; }
  body.curriculum-app .gate-card { padding: 24px; }
  body.curriculum-app .brand-row { gap: 11px; }
  body.curriculum-app .gate-title { font-size: 22px; }
  body.curriculum-app .gate-card .logo-box { width: 52px !important; height: 52px !important; }
  body.curriculum-app .result { margin-top: 23px; }
  .student-dashboard { gap: 17px; }
  .dashboard-overview { align-items: start; gap: 16px; flex-direction: column; }
  .dashboard-overview-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
  .dashboard-overview-status p { margin: 0; font-size: 9px; }
  .dashboard-panel { padding: 20px 18px; }
  .dashboard-panel-heading { gap: 10px; margin-bottom: 17px; }
  .dashboard-panel-heading h3 { font-size: 14px; }
  .dashboard-secondary { grid-template-columns: 1fr; }
  .dashboard-kpis article { padding: 17px 18px; }
  .dashboard-kpis strong { font-size: 26px; }
  .dashboard-chart { max-height: 200px; }
  .dashboard-next-list { grid-template-columns: 1fr; }
  .dashboard-issues-grid { grid-template-columns: 1fr; }
  .dashboard-credit-summary strong { font-size: 32px; }
  .dashboard-credit-summary strong > span { font-size: 13px; }
  .dashboard-ring { width: 90px; height: 90px; }
  .dashboard-groups { gap: 21px 22px; }
  .dashboard-semester-tabs { gap: 0; flex-wrap: nowrap; overflow-x: auto; }
  .dashboard-semester-tabs button { white-space: nowrap; flex: 1 0 auto; padding: 10px 12px; }
  .dashboard-courses .dashboard-panel-heading .btn { width: auto; font-size: 9px; padding: 6px 8px; }
}
/* Keep the combined subject area readable on narrow screens. */
.dashboard-group.is-combined { grid-column: 1 / -1; }
.dashboard-group-description { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; line-height: 1.6; color: #667787; }

/* Keep all five subject summaries visible before the disclosure control. */
.student-dashboard.curriculum-board #dashboard-groups > summary { flex-wrap: wrap; gap: 12px 18px; }
.student-dashboard.curriculum-board #dashboard-groups > summary > strong { flex-shrink: 0; }
.student-dashboard.curriculum-board #dashboard-groups .board-group-preview { order: 0; min-width: 0; flex: 1 1 460px; justify-content: space-around; gap: 8px 18px; }
.student-dashboard.curriculum-board #dashboard-groups > summary > :is(.dashboard-mark, .board-disclosure-caption, .board-chevron) { flex-shrink: 0; }
.student-dashboard.curriculum-board #dashboard-groups > summary > .board-chevron { margin-left: 0; }
@media (max-width: 900px) {
  .student-dashboard.curriculum-board #dashboard-groups > summary > strong,
  .student-dashboard.curriculum-board #dashboard-groups .board-group-preview { flex-basis: 100%; }
  .student-dashboard.curriculum-board #dashboard-groups .board-group-preview { justify-content: flex-start; }
}

.student-dashboard.curriculum-board .board-composition { margin: 0 0 27px; padding: 0 0 25px; border-bottom: 1px solid #e8e3ec; color: #252943; }
.student-dashboard.curriculum-board .board-composition figcaption h3 { margin: 0; font-size: calc(19px * var(--reading-scale, 1)); font-weight: 700; letter-spacing: -.025em; }
.student-dashboard.curriculum-board .board-composition figcaption p { margin: 6px 0 0; color: #766e82; font-size: calc(14px * var(--reading-scale, 1)); line-height: 1.65; }
.student-dashboard.curriculum-board .board-composition-layout { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); align-items: center; gap: 24px 42px; margin-top: 20px; }
.student-dashboard.curriculum-board .board-composition-chart { position: relative; width: 100%; max-width: 240px; justify-self: center; }
.student-dashboard.curriculum-board .board-composition-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.student-dashboard.curriculum-board .board-composition-total { position: absolute; inset: 23%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; color: #766e82; font-size: calc(13px * var(--reading-scale, 1)); line-height: 1.45; }
.student-dashboard.curriculum-board .board-composition-total strong { color: #252943; font-size: calc(32px * var(--reading-scale, 1)); font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.student-dashboard.curriculum-board .board-composition-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
.student-dashboard.curriculum-board .board-composition-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-width: 0; padding: 10px 0; border-bottom: 1px solid #efecf2; font-size: calc(14px * var(--reading-scale, 1)); line-height: 1.5; }
.student-dashboard.curriculum-board .board-composition-swatch { width: 9px; height: 9px; border-radius: 3px; background: var(--group-color); }
.student-dashboard.curriculum-board .board-composition-name { min-width: 0; overflow-wrap: anywhere; font-weight: 550; }
.student-dashboard.curriculum-board .board-composition-credit { color: #7b7286; white-space: nowrap; font-variant-numeric: tabular-nums; }
.student-dashboard.curriculum-board .board-composition-share { min-width: 47px; text-align: right; color: #252943; font-size: calc(15px * var(--reading-scale, 1)); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.student-dashboard.curriculum-board .board-composition-legend small { font: inherit; font-size: .85em; font-weight: 400; margin-left: 2px; }
.student-dashboard.curriculum-board .board-composition-note { margin: 17px 0 0; color: #81798b; font-size: calc(13px * var(--reading-scale, 1)); line-height: 1.75; }
.student-dashboard.curriculum-board .board-composition-empty { margin: 0; color: #7b7286; font-size: calc(15px * var(--reading-scale, 1)); line-height: 1.85; }
@media (max-width: 1000px) {
  .student-dashboard.curriculum-board .board-composition-layout { grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 24px; }
  .student-dashboard.curriculum-board .board-composition-legend { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .student-dashboard.curriculum-board .board-composition-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .student-dashboard.curriculum-board .board-composition-chart { max-width: 210px; }
  .student-dashboard.curriculum-board .board-composition-legend li { gap: 10px; }
  .student-dashboard.curriculum-board .board-composition-empty { text-align: center; }
}
