:root {
  color-scheme: light;
  --text: #202733;
  --muted: #667085;
  --line: #e3e7ee;
  --surface: #f8fafc;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --table-cell-x: 16px;
  --table-cell-y: 15px;
  --table-index-width: 68px;
  --table-number-width: 96px;
  --table-text-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Zen Hei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { touch-action: manipulation; }
input, select { min-width: 0; max-width: 100%; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, b { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 14px; background: #fff; z-index: 50; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.header-inner, .page-shell { width: 100%; max-width: 1240px; margin: auto; padding-left: 32px; padding-right: 32px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--text); font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; }
.brand:hover { text-decoration: none; }
#main-nav { display: flex; align-self: stretch; flex-shrink: 0; gap: 28px; }
.nav-link { padding: 0 1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.nav-link:hover { color: var(--text); }
.nav-link.active { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.page-intro { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 20px 0; }
.metrics { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.metrics > span { white-space: nowrap; }
.metrics strong { color: var(--text); font-variant-numeric: tabular-nums; margin-right: 3px; }
.loading { min-height: 650px; color: var(--muted); }
.load-error, .notice { padding: 60px 0; min-height: 55vh; color: var(--muted); }
.load-error p { margin: 6px 0 14px; }
.filter-panel, .loading-filter { border: 1px solid var(--line); border-radius: 8px; padding: 8px 20px 20px; background: var(--surface); scroll-margin-top: 12px; }
.filter-heading, .loading-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-bottom: 8px; }
.loading-heading { justify-content: flex-start; font-size: 13px; gap: 8px; }
.loading-dot { width: 5px; height: 5px; border-radius: 50%; background: #9dbaf5; animation: loading-pulse 1.4s ease-in-out infinite alternate; }
.loading-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px 20px; }
.skeleton-field i { display: block; width: 32px; height: 20px; margin-bottom: 6px; border-radius: 3px; background: #e8edf3; }
.skeleton-field b { display: block; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.loading-results { margin-top: 24px; }
.skeleton-toolbar { width: 180px; height: 42px; border-radius: 4px; background: var(--surface); }
.skeleton-tabs { height: 46px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.skeleton-record { display: flex; align-items: center; gap: 5%; min-height: 62px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.skeleton-record i, .skeleton-record b, .skeleton-record span { display: block; height: 16px; background: #f0f3f7; border-radius: 3px; }
.skeleton-record i { width: 18%; }
.skeleton-record b { width: 42%; }
.skeleton-record span { width: 16%; }
@keyframes loading-pulse { to { opacity: .3; } }
.filter-heading h2 { font-size: 13px; font-weight: 500; color: var(--muted); }
.filter-actions { display: flex; align-items: center; gap: 18px; }
.text-button { min-height: 40px; font-size: 13px; color: var(--muted); padding: 3px 0; white-space: nowrap; }
.text-button:hover { color: var(--blue); }
#filter-toggle { display: none; }
.filter-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px 20px; align-items: start; }
.filter-field { min-width: 0; }
.filter-field > label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.name-filter input { width: 100%; height: 42px; border: 1px solid #d5dbe4; border-radius: 6px; padding: 0 12px; background: #fff; font-size: 14px; }
input::placeholder { color: var(--muted); opacity: 1; }
.name-filter input:hover { border-color: #9aa8ba; }
.name-filter input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px #2563eb12; }
.results-panel { margin-top: 24px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters:not(:empty) { margin-bottom: 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 3px 9px; border-radius: 4px; background: var(--blue-light); color: #1d4ed8; font-size: 12px; overflow-wrap: anywhere; text-align: left; }
.filter-chip span { font-size: 16px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; scroll-margin-top: 16px; }
.result-description { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.result-heading h2 { font-size: 17px; white-space: nowrap; }
#result-count { font-size: 12px; color: var(--muted); }
#result-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.result-actions { flex: 0 0 auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 5px 12px; background: #fff; border: 1px solid #d7dce3; border-radius: 5px; font-size: 12px; color: var(--text); white-space: nowrap; }
.button:hover:not(:disabled) { background: var(--surface); border-color: #aeb8c7; }
.statistics-nav { display: flex; gap: 6px; width: fit-content; max-width: 100%; padding: 4px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.statistics-nav button { min-height: 40px; padding: 0 20px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.statistics-nav button:hover { color: var(--blue); }
.statistics-nav button.selected { color: var(--blue); background: #fff; border-color: #dbe4f0; font-weight: 600; box-shadow: 0 1px 2px #0f172a08; }
.table-wrap { width: 100%; margin-top: 14px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; table-layout: fixed; }
th { position: sticky; top: 0; z-index: 5; color: var(--muted); font-size: 13px; font-weight: 500; padding: 12px var(--table-cell-x); background: var(--surface); box-shadow: inset 0 -1px var(--line); white-space: nowrap; }
th:first-child { width: var(--table-index-width); }
th:first-child, td:first-child { text-align: center; }
.records-table th:nth-child(2) { width: 88px; }
.records-table th:nth-child(3) { width: 208px; }
.records-table th:nth-child(4) { width: 160px; }
th.num { width: var(--table-number-width); }
.compact-summary-table { --table-number-width: clamp(72px, 11vw, 144px); }
table .num { text-align: right; }
td { border-bottom: 1px solid var(--line); padding: var(--table-cell-y) var(--table-cell-x); font-size: var(--table-text-size); line-height: 1.65; vertical-align: middle; overflow-wrap: anywhere; }
td:first-child { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--surface); }
.year-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.teacher { font-size: var(--table-text-size); }
.teacher-award { display: flex; align-items: center; gap: 10px; }
.teacher-award > :first-child { white-space: nowrap; }
.teacher-award .award-badge { flex-shrink: 0; }
.pua-note { display: block; font-size: 10px; color: var(--muted); }
.school-link, .category-link { padding: 0; text-align: left; line-height: inherit; overflow-wrap: anywhere; }
.school-link { color: var(--text); }
.school-link:hover, .category-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.category-link { font-size: 13px; color: var(--muted); }
table .category-link { font-size: inherit; }
.award-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; line-height: 1.6; white-space: nowrap; font-weight: 400; }
.award-badge.a1 { color: #245cbd; background: #edf3ff; }
.award-badge.a2 { color: #197565; background: #eaf7f4; }
.award-badge.a3 { color: #7553a6; background: #f3effc; }
.num { font-variant-numeric: tabular-nums; }
.group-name { font-size: inherit; }
.group-total { font-weight: 600; }
.ranking-note { color: var(--muted); font-size: 12px; margin: 12px 0; }
.teacher-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.teacher-tools button { min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; color: var(--muted); }
.teacher-tools button:hover { color: var(--blue); }
.teacher-tools button.selected { color: var(--blue); border-color: #cedcf5; background: #f3f7ff; }
.teacher-ranking-table th:nth-child(2) { width: 96px; }
.teacher-ranking-table th:nth-child(3) { width: 136px; }
.teacher-ranking-table th:last-child, .teacher-ranking-table td:last-child { text-align: right; }
.teacher-ranking-table td:last-child .school-link { text-align: right; }
.teacher-link { font-weight: 500; }
.teacher-years { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.7; }
.teacher-review-reason { color: #766546; font-size: 12px; margin-top: 6px; }
.review-label { display: inline-block; white-space: nowrap; padding: 2px 5px; border-radius: 4px; color: #766546; background: #f8f4ed; font-size: 11px; }
.teacher-detail-note { color: #766546; background: #fbf8f2; border-radius: 5px; padding: 10px 12px; margin: 12px 0; font-size: 12px; }
#region-note { margin-top: -6px; line-height: 1.8; }
.region-unassigned { padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin: 0 0 16px; }
.region-unassigned h3 { font-size: 14px; }
.region-unassigned p { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.region-unassigned button { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; width: 100%; min-height: 44px; text-align: left; padding: 6px 0; color: var(--blue); font-size: 13px; }
.region-unassigned button > span:last-child { color: var(--muted); font-size: 12px; }
.region-unassigned button:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.rank-number { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; border-radius: 5px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-number.leading { color: #245cbd; background: #edf3ff; font-weight: 600; }
.ranking-table .group-total { color: var(--text); }
.ranking-table .rank-metric { color: var(--blue); font-weight: 600; background: #f8faff; }
.mobile-results { display: none; }
.empty-state { padding: 52px 18px; text-align: center; }
.empty-state h3 { font-size: 16px; }
.empty-state p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 12px; color: var(--muted); }
.pagination > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pagination-controls { display: flex; align-items: center; gap: 5px; }
.pagination-controls button { min-width: 32px; height: 36px; padding: 0 8px; border-radius: 4px; font-size: 12px; }
.pagination-controls button:hover:not(:disabled) { background: var(--surface); }
.pagination-controls button.selected { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.pagination-controls > span { padding: 0 3px; }
.data-footnote { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.chart-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px; min-width: 0; }
.chart-card.full { grid-column: 1 / -1; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.chart-head h3 { font-size: 14px; }
.chart-head small { color: var(--muted); font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.c1 { background: #5d87d8; }
.c2 { background: #69aea3; }
.c3 { background: #a28acb; }
.year-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 16px; padding-top: 8px; }
.year-column { display: flex; flex-direction: column; align-items: center; padding: 0; flex: 1; max-width: 75px; min-width: 0; }
.column-total { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.column-stack { display: flex; flex-direction: column-reverse; width: 60%; min-width: 12px; max-width: 46px; border-radius: 3px 3px 0 0; overflow: hidden; }
.column-stack span { display: block; width: 100%; }
.column-year { font-size: 12px; margin-top: 10px; }
.year-column:hover .column-year { color: var(--blue); }
.chart-note { margin-top: 18px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.stages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; }
.stage-stat strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.stage-stat span { color: var(--muted); font-size: 12px; }
.stage-stat:hover strong { color: var(--blue); }
.sources-heading { margin: 28px 0 20px; }
.sources-heading h1 { font-size: 22px; }
.sources-heading p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sources-heading a:hover, .source-card-actions a:hover { text-decoration: none; color: #1d4ed8; }
.source-cards { border-top: 1px solid var(--line); }
.source-card { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.source-card-year { font-size: 20px; font-variant-numeric: tabular-nums; }
.source-card-year span { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.source-card-content { min-width: 0; }
.source-card-title { font-size: 14px; }
.source-card-count { font-size: 12px; color: var(--muted); margin-top: 4px; }
.source-card-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px 20px; flex-wrap: wrap; max-width: 340px; }
.source-card-actions a { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; white-space: nowrap; }
.source-notes { padding: 22px 24px; border-radius: 6px; background: var(--surface); margin-top: 26px; }
.source-notes h3 { font-size: 14px; margin-bottom: 10px; }
.source-notes p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.source-notes p + p { margin-top: 7px; }
.source-notes strong { font-weight: 500; color: #475569; }
.footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 22px 0 28px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.9; }
.footer p + p { margin-top: 3px; }
.footer a { color: inherit; }
.footer a[href^='mailto:'] { color: var(--blue); }
.footer a:hover { color: var(--blue); }
.back-to-filters { display: none; }

@media (max-width: 1100px) {
  :root { --table-cell-x: 12px; --table-index-width: 60px; --table-number-width: 84px; }
  .brand { font-size: 22px; }
  .result-description { display: block; }
  #result-count { margin-top: 3px; }
  .chart-head { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 800px) {
  :root { --table-cell-x: 10px; --table-cell-y: 14px; --table-index-width: 56px; --table-number-width: 72px; --table-text-size: 13px; }
  .header-inner, .page-shell { padding-left: 24px; padding-right: 24px; }
  .brand { font-size: 20px; }
  #main-nav { gap: 20px; }
  .filter-fields { gap: 14px; }
  .filter-panel, .loading-filter { padding-left: 16px; padding-right: 16px; }
  .loading-fields { gap: 14px; }
  .teacher-award { gap: 7px; }
  .records-table th:nth-child(2) { width: 68px; }
  .records-table th:nth-child(3) { width: 164px; }
  .records-table th:nth-child(4) { width: 120px; }
  .teacher-ranking-table th:nth-child(2) { width: 72px; }
  .teacher-ranking-table th:nth-child(3) { width: 108px; }
  .chart-card { padding: 18px; }
  .source-card { grid-template-columns: 68px minmax(0, 1fr); gap: 0 14px; }
  .source-card-actions { grid-column: 2; justify-content: flex-start; margin-top: 5px; }
}
@media (max-width: 640px) {
  .header-inner, .page-shell { padding-left: 16px; padding-right: 16px; }
  .header-inner { flex-direction: column; align-items: center; gap: 0; min-height: 0; padding-top: 16px; }
  .brand { max-width: 100%; font-size: 20px; line-height: 1.5; letter-spacing: 0; text-align: center; }
  .brand-purpose { white-space: nowrap; }
  #main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 48px; margin-top: 10px; gap: 0; }
  .nav-link { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 0 8px; border-bottom: 0; font-size: 14px; line-height: 1.4; white-space: nowrap; }
  .nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 24px; height: 2px; border-radius: 2px 2px 0 0; background: var(--blue); transform: translateX(-50%); }
  .page-intro { flex-direction: column; align-items: flex-start; padding: 12px 0; gap: 5px; }
  .metrics { margin-left: 0; font-size: 12px; gap: 5px 14px; }
  .metrics > span:nth-child(n+3) { display: none; }
  .metrics strong { margin-right: 1px; }
  .filter-panel, .loading-filter { padding: 2px 12px 12px; border-radius: 8px; }
  .filter-heading, .loading-heading { min-height: 44px; margin-bottom: 4px; }
  .filter-heading h2 { font-size: 12px; }
  .filter-actions { gap: 12px; }
  .text-button, #filter-toggle { min-height: 44px; font-size: 12px; }
  #filter-toggle { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding: 0; }
  #filter-summary-count { color: var(--blue); }
  .filter-chevron { margin-left: 5px; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }
  #filter-toggle[aria-expanded='true'] .filter-chevron { transform: translateY(2px) rotate(225deg); }
  .filter-fields, .loading-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .school-filter, .award-filter, .skeleton-school, .skeleton-award { grid-column: 1 / -1; }
  .is-collapsed .filter-field:not(.year-filter):not(.name-filter) { display: none; }
  .name-filter input { height: 44px; font-size: 16px; }
  .name-filter input::placeholder { font-size: 14px; }
  .filter-field > label { font-size: 12px; margin-bottom: 5px; }
  .results-panel, .loading-results { margin-top: 16px; }
  .skeleton-field i { margin-bottom: 5px; }
  .skeleton-field b { height: 44px; }
  .skeleton-record { display: grid; gap: 10px; padding: 16px 0; min-height: 108px; }
  .skeleton-record i { width: 36%; }
  .skeleton-record b { width: 75%; }
  .skeleton-record span { width: 26%; }
  .skeleton-tabs { margin-top: 8px; }
  .active-filters:not(:empty) { margin-bottom: 12px; }
  .filter-chip { min-height: 36px; font-size: 12px; }
  .result-heading { gap: 10px; align-items: flex-start; }
  .result-heading h2 { font-size: 17px; }
  #result-count { font-size: 12px; line-height: 1.8; }
  #result-count > span { display: none; }
  .result-actions { margin-left: auto; }
  .button { min-height: 44px; }
  .statistics-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 2px; padding: 3px; margin-bottom: 16px; }
  .statistics-nav button { min-height: 44px; padding: 0 2px; font-size: 13px; }
  .table-wrap { display: none; }
  .mobile-results { display: block; margin-top: 8px; }
  .record-card, .group-card { border-bottom: 1px solid var(--line); padding: 14px 0; min-width: 0; }
  .record-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .record-heading h3 { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
  .record-heading .teacher-award { gap: 9px; min-width: 0; }
  .record-year { flex-shrink: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .record-school { display: block; margin-top: 2px; padding: 3px 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; max-width: 100%; }
  .record-meta { color: var(--muted); margin-top: 3px; }
  .record-meta .category-link { min-height: 24px; max-width: 100%; font-size: 12px; }
  .group-card .record-heading { align-items: flex-start; }
  .group-card h3 { font-size: 14px; }
  .group-card h3 button { font-weight: 600; overflow-wrap: anywhere; }
  .group-card .group-total { flex: 0 0 auto; color: var(--blue); font-size: 14px; }
  .rank-school { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
  .rank-school .rank-number { flex-shrink: 0; margin-top: -2px; }
  .school-ranking-card .group-years, .school-ranking-card .group-awards { margin-left: 36px; }
  .school-ranking-card .group-awards { gap: 8px; }
  .school-ranking-card .group-awards > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .school-ranking-card .group-awards b { margin-left: 0; }
  .school-ranking-card .group-awards .rank-metric { color: var(--blue); }
  .group-years { margin-top: 4px; color: var(--muted); font-size: 12px; }
  .teacher-tools button { min-height: 44px; }
  .teacher-category { color: var(--muted); font-size: 12px; margin: 4px 0 2px; }
  .teacher-school { font-size: 14px; line-height: 1.65; }
  .teacher-ranking-card .teacher-link { min-height: 28px; margin-top: -2px; }
  .teacher-ranking-card .teacher-school button { max-width: 100%; }
  .teacher-ranking-card .review-label { flex-shrink: 0; margin-top: 1px; }
  .teacher-ranking-card .group-awards .rank-metric { color: var(--blue); }
  .group-awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
  .group-awards b { color: var(--text); margin-left: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }
  .pagination { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 0; font-size: 12px; }
  .pagination > div:first-child { width: 100%; justify-content: space-between; gap: 8px; }
  .pagination-controls { width: 100%; justify-content: center; gap: 3px; }
  .pagination-controls button { min-width: 34px; height: 44px; padding: 0 6px; font-size: 12px; }
  .pagination-controls > span { padding: 0 2px; }
  .data-footnote { font-size: 12px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
  .chart-card { padding: 16px; }
  .chart-head { gap: 8px; margin-bottom: 16px; }
  .chart-head h3 { font-size: 13px; }
  .chart-head small { font-size: 10px; }
  .legend { font-size: 10px; gap: 10px; }
  .year-chart { gap: 4px; }
  .column-total { font-size: 9px; margin-bottom: 6px; }
  .column-year { font-size: 10px; }
  .column-stack { width: 70%; }
  .stages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stage-stat strong { font-size: 22px; }
  .sources-heading { margin-top: 24px; margin-bottom: 18px; }
  .sources-heading h1 { font-size: 20px; }
  .sources-heading p { font-size: 12px; line-height: 1.8; }
  .source-card { grid-template-columns: 56px minmax(0, 1fr); padding: 15px 0; gap: 0 12px; }
  .source-card-year { align-self: start; font-size: 18px; }
  .source-card-year span { display: none; }
  .source-card-title { font-size: 13px; }
  .source-card-count { font-size: 11px; }
  .source-card-actions { gap: 0 18px; margin-top: 3px; }
  .source-card-actions a { min-height: 40px; font-size: 12px; }
  .source-notes { padding: 16px; margin-top: 20px; }
  .source-notes h3 { font-size: 13px; }
  .source-notes p { font-size: 12px; }
  .footer { padding: 20px 0 24px; margin-top: 28px; }
  .back-to-filters { display: inline-flex; position: fixed; z-index: 20; bottom: max(18px, env(safe-area-inset-bottom)); right: 16px; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--blue); box-shadow: 0 3px 16px #22304a18; font-size: 13px; }
}
@media (max-width: 360px) {
  .statistics-nav button { font-size: 12px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .loading-dot { animation: none; }
}
