:root {
  color-scheme: light;
  --bg: #07110d;
  --surface: #ffffff;
  --surface-soft: #f5fbf8;
  --surface-glass: rgb(255 255 255 / 0.86);
  --line: #d9e8e4;
  --line-strong: #a9c2bc;
  --text: #101b19;
  --muted: #5f716d;
  --accent: #08a77d;
  --accent-2: #0878b8;
  --accent-soft: #e4fbf3;
  --warning: #a56a1d;
  --sidebar-bg: #06130f;
  --sidebar-line: rgb(0 217 255 / 0.24);
  --sidebar-text: #d9fff5;
  --sidebar-muted: #86aaa1;
  --neon-cyan: #00d9ff;
  --neon-emerald: #12e6b0;
  --neon-soft: rgb(18 230 176 / 0.12);
  --shadow: 0 24px 60px rgb(5 24 20 / 0.12);
  --shadow-soft: 0 12px 30px rgb(5 24 20 / 0.08);
  --sidebar-shadow: 0 22px 70px rgb(0 217 255 / 0.16), inset 0 0 0 1px rgb(18 230 176 / 0.08);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar-icon-ai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 20 7v10l-8 4.5L4 17V7l8-4.5Z'/%3E%3Cpath d='M8 15l2.2-6h3.6L16 15'/%3E%3Cpath d='M9.2 12.8h5.6'/%3E%3Cpath d='M18 9v6'/%3E%3C/svg%3E");
  --sidebar-icon-trend: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 16l4-5 3 3 5-7'/%3E%3Cpath d='M19 7v5h-5'/%3E%3Cpath d='M8 19v-3'/%3E%3Cpath d='M12 19v-6'/%3E%3Cpath d='M16 19v-4'/%3E%3C/svg%3E");
  --sidebar-icon-data: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 16V9'/%3E%3Cpath d='M12 16v-5'/%3E%3Cpath d='M16 16V7'/%3E%3Cpath d='M7 8l3 3 3-2 4 4'/%3E%3C/svg%3E");
  --sidebar-icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h8l4 4v14H7V3Z'/%3E%3Cpath d='M15 3v5h4'/%3E%3Cpath d='M10 12h6'/%3E%3Cpath d='M10 16h6'/%3E%3C/svg%3E");
  --sidebar-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.2 7-11a7 7 0 0 0-14 0c0 5.8 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --sidebar-icon-quota: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='5' cy='18' r='2'/%3E%3Ccircle cx='19' cy='18' r='2'/%3E%3Cpath d='M12 7v4'/%3E%3Cpath d='M5 16v-3h14v3'/%3E%3C/svg%3E");
  --sidebar-icon-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M16 3v4'/%3E%3Cpath d='m12 10 1.1 2.2 2.4.3-1.7 1.7.4 2.4-2.2-1.1-2.2 1.1.4-2.4-1.7-1.7 2.4-.3L12 10Z'/%3E%3C/svg%3E");
  --sidebar-icon-profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 7h2'/%3E%3Cpath d='M13 7h2'/%3E%3Cpath d='M9 11h2'/%3E%3Cpath d='M13 11h2'/%3E%3Cpath d='M9 15h2'/%3E%3Cpath d='M13 15h2'/%3E%3C/svg%3E");
  --sidebar-icon-tier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18h16'/%3E%3Cpath d='M7 18v-4'/%3E%3Cpath d='M12 18V9'/%3E%3Cpath d='M17 18V6'/%3E%3Cpath d='M6 10l4-4 4 3 4-5'/%3E%3C/svg%3E");
  --sidebar-icon-middle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3Cpath d='M7.5 18a5 5 0 0 1 9 0'/%3E%3Cpath d='M18 6l2-2'/%3E%3C/svg%3E");
  --sidebar-icon-gaokao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='M6 10v5c2 2 10 2 12 0v-5'/%3E%3Cpath d='M21 8v6'/%3E%3C/svg%3E");
  --sidebar-icon-estimator: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3Cpath d='M7 12a5 5 0 0 1 10 0'/%3E%3C/svg%3E");
  --sidebar-icon-volunteer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");
  --sidebar-icon-rules: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='16' rx='2'/%3E%3Cpath d='M9 9h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
  --sidebar-icon-timeline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M16 3v4'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M8 14h4'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
  --sidebar-icon-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='2'/%3E%3Cpath d='M8 20h8'/%3E%3Cpath d='M12 16v4'/%3E%3C/svg%3E");
  --sidebar-icon-feedback: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4h6'/%3E%3Cpath d='m9 13 2 2 4-5'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgb(0 217 255 / 0.18), transparent 320px),
    radial-gradient(circle at 88% 8%, rgb(18 230 176 / 0.18), transparent 360px),
    linear-gradient(135deg, #04100d 0%, #07110d 42%, #eaf4f0 42%, #f6fbf9 100%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

body.has-compliance-modal,
body.has-legal-doc-modal {
  overflow: hidden;
}

.compliance-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.compliance-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(23 32 24 / 0.46);
}

.compliance-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(92vw, 520px);
  max-height: min(84vh, 640px);
  overflow-y: auto;
  border: 1px solid #d8e3dc;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgb(23 32 24 / 0.22);
  padding: 24px;
}

.compliance-modal__panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 780;
}

.compliance-modal__body {
  display: grid;
  gap: 10px;
}

.compliance-modal__body p,
.compliance-modal__agreement {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.compliance-modal__instruction {
  margin: -2px 0 -4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 760;
}

.compliance-modal__agreement {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
}

.compliance-modal__agreement--attention {
  border-color: #d05b48;
  background: #fff7f4;
  box-shadow: 0 0 0 3px rgb(208 91 72 / 0.12);
}

.compliance-modal__agreement input {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--accent);
}

.compliance-modal__agreement a {
  color: var(--accent);
  font-weight: 760;
  text-decoration: none;
}

.compliance-modal__agreement a:hover {
  text-decoration: underline;
}

.compliance-modal__hint {
  margin: -8px 0 0;
  color: #a43c2e;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 720;
}

.compliance-modal__hint[hidden] {
  display: none;
}

.compliance-modal__submit {
  justify-self: end;
  min-width: 116px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(31 122 77 / 0.18);
}

.compliance-modal__submit:hover:not([data-agreement-pending="true"]) {
  background: #17663f;
}

.compliance-modal__submit[data-agreement-pending="true"] {
  background: #b9c8bd;
  color: #f7faf8;
  box-shadow: none;
}

.legal-doc-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-doc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(23 32 24 / 0.48);
}

.legal-doc-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(92vw, 760px);
  max-height: min(86vh, 720px);
  overflow: hidden;
  border: 1px solid #d8e3dc;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgb(23 32 24 / 0.24);
}

.legal-doc-modal__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 18px;
}

.legal-doc-modal__head h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 780;
}

.legal-doc-modal__head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.legal-doc-modal__close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.legal-doc-modal__close:hover {
  border-color: var(--line-strong);
  background: #edf5f0;
}

.legal-doc-modal__body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 26px;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "sidebar topbar"
    "sidebar controls"
    "sidebar table-tabs"
    "sidebar table-panel"
    "footer footer";
  column-gap: 20px;
  align-content: start;
  height: 100vh;
  min-height: 100vh;
  padding: 24px 24px 0;
  isolation: isolate;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 42px 292px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 217 255 / 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgb(18 230 176 / 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 6%, rgb(0 217 255 / 0.14), transparent 260px),
    radial-gradient(circle at 38% 24%, rgb(18 230 176 / 0.1), transparent 340px);
  background-size: 88px 88px, 88px 88px, auto, auto;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.88), transparent 74%);
}

.workspace {
  display: contents;
  min-width: 0;
}

.app-shell.is-guide-view {
  grid-template-areas:
    "sidebar table-panel"
    "footer footer";
  grid-template-rows: minmax(0, 1fr) auto;
}

.app-shell.is-tool-view {
  grid-template-areas:
    "sidebar workspace"
    "footer footer";
  grid-template-rows: minmax(0, 1fr) auto;
}

.app-shell.is-tool-view .workspace {
  grid-area: workspace;
  display: grid;
  grid-template-areas:
    "topbar"
    "controls"
    "table-panel";
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  min-height: 0;
}

.batch-sidebar {
  grid-area: sidebar;
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(0 217 255 / 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(6 19 15 / 0.98) 0%, rgb(4 13 15 / 0.98) 100%),
    radial-gradient(circle at 38% 3%, rgb(0 217 255 / 0.22), transparent 180px),
    linear-gradient(90deg, transparent 0 12px, rgb(0 217 255 / 0.06) 12px 13px, transparent 13px);
  box-shadow: var(--sidebar-shadow);
  padding: 20px 18px 16px;
  scrollbar-gutter: stable;
}

.batch-sidebar::before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  pointer-events: none;
  border: 1px solid rgb(0 217 255 / 0.22);
  border-top-color: rgb(18 230 176 / 0.38);
  border-bottom-color: rgb(0 217 255 / 0.1);
  border-radius: 14px;
  clip-path: polygon(0 18px, 18px 0, 82% 0, 82% 6px, 100% 6px, 100% 84%, 94% 84%, 94% 100%, 10px 100%, 0 calc(100% - 10px));
}

.batch-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--neon-cyan) 0 2px, transparent 3px) 7px 34% / 6px 120px no-repeat,
    radial-gradient(circle, var(--neon-emerald) 0 2px, transparent 3px) right 11px bottom 26% / 6px 148px no-repeat,
    linear-gradient(180deg, transparent 0 58%, rgb(0 217 255 / 0.34) 58% 70%, transparent 70%) right 16px top / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 0 42%, rgb(18 230 176 / 0.28) 42% 56%, transparent 56%) 12px top / 1px 100% no-repeat;
}

.batch-sidebar::-webkit-scrollbar {
  width: 8px;
}

.batch-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(0 217 255 / 0.22);
}

.sidebar-brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 74px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgb(0 217 255 / 0.18);
  padding: 2px 8px 14px;
}

.sidebar-brand__mark {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid rgb(18 230 176 / 0.28);
  border-radius: 4px;
  background:
    linear-gradient(180deg, transparent 0 74%, rgb(0 217 255 / 0.36) 74% 78%, transparent 78%),
    #06120f;
  box-shadow: 0 0 26px rgb(18 230 176 / 0.24);
}

.sidebar-brand__mark::before,
.sidebar-brand__mark::after {
  content: "";
  position: absolute;
}

.sidebar-brand__mark::before {
  bottom: 11px;
  left: 10px;
  width: 4px;
  height: 20px;
  border-radius: 2px 2px 0 0;
  background: var(--neon-emerald);
  box-shadow:
    7px -9px 0 var(--neon-cyan),
    14px -2px 0 var(--neon-emerald),
    21px -16px 0 var(--neon-cyan),
    28px -6px 0 var(--neon-emerald);
}

.sidebar-brand__mark::after {
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.sidebar-brand__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sidebar-brand__copy strong {
  color: #f2fffb;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 820;
  white-space: nowrap;
}

.sidebar-brand__copy span {
  color: rgb(185 211 205 / 0.82);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  font-weight: 760;
}

.topbar {
  grid-area: topbar;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.control-band {
  grid-area: controls;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.table-tabs {
  grid-area: table-tabs;
  position: relative;
  z-index: 1;
  align-items: center;
  min-width: 0;
}

.table-panel {
  position: relative;
  z-index: 1;
  grid-area: table-panel;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  grid-area: footer;
  min-width: 0;
  margin: 10px -24px 0;
  border-top: 1px solid rgb(0 217 255 / 0.18);
  background: linear-gradient(90deg, rgb(5 16 14 / 0.96), rgb(6 23 25 / 0.94));
  padding: 10px 24px 12px;
  color: rgb(217 255 245 / 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.site-footer__row,
.site-footer__nav,
.site-footer__records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 16px;
  min-width: 0;
}

.site-footer__row {
  max-width: 100%;
}

.site-footer__copyright {
  flex: 0 0 auto;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: rgb(217 255 245 / 0.72);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.site-footer__link[aria-current="page"] {
  color: var(--neon-emerald);
  font-weight: 760;
}

.site-footer__statement {
  margin: 0;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.site-footer__contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  text-align: center;
}

.site-footer__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

[data-nav-icon="AI"] {
  --nav-icon: var(--sidebar-icon-ai);
}

[data-nav-icon="5Y"] {
  --nav-icon: var(--sidebar-icon-trend);
}

[data-nav-icon="DOC"] {
  --nav-icon: var(--sidebar-icon-doc);
}

[data-nav-icon="PIN"] {
  --nav-icon: var(--sidebar-icon-pin);
}

[data-nav-icon="Q"] {
  --nav-icon: var(--sidebar-icon-quota);
}

[data-nav-icon="K"] {
  --nav-icon: var(--sidebar-icon-key);
}

[data-nav-icon="PRO"] {
  --nav-icon: var(--sidebar-icon-profile);
}

[data-nav-icon="T"] {
  --nav-icon: var(--sidebar-icon-tier);
}

[data-nav-icon="UP"] {
  --nav-icon: var(--sidebar-icon-middle);
}

[data-nav-icon="GAO"] {
  --nav-icon: var(--sidebar-icon-gaokao);
}

[data-nav-icon="EST"] {
  --nav-icon: var(--sidebar-icon-estimator);
}

[data-nav-icon="VOL"] {
  --nav-icon: var(--sidebar-icon-volunteer);
}

[data-nav-icon="RUL"] {
  --nav-icon: var(--sidebar-icon-rules);
}

[data-nav-icon="TIM"] {
  --nav-icon: var(--sidebar-icon-timeline);
}

[data-nav-icon="WEB"] {
  --nav-icon: var(--sidebar-icon-web);
}

[data-nav-icon="DAT"] {
  --nav-icon: var(--sidebar-icon-data);
}

[data-nav-icon="FB"] {
  --nav-icon: var(--sidebar-icon-feedback);
}

.batch-nav {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.batch-nav summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  padding: 12px 16px;
  cursor: pointer;
  color: rgb(219 235 245 / 0.78);
  font-size: 17px;
  font-weight: 790;
  line-height: 1.35;
  list-style: none;
  white-space: normal;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.batch-nav summary:hover {
  border-color: rgb(0 217 255 / 0.22);
  background: rgb(0 217 255 / 0.08);
  color: #ffffff;
  box-shadow: 0 0 18px rgb(0 217 255 / 0.12);
}

.batch-nav.is-current summary {
  border-color: rgb(18 230 176 / 0.42);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgb(18 230 176 / 0.28), rgb(0 217 255 / 0.12)),
    rgb(4 26 25 / 0.72);
  box-shadow:
    0 0 26px rgb(18 230 176 / 0.18),
    inset 0 0 0 1px rgb(255 255 255 / 0.05);
  clip-path: polygon(0 12px, 12px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 12px 100%, 0 calc(100% - 12px));
  color: var(--sidebar-text);
}

.batch-nav summary::-webkit-details-marker {
  display: none;
}

.batch-nav summary::before {
  content: "";
  width: 30px;
  height: 30px;
  color: rgb(203 232 255 / 0.78);
  background-color: currentColor;
  -webkit-mask: var(--nav-icon, var(--sidebar-icon-trend)) center / 30px 30px no-repeat;
  mask: var(--nav-icon, var(--sidebar-icon-trend)) center / 30px 30px no-repeat;
  transition:
    color 160ms ease,
    filter 160ms ease;
}

.batch-nav summary:hover::before {
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgb(0 217 255 / 0.44));
}

.batch-nav.is-current summary::before {
  color: var(--neon-emerald);
  filter: drop-shadow(0 0 10px rgb(18 230 176 / 0.4));
}

.batch-nav summary::after {
  content: "▾";
  color: rgb(203 232 255 / 0.78);
  font-size: 13px;
  line-height: 1;
}

.batch-nav.is-current summary::after {
  color: var(--neon-cyan);
}

.batch-nav:not([open]) summary::after {
  content: "▸";
}

.batch-nav__items {
  display: grid;
  gap: 6px;
  padding: 9px 4px 8px 14px;
}

.batch-nav__items a,
.batch-nav__items button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgb(219 235 245 / 0.76);
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  font-weight: 740;
  cursor: pointer;
}

.batch-nav__items a {
  padding: 0 10px;
}

.batch-nav__items button {
  padding: 0 10px;
}

.batch-nav__items a::before,
.batch-nav__items button::before {
  content: "";
  width: 26px;
  height: 26px;
  color: rgb(203 232 255 / 0.78);
  background-color: currentColor;
  -webkit-mask: var(--nav-icon, var(--sidebar-icon-doc)) center / 24px 24px no-repeat;
  mask: var(--nav-icon, var(--sidebar-icon-doc)) center / 24px 24px no-repeat;
}

.batch-nav__items button:disabled {
  color: rgb(134 170 161 / 0.68);
  cursor: not-allowed;
  opacity: 0.72;
}

.batch-nav__items a:hover,
.batch-nav__items button:not(:disabled):hover {
  background: rgb(0 217 255 / 0.08);
  color: #f7fffc;
}

.batch-nav__items a[aria-current="page"],
.batch-nav__items button[aria-current="page"] {
  border: 1px solid rgb(18 230 176 / 0.34);
  background:
    linear-gradient(135deg, rgb(18 230 176 / 0.22), rgb(0 217 255 / 0.12)),
    rgb(7 32 32 / 0.82);
  color: #fff;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  box-shadow: inset 3px 0 0 var(--neon-emerald), 0 0 18px rgb(0 217 255 / 0.18);
}

.sidebar-entry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: rgb(219 235 245 / 0.78);
  padding: 0 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-entry::before {
  content: "";
  width: 28px;
  height: 28px;
  color: rgb(203 232 255 / 0.78);
  background-color: currentColor;
  -webkit-mask: var(--nav-icon, var(--sidebar-icon-doc)) center / 26px 26px no-repeat;
  mask: var(--nav-icon, var(--sidebar-icon-doc)) center / 26px 26px no-repeat;
  transition:
    color 160ms ease,
    filter 160ms ease;
}

.sidebar-entry:hover {
  border-color: rgb(0 217 255 / 0.22);
  background: rgb(0 217 255 / 0.08);
  color: #ffffff;
  box-shadow: 0 0 18px rgb(0 217 255 / 0.12);
}

.sidebar-entry:hover::before {
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgb(0 217 255 / 0.44));
}

.sidebar-entry[aria-current="page"] {
  border-color: rgb(18 230 176 / 0.5);
  background:
    linear-gradient(135deg, rgb(18 230 176 / 0.28), rgb(0 217 255 / 0.13)),
    rgb(6 34 32 / 0.82);
  color: #fff;
  clip-path: polygon(0 12px, 12px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow:
    inset 4px 0 0 var(--neon-emerald),
    0 0 24px rgb(0 217 255 / 0.22),
    0 0 36px rgb(18 230 176 / 0.13);
}

.sidebar-entry[aria-current="page"]::before {
  color: var(--neon-emerald);
  filter: drop-shadow(0 0 12px rgb(18 230 176 / 0.48));
}

.sidebar-update-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 4px 10px;
  align-items: end;
  min-height: 54px;
  margin-top: 5px;
  border: 1px solid rgb(0 217 255 / 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 22%, rgb(18 230 176 / 0.24), transparent 56px),
    linear-gradient(135deg, rgb(5 23 31 / 0.86), rgb(2 15 22 / 0.9));
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.03), 0 0 22px rgb(0 217 255 / 0.12);
  padding: 9px 11px 8px;
}

.sidebar-update-card__label {
  grid-column: 1;
  color: rgb(203 232 255 / 0.72);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.sidebar-update-card strong {
  grid-column: 1;
  color: rgb(203 232 255 / 0.58);
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 760;
}

.sidebar-update-card__spark {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 46px;
  border-bottom: 1px solid rgb(18 230 176 / 0.48);
  background:
    linear-gradient(180deg, transparent 0, transparent 54%, rgb(0 217 255 / 0.12) 54% 100%),
    repeating-linear-gradient(90deg, rgb(0 217 255 / 0.14) 0 1px, transparent 1px 10px);
}

.sidebar-update-card__spark::before {
  content: "";
  position: absolute;
  inset: 10px 4px 10px 0;
  border-top: 2px solid var(--neon-emerald);
  border-right: 2px solid var(--neon-cyan);
  transform: skewY(-18deg);
  filter: drop-shadow(0 0 8px rgb(18 230 176 / 0.45));
}

.sidebar-update-card__spark i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--neon-emerald);
  box-shadow: 0 0 10px rgb(18 230 176 / 0.62);
}

.sidebar-update-card__spark i:nth-child(1) {
  left: 0;
  bottom: 2px;
}

.sidebar-update-card__spark i:nth-child(2) {
  left: 18px;
  bottom: 18px;
}

.sidebar-update-card__spark i:nth-child(3) {
  left: 38px;
  bottom: 12px;
}

.sidebar-update-card__spark i:nth-child(4) {
  right: 20px;
  bottom: 28px;
}

.sidebar-update-card__spark i:nth-child(5) {
  right: 0;
  bottom: 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(244 252 249 / 0.92)),
    radial-gradient(circle at 82% 0%, rgb(0 217 255 / 0.14), transparent 220px);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.topbar p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.topbar-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar-status span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgb(0 217 255 / 0.22);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  color: #173f38;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
}

.topbar-status span:first-child {
  border-color: rgb(18 230 176 / 0.38);
  background: linear-gradient(135deg, rgb(18 230 176 / 0.16), rgb(0 217 255 / 0.08));
  color: #075a48;
}

.topbar-inline-notice {
  display: inline;
  color: var(--muted);
}

.source-link,
.year-tabs button,
.table-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgb(9 58 50 / 0.14);
  background: rgb(255 255 255 / 0.82);
  color: var(--text);
  min-height: 40px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(5 24 20 / 0.05);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.source-link {
  padding: 0 14px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}

.table-source-link {
  min-height: 36px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.table-source-link:not([href]) {
  cursor: default;
}

.source-link:hover,
.year-tabs button:hover,
.table-tabs button:hover {
  border-color: rgb(0 217 255 / 0.42);
  background: #f8fffc;
  box-shadow: 0 10px 26px rgb(0 217 255 / 0.1);
}

.source-link:active,
.year-tabs button:active,
.table-tabs button:active {
  transform: translateY(1px);
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-band {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.year-tabs,
.table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estimator-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(138px, 1fr)) minmax(220px, auto) minmax(104px, auto);
  align-items: end;
  gap: 10px;
  width: 100%;
}

.volunteer-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(126px, 1fr));
  gap: 10px;
  width: 100%;
}

.rules-controls {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(120px, 160px);
  gap: 10px;
  width: 100%;
}

.estimator-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.estimator-field input,
.estimator-field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.9);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
  outline: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
}

.estimator-field input:focus,
.estimator-field select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgb(0 217 255 / 0.14);
}

.estimator-acknowledgment {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  min-height: 40px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.estimator-acknowledgment input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.estimator-predict-button {
  align-self: end;
  min-height: 40px;
}

.volunteer-checkbox-field {
  align-content: start;
}

.volunteer-checkbox-field input {
  position: relative;
  width: 48px;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.volunteer-checkbox-field input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #bcc9c1;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.volunteer-checkbox-field input:checked {
  border-color: var(--neon-emerald);
  background: rgb(18 230 176 / 0.14);
}

.volunteer-checkbox-field input:checked::before {
  background: var(--neon-emerald);
  transform: translateX(20px);
}

.year-tabs button {
  width: 72px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 750;
}

.year-tabs button[data-dataset-id] {
  width: auto;
  min-width: 128px;
  padding: 0 14px;
}

.year-tabs button[aria-selected="true"],
.table-tabs button[aria-selected="true"] {
  border-color: rgb(18 230 176 / 0.55);
  background: linear-gradient(135deg, #0aa87d, #00a6ca);
  color: #fff;
  box-shadow: 0 14px 30px rgb(0 166 202 / 0.2);
}

.table-tabs {
  margin-bottom: 10px;
}

.table-tabs button {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.tier-year-header {
  display: grid;
  gap: 4px;
  justify-items: center;
  line-height: 1.2;
}

.tier-year-header__year {
  font-weight: 800;
}

.tier-year-header__cutoff {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.section-select {
  min-height: 40px;
  min-width: 180px;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
}

.gaokao-filter-button {
  min-height: 36px;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.gaokao-filter-button:hover {
  border-color: rgb(0 217 255 / 0.38);
  background: #f7fffc;
}

.gaokao-filter-button[aria-selected="true"] {
  border-color: rgb(18 230 176 / 0.55);
  background: linear-gradient(135deg, #0aa87d, #00a6ca);
  color: #fff;
}

.table-panel {
  overflow: hidden;
  border: 1px solid rgb(0 217 255 / 0.18);
  border-radius: var(--radius);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.table-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid rgb(0 217 255 / 0.12);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.98) 0%, rgb(242 252 249 / 0.96) 100%),
    radial-gradient(circle at 100% 0%, rgb(0 217 255 / 0.12), transparent 210px);
}

.table-panel.is-student-score-panel .table-panel__head {
  display: none;
}

.table-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 180px;
}

.table-notice-slot {
  flex: 0 0 auto;
  padding: 7px 20px;
  border-bottom: 1px solid rgb(0 217 255 / 0.1);
  background: #f8fffc;
}

.table-notice-slot:empty {
  display: none;
}

.rank-recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  width: min(720px, 52vw);
}

.rank-recommendations--empty {
  display: flex;
  align-items: center;
  width: min(420px, 42vw);
  min-height: 54px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfdfb;
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.recommendation-block {
  min-width: 0;
  border: 1px solid rgb(9 58 50 / 0.14);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
}

.recommendation-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.25;
}

.recommendation-block p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 760;
}

.table-panel__head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
}

.table-wrap.is-fit-width {
  overflow-x: hidden;
}

.table-wrap.is-rank-prediction {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: var(--table-min-width, 100%);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.rank-prediction-table {
  min-width: 980px;
}

.table-wrap.is-student-score-view {
  overflow-x: hidden;
  background: transparent;
}

.student-score-table {
  min-width: 100%;
  border-spacing: 0;
}

.student-score-table > tbody > tr > td.student-score-cell {
  border: 0;
  background: transparent;
  padding: 0;
  white-space: normal;
}

.student-score-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.student-score-toolbar,
.student-score-panel {
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.88);
  box-shadow: var(--shadow-soft);
}

.student-score-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 0.8fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.student-score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.student-score-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.student-score-status.is-error {
  color: #a43c2e;
  font-weight: 760;
}

.student-score-main-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.student-score-panel {
  min-width: 0;
  padding: 14px;
}

.student-score-panel h3,
.student-score-exam-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 780;
}

.student-score-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.student-score-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.student-score-form-grid,
.student-score-exam-meta,
.student-score-chart-controls {
  display: grid;
  gap: 10px;
}

.student-score-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.student-score-exam-meta {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 12px 0;
}

.student-score-chart-controls {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.student-score-field,
.student-score-select-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.student-score-field input,
.student-score-field select,
.student-score-select-field select,
.student-score-inline-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
  outline: 0;
}

.student-score-field input:focus,
.student-score-field select:focus,
.student-score-select-field select:focus,
.student-score-inline-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgb(0 217 255 / 0.14);
}

.student-score-chart {
  display: grid;
  gap: 10px;
  min-height: 300px;
  margin-top: 12px;
}

.student-score-chart.is-empty {
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  min-height: 240px;
  padding: 24px;
}

.student-score-chart svg {
  width: 100%;
  height: 300px;
}

.student-score-chart text {
  fill: var(--muted);
  stroke: none;
  font-size: 11px;
  font-weight: 650;
}

.student-score-grid-line {
  stroke: #dcece8;
  stroke-width: 1;
}

.student-score-axis {
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.student-score-series path {
  fill: none;
  stroke: var(--series-color);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-score-series circle {
  fill: var(--surface);
  stroke: var(--series-color);
  stroke-width: 2.4;
}

.student-score-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.student-score-chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.student-score-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.student-score-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.student-score-insight-card,
.student-score-subject-card {
  border: 1px solid rgb(0 217 255 / 0.12);
  border-radius: var(--radius);
  background: #f8fffc;
  padding: 10px;
}

.student-score-insight-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.student-score-insight-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.student-score-insight-card p,
.student-score-subject-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.student-score-subject-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.student-score-subject-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.student-score-badge {
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.student-score-badge.is-good,
.student-score-badge.is-stable {
  background: rgb(18 230 176 / 0.13);
  color: #087d62;
}

.student-score-badge.is-warning {
  background: #fff3df;
  color: var(--warning);
}

.student-score-badge.is-danger {
  background: #fff0ed;
  color: #a43c2e;
}

.student-score-badge.is-muted {
  background: #eef2f0;
  color: var(--muted);
}

.student-score-matrix-wrap {
  overflow-x: auto;
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background: var(--surface);
}

.student-score-matrix-table,
.student-score-detail-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--surface);
}

.student-score-detail-table {
  min-width: 100%;
}

.student-score-matrix-table th,
.student-score-matrix-table td,
.student-score-detail-table th,
.student-score-detail-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
}

.student-score-matrix-table th,
.student-score-detail-table th {
  position: static;
  background: #ecf7f4;
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}

.student-score-matrix-table td,
.student-score-detail-table td {
  color: var(--text);
  font-size: 12.5px;
}

.student-score-stage-cell {
  width: 112px;
  color: var(--text);
  font-weight: 820;
}

.student-score-filter-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.student-score-filter-head span {
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
}

.student-score-stage-filter,
.student-score-detail-filter {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  color: var(--text);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 760;
  outline: 0;
}

.student-score-detail-filter-row th {
  background: #f7fbf8;
  padding-top: 6px;
  padding-bottom: 6px;
}

.student-score-subject-head {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.student-score-subject-head strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.student-score-subject-head label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.student-score-subject-head input,
.student-score-size-input,
.student-score-score-input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  color: var(--text);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  outline: 0;
}

.student-score-subject-head input {
  max-width: 68px;
}

.student-score-score-cell {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.student-score-rate {
  min-width: 42px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  text-align: right;
  white-space: nowrap;
}

.student-score-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.middle-school-progress-table {
  min-width: 1480px;
}

.high-school-gaokao-table {
  min-width: 1080px;
}

.official-sites-table {
  min-width: 1040px;
}

table.is-quota-allocation-table {
  min-width: 100%;
  font-size: 11px;
}

table.is-quota-allocation-table th,
table.is-quota-allocation-table td {
  padding: 5px 2px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

table.is-quota-allocation-table th.school-col,
table.is-quota-allocation-table td.school-col {
  width: 24%;
}

table.is-quota-allocation-table th:nth-child(1),
table.is-quota-allocation-table td:nth-child(1) {
  width: 3%;
}

table.is-quota-allocation-table th:nth-child(2),
table.is-quota-allocation-table td:nth-child(2) {
  width: 5%;
}

table.is-quota-allocation-table th:nth-child(4),
table.is-quota-allocation-table th:nth-child(5),
table.is-quota-allocation-table th:nth-child(6),
table.is-quota-allocation-table td:nth-child(4),
table.is-quota-allocation-table td:nth-child(5),
table.is-quota-allocation-table td:nth-child(6) {
  width: 4%;
}

th,
td {
  min-width: 0;
  max-width: none;
  border-right: 1px solid #e2eeeb;
  border-bottom: 1px solid #e2eeeb;
  padding: 7px 6px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.35;
  background: #fff;
  overflow-wrap: break-word;
  word-break: normal;
}

th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ecf7f4;
  color: #10231f;
  font-weight: 760;
}

thead tr:nth-child(2) th {
  top: var(--first-header-row-height, 36px);
  background: #f8fffc;
  font-size: 12px;
}

thead tr:nth-child(2) th.public-score-head {
  width: 4.8%;
  min-width: 0;
  max-width: none;
  padding: 6px 5px;
  line-height: 1.2;
  white-space: normal;
}

.public-score-head .header-line {
  display: block;
}

th.controlled-col {
  min-width: 0;
  padding: 6px 8px;
}

th.school-col,
td.school-col,
th.sticky-col-2 {
  width: 18%;
  min-width: 0;
  max-width: none;
}

th.school-profile-summary-col,
td.school-profile-summary-col {
  width: 46%;
}

table.is-school-profile-table {
  min-width: 100%;
}

table.is-school-profile-table th,
table.is-school-profile-table td {
  padding-left: 8px;
  padding-right: 8px;
}

table.is-school-profile-table th:nth-child(1),
table.is-school-profile-table td:nth-child(1) {
  width: 48px;
  max-width: 48px;
}

table.is-school-profile-table th.school-col,
table.is-school-profile-table td.school-col {
  width: 300px;
}

table.is-school-profile-table th:nth-child(3),
table.is-school-profile-table td:nth-child(3) {
  width: 164px;
}

table.is-school-profile-table th.school-profile-summary-col,
table.is-school-profile-table td.school-profile-summary-col {
  width: auto;
}

td.school-profile-summary-col {
  text-align: left;
  vertical-align: top;
  white-space: normal;
  line-height: 1.65;
  padding-top: 0;
  padding-bottom: 0;
}

.school-profile-summary {
  display: grid;
}

.school-profile-summary__section {
  display: grid;
  grid-template-columns: minmax(150px, 18%) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 4px;
  border-bottom: 1px solid #d7e8e3;
}

.school-profile-summary__section:last-child {
  border-bottom: 0;
}

.school-profile-summary__title {
  color: #073f36;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.school-profile-summary__content {
  min-width: 0;
  color: #243f3a;
}

.high-school-gaokao-table th,
.high-school-gaokao-table td {
  vertical-align: top;
  line-height: 1.45;
}

.high-school-gaokao-table .gaokao-seq-col {
  width: 44px;
}

.high-school-gaokao-table .gaokao-school-col {
  width: 210px;
}

.high-school-gaokao-table .gaokao-type-col {
  width: 86px;
}

.high-school-gaokao-table .gaokao-score-col {
  width: 132px;
}

.high-school-gaokao-table .gaokao-rate-col {
  width: 118px;
}

.high-school-gaokao-table .gaokao-signal-col {
  width: 180px;
  text-align: left;
}

.high-school-gaokao-table .gaokao-summary-col {
  width: 300px;
  text-align: left;
}

.official-sites-table th,
.official-sites-table td {
  vertical-align: top;
  line-height: 1.45;
}

.official-sites-table .official-site-seq-col {
  width: 50px;
}

.official-sites-table .official-site-school-col {
  width: 260px;
  text-align: left;
}

.official-sites-table .official-site-category-col {
  width: 128px;
}

.official-sites-table .official-site-link-col {
  width: 220px;
  text-align: left;
}

.official-sites-table .official-site-note-col {
  width: 300px;
  text-align: left;
}

.official-site-link {
  color: var(--accent-2);
  font-weight: 780;
  text-decoration: none;
}

.official-site-link:hover {
  text-decoration: underline;
}

.official-site-missing {
  color: var(--muted);
  font-weight: 760;
}

.official-site-note {
  color: #526258;
}

.official-site-subsets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.score-explainer-table {
  min-width: 100%;
  table-layout: auto;
}

.score-explainer-table th,
.score-explainer-table td {
  border-right: 0;
  text-align: left;
}

.score-explainer-cell {
  padding: 0;
  background: transparent;
  vertical-align: top;
}

.score-explainer-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f7fcfb;
}

.score-explainer-section {
  border: 1px solid #d6ebe5;
  border-radius: 8px;
  background: #fff;
}

.score-explainer-section__head h3 {
  margin: 0;
  color: #10231f;
  font-size: 20px;
  line-height: 1.3;
}

.score-explainer-section__head p,
.score-explainer-card p,
.score-explainer-card li {
  margin: 0;
  color: #526258;
  font-size: 14px;
  line-height: 1.7;
}

.score-explainer-card__groups {
  display: grid;
  gap: 12px;
}

.score-explainer-group {
  display: grid;
  gap: 7px;
  border-top: 1px solid #e6f2ef;
  padding-top: 10px;
}

.score-explainer-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.score-explainer-group h5 {
  margin: 0;
  color: #0f6f60;
  font-size: 14px;
  line-height: 1.35;
}

.score-explainer-card__head span {
  border: 1px solid rgb(18 230 176 / 0.32);
  border-radius: 999px;
  background: rgb(18 230 176 / 0.1);
  color: #08715d;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.score-explainer-section {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.score-explainer-section__head {
  display: grid;
  gap: 6px;
}

.score-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-explainer-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #e0efeb;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%),
    radial-gradient(circle at 100% 0%, rgb(0 217 255 / 0.08), transparent 180px);
  padding: 14px;
}

.score-explainer-card__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.score-explainer-card h4 {
  margin: 0;
  color: #10231f;
  font-size: 17px;
  line-height: 1.35;
}

.score-explainer-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.score-explainer-card li::marker {
  color: #0fb89f;
}

.related-data-table {
  min-width: 100%;
}

.related-data-table th,
.related-data-table td {
  border-right: 0;
  text-align: left;
}

.related-data-cell {
  padding: 0;
  background: transparent;
}

.related-data-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #f7fcfb;
}

.related-data-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-data-summary-card,
.related-data-section {
  border: 1px solid #d6ebe5;
  border-radius: 8px;
  background: #fff;
}

.related-data-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.related-data-summary-card span {
  color: #60736b;
  font-size: 12px;
  font-weight: 760;
}

.related-data-summary-card strong {
  color: #0d4036;
  font-size: 24px;
  line-height: 1.1;
}

.related-data-summary-card p,
.related-data-section__head p {
  margin: 0;
  color: #526258;
  line-height: 1.55;
}

.related-data-section {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.related-data-section__head {
  display: grid;
  gap: 5px;
}

.related-data-section__head h3 {
  margin: 0;
  color: #10231f;
  font-size: 18px;
  line-height: 1.25;
}

.related-data-gradient-chart {
  overflow: hidden;
  border: 1px solid #d6ebe5;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fffd 0%, #edf8f4 100%);
}

.related-data-gradient-chart svg {
  display: block;
  width: 100%;
  height: 180px;
}

.related-data-chart-axis {
  fill: none;
  stroke: #9fc9bd;
  stroke-width: 2;
}

.related-data-chart-line {
  fill: none;
  stroke: #0fb89f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.related-data-chart-dot {
  fill: #ffffff;
  stroke: #008f7d;
  stroke-width: 3;
}

.related-data-gradient-chart text {
  fill: #24433c;
  font-size: 13px;
  font-weight: 780;
}

.related-data-mini-table,
.related-data-district-table {
  display: grid;
  gap: 6px;
}

.related-data-gradient-row,
.related-data-candidate-row,
.related-data-district-row {
  display: grid;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0efeb;
  border-radius: 6px;
  background: #fbfefd;
  color: #10231f;
  font-size: 13px;
  font-weight: 700;
}

.related-data-gradient-row {
  grid-template-columns: 62px 94px 92px repeat(5, minmax(70px, 1fr)) 94px;
}

.related-data-candidate-row {
  grid-template-columns: 96px 150px minmax(280px, 1fr);
}

.related-data-district-row {
  grid-template-columns: 120px 120px minmax(0, 1fr);
}

.related-data-gradient-row span,
.related-data-candidate-row span,
.related-data-district-row span,
.related-data-source-link {
  padding: 9px 10px;
}

.related-data-gradient-row span {
  white-space: nowrap;
}

.related-data-source-link {
  color: #0575a8;
  font-weight: 780;
  text-decoration: none;
}

.related-data-source-link:hover {
  text-decoration: underline;
}

.exam-timeline-table {
  min-width: 100%;
}

.exam-timeline-table th,
.exam-timeline-table td {
  border-right: 0;
  text-align: left;
}

.exam-timeline-cell {
  padding: 0;
  background: transparent;
}

.exam-timeline-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgb(0 217 255 / 0.12), transparent 230px),
    linear-gradient(180deg, #f7fcfb 0%, #f2faf7 100%);
}

.exam-timeline-intro,
.exam-timeline-summary-card,
.exam-timeline-card,
.exam-timeline-sources {
  border: 1px solid #d6ebe5;
  border-radius: 8px;
  background: #fff;
}

.exam-timeline-intro {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.exam-timeline-intro span,
.exam-timeline-summary-card span {
  color: #0878b8;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.exam-timeline-intro h3,
.exam-timeline-sources h3 {
  margin: 0;
  color: #10231f;
  font-size: 20px;
  line-height: 1.25;
}

.exam-timeline-intro p,
.exam-timeline-summary-card p,
.exam-timeline-summary,
.exam-timeline-source-card span {
  margin: 0;
  color: #526258;
  line-height: 1.58;
}

.exam-timeline-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.exam-timeline-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.exam-timeline-summary-card strong {
  color: #0d4036;
  font-size: 22px;
  line-height: 1.1;
}

.exam-timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.exam-timeline-item::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -14px;
  left: 26px;
  width: 2px;
  background: #c5e5dc;
}

.exam-timeline-item:last-child::before {
  display: none;
}

.exam-timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid #b6e3d7;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8fbf5, #ffffff);
  color: #087b68;
  font-family: Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 820;
  box-shadow: 0 10px 20px rgb(8 167 125 / 0.12);
}

.exam-timeline-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.exam-timeline-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: flex-start;
}

.exam-timeline-tag,
.exam-timeline-source-chip {
  border: 1px solid #cfe8e1;
  border-radius: 999px;
  background: #f2fbf8;
  color: #087b68;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 780;
}

.exam-timeline-card__head strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #cce8f4;
  border-radius: 999px;
  background: #eef9fd;
  color: #0878b8;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
}

.exam-timeline-card h4 {
  margin: 0;
  color: #10231f;
  font-size: 18px;
  line-height: 1.3;
}

.exam-timeline-tasks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #18332e;
  line-height: 1.55;
}

.exam-timeline-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-timeline-source-chip {
  text-decoration: none;
}

.exam-timeline-source-chip:hover,
.exam-timeline-source-card:hover {
  border-color: #7bcfbd;
  color: #045b4f;
}

.exam-timeline-sources {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.exam-timeline-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.exam-timeline-source-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  border: 1px solid #e0efeb;
  border-radius: 8px;
  background: #fbfefd;
  padding: 12px;
  text-decoration: none;
}

.exam-timeline-source-card strong {
  color: #0d4036;
  font-size: 14px;
}

th.range-col {
  width: 6%;
  min-width: 0;
  max-width: none;
}

.column-control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.column-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.header-search,
.header-select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgb(9 58 50 / 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: 0;
  font-size: 12px;
  padding: 0 8px;
}

.header-select {
  cursor: pointer;
}

.header-search:focus,
.header-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgb(0 217 255 / 0.14);
}

td.sticky-col-1,
th.sticky-col-1 {
  position: sticky;
  left: 0;
  z-index: 2;
}

td.sticky-col-2,
th.sticky-col-2 {
  position: sticky;
  left: 42px;
  z-index: 2;
  text-align: left;
}

th.sticky-col-1,
th.sticky-col-2 {
  z-index: 5;
}

td.sticky-col-1,
th.sticky-col-1 {
  width: 42px;
  min-width: 0;
  max-width: 42px;
}

tbody tr:hover td {
  background: #f6fffb;
}

tbody tr.is-hidden {
  display: none;
}

.score-cell {
  color: #111b12;
  font-weight: 780;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
}

.risk-badge--safe {
  background: #dff1e7;
  color: #176642;
}

.risk-badge--borderline {
  background: #e5eefb;
  color: #235b9b;
}

.risk-badge--reach {
  background: #fff2d9;
  color: #8a570e;
}

.risk-badge--high-risk {
  background: #fde7e2;
  color: #a13b28;
}

.risk-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 5px;
  width: 100%;
  min-width: 0;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  padding-left: 9px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
}

.risk-notice__text {
  color: var(--muted);
  white-space: pre-line;
}

.risk-notice--key-classes,
.risk-notice--middle-school-progress,
.risk-notice--high-school-gaokao {
  align-items: baseline;
}

.risk-notice--middle-school-progress .risk-notice__text,
.risk-notice--high-school-gaokao .risk-notice__text {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}

.risk-notice--key-classes .risk-notice__text {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}

.risk-notice__link {
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}

.risk-notice__link:hover {
  text-decoration: underline;
}

.volunteer-cell {
  padding: 0;
  text-align: left;
  background: var(--surface);
}

.rules-cell {
  padding: 0;
  text-align: left;
  background: #f7fffc;
}

.rules-workspace {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.rules-flow-scene {
  display: grid;
  gap: 14px;
  border: 1px solid rgb(0 217 255 / 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0%, rgb(0 217 255 / 0.16), transparent 260px),
    linear-gradient(135deg, #ffffff 0%, #f8fffc 54%, #eef9fb 100%);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.rules-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rules-flow-head h3,
.rules-stage-panel h4 {
  margin: 0;
  color: #142118;
  line-height: 1.35;
}

.rules-flow-head h3 {
  font-size: 19px;
}

.rules-flow-head p,
.rules-current-step p,
.rules-conveyor p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rules-playback {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rules-current-step {
  display: grid;
  gap: 2px;
  border: 1px solid rgb(18 230 176 / 0.3);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgb(23 32 24 / 0.06);
}

.rules-current-step strong {
  color: #078666;
  font-size: 18px;
  line-height: 1.35;
}

.rules-current-step.is-blocked {
  border-color: #efb7aa;
  background: #fff8f6;
}

.rules-current-step.is-blocked strong {
  color: #a13b28;
}

.rules-stage {
  display: grid;
  grid-template-columns: minmax(430px, 1.35fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.rules-stage-panel {
  min-width: 0;
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.86);
  padding: 14px;
}

.rules-stage-panel h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.rules-scan-matrix {
  overflow-x: auto;
}

.rules-matrix {
  display: grid;
  gap: 6px;
  min-width: 410px;
}

.rules-matrix-head,
.rules-matrix-ladder,
.rules-scan-cell {
  min-height: 42px;
  border-radius: var(--radius);
}

.rules-matrix-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecf7f4;
  color: #52615a;
  font-size: 11px;
  font-weight: 800;
}

.rules-matrix-ladder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: #334038;
  font-size: 11px;
}

.rules-matrix-ladder.is-active {
  border-color: var(--neon-emerald);
  background: rgb(18 230 176 / 0.13);
  color: #087d62;
}

.rules-scan-cell {
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #d9e2dc;
  background: #fff;
  color: #52615a;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rules-scan-cell strong {
  font-size: 14px;
  line-height: 1;
}

.rules-scan-cell span {
  font-size: 10px;
  line-height: 1.2;
}

.rules-scan-cell.is-scanned {
  border-color: rgb(18 230 176 / 0.36);
  background: #effdf8;
  color: #087d62;
}

.rules-scan-cell.is-active {
  border-color: var(--neon-emerald);
  background: linear-gradient(135deg, #0aa87d, #00a6ca);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(0 166 202 / 0.2);
}

.rules-scan-cell.is-complete {
  border-color: #b66a37;
  background: #d99b2b;
}

.rules-scan-cell.is-skipped {
  border-style: dashed;
  background: #f4f5f4;
  color: #9aa49d;
}

.rules-scan-matrix > p,
.rules-school-scanner > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.rules-scanner-beam {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid #cddbd2;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fcfa, #eef5fb);
  padding: 18px;
}

.rules-scanner-beam i {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgb(31 122 77 / 0.08) 38%, rgb(31 122 77 / 0.28) 50%, rgb(40 102 168 / 0.08) 62%, transparent 100%);
  transform: translateX(-62%);
}

.rules-flow-scene.is-playing .rules-scanner-beam i {
  animation: rules-scan-sweep 1500ms ease-in-out infinite;
}

.rules-scanner-beam.is-complete i {
  background: linear-gradient(100deg, transparent 0%, rgb(217 155 43 / 0.1) 38%, rgb(217 155 43 / 0.34) 50%, transparent 100%);
}

.rules-scanner-beam strong,
.rules-scanner-beam span {
  position: relative;
  z-index: 1;
}

.rules-scanner-beam strong {
  color: #152119;
  font-size: 20px;
}

.rules-scanner-beam span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.rules-scan-target {
  color: #c33a2c;
  font-style: normal;
}

.rules-scanner-beam.is-complete span {
  color: #a45f17;
}

.rules-scan-order {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rules-scan-order li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 10px;
  color: #52615a;
  font-size: 12px;
  line-height: 1.4;
}

.rules-scan-order li.is-active {
  border-color: #2866a8;
  background: #f3f7fd;
  color: #1d4e83;
  font-weight: 800;
}

.rules-queue {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rules-queue-lane {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  padding: 9px;
}

.rules-queue-lane > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.rules-queue-lane.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.rules-queue-lane.is-current-candidate > span {
  color: var(--accent);
}

.rules-candidate-dots {
  display: flex;
  gap: 5px;
}

.rules-candidate-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7c4b6;
}

.rules-queue-lane.is-active .rules-candidate-dots i {
  background: var(--accent);
  animation: rules-dot-pulse 1100ms ease-in-out infinite;
}

.rules-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(54px, 1fr));
  gap: 8px;
  align-items: stretch;
  min-height: 190px;
  padding: 58px 8px 8px;
  overflow: hidden;
}

.rules-track::before {
  content: "";
  position: absolute;
  top: 86px;
  left: 8%;
  width: 84%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #2866a8, #d99b2b);
  opacity: 0.35;
}

.rules-moving-token {
  position: absolute;
  top: 67px;
  left: 6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgb(31 122 77 / 0.28);
}

.rules-moving-token.is-blocked {
  background: #b84c3c;
  box-shadow: 0 10px 24px rgb(184 76 60 / 0.24);
}

.rules-flow-scene.is-playing .rules-moving-token {
  animation: rules-token-move 2100ms ease-in-out infinite;
}

.rules-slot-node {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 6px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 6px;
}

.rules-slot-node strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9f2ed;
  color: var(--accent);
  font-size: 15px;
}

.rules-slot-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rules-slot-node.is-active {
  border-color: #2866a8;
  background: #f3f7fd;
  box-shadow: inset 0 0 0 1px rgb(40 102 168 / 0.12);
}

.rules-slot-node.is-active strong {
  background: #2866a8;
  color: #fff;
}

@keyframes rules-token-move {
  0% {
    transform: translateX(0) scale(0.95);
  }
  50% {
    transform: translateX(42vw) scale(1);
  }
  100% {
    transform: translateX(0) scale(0.95);
  }
}

@keyframes rules-scan-sweep {
  0% {
    transform: translateX(-62%);
  }
  55% {
    transform: translateX(48%);
  }
  100% {
    transform: translateX(88%);
  }
}

@keyframes rules-dot-pulse {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.rules-hero,
.rules-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rules-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  background:
    linear-gradient(135deg, #f5fbf7 0%, #ffffff 52%, #f7fbff 100%);
}

.rules-hero h3,
.rules-section h3 {
  margin: 0;
  color: #142118;
  font-size: 18px;
  line-height: 1.35;
}

.rules-hero p,
.rules-section p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.rules-score-meter {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 150px;
  border: 1px solid rgb(18 230 176 / 0.28);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgb(23 32 24 / 0.08);
  text-align: center;
}

.rules-score-meter strong {
  color: #078666;
  font-size: 46px;
  line-height: 1;
}

.rules-score-meter span {
  margin-top: 8px;
  color: #142118;
  font-size: 16px;
  font-weight: 800;
}

.rules-score-meter p {
  margin-top: 6px;
  font-size: 12px;
}

.rules-section {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.rules-ladder {
  display: grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  gap: 8px;
}

.rules-ladder__item {
  display: grid;
  gap: 8px;
  min-height: 78px;
  align-content: center;
  border: 1px solid rgb(0 217 255 / 0.12);
  border-radius: var(--radius);
  background: #fbfdfb;
  padding: 10px;
}

.rules-ladder__item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rules-ladder__item strong {
  color: #162119;
  font-size: 19px;
  line-height: 1;
}

.rules-ladder__item.is-current {
  border-color: var(--neon-emerald);
  background: rgb(18 230 176 / 0.13);
  box-shadow: inset 0 0 0 1px rgb(18 230 176 / 0.18);
}

.rules-ladder__item.is-current strong,
.rules-ladder__item.is-current span {
  color: #078666;
}

.rules-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 142px;
  border: 1px solid rgb(0 217 255 / 0.12);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.rules-timeline li.is-active {
  border-color: rgb(0 217 255 / 0.34);
  background: #f2fbff;
}

.rules-timeline__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0aa87d, #00a6ca);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.rules-timeline strong,
.rules-card-grid strong {
  color: #152119;
  font-size: 14px;
  line-height: 1.35;
}

.rules-timeline p {
  font-size: 12.5px;
  line-height: 1.55;
}

.rules-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.rules-card-grid article {
  display: grid;
  align-content: start;
  min-height: 118px;
  border: 1px solid rgb(0 217 255 / 0.12);
  border-radius: var(--radius);
  background: #fbfdfb;
  padding: 12px;
}

.rules-card-grid p {
  font-size: 12.5px;
}

.rules-cautions {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.6;
}

.rules-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rules-source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgb(0 217 255 / 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: #0878b8;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.rules-source-list a:hover {
  border-color: rgb(0 217 255 / 0.34);
  background: #f7fffc;
}

.volunteer-simulator {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1.64fr);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.volunteer-panel {
  min-width: 0;
  border: 1px solid rgb(0 217 255 / 0.16);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.volunteer-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(0 217 255 / 0.12);
  background:
    linear-gradient(135deg, #ffffff, #f3fffb),
    radial-gradient(circle at 100% 0%, rgb(0 217 255 / 0.1), transparent 180px);
}

.volunteer-panel__head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.volunteer-panel__head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.primary-action,
.secondary-action {
  min-height: 36px;
  border: 1px solid rgb(18 230 176 / 0.48);
  border-radius: var(--radius);
  padding: 0 14px;
  background: linear-gradient(135deg, #0aa87d, #00a6ca);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.secondary-action {
  border-color: rgb(0 217 255 / 0.18);
  background: #fff;
  color: #0878b8;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.volunteer-summary-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.volunteer-summary-metric {
  display: grid;
  gap: 4px;
  border: 1px solid rgb(0 217 255 / 0.12);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f8fffc;
}

.volunteer-summary-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.volunteer-summary-metric strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.volunteer-method-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 16px 16px 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.volunteer-choice-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(18 230 176 / 0.13);
  color: #078666;
  font-size: 14px;
  font-weight: 800;
}

.volunteer-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.volunteer-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px;
}

.volunteer-plan-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgb(5 24 20 / 0.06);
  overflow: hidden;
}

.volunteer-plan-card--safe {
  border-top: 4px solid #12b886;
}

.volunteer-plan-card--steady {
  border-top: 4px solid #00a6ca;
}

.volunteer-plan-card--rush {
  border-top: 4px solid #b87616;
}

.volunteer-plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 0;
}

.volunteer-plan-card h4,
.volunteer-plan-item h5 {
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

.volunteer-plan-card h4 {
  font-size: 15px;
}

.volunteer-plan-item h5 {
  font-size: 14px;
}

.volunteer-plan-verdict {
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.volunteer-plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}

.volunteer-plan-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid rgb(0 217 255 / 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fffc;
}

.volunteer-plan-item--rush {
  background: #fffaf0;
}

.volunteer-plan-item--steady {
  background: #f7fbff;
}

.volunteer-plan-item--safe {
  background: #f7fcf9;
}

.volunteer-plan-item__body {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.volunteer-plan-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.volunteer-plan-reason {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.volunteer-plan-candidate-list {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.volunteer-plan-candidate-list__summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.volunteer-plan-candidate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 168px;
  overflow: auto;
  padding-right: 2px;
}

.volunteer-plan-candidate {
  display: inline-grid;
  max-width: 100%;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.volunteer-plan-candidate span,
.volunteer-plan-candidate small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volunteer-plan-candidate span {
  font-size: 12px;
  font-weight: 800;
}

.volunteer-plan-candidate small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.volunteer-plan-candidate:hover,
.volunteer-plan-candidate[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.volunteer-plan-candidate[aria-pressed="true"] small {
  color: var(--accent);
}

.volunteer-result-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.volunteer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.volunteer-badge--safe {
  background: #dff1e7;
  color: #176642;
}

.volunteer-badge--steady {
  background: #e5eefb;
  color: #235b9b;
}

.volunteer-badge--rush {
  background: #fff2d9;
  color: #8a570e;
}

.volunteer-badge--high-risk,
.volunteer-badge--out,
.volunteer-badge--invalid,
.volunteer-badge--unknown {
  background: #fde7e2;
  color: #a13b28;
}

.volunteer-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.volunteer-history span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: #fafcfb;
  font-size: 11px;
  font-weight: 700;
}

.volunteer-warnings {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--warning);
  font-size: 12px;
  line-height: 1.5;
}

.official-image-cell {
  padding: 16px;
  background: #f8faf8;
}

.official-images {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.official-images figure {
  margin: 0;
}

.official-table-image {
  display: block;
  max-width: min(100%, 1180px);
  height: auto;
  border: 1px solid #d9e4dc;
  background: #fff;
}

.official-images figcaption {
  margin-top: 8px;
  color: #627166;
  font-size: 13px;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.table-wrap.is-feedback-view {
  overflow-x: hidden;
}

.table-wrap.is-legal-view {
  overflow-x: hidden;
}

.table-wrap.is-policy-qa-view {
  overflow-x: hidden;
}

.table-wrap.is-score-explainer-view {
  overflow-x: hidden;
}

.legal-page-table {
  min-width: 100%;
  table-layout: auto;
}

.legal-page-table td.legal-page-cell {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  vertical-align: top;
}

.legal-article {
  display: grid;
  gap: 16px;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 34px 24px 44px;
}

.legal-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.legal-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.legal-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.legal-action {
  justify-self: start;
  margin-top: 4px;
}

.legal-article--modal {
  width: 100%;
  margin: 0;
  padding: 0;
}

.legal-article--modal .legal-section {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 16px 0 0;
}

.legal-article--modal .legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-qa-table {
  min-width: 100%;
  table-layout: auto;
}

.policy-qa-table td.policy-qa-cell {
  border: 0;
  padding: 0;
  background: var(--surface);
  text-align: left;
  vertical-align: top;
}

.policy-qa-panel {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgb(0 217 255 / 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(244 252 249 / 0.94));
  box-shadow: 0 24px 70px rgb(5 24 20 / 0.1);
  overflow: hidden;
  padding: 28px 24px 30px;
}

.policy-qa-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 217 255 / 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgb(18 230 176 / 0.045) 1px, transparent 1px),
    radial-gradient(circle at 86% 18%, rgb(0 217 255 / 0.14), transparent 260px);
  background-size: 74px 74px, 74px 74px, auto;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.7), transparent 78%);
}

.policy-qa-intro {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding-right: 120px;
}

.policy-qa-intro h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 840;
}

.policy-qa-intro h3::after {
  content: "AI";
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgb(18 230 176 / 0.55);
  border-radius: 6px;
  background: rgb(18 230 176 / 0.12);
  color: #058060;
  padding: 0 8px;
  font-size: 13px;
  line-height: 1;
  font-weight: 860;
}

.policy-qa-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.policy-qa-workbench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 14px 16px;
  border-top: 1px solid rgb(0 217 255 / 0.12);
  padding-top: 20px;
}

.policy-qa-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.policy-qa-status span {
  border: 1px solid rgb(0 217 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  color: #1e544b;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.policy-qa-search {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  border: 1px solid rgb(0 217 255 / 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #071610, #0a1d1b),
    radial-gradient(circle at 94% 50%, rgb(0 217 255 / 0.22), transparent 180px);
  box-shadow: 0 18px 42px rgb(0 31 35 / 0.18), inset 0 0 0 1px rgb(18 230 176 / 0.08);
  padding: 12px;
}

.policy-qa-search::before {
  content: "AI";
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--neon-emerald);
  font-size: 12px;
  line-height: 1;
  font-weight: 880;
  letter-spacing: 0.08em;
}

.policy-qa-search input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgb(0 217 255 / 0.42);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
  color: #f4fffb;
  padding: 0 15px 0 48px;
  font-size: 16px;
  font-weight: 720;
  outline: 0;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.policy-qa-search input::placeholder {
  color: rgb(217 255 245 / 0.66);
}

.policy-qa-search input:hover {
  border-color: var(--neon-cyan);
}

.policy-qa-search input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgb(0 217 255 / 0.16),
    0 0 32px rgb(18 230 176 / 0.2);
}

.policy-qa-search button {
  min-width: 88px;
  min-height: 58px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--neon-emerald), #00a6ca);
  color: #03100d;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 880;
  cursor: pointer;
  box-shadow: 0 0 24px rgb(18 230 176 / 0.28);
}

.policy-qa-examples {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.policy-qa-examples span,
.policy-qa-source span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.policy-qa-examples button {
  min-height: 32px;
  border: 1px solid rgb(9 58 50 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.78);
  color: var(--text);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.policy-qa-examples button:hover {
  border-color: rgb(0 217 255 / 0.34);
  background: #f7fffc;
}

.policy-qa-source {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.policy-qa-source a,
.policy-qa-result__foot a {
  color: #0878b8;
  font-weight: 760;
  text-decoration: none;
}

.policy-qa-results {
  display: grid;
  gap: 12px;
  align-content: start;
}

.policy-qa-answer-slot {
  margin-bottom: 2px;
}

.policy-qa-answer {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(18 230 176 / 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 18%, rgb(18 230 176 / 0.18), transparent 220px),
    linear-gradient(135deg, #f8fffc, #ffffff);
  padding: 18px;
  box-shadow: 0 18px 40px rgb(5 24 20 / 0.08);
}

.policy-qa-answer__label {
  justify-self: start;
  border: 1px solid rgb(18 230 176 / 0.42);
  border-radius: 999px;
  background: rgb(18 230 176 / 0.12);
  color: #05785b;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.policy-qa-answer p {
  margin: 0;
  color: #14251f;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-line;
}

.policy-qa-answer__hint {
  color: var(--warning) !important;
  font-size: 13px !important;
}

.policy-qa-answer__analysis {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.policy-qa-answer__evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-qa-answer__evidence span {
  border: 1px solid rgb(0 217 255 / 0.16);
  border-radius: 999px;
  background: #fff;
  color: #36523f;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 720;
}

.policy-qa-summary,
.policy-qa-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.policy-qa-result {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(0 217 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.82);
  padding: 16px;
  box-shadow: 0 12px 28px rgb(5 24 20 / 0.06);
}

.policy-qa-result__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.policy-qa-result__head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 780;
}

.policy-qa-result__head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgb(0 217 255 / 0.1);
  color: #0878b8;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.policy-qa-result p {
  margin: 0;
  color: #3f4d43;
  font-size: 14px;
  line-height: 1.8;
}

.policy-qa-result__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.feedback-table {
  min-width: 100%;
  table-layout: auto;
}

.feedback-table td.feedback-cell {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  vertical-align: top;
}

.feedback-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  border: 1px solid rgb(0 217 255 / 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgb(0 217 255 / 0.12), transparent 220px),
    linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(246 253 250 / 0.94));
  box-shadow: var(--shadow);
  padding: 38px 24px 46px;
}

.feedback-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.feedback-intro h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 780;
}

.feedback-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feedback-label {
  color: #263228;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.feedback-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-type {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.feedback-type:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.feedback-type[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.feedback-field textarea,
.feedback-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(9 58 50 / 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.72);
}

.feedback-field textarea {
  min-height: 188px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.7;
}

.feedback-field input {
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.4;
}

.feedback-field textarea:focus,
.feedback-field input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgb(0 217 255 / 0.14);
}

.feedback-field textarea::placeholder,
.feedback-field input::placeholder {
  color: #8a948b;
}

.feedback-char-count {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  padding-top: 4px;
}

.feedback-status {
  flex: 1 1 auto;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feedback-status.is-pending {
  color: var(--accent-2);
}

.feedback-status.is-success {
  color: var(--accent);
}

.feedback-status.is-error {
  color: #9b3c25;
}

.feedback-submit {
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0aa87d, #00a6ca);
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 14px 30px rgb(0 166 202 / 0.2);
}

.feedback-submit:hover {
  background: linear-gradient(135deg, #07936d, #008fb0);
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.notes {
  display: grid;
  gap: 6px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgb(0 217 255 / 0.1);
  color: var(--muted);
  background: #f8fffc;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "topbar"
      "sidebar"
      "controls"
      "table-tabs"
      "table-panel"
      "footer";
    height: auto;
    overflow: visible;
    padding: 14px 14px 0;
  }

  .app-shell::before {
    inset: 0;
  }

  .app-shell.is-guide-view {
    grid-template-areas:
      "sidebar"
      "table-panel"
      "footer";
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .app-shell.is-tool-view {
    grid-template-areas:
      "sidebar"
      "workspace"
      "footer";
    grid-template-rows: auto auto auto;
  }

  .app-shell.is-tool-view .workspace {
    grid-template-rows: auto auto auto;
  }

  .workspace {
    display: contents;
  }

  .batch-nav {
    position: static;
    width: 100%;
  }

  .batch-sidebar {
    max-height: none;
    overflow-y: visible;
    padding: 12px;
    scrollbar-gutter: auto;
  }

  .sidebar-brand {
    min-height: 48px;
  }

  .batch-nav__items a,
  .batch-nav__items button {
    min-height: 34px;
    font-size: 13px;
  }

  .topbar,
  .control-band {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    display: grid;
  }

  .topbar-status {
    justify-content: flex-start;
  }

  .table-panel__head {
    display: grid;
  }

  .policy-qa-panel {
    padding: 22px 16px 26px;
  }

  .policy-qa-intro {
    padding-right: 0;
  }

  .policy-qa-workbench {
    grid-template-columns: 1fr;
  }

  .exam-timeline-summary-grid,
  .exam-timeline-source-grid {
    grid-template-columns: 1fr;
  }

  .exam-timeline-panel {
    padding: 14px;
  }

  .score-explainer-panel {
    padding: 14px;
  }

  .score-explainer-grid {
    grid-template-columns: 1fr;
  }

  .score-explainer-card__head {
    display: grid;
    justify-content: stretch;
  }

  .estimator-controls,
  .volunteer-controls,
  .rules-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimator-acknowledgment,
  .estimator-predict-button {
    align-self: stretch;
  }

  .volunteer-simulator {
    grid-template-columns: 1fr;
  }

  .volunteer-plan-grid {
    grid-template-columns: 1fr;
  }

  .rules-flow-head,
  .rules-stage {
    grid-template-columns: 1fr;
  }

  .rules-flow-head {
    display: grid;
  }

  .feedback-panel {
    padding: 28px 16px 36px;
  }

  .feedback-intro h3 {
    font-size: 24px;
  }

  .feedback-actions {
    display: grid;
    justify-items: stretch;
  }

  .feedback-submit {
    width: 100%;
  }

  .rules-playback {
    justify-content: flex-start;
  }

  .rules-hero,
  .rules-ladder,
  .rules-timeline,
  .rules-card-grid {
    grid-template-columns: 1fr;
  }

  .table-panel__actions {
    justify-content: stretch;
    min-width: 0;
  }

  .risk-notice {
    width: 100%;
  }

  .rank-recommendations {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .student-score-table {
    min-width: 100%;
  }

  .student-score-toolbar,
  .student-score-main-grid {
    grid-template-columns: 1fr;
  }

  .student-score-actions,
  .student-score-status {
    justify-content: flex-start;
    text-align: left;
  }

  .student-score-exam-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .official-site-subsets {
    justify-content: flex-start;
    width: 100%;
  }

  .table-panel__actions .section-select {
    width: 100%;
  }

  h1 {
    font-size: 23px;
  }

  .site-footer {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

}

@media (max-width: 560px) {
  .compliance-modal {
    padding: 14px;
  }

  .compliance-modal__panel {
    width: min(92vw, 520px);
    max-height: 88vh;
    padding: 20px 16px;
  }

  .compliance-modal__submit {
    justify-self: stretch;
    width: 100%;
  }

  .legal-doc-modal {
    padding: 14px;
  }

  .legal-doc-modal__panel {
    width: min(94vw, 760px);
    max-height: 88vh;
  }

  .legal-doc-modal__head {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 18px 16px 14px;
  }

  .legal-doc-modal__close {
    width: 36px;
    height: 36px;
  }

  .legal-doc-modal__body {
    padding: 18px 16px 22px;
  }

  .estimator-controls,
  .volunteer-controls,
  .rules-controls {
    grid-template-columns: 1fr;
  }

  .student-score-table {
    min-width: 100%;
  }

  .student-score-exam-meta,
  .student-score-chart-controls,
  .student-score-insight-grid {
    grid-template-columns: 1fr;
  }

  .student-score-panel-head,
  .student-score-exam-head {
    display: grid;
  }

  .student-score-panel-head p {
    text-align: left;
  }

  .volunteer-summary-body {
    grid-template-columns: 1fr;
  }

  .volunteer-panel__head {
    display: grid;
  }

  .volunteer-panel__head p {
    max-width: none;
    text-align: left;
  }

  .rules-workspace,
  .rules-flow-scene,
  .rules-stage-panel {
    padding: 12px;
  }

  .rules-track {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: 10px;
  }

  .rules-track::before,
  .rules-moving-token {
    display: none;
  }

  .rules-slot-node {
    min-height: 78px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    text-align: left;
  }

  .year-tabs button {
    width: calc((100% - 16px) / 3);
  }

  .year-tabs button[data-dataset-id] {
    width: 100%;
  }

  .source-link {
    width: 100%;
  }

  .policy-qa-search {
    grid-template-columns: 1fr;
  }

  .policy-qa-search button {
    width: 100%;
  }
}
