:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef4f3;
  --text: #1b2430;
  --muted: #687386;
  --line: #dce2ea;
  --teal: #167d7f;
  --teal-dark: #0f5f61;
  --blue: #2f6fed;
  --amber: #c67809;
  --coral: #d65045;
  --green: #2f8a4d;
  --shadow: 0 14px 38px rgba(27, 36, 48, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 390px;
  min-height: 100vh;
}

.app-shell.hide-detail-pane {
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-shell.hide-detail-pane .detail-pane {
  display: none;
}

.app-shell.is-locked {
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-shell.is-locked .detail-pane,
.app-shell.is-locked .view {
  display: none;
}

.app-shell.is-payment-locked .view {
  display: none;
}

.app-shell.is-locked .nav-tabs,
.app-shell.is-locked .quick-panel,
.app-shell.is-locked .shortlist-panel {
  opacity: 0.42;
  pointer-events: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: #102326;
  color: #f4faf9;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #f5c15c;
  color: #14292c;
  font-weight: 800;
  font-size: 24px;
}

.brand h1,
.brand p,
.section-heading h2,
.section-heading p,
.panel h2 {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.2;
}

.brand p {
  margin-top: 4px;
  color: #b3c7c8;
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.nav-tab {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e5e5;
  text-align: left;
}

.nav-tab.active,
.nav-tab:hover {
  background: #f4faf9;
  color: #102326;
}

.nav-tab.requires-payment::after {
  content: "开通";
  float: right;
  border-radius: 8px;
  background: rgba(245, 193, 92, 0.2);
  color: #f8e1ae;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 900;
}

.nav-tab.active.requires-payment::after,
.nav-tab.requires-payment:hover::after {
  background: #fff0ca;
  color: #8a5a00;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.panel h2 {
  font-size: 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ghost-button {
  min-height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7e5e5;
  padding: 0 9px;
  font-size: 12px;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sidebar-cta {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(245, 193, 92, 0.45);
  border-radius: 8px;
  background: rgba(245, 193, 92, 0.12);
  color: #f8e1ae;
  padding: 12px 14px;
  text-decoration: none;
}

.sidebar-cta span {
  color: #f4faf9;
  font-size: 13px;
}

.sidebar-cta strong {
  font-size: 16px;
}

.sidebar-cta:hover {
  background: rgba(245, 193, 92, 0.2);
}

.sidebar-cta.is-open {
  border-color: rgba(91, 189, 132, 0.4);
  background: rgba(91, 189, 132, 0.13);
  color: #dff5e8;
}

.sidebar-cta.is-open:hover {
  background: rgba(91, 189, 132, 0.2);
}

.sidebar-note {
  margin: 12px 0 0;
  color: #b3c7c8;
  font-size: 13px;
  line-height: 1.5;
}

.shortlist-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.shortlist-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.shortlist-summary:empty {
  display: none;
}

.shortlist-summary span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe0e0;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 800;
}

.shortlist-item {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 6px;
  align-items: stretch;
}

.shortlist-main,
.shortlist-remove {
  border-radius: 8px;
  color: #f4faf9;
}

.shortlist-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.shortlist-main strong,
.shortlist-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortlist-main span {
  color: #b3c7c8;
  font-size: 12px;
}

.shortlist-remove {
  background: rgba(214, 80, 69, 0.25);
  font-size: 17px;
}

.shortlist-main:hover,
.shortlist-remove:hover {
  background: rgba(255, 255, 255, 0.16);
}

.shortlist-workbench {
  display: grid;
  gap: 16px;
}

.shortlist-workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shortlist-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.shortlist-dashboard article,
.shortlist-gap-panel,
.shortlist-work-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shortlist-dashboard article {
  padding: 14px;
}

.shortlist-dashboard span,
.shortlist-work-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shortlist-dashboard strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.shortlist-gap-panel {
  padding: 14px 16px;
}

.shortlist-gap-panel strong {
  display: block;
  margin-bottom: 8px;
}

.shortlist-gap-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #465163;
}

.shortlist-work-list {
  display: grid;
  gap: 10px;
}

.shortlist-work-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.shortlist-work-item.is-dragging {
  opacity: 0.48;
}

.drag-handle {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 64px;
  border-radius: 8px;
  background: #eef2f7;
  color: #687386;
  font-size: 22px;
  cursor: grab;
}

.shortlist-work-main {
  min-width: 0;
}

.shortlist-work-main h3,
.shortlist-work-main p {
  margin: 0;
}

.shortlist-work-main p {
  color: var(--muted);
  margin-top: 4px;
}

.shortlist-work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shortlist-work-metrics span {
  border-radius: 8px;
  background: #f2f6f8;
  padding: 6px 8px;
}

.shortlist-work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.stat-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #cfe0e0;
  font-size: 13px;
}

.stat-row strong {
  color: #ffffff;
  font-size: 16px;
}

.workspace {
  min-width: 0;
  padding: 28px;
  overflow: auto;
}

.auth-gate {
  display: none;
  min-height: calc(100vh - 56px);
  align-items: center;
  justify-content: center;
}

.payment-gate {
  display: none;
  min-height: calc(100vh - 56px);
  align-items: center;
  justify-content: center;
}

.app-shell.is-locked .auth-gate {
  display: grid;
}

.app-shell.is-payment-locked .payment-gate {
  display: grid;
}

.auth-gate > div,
.payment-gate > div {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-gate h2,
.payment-gate h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.auth-gate p:last-child,
.payment-gate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.payment-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.payment-gate-actions a,
.payment-gate-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 900;
}

.payment-gate-actions a {
  background: var(--teal);
  color: #ffffff;
}

.payment-gate-actions button {
  background: #eaf0f3;
  color: var(--text);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 28px;
  line-height: 1.2;
}

.section-note {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill,
.tag,
.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  background: #e7f5ee;
  color: var(--green);
}

.mini-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.mini-status.is-online {
  background: #e7f5ee;
  color: var(--green);
}

.auth-panel {
  display: grid;
  gap: 10px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form input {
  min-height: 38px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-actions button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 800;
}

.auth-actions button[type="submit"] {
  border: 0;
  background: var(--teal);
  color: #fff;
}

.auth-message {
  min-height: 0;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.45;
}

.auth-message:empty {
  display: none;
}

.user-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.user-box strong {
  color: var(--text);
  font-size: 14px;
}

.user-box span,
.small-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.student-score-box {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #eefafa;
  padding: 8px 10px;
}

.student-score-box strong {
  color: #0f4e55;
  font-size: 13px;
}

.student-score-box span,
.student-score-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.student-score-hint:empty {
  display: none;
}

.score-locked {
  background: #eef2f7;
  color: #536273;
  cursor: not-allowed;
}

.report-history {
  display: grid;
  gap: 8px;
}

.report-history h3 {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.report-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-left: 3px solid var(--teal);
  background: #f7fafb;
  padding: 8px 9px;
}

.report-line-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-line strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-line span {
  color: var(--muted);
  font-size: 11px;
}

.report-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.report-download:hover {
  background: #209e95;
}

.danger-button {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:hover {
  background: #fecaca;
}

.danger-button.compact {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.admin-dashboard {
  display: grid;
  gap: 16px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.admin-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.admin-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.section-subheading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.section-subheading h3,
.section-subheading p {
  margin: 0;
}

.section-subheading p {
  color: var(--muted);
  font-size: 13px;
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.admin-filter input,
.admin-filter select,
.admin-user-table input,
.admin-user-table select {
  min-height: 34px;
}

.admin-user-table table {
  min-width: 980px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.status-pill.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.profile-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profile-panel > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.profile-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
}

.service-profile-panel > div:nth-child(3) {
  border-color: rgba(22, 125, 127, 0.28);
  background: #eefafa;
}

.service-profile-panel > div:nth-child(3) strong {
  color: var(--teal-dark);
}

.user-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.user-center-actions a,
.user-center-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.user-center-actions button {
  background: #eaf0f3;
  color: var(--text);
}

.user-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.user-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-flow-grid div {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.user-flow-grid strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #102326;
  color: #ffffff;
  font-size: 13px;
}

.user-flow-grid span {
  color: #3d4a5c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.toolbar,
.searchbar {
  display: grid;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
}

#recommendForm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.recommend-primary-row,
.recommend-secondary-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.recommend-primary-row {
  grid-template-columns: minmax(160px, 1.35fr) repeat(3, minmax(130px, 1fr)) auto;
}

.recommend-primary-row .score-field input {
  min-height: 50px;
  font-size: 22px;
  font-weight: 900;
}

.recommend-primary-row > button {
  min-height: 50px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 22px;
  font-weight: 900;
}

.recommend-secondary-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #e5ebf2;
  padding-top: 14px;
}

.rank-toolbar {
  grid-template-columns: 1fr 0.9fr 0.9fr 0.9fr auto;
  margin-bottom: 18px;
}

.score-report-toolbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.score-report-toolbar > button {
  grid-column: span 5;
}

.searchbar {
  grid-template-columns: 1fr auto;
  padding: 12px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label span,
.risk-filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

label small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.risk-filter {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  grid-column: span 1;
}

.risk-dropdown-button {
  position: relative;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--text);
  padding: 0 34px 0 12px;
  text-align: left;
  font-weight: 700;
}

.risk-dropdown-button::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
}

.risk-dropdown-button[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 125, 127, 0.14);
}

.risk-dropdown-button[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}

.risk-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px;
}

.risk-dropdown-menu label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: #465163;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.risk-dropdown-menu label:has(input:checked) {
  border-color: rgba(22, 125, 127, 0.55);
  background: #e7f5ee;
  color: var(--teal-dark);
}

.risk-dropdown-menu input {
  width: auto;
  min-height: 0;
  margin: 0 5px 0 0;
  accent-color: var(--teal);
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 125, 127, 0.14);
}

.toolbar > button,
.searchbar button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

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

.toolbar > button {
  grid-column: span 4;
}

#recommendForm > button,
.recommend-primary-row > button {
  grid-column: auto;
}

.toolbar > button,
.searchbar button,
.primary-button {
  background: var(--teal);
  color: #fff;
}

.toolbar > button:hover,
.recommend-primary-row > button:hover,
.searchbar button:hover,
.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  background: #eef2f7;
  color: #465163;
}

.compact-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.secondary-button:hover {
  background: #dfe6ef;
}

.is-loading {
  position: relative;
}

.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.risk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

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

.risk-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rush,
.risk-冲 {
  background: var(--coral);
}

.mini,
.risk-小冲 {
  background: var(--amber);
}

.likely,
.risk-可能录取 {
  background: var(--blue);
}

.steady,
.risk-较稳 {
  background: var(--green);
}

.advantage,
.risk-优势较大 {
  background: #566276;
}

.blocked,
.risk-进不去 {
  background: #8a3f3c;
}

.stable,
.risk-稳 {
  background: var(--blue);
}

.safe,
.risk-保 {
  background: var(--green);
}

.floor,
.risk-垫 {
  background: #566276;
}

.result-grid,
.list-view,
.analysis-grid {
  display: grid;
  gap: 12px;
}

.result-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.result-view-toolbar[hidden] {
  display: none;
}

.result-view-toolbar div:first-child {
  display: grid;
  gap: 2px;
}

.result-view-toolbar strong {
  color: var(--text);
}

.result-view-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  border-radius: 8px;
  background: #eef2f7;
  padding: 4px;
}

.segmented-control button {
  min-height: 30px;
  border-radius: 6px;
  background: transparent;
  color: #536273;
  padding: 0 12px;
  font-weight: 900;
}

.segmented-control button.active {
  background: #ffffff;
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(15, 35, 38, 0.12);
}

.recommend-table-view {
  display: block;
}

.recommend-table-wrap {
  max-height: 660px;
}

.recommend-table-wrap table {
  min-width: 980px;
}

.recommend-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.recommend-table-wrap th button {
  width: 100%;
  min-height: 28px;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-weight: 900;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-line,
.skeleton-metrics span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-line.wide {
  width: 72%;
  height: 20px;
}

.skeleton-line.medium {
  width: 45%;
}

.skeleton-line.short {
  width: 28%;
}

.skeleton-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.skeleton-metrics span {
  height: 54px;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.score-report-output {
  display: grid;
  gap: 14px;
}

.score-report-output:empty {
  display: none;
}

.score-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.score-report-card,
.score-image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.score-report-head,
.score-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.score-report-head h3 {
  margin: 0;
  font-size: 24px;
}

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

.report-metrics div {
  min-width: 0;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.report-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.15;
}

.rank-track {
  position: relative;
  height: 18px;
  margin-top: 18px;
  border-radius: 999px;
  background: #dce2ea;
  overflow: visible;
}

.rank-track-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
}

.rank-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 3px 12px rgba(214, 80, 69, 0.35);
  transform: translate(-50%, -50%);
}

.rank-track-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.distribution-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.distribution-block {
  --dist-accent: var(--blue);
  --dist-accent-2: #5b8ff7;
  --dist-soft: #eff5ff;
  --dist-border: #cfe0ff;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  padding: 15px 14px 14px;
}

.distribution-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dist-accent), var(--dist-accent-2));
}

.distribution-block-upper {
  --dist-accent: #2f6fed;
  --dist-accent-2: #66a6ff;
  --dist-soft: #eef5ff;
  --dist-border: #c7dcff;
}

.distribution-block-lower {
  --dist-accent: #0f8b86;
  --dist-accent-2: #42c6b4;
  --dist-soft: #e9f8f5;
  --dist-border: #bfe6de;
}

.distribution-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.distribution-heading > div:first-child {
  min-width: 0;
}

.distribution-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--dist-accent);
  font-size: 11px;
  font-weight: 900;
}

.distribution-heading h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.distribution-total {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: end;
  min-width: 142px;
  border: 1px solid var(--dist-border);
  border-radius: 8px;
  background: var(--dist-soft);
  padding: 8px 10px;
  text-align: right;
}

.distribution-total span {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #637083;
  font-size: 12px;
  font-weight: 850;
}

.distribution-total strong {
  color: var(--dist-accent);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.distribution-total em {
  margin: 0 0 2px 4px;
  color: #637083;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.distribution-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(76px, auto);
  gap: 12px;
  align-items: center;
  min-height: 32px;
}

.distribution-score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #344054;
  font-size: 16px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.distribution-score em {
  color: #687386;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.distribution-bar {
  height: 12px;
  border-radius: 999px;
  background: #edf2f7;
  box-shadow: inset 0 1px 2px rgba(39, 52, 71, 0.06);
  overflow: hidden;
}

.distribution-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dist-accent), var(--dist-accent-2));
}

.distribution-count {
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 72px;
  border: 1px solid var(--dist-border);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  padding: 5px 9px;
  box-shadow: 0 3px 10px rgba(15, 34, 58, 0.06);
  font-variant-numeric: tabular-nums;
}

.distribution-count span {
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.distribution-count em {
  color: #687386;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.score-image-card canvas {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f9;
}

.audit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.audit-form,
.audit-help,
.audit-section,
.audit-overview article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audit-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.form-band {
  border: 1px solid rgba(22, 125, 127, 0.18);
  border-radius: 8px;
  background: #e7f5ee;
  padding: 14px;
}

.form-band h3,
.audit-help h3,
.audit-section h3 {
  margin: 0;
}

.requirement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.requirement-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: baseline;
}

.requirement-grid strong {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 13px;
}

.requirement-grid span,
.audit-help li {
  color: #465163;
  font-size: 13px;
  line-height: 1.5;
}

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

.file-field {
  grid-column: span 2;
}

.file-upload-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.file-upload-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-button,
.file-name-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.file-upload-button {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
  padding: 0 14px;
}

.file-name-pill {
  flex: 1;
  min-width: 0;
  border: 1px solid #dce2ea;
  background: #ffffff;
  color: #687386;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-pill.has-file {
  color: #102326;
  border-color: rgba(22, 125, 127, 0.38);
  background: #f0faf7;
}

.audit-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.audit-actions button:first-child {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 800;
}

.audit-actions button:first-child:hover {
  background: var(--teal-dark);
}

.audit-actions .secondary-button {
  width: 100%;
}

.audit-help {
  padding: 16px;
}

.audit-help ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.audit-results {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.audit-results:empty {
  display: none;
}

.audit-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(22, 125, 127, 0.24);
  border-radius: 8px;
  background: #f0faf7;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.audit-report-actions button {
  flex: 0 0 auto;
}

.audit-report-actions div {
  display: grid;
  gap: 4px;
}

.audit-report-actions strong {
  color: #102326;
  font-size: 16px;
}

.audit-report-actions span {
  color: #465163;
  font-size: 13px;
  line-height: 1.4;
}

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

.audit-overview article {
  padding: 14px;
}

.audit-overview span,
.quota-grid span,
.quota-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-overview strong,
.quota-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.1;
}

.audit-overview p {
  margin: 8px 0 0;
  color: #465163;
  font-size: 13px;
}

.audit-section {
  padding: 16px;
}

.audit-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.audit-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.quota-grid div {
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.audit-rank-reference {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  pointer-events: none;
}

.audit-rank-fab {
  pointer-events: auto;
  display: grid;
  gap: 2px;
  min-width: 118px;
  border: 1px solid #bddbd9;
  border-radius: 8px;
  background: #0f8b86;
  color: #ffffff;
  padding: 10px 14px;
  box-shadow: 0 16px 36px rgba(19, 34, 51, 0.16);
  text-align: left;
  cursor: pointer;
}

.audit-rank-fab:hover,
.audit-rank-reference.is-open .audit-rank-fab {
  background: #0d7b77;
}

.audit-rank-fab span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 850;
}

.audit-rank-fab strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.audit-rank-panel {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(930px, calc(100vw - 72px));
  max-height: calc(100vh - 130px);
  overflow: auto;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(22, 33, 48, 0.22);
  padding: 16px;
}

.audit-rank-panel[hidden] {
  display: none;
}

.audit-rank-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #e5edf5;
  padding-bottom: 12px;
}

.audit-rank-panel-head h3 {
  margin: 2px 0 4px;
  color: var(--text);
  font-size: 20px;
}

.audit-rank-panel-head p {
  margin: 0;
  color: #5f6f83;
  font-size: 13px;
  font-weight: 750;
}

.audit-rank-close {
  border: 1px solid #d7e1eb;
  border-radius: 8px;
  background: #f5f8fb;
  color: #445267;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.audit-rank-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.audit-rank-metrics article {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 12px;
}

.audit-rank-metrics span,
.audit-rank-metrics em {
  display: block;
  color: #667387;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.audit-rank-metrics strong {
  display: block;
  margin: 4px 0 2px;
  color: #1f2a3a;
  font-size: 24px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.audit-rank-note {
  margin: 12px 0 -2px;
  border-left: 3px solid #0f8b86;
  color: #435168;
  padding-left: 9px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.audit-rank-distribution .distribution-block {
  padding: 14px 13px 13px;
}

.audit-rank-distribution .distribution-heading h4 {
  font-size: 16px;
}

.audit-rank-distribution .distribution-total strong {
  font-size: 25px;
}

.audit-group-list {
  display: grid;
  gap: 10px;
}

.audit-group-list article {
  display: grid;
  grid-template-columns: minmax(360px, 760px) auto;
  justify-content: start;
  gap: 8px clamp(18px, 3vw, 52px);
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.group-risk-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
}

.audit-group-list .group-risk-badges .audit-badge,
.audit-group-list .group-risk-badges .audit-fill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 0;
  padding: 0 12px;
  text-align: center;
  line-height: 1.25;
}

.audit-fill-badge {
  border: 1px solid #ef9a5b;
  border-radius: 8px;
  background: #fff3e8;
  color: #9a3f05;
  font-size: 12px;
  font-weight: 800;
}

.audit-group-list strong,
.audit-group-list span {
  display: block;
}

.audit-group-list span {
  margin-top: 3px;
  color: #566276;
  font-size: 12px;
  font-weight: 700;
}

.audit-group-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: #263241;
  font-size: 13px;
  font-weight: 650;
}

.audit-major-inline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #e4ebf2;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 8px 10px;
}

.audit-major-inline b {
  display: flex;
  align-items: center;
  min-height: 26px;
  color: #526174;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.audit-major-inline ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-major-inline li {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 360px);
  min-height: 26px;
  overflow: hidden;
  border: 1px solid #dbe4ed;
  border-radius: 999px;
  background: #ffffff;
}

.audit-major-inline li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 26px;
  background: #eef3f7;
  color: #526174;
  font-size: 11px;
  font-weight: 900;
}

.audit-major-inline li > strong {
  min-width: 0;
  overflow: hidden;
  padding: 0 9px;
  color: #263244;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-group-list small,
.audit-group-list em {
  grid-column: 1 / -1;
  color: #566276;
  font-size: 12px;
  line-height: 1.5;
}

.audit-group-list em {
  border-left: 3px solid #d5dde8;
  padding-left: 8px;
  font-style: normal;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.audit-badge.rush {
  border-color: #f0aaa4;
  background: #fff1ef;
  color: #9d2f27;
}

.audit-badge.fit {
  border-color: #a9c4fb;
  background: #eef4ff;
  color: #1f58be;
}

.audit-badge.stable {
  border-color: #afd9c0;
  background: #edf8f1;
  color: #21683a;
}

.audit-badge.safe {
  border-color: #c6d8b7;
  background: #f3faed;
  color: #455f31;
}

.audit-badge.floor {
  border-color: #c7cfda;
  background: #f3f6fa;
  color: #3f4a5b;
}

.audit-badge.blocked {
  border-color: #d8b4b1;
  background: #fff4f2;
  color: #7c302c;
}

.audit-badge.missing {
  border-color: #c9d0da;
  background: #f6f7f9;
  color: #586374;
}

.audit-badge.missing-history {
  border-color: #e7c46a;
  background: #fff8e6;
  color: #8a5a00;
}

.audit-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.audit-table-wrap th,
.audit-table-wrap td {
  vertical-align: top;
  white-space: normal;
}

.audit-table-wrap td.physical-risk-cell {
  min-width: 180px;
  max-width: 320px;
  white-space: normal;
}

.audit-table-wrap td.audit-tip-cell {
  min-width: 360px;
  max-width: 560px;
  white-space: normal;
}

.audit-table-wrap td small {
  display: block;
  margin-top: 4px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.audit-compact-list {
  display: grid;
  gap: 12px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.audit-compact-list-expanded {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.audit-compact-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.audit-compact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #e7edf4;
  padding-bottom: 10px;
}

.audit-compact-head strong {
  display: block;
  color: #1b2430;
  font-size: 15px;
  line-height: 1.35;
}

.audit-compact-head span {
  display: block;
  margin-top: 4px;
  color: #5e6d82;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.school-nature-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid #d8e3ed;
  border-radius: 999px;
  background: #f3f6fa;
  color: #526174;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

.school-nature-private {
  border-color: #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.school-nature-public {
  border-color: #b7e4d0;
  background: #ecfdf5;
  color: #166534;
}

.school-nature-unknown {
  border-color: #d6deea;
  background: #f7f9fc;
  color: #64748b;
}

.audit-identity-cell .school-nature-badge,
.audit-compact-head .school-nature-badge {
  margin-top: 0;
}

.audit-compact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(190px, 0.9fr) minmax(220px, 1fr);
  gap: 12px;
}

.audit-compact-grid > div {
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.audit-compact-grid b {
  display: block;
  margin-bottom: 7px;
  color: #506177;
  font-size: 12px;
}

.audit-compact-grid p,
.audit-compact-note span,
.audit-compact-note strong {
  margin: 0;
  color: #263244;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.audit-compact-note {
  display: grid;
  gap: 6px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.audit-compact-note strong {
  color: #8f3a22;
}

.final-keep-plan {
  border-color: rgba(22, 125, 127, 0.28);
}

.final-keep-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.final-order-reminder {
  border: 1px solid #f0dba8;
  border-radius: 8px;
  background: #fff8e6;
  color: #72540b;
  line-height: 1.65;
  margin: 10px 0 0;
  padding: 10px 12px;
  font-weight: 900;
}

.final-keep-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.final-keep-group h4 span {
  border-radius: 999px;
  background: #edf2f6;
  color: var(--muted);
  font-size: 12px;
  padding: 3px 8px;
}

.final-keep-table {
  table-layout: fixed;
}

.final-keep-table th:nth-child(1),
.final-keep-table td:nth-child(1) {
  width: 24%;
}

.final-keep-table th:nth-child(2),
.final-keep-table td:nth-child(2) {
  width: 14%;
  white-space: nowrap;
}

.final-school-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.final-school-cell strong {
  font-size: 13px;
  line-height: 1.45;
}

.final-school-cell .school-nature-badge {
  margin-left: 0;
}

.final-group-code {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #eef5f4;
  color: #116766;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  padding: 5px 8px;
}

.final-major-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.final-major-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #fbfcfd;
  color: #253244;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  padding: 5px 8px 5px 5px;
}

.final-major-chip em {
  min-width: 20px;
  border-radius: 999px;
  background: #edf2f6;
  color: #607086;
  font-style: normal;
  font-size: 11px;
  text-align: center;
  padding: 2px 5px;
}

.final-major-chip small {
  color: #77869a;
  font-size: 11px;
  font-weight: 850;
}

.final-major-empty {
  display: inline-flex;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
}

.physical-risk-cell strong,
.physical-risk-cell small {
  display: block;
}

.physical-risk-cell strong {
  color: #8f3a22;
  font-size: 12px;
}

.physical-risk-cell small {
  margin-top: 4px;
  color: #687386;
  font-size: 11px;
  line-height: 1.45;
}

.audit-tip-table {
  display: grid;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #ffffff;
}

.audit-group-list .audit-tip-table {
  margin-top: 10px;
}

.audit-tip-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-top: 1px solid #e8edf3;
}

.audit-tip-row:first-child {
  border-top: 0;
}

.audit-tip-row strong,
.audit-tip-row span {
  min-width: 0;
  white-space: normal;
  line-height: 1.55;
}

.audit-tip-row strong {
  display: flex;
  align-items: center;
  background: #f4f7fa;
  color: #526174;
  padding: 8px 9px;
  font-size: 12px;
}

.audit-tip-row span {
  color: #263244;
  padding: 8px 10px;
  font-size: 12px;
}

.audit-tip-row-alert strong {
  background: #fff0f0;
  color: #b42318;
}

.audit-tip-row-alert span {
  background: #fff7f5;
  color: #8a1f14;
  font-weight: 700;
}

.audit-tip-row-upper8 span {
  color: #8a1f14;
  font-weight: 850;
}

.audit-tip-row-critical strong {
  background: #fff3e8;
  color: #9a3f05;
}

.audit-tip-row-critical span {
  background: #fff8f1;
  color: #7c2d12;
  font-weight: 800;
}

.audit-major-preference {
  min-width: 260px;
  max-width: 420px;
  white-space: normal !important;
  line-height: 1.5;
}

.audit-identity-cell {
  min-width: 170px;
}

.audit-identity-cell strong,
.audit-major-detail-cell strong,
.audit-history-stack strong {
  display: block;
  color: #1b2430;
  line-height: 1.45;
}

.audit-identity-cell small,
.audit-major-detail-cell small,
.audit-history-stack span,
.audit-status-stack small {
  display: block;
  margin-top: 3px;
  color: #657389;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.audit-major-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-major-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.audit-major-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #eef3f7;
  color: #526174;
  font-size: 11px;
  font-weight: 900;
}

.audit-major-list strong {
  min-width: 0;
  color: #263244;
  font-size: 12px;
  line-height: 1.35;
}

.audit-major-list .audit-badge {
  min-height: 20px;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 11px;
}

.audit-history-stack,
.audit-status-stack {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.audit-history-stack strong {
  color: #0f5f61;
  font-size: 12px;
}

.audit-major-detail-cell {
  min-width: 190px;
}

.audit-table-wrap td small {
  display: block;
  color: #687386;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.audit-warning-list {
  margin-bottom: 0;
}

.focus-section {
  border-color: rgba(22, 125, 127, 0.24);
}

.focus-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.focus-grid article {
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.focus-score-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.focus-score-card strong {
  display: block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 36px;
  line-height: 1;
}

.focus-score-card p,
.focus-summary-card ul {
  margin: 10px 0 0;
}

.focus-summary-card strong {
  display: block;
  color: #172331;
  font-size: 15px;
  line-height: 1.5;
}

.focus-summary-card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: #465163;
  font-size: 13px;
  line-height: 1.5;
}

.focus-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.focus-bars h4 {
  margin: 0 0 10px;
  color: #172331;
  font-size: 14px;
}

.focus-bar-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(120px, 2fr) 72px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #465163;
  font-size: 13px;
  font-weight: 700;
}

.focus-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.focus-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #167d7f, #43a37c);
}

.focus-bar-row strong {
  color: #172331;
  font-size: 12px;
  text-align: right;
}

.focus-matrix {
  margin-top: 16px;
}

.focus-matrix-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.focus-matrix-head h4 {
  margin: 0;
  color: #172331;
  font-size: 14px;
}

.focus-matrix-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.focus-matrix-wrap {
  overflow-x: auto;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #ffffff;
}

.focus-matrix table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.focus-matrix th,
.focus-matrix td {
  border-bottom: 1px solid #e7ebf0;
  border-right: 1px solid #e7ebf0;
  padding: 9px 10px;
  text-align: center;
  vertical-align: middle;
}

.focus-matrix th:first-child {
  min-width: 140px;
  text-align: left;
}

.focus-matrix thead th {
  background: #eef4f3;
  color: #102326;
  font-size: 12px;
}

.focus-matrix tbody th {
  color: #172331;
  font-size: 13px;
}

.focus-matrix td strong,
.focus-matrix td span {
  display: block;
}

.focus-matrix td strong {
  color: #102326;
  font-size: 14px;
}

.focus-matrix td span {
  margin-top: 2px;
  color: #45515f;
  font-size: 11px;
  font-weight: 800;
}

.focus-matrix-total {
  background: #f6f7f9;
  color: #172331;
  font-weight: 900;
}

.ai-report-body {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
  color: #1f2a38;
  font-size: 14px;
  line-height: 1.75;
}

.ai-report-body h3,
.ai-report-body h4 {
  margin: 12px 0 0;
  color: #102326;
  line-height: 1.35;
}

.ai-report-body h3 {
  border-left: 4px solid var(--teal);
  padding-left: 10px;
  font-size: 17px;
}

.ai-report-body h4 {
  font-size: 15px;
}

.ai-report-body p,
.ai-report-body ul {
  margin: 0;
}

.ai-report-body ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

.ai-report-body strong {
  color: #102326;
}

.ai-report-body code {
  border: 1px solid #dce2ea;
  border-radius: 6px;
  background: #ffffff;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 13px;
}

.ai-report-table-wrap {
  overflow-x: auto;
}

.ai-report-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.ai-report-table-wrap th,
.ai-report-table-wrap td {
  border: 1px solid #dce2ea;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.ai-report-table-wrap th {
  background: #eef4f3;
  color: #102326;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pager:empty {
  display: none;
}

.pager button {
  min-width: 86px;
}

.pager button:disabled,
.list-item:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.local-pager {
  margin-top: 10px;
}

.local-pager button {
  min-width: 72px;
}

.local-table-wrap table {
  min-width: 760px;
}

.summary-strip {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.summary-strip:empty {
  display: none;
}

.summary-main {
  border: 1px solid rgba(22, 125, 127, 0.2);
  border-radius: 8px;
  background: #e7f5ee;
  color: #185f43;
  padding: 12px 14px;
  font-weight: 800;
}

.summary-warnings {
  display: grid;
  gap: 6px;
}

.summary-warnings span {
  border: 1px solid rgba(189, 128, 28, 0.28);
  border-radius: 8px;
  background: #fff7e6;
  color: #80551a;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shortlist-analysis-counts {
  margin-top: 12px;
}

.shortlist-analysis {
  display: grid;
  gap: 14px;
}

.shortlist-analysis section {
  display: grid;
  gap: 8px;
}

.shortlist-analysis h4 {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
}

.analysis-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
  text-align: left;
}

.analysis-row:hover {
  border-color: rgba(22, 125, 127, 0.55);
}

.analysis-row strong {
  color: var(--text);
  font-size: 13px;
}

.analysis-row span {
  color: var(--muted);
  font-size: 12px;
}

.recommend-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.target-summary {
  margin: 16px 0 20px;
}

.target-summary:empty {
  display: none;
}

.trend-panel {
  margin: 16px 0 20px;
}

.trend-panel:empty {
  display: none;
}

.trend-popover {
  position: fixed;
  z-index: 80;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 35, 38, 0.24);
}

.trend-popover .trend-card {
  margin: 0;
}

.trend-card {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(22, 125, 127, 0.24);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.trend-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #ffffff;
  color: #465163;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.trend-close:hover {
  border-color: rgba(22, 125, 127, 0.45);
  color: var(--teal-dark);
}

.trend-loading {
  min-width: min(520px, calc(100vw - 32px));
  color: #465163;
  font-weight: 800;
}

.trend-heading {
  padding-right: 58px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.trend-heading h3,
.trend-heading p {
  margin: 0;
}

.trend-heading h3 {
  color: #102326;
  font-size: 20px;
}

.trend-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.variant-subtitle {
  color: var(--teal-dark);
  font-weight: 800;
}

.trend-variant-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.trend-variant-tabs button {
  display: grid;
  gap: 3px;
  min-width: 190px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fbfcfd;
  color: #465163;
  padding: 9px 10px;
  text-align: left;
}

.trend-variant-tabs button.active {
  border-color: rgba(22, 125, 127, 0.55);
  background: #e7f5ee;
  color: #102326;
}

.trend-variant-tabs strong,
.trend-variant-tabs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-variant-tabs strong {
  font-size: 13px;
}

.trend-variant-tabs span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: stretch;
}

.trend-chart-wrap {
  min-width: 0;
  overflow-x: auto;
}

.trend-chart {
  width: 100%;
  min-width: 720px;
  height: auto;
  border: 1px solid #dce2ea;
  border-radius: 8px;
}

.trend-grid {
  stroke: #e2e7ee;
  stroke-width: 1;
}

.trend-axis,
.trend-year,
.trend-student-label {
  fill: #687386;
  font-size: 13px;
  font-weight: 800;
}

.trend-year {
  text-anchor: middle;
  fill: #1f2a38;
}

.trend-range {
  stroke: #232b36;
  stroke-width: 4;
  stroke-linecap: round;
}

.trend-point {
  stroke-width: 2;
}

.trend-high {
  fill: #ffffff;
  stroke: #232b36;
}

.trend-low {
  fill: #e0443e;
  stroke: #e0443e;
}

.trend-avg-marker {
  fill: #ffffff;
  stroke: #e0443e;
  stroke-width: 2;
}

.trend-avg-line {
  fill: none;
  stroke: #e0443e;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.trend-student-line {
  stroke: #2f42ff;
  stroke-width: 4;
}

.trend-student-label {
  fill: #2433d6;
}

.trend-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.trend-side div {
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 11px 12px;
}

.trend-side span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend-side strong {
  display: block;
  margin-top: 5px;
  color: #102326;
  font-size: 20px;
}

.trend-table-wrap {
  overflow-x: auto;
}

.trend-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.trend-table-wrap th,
.trend-table-wrap td {
  border: 1px solid #dce2ea;
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}

.trend-table-wrap th:first-child,
.trend-table-wrap td:first-child {
  text-align: left;
}

.trend-table-wrap th {
  background: #eef4f3;
  color: #102326;
  font-size: 12px;
}

.plan-compare-card {
  width: 100%;
}

.plan-compare-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-compare-stats div {
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 12px;
}

.plan-compare-stats span,
.plan-compare-stats strong {
  display: block;
}

.plan-compare-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-compare-stats strong {
  margin-top: 4px;
  color: #102326;
  font-size: 16px;
}

.plan-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.plan-year-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.plan-year-head,
.plan-group-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.plan-year-head h3,
.plan-group-head h4,
.plan-group-head p {
  margin: 0;
}

.plan-year-head h3 {
  color: #102326;
  font-size: 16px;
}

.plan-year-head span,
.plan-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-group-block {
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.plan-group-head {
  border-bottom: 1px solid #dce2ea;
  background: #eef4f3;
  padding: 10px 12px;
}

.plan-group-head h4 {
  color: #102326;
  font-size: 14px;
}

.plan-group-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-table-wrap {
  overflow-x: auto;
}

.plan-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.plan-table-wrap th,
.plan-table-wrap td {
  border-bottom: 1px solid #e5eaf0;
  padding: 7px 9px;
  color: #1f2a38;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.plan-table-wrap th {
  background: #f7fafb;
  color: #465163;
  font-weight: 900;
}

.plan-table-wrap tr:last-child td {
  border-bottom: 0;
}

.plan-target-row td {
  background: #e7f5ee;
  color: #102326;
  font-weight: 900;
}

.plan-note-cell {
  min-width: 220px;
  max-width: 360px;
  white-space: normal;
  line-height: 1.45;
}

.plan-compare-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-compare-notes span {
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.target-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.target-heading h3,
.target-heading span {
  margin: 0;
}

.target-heading h3 {
  font-size: 20px;
}

.target-heading span {
  color: var(--muted);
  font-size: 13px;
}

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

.target-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(27, 36, 48, 0.06);
  padding: 16px;
}

.target-card h3,
.target-card p {
  margin: 0;
}

.target-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.target-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.target-metrics span {
  border-radius: 8px;
  background: var(--surface-2);
  color: #465163;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}

.target-major-list {
  display: grid;
  gap: 8px;
}

.target-major-list div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.target-major-list strong {
  font-size: 13px;
}

.target-major-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.group-heading h3,
.recommend-group p {
  margin: 0;
}

.group-heading h3 {
  font-size: 20px;
}

.group-heading span,
.recommend-group p {
  color: var(--muted);
  font-size: 13px;
}

.result-card,
.list-item,
.analysis-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(27, 36, 48, 0.06);
}

.result-card {
  display: grid;
  gap: 12px;
}

.analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-card {
  display: grid;
  gap: 8px;
}

.analysis-card h3,
.analysis-card p {
  margin: 0;
}

.analysis-card p {
  color: #465163;
  line-height: 1.6;
  font-size: 13px;
}

.card-top,
.item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.card-title,
.item-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-subtitle,
.item-meta,
.detail-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.code-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  background: #f5f8fb;
  padding: 2px 7px;
  color: #58687a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.risk-badge {
  color: #fff;
}

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

.metric {
  min-width: 0;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.reason-list {
  margin: 0;
  padding-left: 18px;
  color: #465163;
  font-size: 13px;
}

.special-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.special-tags span {
  border-radius: 8px;
  background: #fff0e8;
  color: #9b422c;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.list-item,
.result-card {
  text-align: left;
}

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

.list-item:hover,
.result-card:hover {
  border-color: rgba(22, 125, 127, 0.55);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag {
  background: #eef2f7;
  color: #4a5568;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tag-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.tag-button:hover,
.tag-button:focus-visible {
  background: rgba(22, 125, 127, 0.14);
  color: var(--teal-dark);
  outline: 2px solid rgba(22, 125, 127, 0.24);
  outline-offset: 2px;
}

.match-hint {
  color: var(--amber);
  font-weight: 800;
}

.detail-pane {
  border-left: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  overflow: auto;
}

.detail-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pinned-compare-list {
  display: grid;
  gap: 12px;
}

.compare-workbench .pinned-compare-list {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}

.compare-workbench .empty-state {
  min-height: 420px;
  border: 1px dashed #d8e2ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.pinned-compare-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.pinned-compare-card h3,
.pinned-compare-card p {
  margin: 0;
}

.pinned-compare-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.pinned-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pinned-metrics span {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
}

.pinned-metrics strong {
  color: var(--text);
  font-size: 15px;
}

.detail-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin: 12px 0 4px;
  color: var(--text);
}

.empty-state p {
  max-width: 260px;
  margin: 0;
  line-height: 1.6;
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 26px;
  font-weight: 800;
}

.detail-title {
  margin: 0;
  font-size: 24px;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-section-heading h3 {
  margin: 0;
}

.source-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.rule-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rule-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.rule-item span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.rule-item p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.charter-preview {
  margin-top: 12px;
}

.charter-preview summary {
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.charter-preview p {
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f1f5f9;
  color: #4a5568;
  font-weight: 800;
}

.text-link-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  text-align: left;
  font-weight: 900;
}

.text-link-button:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.profile-text {
  color: #3d4858;
  line-height: 1.7;
  white-space: pre-wrap;
}

.loading,
.muted {
  color: var(--muted);
}

.recharge-page {
  min-height: 100vh;
  background: #f6f7f9;
}

.recharge-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, 0.94);
  padding: 16px clamp(18px, 5vw, 56px);
  backdrop-filter: blur(12px);
}

.recharge-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.recharge-brand span:last-child {
  display: grid;
  gap: 3px;
}

.recharge-brand strong {
  font-size: 18px;
}

.recharge-brand small,
.recharge-topnav a {
  color: var(--muted);
}

.recharge-topnav,
.recharge-actions,
.service-metrics,
.visual-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recharge-topnav {
  align-items: center;
}

.recharge-topnav a,
.plain-link-button,
.primary-link-button {
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}

.recharge-topnav a:hover,
.plain-link-button:hover {
  background: #e8eef3;
  color: var(--text);
}

.recharge-main {
  display: grid;
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.recharge-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.recharge-intro,
.recharge-visual,
.recharge-section,
.checkout-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recharge-intro {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 500px;
  padding: clamp(26px, 5vw, 48px);
}

.recharge-intro h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: #4e5b6d;
  font-size: 18px;
  line-height: 1.75;
}

.primary-link-button {
  background: var(--teal);
  color: #ffffff;
}

.primary-link-button:hover {
  background: var(--teal-dark);
}

.plain-link-button {
  background: #eaf0f3;
  color: var(--text);
}

.gaokao-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gaokao-tag-strip span {
  border-radius: 8px;
  background: #fff7e8;
  color: #8a5a00;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
}

.gaokao-tag-strip span:nth-child(2n) {
  background: #eef4ff;
  color: #315fb8;
}

.gaokao-tag-strip span:nth-child(3n) {
  background: #ecf8f1;
  color: #236b3e;
}

.service-metrics div {
  display: grid;
  gap: 4px;
  min-width: 150px;
  border-radius: 8px;
  background: #eef4f3;
  padding: 14px 16px;
}

.service-metrics strong {
  font-size: 24px;
}

.service-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.recharge-visual {
  position: relative;
  display: grid;
  align-content: stretch;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  background: #eef6f8;
}

.recharge-visual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: contain;
  object-position: center;
}

.visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(16, 35, 38, 0.16);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.visual-caption span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.visual-caption strong {
  color: var(--text);
  font-size: 18px;
}

.unlock-stack {
  display: grid;
  gap: 12px;
  align-content: center;
}

.unlock-stack div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.unlock-stack span {
  color: #8de1d8;
  font-size: 13px;
  font-weight: 900;
}

.unlock-stack strong {
  color: #f4faf9;
  line-height: 1.45;
}

.visual-alerts span {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7e5e5;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

.recharge-section {
  padding: 24px;
}

.recharge-section.compact {
  margin-top: 22px;
  box-shadow: none;
}

.recharge-section.compact h2 {
  margin: 0 0 14px;
}

.status-pill.is-ok {
  border-color: rgba(47, 138, 77, 0.28);
  background: #e9f6ee;
  color: var(--green);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-feature-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.service-feature-grid span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.service-feature-grid strong {
  color: var(--text);
  font-size: 18px;
}

.service-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-section .section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.landing-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.landing-account-card,
.landing-auth-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 20px;
}

.landing-account-card span,
.landing-auth-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.landing-account-card strong {
  color: var(--text);
  font-size: 28px;
}

.landing-account-card p {
  margin: 0;
  color: #4e5b6d;
  line-height: 1.7;
}

.landing-account-actions,
.landing-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-account-actions button {
  border: 0;
}

.landing-auth-form label {
  display: grid;
  gap: 7px;
}

.landing-auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 13px;
  font-size: 16px;
}

.landing-auth-actions button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.landing-auth-actions button[type="submit"] {
  background: var(--teal);
  color: #ffffff;
}

.primary-link-button.is-disabled {
  opacity: 0.72;
}

.recharge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

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

.plan-card {
  display: grid;
  gap: 20px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  cursor: pointer;
}

.plan-card.active {
  border-color: rgba(22, 125, 127, 0.9);
  box-shadow: 0 0 0 3px rgba(22, 125, 127, 0.12);
}

.plan-card h3,
.plan-card p,
.checkout-head span,
.checkout-head strong,
.checkout-note,
.recharge-message p {
  margin: 0;
}

.plan-audience {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
  background: #eef4f3;
  color: var(--teal);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.plan-card h3 {
  margin: 14px 0 8px;
  font-size: 21px;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.6;
}

.plan-bottom {
  align-self: end;
  display: grid;
  gap: 4px;
}

.plan-bottom strong {
  font-size: 28px;
}

.plan-bottom span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-panel {
  align-self: start;
  position: sticky;
  top: 86px;
  padding: 22px;
}

.checkout-head {
  display: grid;
  gap: 4px;
}

.checkout-head span,
.checkout-note {
  color: var(--muted);
}

.checkout-head strong {
  font-size: 22px;
}

.checkout-price {
  margin: 16px 0;
  color: var(--teal-dark);
  font-size: 38px;
  font-weight: 950;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-form select,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form button {
  min-height: 46px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
}

.checkout-form button:hover {
  background: var(--teal-dark);
}

.checkout-note {
  font-size: 13px;
  line-height: 1.6;
}

.recharge-message {
  margin-top: 14px;
}

.order-created {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: #e9f6ee;
  color: #235536;
  padding: 14px;
}

.order-created span {
  color: var(--green);
  font-weight: 900;
}

.order-created strong {
  color: #1b2430;
}

.pay-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
}

.pay-now-button:hover {
  background: var(--teal-dark);
}

.pay-now-button.compact {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.muted-text {
  color: #748195;
  font-weight: 800;
}

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

.workflow-grid div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.workflow-grid strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #102326;
  color: #ffffff;
}

.workflow-grid span {
  color: #3d4a5c;
  font-weight: 800;
}

.recharge-orders {
  margin-top: 16px;
}

.order-summary-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.order-summary-line strong {
  color: var(--text);
}

.order-status {
  display: inline-flex;
  border-radius: 8px;
  background: #fff5e6;
  color: var(--amber);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.order-status.activated,
.order-status.paid {
  background: #e9f6ee;
  color: var(--green);
}

.order-status.cancelled {
  background: #eef2f7;
  color: #66758a;
}

.empty-service-state {
  display: grid;
  gap: 6px;
  border: 1px dashed #cdd7e3;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
}

.empty-service-state strong {
  color: var(--text);
}

.empty-service-state span {
  color: var(--muted);
  line-height: 1.6;
}

.school-detail-page {
  min-height: 100vh;
  background: #f6f7f9;
}

.school-detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, 0.94);
  padding: 16px clamp(18px, 5vw, 56px);
  backdrop-filter: blur(12px);
}

.school-detail-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.school-detail-main {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.school-detail-shell {
  display: grid;
  gap: 18px;
}

.school-detail-hero,
.school-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.school-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.school-detail-hero h1 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.school-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.school-detail-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.school-detail-section {
  padding: 22px;
}

.school-detail-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
}

.school-detail-section .section-subheading h2 {
  margin-bottom: 4px;
}

.school-detail-section .section-subheading p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.plan-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.plan-group:first-of-type {
  margin-top: 0;
}

.plan-group h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.plan-group h3 span {
  border-radius: 999px;
  background: #eef2f7;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.school-wide-table table {
  min-width: 1120px;
}

.sim-fill-page {
  background: #f4f7fb;
  color: var(--text);
  min-height: 100vh;
}

.sim-fill-page-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding: 16px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sim-fill-page-main {
  margin: 0 auto;
  max-width: 1480px;
  padding: 28px clamp(16px, 4vw, 44px) 52px;
}

.sim-fill-page-title {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sim-fill-page-title h1 {
  color: var(--text);
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 6px;
}

.sim-fill-page-title p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.sim-fill-login-gate {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 88px auto;
  max-width: 620px;
  padding: 34px;
}

.sim-fill-login-gate h1 {
  margin: 0 0 10px;
}

.sim-fill-choice-list {
  display: grid;
  gap: 14px;
}

.sim-fill-choice-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.sim-fill-choice-card.is-active {
  border-color: rgba(29, 139, 139, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 139, 139, 0.09), 0 8px 20px rgba(15, 23, 42, 0.05);
}

.sim-fill-choice-card > header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e8eef5;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
}

.sim-fill-choice-card > header strong {
  color: var(--text);
  display: block;
  font-size: 18px;
}

.sim-fill-choice-card > header span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

.sim-fill-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-fill-choice-actions button,
.sim-fill-major-row button {
  background: #eef3f7;
  border: 0;
  border-radius: 6px;
  color: #344256;
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
}

.sim-fill-choice-actions button:disabled,
.sim-fill-major-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sim-fill-choice-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 0.75fr) minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(120px, 0.65fr);
  padding: 15px 16px 8px;
}

.sim-fill-choice-fields label {
  display: grid;
  gap: 7px;
}

.sim-fill-choice-fields label span,
.sim-fill-major-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sim-fill-choice-fields input,
.sim-fill-choice-fields select,
.sim-fill-major-row input {
  background: #ffffff;
  border: 1px solid #d7e1ea;
  border-radius: 6px;
  box-shadow: none;
  font-size: 15px;
  height: 38px;
  padding: 7px 9px;
  width: 100%;
}

.sim-fill-choice-fields input:focus,
.sim-fill-major-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 139, 139, 0.13);
  outline: none;
}

.sim-fill-adjust-switch > label {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-weight: 900;
  gap: 7px;
}

.sim-fill-adjust-switch input {
  accent-color: var(--primary);
  height: auto;
  width: auto;
}

.sim-fill-major-table {
  display: grid;
  gap: 0;
  padding: 5px 16px 16px;
}

.sim-fill-major-head,
.sim-fill-major-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(120px, 0.8fr) minmax(260px, 2fr) 110px 76px;
}

.sim-fill-major-head {
  padding: 8px 0;
}

.sim-fill-major-row {
  border-top: 1px solid #edf2f7;
  min-height: 54px;
  padding: 8px 0;
}

.sim-fill-major-row.is-active-major {
  background: #fff8e8;
  box-shadow: inset 4px 0 0 #e6a23c;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.sim-fill-major-row > strong {
  color: #344256;
}

.sim-fill-major-row small {
  color: #b45309;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.sim-fill-major-options {
  background: #fbfdff;
  border-top: 1px solid #e6eef6;
  display: grid;
  gap: 14px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 14px 16px 16px;
}

.sim-fill-major-options-head {
  align-content: start;
  display: grid;
  gap: 4px;
}

.sim-fill-major-options-head strong {
  color: var(--text);
  font-size: 14px;
}

.sim-fill-major-options-head span,
.sim-fill-major-options-body p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.sim-fill-major-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-fill-major-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e4ed;
  border-radius: 999px;
  color: #26364a;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  max-width: 100%;
  padding: 5px 10px 5px 6px;
}

.sim-fill-major-option:hover {
  border-color: rgba(29, 139, 139, 0.55);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.sim-fill-major-option span {
  background: #eef5f8;
  border-radius: 999px;
  color: #486074;
  font-size: 12px;
  font-weight: 950;
  min-width: 36px;
  padding: 4px 7px;
  text-align: center;
}

.sim-fill-major-option strong {
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-fill-major-option em,
.sim-fill-major-option small {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.sim-fill-major-option em {
  color: #667085;
}

.sim-fill-major-option small {
  color: #b45309;
}

.sim-fill-major-option .sim-fill-option-warning,
.sim-fill-qualification-warning {
  color: #8a1f14;
}

.sim-fill-qualification-warning {
  font-weight: 900;
}

.sim-fill-major-option.is-selected {
  background: #e8f6f3;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.sim-fill-major-option.is-selected span {
  background: var(--primary);
  color: #ffffff;
}

.sim-fill-major-option.is-used:not(.is-selected) {
  background: #fff7ed;
  border-color: #fed7aa;
}

.sim-fill-shell {
  display: grid;
  gap: 16px;
}

.sim-fill-toolbar {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 190px) minmax(150px, 210px) minmax(360px, 1fr);
  padding: 16px;
}

.sim-fill-toolbar label {
  display: grid;
  gap: 7px;
}

.sim-fill-toolbar label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sim-fill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 3;
  justify-content: flex-start;
}

.sim-fill-actions button {
  font-size: 14px;
  min-height: 42px;
  padding-left: 13px;
  padding-right: 13px;
  white-space: nowrap;
}

.sim-fill-save-status {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  grid-column: 3;
  justify-self: end;
  min-width: 110px;
  text-align: right;
}

.sim-fill-save-status[data-state="dirty"] {
  color: #b45309;
}

.sim-fill-save-status[data-state="saved"] {
  color: var(--primary-dark);
}

.sim-fill-save-status[data-state="error"] {
  color: #b91c1c;
}

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

.sim-fill-summary div {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 13px 15px;
}

.sim-fill-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sim-fill-summary strong {
  color: var(--text);
  font-size: 22px;
}

.sim-fill-message {
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 14px;
}

.sim-fill-message.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.sim-fill-message.success {
  background: #ecfdf5;
  color: #047857;
}

.sim-fill-message.error {
  background: #fef2f2;
  color: #b91c1c;
}

.sim-fill-dialog-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 2000;
}

.sim-fill-dialog {
  background: #ffffff;
  border: 1px solid #f2c7c2;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
  display: grid;
  gap: 14px;
  max-width: 720px;
  padding: 22px;
  width: min(720px, 100%);
}

.sim-fill-dialog h2 {
  color: #8a1f14;
  font-size: 22px;
  margin: 0;
}

.sim-fill-dialog p {
  color: #344256;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
}

.sim-fill-dialog-list {
  background: #fff7f5;
  border: 1px solid #f3d0cc;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}

.sim-fill-dialog-list span {
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.sim-fill-dialog-note {
  background: #fffaf0;
  border-radius: 8px;
  color: #7c2d12 !important;
  padding: 12px;
}

.sim-fill-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.sim-fill-dialog-actions button {
  min-height: 42px;
}

.sim-fill-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 290px);
  min-height: 520px;
  overflow: auto;
}

.sim-fill-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1160px;
  table-layout: fixed;
  width: 100%;
}

.sim-fill-table th {
  background: #f5f8fb;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 10px 9px;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 2;
}

.sim-fill-table th:nth-child(1) { width: 92px; }
.sim-fill-table th:nth-child(2) { width: 126px; }
.sim-fill-table th:nth-child(3) { width: 230px; }
.sim-fill-table th:nth-child(4) { width: 146px; }
.sim-fill-table th:nth-child(5) { width: 110px; }
.sim-fill-table th:nth-child(6) { width: 270px; }
.sim-fill-table th:nth-child(7) { width: 104px; }
.sim-fill-table th:nth-child(8) { width: 104px; }

.sim-fill-table td {
  border-bottom: 1px solid #edf2f7;
  color: var(--text);
  font-size: 14px;
  padding: 7px 9px;
  vertical-align: middle;
}

.sim-fill-table tr.is-active td {
  background: #fff7e6;
}

.sim-fill-table tr:hover td {
  background: #f8fbfd;
}

.sim-fill-table tr.is-active:hover td {
  background: #fff3d6;
}

.sim-fill-table input[type="text"],
.sim-fill-table input:not([type]) {
  background: #ffffff;
  border: 1px solid #d7e1ea;
  border-radius: 6px;
  box-shadow: none;
  font-size: 14px;
  height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.sim-fill-table input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 139, 139, 0.13);
  outline: none;
}

.sim-fill-volunteer {
  color: #344256;
}

.sim-fill-volunteer strong,
.sim-fill-volunteer small {
  display: block;
}

.sim-fill-volunteer small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.sim-fill-inherited {
  color: #667085;
  display: inline-block;
  font-weight: 800;
  min-height: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.sim-fill-major-name {
  color: #253245;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-fill-adjust label {
  align-items: center;
  color: #475467;
  display: inline-flex;
  font-weight: 900;
  gap: 6px;
}

.sim-fill-adjust input {
  accent-color: var(--primary);
}

.sim-fill-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 62px;
  padding: 4px 8px;
}

.sim-fill-status.idle {
  background: #eef2f6;
  color: #667085;
}

.sim-fill-status.pending {
  background: #eff6ff;
  color: #1d4ed8;
}

.sim-fill-status.matched {
  background: #e8f6f3;
  color: var(--primary-dark);
}

.sim-fill-status.warn {
  background: #fff1e7;
  color: #c2410c;
}

.sim-fill-school-popover {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 4px;
  max-height: 300px;
  overflow: auto;
  padding: 6px;
  position: fixed;
  z-index: 20;
}

.sim-fill-school-popover button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.sim-fill-school-popover button:hover {
  background: #f2f7f7;
}

.sim-fill-school-popover strong {
  font-size: 14px;
}

.sim-fill-school-popover span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .recharge-hero,
  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .service-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-account-grid {
    grid-template-columns: 1fr;
  }

  .recommend-primary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommend-primary-row > button {
    grid-column: span 2;
  }

  .recommend-secondary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shortlist-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shortlist-work-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .shortlist-work-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .checkout-panel {
    position: static;
  }

  .audit-rank-panel {
    width: min(760px, calc(100vw - 40px));
  }

  .audit-rank-distribution {
    grid-template-columns: 1fr;
  }

  .audit-rank-metrics {
    grid-template-columns: 1fr;
  }

  .detail-pane {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    padding: 18px;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-tab {
    text-align: center;
  }

  .workspace,
  .detail-pane {
    padding: 18px;
  }

  .section-heading,
  .card-top,
  .item-top {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .searchbar,
  .recommend-primary-row,
  .recommend-secondary-row,
  .metrics,
  .rank-toolbar,
  .score-report-toolbar,
  .score-report-layout,
  .report-metrics,
  .distribution-columns,
  .analysis-grid,
  .target-grid,
  .trend-layout,
  .plan-compare-stats,
  .plan-compare-grid,
  .audit-layout,
  .audit-fields,
  .audit-actions,
  .requirement-grid,
  .user-center-grid,
  .user-flow-grid,
  .audit-overview,
  .quota-grid,
  .focus-grid,
  .audit-compact-grid,
  .service-feature-grid,
  .landing-account-grid,
  .focus-bars {
    grid-template-columns: 1fr;
  }

  .recharge-visual,
  .recharge-visual img {
    min-height: 360px;
  }

  .toolbar > button,
  .recommend-primary-row > button,
  .score-report-toolbar > button,
  .file-field {
    grid-column: auto;
  }

  .file-upload-control,
  .user-center-actions,
  .audit-compact-head,
  .audit-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .user-center-actions a,
  .user-center-actions button {
    justify-content: center;
  }

  .result-view-toolbar,
  .shortlist-workbench-actions,
  .detail-workbench-head {
    align-items: stretch;
    flex-direction: column;
  }

  .shortlist-dashboard,
  .pinned-metrics,
  .skeleton-metrics {
    grid-template-columns: 1fr;
  }

  .shortlist-work-item {
    grid-template-columns: 1fr;
  }

  .drag-handle {
    min-height: 34px;
  }

  .shortlist-work-actions {
    grid-column: auto;
    justify-content: stretch;
  }

  .focus-bar-row {
    grid-template-columns: 1fr;
  }

  .focus-bar-row strong {
    text-align: left;
  }

  .card-actions {
    justify-content: stretch;
  }

  .card-actions button {
    flex: 1 1 150px;
  }

  .recharge-header,
  .school-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .recharge-brand small {
    display: none;
  }

  .recharge-intro,
  .recharge-visual {
    min-height: auto;
  }

  .plan-grid,
  .workflow-grid,
  .service-feature-grid {
    grid-template-columns: 1fr;
  }

  .recharge-visual {
    display: none;
  }

  .school-detail-hero,
  .school-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .school-detail-actions {
    justify-content: flex-start;
  }

  .school-detail-metrics {
    grid-template-columns: 1fr;
  }

  .sim-fill-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .sim-fill-actions {
    flex-direction: column;
    grid-column: auto;
  }

  .sim-fill-actions button {
    width: 100%;
  }

  .sim-fill-save-status {
    grid-column: auto;
    justify-self: start;
    text-align: left;
  }

  .sim-fill-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sim-fill-table-wrap {
    max-height: none;
    min-height: 460px;
  }

  .sim-fill-page-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .sim-fill-page-title {
    flex-direction: column;
  }

  .sim-fill-choice-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .sim-fill-choice-fields {
    grid-template-columns: 1fr;
  }

  .sim-fill-major-table {
    overflow-x: auto;
  }

  .sim-fill-major-head,
  .sim-fill-major-row {
    min-width: 720px;
  }
}
