:root {
  color-scheme: light;
  --navy: #0f2744;
  --gold: #c9a84c;
  --bg: #f7f5f0;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.09);
  --text-1: #1a1a1a;
  --text-2: #555555;
  --text-3: #999999;
  --green: #1d9e75;
  --orange: #d65f3f;
  --blue-soft: #edf3f8;
  --gold-soft: #f7efd5;
  --green-soft: #e8f5ef;
  --orange-soft: #f8ece6;
  --radius-card: 14px;
  --radius-control: 8px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100vh;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "PingFang HK", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

strong,
.stat-num,
.score-pill strong,
.metric strong {
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--text-1);
  outline: 0;
  transition: border-color 0.16s ease;
}

input:focus {
  border-color: var(--navy);
}

input::placeholder {
  color: var(--text-3);
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.app-header {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  background: var(--navy);
  color: #fff;
}

.brand-lockup,
.header-right,
.nav-status,
.site-footer span,
.primary-button,
.secondary-button,
.nav-consult {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.nav-brand > span:last-child {
  display: grid;
  gap: 0;
}

.nav-name {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-sub {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.header-right {
  gap: 10px;
  flex: 0 0 auto;
}

.language-switch {
  display: inline-grid;
  width: 72px;
  height: 28px;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.language-option {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1;
}

.language-option[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

.nav-consult {
  min-height: 34px;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  background: var(--navy);
  color: #fff;
}

.hero-inner {
  display: grid;
  max-width: var(--max-width);
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 36px;
  align-items: center;
  margin: 0 auto;
  padding: 31px 32px 30px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  max-width: 560px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.32;
}

.hero-title em {
  color: var(--gold);
  font-style: normal;
}

.hero-desc {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.8;
}

.hero-skyline {
  width: 200px;
  justify-self: end;
  fill: var(--gold);
  opacity: 0.35;
}

.hero-bridge {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.bridge-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bridge-summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.bridge-stats {
  display: flex;
  gap: 34px;
  align-items: center;
  min-width: 0;
}

.bridge-stat {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 5px;
  align-items: baseline;
}

.stat-num {
  color: var(--navy);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.stat-unit {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.stat-label {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.2;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafaf9;
  color: var(--text-2);
  font-size: 11px;
}

.status-pill i,
.data-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.status-pill b {
  color: var(--navy);
  font-weight: 600;
}

.status-pill em {
  font-style: normal;
}

.form-steps {
  display: flex;
  min-height: 50px;
  justify-content: center;
  gap: 28px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.form-steps::-webkit-scrollbar {
  display: none;
}

.step-item {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.step-dot {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 50%;
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.step-item.is-active {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

.step-item.is-active .step-dot {
  border-color: var(--navy);
  color: var(--navy);
}

.step-item.is-done {
  color: var(--gold);
}

.step-item.is-done .step-dot {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  font-size: 0;
}

.step-item.is-done .step-dot::before {
  content: "\ea5e";
  font-family: "tabler-icons";
  font-size: 13px;
  line-height: 1;
}

.workspace {
  display: grid;
  max-width: var(--max-width);
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin: 22px auto 0;
  padding: 0 24px;
}

.main-column,
.sidebar {
  display: grid;
  gap: 16px;
}

.sidebar {
  position: sticky;
  top: 16px;
}

.form-card,
.side-card,
.report-output,
.advisor-workbench {
  overflow: hidden;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}

.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.form-card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.form-card-head h2 i {
  color: var(--gold);
  font-size: 20px;
}

.form-card-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
}

.form-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.form-section > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.form-section > h2 span {
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

.span-2 {
  grid-column: 1 / -1;
}

.text-field,
.field-block,
.rating-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.text-field > span,
.field-label,
.rating-field > span {
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}

.field-hint {
  margin: 0;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.6;
}

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

.chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fafaf9;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.chip:hover {
  border-color: rgba(15, 39, 68, 0.28);
  color: var(--navy);
}

.chip.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.is-scrollable {
  max-height: 112px;
  overflow-y: auto;
  padding-right: 4px;
}

.rating-grid {
  gap: 12px 16px;
}

.rating-field strong {
  color: var(--navy);
}

.rating-squares {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  max-width: 230px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafaf9;
}

.rating-square {
  height: 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
}

.rating-square.is-active {
  background: var(--navy);
  color: #fff;
}

.ability-overview {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafaf9;
}

.ability-overview-head,
.ability-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
}

.ability-overview-head {
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 700;
}

.ability-overview-head em {
  grid-column: 3;
  color: var(--text-3);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  text-align: right;
}

.ability-bars {
  display: grid;
  gap: 8px;
}

.ability-row {
  color: var(--text-2);
  font-size: 12px;
}

.ability-row i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.11);
}

.ability-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.ability-row em {
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.form-actions {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 22px 22px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.primary-button {
  height: 46px;
  background: var(--navy);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
}

.secondary-button:hover {
  border-color: rgba(15, 39, 68, 0.28);
  color: var(--navy);
}

.side-card,
.report-output {
  padding: 16px;
}

.sidebar-title,
.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-title span,
.report-heading p {
  margin: 0;
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-title em,
.report-heading span {
  color: var(--text-3);
  font-size: 11px;
  font-style: normal;
}

.database-overview .data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.data-row {
  min-height: 82px;
  padding: 13px;
  border-radius: 10px;
  background: var(--bg);
}

.data-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.data-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--navy);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.data-value::before {
  content: "\ea52";
  color: var(--gold);
  font-family: "tabler-icons";
  font-size: 18px;
  font-weight: 400;
}

.data-dot {
  display: none;
}

.hot-tags,
.tag-row,
.lead-schools,
.paper-badges,
.advisor-ai-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hot-tag,
.tag,
.lead-schools b,
.paper-badges span,
.advisor-ai-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f0ed;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
}

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

.report-panel,
.assessment-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.report-empty,
.empty-state {
  display: grid;
  justify-items: center;
  padding: 28px 16px;
  color: var(--text-3);
  text-align: center;
}

.report-empty-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 18px;
}

.report-empty-title {
  margin-bottom: 4px;
  color: var(--navy);
  font-weight: 700;
}

.report-empty-desc,
.empty-state p {
  max-width: 260px;
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
}

.report-content {
  overflow: hidden;
  border-radius: 12px;
}

.report-header,
.school-card-main,
.assessment-actions,
.report-cta,
.workbench-head,
.lead-card-head,
.lead-actions,
.paper-subject-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-header {
  align-items: flex-start;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.report-title {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.report-meta {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

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

.report-action-btn {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-2);
  font-size: 11.5px;
}

.report-action-btn.is-primary,
.report-cta-btn {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.kicker,
.rank-label,
.report-full-label {
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-hero h2 {
  margin: 4px 0 6px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.report-hero p,
.report-full-section p,
.school-summary,
.school-meta,
.school-name-en,
.report-cta-text,
.question-item p,
.question-item span {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
}

.readiness-card {
  display: grid;
  align-content: center;
  justify-items: end;
}

.readiness-card strong {
  color: var(--navy);
  font-size: 25px;
  font-weight: 600;
}

.readiness-card span,
.metric span {
  color: var(--text-3);
  font-size: 11px;
}

.meter,
.match-progress,
.score-line b {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.1);
}

.meter {
  width: 92px;
  margin-top: 8px;
}

.meter i,
.score-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.metric {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric:nth-child(even) {
  border-right: 0;
}

.metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border);
}

.tier-card {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.tier-card:last-child {
  border-bottom: 0;
}

.tier-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tier-safe .tier-label {
  color: var(--green);
}

.tier-safe .tier-label::before {
  background: var(--green);
}

.tier-target .tier-label {
  color: var(--gold);
}

.tier-target .tier-label::before {
  background: var(--gold);
}

.tier-reach .tier-label {
  color: var(--orange);
}

.tier-reach .tier-label::before {
  background: var(--orange);
}

.tier-desc,
.tier-empty {
  margin: 0 0 9px;
  color: var(--text-3);
  font-size: 11.5px;
}

.school-item {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-size: 12px;
}

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

.school-item em {
  color: var(--text-3);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-style: normal;
}

.report-full {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.report-full-grid,
.insight-grid,
.question-plan,
.reason-grid,
.school-evidence,
.advisor-grid,
.agent-reasoning,
.exclusion-list,
.timeline-list,
.rubric-grid,
.answer-sheet-table {
  display: grid;
  gap: 10px;
}

.report-full-grid {
  margin-top: 8px;
}

.report-full-section {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.report-full-section h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.agent-reasoning-row,
.exclusion-item,
.timeline-item,
.rubric-item,
.answer-sheet-row,
.lead-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.agent-reasoning-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.agent-reasoning-row span,
.timeline-item span,
.lead-card-head span {
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.agent-reasoning-row p,
.exclusion-item p,
.timeline-item p,
.rubric-item p,
.muted-copy,
.evidence-list,
.advisor-grid li {
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
}

.exclusion-item,
.timeline-item,
.rubric-item,
.answer-sheet-row {
  padding: 11px;
}

.exclusion-item strong,
.timeline-item strong,
.rubric-item strong,
.advisor-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}

.evidence-list {
  padding-left: 18px;
}

.advisor-grid {
  margin-top: 12px;
}

.advisor-grid > div {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.advisor-grid ul {
  margin: 0;
  padding-left: 18px;
}

.report-cta {
  padding: 14px;
  background: #f3f2ef;
}

.report-cta-btn {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

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

.tier-section {
  display: grid;
  gap: 10px;
}

.tier-head {
  display: none;
}

.school-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.school-card h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.school-card-main {
  align-items: flex-start;
}

.school-name-en {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.35;
}

.school-meta {
  margin-top: 5px;
}

.score-pill {
  display: grid;
  min-width: 56px;
  justify-items: end;
  padding-top: 2px;
}

.score-pill strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
}

.score-pill span {
  color: var(--text-3);
  font-size: 10px;
}

.match-progress {
  width: 100%;
}

.match-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.match-progress.is-high i {
  background: var(--green);
}

.match-progress.is-low i {
  background: var(--orange);
}

.badge-type {
  justify-self: start;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}

.badge-type.is-direct {
  background: var(--gold-soft);
  color: #7b6122;
}

.badge-type.is-gov {
  background: var(--green-soft);
  color: #17684f;
}

.badge-type.is-private {
  background: var(--orange-soft);
  color: #8b3c25;
}

.tier-tag-0 {
  background: var(--green-soft);
  color: var(--green);
}

.tier-tag-1 {
  background: var(--gold-soft);
  color: #7b6122;
}

.tier-tag-2 {
  background: var(--orange-soft);
  color: var(--orange);
}

.school-details summary {
  list-style: none;
}

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

.expand-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.score-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  color: var(--text-2);
  font-size: 12px;
}

.score-line em {
  color: var(--navy);
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  text-align: right;
}

.assessment-panel {
  padding: 14px;
}

.assessment-actions {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.assessment-actions h2,
.paper-cover h2,
.paper-subject-head h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.assessment-actions p,
.paper-instructions p,
.paper-source-note p,
.paper-source-note li,
.paper-block li,
.paper-passage,
.paper-match-note,
.paper-compliance,
.paper-mini-meta {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
}

.assessment-paper {
  padding-top: 14px;
}

.paper-cover {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.paper-cover p {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}

.paper-meta,
.paper-student-info,
.lead-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.paper-meta span,
.paper-student-info span,
.lead-meta span {
  color: var(--text-2);
  font-size: 11px;
}

.paper-subject {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.matched-paper-list,
.workbench-grid {
  display: grid;
  gap: 10px;
}

.matched-paper-card {
  display: grid;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.matched-paper-card h4 {
  margin: 5px 0 3px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.matched-paper-card p {
  margin: 0;
  color: var(--text-3);
  font-size: 11px;
}

.paper-action {
  justify-self: start;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
}

.paper-action.is-disabled {
  color: var(--text-3);
}

.answer-sheet-row {
  display: grid;
  gap: 6px;
}

.rubric-grid {
  grid-template-columns: 1fr;
}

.conversion-card {
  display: grid;
  gap: 10px;
}

.advisor-workbench {
  max-width: var(--max-width);
  margin: 22px auto 0;
  padding: 0;
}

.workbench-head {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.workbench-head p {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.workbench-head h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 18px;
}

.workbench-head span {
  color: var(--text-2);
  font-size: 12px;
}

.workbench-grid {
  padding: 16px;
}

.lead-card {
  padding: 14px;
}

.lead-card-head h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 15px;
}

.lead-card-head em {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7b6122;
  font-size: 11px;
  font-style: normal;
}

.lead-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lead-actions button {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.advisor-ai-report {
  display: grid;
  gap: 10px;
}

.advisor-ai-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafaf9;
}

.advisor-ai-body h3,
.advisor-ai-body h4,
.advisor-ai-body p,
.advisor-ai-body ol {
  margin: 0;
}

.advisor-ai-body h3,
.advisor-ai-body h4 {
  color: var(--navy);
}

.advisor-ai-body p,
.advisor-ai-body li {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.75;
}

.site-disclaimer {
  display: flex;
  max-width: var(--max-width);
  align-items: flex-start;
  gap: 10px;
  margin: 22px auto 0;
  padding: 13px 16px;
  border-radius: 10px;
  background: #f3f2ef;
  color: var(--text-2);
}

.site-disclaimer i {
  color: var(--gold);
  font-size: 18px;
  line-height: 1.45;
}

.site-disclaimer p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  max-width: var(--max-width);
  justify-content: space-between;
  gap: 16px;
  margin: 24px auto 0;
  padding: 16px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
}

.site-footer span:last-child {
  gap: 6px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 16px;
  }

  .nav-sub,
  .nav-consult i {
    display: none;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 28px 18px 26px;
  }

  .hero-skyline {
    display: none;
  }

  .hero-title {
    font-size: 25px;
  }

  .bridge-inner {
    padding: 0 16px;
  }

  .bridge-summary {
    display: grid;
    min-height: 0;
    gap: 12px;
    padding: 14px 0;
  }

  .bridge-stats {
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .bridge-stats::-webkit-scrollbar {
    display: none;
  }

  .bridge-stat {
    flex: 0 0 auto;
  }

  .form-steps {
    justify-content: flex-start;
    gap: 22px;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .sidebar {
    position: static;
  }

  .field-grid,
  .rating-grid,
  .form-actions,
  .database-overview .data-list,
  .paper-meta,
  .paper-student-info,
  .lead-meta {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .form-card-head,
  .form-section,
  .form-actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .report-header,
  .report-hero,
  .assessment-actions,
  .report-cta,
  .workbench-head,
  .school-card-main,
  .lead-card-head {
    display: grid;
  }

  .report-actions {
    justify-content: stretch;
  }

  .report-action-btn,
  .report-cta-btn {
    width: 100%;
  }

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

  .metric,
  .metric:nth-child(even),
  .metric:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .site-disclaimer,
  .site-footer,
  .advisor-workbench {
    margin-right: 16px;
    margin-left: 16px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .nav-name {
    max-width: 116px;
  }

  .language-switch {
    width: 64px;
  }

  .bridge-stats {
    gap: 16px;
  }

  .status-row {
    gap: 6px;
    align-items: flex-start;
  }
}

@media print {
  .app-header,
  .hero,
  .hero-bridge,
  .form-card,
  .sidebar,
  .advisor-workbench,
  .report-heading,
  .school-list,
  .site-disclaimer,
  .site-footer,
  .toast {
    display: none !important;
  }

  body,
  .app-shell,
  .workspace,
  .main-column {
    display: block;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    background: #fff;
  }

  body.printing-report .assessment-panel,
  body.printing-report .report-actions,
  body.printing-report .report-cta {
    display: none !important;
  }

  body.printing-report .report-panel {
    display: block !important;
    border: 0;
  }

  body.printing-assessment .report-panel,
  body.printing-assessment .school-list {
    display: none !important;
  }

  body.printing-assessment .assessment-panel {
    display: block !important;
    border: 0;
    padding: 0;
  }

  .assessment-actions {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════
   Batch-2 商业逻辑改造新增样式
   ─────────────────────────────────────────────── */

/* 提交按钮包装 + 副提示文字 */
.submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.submit-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ── 右侧模糊预览卡 ── */
.preview-teaser .preview-blur-wrap {
  position: relative;
  border-radius: var(--radius-control);
  overflow: hidden;
  background: var(--bg);
  padding: 14px;
  border: 1px solid var(--border);
}
.preview-blur-content {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.preview-tier-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
}
.preview-tier-label.safe  { background: var(--green-soft);  color: var(--green); }
.preview-tier-label.target { background: var(--blue-soft); color: #1a6bc2; }
.preview-tier-label.reach  { background: var(--orange-soft); color: var(--orange); }
.preview-school-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: var(--card);
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
}
.preview-school-name { flex: 1; font-weight: 500; }
.preview-match {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-3);
}
.preview-match span {
  display: inline-block; height: 4px;
  background: linear-gradient(to right, var(--navy), var(--gold));
  border-radius: 2px;
}
.preview-school-row.fuzz { opacity: .55; filter: blur(2px); }
.preview-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(247, 245, 240, .72);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 18px;
}
.preview-blur-overlay i {
  font-size: 28px;
  color: var(--navy);
  opacity: .7;
}
.preview-blur-overlay p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-1);
  line-height: 1.6;
}
.preview-blur-overlay p strong { color: var(--navy); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── 顾问服务承诺卡 ── */
.advisor-promise-card { background: var(--navy) !important; color: #fff; }
.advisor-promise-card .sidebar-title { border-bottom-color: rgba(255,255,255,.15); }
.advisor-promise-card .sidebar-title span { color: rgba(255,255,255,.6) !important; }
.advisor-promise-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 0;
}
.advisor-promise-icon {
  font-size: 26px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.advisor-promise-inner strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.advisor-promise-inner > div > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}
.advisor-promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.advisor-promise-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.advisor-promise-list i { color: var(--gold); font-size: 14px; }

/* ── 成功页 ── */
.success-page {
  padding: 24px 16px 48px;
  display: flex;
  justify-content: center;
}
.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(15,39,68,.08);
}
.success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 34px;
  color: var(--green);
}
.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.success-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 18px;
}
.success-eta {
  background: var(--gold-soft);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 18px;
}
.success-eta strong { color: var(--orange); }
.success-eta span { font-size: 12px; color: var(--text-3); }
.success-summary {
  background: var(--bg);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 18px;
  font-size: 13px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--text-3); }
.summary-row strong { color: var(--text-1); }
.success-qr {
  margin-bottom: 24px;
}
.success-qr p { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.success-qr img {
  display: block; margin: 0 auto 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.success-qr strong { font-size: 15px; color: var(--navy); }
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.success-actions a, .success-actions button {
  flex: 1; min-width: 130px; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* 移动端成功页 */
@media (max-width: 640px) {
  .success-card { padding: 28px 18px; }
  .success-actions { flex-direction: column; }
  .success-actions a, .success-actions button { width: 100%; }
}
