:root {
  --bg: #f4f8f6;
  --panel: #ffffff;
  --panel-soft: #f7faf9;
  --panel-strong: #edf5f2;
  --line: #dce8e4;
  --line-strong: #c6dcd5;
  --text: #183733;
  --muted: #58736d;
  --teal: #087868;
  --teal-soft: #e4f5ef;
  --blue: #45bdd3;
  --gold: #e7ab39;
  --shadow: 0 12px 36px rgba(24, 71, 63, .08);
}

html { background: var(--bg); }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 87% 4%, rgba(79, 199, 232, .11), transparent 32rem),
    var(--bg);
}

.sidebar {
  color: #eaf8f3;
  background:
    radial-gradient(circle at 18% 4%, rgba(90, 218, 176, .2), transparent 14rem),
    radial-gradient(circle at 92% 40%, rgba(69, 189, 211, .13), transparent 16rem),
    linear-gradient(165deg, #07483b, #06362f 58%, #073139);
}
.brand img { background: #fff; border-color: rgba(255,255,255,.2); }
.brand span,
.identity-card label,
.identity-card p,
.role-scope,
.sidebar-foot small { color: #90b9b0; }
.identity-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.055); }
.identity-card select {
  color: #fff;
  border-color: rgba(255,255,255,.12);
  background: #104b43;
}
.nav-item { color: #a7c9c2; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(79,199,232,.2), rgba(255,255,255,.07));
  box-shadow: inset 3px 0 var(--blue);
}
.nav-item i { border-color: rgba(255,255,255,.1); }
.nav-item.active i { color: #062e2a; border-color: var(--blue); background: var(--blue); }
.sidebar-foot { border-color: rgba(255,255,255,.08); }
.sidebar-foot a { color: #c9e2dc; }

.workspace,
.workspace-sticky,
.workspace-head,
.filter-bar { background: transparent; }
.workspace-sticky {
  padding-top: 10px;
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
}
.workspace-head { border-bottom-color: var(--line); }
.workspace-head { height: 46px; }
.workspace-head .freshness {
  padding-right: 0;
  border-right: 0;
}
.filter-bar {
  margin-top: 8px;
  padding: 8px 10px;
}
.hierarchy-filter {
  gap: 6px;
  padding-bottom: 8px;
}
.secondary-filters {
  padding-top: 8px;
}
.eyebrow { color: var(--teal); }
.freshness strong { color: #355951; font-weight: 650; }
.freshness,
.filter-item label,
.hierarchy-label,
.section-title p,
.panel-head p,
.muted { color: var(--muted) !important; }
.filter-item label,
.hierarchy-label,
.kpi-card label { color: #52716b !important; font-weight: 650; }
.section-title span,
.panel-head span,
.panel-note { color: #58766f !important; }

.filter-bar,
.hierarchy-filter { border-color: var(--line); }
.filter-item select {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
  font-weight: 500;
}
.hierarchy-options button,
.reset-button,
.button.secondary {
  color: var(--teal);
  border-color: rgba(10,124,104,.2);
  background: var(--teal-soft);
}
.hierarchy-options button:hover,
.hierarchy-options button.active,
.reset-button:hover,
.button.secondary:hover {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.panel,
.kpi-card,
.notice-card,
.identity-card,
.student-analysis-controls,
.student-hero,
.history-disclosure,
.binding-grade-card,
.teacher-class-compare-row,
.teacher-class-student-card {
  border-color: rgba(13,96,82,.11);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel::before { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.kpi-card::after { opacity: .24; }
.kpi-card label,
.kpi-card p,
.section-title span,
.panel-head span { color: var(--muted); }
.kpi-card strong small { color: #58766f; }

.data-table th {
  color: #496a63;
  border-color: var(--line);
  background: #f2f7f5;
  font-weight: 700;
}
.data-table td { color: #294a43; border-color: #e3ece9; }
.data-table tbody tr:hover { background: #f7faf9; }
.data-table strong,
.rank-number,
.change-value.positive { color: var(--teal); }

.chart-box,
.chart-empty,
.card-count-summary,
.class-choice-button,
.chip,
.status-pill,
.teacher-search,
.teacher-rate-policy,
.teacher-rate-empty,
.product-card,
.student-mode-tabs,
.student-mode-period > select,
.teacher-3d-viewer,
.teacher-2d-viewer {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-soft);
}
.segmented-control {
  border-color: #c9ddd7;
  background: #eef5f2;
}
.segment-button {
  color: #4c6f68;
  font-weight: 600;
}
.segment-button:hover { color: #143d35; background: #dfeee9; }
.segment-button.active {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 3px 10px rgba(10,124,104,.18);
}
.class-choice-button.active,
.student-mode-tabs button.active,
.toggle-control button.active {
  color: #fff;
  background: var(--teal);
}
.bar-track,
.teacher-class-compare-track { background: #eaf1ef; }
.bar-fill,
.coverage-ring-value { color: var(--teal); stroke: var(--teal); }

.chart-grid-line { stroke: rgba(39, 76, 68, .16); }
.chart-axis { fill: #57766f; font-weight: 550; }
.chart-label { fill: #41645c; font-weight: 650; }
.chart-value { fill: #183733; font-weight: 750; }
.chart-dot { stroke: #fff; stroke-width: 2.5; }
.legend,
.legend-item { color: #4f7068; }
.legend-item:hover { color: #183733 !important; background: #e7f2ee !important; }
.donut-row,
.donut-row em,
.dimension-score-list span,
.dimension-score-list em,
.class-five-head,
.heatmap-legend,
.matrix-legend,
.coverage-label { color: #58766f; fill: #58766f; }

.notice-card {
  color: #3d5e57;
  border-color: #cadfd8;
  background: #f2f8f5;
}
.notice-card strong { color: #21483f; }
.chip { color: #3c5d56; }
.chip strong { color: #126d5c; }
.status-pill { color: #3f625b; }
.metric-definition span { color: #4e6d67; }

.class-subject-matrix th,
.class-subject-matrix td,
.card-matrix th,
.card-matrix td { color: #31544c; border-color: #dce8e4; }
.class-subject-matrix thead th,
.card-matrix thead th { color: #45675f; background: #edf5f2; }
.class-subject-matrix button,
.card-matrix button { color: #24473f; }
.class-subject-matrix-scroll {
  border-color: #bfd2cc;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(33, 85, 74, .025);
}
.class-subject-matrix th,
.class-subject-matrix td {
  border-right-color: #cfddd8;
  border-bottom-color: #cfddd8;
}
.class-subject-matrix thead th {
  height: 48px;
  color: #294f46;
  background: #dfece8;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
}
.class-subject-matrix thead th:first-child,
.class-subject-matrix tbody th {
  color: #294f46;
  background: #eef5f2;
}
.class-subject-matrix tbody th {
  font-size: 12px;
  font-weight: 750;
}
.class-subject-matrix tbody tr.active th {
  color: #fff;
  background: var(--teal);
  box-shadow: inset 4px 0 #54cdb8;
}
.class-subject-matrix tbody tr.active td {
  border-top: 2px solid #0a7c68;
  border-bottom: 2px solid #0a7c68;
  background: #e3f3ee;
  box-shadow: inset 0 0 0 999px rgba(10,124,104,.055);
}
.class-subject-matrix tbody tr.active td:last-child {
  border-right: 2px solid #0a7c68;
}
.class-subject-matrix td button {
  background: rgba(10,124,104, calc(.035 + var(--subject-heat) * .16));
}
.class-subject-matrix td strong {
  color: #214c42;
  font-size: 14px;
  font-weight: 750;
}
.class-subject-matrix td.zero button { background: #fbfdfc; }
.class-subject-matrix td.zero strong { color: #78908a; font-weight: 600; }
.class-subject-matrix td.rank-1 button { background: rgba(10,124,104,.28); }
.class-subject-matrix td.rank-2 button { background: rgba(79,173,205,.21); }
.class-subject-matrix td.rank-3 button { background: rgba(231,171,57,.2); }
.class-subject-matrix td.rank-1 em {
  color: #fff;
  background: #08705f;
}
.class-subject-matrix td.rank-2 em {
  color: #153d48;
  background: #52bddc;
}
.class-subject-matrix td.rank-3 em {
  color: #4b340b;
  background: #edb94d;
}
.class-subject-matrix-note {
  color: #405f58;
  font-size: 11px;
  font-weight: 550;
}
.class-subject-matrix-note span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.class-subject-matrix-note i {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6faf8, rgba(10,124,104,.3));
  box-shadow: inset 0 0 0 1px rgba(10,124,104,.14);
}

.class-five-heatmap {
  gap: 6px;
  padding: 4px;
  border: 1px solid #c7d8d3;
  border-radius: 12px;
  background: #f8fbfa;
}
.class-five-head {
  padding: 3px 8px 5px;
  color: #355b52;
  font-size: 11px;
  font-weight: 750;
}
.class-five-row {
  padding: 5px;
  border-color: #d8e4e0;
  color: #294f46;
  background: #fff;
}
.class-five-row:hover {
  border-color: #9fc5bb;
  background: #f2f8f5;
}
.class-five-row.active {
  border-color: var(--teal);
  background: #edf7f3;
  box-shadow: inset 4px 0 var(--teal), 0 2px 8px rgba(10,124,104,.1);
}
.class-five-row > strong {
  color: #294f46;
  font-size: 12px;
  font-weight: 750;
}
.class-index-cell {
  min-height: 39px;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(35,78,69,.035);
}
.class-index-cell.below {
  border-color: rgba(202,139,29,.16);
  background: rgba(231,171,57,var(--cell-strength));
}
.class-index-cell.average {
  border-color: #cad9d4;
  background: #e9f0ed;
}
.class-index-cell.above {
  border-color: rgba(10,124,104,.16);
  background: rgba(55,190,165,var(--cell-strength));
}
.class-index-cell i {
  color: #496a63;
  font-size: 9px;
  font-weight: 650;
}
.class-index-cell em {
  color: #173d34;
  font-size: 14px;
  font-weight: 800;
}
.heatmap-legend {
  margin-top: 11px;
  color: #405f58;
  font-size: 10px;
  font-weight: 600;
}
.heatmap-legend i {
  width: 18px;
  height: 9px;
  box-shadow: inset 0 0 0 1px rgba(35,78,69,.1);
}
.heatmap-legend .below { background: rgba(231,171,57,.36); }
.heatmap-legend .average { background: #e9f0ed; }
.heatmap-legend .above { background: rgba(55,190,165,.38); }

.teacher-rate-policy span,
.teacher-rate-policy em,
.teacher-rate-rules > summary span,
.teacher-rate-empty p,
.teacher-class-compare-label span,
.teacher-class-compare-metric > em,
.teacher-student-distribution-legend { color: #54736c; }

.teacher-student-distribution {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 7px;
}

.teacher-student-status {
  min-height: 40px;
  padding: 7px 9px;
  gap: 7px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 2px 7px rgba(31, 78, 68, .06);
}

.teacher-student-status span {
  color: #1d443b;
  font-size: 12px;
  font-weight: 750;
}

.teacher-student-status strong {
  color: #08725f;
  font-size: 11px;
  font-weight: 800;
}

.teacher-student-status.covered {
  color: #173f36;
  border-color: rgba(8, 114, 95, .28);
  background: rgba(42, 181, 155, var(--student-level));
}

.teacher-student-status.missing {
  color: #496b63;
  border-color: #c8d8d3;
  background: #f6f9f8;
}

.teacher-student-status.missing span { color: #496b63; }
.teacher-student-status.missing strong { color: #6d847f; }

.teacher-split-kpi {
  grid-template-columns: minmax(88px, 1fr) minmax(108px, auto);
  gap: 14px;
}

.teacher-split-kpi-breakdown {
  min-width: 108px;
  padding: 7px 0 7px 13px;
  gap: 10px;
  border-left-color: #d6e3df;
}

.teacher-split-kpi-breakdown span {
  grid-template-columns: 8px 36px auto;
  gap: 6px;
}

.teacher-split-kpi-breakdown i {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 14%, transparent);
}

.teacher-split-kpi-breakdown em {
  color: #4b6b63;
  font-size: 10px;
  font-weight: 650;
}

.teacher-split-kpi-breakdown b {
  color: #173d35;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.teacher-class-compare-metric {
  grid-template-columns: 58px minmax(180px, 1fr) 54px 94px;
  gap: 10px;
}

.teacher-class-compare-metric > span {
  color: #3d6259;
  font-size: 11px;
  font-weight: 700;
}

.teacher-class-compare-metric > strong {
  color: #173d35;
  font-size: 12px;
  font-weight: 800;
}

.teacher-class-compare-metric > em {
  padding: 4px 7px;
  color: #2b574e;
  border: 1px solid #d3e2dd;
  border-radius: 7px;
  background: #f1f7f5;
  font-size: 10px;
  font-weight: 750;
}

.teacher-detail-sticky {
  top: 170px;
  margin: 0 -4px;
  padding: 10px 4px 11px;
  background: rgba(244, 248, 246, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 22px rgba(24, 71, 63, .08);
}

.teacher-detail-panel {
  min-height: 0;
}

.teacher-detail-panel .panel-head {
  min-height: 28px;
  align-items: center;
}

.teacher-detail-panel .teacher-class-comparison,
.teacher-detail-panel .teacher-class-student-grid {
  margin-top: 4px;
}

.redemption-period-select {
  color: #244a41;
  border-color: #c8dcd6;
  background: #fff;
  font-weight: 600;
}

.redemption-student-search {
  border-color: #c8dcd6;
  background: #fff;
}

.redemption-student-search > span { color: #0a7c68; }
.redemption-student-search input { color: #183f36; }
.redemption-student-search input::placeholder { color: #6b857f; }
.redemption-student-search button {
  color: #08725f;
  background: #e8f4f0;
  font-weight: 700;
}
.redemption-student-search button:disabled {
  color: #6f847f;
  background: #eef3f1;
  opacity: .72;
}

.redemption-account-notice {
  margin-top: 10px;
  padding: 10px 13px;
  color: #496b63;
  border-color: #cbded8;
  background: #edf6f3;
  font-size: 11px;
}
.redemption-account-notice strong { color: #0a6f5e; }

.student-comparison-subject > select {
  color: #244a41;
  border-color: #bfd8d1;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 71, 63, .08);
  font-weight: 650;
}

.student-comparison-subject > select option {
  color: #244a41;
  background: #fff;
}

.product-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 560px;
  padding-right: 6px;
  overflow-y: auto;
  align-content: start;
  scrollbar-gutter: stable;
}

.agent-chat {
  border-color: #c9ddd7;
  background: #fff;
  box-shadow: var(--shadow);
}

.agent-messages {
  border: 1px solid #dbe8e4;
  border-radius: 12px;
  background: linear-gradient(155deg, #f9fcfb, #edf6f3);
}

.agent-empty strong {
  color: #17483e;
  font-size: 20px;
  font-weight: 800;
}

.agent-empty p {
  color: #506f67;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.8;
}

.agent-form {
  padding: 10px;
  border: 1px solid #cfdfda;
  border-radius: 12px;
  background: #f1f7f5;
}

.agent-form input {
  color: #183f36;
  border-color: #bfd5ce;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(24, 71, 63, .04);
}

.agent-form input::placeholder { color: #708981; }
.agent-form input:focus {
  border-color: #0a7c68;
  box-shadow: 0 0 0 3px rgba(10,124,104,.1);
}
.agent-form button {
  color: #fff;
  background: linear-gradient(135deg, #0a7c68, #159a82);
  box-shadow: 0 5px 14px rgba(10,124,104,.2);
}

.class-detail-controls {
  border-color: #c9ddd7;
  background: #f3f8f6;
  box-shadow: 0 5px 16px rgba(24, 71, 63, .06);
}

.class-choice-row > span {
  color: #3e6259;
  font-size: 11px;
  font-weight: 750;
}

.class-choice-button {
  color: #315b51;
  border-color: #c6dbd4;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
}

.class-choice-button:hover {
  color: #075f50;
  border-color: #70b7a8;
  background: #eaf5f1;
}

.class-choice-button.active {
  color: #fff;
  border-color: #0a7c68;
  background: #0a7c68;
  box-shadow: 0 4px 10px rgba(10,124,104,.18);
}

.class-card-result-grid .class-card-student-panel {
  min-height: 0;
}

.class-card-student-panel .panel-head {
  min-height: 28px;
  align-items: center;
}

.class-card-student-panel .compact-coverage-students {
  max-height: 230px;
  margin-top: 2px;
  gap: 6px;
}

.class-card-student-panel .compact-coverage-students button {
  min-height: 31px;
  padding: 5px 8px;
  border-color: #d4e2de;
  background: #f9fcfb;
}

.class-card-student-panel .compact-coverage-students strong {
  color: #234d43;
  font-size: 11px;
  font-weight: 650;
}

.class-card-student-panel .compact-coverage-students em {
  color: #08725f;
  font-size: 10px;
  font-weight: 750;
}

.class-five-grid .panel {
  min-height: 355px;
}

.class-five-grid .panel.span-12 {
  grid-column: span 6;
}

.history-disclosure summary small,
.history-summary-meta,
.change-overview > div span,
.change-overview > p,
.change-count em,
.change-pill small,
.change-detail-head > div span,
.change-dimension-row em,
.change-caveat,
.agent-provider span,
.agent-provider small { color: #55746d; }

.change-overview {
  border-color: #c8ddd6;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 71, 63, .08);
}

.change-overview > div {
  padding: 8px 10px;
  border: 1px solid #d5e4df;
  border-radius: 9px;
  background: #f5faf8;
}

.change-overview > div strong { color: #173f36; }
.change-overview > div span { color: #55746d; }

.change-count {
  border: 1px solid #d5e4df;
  background: #f7faf9;
}

.change-count em { color: #496a63; }
.change-count.up {
  border-color: #b8ded2;
  background: #e8f6f1;
}
.change-count.up strong { color: #08725f; }
.change-count.steady {
  border-color: #cbded8;
  background: #eef5f3;
}
.change-count.steady strong { color: #315c53; }
.change-count.down {
  border-color: #f0c9bd;
  background: #fff0eb;
}
.change-count.down strong { color: #bc6048; }
.change-count.insufficient {
  border-color: #ead8ae;
  background: #fff8e7;
}
.change-count.insufficient strong { color: #9b6b14; }

.student-dialog {
  color: var(--text);
  border-color: var(--line);
  background: var(--bg);
}
.student-dialog::backdrop { background: rgba(5, 35, 31, .5); }
.dialog-close { color: var(--text); border-color: var(--line); background: #fff; }
.loading-screen { color: var(--text); background: #f4f8f6; }

.agent-shell,
.agent-guide,
.agent-thread,
.agent-composer {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}
.agent-message {
  color: #183f36;
  background: transparent;
}
.agent-message > span {
  color: #4f6f67;
  font-size: 11px;
  font-weight: 750;
}
.agent-message > div {
  color: #244b42;
  border-color: #c9ddd7;
  background: #fff;
  box-shadow: 0 4px 14px rgba(24, 71, 63, .06);
}
.agent-message.assistant > div {
  border-color: #bfdcd4;
  background: #edf7f4;
}
.agent-message strong {
  color: #16483e;
  font-size: 13px;
}
.agent-message p {
  color: #31594f;
  font-size: 12px;
  line-height: 1.75;
}
.agent-message li {
  color: #31594f;
  border: 1px solid #d2e4df;
  background: rgba(255, 255, 255, .78);
}
.agent-message li button { color: #0a705f; }
.agent-message.user > div {
  color: #fff;
  border-color: #0a7c68;
  background: linear-gradient(135deg, #0a7c68, #159a82);
  box-shadow: 0 5px 16px rgba(10, 124, 104, .18);
}
.agent-message.user strong,
.agent-message.user p,
.agent-message.user li,
.agent-message.user li button { color: #fff; }
.agent-message.user li {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
}
.agent-composer textarea { color: var(--text); border-color: var(--line); background: #fff; }

.teacher-3d-viewer canvas,
.teacher-2d-viewer canvas { filter: saturate(.92) brightness(1.02); }
.instant-tooltip::after { background: #16463e; }

.brand span {
  color: #e4f2ee;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
}

/* Readability pass: retain the light mint palette while strengthening small text and controls. */
:root {
  --line: #cfded9;
  --line-strong: #b7cec7;
  --muted: #405f58;
  --shadow: 0 12px 34px rgba(24, 71, 63, .11);
}

.brand span { color: #c8ded8; }
.nav-item { color: #c3dad4; }
.nav-item i {
  color: #a8cec6;
  border-color: rgba(213, 239, 232, .22);
}
.sidebar-foot a { color: #e0f0ec; }
.sidebar-foot small { color: #a9c6bf; }

.identity-card {
  color: var(--text);
  border-color: #d4e2de;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 24px rgba(1, 35, 29, .15);
}
.identity-card label,
.identity-card p,
.role-scope { color: #496a63; }

.freshness,
.filter-item label,
.hierarchy-label,
.section-title p,
.panel-head p,
.muted { color: #405f58 !important; }
.filter-item label,
.hierarchy-label,
.kpi-card label { color: #3d6058 !important; }
.section-title span,
.panel-head span,
.panel-note { color: #496a63 !important; }

.filter-item select,
.student-mode-period > select {
  border-color: #bdcfc9;
  box-shadow: inset 0 0 0 1px rgba(21, 86, 74, .025);
}
.filter-item select:disabled { opacity: .68; }

.hierarchy-options button,
.reset-button,
.button.secondary {
  color: #086b5b;
  border-color: #b7d4cc;
  background: #e4f2ed;
}

.kpi-card label,
.kpi-card p { color: #45665f !important; }
.kpi-card strong small { color: #486960; }

.student-search,
.teacher-search {
  color: var(--text);
  border-color: #c5d7d1;
  background: #f4f8f6;
}
.student-search input,
.teacher-search input {
  color: var(--text);
  border-color: #bdcfc9;
  background: #fff;
}
.student-search input::placeholder,
.teacher-search input::placeholder { color: #657f79; opacity: 1; }
.student-search em,
.teacher-search em { color: #496a63; }
.teacher-search button {
  color: #086b5b;
  border-color: #b8d3cc;
  background: #e5f3ee;
}
.teacher-search button.primary {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.student-mode-tabs button,
.segment-button,
.toggle-control button { color: #496a63; }
.student-mode-tabs button:hover,
.segment-button:hover,
.toggle-control button:hover { color: #183733; }

.data-table th,
.student-sort-button,
.teacher-sort-button { color: #3f625a; }
.student-sort-button small,
.student-sort-button i,
.teacher-sort-button i { color: #58736d; }
.data-table td { color: #24463f; }

.chart-axis { fill: #405f58; font-weight: 650; }
.chart-grid-line { stroke: rgba(39, 76, 68, .22); }
.chart-label { fill: #31584f; }
.legend,
.legend-item { color: #405f58; }

/* Five-dimension portrait: stronger axes, comparison baseline and score hierarchy. */
.class-five-portrait {
  grid-template-columns: minmax(320px, 1fr) 150px;
  gap: 16px;
}
.class-five-radar .chart-box {
  border: 1px solid #c6d8d2;
  background: linear-gradient(180deg, #fbfdfc 0%, #f3f8f6 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.class-five-radar .radar-grid,
.class-five-radar .radar-axis {
  stroke: rgba(39, 76, 68, .27);
  stroke-width: 1.1;
}
.class-five-radar .radar-baseline {
  fill: #78928b;
  fill-opacity: .08;
  stroke: #657f78;
  stroke-width: 1.7;
  stroke-dasharray: 5 4;
}
.class-five-radar .radar-series {
  fill: #28b59b;
  fill-opacity: .25;
  stroke: #087d69;
  stroke-width: 2.6;
}
.class-five-radar .chart-label {
  fill: #264f46;
  font-size: 13px;
  font-weight: 750;
}
.class-five-radar .legend {
  color: #355c53;
  font-weight: 650;
}
.class-five-radar .legend i {
  box-shadow: 0 0 0 1px rgba(23, 69, 60, .2);
}
.class-five-score-card {
  position: relative;
  min-height: 56px;
  overflow: hidden;
  border-color: #c8dad4;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--dimension-color), 0 4px 12px rgba(31, 82, 72, .07);
}
.class-five-score-card span {
  color: #3d6058;
  font-weight: 700;
}
.class-five-score-card strong { color: #173f36; }
.class-five-score-card strong small,
.class-five-score-card em { color: #4b6c64; }

.teacher-rate-rules > summary { color: #355c53; font-weight: 650; }
.teacher-rate-rules > summary span,
.teacher-3d-note,
.teacher-3d-help { color: #4b6a63; }

.metric-definition span,
.product-card span,
.binding-class-row span,
.history-disclosure summary small,
.history-summary-meta,
.change-overview > div span,
.change-overview > p,
.change-count em,
.change-pill small,
.change-detail-head > div span,
.change-dimension-row em,
.change-caveat,
.agent-provider span,
.agent-provider small { color: #496a63; }

@media (max-width: 920px) {
  .workspace-sticky { background: rgba(255,255,255,.96); }
  .class-five-grid .panel.span-12 { grid-column: span 12; }
}

/*
 * 练市小学视觉隔离层。
 * 共享管理端后续即使更换皮肤，也保持练市当前清爽、浅色的视觉语言。
 */
body[data-static-admin-data="true"] .kpi-grid {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-static-admin-data="true"] .kpi-grid .kpi-card {
  border: 1px solid rgba(13, 96, 82, .11);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

body[data-static-admin-data="true"] .kpi-grid .kpi-card + .kpi-card {
  box-shadow: var(--shadow);
}

body[data-static-admin-data="true"] .kpi-grid .kpi-card label {
  color: #45665f;
  font-weight: 650;
}

body[data-static-admin-data="true"] .kpi-grid .kpi-card strong {
  color: var(--text);
  text-shadow: none;
}

body[data-static-admin-data="true"] .panel-head {
  border-bottom: 0;
}

body[data-static-admin-data="true"] .panel-head h3 {
  color: #183733;
  letter-spacing: normal;
}

body[data-static-admin-data="true"] .panel::after {
  content: none;
}

body[data-static-admin-data="true"] .data-table td.num > strong,
body[data-static-admin-data="true"] .points-total strong {
  color: var(--teal);
  text-shadow: none;
}

body[data-static-admin-data="true"] .student-hero {
  border-color: #c9ddd7;
  background: linear-gradient(135deg, #f7fbf9 0%, #edf6f2 100%);
}

body[data-static-admin-data="true"] .teacher-2d-viewer {
  border-color: #c5d9d3;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8f5 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78), 0 8px 24px rgba(31,82,72,.06);
}

body[data-static-admin-data="true"] .teacher-2d-viewer canvas {
  filter: none;
}

/* 总览与班级对比：三个图表始终保持同一横排，并压缩无效留白。 */
body[data-static-admin-data="true"] .overview-comparison-grid,
body[data-static-admin-data="true"] .class-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-static-admin-data="true"] .overview-comparison-grid > .panel,
body[data-static-admin-data="true"] .class-comparison-grid > .panel {
  grid-column: auto !important;
}

body[data-static-admin-data="true"] .overview-comparison-grid .panel {
  min-height: 238px;
  padding: 14px 16px 12px;
}

body[data-static-admin-data="true"] .overview-comparison-grid .panel-head,
body[data-static-admin-data="true"] .class-comparison-grid .panel-head {
  min-height: 26px;
}

body[data-static-admin-data="true"] .overview-comparison-grid .chart-box,
body[data-static-admin-data="true"] .class-comparison-grid .chart-box {
  margin-top: 2px;
}

body[data-static-admin-data="true"] .class-comparison-grid .panel {
  min-height: 220px;
  padding: 12px 16px 10px;
}

body[data-static-admin-data="true"] .overview-card-composition-panel .chart-label {
  font-size: 12px;
  font-weight: 700;
}

body[data-static-admin-data="true"] .overview-card-composition-panel .chart-value {
  font-size: 12px;
  font-weight: 750;
}

body[data-static-admin-data="true"] .overview-grade-comparison-panel .chart-label,
body[data-static-admin-data="true"] .overview-grade-coverage-panel .chart-label,
body[data-static-admin-data="true"] .class-comparison-grid .chart-label {
  font-size: 12px;
  font-weight: 700;
}

body[data-static-admin-data="true"] .overview-grade-comparison-panel .chart-value,
body[data-static-admin-data="true"] .overview-grade-coverage-panel .chart-value,
body[data-static-admin-data="true"] .class-comparison-grid .chart-value {
  font-size: 11px;
  font-weight: 750;
}

body[data-static-admin-data="true"] .teacher-2d-viewer .teacher-3d-help {
  color: #496a63;
  font-weight: 600;
}

body[data-static-admin-data="true"] .teacher-2d-viewer .teacher-3d-tooltip {
  border-color: #9fc9be;
  color: #183733;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 32px rgba(31,82,72,.18);
}

body[data-static-admin-data="true"] .teacher-2d-viewer .teacher-3d-tooltip strong {
  color: #08725f;
  font-weight: 800;
}

body[data-static-admin-data="true"] .teacher-2d-viewer .teacher-3d-tooltip span {
  color: #405f58;
  font-size: 10px;
  font-weight: 600;
}

body[data-static-admin-data="true"] .binding-grade-card {
  border-color: #c9dcd6;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31,82,72,.07);
}

body[data-static-admin-data="true"] .binding-grade-card > strong {
  color: #08725f;
  font-weight: 800;
}

body[data-static-admin-data="true"] .binding-grade-card > strong em {
  color: #31584f;
  font-weight: 750;
}

body[data-static-admin-data="true"] .binding-class-row {
  border-top-color: #d8e5e1;
}

body[data-static-admin-data="true"] .binding-class-row b {
  color: #234d43;
  font-weight: 800;
}

body[data-static-admin-data="true"] .binding-class-row span {
  color: #405f58;
  font-weight: 600;
}

body[data-static-admin-data="true"] .redemption-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-static-admin-data="true"] .brand span {
  color: #e4f2ee;
}

/* 学生综合素质报告单：管理端名册与手机端预览。 */
.report-cycle-note {
  min-height: 52px;
  margin-bottom: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bcd9d1;
  border-radius: 12px;
  color: #315b51;
  background: linear-gradient(90deg, #edf8f4, #f8fbfa);
  box-shadow: 0 7px 18px rgba(24, 71, 63, .06);
}

.report-cycle-note strong {
  color: #0a705f;
  font-size: 14px;
}

.report-cycle-note span {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
}

.report-cycle-note em {
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: #0a7c68;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.report-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-roster-table .report-preview-button,
.student-hero-actions > button,
.report-preview-toolbar > button {
  border: 1px solid #98c9bc;
  border-radius: 8px;
  color: #08715f;
  background: #e8f5f1;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.report-roster-table .report-preview-button {
  min-width: 84px;
  height: 28px;
}

.report-roster-table .report-preview-button:hover,
.student-hero-actions > button:hover,
.report-preview-toolbar > button:hover {
  color: #fff;
  border-color: #0a7c68;
  background: #0a7c68;
}

.student-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.student-hero-actions > button {
  min-height: 34px;
  padding: 0 12px;
}

.report-dialog-body {
  padding-top: 18px;
  background: #eef5f2;
}

.report-preview-toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  margin: -18px -26px 16px;
  padding: 12px 72px 12px 26px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #c9ddd7;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 20px rgba(24, 71, 63, .08);
}

.report-preview-toolbar div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.report-preview-toolbar strong {
  color: #183f36;
  font-size: 15px;
}

.report-preview-toolbar span {
  color: #58766f;
  font-size: 10px;
}

.report-preview-toolbar em {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.report-preview-toolbar em.ready {
  color: #08715f;
  background: #e2f4ee;
}

.report-preview-toolbar em.pending {
  color: #9b6b14;
  background: #fff4d9;
}

.report-preview-toolbar > button {
  min-height: 32px;
  padding: 0 12px;
}

.student-report-sheet {
  width: min(440px, 100%);
  margin: 0 auto 18px;
  color: #24463f;
  border: 1px solid #bed4ce;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(24, 71, 63, .16);
  overflow: hidden;
}

.report-cover {
  padding: 28px 22px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #075f50, #0d8b75 58%, #42b9a5);
}

.report-cover span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.report-cover h2 {
  margin: 8px 0 5px;
  font-size: 26px;
  letter-spacing: .08em;
}

.report-cover p {
  margin: 0;
  color: #d9f2eb;
  font-size: 11px;
}

.report-student-summary {
  margin: -10px 16px 0;
  padding: 13px 10px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid #d3e2de;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 71, 63, .08);
}

.report-student-summary div {
  min-width: 0;
  padding: 0 7px;
  border-right: 1px solid #e1ece8;
}

.report-student-summary div:last-child { border-right: 0; }
.report-student-summary small {
  display: block;
  margin-bottom: 4px;
  color: #6a837c;
  font-size: 8px;
}

.report-student-summary strong {
  display: block;
  color: #17463c;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-section {
  padding: 18px 18px 0;
}

.report-section-title {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.report-section-title h3 {
  margin: 0;
  color: #17463c;
  font-size: 14px;
}

.report-section-title span {
  color: #70877f;
  font-size: 8px;
}

.report-dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.report-dimension-card {
  min-width: 0;
  padding: 9px 5px 7px;
  border: 1px solid #d9e6e2;
  border-top: 3px solid var(--dimension-color);
  border-radius: 9px;
  background: #f8fbfa;
  text-align: center;
}

.report-dimension-card span,
.report-dimension-card strong,
.report-dimension-card em {
  display: block;
}

.report-dimension-card span {
  color: #58766f;
  font-size: 9px;
  font-weight: 700;
}

.report-dimension-card strong {
  margin-top: 3px;
  color: #183f36;
  font-size: 11px;
}

.report-dimension-card em {
  margin-top: 2px;
  color: #789087;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.report-dimension-card i,
.report-subject-row i {
  display: block;
  overflow: hidden;
  background: #e6efec;
}

.report-dimension-card i {
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
}

.report-dimension-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dimension-color);
}

.report-subject-list {
  display: grid;
  gap: 7px;
}

.report-subject-row {
  display: grid;
  grid-template-columns: 70px 1fr 42px;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}

.report-subject-row span {
  color: #405f58;
  font-weight: 650;
}

.report-subject-row i {
  height: 7px;
  border-radius: 5px;
}

.report-subject-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a8b74, #56c9b6);
}

.report-subject-row strong {
  color: #17463c;
  text-align: right;
}

.report-footprints {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-footprints li {
  padding: 8px 0;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #e4ece9;
}

.report-footprints time {
  color: #6a837c;
  font-size: 8px;
}

.report-footprints div strong,
.report-footprints div span {
  display: block;
}

.report-footprints div strong {
  color: #315b51;
  font-size: 10px;
}

.report-footprints div span {
  margin-top: 2px;
  color: #789087;
  font-size: 8px;
}

.report-footprints > li > em {
  color: #0a806b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.student-report-sheet footer {
  margin-top: 18px;
  padding: 16px 18px 20px;
  color: #315b51;
  background: #edf7f4;
  text-align: center;
}

.student-report-sheet footer strong,
.student-report-sheet footer span {
  display: block;
}

.student-report-sheet footer strong {
  font-size: 11px;
}

.student-report-sheet footer span {
  margin-top: 5px;
  color: #6a837c;
  font-size: 8px;
  line-height: 1.55;
}

.report-empty {
  color: #789087;
  font-size: 9px;
}

@media (max-width: 900px) {
  .report-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-preview-toolbar {
    grid-template-columns: 1fr auto;
    padding-right: 60px;
  }
  .report-preview-toolbar em { grid-column: 1 / -1; grid-row: 2; }
}

/* AI问数可读性：两校保持一致，不改变对话区布局。 */
.agent-chat {
  border-color: #b8d0c9;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 67, 57, .12);
}

.agent-messages {
  border-color: #cfdfda;
  background: linear-gradient(155deg, #f7fbfa, #eaf4f1);
}

.agent-message > span {
  color: #355e54;
  font-size: 14px;
  font-weight: 800;
}

.agent-message.assistant > span {
  color: #08715f;
}

.agent-message > div {
  color: #173f36;
  border-color: #bfd5ce;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 67, 57, .08);
}

.agent-message.assistant > div {
  border-color: #a9cec4;
  background: linear-gradient(145deg, #f7fbfa, #e3f1ed);
  box-shadow: inset 4px 0 #3b9f8a, 0 5px 16px rgba(18, 67, 57, .08);
}

.agent-message strong {
  color: #103e34;
  font-size: 18px;
}

.agent-message p {
  color: #1e493f;
  font-size: 17px;
  font-weight: 520;
  line-height: 1.85;
}

.agent-message li,
.agent-message li button {
  color: #245147;
  font-size: 16px;
  line-height: 1.7;
}

.agent-message li {
  border-color: #c8dcd6;
  background: rgba(255, 255, 255, .9);
}

.agent-message.user > div {
  color: #fff;
  border-color: #07584b;
  background: linear-gradient(135deg, #075f50, #087764);
  box-shadow: 0 7px 18px rgba(7, 95, 80, .24);
}

.agent-message.user strong,
.agent-message.user p,
.agent-message.user li,
.agent-message.user li button {
  color: #fff;
}

.agent-message.user li {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
}

.agent-form {
  border-color: #bdd2cb;
  background: #edf5f2;
}

.agent-form input {
  color: #143c33;
  border-color: #adc8c0;
  background: #fff;
  font-size: 16px;
}

.agent-form input::placeholder {
  color: #617a74;
}

.agent-form button {
  color: #fff;
  background: linear-gradient(135deg, #086b5a, #0a806b);
  box-shadow: 0 6px 16px rgba(8, 107, 90, .22);
  font-size: 15px;
}

/* AI历史问话：按学校隔离，仅增加历史栏，不改变消息气泡结构。 */
.agent-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.agent-history-panel {
  height: calc(100vh - 180px);
  min-height: 560px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #bfd4cd;
  border-radius: 16px;
  background: linear-gradient(165deg, #f9fcfb, #edf5f2);
  box-shadow: 0 12px 30px rgba(18, 67, 57, .09);
}

.agent-history-panel > header {
  padding-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d2e1dc;
}

.agent-history-panel > header strong,
.agent-history-panel > header span {
  display: block;
}

.agent-history-panel > header strong {
  color: #123f35;
  font-size: 17px;
}

.agent-history-panel > header span {
  margin-top: 4px;
  color: #5c786f;
  font-size: 11px;
}

.agent-history-panel > header em {
  min-width: 42px;
  padding: 5px 7px;
  color: #08715f;
  border: 1px solid #b9d2ca;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  text-align: center;
}

.agent-history-list {
  min-height: 0;
  padding-right: 3px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
}

.agent-history-item {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #214b41;
  border: 1px solid #c8dbd5;
  border-radius: 11px;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.agent-history-item:hover,
.agent-history-item:focus-visible {
  border-color: #5da998;
  background: #fff;
  box-shadow: 0 7px 18px rgba(18, 67, 57, .12);
  outline: none;
  transform: translateY(-1px);
}

.agent-history-item span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #0a806b;
  border-radius: 7px;
  background: #edf6f3;
  font-size: 11px;
  font-weight: 800;
}

.agent-history-item p {
  margin: 1px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #214b41;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.agent-history-empty {
  padding: 20px 12px;
  border: 1px dashed #bfd4cd;
  border-radius: 11px;
  background: rgba(255, 255, 255, .55);
  text-align: center;
}

.agent-history-empty strong {
  color: #315b51;
  font-size: 14px;
}

.agent-history-empty p {
  margin: 7px 0 0;
  color: #607b74;
  font-size: 11px;
  line-height: 1.65;
}

.agent-history-panel > footer {
  padding-top: 10px;
  color: #607b74;
  border-top: 1px solid #d2e1dc;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .agent-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
  }
}
/* 长兴八小：校标绿、湖水蓝与暖金主题，不使用五育界面。 */
body[data-school-code="cxbx"] {
  --brand: #087868;
  --brand-soft: #e4f5ef;
  --accent: #d9a326;
}

body[data-school-code="cxbx"] .brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

body[data-school-code="cxbx"] .brand > div { min-width: 92px; }
body[data-school-code="cxbx"] .brand strong { white-space: nowrap; font-size: 17px; }
body[data-school-code="cxbx"] .brand span { line-height: 1.35; }

body[data-school-code="cxbx"] #dimension-filter-item,
body[data-school-code="cxbx"] .class-five-grid,
body[data-school-code="cxbx"] .student-family-kpi-grid,
body[data-school-code="cxbx"] .student-family-detail-panel {
  display: none !important;
}

/* 长兴八小管理驾驶舱：深绿青蓝主题。 */
body[data-school-code="cxbx"] {
  --bg: #06161b;
  --panel: #0c252c;
  --panel-soft: #0a2026;
  --panel-strong: #123038;
  --line: rgba(112, 205, 190, .14);
  --line-strong: rgba(112, 205, 190, .28);
  --text: #ecf8f5;
  --muted: #8eaaa5;
  --teal: #46d7bd;
  --teal-soft: rgba(70, 215, 189, .11);
  --blue: #51c7e6;
  --gold: #efbd55;
  --shadow: 0 14px 38px rgba(0, 7, 10, .28);
  color: var(--text);
  background:
    radial-gradient(circle at 82% -8%, rgba(36, 134, 145, .22), transparent 36rem),
    radial-gradient(circle at 28% 105%, rgba(25, 111, 84, .13), transparent 34rem),
    var(--bg);
}

body[data-school-code="cxbx"] .sidebar {
  background:
    radial-gradient(circle at 18% 4%, rgba(70, 215, 189, .17), transparent 14rem),
    radial-gradient(circle at 92% 40%, rgba(81, 199, 230, .10), transparent 16rem),
    linear-gradient(170deg, #073b34, #062b2a 55%, #071f27);
}

body[data-school-code="cxbx"] .workspace-sticky {
  border-bottom-color: var(--line);
  background: rgba(6, 22, 27, .91);
  box-shadow: 0 12px 26px rgba(0, 8, 11, .2);
}

body[data-school-code="cxbx"] .freshness strong,
body[data-school-code="cxbx"] .workspace-head h1,
body[data-school-code="cxbx"] .section-title h2,
body[data-school-code="cxbx"] .panel-head h3,
body[data-school-code="cxbx"] .kpi-card strong,
body[data-school-code="cxbx"] .data-table strong,
body[data-school-code="cxbx"] .teacher-split-kpi-breakdown b,
body[data-school-code="cxbx"] .teacher-class-compare-metric > strong,
body[data-school-code="cxbx"] .teacher-student-status span,
body[data-school-code="cxbx"] .agent-empty strong,
body[data-school-code="cxbx"] .agent-message strong,
body[data-school-code="cxbx"] .agent-history-panel > header strong {
  color: var(--text);
}

body[data-school-code="cxbx"] .freshness,
body[data-school-code="cxbx"] .freshness span,
body[data-school-code="cxbx"] .filter-item label,
body[data-school-code="cxbx"] .hierarchy-label,
body[data-school-code="cxbx"] .kpi-card label,
body[data-school-code="cxbx"] .kpi-card p,
body[data-school-code="cxbx"] .section-title p,
body[data-school-code="cxbx"] .section-title span,
body[data-school-code="cxbx"] .panel-head p,
body[data-school-code="cxbx"] .panel-head span,
body[data-school-code="cxbx"] .panel-note,
body[data-school-code="cxbx"] .muted,
body[data-school-code="cxbx"] .metric-definition span,
body[data-school-code="cxbx"] .teacher-rate-policy span,
body[data-school-code="cxbx"] .teacher-rate-policy em,
body[data-school-code="cxbx"] .teacher-class-compare-label span,
body[data-school-code="cxbx"] .teacher-class-compare-metric > em,
body[data-school-code="cxbx"] .teacher-student-distribution-legend,
body[data-school-code="cxbx"] .agent-empty p,
body[data-school-code="cxbx"] .agent-history-panel > header span,
body[data-school-code="cxbx"] .agent-history-panel > footer {
  color: var(--muted) !important;
}

body[data-school-code="cxbx"] .filter-bar,
body[data-school-code="cxbx"] .panel,
body[data-school-code="cxbx"] .kpi-card,
body[data-school-code="cxbx"] .notice-card,
body[data-school-code="cxbx"] .student-analysis-controls,
body[data-school-code="cxbx"] .student-hero,
body[data-school-code="cxbx"] .history-disclosure,
body[data-school-code="cxbx"] .binding-grade-card,
body[data-school-code="cxbx"] .teacher-class-compare-row,
body[data-school-code="cxbx"] .teacher-class-student-card,
body[data-school-code="cxbx"] .agent-chat,
body[data-school-code="cxbx"] .agent-history-panel {
  color: var(--text);
  border-color: var(--line);
  background: linear-gradient(150deg, rgba(15, 43, 50, .97), rgba(8, 28, 34, .96));
  box-shadow: var(--shadow);
}

body[data-school-code="cxbx"] .binding-grade-card {
  border-color: rgba(112, 205, 190, .24);
  background: linear-gradient(150deg, rgba(17, 53, 60, .98), rgba(8, 31, 38, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 10px 24px rgba(0, 8, 11, .18);
}

body[data-school-code="cxbx"] .binding-grade-card > strong {
  color: #61ddc6;
  font-weight: 800;
}

body[data-school-code="cxbx"] .binding-grade-card > strong em {
  color: #b8d0cb;
  font-weight: 700;
}

body[data-school-code="cxbx"] .binding-class-row {
  border-top-color: rgba(151, 207, 198, .28);
}

body[data-school-code="cxbx"] .binding-class-row b {
  color: #eef9f6;
  font-size: 12px;
  font-weight: 800;
}

body[data-school-code="cxbx"] .binding-class-row span {
  color: #c5dad6;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

body[data-school-code="cxbx"] .filter-item select,
body[data-school-code="cxbx"] .redemption-period-select,
body[data-school-code="cxbx"] .redemption-student-search,
body[data-school-code="cxbx"] .student-comparison-subject > select,
body[data-school-code="cxbx"] .student-comparison-subject > select option,
body[data-school-code="cxbx"] .student-mode-period > select,
body[data-school-code="cxbx"] .teacher-search,
body[data-school-code="cxbx"] .teacher-search input,
body[data-school-code="cxbx"] .student-search,
body[data-school-code="cxbx"] .student-search input {
  color: var(--text);
  border-color: var(--line-strong);
  background: #0a2229;
  box-shadow: none;
}

body[data-school-code="cxbx"] .hierarchy-options button,
body[data-school-code="cxbx"] .reset-button,
body[data-school-code="cxbx"] .button.secondary,
body[data-school-code="cxbx"] .segmented-control,
body[data-school-code="cxbx"] .student-mode-tabs,
body[data-school-code="cxbx"] .toggle-control {
  color: #a9c3be;
  border-color: var(--line);
  background: rgba(3, 18, 23, .52);
}

body[data-school-code="cxbx"] .hierarchy-options button:hover,
body[data-school-code="cxbx"] .hierarchy-options button.active,
body[data-school-code="cxbx"] .reset-button:hover,
body[data-school-code="cxbx"] .button.secondary:hover,
body[data-school-code="cxbx"] .segment-button.active,
body[data-school-code="cxbx"] .student-mode-tabs button.active,
body[data-school-code="cxbx"] .toggle-control button.active {
  color: #05241f;
  border-color: var(--teal);
  background: var(--teal);
}

body[data-school-code="cxbx"] .chart-box,
body[data-school-code="cxbx"] .chart-empty,
body[data-school-code="cxbx"] .card-count-summary,
body[data-school-code="cxbx"] .class-choice-button,
body[data-school-code="cxbx"] .chip,
body[data-school-code="cxbx"] .status-pill,
body[data-school-code="cxbx"] .teacher-rate-policy,
body[data-school-code="cxbx"] .teacher-rate-empty,
body[data-school-code="cxbx"] .product-card,
body[data-school-code="cxbx"] .teacher-3d-viewer,
body[data-school-code="cxbx"] .teacher-2d-viewer {
  color: #cfe1dd;
  border-color: var(--line);
  background: rgba(5, 24, 29, .58);
}

body[data-school-code="cxbx"] .data-table th {
  color: #94b3ad;
  border-color: var(--line);
  background: #102d34;
}

body[data-school-code="cxbx"] .teacher-2d-viewer {
  border: 0;
  box-shadow: none;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel {
  width: 100%;
  padding: 16px 18px 18px;
}

body[data-school-code="cxbx"] .teacher-analysis-grid {
  align-items: start;
  height: max(320px, calc(100dvh - 388px));
  min-height: 320px;
  grid-auto-rows: minmax(0, 1fr);
}

body[data-school-code="cxbx"][data-page="teacherIssuance"] .page-content {
  min-height: 0;
}

body[data-school-code="cxbx"] .teacher-analysis-grid > .panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-school-code="cxbx"] .teacher-distribution-panel .teacher-2d-viewer {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-school-code="cxbx"] .teacher-distribution-panel .teacher-2d-viewer canvas {
  height: 100%;
}

body[data-school-code="cxbx"] .teacher-distribution-panel .panel-head {
  justify-content: flex-start;
  gap: 12px;
}

body[data-school-code="cxbx"] .teacher-distribution-panel .panel-controls {
  flex: 1 1 auto;
}

body[data-school-code="cxbx"] .teacher-rate-rules-head {
  position: relative;
  margin: 0 auto 0 0;
  border: 0;
}

body[data-school-code="cxbx"] .teacher-rate-rules-head > summary {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(75, 208, 187, .2);
  border-radius: 7px;
  color: #8fd8cc;
  background: rgba(18, 74, 73, .42);
}

body[data-school-code="cxbx"] .teacher-rate-rules-head > .teacher-rate-policy {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  width: 360px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0c292f;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .panel-head {
  min-height: 82px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .panel-controls,
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-search {
  width: 100%;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-search {
  grid-template-columns: 18px minmax(120px, 1fr) auto auto;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .data-table {
  font-size: 11px;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .data-table th,
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .data-table td {
  padding-inline: 4px;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .data-table td {
  height: 40px;
}

body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-evaluation-table th:nth-child(1) { width: 13%; }
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-evaluation-table th:nth-child(2) { width: 13%; }
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-evaluation-table th:nth-child(3) { width: 11%; }
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-evaluation-table th:nth-child(4) { width: 17%; }
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-evaluation-table th:nth-child(n+5) { width: 11.5%; }

body[data-school-code="cxbx"] .student-analysis-grid {
  align-items: stretch;
}

body[data-school-code="cxbx"] .student-analysis-controls {
  display: grid;
  grid-template-columns: 336px 390px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body[data-school-code="cxbx"] .student-analysis-controls.semester-only {
  grid-template-columns: 336px 390px minmax(0, 1fr);
}

body[data-school-code="cxbx"] .student-analysis-controls .student-mode-tabs,
body[data-school-code="cxbx"] .student-analysis-controls.semester-only .student-mode-tabs {
  width: 336px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

body[data-school-code="cxbx"] .student-analysis-controls .student-mode-tabs button,
body[data-school-code="cxbx"] .student-analysis-controls.semester-only .student-mode-tabs button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

body[data-school-code="cxbx"] .student-analysis-controls .student-search {
  width: 100%;
  min-width: 0;
  margin: 0;
}

body[data-school-code="cxbx"] .student-analysis-controls .student-mode-period {
  width: 240px;
  max-width: 100%;
  justify-self: end;
}

body[data-school-code="cxbx"] .student-analysis-controls .student-mode-period > select {
  width: 100%;
}

body[data-school-code="cxbx"] .change-overview {
  border-color: rgba(105, 204, 189, .22);
  background: linear-gradient(145deg, rgba(14, 44, 51, .98), rgba(7, 27, 33, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 10px 24px rgba(0, 8, 11, .18);
}

body[data-school-code="cxbx"] .change-overview > div,
body[data-school-code="cxbx"] .change-count {
  border-color: rgba(112, 205, 190, .16);
  background: rgba(5, 24, 29, .7);
}

body[data-school-code="cxbx"] .change-overview > div strong {
  color: #eaf8f5;
}

body[data-school-code="cxbx"] .change-overview > div span,
body[data-school-code="cxbx"] .change-count em {
  color: #8caaa4;
}

body[data-school-code="cxbx"] .change-count.up {
  border-color: rgba(80, 213, 178, .26);
  background: rgba(27, 108, 90, .3);
}

body[data-school-code="cxbx"] .change-count.up strong {
  color: #58dfbf;
}

body[data-school-code="cxbx"] .change-count.steady {
  border-color: rgba(111, 177, 170, .22);
  background: rgba(53, 91, 94, .3);
}

body[data-school-code="cxbx"] .change-count.steady strong {
  color: #b4d5cf;
}

body[data-school-code="cxbx"] .change-count.down {
  border-color: rgba(239, 148, 108, .3);
  background: rgba(126, 60, 48, .3);
}

body[data-school-code="cxbx"] .change-count.down strong {
  color: #ff9b7f;
}

body[data-school-code="cxbx"] .change-count.insufficient {
  border-color: rgba(246, 198, 107, .28);
  background: rgba(116, 88, 37, .3);
}

body[data-school-code="cxbx"] .change-count.insufficient strong {
  color: #f6c66b;
}

body[data-school-code="cxbx"][data-page="students"] .page-content {
  min-height: 0;
}

body[data-school-code="cxbx"] .student-analysis-grid > .panel {
  height: max(360px, calc(100dvh - 307px));
  min-height: 360px;
  overflow: hidden;
}

body[data-school-code="cxbx"] .student-analysis-grid.comparison-mode > .panel {
  height: max(270px, calc(100dvh - 395px));
  min-height: 270px;
}

body[data-school-code="cxbx"][data-page="students"]:has(#class-filter-row:not([hidden])) .student-analysis-grid:not(.comparison-mode) > .panel {
  height: max(320px, calc(100dvh - 347px));
  min-height: 320px;
}

body[data-school-code="cxbx"][data-page="students"]:has(#class-filter-row:not([hidden])) .student-analysis-grid.comparison-mode > .panel {
  height: max(240px, calc(100dvh - 435px));
  min-height: 240px;
}

body[data-school-code="cxbx"] .student-analysis-main-panel {
  display: flex;
  flex-direction: column;
}

body[data-school-code="cxbx"] .student-analysis-main-panel > .student-analysis-table {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table .data-table,
body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table .data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table th:nth-child(1) { width: 8%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table th:nth-child(2) { width: 16%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table th:nth-child(3) { width: 18%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table th:nth-child(4) { width: 28%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table th:nth-child(5) { width: 14%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .semester-all-table th:nth-child(6) { width: 16%; }

body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table th:nth-child(1),
body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table th:nth-child(2) { width: 18%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table th:nth-child(3),
body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table th:nth-child(4) { width: 16%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table th:nth-child(5) { width: 14%; }
body[data-school-code="cxbx"] .student-analysis-main-panel .all-subject-comparison-table th:nth-child(6) { width: 18%; }

body[data-school-code="cxbx"] .student-analysis-main-panel .semester-subject-table .data-table,
body[data-school-code="cxbx"] .student-analysis-main-panel .subject-comparison-table .data-table {
  min-width: 900px;
}

body[data-school-code="cxbx"] .student-tier-distribution-panel {
  padding: 14px 16px;
  container-name: student-tier-panel;
  container-type: inline-size;
}

body[data-school-code="cxbx"] .student-tier-distribution-panel .panel-head h3 {
  font-size: 16px;
}

body[data-school-code="cxbx"] .student-tier-distribution-panel .panel-head p {
  max-width: 580px;
  font-size: 10px;
  line-height: 1.45;
}

body[data-school-code="cxbx"] .student-tier-distribution-panel .student-comparison-subject > span {
  font-size: 10px;
}

body[data-school-code="cxbx"] .student-tier-distribution-panel .student-comparison-subject > select {
  font-size: 11px;
}

body[data-school-code="cxbx"] .student-tier-board {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  display: grid;
  grid-template-rows: 62px minmax(128px, 1fr) 112px;
  gap: 8px;
}

body[data-school-code="cxbx"] .student-tier-board.grade-scope {
  grid-template-rows: 62px auto minmax(0, 1fr);
}

body[data-school-code="cxbx"] .student-tier-board.school-scope {
  grid-template-rows: 62px auto minmax(0, 1fr);
}

body[data-school-code="cxbx"] .student-tier-board.single-class {
  grid-template-rows: 62px minmax(0, 1fr);
}

body[data-school-code="cxbx"] .student-tier-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

body[data-school-code="cxbx"] .student-tier-summary-card {
  min-width: 0;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 9px;
  color: #b9d0cb;
  background: rgba(7, 30, 35, .7);
  cursor: pointer;
  text-align: left;
}

body[data-school-code="cxbx"] .student-tier-summary-card:hover,
body[data-school-code="cxbx"] .student-tier-summary-card.active {
  border-color: currentColor;
  background: rgba(25, 69, 70, .52);
  box-shadow: inset 0 -3px currentColor;
}

body[data-school-code="cxbx"] .student-tier-summary-card > span {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

body[data-school-code="cxbx"] .student-tier-summary-card small {
  margin-top: 3px;
  display: block;
  color: #789994;
  font-size: 8px;
  font-weight: 550;
}

body[data-school-code="cxbx"] .student-tier-summary-card strong {
  color: #eff9f7;
  font: 800 20px/1 "DIN Alternate", "Arial Narrow", sans-serif;
}

body[data-school-code="cxbx"] .student-tier-summary-card strong em {
  margin-left: 2px;
  color: #819f99;
  font-size: 8px;
  font-style: normal;
}

body[data-school-code="cxbx"] .student-tier-summary-card > i {
  grid-column: 1 / -1;
  color: #819f99;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

body[data-school-code="cxbx"] .student-tier-summary-card.leading { color: #5fe2ce; }
body[data-school-code="cxbx"] .student-tier-summary-card.stable { color: #59cbe7; }
body[data-school-code="cxbx"] .student-tier-summary-card.improve { color: #f1b967; }
body[data-school-code="cxbx"] .student-tier-summary-card.none { color: #91a7a3; }

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-summary-card > span {
  font-size: 14px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-summary-card small {
  font-size: 9px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-summary-card strong {
  font-size: 23px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-summary-card strong em,
body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-summary-card > i {
  font-size: 10px;
}

body[data-school-code="cxbx"] .student-tier-class-list {
  min-height: 0;
  overflow-y: auto;
  padding: 3px 4px 3px 0;
  display: grid;
  grid-auto-rows: minmax(25px, 1fr);
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .student-tier-board.grade-scope .student-tier-class-list,
body[data-school-code="cxbx"] .student-tier-board.school-scope .student-tier-class-list {
  overflow-y: visible;
  grid-auto-rows: 28px;
}

body[data-school-code="cxbx"] .student-tier-board.grade-scope .student-tier-class-list {
  grid-auto-rows: 25px;
}

body[data-school-code="cxbx"] .student-tier-board.grade-scope .student-tier-class-row {
  min-height: 25px;
}

body[data-school-code="cxbx"] .student-tier-class-row {
  min-height: 25px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(112, 205, 190, .075);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-class-row {
  min-height: 48px;
  grid-template-columns: 70px minmax(0, 1fr) 46px;
  gap: 12px;
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 9px;
  padding: 0 10px;
  background: rgba(7, 30, 35, .55);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-class-row > strong {
  font-size: 13px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-bar {
  height: 22px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-bar button {
  font-size: 9px;
}

body[data-school-code="cxbx"] .student-tier-class-row > strong {
  color: #e8f5f2;
  font-size: 11px;
}

body[data-school-code="cxbx"] .student-tier-class-row > span {
  color: #77958f;
  font-size: 9px;
  text-align: right;
}

body[data-school-code="cxbx"] .student-tier-bar {
  height: 15px;
  overflow: hidden;
  display: flex;
  border-radius: 5px;
  background: rgba(112, 205, 190, .06);
}

body[data-school-code="cxbx"] .student-tier-bar button {
  min-width: 2px;
  height: 100%;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #07252a;
  cursor: pointer;
  font-size: 8px;
  font-weight: 850;
}

body[data-school-code="cxbx"] .student-tier-bar button:hover,
body[data-school-code="cxbx"] .student-tier-bar button.active { filter: brightness(1.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
body[data-school-code="cxbx"] .student-tier-bar .leading { background: #58d9c3; }
body[data-school-code="cxbx"] .student-tier-bar .stable { background: #55bdd8; }
body[data-school-code="cxbx"] .student-tier-bar .improve { background: #e4ac5b; }
body[data-school-code="cxbx"] .student-tier-bar .none { color: #d6e2df; background: #66817c; }

body[data-school-code="cxbx"] .student-tier-rosters {
  min-height: 0;
}

body[data-school-code="cxbx"] .student-tier-roster-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 9px;
  background: rgba(5, 24, 29, .66);
}

body[data-school-code="cxbx"] .student-tier-roster-panel[hidden] { display: none !important; }

body[data-school-code="cxbx"] .student-tier-roster-panel header {
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e7f4f1;
  font-size: 11px;
}

body[data-school-code="cxbx"] .student-tier-roster-panel header span {
  color: #829f99;
  font-size: 9px;
}

body[data-school-code="cxbx"] .student-tier-roster-panel > div {
  height: calc(100% - 23px);
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel > div {
  height: calc(100% - 28px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 56px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button {
  height: 56px;
  min-height: 56px;
  padding: 7px 9px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 3px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button small {
  display: none;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button em {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel header {
  height: 28px;
  font-size: 13px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel header span {
  font-size: 10px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button strong {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 14px;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button > i {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  color: #8ca6a1;
  font-size: 10px;
  font-style: normal;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container student-tier-panel (min-width: 900px) {
  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel > div {
    grid-auto-rows: 60px;
    gap: 6px;
  }

  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button {
    height: 60px;
    min-height: 60px;
    padding: 8px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    row-gap: 4px;
  }

  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button strong {
    grid-column: 1;
    font-size: 16px;
  }

  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button em {
    grid-column: 1;
    font-size: 14px;
  }

  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button > i {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 6px 9px;
    border: 1px solid rgba(112, 205, 190, .12);
    border-radius: 999px;
    color: #a2bab5;
    background: rgba(112, 205, 190, .055);
    font-size: 11px;
  }
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person {
  transition: opacity .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.dimmed {
  opacity: .46;
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted {
  opacity: 1;
  border-color: currentColor;
  box-shadow: inset 3px 0 currentColor, 0 0 10px color-mix(in srgb, currentColor 16%, transparent);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted.leading {
  color: #5fe2ce;
  background: rgba(43, 139, 124, .24);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted.stable {
  color: #59cbe7;
  background: rgba(45, 125, 150, .24);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted.improve {
  color: #f1b967;
  background: rgba(153, 102, 39, .25);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted.none {
  color: #b7c7c3;
  background: rgba(102, 129, 124, .23);
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted strong,
body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted em,
body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-person.highlighted > i {
  color: currentColor;
}

body[data-school-code="cxbx"] .student-tier-roster-panel button {
  min-width: 0;
  min-height: 31px;
  padding: 5px 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 5px;
  border: 1px solid rgba(112, 205, 190, .1);
  border-radius: 6px;
  color: #e8f5f2;
  background: rgba(11, 39, 44, .76);
  cursor: pointer;
  text-align: left;
}

body[data-school-code="cxbx"] .student-tier-roster-panel button strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .student-tier-roster-panel button small {
  grid-column: 1;
  color: #789791;
  font-size: 8px;
}

body[data-school-code="cxbx"] .student-tier-roster-panel button em {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #e4ac5b;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

body[data-school-code="cxbx"] .student-tier-roster-panel > div > p,
body[data-school-code="cxbx"] .student-tier-empty {
  margin: 0;
  color: #789791;
  font-size: 9px;
}

body[data-school-code="cxbx"] .student-growth-dynamics-panel {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

body[data-school-code="cxbx"] .student-growth-dynamics {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  margin-top: 8px;
}

body[data-school-code="cxbx"] .student-growth-section {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid rgba(112, 205, 190, .16);
  border-radius: 11px;
  background: rgba(5, 24, 29, .62);
  box-shadow: inset 3px 0 rgba(80, 219, 190, .72);
}

body[data-school-code="cxbx"] .student-growth-section.attention {
  box-shadow: inset 3px 0 rgba(239, 173, 121, .78);
}

body[data-school-code="cxbx"] .student-growth-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 0 9px 3px;
  border-bottom: 1px solid rgba(112, 205, 190, .12);
  background: none;
}

body[data-school-code="cxbx"] .student-growth-section h4,
body[data-school-code="cxbx"] .student-growth-section p {
  margin: 0;
}

body[data-school-code="cxbx"] .student-growth-section h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #73e4cf;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .05em;
}

body[data-school-code="cxbx"] .student-growth-section h4::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(80, 219, 190, .09);
  content: "";
}

body[data-school-code="cxbx"] .student-growth-section.attention h4 {
  color: #ffb885;
}

body[data-school-code="cxbx"] .student-growth-section.attention h4::before {
  box-shadow: 0 0 0 4px rgba(239, 173, 121, .1);
}

body[data-school-code="cxbx"] .student-growth-section header p {
  margin-top: 2px;
  color: #9ab6b0;
  font-size: 9px;
}

body[data-school-code="cxbx"] .student-growth-section header > strong {
  padding: 3px 7px;
  border-radius: 999px;
  color: #69e1c9;
  background: rgba(43, 164, 139, .14);
  font-size: 12px;
}

body[data-school-code="cxbx"] .student-growth-section.attention header > strong {
  color: #efad79;
  background: rgba(175, 97, 57, .15);
}

body[data-school-code="cxbx"] .student-growth-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-top: 1px;
  scrollbar-color: rgba(116, 157, 151, .42) transparent;
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .student-growth-list::-webkit-scrollbar {
  width: 5px;
}

body[data-school-code="cxbx"] .student-growth-list::-webkit-scrollbar-track {
  background: transparent;
}

body[data-school-code="cxbx"] .student-growth-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(116, 157, 151, .42);
}

body[data-school-code="cxbx"] .student-growth-row {
  width: 100%;
  min-height: 44px;
  padding: 6px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(112, 205, 190, .065);
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

body[data-school-code="cxbx"] .student-growth-row:nth-child(even) {
  background: rgba(112, 205, 190, .025);
}

body[data-school-code="cxbx"] .student-growth-row:hover {
  background: rgba(84, 219, 197, .05);
}

body[data-school-code="cxbx"] .student-growth-row strong,
body[data-school-code="cxbx"] .student-growth-row small {
  display: block;
}

body[data-school-code="cxbx"] .student-growth-row span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

body[data-school-code="cxbx"] .student-growth-row strong {
  color: #f0faf7;
  font-size: 12px;
  font-weight: 780;
}

body[data-school-code="cxbx"] .student-growth-row small {
  margin-top: 0;
  color: #8eaaa4;
  font-size: 9px;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .student-growth-row em {
  color: #63d9c4;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .student-growth-row.attention em {
  color: #efad79;
}

body[data-school-code="cxbx"] .student-growth-empty {
  padding: 14px 4px;
  color: #789a94;
  font-size: 9px;
  text-align: center;
}

@container (min-width: 500px) {
  body[data-school-code="cxbx"] .student-growth-dynamics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }
}

@media (max-width: 1439px) {
  body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .data-table {
    font-size: 10px;
  }

  body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .teacher-sort-button {
    gap: 2px;
  }
}

body[data-school-code="cxbx"] .data-table td {
  color: #dbeae7;
  border-color: rgba(112, 205, 190, .08);
}

body[data-school-code="cxbx"] .data-table tbody tr:hover,
body[data-school-code="cxbx"] .legend-item:hover {
  color: var(--text) !important;
  background: rgba(70, 215, 189, .06) !important;
}

body[data-school-code="cxbx"] .bar-track,
body[data-school-code="cxbx"] .teacher-class-compare-track {
  background: rgba(255, 255, 255, .06);
}

body[data-school-code="cxbx"] .chart-grid-line { stroke: rgba(164, 202, 195, .13); }
body[data-school-code="cxbx"] .chart-axis { fill: #789a94; }
body[data-school-code="cxbx"] .chart-label { fill: #aec5c0; }
body[data-school-code="cxbx"] .chart-value { fill: #eef8f6; }
body[data-school-code="cxbx"] .redemption-popular-panel .chart-label {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0;
}
body[data-school-code="cxbx"] .redemption-popular-panel .chart-value {
  font-size: 13px;
}
body[data-school-code="cxbx"] .popular-product-leaderboard {
  min-height: 560px;
  margin-top: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}
body[data-school-code="cxbx"] .popular-product-rank-row {
  min-width: 0;
}
body[data-school-code="cxbx"] .popular-product-rank-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
body[data-school-code="cxbx"] .popular-product-rank-head strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #dceae7;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-school-code="cxbx"] .popular-product-rank-head strong i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(223, 147, 107, .3);
  border-radius: 7px;
  color: #f0a17a;
  background: rgba(223, 147, 107, .08);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}
body[data-school-code="cxbx"] .popular-product-rank-head b {
  flex: 0 0 auto;
  color: #f4faf8;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}
body[data-school-code="cxbx"] .popular-product-rank-track {
  height: 8px;
  margin: 7px 0 0 32px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}
body[data-school-code="cxbx"] .popular-product-rank-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  opacity: .95;
}
body[data-school-code="cxbx"] .product-gallery {
  max-height: 620px;
  gap: 12px;
}
body[data-school-code="cxbx"] .product-card {
  min-height: 126px;
  padding: 15px 17px;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 15px;
}
body[data-school-code="cxbx"] .product-card .prize-thumb {
  width: 70px;
  height: 70px;
  border-radius: 11px;
}
body[data-school-code="cxbx"] .product-card strong {
  color: #e6f2ef;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
body[data-school-code="cxbx"] .product-card span {
  margin-top: 8px;
  color: #8daaa4;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 920px) {
  body[data-school-code="cxbx"] .popular-product-rank-head strong { font-size: 14px; }
  body[data-school-code="cxbx"] .product-card {
    min-height: 108px;
    grid-template-columns: 56px minmax(0, 1fr);
  }
  body[data-school-code="cxbx"] .product-card .prize-thumb { width: 56px; height: 56px; }
  body[data-school-code="cxbx"] .product-card strong { font-size: 13px; }
}
body[data-school-code="cxbx"] .chart-dot { stroke: #0a2026; }
body[data-school-code="cxbx"] .legend,
body[data-school-code="cxbx"] .legend-item,
body[data-school-code="cxbx"] .donut-row,
body[data-school-code="cxbx"] .donut-row em,
body[data-school-code="cxbx"] .dimension-score-list span,
body[data-school-code="cxbx"] .dimension-score-list em,
body[data-school-code="cxbx"] .coverage-label { color: #8daaa4; fill: #8daaa4; }

body[data-school-code="cxbx"] .notice-card,
body[data-school-code="cxbx"] .redemption-account-notice {
  color: #b8ceca;
  border-color: rgba(70, 215, 189, .18);
  background: rgba(70, 215, 189, .07);
}

body[data-school-code="cxbx"] .notice-card strong,
body[data-school-code="cxbx"] .redemption-account-notice strong,
body[data-school-code="cxbx"] .chip strong,
body[data-school-code="cxbx"] .data-table strong,
body[data-school-code="cxbx"] .rank-number,
body[data-school-code="cxbx"] .change-value.positive {
  color: var(--teal);
}

body[data-school-code="cxbx"] .class-subject-matrix-scroll,
body[data-school-code="cxbx"] .class-five-heatmap,
body[data-school-code="cxbx"] .class-five-row,
body[data-school-code="cxbx"] .class-subject-matrix thead th,
body[data-school-code="cxbx"] .class-subject-matrix thead th:first-child,
body[data-school-code="cxbx"] .class-subject-matrix tbody th,
body[data-school-code="cxbx"] .card-matrix thead th {
  color: #bed2ce;
  border-color: var(--line);
  background: #0b242b;
}

body[data-school-code="cxbx"] .class-subject-matrix th,
body[data-school-code="cxbx"] .class-subject-matrix td,
body[data-school-code="cxbx"] .card-matrix th,
body[data-school-code="cxbx"] .card-matrix td,
body[data-school-code="cxbx"] .class-subject-matrix button,
body[data-school-code="cxbx"] .card-matrix button {
  color: #cfe0dc;
  border-color: rgba(112, 205, 190, .11);
}

body[data-school-code="cxbx"] .teacher-detail-sticky {
  background: rgba(6, 22, 27, .94);
  box-shadow: 0 12px 24px rgba(0, 8, 11, .22);
}

body[data-school-code="cxbx"] .agent-messages,
body[data-school-code="cxbx"] .agent-form,
body[data-school-code="cxbx"] .agent-message > div,
body[data-school-code="cxbx"] .agent-history-item,
body[data-school-code="cxbx"] .agent-history-empty {
  color: #dcebe8;
  border-color: var(--line);
  background: rgba(5, 24, 29, .72);
  box-shadow: none;
}

body[data-school-code="cxbx"] .agent-message.assistant > div {
  border-color: rgba(70, 215, 189, .22);
  background: linear-gradient(145deg, rgba(13, 48, 54, .96), rgba(7, 31, 37, .96));
  box-shadow: inset 4px 0 #3ab49f;
}

body[data-school-code="cxbx"] .agent-message p,
body[data-school-code="cxbx"] .agent-message li,
body[data-school-code="cxbx"] .agent-message li button,
body[data-school-code="cxbx"] .agent-history-item,
body[data-school-code="cxbx"] .agent-history-item p {
  color: #cfe1dd;
}

body[data-school-code="cxbx"] .agent-form input {
  color: var(--text);
  border-color: var(--line-strong);
  background: #071c22;
}

body[data-school-code="cxbx"] .agent-history-panel > header em,
body[data-school-code="cxbx"] .agent-history-item span {
  color: var(--teal);
  border-color: var(--line-strong);
  background: rgba(70, 215, 189, .09);
}

body[data-school-code="cxbx"] .agent-chat {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body[data-school-code="cxbx"] .agent-chat-toolbar {
  min-height: 40px;
  padding: 0 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(112, 205, 190, .14);
}

body[data-school-code="cxbx"] .agent-chat-toolbar button {
  height: 32px;
  padding: 0 13px;
  color: var(--teal);
  border: 1px solid rgba(70, 215, 189, .28);
  border-radius: 9px;
  background: rgba(70, 215, 189, .065);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

body[data-school-code="cxbx"] .agent-chat-toolbar button:hover,
body[data-school-code="cxbx"] .agent-chat-toolbar button:focus-visible {
  color: #05241f;
  border-color: var(--teal);
  background: var(--teal);
  outline: none;
}

body[data-school-code="cxbx"] .agent-chat-toolbar button:disabled {
  opacity: .45;
  cursor: wait;
}

body[data-school-code="cxbx"] .agent-history-panel > header em {
  display: none;
}

body[data-school-code="cxbx"] .agent-form {
  position: relative;
  padding: 20px 10px 10px;
  align-items: end;
  border-color: rgba(112, 205, 190, .18);
  background: rgba(7, 28, 34, .92);
}

body[data-school-code="cxbx"] .agent-resize-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  display: grid;
  place-items: center;
  cursor: ns-resize;
  touch-action: none;
}

body[data-school-code="cxbx"] .agent-resize-handle i {
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: rgba(143, 170, 177, .34);
  transition: width .16s ease, background .16s ease;
}

body[data-school-code="cxbx"] .agent-resize-handle:hover i,
body[data-school-code="cxbx"] .agent-resize-handle:focus-visible i,
body[data-school-code="cxbx"] .agent-resize-handle.dragging i {
  width: 68px;
  background: rgba(70, 215, 189, .75);
}

body[data-school-code="cxbx"] .agent-resize-handle:focus-visible {
  outline: none;
}

body[data-school-code="cxbx"] .agent-form textarea {
  width: 100%;
  height: 76px;
  min-height: 76px;
  max-height: 240px;
  padding: 9px 13px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #071c22;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}

body[data-school-code="cxbx"] .agent-form textarea::placeholder {
  color: #6f8e88;
}

body[data-school-code="cxbx"] .agent-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(70, 215, 189, .1);
}

body[data-school-code="cxbx"] .student-dialog {
  color: var(--text);
  border-color: var(--line-strong);
  background: #091f25;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

body[data-school-code="cxbx"] .loading-screen {
  color: var(--text);
  background: #06161b;
}

body[data-school-code="cxbx"] .kpi-card {
  color: var(--text) !important;
  border-color: var(--line) !important;
  background: linear-gradient(150deg, #123039, #0a2229) !important;
  box-shadow: var(--shadow) !important;
}

body[data-school-code="cxbx"] .identity-card {
  color: var(--text);
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

body[data-school-code="cxbx"] .identity-card select {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background: #104b43;
}

body[data-school-code="cxbx"] .overview-comparison-grid .panel {
  min-height: 320px;
}

body[data-school-code="cxbx"] .overview-attention-panel {
  min-height: 358px;
}

body[data-school-code="cxbx"] .overview-attention-panel .panel-head {
  min-height: 28px;
}

body[data-school-code="cxbx"] .attention-class-list {
  height: 376px;
  min-height: 0;
  margin-top: 4px;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body[data-school-code="cxbx"] .attention-class-head,
body[data-school-code="cxbx"] .attention-class-row {
  grid-template-columns: minmax(100px, 1.45fr) minmax(48px, .72fr) minmax(45px, .66fr) minmax(52px, .78fr) minmax(68px, 1fr) 8px;
  gap: 4px;
}

body[data-school-code="cxbx"] .attention-class-head {
  min-height: 25px;
  padding: 0 6px 3px 8px;
  display: grid;
  align-items: end;
  color: #8aa7a1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.12;
}

body[data-school-code="cxbx"] .attention-class-head span:not(:first-child) {
  text-align: right;
}

body[data-school-code="cxbx"] .attention-class-row {
  width: 100%;
  min-height: 44px;
  padding: 5px 6px 5px 8px;
  display: grid;
  align-items: center;
  color: #dcebe8;
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 9px;
  background: rgba(5, 24, 29, .58);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}

body[data-school-code="cxbx"] .attention-class-row:hover,
body[data-school-code="cxbx"] .attention-class-row:focus-visible {
  border-color: rgba(70, 215, 189, .42);
  background: rgba(70, 215, 189, .07);
  outline: none;
  transform: translateY(-1px);
}

body[data-school-code="cxbx"] .attention-class-name,
body[data-school-code="cxbx"] .attention-class-metrics,
body[data-school-code="cxbx"] .attention-class-trend {
  min-width: 0;
  display: block;
}

body[data-school-code="cxbx"] .attention-class-name strong {
  overflow: hidden;
  color: #f0faf7;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .attention-class-metrics,
body[data-school-code="cxbx"] .attention-class-trend {
  overflow: hidden;
  text-align: right;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .attention-class-metrics b,
body[data-school-code="cxbx"] .attention-class-trend b {
  color: #e8f5f2;
  font-size: 13px;
}

body[data-school-code="cxbx"] .attention-class-trend.positive b { color: var(--teal); }
body[data-school-code="cxbx"] .attention-class-trend.negative b { color: #ef8f84; }
body[data-school-code="cxbx"] .attention-class-trend.neutral b { color: #8fa9a4; }
body[data-school-code="cxbx"] .attention-class-arrow { color: #5bcfb9; font-size: 18px; text-align: right; }

body[data-school-code="cxbx"] .attention-class-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #8daaa4;
  text-align: center;
}

body[data-school-code="cxbx"] .attention-class-empty strong { color: #dcebe8; }

body[data-school-code="cxbx"] .class-detail-controls {
  color: var(--text);
  border-color: var(--line);
  background: rgba(8, 30, 36, .88);
  box-shadow: 0 8px 20px rgba(0, 8, 11, .2);
}

body[data-school-code="cxbx"] .class-choice-row > span {
  color: #9ab5af;
}

body[data-school-code="cxbx"] .class-choice-button {
  color: #b8ceca;
  border-color: var(--line);
  background: rgba(5, 24, 29, .72);
}

body[data-school-code="cxbx"] .class-choice-button:hover {
  color: var(--text);
  border-color: rgba(70, 215, 189, .36);
  background: rgba(70, 215, 189, .08);
}

body[data-school-code="cxbx"] .class-choice-button.active {
  color: #05241f;
  border-color: var(--teal);
  background: var(--teal);
}

body[data-school-code="cxbx"][data-page="classes"] .workspace {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-school-code="cxbx"][data-page="classes"] .workspace-sticky {
  flex: 0 0 auto;
}

body[data-school-code="cxbx"][data-page="classes"] .academic-term-bar {
  grid-template-columns: auto minmax(280px, 420px);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

body[data-school-code="cxbx"][data-page="classes"] .academic-term-bar select,
body[data-school-code="cxbx"][data-page="classes"] .hierarchy-button,
body[data-school-code="cxbx"][data-page="classes"] .filter-item select,
body[data-school-code="cxbx"][data-page="classes"] .filter-item button {
  height: 30px;
}

body[data-school-code="cxbx"][data-page="classes"] .academic-term-bar label[for="comparison-term-select"],
body[data-school-code="cxbx"][data-page="classes"] #comparison-term-select,
body[data-school-code="cxbx"][data-page="classes"] #open-term-comparison,
body[data-school-code="cxbx"][data-page="classes"] #academic-term-status {
  display: none;
}

body[data-school-code="cxbx"][data-page="classes"] .hierarchy-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  padding-bottom: 4px;
}

body[data-school-code="cxbx"][data-page="classes"] .hierarchy-row {
  min-width: 0;
  min-height: 30px;
}

body[data-school-code="cxbx"][data-page="classes"] .hierarchy-options {
  flex-wrap: nowrap;
}

body[data-school-code="cxbx"][data-page="classes"] .secondary-filters {
  padding-top: 4px;
}

body[data-school-code="cxbx"][data-page="classes"] .page-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-school-code="cxbx"] .class-one-screen-kpis {
  flex: 0 0 64px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

body[data-school-code="cxbx"] .class-one-screen-kpis .kpi-card {
  min-height: 64px;
  padding: 8px 14px;
}

body[data-school-code="cxbx"] .class-one-screen-kpis .kpi-card strong {
  margin-top: 6px;
  font-size: clamp(20px, 1.8vw, 27px);
}

body[data-school-code="cxbx"] .class-one-screen-kpis .kpi-card p {
  margin-top: 4px;
}

body[data-school-code="cxbx"] .class-analysis-workbench {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  align-items: stretch;
  grid-auto-rows: minmax(0, 1fr);
}

body[data-school-code="cxbx"] .class-analysis-workbench > .panel,
body[data-school-code="cxbx"] .class-workbench-right > .panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-school-code="cxbx"] .class-analysis-workbench > .class-comparison-matrix-panel {
  grid-column: span 4;
}

body[data-school-code="cxbx"] .class-workbench-right {
  min-width: 0;
  min-height: 0;
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 320px minmax(0, 1fr);
  gap: 10px;
}

body[data-school-code="cxbx"] .class-workbench-right > .panel {
  grid-column: 1 !important;
}

body[data-school-code="cxbx"] .class-comparison-matrix-panel {
  padding: 14px 16px;
}

body[data-school-code="cxbx"] .class-comparison-matrix {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .class-comparison-matrix-head,
body[data-school-code="cxbx"] .class-comparison-matrix-row {
  display: grid;
  grid-template-columns: 48px repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

body[data-school-code="cxbx"] .class-comparison-matrix-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 36px;
  padding: 0 7px;
  color: #87a8a2;
  background: #0f3036;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

body[data-school-code="cxbx"] .class-comparison-matrix-head span:first-child {
  text-align: left;
}

body[data-school-code="cxbx"] .class-comparison-matrix-head span:not(:first-child) {
  height: 26px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(112, 205, 190, .16);
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
}

body[data-school-code="cxbx"] .class-comparison-matrix-head span:nth-child(2) { color: #67e2ce; }
body[data-school-code="cxbx"] .class-comparison-matrix-head span:nth-child(3) { color: #68d5f1; }
body[data-school-code="cxbx"] .class-comparison-matrix-head span:nth-child(4) { color: #91ddd4; }

body[data-school-code="cxbx"] .class-comparison-matrix-body {
  flex: 0 0 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(var(--class-count), 50px);
}

body[data-school-code="cxbx"] .class-comparison-matrix-row {
  width: 100%;
  min-height: 0;
  padding: 7px;
  border: 0;
  border-bottom: 1px solid rgba(112, 205, 190, .08);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

body[data-school-code="cxbx"] .class-comparison-matrix-row:hover {
  background: rgba(84, 219, 197, .05);
}

body[data-school-code="cxbx"] .class-comparison-matrix-row.active {
  background: rgba(84, 219, 197, .1);
  box-shadow: inset 3px 0 var(--teal);
}

body[data-school-code="cxbx"] .class-comparison-matrix-row > b {
  color: #eaf7f4;
  font-size: 14px;
  text-align: center;
}

body[data-school-code="cxbx"] .class-comparison-metric {
  min-width: 0;
  display: grid;
  height: calc(100% - 4px);
  min-height: 44px;
  max-height: 54px;
  padding: 6px 8px;
  align-content: center;
  gap: 6px;
  border-left: 1px solid rgba(112, 205, 190, .15);
  border-radius: 7px;
  background: rgba(95, 226, 208, .04);
}

body[data-school-code="cxbx"] .class-comparison-metric.average { background: rgba(79, 199, 232, .045); }
body[data-school-code="cxbx"] .class-comparison-metric.coverage { background: rgba(119, 210, 200, .05); }

body[data-school-code="cxbx"] .class-comparison-metric strong {
  color: #dbeae7;
  font-size: 14px;
  text-align: center;
}

body[data-school-code="cxbx"] .class-comparison-metric i {
  height: 8px;
  overflow: hidden;
  display: block;
  border-radius: 999px;
  background: rgba(95, 226, 208, .13);
}

body[data-school-code="cxbx"] .class-comparison-metric i em {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #5fe2d0;
}

body[data-school-code="cxbx"] .class-comparison-metric.average i em { background: #4fc7e8; }
body[data-school-code="cxbx"] .class-comparison-metric.coverage i em { background: #77d2c8; }

body[data-school-code="cxbx"] .class-comparison-insights {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(112, 205, 190, .1);
}

body[data-school-code="cxbx"] .class-comparison-insights > h4 {
  margin: 0 0 8px;
  color: #dcebe8;
  font-size: 14px;
}

body[data-school-code="cxbx"] .class-comparison-insights > div {
  height: calc(100% - 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-school-code="cxbx"] .class-comparison-insight {
  min-height: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 8px;
  background: rgba(5, 24, 29, .5);
}

body[data-school-code="cxbx"] .class-comparison-insight > header,
body[data-school-code="cxbx"] .class-comparison-insight > div,
body[data-school-code="cxbx"] .class-comparison-insight > div > span {
  display: flex;
  align-items: center;
}

body[data-school-code="cxbx"] .class-comparison-insight > header,
body[data-school-code="cxbx"] .class-comparison-insight > div {
  justify-content: space-between;
  gap: 8px;
}

body[data-school-code="cxbx"] .class-comparison-insight > header strong {
  color: #dcebe8;
  font-size: 13px;
}

body[data-school-code="cxbx"] .class-comparison-insight > header em {
  color: #88aaa3;
  font-size: 11px;
  font-style: normal;
}

body[data-school-code="cxbx"] .class-comparison-insight > div {
  margin-top: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 3px;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span {
  min-width: 0;
  gap: 5px;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span:not(.comparison-arrow) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 4px 0;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span.attention {
  text-align: left;
}

body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow {
  justify-content: stretch;
}

body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow i {
  width: 100%;
  height: 1px;
  position: relative;
  display: block;
  background: rgba(118, 167, 158, .42);
}

body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow i::before,
body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow i::after {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  top: -2px;
  border-top: 1px solid rgba(118, 167, 158, .65);
  border-right: 1px solid rgba(118, 167, 158, .65);
}

body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow i::before { left: 0; transform: rotate(-135deg); }
body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow i::after { right: 0; transform: rotate(45deg); }

body[data-school-code="cxbx"] .class-comparison-insight > div i {
  color: #7e9c96;
  font-size: 10px;
  font-style: normal;
}

body[data-school-code="cxbx"] .class-comparison-insight > div b,
body[data-school-code="cxbx"] .class-comparison-insight > div strong {
  font-size: 12px;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .class-comparison-insight > div b { color: #dcebe8; }
body[data-school-code="cxbx"] .class-comparison-insight > div strong { color: var(--teal); }

body[data-school-code="cxbx"] .class-comparison-insight.average > div strong { color: #68d5f1; }
body[data-school-code="cxbx"] .class-comparison-insight.coverage > div strong { color: #91ddd4; }

body[data-school-code="cxbx"] .class-comparison-insights > p {
  min-height: 34px;
  margin: 8px 0 0;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  color: #a9c2bd;
  background: rgba(240, 176, 75, .08);
  font-size: 11px;
  line-height: 1.45;
}

body[data-school-code="cxbx"] .class-comparison-insights > p strong {
  flex: 0 0 auto;
  color: #efb44f;
  font-size: 12px;
}

/* Keep the comparison facts in one aligned block instead of three dispersed cards. */
body[data-school-code="cxbx"] .class-comparison-insights > div {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(56px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 8px;
  background: rgba(5, 24, 29, .5);
}

body[data-school-code="cxbx"] .class-comparison-insight {
  padding: 0 10px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) 92px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(112, 205, 190, .1);
  border-radius: 0;
  background: transparent;
}

body[data-school-code="cxbx"] .class-comparison-insight:last-child {
  border-bottom: 0;
}

body[data-school-code="cxbx"] .class-comparison-insight > header,
body[data-school-code="cxbx"] .class-comparison-insight > div {
  display: contents;
}

body[data-school-code="cxbx"] .class-comparison-insight > header strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
}

body[data-school-code="cxbx"] .class-comparison-insight > header em {
  grid-column: 4;
  grid-row: 1;
  justify-self: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(112, 205, 190, .08);
  white-space: nowrap;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span.leading {
  grid-column: 2;
  grid-row: 1;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span.attention {
  grid-column: 3;
  grid-row: 1;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span:not(.comparison-arrow) {
  padding: 0;
}

body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow {
  display: none;
}

body[data-school-code="cxbx"] .class-comparison-insights > div {
  grid-template-rows: 32px repeat(3, minmax(56px, 1fr));
}

body[data-school-code="cxbx"] .class-comparison-insight-head {
  padding: 0 10px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
  color: #789892;
  background: rgba(112, 205, 190, .035);
  font-size: 12px;
  font-weight: 600;
}

body[data-school-code="cxbx"] .class-comparison-insight-head span:nth-child(4) {
  text-align: center;
}

body[data-school-code="cxbx"] .class-comparison-insight > header strong {
  color: #dcebe8;
  font-size: 14px;
  font-weight: 700;
}

body[data-school-code="cxbx"] .class-comparison-insight > header em {
  padding: 0;
  border-radius: 0;
  color: #91aaa5;
  background: transparent;
  font-size: 13px;
}

body[data-school-code="cxbx"] .class-comparison-insight > div > span:not(.comparison-arrow) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

body[data-school-code="cxbx"] .class-comparison-insight > div i {
  display: none;
}

body[data-school-code="cxbx"] .class-comparison-insight > div b,
body[data-school-code="cxbx"] .class-comparison-insight > div strong,
body[data-school-code="cxbx"] .class-comparison-insight.average > div strong,
body[data-school-code="cxbx"] .class-comparison-insight.coverage > div strong {
  font-size: 14px;
  font-weight: 700;
}

body[data-school-code="cxbx"] .class-comparison-insight > div b {
  color: #dcebe8;
}

body[data-school-code="cxbx"] .class-comparison-insight > div strong,
body[data-school-code="cxbx"] .class-comparison-insight.average > div strong,
body[data-school-code="cxbx"] .class-comparison-insight.coverage > div strong {
  justify-self: auto;
  color: var(--teal);
}

body[data-school-code="cxbx"] .class-comparison-insights > p {
  padding: 7px 2px 0;
  border-top: 1px solid rgba(112, 205, 190, .1);
  border-radius: 0;
  color: #a9c2bd;
  background: transparent;
  font-size: 13px;
}

body[data-school-code="cxbx"] .class-comparison-insights > p strong {
  color: var(--teal);
  font-size: 13px;
}

body[data-school-code="cxbx"] .class-subject-workbench-panel,
body[data-school-code="cxbx"] .class-card-workbench-panel {
  padding: 12px 14px;
}

body[data-school-code="cxbx"] .class-subject-workbench-panel .panel-head,
body[data-school-code="cxbx"] .class-card-workbench-panel .panel-head {
  min-height: 30px;
}

body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-top: 6px;
}

body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix-note {
  display: none;
}

body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix th,
body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix td {
  height: 34px;
}

body[data-school-code="cxbx"] .class-subject-column-button {
  width: 100%;
  height: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

body[data-school-code="cxbx"] .class-subject-column-button:hover,
body[data-school-code="cxbx"] .class-subject-column-button.active {
  color: #05241f;
  background: var(--teal);
}

body[data-school-code="cxbx"] .class-subject-matrix td.column-highlight {
  border-left-color: rgba(95, 226, 208, .7);
  border-right-color: rgba(95, 226, 208, .7);
  background: rgba(95, 226, 208, .13) !important;
  box-shadow: inset 0 0 0 1px rgba(95, 226, 208, .18);
}

body[data-school-code="cxbx"] .class-subject-matrix td.column-highlight button {
  background: rgba(95, 226, 208, .1) !important;
  filter: brightness(1.12);
}

body[data-school-code="cxbx"] .class-card-workbench {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-school-code="cxbx"] .class-card-workbench-controls {
  flex: 0 0 56px;
  height: 56px;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 24, 29, .62);
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .class-card-workbench-controls .class-card-choices {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2px;
}

body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-row {
  min-height: 26px;
  grid-template-columns: 64px minmax(0, 1fr);
}

body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-row > span {
  white-space: nowrap;
}

body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-row > div {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 1px;
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-button {
  height: 24px;
  flex: 0 0 auto;
  padding-inline: 7px;
}

body[data-school-code="cxbx"] .class-card-workbench-summary {
  flex: 0 0 auto;
  min-height: 23px;
  padding: 2px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8fa9a4;
  font-size: 9px;
}

body[data-school-code="cxbx"] .class-card-workbench-summary strong {
  color: var(--teal);
  font-size: 13px;
}

body[data-school-code="cxbx"] .class-card-workbench-lists {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-school-code="cxbx"] .class-card-workbench-lists.received-heavy {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

body[data-school-code="cxbx"] .class-card-workbench-lists.unreceived-heavy {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

body[data-school-code="cxbx"] .class-card-workbench-lists > section {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 7px 8px;
  border: 1px solid rgba(112, 205, 190, .12);
  border-radius: 9px;
  background: rgba(5, 24, 29, .52);
}

body[data-school-code="cxbx"] .class-card-workbench-lists header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dcebe8;
  font-size: 13px;
  font-weight: 750;
}

body[data-school-code="cxbx"] .class-card-workbench-lists header span {
  color: #84a39d;
  font-size: 11px;
}

body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
  scrollbar-width: thin;
}

body[data-school-code="cxbx"] .class-card-workbench-lists.received-heavy > section:first-child .compact-coverage-students,
body[data-school-code="cxbx"] .class-card-workbench-lists.unreceived-heavy > section:last-child .compact-coverage-students {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-school-code="cxbx"] .class-card-workbench-lists.received-heavy > section:last-child .compact-coverage-students,
body[data-school-code="cxbx"] .class-card-workbench-lists.unreceived-heavy > section:first-child .compact-coverage-students {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students button {
  min-height: 31px;
  padding: 6px 9px;
  color: #e4f1ef;
  border-color: rgba(112, 205, 190, .14);
  background: rgba(9, 37, 42, .78);
}

body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students strong {
  font-size: 12px;
  font-weight: 700;
}

body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students em {
  font-size: 11px;
  font-weight: 750;
}

@media (max-height: 800px) {
  body[data-school-code="cxbx"] .class-comparison-matrix-head {
    min-height: 28px;
    font-size: 9px;
  }

  body[data-school-code="cxbx"] .class-comparison-matrix-head span:not(:first-child) {
    height: 22px;
  }

  body[data-school-code="cxbx"] .class-comparison-matrix-body {
    flex: 0 0 auto;
    grid-template-rows: repeat(var(--class-count), 30px);
  }

  body[data-school-code="cxbx"] .class-comparison-matrix-row {
    padding-block: 1px;
  }

  body[data-school-code="cxbx"] .class-comparison-metric {
    min-height: 24px;
    max-height: 24px;
    padding: 2px 5px;
    gap: 2px;
  }

  body[data-school-code="cxbx"] .class-comparison-metric i {
    height: 3px;
  }

  body[data-school-code="cxbx"] .class-comparison-insights {
    margin-top: 6px;
    padding-top: 5px;
  }

  body[data-school-code="cxbx"] .class-comparison-insights > h4 {
    margin-bottom: 2px;
    font-size: 10px;
  }

  body[data-school-code="cxbx"] .class-comparison-insights > div {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, 19px);
    gap: 2px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-school-code="cxbx"] .class-comparison-insight-head {
    display: none;
  }

  body[data-school-code="cxbx"] .class-comparison-insight {
    padding: 2px 5px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(112, 205, 190, .12);
    border-radius: 8px;
    background: rgba(5, 24, 29, .5);
  }

  body[data-school-code="cxbx"] .class-comparison-insight > header strong,
  body[data-school-code="cxbx"] .class-comparison-insight > div b,
  body[data-school-code="cxbx"] .class-comparison-insight > div strong {
    font-size: 10px;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > header em,
  body[data-school-code="cxbx"] .class-comparison-insight > div i { display: none; }

  body[data-school-code="cxbx"] .class-comparison-insight > div {
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  body[data-school-code="cxbx"] .class-comparison-insights {
    flex: 0 0 auto;
    margin-top: 4px;
    padding-top: 4px;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > header {
    display: flex;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > header strong,
  body[data-school-code="cxbx"] .class-comparison-insight > header em {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > div {
    display: grid;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > div > span:not(.comparison-arrow) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0;
    grid-column: auto;
    grid-row: auto;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > div > span.leading,
  body[data-school-code="cxbx"] .class-comparison-insight > div > span.attention {
    grid-column: auto;
  }

  body[data-school-code="cxbx"] .class-comparison-insight > div b,
  body[data-school-code="cxbx"] .class-comparison-insight > div strong {
    font-size: 9px;
  }

  body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow i {
    width: 10px;
  }

  body[data-school-code="cxbx"] .class-comparison-insight .comparison-arrow {
    display: flex;
  }

  body[data-school-code="cxbx"] .class-comparison-insights > p {
    display: none;
  }

  body[data-school-code="cxbx"] .class-comparison-matrix.many-classes .class-comparison-insights {
    display: none;
  }

  body[data-school-code="cxbx"] .class-workbench-right {
    grid-template-rows: 220px minmax(0, 1fr);
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel,
  body[data-school-code="cxbx"] .class-card-workbench-panel {
    padding: 8px 10px;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .panel-head,
  body[data-school-code="cxbx"] .class-card-workbench-panel .panel-head {
    min-height: 24px;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix-scroll {
    margin-top: 2px;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix th,
  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix td {
    height: 18px;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix tbody th,
  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix tbody td {
    font-size: 0;
    line-height: 0;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix-scroll {
    scrollbar-width: none;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix thead th,
  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix tbody th,
  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix td strong {
    font-size: 9px;
  }

  body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix button {
    height: 16px;
    padding-block: 0;
    font-size: 9px;
    line-height: 1;
  }

  body[data-school-code="cxbx"] .class-card-workbench-controls {
    flex-basis: 50px;
    height: 50px;
    padding-block: 2px;
  }

  body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-row {
    min-height: 24px;
  }

  body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-button {
    height: 22px;
  }

  body[data-school-code="cxbx"] .class-card-workbench-lists > section {
    padding: 4px 6px;
  }

  body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students {
    gap: 2px;
    margin-top: 2px;
  }

  body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students button {
    min-height: 24px;
    padding: 3px 7px;
  }
}

body[data-school-code="cxbx"] .class-subject-matrix tbody tr.active th {
  color: #05241f;
  background: var(--teal);
  box-shadow: inset 4px 0 #93ead9;
}

body[data-school-code="cxbx"] .class-subject-matrix tbody tr.active td {
  border-top-color: rgba(70, 215, 189, .5);
  border-bottom-color: rgba(70, 215, 189, .5);
  background: rgba(70, 215, 189, .08);
  box-shadow: inset 0 0 0 999px rgba(70, 215, 189, .025);
}

body[data-school-code="cxbx"] .class-subject-matrix tbody tr.active td:last-child {
  border-right-color: rgba(70, 215, 189, .5);
}

body[data-school-code="cxbx"] .class-subject-matrix td strong {
  color: #dcebe8;
}

body[data-school-code="cxbx"] .class-subject-matrix td.zero button {
  background: rgba(255, 255, 255, .018);
}

body[data-school-code="cxbx"] .class-subject-matrix td.zero strong {
  color: #688680;
}

body[data-school-code="cxbx"] .class-subject-matrix thead th {
  position: static;
  z-index: auto;
  visibility: visible;
  opacity: 1;
}

body[data-school-code="cxbx"] .class-subject-matrix thead th:first-child {
  position: sticky;
  z-index: 4;
  left: 0;
}

body[data-school-code="cxbx"] .class-card-student-panel .compact-coverage-students button {
  color: #dcebe8;
  border-color: var(--line);
  background: rgba(5, 24, 29, .72);
}

body[data-school-code="cxbx"] .class-card-student-panel .compact-coverage-students button:hover {
  border-color: rgba(70, 215, 189, .38);
  background: rgba(70, 215, 189, .08);
}

body[data-school-code="cxbx"] .class-card-student-panel .compact-coverage-students strong {
  color: #dcebe8;
}

body[data-school-code="cxbx"] .class-card-student-panel .compact-coverage-students em {
  color: var(--teal);
}

/* 长兴八小管理端统一可读字号 */
body[data-school-code="cxbx"] {
  --nx-font-meta: 10px;
  --nx-font-small: 11px;
  --nx-font-body: 12px;
  --nx-font-control: 12px;
  --nx-font-panel-title: 16px;
}

body[data-school-code="cxbx"][data-page="students"] .workspace,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .workspace {
  height: 100dvh;
  overflow: hidden;
}

/* 教师总览保持一屏；进入单个教师后恢复工作区滚动，以浏览完整详情。 */
body[data-school-code="cxbx"][data-page="teacherIssuance"][data-teacher-detail="true"] .workspace {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

body[data-school-code="cxbx"] .brand strong { font-size: 18px; }
body[data-school-code="cxbx"] .brand span,
body[data-school-code="cxbx"] .identity-card label,
body[data-school-code="cxbx"] .role-scope label,
body[data-school-code="cxbx"] .freshness span,
body[data-school-code="cxbx"] .filter-item label,
body[data-school-code="cxbx"] .section-title span,
body[data-school-code="cxbx"] .panel-note,
body[data-school-code="cxbx"] .kpi-card p,
body[data-school-code="cxbx"] .legend,
body[data-school-code="cxbx"] .legend-item,
body[data-school-code="cxbx"] .chart-axis,
body[data-school-code="cxbx"] .chart-value,
body[data-school-code="cxbx"] .status-pill,
body[data-school-code="cxbx"] .teacher-split-kpi-breakdown em,
body[data-school-code="cxbx"] .teacher-rate-rules > summary span,
body[data-school-code="cxbx"] .teacher-heatmap-legend,
body[data-school-code="cxbx"] .teacher-3d-status span,
body[data-school-code="cxbx"] .teacher-3d-help,
body[data-school-code="cxbx"] .teacher-3d-note,
body[data-school-code="cxbx"] .agent-message > span,
body[data-school-code="cxbx"] .product-card span {
  font-size: var(--nx-font-meta);
}

body[data-school-code="cxbx"] .identity-card p,
body[data-school-code="cxbx"] .sidebar-foot a,
body[data-school-code="cxbx"] .hierarchy-placeholder,
body[data-school-code="cxbx"] .section-title p,
body[data-school-code="cxbx"] .panel-head p,
body[data-school-code="cxbx"] .panel-head span,
body[data-school-code="cxbx"] .kpi-card label,
body[data-school-code="cxbx"] .kpi-card strong small,
body[data-school-code="cxbx"] .chart-label,
body[data-school-code="cxbx"] .donut-row,
body[data-school-code="cxbx"] .donut-row strong,
body[data-school-code="cxbx"] .metric-definition span,
body[data-school-code="cxbx"] .metric-definition strong,
body[data-school-code="cxbx"] .teacher-rate-policy span,
body[data-school-code="cxbx"] .teacher-rate-policy em,
body[data-school-code="cxbx"] .teacher-rate-rules > summary,
body[data-school-code="cxbx"] .teacher-quadrant-guide,
body[data-school-code="cxbx"] .teacher-zone,
body[data-school-code="cxbx"] .teacher-2d-guide,
body[data-school-code="cxbx"] .teacher-3d-guide,
body[data-school-code="cxbx"] .teacher-3d-field-key em,
body[data-school-code="cxbx"] .teacher-3d-tooltip span,
body[data-school-code="cxbx"] .teacher-3d-tooltip em,
body[data-school-code="cxbx"] .teacher-class-compare-label span,
body[data-school-code="cxbx"] .teacher-class-compare-metric > span,
body[data-school-code="cxbx"] .teacher-class-compare-metric > em,
body[data-school-code="cxbx"] .teacher-student-distribution-legend,
body[data-school-code="cxbx"] .teacher-class-student-card > header span,
body[data-school-code="cxbx"] .teacher-student-status,
body[data-school-code="cxbx"] .teacher-student-status strong,
body[data-school-code="cxbx"] .agent-empty p,
body[data-school-code="cxbx"] .agent-message li,
body[data-school-code="cxbx"] .agent-message li button,
body[data-school-code="cxbx"] .binding-grade-card > strong em {
  font-size: var(--nx-font-small);
}

body[data-school-code="cxbx"] .nav-item,
body[data-school-code="cxbx"] .identity-card select,
body[data-school-code="cxbx"] .role-scope select,
body[data-school-code="cxbx"] .hierarchy-label,
body[data-school-code="cxbx"] .hierarchy-button,
body[data-school-code="cxbx"] .filter-item select,
body[data-school-code="cxbx"] .reset-button,
body[data-school-code="cxbx"] .segment-button,
body[data-school-code="cxbx"] .student-mode-tabs button,
body[data-school-code="cxbx"] .student-search input,
body[data-school-code="cxbx"] .student-search em,
body[data-school-code="cxbx"] .student-search button,
body[data-school-code="cxbx"] .teacher-search input,
body[data-school-code="cxbx"] .teacher-search em,
body[data-school-code="cxbx"] .teacher-search button,
body[data-school-code="cxbx"] .student-comparison-subject,
body[data-school-code="cxbx"] .student-comparison-subject > select,
body[data-school-code="cxbx"] .redemption-period-select,
body[data-school-code="cxbx"] .redemption-student-search input,
body[data-school-code="cxbx"] .redemption-student-search button,
body[data-school-code="cxbx"] .data-table,
body[data-school-code="cxbx"] .product-card strong,
body[data-school-code="cxbx"] .binding-class-row b,
body[data-school-code="cxbx"] .binding-class-row span,
body[data-school-code="cxbx"] .teacher-missing-groups button,
body[data-school-code="cxbx"] .agent-message strong,
body[data-school-code="cxbx"] .agent-message p {
  font-size: var(--nx-font-body);
}

body[data-school-code="cxbx"] .panel-head h3,
body[data-school-code="cxbx"] .section-title h2 {
  font-size: var(--nx-font-panel-title) !important;
}

body[data-school-code="cxbx"] .academic-term-bar > label,
body[data-school-code="cxbx"] .academic-term-status {
  font-size: var(--nx-font-meta) !important;
}

body[data-school-code="cxbx"] .academic-term-status strong {
  font-size: var(--nx-font-small) !important;
}

body[data-school-code="cxbx"] .academic-term-bar select,
body[data-school-code="cxbx"] .academic-term-bar button {
  font-size: var(--nx-font-body) !important;
}

body[data-school-code="cxbx"] .workspace-head h1 { font-size: 30px; }
body[data-school-code="cxbx"] .nav-item { font-size: 14px; }
body[data-school-code="cxbx"] .freshness strong { font-size: var(--nx-font-body); }
body[data-school-code="cxbx"] .kpi-card strong { font-size: 29px; }
body[data-school-code="cxbx"] .data-table th { font-size: var(--nx-font-small); }
body[data-school-code="cxbx"] .teacher-class-compare-label strong,
body[data-school-code="cxbx"] .teacher-class-student-card > header strong,
body[data-school-code="cxbx"] .binding-grade-card > strong { font-size: 14px; }
body[data-school-code="cxbx"] .teacher-class-compare-metric > strong,
body[data-school-code="cxbx"] .teacher-class-student-card > header b { font-size: 13px; }
body[data-school-code="cxbx"] .teacher-evaluation-detail-panel .data-table { font-size: var(--nx-font-body); }

body[data-school-code="cxbx"] .student-tier-summary-card > span,
body[data-school-code="cxbx"] .student-tier-class-row > strong,
body[data-school-code="cxbx"] .student-tier-roster-panel button strong,
body[data-school-code="cxbx"] .student-growth-row strong { font-size: var(--nx-font-body); }
body[data-school-code="cxbx"] .student-tier-summary-card small,
body[data-school-code="cxbx"] .student-tier-summary-card strong em,
body[data-school-code="cxbx"] .student-tier-summary-card > i,
body[data-school-code="cxbx"] .student-tier-class-row > span,
body[data-school-code="cxbx"] .student-tier-roster-panel header span,
body[data-school-code="cxbx"] .student-tier-roster-panel button small,
body[data-school-code="cxbx"] .student-tier-empty { font-size: var(--nx-font-meta); }
body[data-school-code="cxbx"] .student-tier-roster-panel button em { font-size: var(--nx-font-small); }
body[data-school-code="cxbx"] .student-tier-bar button { font-size: var(--nx-font-meta); }

body[data-school-code="cxbx"] .student-tier-class-row {
  min-height: 28px;
  grid-template-columns: 84px minmax(0, 1fr) 46px;
}

body[data-school-code="cxbx"] .student-tier-class-row > strong {
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-school-code="cxbx"] .student-tier-roster-panel button {
  min-height: 44px;
  padding-block: 6px;
  grid-template-rows: auto auto;
}

body[data-school-code="cxbx"] .student-tier-roster-panel button strong,
body[data-school-code="cxbx"] .student-tier-roster-panel button small,
body[data-school-code="cxbx"] .student-tier-roster-panel button em {
  line-height: 1.15;
}

body[data-school-code="cxbx"] .class-subject-matrix thead th,
body[data-school-code="cxbx"] .class-subject-matrix tbody th,
body[data-school-code="cxbx"] .class-subject-matrix td strong,
body[data-school-code="cxbx"] .class-subject-matrix button { font-size: var(--nx-font-meta); }
body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix thead th,
body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix tbody th,
body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix td strong,
body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix button { font-size: var(--nx-font-meta) !important; }
body[data-school-code="cxbx"] .class-subject-matrix td em,
body[data-school-code="cxbx"] .class-subject-workbench-panel .class-subject-matrix td em,
body[data-school-code="cxbx"] .class-comparison-matrix-head,
body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-row > span,
body[data-school-code="cxbx"] .class-card-workbench-controls .class-choice-button {
  font-size: var(--nx-font-meta) !important;
}
body[data-school-code="cxbx"] .student-tier-distribution-panel .panel-head p,
body[data-school-code="cxbx"] .student-tier-distribution-panel .student-comparison-subject > span,
body[data-school-code="cxbx"] .student-growth-section header p,
body[data-school-code="cxbx"] .student-growth-row small,
body[data-school-code="cxbx"] .student-growth-row em,
body[data-school-code="cxbx"] .student-growth-empty { font-size: var(--nx-font-meta) !important; }

@media (min-width: 1900px) {
  body[data-school-code="cxbx"] {
    --nx-font-meta: 11px;
    --nx-font-small: 12px;
    --nx-font-body: 14px;
    --nx-font-control: 14px;
    --nx-font-panel-title: 18px;
  }

  body[data-school-code="cxbx"] .brand strong { font-size: 20px; }
  body[data-school-code="cxbx"] .nav-item { font-size: 15px; }
  body[data-school-code="cxbx"] .workspace-head h1 { font-size: 32px; }
  body[data-school-code="cxbx"] .kpi-card strong { font-size: 31px; }
  body[data-school-code="cxbx"] .teacher-class-compare-label strong,
  body[data-school-code="cxbx"] .teacher-class-student-card > header strong,
  body[data-school-code="cxbx"] .binding-grade-card > strong,
  body[data-school-code="cxbx"] .product-card strong { font-size: 16px; }
  body[data-school-code="cxbx"] .teacher-class-compare-metric > strong,
  body[data-school-code="cxbx"] .teacher-class-student-card > header b { font-size: 15px; }
  body[data-school-code="cxbx"] .student-tier-summary-card > span,
  body[data-school-code="cxbx"] .student-tier-class-row > strong,
  body[data-school-code="cxbx"] .student-tier-roster-panel button strong,
  body[data-school-code="cxbx"] .student-growth-row strong { font-size: 14px; }

  body[data-school-code="cxbx"] .student-tier-class-row {
    grid-template-columns: 92px minmax(0, 1fr) 48px;
  }
}

body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button strong { font-size: 14px; }
body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button em { font-size: 12px; }
body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button > i { font-size: 10px; }

@media (min-width: 1900px) {
  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button strong { font-size: 16px; }
  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button em { font-size: 14px; }
  body[data-school-code="cxbx"] .student-tier-board.single-class .student-tier-roster-panel button > i { font-size: 11px; }
}

/* 人员姓名统一字号：仅放大姓名，不改变班级、积分与说明层级 */
body[data-school-code="cxbx"] .coverage-student strong,
body[data-school-code="cxbx"] .compact-coverage-students button > strong,
body[data-school-code="cxbx"] .student-tier-roster-panel button > strong,
body[data-school-code="cxbx"] .student-growth-row strong,
body[data-school-code="cxbx"] .student-analysis-main-panel tr[data-student-id] td:not(.num) > strong,
body[data-school-code="cxbx"] .student-analysis-main-panel button[data-student-id],
body[data-school-code="cxbx"] tr[data-teacher-name] td:first-child > strong,
body[data-school-code="cxbx"] .teacher-metric-table tbody td:first-child > strong,
body[data-school-code="cxbx"] .teacher-student-status > span,
body[data-school-code="cxbx"] .teacher-missing-groups button[data-student-id],
body[data-school-code="cxbx"] .teacher-3d-tooltip > strong,
body[data-school-code="cxbx"] .redemption-class-table .student-cell > strong,
body[data-school-code="cxbx"][data-page="redemptions"] tr[data-student-id] td:not(.num) > strong,
body[data-school-code="cxbx"] .binding-class-row > span,
body[data-school-code="cxbx"] .binding-class-row button[data-student-id],
body[data-school-code="cxbx"][data-page="bindings"] tr[data-student-id] td:first-child > strong {
  font-size: 14px !important;
}

body[data-school-code="cxbx"] .class-card-workbench-lists .compact-coverage-students button {
  min-height: 36px;
}

body[data-school-code="cxbx"] .class-subject-matrix thead th:first-child,
body[data-school-code="cxbx"] .class-subject-matrix tbody th,
body[data-school-code="cxbx"] .class-subject-matrix tbody th button {
  text-align: center;
}

body[data-school-code="cxbx"] .class-subject-matrix tbody th button {
  padding-inline: 8px;
  white-space: nowrap;
}

/* AI问数：统一深色层级，提高历史、回答和输入区域的对比度。 */
body[data-school-code="cxbx"][data-page="assistant"] .agent-history-panel,
body[data-school-code="cxbx"][data-page="assistant"] .agent-chat {
  color: #edf8f5;
  border-color: rgba(93, 210, 190, .24);
  background: #0a252b;
  box-shadow: 0 12px 30px rgba(0, 10, 14, .2);
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-history-panel > header {
  border-color: rgba(93, 210, 190, .2);
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-history-panel > header strong,
body[data-school-code="cxbx"][data-page="assistant"] .agent-empty strong {
  color: #f2fbf8;
  font-size: 17px;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-history-panel > header span,
body[data-school-code="cxbx"][data-page="assistant"] .agent-history-panel > footer,
body[data-school-code="cxbx"][data-page="assistant"] .agent-empty p {
  color: #acc7c1;
  font-size: 14px;
  line-height: 1.65;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-history-item {
  color: #e5f3ef;
  border-color: rgba(93, 210, 190, .18);
  background: #0d3036;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-history-item:hover,
body[data-school-code="cxbx"][data-page="assistant"] .agent-history-item:focus-visible {
  border-color: rgba(93, 210, 190, .46);
  background: #123b41;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-messages {
  color: #e2f0ed;
  border-color: rgba(93, 210, 190, .18);
  background: #071d23;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-empty p {
  max-width: 620px;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message > span {
  color: #9fc2ba;
  font-size: 14px;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message > div,
body[data-school-code="cxbx"][data-page="assistant"] .agent-message.assistant > div {
  color: #e9f5f2;
  border-color: rgba(93, 210, 190, .26);
  background: #0d3036;
  box-shadow: inset 4px 0 #46d7bd;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message.user > div {
  color: #f5fffc;
  border-color: rgba(85, 224, 197, .48);
  background: #126456;
  box-shadow: none;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message strong {
  color: #f3fbf9;
  font-size: 17px;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message p,
body[data-school-code="cxbx"][data-page="assistant"] .agent-message li,
body[data-school-code="cxbx"][data-page="assistant"] .agent-message li button {
  color: #d8ebe6;
  font-size: 15px;
  line-height: 1.75;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message li {
  border-color: rgba(93, 210, 190, .22);
  background: #12373e;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-message.user li {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-chat-toolbar button {
  height: 36px;
  color: #bce9df;
  border-color: rgba(93, 210, 190, .34);
  background: #0d3036;
  font-size: 14px;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-form {
  color: #e7f4f0;
  border-color: rgba(93, 210, 190, .24);
  background: #0a252b;
}

body[data-school-code="cxbx"][data-page="assistant"] #agent-input {
  color: #f1faf7;
  border-color: rgba(93, 210, 190, .4);
  background: #0d3036;
  font-size: 15px;
}

body[data-school-code="cxbx"][data-page="assistant"] #agent-input::placeholder {
  color: #9ab9b2;
  opacity: 1;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-form button[type="submit"] {
  min-width: 84px;
  height: 40px;
  color: #06251f;
  border: 0;
  border-radius: 10px;
  background: #46d7bd;
  font-size: 15px;
  font-weight: 800;
}

/* AI问数：标题下方至屏幕底部统一由外层分配高度，左右板块等高铺满。 */
body[data-school-code="cxbx"][data-page="assistant"] .workspace {
  height: 100vh;
  min-height: 0;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-school-code="cxbx"][data-page="assistant"] .workspace-sticky {
  flex: none;
}

body[data-school-code="cxbx"][data-page="assistant"] .page-content {
  min-height: 0;
  flex: 1;
  display: flex;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-workspace {
  width: 100%;
  min-height: 0;
  flex: 1;
}

body[data-school-code="cxbx"][data-page="assistant"] .agent-history-panel,
body[data-school-code="cxbx"][data-page="assistant"] .agent-chat {
  height: 100%;
  min-height: 0;
}

/* 教师分析：收敛为深青底、青绿主强调、蓝色辅助，暖色仅用于提醒。 */
body[data-school-code="cxbx"][data-page="teacherIssuance"] .kpi-card,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-analysis-grid > .panel,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-detail-panel,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-compare-row,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-student-card {
  border-color: rgba(93, 210, 190, .19) !important;
  background: linear-gradient(150deg, #0d2a31, #081e24) !important;
  box-shadow: 0 12px 28px rgba(0, 9, 12, .2) !important;
}

body[data-school-code="cxbx"][data-page="teacherIssuance"] .kpi-card { --accent: #46d7bd !important; }
body[data-school-code="cxbx"][data-page="teacherIssuance"] .kpi-card:nth-child(even) { --accent: #55c4df !important; }

body[data-school-code="cxbx"][data-page="teacherIssuance"] .kpi-card label,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .kpi-card p,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-split-kpi-breakdown em { color: #9cbab4 !important; }

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-split-kpi-breakdown { border-left-color: rgba(93, 210, 190, .18); }
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-split-kpi-breakdown i {
  background: #46d7bd;
  box-shadow: 0 0 0 3px rgba(70, 215, 189, .09);
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-split-kpi-breakdown span:nth-child(even) i {
  background: #55c4df;
  box-shadow: 0 0 0 3px rgba(85, 196, 223, .09);
}

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-2d-viewer {
  color: #bfd6d1;
  background: #071d23;
}

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-evaluation-detail-panel .panel-head {
  border-bottom: 1px solid rgba(93, 210, 190, .12);
}

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-search,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-search input {
  color: #e7f4f1;
  border-color: rgba(93, 210, 190, .24);
  background: #071d23;
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-search input::placeholder { color: #829f99; }

body[data-school-code="cxbx"][data-page="teacherIssuance"] .data-table th {
  color: #aac5bf;
  border-color: rgba(93, 210, 190, .13);
  background: #0b252c;
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .data-table td {
  color: #d8e9e5;
  border-color: rgba(93, 210, 190, .085);
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .data-table tbody tr:nth-child(even) { background: rgba(93, 210, 190, .018); }
body[data-school-code="cxbx"][data-page="teacherIssuance"] .data-table tbody tr:hover { background: rgba(70, 215, 189, .075) !important; }
body[data-school-code="cxbx"][data-page="teacherIssuance"] .data-table strong { color: #68dec8; }

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-detail-sticky {
  border-color: transparent;
  background: rgba(6, 22, 27, .96);
}

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-compare-metric > em {
  color: #a8c3bd !important;
  border-color: rgba(93, 210, 190, .16);
  background: #0a252b;
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-compare-track { background: rgba(255, 255, 255, .055); }
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-compare-metric:nth-child(1) .teacher-class-compare-track i,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-compare-metric:nth-child(3) .teacher-class-compare-track i { --metric-color: #55c4df !important; }
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-class-compare-metric:nth-child(2) .teacher-class-compare-track i { --metric-color: #46d7bd !important; }

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-student-status.covered {
  color: #eaf8f5;
  border-color: rgba(70, 215, 189, var(--student-level));
  background: rgba(39, 184, 159, var(--student-level));
  box-shadow: inset 3px 0 rgba(126, 244, 220, var(--student-level));
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-student-status.covered span,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-student-status.covered strong { color: #eaf8f5; }

body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-student-status.missing {
  color: #f1b67f;
  border-color: rgba(239, 148, 108, .24);
  background: rgba(239, 148, 108, .075);
  box-shadow: none;
}
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-student-status.missing span,
body[data-school-code="cxbx"][data-page="teacherIssuance"] .teacher-student-status.missing strong { color: #efb080; }
