:root {
  --bg: #07151a;
  --sidebar: #091d23;
  --panel: rgba(14, 39, 46, 0.92);
  --panel-2: rgba(18, 49, 56, 0.94);
  --line: rgba(125, 207, 198, 0.15);
  --line-strong: rgba(111, 222, 206, 0.34);
  --text: #edf7f4;
  --muted: #91adaa;
  --teal: #54dbc5;
  --cyan: #57bfe5;
  --gold: #f2bf66;
  --orange: #ee8d68;
  --red: #ef7f81;
  --purple: #a693e8;
  --green: #69d29e;
  --radius: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 1180px; min-height: 100%; margin: 0; color: var(--text); background: var(--bg); }
body { background: radial-gradient(circle at 74% -20%, rgba(44, 131, 128, 0.18), transparent 42%), var(--bg); }
button, select, input { font: inherit; }
button, select { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; padding: 22px 16px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, #0a2229 0%, #071920 100%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  border: 0;
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: .08em; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.identity-card { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(84, 219, 197, 0.045); }
.identity-card label, .role-scope label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.identity-card select, .role-scope select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 9px; background: #0b2931; outline: none; }
.role-scope { margin-top: 10px; }
.identity-card p { margin: 9px 0 0; color: #769895; font-size: 9px; line-height: 1.55; }

.main-nav { margin-top: 18px; display: grid; gap: 5px; }
.nav-item { width: 100%; height: 43px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 11px; color: #abc2bf; background: transparent; cursor: pointer; text-align: left; }
.nav-item i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(134, 199, 191, .18); border-radius: 7px; color: #84aba7; font-size: 10px; font-style: normal; }
.nav-item:hover { color: var(--text); background: rgba(84, 219, 197, .06); }
.nav-item.active { color: #f7fffd; background: linear-gradient(90deg, rgba(84, 219, 197, .18), rgba(84, 219, 197, .04)); box-shadow: inset 3px 0 var(--teal); }
.nav-item.active i { color: var(--teal); border-color: rgba(84, 219, 197, .36); }
.nav-item[hidden] { display: none; }
.sidebar-foot { margin-top: auto; padding: 15px 8px 0; border-top: 1px solid var(--line); }
.sidebar-foot a { color: var(--teal); font-size: 11px; text-decoration: none; }
.sidebar-foot a span { margin-left: 5px; }
.sidebar-foot small { display: block; margin-top: 10px; color: #6f908d; font-size: 9px; line-height: 1.5; }

.workspace { min-width: 0; padding: 24px 28px 34px; }
.workspace-sticky {
  position: sticky;
  z-index: 30;
  top: 0;
  margin: -24px -28px 0;
  padding: 24px 28px 0;
  background: linear-gradient(180deg, rgba(7, 21, 26, .995) 0%, rgba(7, 21, 26, .985) 88%, rgba(7, 21, 26, .94) 100%);
  box-shadow: 0 12px 28px rgba(1, 10, 13, .3);
}
.workspace-head { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin-bottom: 5px; color: var(--teal); font-size: 10px; letter-spacing: .12em; }
.workspace-head h1 { margin: 0; font-size: 27px; letter-spacing: .03em; }
.head-actions { display: flex; align-items: center; gap: 14px; }
.freshness { padding-right: 14px; border-right: 1px solid var(--line); text-align: right; }
.freshness span, .freshness strong { display: block; }
.freshness span { color: var(--muted); font-size: 9px; }
.freshness strong { margin-top: 3px; color: #dbe9e6; font-size: 11px; font-weight: 500; }
.button { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong); cursor: pointer; }
.button.secondary { color: var(--teal); background: rgba(84, 219, 197, .06); }
.button:hover { border-color: var(--teal); }

.filter-bar { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 31, 37, .72); }
.hierarchy-filter { display: grid; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid rgba(125, 207, 198, .1); }
.hierarchy-row { min-height: 34px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 9px; }
.hierarchy-label { color: #b8ceca; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.hierarchy-options { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hierarchy-button { min-width: 58px; height: 30px; padding: 0 11px; border: 1px solid rgba(130, 190, 183, .16); border-radius: 8px; color: #91adaa; background: rgba(11, 37, 44, .72); cursor: pointer; font-size: 10px; transition: color .15s, border-color .15s, background .15s; }
.hierarchy-button:hover { color: var(--text); border-color: var(--line-strong); }
.hierarchy-button.active { color: #05211f; border-color: var(--teal); background: var(--teal); font-weight: 700; box-shadow: 0 3px 12px rgba(84, 219, 197, .14); }
.hierarchy-placeholder { color: #6f908d; font-size: 9px; }
.secondary-filters { padding-top: 11px; display: grid; grid-template-columns: minmax(100px, .72fr) minmax(180px, 1.35fr) repeat(3, minmax(120px, 1fr)) 72px; gap: 9px; align-items: end; }
.filter-bar.compact .hierarchy-filter { padding-bottom: 0; border-bottom: 0; }
.filter-bar.no-hierarchy .hierarchy-filter { display: none; }
.filter-bar.no-secondary .secondary-filters { display: none; }
.filter-item[hidden], .hierarchy-row[hidden] { display: none !important; }
.filter-item label { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: 9px; }
.filter-item select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid rgba(130, 190, 183, .2); border-radius: 8px; background: #0b252c; outline: none; font-size: 11px; }
.filter-item select:disabled { opacity: .45; }
.reset-button { height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.reset-button:hover { color: var(--text); border-color: var(--line-strong); }

.page-content { margin-top: 16px; min-height: 560px; }
.student-search { min-height: 46px; padding: 6px 8px 6px 13px; display: grid; grid-template-columns: 20px minmax(220px, 1fr) auto auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,31,37,.72); }
.student-search > span { color: var(--teal); font-size: 20px; }
.student-search input { height: 32px; padding: 0 8px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.student-search input::placeholder { color: #6f908d; }
.student-search em { color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.student-search button { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--teal); background: rgba(84,219,197,.05); cursor: pointer; font-size: 9px; }
.kpi-card.actionable { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.kpi-card.actionable:hover, .kpi-card.actionable:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(0,0,0,.2); outline: none; }
.kpi-card.actionable p::after { content: " ↗"; color: var(--accent); }
.teacher-search { min-height: 48px; margin: 2px 0 12px; padding: 7px 9px 7px 13px; display: grid; grid-template-columns: 20px minmax(180px, 320px) auto auto auto; align-items: center; justify-content: start; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,31,37,.72); }
.teacher-search > span { color: var(--teal); font-size: 20px; }
.teacher-search input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid rgba(108,177,169,.24); border-radius: 8px; outline: 0; color: var(--text); background: rgba(5,22,27,.68); font-size: 11px; }
.teacher-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(84,219,197,.1); }
.teacher-search input::placeholder { color: #769693; }
.teacher-search em { min-width: 64px; color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }
.teacher-search button { height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); background: rgba(84,219,197,.05); cursor: pointer; font-size: 10px; }
.teacher-search button.primary { border-color: rgba(84,219,197,.42); color: #062129; background: var(--teal); font-weight: 700; }
.panel-head .teacher-search {
  min-height: 34px;
  margin: 0;
  padding: 0;
  grid-template-columns: 18px minmax(150px, 260px) auto auto auto;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.panel-head .teacher-search > span { font-size: 18px; }
.panel-head .teacher-search input { height: 32px; }
.panel-head .teacher-search button { height: 30px; padding-inline: 10px; }
.section-title { margin: 24px 0 10px; display: flex; align-items: end; justify-content: space-between; }
.section-title:first-child { margin-top: 0; }
.section-title h2 { margin: 0; font-size: 16px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.section-title span { color: var(--muted); font-size: 9px; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.teacher-overview-kpi-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kpi-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(18, 49, 56, .95), rgba(9, 29, 35, .94)); box-shadow: 0 14px 36px rgba(0, 7, 10, .16); }
.kpi-card { min-height: 112px; padding: 15px; position: relative; overflow: hidden; }
.kpi-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent, var(--teal)); }
.kpi-card label { color: #a8bfbc; font-size: 10px; }
.kpi-card strong { display: block; margin-top: 11px; font: 700 27px/1 "DIN Alternate", "Arial Narrow", sans-serif; }
.kpi-card strong small { margin-left: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.kpi-card p { margin: 9px 0 0; color: #779a97; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teacher-split-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.teacher-split-kpi-main { min-width: 0; }
.teacher-split-kpi-breakdown { min-width: 92px; padding-left: 11px; display: grid; gap: 8px; border-left: 1px solid var(--line); }
.teacher-split-kpi-breakdown span { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 5px; white-space: nowrap; }
.teacher-split-kpi-breakdown i { width: 7px; height: 7px; border-radius: 50%; background: var(--card-accent); }
.teacher-split-kpi-breakdown em { color: var(--muted); font-size: 9px; font-style: normal; }
.teacher-split-kpi-breakdown b { color: var(--text); font-size: 10px; }

.dashboard-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.panel { min-width: 0; min-height: 280px; padding: 15px; }
.panel.span-8 { grid-column: span 8; }
.panel.span-7 { grid-column: span 7; }
.panel.span-6 { grid-column: span 6; }
.panel.span-5 { grid-column: span 5; }
.panel.span-4 { grid-column: span 4; }
.panel.span-12 { grid-column: span 12; }
.panel-head { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.panel-note { padding-top: 4px; color: #789895; font-size: 9px; white-space: nowrap; }
.panel-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.segmented-control { display: inline-flex; padding: 2px; border: 1px solid rgba(125,207,198,.16); border-radius: 9px; background: rgba(3,18,23,.42); }
.segment-button { min-width: 34px; height: 25px; padding: 0 8px; border: 0; border-radius: 6px; color: #7f9e9a; background: transparent; cursor: pointer; font-size: 9px; transition: color .15s, background .15s, box-shadow .15s; }
.segment-button:hover { color: var(--text); background: rgba(84,219,197,.06); }
.segment-button.active { color: #05211f; background: var(--teal); box-shadow: 0 3px 10px rgba(84,219,197,.16); font-weight: 700; }
.chart-box { height: 224px; margin-top: 8px; }
.chart-box.tall { height: 280px; }
.chart-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.chart-grid-line { stroke: rgba(145, 173, 170, .12); stroke-width: 1; }
.chart-axis { fill: #88a7a4; font-size: 9px; }
.chart-label { fill: #dceae7; font-size: 10px; }
.chart-value { fill: #f4fbf9; font-size: 9px; font-weight: 700; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { opacity: .09; }
.chart-dot { stroke: #102b31; stroke-width: 2; }
.legend { margin-top: 5px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--muted); font-size: 9px; }
.legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.legend-item { padding: 4px 6px; border: 0; border-radius: 6px; color: inherit; background: transparent; font-size: 9px; }
.legend.interactive .legend-item { cursor: pointer; }
.legend.interactive .legend-item:hover { color: var(--text); background: rgba(84,219,197,.055); }
.legend-item.inactive { opacity: .34; text-decoration: line-through; }
.chart-action { cursor: pointer; }
.chart-action:hover rect:nth-of-type(2) { opacity: 1; filter: brightness(1.16); }

.donut-wrap { height: 224px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.donut-wrap svg { width: 100%; height: 100%; }
.donut-legend { display: grid; gap: 8px; }
.donut-row { display: grid; grid-template-columns: 9px 34px 1fr auto; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; }
.donut-row i { width: 8px; height: 8px; border-radius: 50%; }
.donut-row strong { color: var(--text); font-size: 10px; }
.donut-row em { color: var(--muted); font-style: normal; }
.dimension-score-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.dimension-score-list span { display: grid; grid-template-columns: 7px auto; align-items: center; gap: 3px 5px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 8px; }
.dimension-score-list i { width: 6px; height: 6px; border-radius: 50%; }
.dimension-score-list strong { grid-column: 1 / -1; color: var(--text); font-size: 10px; }
.dimension-score-list em { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-style: normal; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 10px; }
.data-table th { height: 34px; padding: 0 9px; color: #88a8a4; font-weight: 500; text-align: left; border-bottom: 1px solid var(--line); }
.data-table td { height: 37px; padding: 0 9px; color: #d8e6e3; border-bottom: 1px solid rgba(125, 207, 198, .075); }
.data-table tbody tr { cursor: default; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr:hover { background: rgba(84, 219, 197, .045); }
.data-table td.num, .data-table th.num { text-align: right; }
.data-table .muted { color: var(--muted); }
.table-scroll { max-height: 440px; overflow: auto; }
.student-analysis-table { width: 100%; max-height: 560px; overflow: auto; }
.student-analysis-table .data-table { min-width: 1280px; }
.student-analysis-table .data-table thead { position: sticky; top: 0; z-index: 4; background: #102f37; box-shadow: 0 1px 0 var(--line); }
.student-analysis-controls { min-height: 66px; margin-bottom: 10px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(125,207,198,.16); border-radius: 13px; background: rgba(11,38,45,.72); }
.student-mode-tabs { display: inline-flex; padding: 3px; border: 1px solid rgba(125,207,198,.18); border-radius: 10px; background: rgba(3,18,23,.48); }
.student-mode-tabs button { min-width: 104px; height: 34px; padding: 0 14px; border: 0; border-radius: 7px; color: #8eaaa6; background: transparent; cursor: pointer; font-size: 11px; transition: color .15s, background .15s, box-shadow .15s; }
.student-mode-tabs button:hover { color: var(--text); background: rgba(84,219,197,.06); }
.student-mode-tabs button.active { color: #05211f; background: var(--teal); box-shadow: 0 4px 12px rgba(84,219,197,.16); font-weight: 700; }
.student-analysis-controls.semester-only .student-mode-tabs { width: 100%; }
.student-analysis-controls.semester-only .student-mode-tabs button { flex: 1; }
.student-mode-period { min-width: 260px; display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 4px 9px; }
.student-mode-period > span { color: var(--muted); font-size: 9px; }
.student-mode-period > strong { font-size: 12px; text-align: right; }
.student-mode-period > select { min-width: 230px; height: 34px; padding: 0 30px 0 10px; border: 1px solid rgba(108,177,169,.24); border-radius: 8px; color: var(--text); background: #0a252c; font-size: 10px; }
.student-mode-period > small { grid-column: 1 / -1; color: #789895; font-size: 8px; text-align: right; }
.student-comparison-subject { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.student-comparison-subject > select { min-width: 126px; height: 31px; padding: 0 28px 0 9px; border: 1px solid rgba(108,177,169,.24); border-radius: 8px; color: var(--text); background: #0a252c; font-size: 10px; }
.student-analysis-table.comparison-table .data-table { min-width: 1180px; }
.student-analysis-table.subject-comparison-table .data-table { min-width: 900px; table-layout: fixed; }
.student-analysis-table.semester-subject-table .data-table { min-width: 900px; table-layout: fixed; }
.change-value.positive { color: var(--teal); font-weight: 700; }
.change-value.negative { color: #ef9b83; font-weight: 700; }
.student-sort-column { min-width: 76px; }
.dimension-column { min-width: 94px; }
.student-sort-button { width: 100%; display: inline-grid; grid-template-columns: minmax(0, 1fr) 14px; align-items: center; justify-items: stretch; gap: 0 5px; padding: 4px 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; text-align: right; }
.student-sort-button span,
.student-sort-button small { grid-column: 1; width: 100%; display: block; justify-self: stretch; text-align: right; }
.student-sort-button span { grid-row: 1; }
.student-sort-button small { grid-row: 2; color: #648580; font-size: 7px; font-weight: 400; white-space: nowrap; }
.student-sort-button i { grid-column: 2; grid-row: 1 / span 2; justify-self: end; color: #648580; font-style: normal; }
.student-sort-button:hover, .student-sort-button.active { color: var(--teal); }
.student-sort-button.active i { color: var(--teal); }
.teacher-sort-button { width: 100%; display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 7px 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; text-align: right; }
.teacher-sort-button span { min-width: 0; }
.teacher-sort-button i { color: #8ca9a5; font-style: normal; }
.teacher-sort-button:hover, .teacher-sort-button.active, .teacher-sort-button.active i { color: var(--teal); }
.teacher-evaluation-table th:first-child .teacher-sort-button,
.teacher-evaluation-table th:nth-child(2) .teacher-sort-button { justify-content: flex-start; text-align: left; }
.teacher-evaluation-table th { white-space: nowrap; }
.teacher-evaluation-table { table-layout: fixed; }
.teacher-evaluation-table th:nth-child(1) { width: 10%; }
.teacher-evaluation-table th:nth-child(2) { width: 18%; }
.teacher-evaluation-table th:nth-child(3) { width: 12%; }
.teacher-evaluation-table th:nth-child(4) { width: 14%; }
.teacher-evaluation-table th:nth-child(n+5) { width: 11.5%; }
.teacher-evaluation-table th:nth-child(n+3) .teacher-sort-button {
  justify-content: center;
  text-align: center;
}
.teacher-evaluation-table td:nth-child(n+3) { text-align: center; }
.teacher-evaluation-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-subject-label { display: inline-block; border-bottom: 1px dotted rgba(84,219,197,.7); cursor: help; white-space: nowrap; }
.instant-tooltip { position: relative; }
.instant-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 80;
  width: max-content;
  max-width: min(360px, 70vw);
  padding: 8px 10px;
  border: 1px solid rgba(84,219,197,.4);
  border-radius: 8px;
  background: #071f22;
  box-shadow: 0 8px 24px rgba(0,0,0,.34);
  color: #eaf8f6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity .08s ease, transform .08s ease;
}
.instant-tooltip:hover::after,
.instant-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.teacher-detail-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teacher-detail-evaluation-grid { margin-top: 10px; }
.teacher-detail-sticky { position: sticky; z-index: 24; top: 216px; padding: 10px 0; background: var(--bg); }
.teacher-detail-sticky .section-title { margin: 12px 0 0; }
.teacher-class-table { max-height: 520px; }
.teacher-class-table .data-table { min-width: 1040px; }
.teacher-class-comparison { display: grid; gap: 8px; margin-top: 10px; }
.teacher-class-compare-head { padding: 0 12px 5px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.teacher-class-compare-row { min-width: 0; padding: 12px; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(620px, 3fr); align-items: center; gap: 18px; border: 1px solid rgba(125,207,198,.1); border-radius: 11px; background: rgba(255,255,255,.018); }
.teacher-class-compare-label strong,
.teacher-class-compare-label span { display: block; }
.teacher-class-compare-label strong { font-size: 13px; }
.teacher-class-compare-label span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.teacher-class-compare-bars { display: grid; gap: 7px; }
.teacher-class-compare-metric { display: grid; grid-template-columns: 52px minmax(180px, 1fr) 48px 76px; align-items: center; gap: 8px; }
.teacher-class-compare-metric > span { color: #b9cdca; font-size: 10px; }
.teacher-class-compare-metric > strong { text-align: right; font-size: 11px; }
.teacher-class-compare-metric > em { color: var(--muted); font-size: 9px; font-style: normal; text-align: right; white-space: nowrap; }
.teacher-class-compare-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.teacher-class-compare-track i { height: 100%; display: block; border-radius: inherit; background: var(--metric-color); box-shadow: 0 0 10px color-mix(in srgb, var(--metric-color) 42%, transparent); }
.teacher-student-distribution-legend { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 10px; }
.teacher-student-distribution-legend span { display: inline-flex; align-items: center; gap: 6px; }
.teacher-student-distribution-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; }
.teacher-student-distribution-legend i.covered { background: rgba(84,219,197,.58); }
.teacher-student-distribution-legend i.missing { border: 1px solid rgba(151,175,171,.22); background: rgba(255,255,255,.025); }
.teacher-class-student-grid { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.teacher-class-student-card { min-width: 0; padding: 12px; border: 1px solid rgba(125,207,198,.11); border-radius: 12px; background: rgba(255,255,255,.018); }
.teacher-class-student-card > header { padding-bottom: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(125,207,198,.09); }
.teacher-class-student-card > header div:last-child { text-align: right; }
.teacher-class-student-card > header strong,
.teacher-class-student-card > header b,
.teacher-class-student-card > header span { display: block; }
.teacher-class-student-card > header strong { font-size: 13px; }
.teacher-class-student-card > header b { color: var(--teal); font-size: 12px; }
.teacher-class-student-card > header span { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.teacher-student-distribution { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; }
.teacher-student-status { min-width: 0; min-height: 32px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border-radius: 7px; cursor: pointer; font-size: 9px; text-align: left; transition: border-color .14s, transform .14s, background .14s; }
.teacher-student-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-student-status strong { flex: 0 0 auto; font-size: 9px; }
.teacher-student-status.covered { border: 1px solid rgba(84,219,197,.26); color: #f1fffc; background: rgba(84,219,197,var(--student-level)); }
.teacher-student-status.missing { border: 1px solid rgba(151,175,171,.14); color: #819c98; background: rgba(255,255,255,.018); }
.teacher-student-status:hover,
.teacher-student-status:focus-visible { z-index: 1; border-color: var(--teal); outline: none; transform: translateY(-1px); }
.teacher-flex-layout { display: grid; gap: 12px; }
.teacher-flex-layout .data-table { margin-top: 8px; }
.teacher-flex-class-table { max-height: 190px; overflow: auto; }
.teacher-missing-groups { display: grid; gap: 10px; margin-top: 10px; }
.teacher-missing-groups section { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.teacher-missing-groups h4 { margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.teacher-missing-groups h4 span { color: var(--gold); font-size: 10px; font-weight: 500; }
.teacher-missing-groups section > div { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-missing-groups button { min-height: 28px; padding: 0 9px; border: 1px solid rgba(125,207,198,.16); border-radius: 7px; color: var(--text); background: rgba(84,219,197,.04); cursor: pointer; font-size: 10px; }
.teacher-missing-groups button:hover { border-color: var(--teal); color: var(--teal); }
.teacher-coverage-dialog .dialog-grid .panel { min-height: 0; }
@media (max-width: 900px) {
  .teacher-detail-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .teacher-search { grid-template-columns: 20px minmax(0, 1fr) auto auto; }
  .teacher-search em { grid-column: 2 / -1; grid-row: 2; }
}
.dimension-cell { white-space: nowrap; }
.dimension-cell span { color: var(--muted); }
.table-scroll .data-table thead { position: sticky; top: 0; z-index: 1; background: #102f37; }
.status-pill { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 9px; }
.status-pill.pending { color: var(--gold); border: 1px solid rgba(242,191,102,.2); background: rgba(242,191,102,.07); }
.prize-cell { display: inline-flex; align-items: center; gap: 8px; }
.prize-thumb { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(242,191,102,.2); border-radius: 8px; background: #eef5f3; object-fit: contain; }
.prize-thumb.fallback { background: linear-gradient(145deg, rgba(242,191,102,.14), rgba(84,219,197,.07)); font-size: 15px; font-style: normal; }
.product-gallery { margin-top: 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.product-card { min-height: 86px; padding: 9px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.product-card .prize-thumb { width: 42px; height: 42px; }
.product-card strong, .product-card span { display: block; }
.product-card strong { font-size: 10px; line-height: 1.35; }
.product-card span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.binding-compact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.binding-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.binding-grade-card { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(10,31,37,.72); }
.binding-grade-card > strong { display: flex; justify-content: space-between; gap: 8px; color: var(--teal); font-size: 11px; }
.binding-grade-card > strong em { color: var(--muted); font-size: 9px; font-style: normal; }
.binding-class-row { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(125,207,198,.08); }
.binding-class-row b { display: block; color: #dbe9e6; font-size: 9px; }
.binding-class-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.metric-definition { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.metric-definition span { padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.metric-definition strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 10px; }
.teacher-metric-definition { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rank-number { width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.035); }
.rank-number.top { color: var(--gold); background: rgba(242,191,102,.09); }
.progress-cell { min-width: 120px; }
.progress-track { width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.055); overflow: hidden; }
.progress-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); }

.chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #b8cfcb; background: rgba(255,255,255,.025); font-size: 9px; }
.chip strong { margin-left: 5px; color: var(--text); }
.notice-card { padding: 13px; border: 1px solid rgba(242,191,102,.18); border-radius: 12px; background: rgba(242,191,102,.04); color: #b9cac7; font-size: 10px; line-height: 1.7; }
.notice-card strong { color: var(--gold); }
.detail-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 10px; }
.detail-toolbar .button { flex: 0 0 auto; }
.quality-card.severity-high::before { background: var(--red); }
.quality-card.severity-medium::before { background: var(--gold); }
.quality-card.severity-low::before { background: var(--green); }
.rule-table code { color: var(--teal); font-family: inherit; }

.class-analysis-notice { margin-bottom: 10px; }
.class-grade-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.class-detail-controls { margin-top: 8px; padding: 9px 12px; display: flex; justify-content: flex-end; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,31,37,.72); }
.class-detail-controls .panel-controls { width: 100%; }
.class-comparison-grid .panel { min-height: 190px; padding-block: 11px; }
.class-subject-grid .panel { padding-bottom: 13px; }
.class-subject-matrix-scroll { max-height: 410px; overflow: auto; margin-top: 9px; border: 1px solid rgba(125,207,198,.1); border-radius: 10px; }
.class-subject-matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.class-subject-matrix th,
.class-subject-matrix td { height: 38px; padding: 0; border-right: 1px solid rgba(125,207,198,.07); border-bottom: 1px solid rgba(125,207,198,.075); text-align: center; }
.class-subject-matrix thead th { min-width: 82px; position: sticky; z-index: 3; top: 0; color: #abc2bf; background: #102f37; font-size: 10px; font-weight: 600; white-space: nowrap; }
.class-subject-matrix thead th:first-child,
.class-subject-matrix tbody th { width: 142px; min-width: 142px; position: sticky; z-index: 4; left: 0; padding: 0 13px; background: #0f2c34; text-align: left; }
.class-subject-matrix tbody th { color: #d6e5e2; font-size: 11px; font-weight: 600; }
.class-subject-matrix tr.active th { box-shadow: inset 3px 0 var(--teal); }
.class-subject-matrix tr.active td { background: rgba(84,219,197,.035); }
.class-subject-matrix button { width: 100%; height: 100%; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.class-subject-matrix button:disabled { opacity: 1; cursor: default; }
.class-subject-matrix tbody th button { padding: 0 13px; text-align: left; }
.class-subject-matrix tbody th button:hover { color: var(--teal); }
.class-subject-matrix td button { position: relative; transition: filter .12s, box-shadow .12s; }
.class-subject-matrix td button:hover { z-index: 1; filter: brightness(1.22); box-shadow: inset 0 0 0 1px rgba(84,219,197,.62); }
.class-subject-matrix td strong { color: #f1fbf9; font: 700 13px/1 "DIN Alternate", "Arial Narrow", sans-serif; }
.class-subject-matrix td em { position: absolute; top: 3px; right: 4px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; color: #08252b; font-size: 8px; font-style: normal; font-weight: 800; }
.class-subject-matrix td.rank-1 button { background: rgba(84,219,197,.2); }
.class-subject-matrix td.rank-2 button { background: rgba(87,191,229,.13); }
.class-subject-matrix td.rank-3 button { background: rgba(242,191,102,.1); }
.class-subject-matrix td.rank-1 em { background: var(--teal); }
.class-subject-matrix td.rank-2 em { background: var(--cyan); }
.class-subject-matrix td.rank-3 em { background: var(--gold); }
.class-subject-matrix-note { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.class-five-grid .panel { min-height: 355px; }
.class-five-heatmap { margin-top: 8px; display: grid; gap: 4px; }
.class-five-head, .class-five-row { display: grid; grid-template-columns: minmax(70px, 1.15fr) repeat(5, minmax(54px, 1fr)); gap: 4px; align-items: stretch; }
.class-five-head { padding: 0 7px; color: var(--muted); font-size: 9px; text-align: center; }
.class-five-head span:first-child { text-align: left; }
.class-five-row { width: 100%; padding: 4px; border: 1px solid transparent; border-radius: 8px; color: var(--text); background: rgba(255,255,255,.018); cursor: pointer; }
.class-five-row:disabled { opacity: 1; cursor: default; }
.class-five-row:hover { border-color: var(--line-strong); background: rgba(84,219,197,.035); }
.class-five-row.active { border-color: rgba(84,219,197,.42); box-shadow: inset 3px 0 var(--teal); }
.class-five-row > strong { display: flex; align-items: center; padding-left: 7px; font-size: 10px; text-align: left; }
.class-index-cell { min-height: 32px; display: grid; place-content: center; gap: 1px; border-radius: 6px; background: rgba(var(--cell-color), var(--cell-strength)); text-align: center; }
.class-index-cell i { color: rgba(237,247,244,.7); font-size: 8px; font-style: normal; }
.class-index-cell em { color: #fff; font: 700 13px/1 "DIN Alternate", "Arial Narrow", sans-serif; font-style: normal; }
.heatmap-legend { margin-top: 9px; display: flex; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 8px; }
.heatmap-legend span { display: inline-flex; align-items: center; gap: 5px; }
.heatmap-legend i { width: 13px; height: 7px; border-radius: 3px; }
.heatmap-legend .below { background: rgba(242,191,102,.34); }
.heatmap-legend .average { background: rgba(145,173,170,.12); }
.heatmap-legend .above { background: rgba(84,219,197,.36); }
.class-five-portrait { min-height: 340px; display: grid; grid-template-columns: minmax(320px, 1fr) 132px; align-items: center; gap: 10px; }
.class-five-radar { min-width: 0; }
.class-five-radar .chart-box { height: 285px; margin-top: 0; }
.class-five-radar .chart-label { font-size: 13px; font-weight: 600; }
.class-five-radar .legend { margin-top: 8px; gap: 14px; font-size: 10px; }
.class-five-radar .legend i { width: 9px; height: 9px; }
.class-five-score-column { display: grid; gap: 6px; }
.class-five-score-card { min-height: 52px; padding: 7px 9px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.022); }
.class-five-score-card span { display: flex; align-items: center; gap: 6px; color: #c9d9d6; font-size: 11px; }
.class-five-score-card span i { width: 7px; height: 7px; border-radius: 50%; }
.class-five-score-card strong { color: var(--text); font: 700 17px/1 "DIN Alternate", "Arial Narrow", sans-serif; text-align: right; }
.class-five-score-card strong small { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.class-five-score-card em { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-style: normal; text-align: right; }
.class-card-choices { width: 100%; display: grid; gap: 7px; }
.class-choice-row { min-height: 29px; display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 8px; }
.class-choice-row > span { color: #b8ceca; font-size: 9px; font-weight: 600; }
.class-choice-row > div { display: flex; flex-wrap: wrap; gap: 5px; }
.class-choice-button { min-width: 48px; height: 27px; padding: 0 9px; border: 1px solid rgba(130,190,183,.16); border-radius: 7px; color: #91adaa; background: rgba(11,37,44,.72); cursor: pointer; font-size: 9px; }
.class-choice-button:hover { color: var(--text); border-color: var(--line-strong); }
.class-choice-button.active { color: #05211f; border-color: var(--teal); background: var(--teal); box-shadow: 0 3px 10px rgba(84,219,197,.14); font-weight: 700; }
.class-card-result-grid { margin-top: 8px; }
.class-card-result-grid .panel { min-height: 218px; padding: 12px; }
.card-count-summary { grid-column: span 2; min-height: 218px; padding: 18px 14px; display: grid; align-content: center; justify-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(18,49,56,.95), rgba(9,29,35,.94)); text-align: center; }
.card-count-summary > span { color: var(--muted); font-size: 10px; }
.card-count-summary > strong { margin-top: 16px; color: var(--teal); font: 700 42px/1 "DIN Alternate", "Arial Narrow", sans-serif; }
.card-count-summary > strong small { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.card-count-summary > p { margin: 10px 0 0; color: #779a97; font-size: 9px; }
.compact-coverage-students { max-height: 166px; overflow: auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-content: start; gap: 3px; margin-top: 5px; padding-right: 2px; }
.compact-coverage-students button { min-height: 24px; padding: 3px 5px; display: flex; align-items: center; justify-content: space-between; gap: 4px; border: 1px solid rgba(125,207,198,.1); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.018); cursor: pointer; }
.compact-coverage-students button:hover { border-color: var(--line-strong); background: rgba(84,219,197,.04); }
.compact-coverage-students strong { overflow: hidden; font-size: 8.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.compact-coverage-students em { color: var(--teal); font-size: 8px; font-style: normal; white-space: nowrap; }
.compact-coverage-empty { min-height: 145px; display: grid; place-items: center; color: var(--muted); font-size: 9px; }

.coverage-gauge { min-height: 210px; display: grid; place-items: center; align-content: center; }
.coverage-gauge svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.coverage-ring-bg, .coverage-ring-value { fill: none; stroke-width: 15; }
.coverage-ring-bg { stroke: rgba(255,255,255,.055); }
.coverage-ring-value { stroke: var(--teal); stroke-linecap: round; filter: drop-shadow(0 0 7px rgba(84,219,197,.24)); }
.coverage-value, .coverage-label { transform: rotate(90deg); transform-origin: 90px 90px; fill: var(--text); }
.coverage-value { font: 700 26px/1 "DIN Alternate", "Arial Narrow", sans-serif; }
.coverage-label { fill: var(--muted); font-size: 10px; }
.coverage-gauge p { margin: -12px 0 0; color: var(--muted); font-size: 9px; }
.coverage-student-list { max-height: 330px; overflow: auto; display: grid; gap: 6px; margin-top: 10px; padding-right: 4px; }
.coverage-student { min-height: 38px; padding: 6px 9px; position: relative; overflow: hidden; display: block; border: 1px solid rgba(125,207,198,.09); border-radius: 8px; color: var(--text); background: rgba(255,255,255,.018); cursor: pointer; text-align: left; }
.coverage-student:hover { border-color: var(--line-strong); }
.coverage-student span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coverage-student strong { font-size: 10px; }
.coverage-student em { color: var(--muted); font-size: 8px; font-style: normal; white-space: nowrap; }
.coverage-student > i { position: absolute; left: 0; bottom: 0; width: var(--coverage-width); height: 3px; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.coverage-empty { min-height: 190px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.list-overflow-note { margin: 8px 0 0; color: var(--muted); font-size: 8px; }

.card-matrix-scroll { max-height: 560px; overflow: auto; margin-top: 10px; border: 1px solid rgba(125,207,198,.1); border-radius: 10px; }
.card-matrix { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 9px; }
.card-matrix th, .card-matrix td { min-width: 70px; height: 34px; padding: 0 7px; border-right: 1px solid rgba(125,207,198,.06); border-bottom: 1px solid rgba(125,207,198,.07); text-align: center; white-space: nowrap; }
.card-matrix th { position: sticky; z-index: 2; top: 0; color: #a8bfbc; background: #102f37; font-weight: 500; }
.card-matrix th:first-child, .card-matrix td:first-child { min-width: 92px; position: sticky; z-index: 3; left: 0; text-align: left; background: #0f2c34; }
.card-matrix th:first-child { z-index: 4; }
.card-matrix td:first-child button { width: 100%; border: 0; color: var(--text); background: transparent; cursor: pointer; text-align: left; font-size: 9px; }
.matrix-cell { color: #648580; background: rgba(255,255,255,.012); }
.matrix-cell.has-value { color: #fff; background: rgba(84,219,197, calc(.1 + var(--heat) * .62)); font-weight: 700; }
.matrix-legend { margin-top: 10px; display: flex; justify-content: flex-end; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.matrix-legend i { width: 90px; height: 7px; border-radius: 5px; background: linear-gradient(90deg, rgba(84,219,197,.08), rgba(84,219,197,.72)); }
.matrix-legend em { font-style: normal; }
.matrix-legend b { color: var(--text); font-weight: 500; }

.student-dialog { width: min(1240px, 92vw); max-height: 88vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; color: var(--text); background: #0a2027; box-shadow: 0 34px 100px rgba(0,0,0,.55); overflow: auto; }
.student-dialog::backdrop { background: rgba(2, 10, 13, .74); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; z-index: 3; top: 13px; float: right; margin: 13px 13px 0 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #0c2931; cursor: pointer; font-size: 19px; }
.dialog-body { padding: 0 26px 26px; }
.student-hero { position: sticky; z-index: 2; top: 0; margin: 0 -26px; padding: 20px 72px 16px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0b2931 0%, rgba(10,32,39,.98) 100%); box-shadow: 0 12px 24px rgba(2,13,17,.22); }
.student-hero h2 { margin: 0; font-size: 23px; }
.student-hero p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.student-score { text-align: right; }
.student-score strong { display: block; color: var(--teal); font-size: 30px; }
.student-score span { color: var(--muted); font-size: 9px; }
.dialog-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.dialog-grid .panel { min-height: 300px; grid-column: auto; }
.dialog-grid .panel.span-12 { grid-column: span 2; }
.teacher-ranking-dialog .dialog-grid .panel { min-height: 0; }
.teacher-metric-table { max-height: 430px; }
.teacher-metric-empty { margin: 22px 0 0; }
.teacher-heatmap-wrap { margin-top: 11px; position: relative; padding-left: 24px; }
.teacher-rate-policy { margin: 12px 0 14px; padding: 10px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border: 1px solid rgba(242,191,102,.26); border-radius: 11px; background: rgba(242,191,102,.055); }
.teacher-rate-policy span { padding: 5px 9px; border: 1px solid rgba(242,191,102,.15); border-radius: 7px; color: var(--muted); font-size: 9px; }
.teacher-rate-policy span strong { margin-right: 5px; color: #f3ce8d; }
.teacher-rate-policy em { margin-left: auto; color: var(--muted); font-size: 9px; font-style: normal; }
.teacher-rate-rules { margin: 10px 0 0; border-bottom: 1px solid rgba(125,207,198,.1); }
.teacher-rate-rules > summary { width: max-content; min-height: 34px; display: flex; align-items: center; gap: 8px; color: #b8ceca; cursor: pointer; font-size: 10px; list-style: none; }
.teacher-rate-rules > summary::-webkit-details-marker { display: none; }
.teacher-rate-rules > summary span { color: var(--muted); font-size: 9px; }
.teacher-rate-rules > summary i { color: var(--teal); font-size: 13px; font-style: normal; transition: transform .16s ease; }
.teacher-rate-rules[open] > summary i { transform: rotate(180deg); }
.teacher-rate-rules .teacher-rate-policy { margin-top: 3px; }
.teacher-rate-empty { min-height: 250px; display: grid; place-content: center; text-align: center; border: 1px dashed rgba(125,207,198,.2); border-radius: 12px; background: rgba(4,21,26,.3); }
.teacher-rate-empty strong { font-size: 18px; }
.teacher-rate-empty p { max-width: 570px; margin: 9px auto 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.teacher-quadrant-guide { margin: 11px 0 4px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; border-radius: 9px; background: rgba(84,219,197,.045); color: #b8ceca; font-size: 9px; }
.teacher-quadrant-guide b { margin-right: 4px; color: var(--teal); font-weight: 650; }
.teacher-heatmap-stage { position: relative; min-width: 820px; }
.teacher-heatmap, .teacher-quadrant-zones { display: grid; grid-template-columns: 112px repeat(5, minmax(105px, 1fr)); grid-template-rows: 38px repeat(5, 116px); gap: 7px; }
.teacher-heatmap { position: relative; z-index: 2; }
.teacher-quadrant-zones { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.teacher-zone { padding: 10px 12px; display: flex; align-items: flex-end; color: rgba(201,223,219,.5); font-size: 9px; line-height: 1.45; letter-spacing: .02em; }
.teacher-zone-fair-low-rate { grid-column: 2 / 5; grid-row: 2 / 4; border-radius: 12px 0 0 0; background: rgba(84,219,197,.025); }
.teacher-zone-strong { grid-column: 5 / 7; grid-row: 2 / 4; justify-content: flex-end; border-radius: 0 12px 0 0; background: rgba(84,219,197,.065); text-align: right; }
.teacher-zone-priority { grid-column: 2 / 5; grid-row: 4 / 7; border-radius: 0 0 0 12px; background: rgba(242,191,102,.035); }
.teacher-zone-fairness-review { grid-column: 5 / 7; grid-row: 4 / 7; align-items: flex-start; justify-content: flex-end; border-radius: 0 0 12px 0; background: rgba(239,141,114,.035); text-align: right; }
.teacher-quadrant-vline, .teacher-quadrant-hline { z-index: 3; display: block; pointer-events: none; }
.teacher-quadrant-vline { grid-column: 5; grid-row: 2 / 7; margin-left: -4px; border-left: 1px solid rgba(84,219,197,.58); }
.teacher-quadrant-hline { grid-column: 2 / 7; grid-row: 4; margin-top: -4px; border-top: 1px solid rgba(84,219,197,.58); }
.teacher-heatmap-axis { min-height: 38px; display: flex; align-items: center; justify-content: center; color: #c3d9d6; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.teacher-heatmap-axis.corner { justify-content: flex-end; padding-right: 12px; color: var(--teal); font-size: 10px; }
.teacher-heatmap-axis.x { border-bottom: 1px solid rgba(84,219,197,.26); color: #d6e7e4; }
.teacher-heatmap-axis.y { justify-content: flex-end; padding-right: 12px; border-right: 1px solid rgba(84,219,197,.22); color: #d6e7e4; }
.teacher-quadrant-slot { min-height: 116px; display: grid; place-items: center; position: relative; }
.teacher-heatmap-cell { width: var(--bubble-size); height: var(--bubble-size); min-width: var(--bubble-size); padding: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(220,245,240,.3); border-radius: 50%; color: #fff; cursor: pointer; text-align: center; box-shadow: 0 5px 18px rgba(2,13,17,.24); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.teacher-heatmap-cell:hover, .teacher-heatmap-cell:focus-visible { z-index: 4; transform: scale(1.08); border-color: rgba(234,255,251,.9); box-shadow: 0 10px 28px rgba(0,0,0,.34); outline: none; }
.teacher-heatmap-cell strong { font-size: 20px; line-height: 1; }
.teacher-heatmap-cell strong small { margin-left: 2px; font-size: 9px; font-weight: 500; }
.teacher-heatmap-cell em { color: rgba(255,255,255,.9); font-size: 9px; font-style: normal; white-space: nowrap; }
.teacher-heatmap-y-title { position: absolute; z-index: 4; left: -5px; top: 44%; display: flex; flex-direction: row; align-items: center; gap: 7px; color: var(--teal); font-size: 11px; font-weight: 700; }
.teacher-heatmap-y-title span { letter-spacing: .12em; writing-mode: vertical-rl; text-orientation: upright; }
.teacher-heatmap-y-title i { font-size: 15px; font-style: normal; line-height: 1; }
.teacher-heatmap-x-title { margin: 0 0 4px 112px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.teacher-heatmap-x-title i { margin-left: 4px; font-size: 15px; font-style: normal; letter-spacing: 0; }
.teacher-heatmap-legend { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 9px; }
.teacher-heatmap-legend i { width: 30px; height: 8px; border-radius: 4px; }
.teacher-heatmap-legend i.low { background: rgba(174,126,58,.88); }
.teacher-heatmap-legend i.mid { background: rgba(45,128,113,.88); }
.teacher-heatmap-legend i.high { background: rgba(49,177,122,.88); }
.teacher-heatmap-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
@media (max-width: 1000px) {
  .teacher-heatmap-wrap { overflow-x: auto; }
  .teacher-heatmap-stage, .teacher-heatmap-x-title, .teacher-heatmap-legend, .teacher-heatmap-note { min-width: 820px; }
}
.teacher-3d-guide { margin: 11px 0 8px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 22px; border-radius: 9px; color: #b8ceca; background: rgba(84,219,197,.045); font-size: 9px; }
.teacher-3d-guide b { margin-right: 4px; color: var(--teal); font-weight: 700; }
.teacher-2d-guide { margin: 11px 0 8px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 20px; border-radius: 9px; color: #b8ceca; background: rgba(84,219,197,.045); font-size: 9px; }
.teacher-2d-guide b { margin-right: 4px; color: var(--teal); font-weight: 700; }
.teacher-2d-guide span { display: inline-flex; align-items: center; gap: 5px; }
.teacher-2d-guide .zone-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.teacher-2d-guide .zone-dot.strong { color: #36b99d; background: currentColor; }
.teacher-2d-guide .zone-dot.y-strong { color: #4d91b1; background: currentColor; }
.teacher-2d-guide .zone-dot.x-strong { color: #d5a64f; background: currentColor; }
.teacher-2d-guide .zone-dot.priority { color: #d17b4e; background: currentColor; }
.teacher-3d-field-key { display: inline-flex; align-items: center; gap: 6px; }
.teacher-3d-field-key b { margin-right: 0; }
.teacher-3d-field-key i { width: 76px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #cd7e43, #52756e 50%, #21977e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.teacher-3d-field-key em { color: #b8ceca; font-size: 9px; font-style: normal; }
.teacher-3d-viewer { position: relative; min-height: 560px; overflow: hidden; border-radius: 13px; background:
  radial-gradient(circle at 52% 45%, rgba(40,111,112,.13), transparent 45%),
  linear-gradient(180deg, rgba(5,27,33,.72), rgba(4,20,26,.9)); }
.teacher-3d-viewer canvas { width: 100%; height: 560px; display: block; touch-action: none; cursor: grab; }
.teacher-2d-viewer { background:
  radial-gradient(circle at 78% 22%, rgba(43,199,168,.09), transparent 32%),
  radial-gradient(circle at 20% 78%, rgba(219,145,77,.08), transparent 32%),
  linear-gradient(180deg, rgba(5,27,33,.72), rgba(4,20,26,.9)); }
.teacher-2d-viewer canvas, .teacher-2d-viewer canvas:active { cursor: default; }
.teacher-3d-viewer canvas:active { cursor: grabbing; }
.teacher-3d-controls { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 6px; }
.teacher-3d-controls button { min-width: 31px; height: 31px; padding: 0 10px; border: 1px solid rgba(125,207,198,.25); border-radius: 8px; color: #d9eeea; background: rgba(8,42,49,.92); cursor: pointer; font-size: 12px; }
.teacher-3d-controls button:hover, .teacher-3d-controls button:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }
.teacher-3d-status { position: absolute; z-index: 3; top: 13px; left: 14px; display: flex; align-items: baseline; gap: 9px; pointer-events: none; }
.teacher-3d-status strong { color: var(--teal); font-size: 11px; }
.teacher-3d-status span { color: var(--muted); font-size: 9px; }
.teacher-3d-help { position: absolute; z-index: 3; right: 14px; bottom: 11px; margin: 0; color: rgba(169,198,193,.72); font-size: 9px; pointer-events: none; }
.teacher-3d-tooltip { position: absolute; z-index: 6; width: 192px; padding: 10px 11px; border: 1px solid rgba(125,207,198,.3); border-radius: 10px; color: var(--text); background: rgba(6,31,38,.97); box-shadow: 0 12px 28px rgba(0,0,0,.38); pointer-events: none; }
.teacher-3d-tooltip strong, .teacher-3d-tooltip span, .teacher-3d-tooltip em { display: block; }
.teacher-3d-tooltip strong { margin-bottom: 6px; font-size: 12px; }
.teacher-3d-tooltip span { margin-top: 3px; color: #c2dad6; font-size: 9px; }
.teacher-3d-tooltip em { margin-top: 7px; color: var(--teal); font-size: 8px; font-style: normal; }
.teacher-3d-note { margin: 8px 4px 0; color: var(--muted); font-size: 9px; line-height: 1.55; text-align: center; }
@media (max-width: 760px) {
  .teacher-3d-guide { justify-content: flex-start; }
  .teacher-3d-viewer { min-height: 500px; overflow-x: auto; }
  .teacher-3d-viewer canvas { min-width: 680px; height: 500px; }
  .teacher-3d-help { left: 14px; right: auto; }
}
.history-disclosure { grid-column: span 2; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(155deg, rgba(18, 49, 56, .95), rgba(9, 29, 35, .94)); overflow: hidden; }
.history-disclosure summary { min-height: 64px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.history-disclosure summary::-webkit-details-marker { display: none; }
.history-disclosure summary strong, .history-disclosure summary small { display: block; }
.history-disclosure summary strong { font-size: 14px; }
.history-disclosure summary small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; }
.history-summary-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); white-space: nowrap; }
.history-summary-meta em { font-size: 9px; font-style: normal; }
.history-summary-meta i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--teal); font-size: 15px; font-style: normal; transition: transform .16s; }
.history-disclosure[open] .history-summary-meta i { transform: rotate(180deg); }
.history-content { padding: 0 15px 15px; border-top: 1px solid rgba(125,207,198,.08); }

.change-overview { margin: 9px 0 10px; padding: 10px 12px; display: grid; grid-template-columns: 1.25fr repeat(6, minmax(92px, .72fr)); align-items: center; gap: 7px; border: 1px solid rgba(125,207,198,.14); border-radius: 13px; background: rgba(11,38,45,.72); }
.change-overview > div strong, .change-overview > div span { display: block; }
.change-overview > div strong { font-size: 13px; }
.change-overview > div span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.change-overview > p { grid-column: 1 / -1; margin: 2px 0 0; color: #789895; font-size: 8px; }
.change-count { min-height: 42px; padding: 7px 8px; display: flex; flex-direction: column; justify-content: center; border-radius: 9px; background: rgba(255,255,255,.025); }
.change-count em { color: var(--muted); font-size: 8px; font-style: normal; }
.change-count strong { margin-top: 3px; font-size: 11px; }
.change-count.up strong { color: var(--teal); }
.change-count.down strong { color: #ef9b83; }
.change-count.insufficient strong { color: var(--gold); }
.change-pill { width: max-content; min-width: 72px; padding: 5px 8px; display: inline-flex; flex-direction: column; gap: 2px; border: 1px solid rgba(125,207,198,.15); border-radius: 8px; background: rgba(255,255,255,.025); white-space: nowrap; }
.change-pill strong { font-size: 9px; }
.change-pill small { color: var(--muted); font-size: 8px; }
.change-pill.up { color: var(--teal); background: rgba(84,219,197,.06); }
.change-pill.down { color: #ef9b83; background: rgba(239,141,114,.06); }
.change-pill.insufficient { color: var(--gold); background: rgba(242,191,102,.05); }
.change-detail-head { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.change-detail-head > div { padding: 10px; border: 1px solid rgba(125,207,198,.1); border-radius: 9px; background: rgba(255,255,255,.018); }
.change-detail-head > div strong, .change-detail-head > div span { display: block; }
.change-detail-head > div strong { font-size: 15px; }
.change-detail-head > div span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.change-dimension-list { margin-top: 9px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.change-dimension-row { padding: 8px; border: 1px solid rgba(125,207,198,.09); border-radius: 8px; background: rgba(255,255,255,.014); }
.change-dimension-row strong, .change-dimension-row span, .change-dimension-row em { display: block; }
.change-dimension-row strong { font-size: 10px; }
.change-dimension-row strong i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; }
.change-dimension-row span { margin-top: 5px; font-size: 10px; }
.change-dimension-row em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; }
.change-dimension-row em.positive { color: var(--teal); }
.change-dimension-row em.negative { color: #ef9b83; }
.change-caveat { margin: 9px 0 0; color: #789895; font-size: 8px; line-height: 1.55; }

.agent-chat { min-height: calc(100vh - 180px); padding: 14px; display: grid; grid-template-rows: minmax(0,1fr) auto; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(18,49,56,.95), rgba(9,29,35,.94)); }
.agent-messages { min-height: 0; overflow: auto; padding: 4px 4px 12px; }
.agent-empty { min-height: 420px; display: grid; place-content: center; justify-items: center; text-align: center; }
.agent-empty strong { font-size: 18px; }
.agent-empty p { max-width: 520px; margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.agent-message { margin: 0 0 12px; display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 9px; align-items: start; }
.agent-message > span { padding-top: 9px; color: var(--muted); font-size: 9px; text-align: right; }
.agent-message > div { padding: 11px 13px; border: 1px solid rgba(125,207,198,.1); border-radius: 12px; background: rgba(255,255,255,.022); }
.agent-message.user > div { border-color: rgba(84,219,197,.18); background: rgba(84,219,197,.045); }
.agent-message strong { font-size: 12px; }
.agent-message p { margin: 6px 0 0; color: #bad0cc; font-size: 10px; line-height: 1.7; white-space: pre-wrap; }
.agent-message ul { margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; list-style: none; }
.agent-message li, .agent-message li button { color: #a8c2be; font-size: 9px; line-height: 1.45; }
.agent-message li { padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.022); }
.agent-message li button { width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.agent-message li button:hover { color: var(--teal); }
.agent-form { padding-top: 11px; display: grid; grid-template-columns: minmax(0,1fr) 80px; gap: 7px; border-top: 1px solid rgba(125,207,198,.1); }
.agent-form input { height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #09242b; outline: none; }
.agent-form input:focus { border-color: var(--teal); }
.agent-form button { border: 0; border-radius: 10px; color: #05211f; background: var(--teal); cursor: pointer; font-weight: 700; }
.agent-form button:disabled { opacity: .45; cursor: wait; }

.loading-screen { position: fixed; z-index: 9999; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--text); background: #07171c; }
.loading-screen[hidden] { display: none; }
.loading-screen strong { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.loading-screen span { color: var(--muted); font-size: 10px; }

@media (max-width: 1400px) {
  .app-shell { grid-template-columns: 226px minmax(0, 1fr); }
  .workspace { padding-inline: 20px; }
  .workspace-sticky { margin-inline: -20px; padding-inline: 20px; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .secondary-filters { grid-template-columns: repeat(4, minmax(115px,1fr)); }
  .product-gallery, .binding-compact-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .metric-definition { grid-template-columns: 1fr; }
  .panel.span-8, .panel.span-7 { grid-column: span 7; }
  .panel.span-4, .panel.span-5 { grid-column: span 5; }
  .class-comparison-grid .panel.span-4 { grid-column: span 4; }
  .overview-grade-comparison-panel,
  .overview-grade-coverage-panel,
  .overview-card-composition-panel { grid-column: span 4 !important; }
  .class-five-portrait { grid-template-columns: minmax(250px, 1fr) 118px; }
  .class-five-radar .chart-box { height: 270px; }
  .class-choice-row { grid-template-columns: 62px minmax(0,1fr); }
  .change-overview { grid-template-columns: minmax(120px, 1.2fr) repeat(6, minmax(84px, .72fr)); }
}

@media (max-width: 900px) {
  .student-analysis-controls { align-items: stretch; flex-direction: column; }
  .student-mode-tabs { width: 100%; }
  .student-mode-tabs button { flex: 1; }
  .student-mode-period { width: 100%; }
}

/* Readability pass: keep the dense desktop layout while removing 8–10px text. */
:root {
  --muted: #a7bfbb;
  --line: rgba(135, 214, 205, .2);
}

.identity-card p,
.sidebar-foot small,
.freshness span,
.hierarchy-placeholder,
.filter-item label,
.student-search em,
.student-search button,
.section-title span,
.kpi-card p,
.panel-head p,
.panel-note,
.segment-button,
.legend,
.legend-item,
.status-pill,
.metric-definition span,
.chip,
.notice-card,
.detail-toolbar,
.class-five-head,
.class-choice-row > span,
.card-count-summary > p,
.coverage-gauge p,
.list-overflow-note,
.history-disclosure summary small,
.history-summary-meta em,
.change-overview > div span,
.change-overview > p,
.change-count em,
.change-pill small,
.change-detail-head > div span,
.change-dimension-row em,
.change-caveat {
  font-size: 11px;
  line-height: 1.55;
}

.brand span,
.identity-card label,
.role-scope label,
.eyebrow,
.hierarchy-label,
.hierarchy-button,
.reset-button,
.section-title p,
.kpi-card label,
.kpi-card strong small,
.donut-row,
.donut-row strong,
.dimension-score-list strong,
.dimension-score-list em,
.class-five-row > strong,
.class-five-score-card em,
.card-count-summary > span,
.coverage-student strong,
.student-hero p,
.student-score span,
.change-pill strong,
.change-dimension-row strong,
.change-dimension-row span {
  font-size: 12px;
}

.identity-card select,
.role-scope select,
.filter-item select {
  height: 38px;
  font-size: 12px;
}

.hierarchy-button {
  min-width: 64px;
  height: 34px;
  padding-inline: 13px;
}

.workspace-head h1 { font-size: 29px; }
.section-title h2 { font-size: 19px; }
.panel-head h3 { font-size: 16px; }
.section-title { margin-top: 27px; margin-bottom: 12px; }
.panel { padding: 18px; }
.panel-head { min-height: 46px; }
.panel.compact-head .panel-head { min-height: 28px; }
.panel.compact-head .teacher-rate-rules { margin-top: 0; }
.teacher-2d-viewer { min-height: 532px; }
.teacher-2d-viewer canvas { height: 532px; }

.kpi-card {
  min-height: 122px;
  padding: 17px;
}
.kpi-card strong { margin-top: 13px; font-size: 29px; }
.kpi-card p {
  margin-top: 10px;
  color: #95afab;
}

.chart-axis { font-size: 11px; fill: #a6bfbb; }
.chart-label { font-size: 12px; }
.chart-value { font-size: 11px; }
.legend { gap: 11px; }

.data-table {
  font-size: 12px;
}
.data-table th {
  height: 42px;
  padding-inline: 11px;
  color: #a6bfbb;
  font-weight: 600;
}
.data-table td {
  height: 43px;
  padding-inline: 11px;
}
.student-sort-button small {
  font-size: 9px;
  color: #8ca9a5;
}
.student-analysis-table { max-height: 590px; }
.student-analysis-table .data-table { min-width: 1460px; }

.metric-definition span {
  padding: 12px;
  color: #a9c1bd;
}
.metric-definition strong { font-size: 13px; }

.product-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  min-height: 104px;
  padding: 12px;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 11px;
}
.product-card .prize-thumb {
  width: 50px;
  height: 50px;
}

.redemption-period-select {
  min-width: 280px;
  height: 34px;
  padding: 0 34px 0 10px;
  border: 1px solid rgba(108, 177, 169, .24);
  border-radius: 8px;
  color: var(--text);
  background: #0a252c;
  font-size: 12px;
}

.redemption-student-search {
  height: 34px;
  display: grid;
  grid-template-columns: 24px minmax(120px, 190px) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(108, 177, 169, .24);
  border-radius: 8px;
  background: #0a252c;
}

.redemption-student-search > span {
  color: var(--teal);
  text-align: center;
}

.redemption-student-search input {
  min-width: 0;
  height: 32px;
  padding: 0 5px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.redemption-student-search input::placeholder {
  color: #769693;
}

.redemption-student-search button {
  height: 24px;
  margin-right: 5px;
  border: 0;
  border-radius: 6px;
  color: var(--teal);
  background: rgba(84, 219, 197, .07);
  cursor: pointer;
  font-size: 10px;
}

.redemption-student-search button:disabled {
  opacity: .35;
  cursor: default;
}

.redemption-class-table {
  max-height: 520px;
}

.redemption-class-table .data-table {
  table-layout: fixed;
}

.redemption-class-table th:first-child,
.redemption-class-table td:first-child {
  width: 130px;
}

.redemption-class-table th:nth-child(n+3) {
  width: 105px;
}

.redemption-class-table td {
  height: auto;
  min-height: 43px;
  padding-block: 9px;
  vertical-align: top;
}

.redemption-class-table .student-cell,
.redemption-class-table .remaining-cell {
  vertical-align: middle;
  background: rgba(84, 219, 197, .018);
}

.redemption-class-table .student-product-start td {
  border-top: 1px solid rgba(125, 207, 198, .14);
}

.redemption-none {
  color: var(--muted);
}

.redemption-detail-empty {
  min-height: 130px;
}
.product-card strong {
  font-size: 12px;
  line-height: 1.45;
}
.product-card span {
  margin-top: 7px;
  color: #a3bbb7;
  font-size: 10px;
  line-height: 1.45;
}

.binding-grade-card { padding: 14px; }
.binding-grade-card > strong { font-size: 14px; }
.binding-grade-card > strong em { font-size: 11px; }
.binding-class-row {
  margin-top: 10px;
  padding-top: 9px;
}
.binding-class-row b { font-size: 11px; }
.binding-class-row span {
  margin-top: 5px;
  color: #a4bcb8;
  font-size: 10px;
  line-height: 1.65;
}

.dimension-score-list span,
.class-index-cell i,
.heatmap-legend,
.compact-coverage-students em,
.coverage-student em,
.matrix-legend {
  font-size: 10px;
}

.notice-card {
  color: #c7d7d4;
}

@media (max-width: 1400px) {
  .product-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .binding-compact-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Overview density adjustments from the visual review. */
.secondary-filters {
  padding-top: 8px;
  align-items: center;
  grid-template-columns:
    minmax(90px, .7fr)
    minmax(210px, 1.35fr)
    minmax(150px, 1fr)
    minmax(110px, .75fr)
    minmax(100px, .7fr)
    90px;
}

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

.secondary-filters .reset-button {
  height: 38px;
}

.kpi-grid {
  display: flex;
  grid-template-columns: none;
}

.kpi-grid .kpi-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 92px;
  padding-block: 14px;
}

.kpi-grid .kpi-card::before {
  top: 12px;
  bottom: 12px;
}

.kpi-grid .kpi-card strong {
  margin-top: 10px;
}

.kpi-grid .kpi-card p {
  display: none;
}

.overview-trend-panel .panel-controls {
  flex-wrap: nowrap;
}

@media (max-width: 1400px) {
  .secondary-filters {
    grid-template-columns:
      minmax(90px, .7fr)
      minmax(210px, 1.35fr)
      minmax(150px, 1fr)
      minmax(110px, .75fr)
      minmax(100px, .7fr)
      90px;
  }

  .kpi-grid {
    display: flex;
    grid-template-columns: none;
  }
}

/* 练市小学视觉语言：仅调整颜色、材质与高光，不改变内容和布局。 */
:root {
  --bg: #061821;
  --sidebar: #071e28;
  --panel: rgba(10, 38, 48, .9);
  --panel-2: rgba(11, 48, 59, .96);
  --line: rgba(119, 210, 206, .16);
  --line-strong: rgba(118, 222, 211, .34);
  --text: #eefaf7;
  --muted: #8fb2b4;
  --teal: #5fe2d0;
  --cyan: #4fc7e8;
  --gold: #f6c66b;
  --orange: #ef946c;
  --red: #f08384;
  --green: #6bd5a0;
}

html,
body {
  background:
    radial-gradient(circle at 50% -20%, rgba(40, 124, 130, .26), transparent 48%),
    linear-gradient(145deg, #04141b 0%, #071e28 52%, #04151c 100%);
}

.sidebar {
  border-right-color: rgba(118, 222, 211, .2);
  background:
    radial-gradient(circle at 20% 12%, rgba(42, 126, 133, .16), transparent 34%),
    linear-gradient(180deg, #082630 0%, #061a22 100%);
  box-shadow: 10px 0 30px rgba(0, 8, 12, .16);
}

.brand {
  border-bottom-color: var(--line-strong);
}

.identity-card,
.filter-bar,
.student-search,
.teacher-search,
.student-analysis-controls,
.change-overview,
.class-detail-controls,
.binding-grade-card {
  border-color: var(--line);
  border-top-color: rgba(113, 221, 209, .3);
  background: linear-gradient(160deg, rgba(15, 53, 64, .9), rgba(7, 31, 40, .82));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.workspace-sticky {
  background: linear-gradient(180deg, rgba(6, 24, 33, .995) 0%, rgba(6, 24, 33, .985) 88%, rgba(6, 24, 33, .94) 100%);
  box-shadow: 0 12px 28px rgba(0, 8, 12, .32);
}

.workspace-head {
  position: relative;
  border-bottom: 1px solid rgba(118, 222, 211, .18);
}

.workspace-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  pointer-events: none;
}

.nav-item:hover {
  background: rgba(95, 226, 208, .07);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(95, 226, 208, .2), rgba(79, 199, 232, .045));
  box-shadow: inset 3px 0 var(--teal), 0 0 18px rgba(48, 182, 170, .05);
}

.identity-card select,
.role-scope select,
.filter-item select,
.student-mode-period > select,
.student-comparison-subject > select,
.redemption-period-select,
.redemption-student-search,
.agent-form input {
  border-color: rgba(118, 222, 211, .25);
  background: #0a2a34;
}

.hierarchy-button,
.class-choice-button {
  border-color: rgba(119, 210, 206, .18);
  background: rgba(11, 43, 53, .84);
}

.hierarchy-button.active,
.class-choice-button.active,
.segment-button.active,
.student-mode-tabs button.active {
  color: #04241f;
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #55cfbf);
  box-shadow: 0 3px 12px rgba(95, 226, 208, .18);
}

.button.secondary,
.student-search button,
.teacher-search button,
.redemption-student-search button {
  border-color: rgba(118, 222, 211, .28);
  background: rgba(95, 226, 208, .065);
}

.kpi-card,
.panel,
.card-count-summary,
.history-disclosure,
.agent-chat {
  border-color: var(--line);
  border-top-color: rgba(113, 221, 209, .3);
  background: linear-gradient(160deg, rgba(13, 47, 58, .92), rgba(6, 29, 38, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 12px 40px rgba(0, 8, 12, .14);
}

.panel {
  position: relative;
}

.panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  pointer-events: none;
}

.kpi-card {
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 8px 26px rgba(0, 8, 12, .12);
}

.data-table th,
.table-scroll .data-table thead,
.student-analysis-table .data-table thead,
.class-subject-matrix thead th,
.card-matrix th {
  background: #0d3540;
}

.class-subject-matrix tbody th,
.card-matrix th:first-child,
.card-matrix td:first-child {
  background: #0a2b35;
}

.data-table tbody tr:hover {
  background: rgba(95, 226, 208, .05);
}

.progress-track i,
.coverage-student > i {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 0 10px rgba(79, 199, 232, .12);
}

.notice-card,
.teacher-rate-policy {
  border-color: rgba(246, 198, 107, .25);
  background: rgba(246, 198, 107, .055);
}

.rank-number.top,
.status-pill.pending {
  color: var(--gold);
  background: rgba(246, 198, 107, .1);
}

.student-dialog {
  border-color: var(--line-strong);
  background: #08232c;
}

.student-hero {
  background: linear-gradient(180deg, #0b303b 0%, rgba(7, 31, 40, .98) 100%);
}

.loading-screen {
  background:
    radial-gradient(circle at 50% 35%, rgba(40, 124, 130, .22), transparent 36%),
    #061821;
}

/* 练市小学组件皮肤：保持现有板块、布局和尺寸逻辑。 */
.kpi-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top-color: rgba(113, 221, 209, .3);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(15, 53, 64, .9), rgba(7, 31, 40, .82));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 12px 40px rgba(0, 8, 12, .1);
}

.kpi-grid .kpi-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kpi-grid .kpi-card + .kpi-card {
  box-shadow: inset 1px 0 rgba(119, 210, 206, .1);
}

.kpi-grid .kpi-card label {
  color: #c5dcda;
  font-weight: 600;
}

.kpi-grid .kpi-card strong {
  color: #f7fffc;
  text-shadow: 0 0 18px rgba(95, 226, 208, .05);
}

.panel-head {
  border-bottom: 1px solid rgba(119, 210, 206, .12);
}

.panel-head h3 {
  color: #f4fcfa;
  letter-spacing: .06em;
}

.panel-note,
.panel-badge {
  color: var(--gold);
}

.filter-bar {
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 0 24px rgba(48, 182, 170, .045);
}

.hierarchy-filter {
  border-bottom-color: rgba(119, 210, 206, .14);
}

.hierarchy-label,
.filter-item label {
  color: #b9d4d1;
}

.hierarchy-button:hover,
.class-choice-button:hover,
.reset-button:hover {
  border-color: rgba(95, 226, 208, .48);
  background: rgba(95, 226, 208, .07);
}

.nav-item i {
  border-color: rgba(119, 210, 206, .22);
  background: rgba(79, 199, 232, .025);
}

.nav-item.active i {
  color: #04241f;
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 12px rgba(95, 226, 208, .15);
}

.data-table th,
.class-subject-matrix thead th,
.card-matrix th {
  color: #c1d9d6;
  border-bottom-color: rgba(119, 210, 206, .2);
  background: linear-gradient(180deg, #0d3540, #0a2d37);
}

.data-table td {
  border-bottom-color: rgba(119, 210, 206, .09);
}

.data-table td.num > strong,
.points-total strong,
.rank-number.top {
  color: var(--gold);
}

.rank-number {
  border: 1px solid rgba(119, 210, 206, .08);
  background: rgba(79, 199, 232, .055);
}

.rank-number.top {
  border-color: rgba(246, 198, 107, .2);
  background: rgba(246, 198, 107, .12);
  box-shadow: 0 0 10px rgba(246, 198, 107, .05);
}

.progress-track {
  background: rgba(79, 199, 232, .07);
}

.segmented-control,
.student-mode-tabs {
  border-color: rgba(119, 210, 206, .22);
  background: rgba(3, 18, 23, .54);
}

.segment-button.active,
.student-mode-tabs button.active {
  box-shadow: 0 3px 12px rgba(95, 226, 208, .18), inset 0 1px rgba(255, 255, 255, .18);
}

.button.secondary:hover,
.student-search button:hover,
.teacher-search button:hover {
  color: #f7fffc;
  border-color: var(--teal);
  background: rgba(95, 226, 208, .11);
}

.chart-grid-line {
  stroke: rgba(143, 178, 180, .13);
}

.chart-axis {
  fill: #9fc1c2;
}

.chart-value {
  fill: var(--gold);
}

/* 南浔管理驾驶舱大底：精确采用练市小学实际色值，仅作用于本后台。 */
:root {
  --bg: #061821;
  --sidebar: #071e28;
  --panel: rgba(10, 38, 48, .9);
  --panel-2: rgba(11, 48, 59, .96);
}

html,
body {
  background-color: #061821;
  background-image:
    radial-gradient(circle at 50% -20%, rgba(40, 124, 130, .26), transparent 48%),
    linear-gradient(145deg, #04141b 0%, #071e28 52%, #04151c 100%);
}

.sidebar {
  border-right-color: rgba(118, 222, 211, .2);
  background:
    radial-gradient(circle at 18% 10%, rgba(40, 124, 130, .2), transparent 34%),
    linear-gradient(180deg, #071e28 0%, #04151c 100%);
}

.workspace-sticky {
  background: linear-gradient(180deg, rgba(6, 24, 33, .995) 0%, rgba(6, 24, 33, .985) 88%, rgba(6, 24, 33, .94) 100%);
}

.identity-card,
.filter-bar,
.student-search,
.teacher-search,
.student-analysis-controls,
.change-overview,
.class-detail-controls,
.binding-grade-card,
.kpi-grid {
  background: linear-gradient(160deg, rgba(15, 53, 64, .9), rgba(7, 31, 40, .82));
}

.kpi-card,
.panel,
.card-count-summary,
.history-disclosure,
.agent-chat {
  background: linear-gradient(160deg, rgba(13, 47, 58, .92), rgba(6, 29, 38, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 12px 40px rgba(0, 8, 12, .14);
}

.kpi-grid .kpi-card {
  background: transparent;
  box-shadow: none;
}

.student-dialog {
  background: #08232c;
}

.teacher-detail-sticky {
  background: #061821;
}
