:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --paper: #fff;
  --ink: #182932;
  --muted: #51636e;
  --line: #dce4e9;
  --brand: #24566d;
  --wash: #e9f1f5;
  --good: #256348;
  --warn: #835211;
  --danger: #a13b31;
  --radius: 8px;
  font: 14px/1.6 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 3px solid #4388a9; outline-offset: 3px; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
.appbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-inner, .layout { max-width: 1512px; margin: auto; }
.bar-inner { min-height: 72px; padding: 12px 32px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; gap: 12px; align-items: center; margin-right: auto; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); color: white; background: var(--brand); font-weight: 700; font-size: 19px; }
.brand strong { display: block; font-size: 18px; line-height: 1.3; }
.brand small, .muted { color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--wash); color: var(--brand); font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge.good { background: #eaf5ee; color: var(--good); }
.badge.warn { background: #fbf1df; color: var(--warn); }
.badge.neutral { background: var(--bg); color: var(--muted); }
.button { min-height: 40px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); font-weight: 600; }
.button:hover:not(:disabled) { background: var(--bg); border-color: #98adb8; }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover:not(:disabled) { background: #194357; border-color: #194357; }
.button.compact { min-height: 36px; padding: 4px 9px; white-space: nowrap; }
.layout { display: grid; grid-template-columns: 184px minmax(0, 1fr) 230px; gap: 24px; padding: 28px 32px 56px; align-items: start; }
.navigation, .context { position: sticky; top: 20px; }
.nav-title { margin: 5px 0 12px 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.steps { display: grid; gap: 4px; list-style: none; padding: 0; }
.step { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); padding: 7px 10px; text-align: left; font-weight: 600; white-space: nowrap; }
.step:hover:not(:disabled) { background: var(--paper); }
.step[aria-current] { background: var(--wash); color: var(--brand); border-color: #cbdde7; }
.step-number { width: 24px; flex-shrink: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step[aria-current] .step-number { color: var(--brand); }
.workspace { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.heading { padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
.heading-top, .toolbar, .actions, .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.heading h1 { font-size: clamp(23px, 2.5vw, 29px); letter-spacing: -.02em; line-height: 1.3; }
.heading p { margin-top: 7px; color: var(--muted); }
.stage { padding: 24px 28px; min-height: 310px; }
.actions { padding: 14px 28px; border-top: 1px solid var(--line); }
.actions .primary { margin-left: auto; }
.context { display: grid; gap: 14px; }
.panel { padding: 15px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel h2 { font-size: 14px; margin-bottom: 8px; }
.panel p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.counts div { border-top: 1px solid var(--line); padding-top: 6px; min-width: 0; }
.counts dt { color: var(--muted); font-size: 12px; }
.counts dd { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.field-label { display: block; font-weight: 650; margin-bottom: 7px; }
textarea, .value, select { width: 100%; border: 1px solid #b8c8d1; border-radius: 6px; color: var(--ink); background: var(--paper); padding: 8px 10px; }
textarea { display: block; min-height: 136px; padding: 13px; font-size: 15px; resize: vertical; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.note { padding: 11px 13px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.note + .note { margin-top: 8px; }
.mt { margin-top: 16px; }
.error { color: var(--danger); margin-top: 8px; }
.error:empty { display: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: var(--bg); color: var(--muted); font-weight: 650; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.conditions { min-width: 530px; }
.conditions td:nth-child(2) { width: 30%; }
.results { min-width: 540px; }
.results th:last-child, .results td:last-child { text-align: right; }
.name { display: block; font-weight: 700; }
.sub { display: block; color: var(--muted); font-size: 12px; }
.toolbar { margin-bottom: 12px; }
.candidate-tools { margin-bottom: 16px; }
.candidate-tools label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.candidate-tools select { width: auto; max-width: 100%; }
.resume-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.resume-head h2 { font-size: 21px; }
.resume-section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.resume-section:last-child { border-bottom: 0; }
.resume-section h3 { font-size: 14px; margin-bottom: 4px; }
.resume-section p { color: var(--muted); }
.analysis { min-width: 520px; }
.analysis th:nth-child(3), .analysis td:nth-child(3) { white-space: nowrap; }
.report-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--wash); border-radius: var(--radius); margin-bottom: 16px; }
.score { font: 650 38px/1 system-ui, sans-serif; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.score small { font-size: 14px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-cols h3 { font-size: 14px; margin-bottom: 5px; }
.two-cols ul { padding-left: 20px; }
.receipt { padding: 12px; margin-top: 14px; background: #eaf5ee; color: var(--good); border-radius: 6px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 2; max-width: calc(100vw - 40px); padding: 8px 14px; border-radius: 6px; background: var(--ink); color: #fff; box-shadow: 0 4px 18px #18293226; }
.toast:empty { display: none; }
@media (max-width: 1170px) {
  .layout { grid-template-columns: 155px minmax(0, 1fr); }
  .context { grid-column: 2; position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 730px) {
  .bar-inner { padding: 9px 14px; gap: 9px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 16px; }
  .brand small { display: none; }
  .layout { display: block; padding: 12px 12px 32px; }
  .navigation { position: static; margin-bottom: 12px; }
  .nav-title { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { gap: 4px; padding: 4px 5px; font-size: 12px; }
  .step-number { width: 17px; font-size: 11px; }
  .heading, .stage, .actions { padding: 14px; }
  .stage { min-height: 0; }
  .context { margin-top: 12px; }
  .context { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; }
}
@media print {
  .navigation, .context, .actions, #reset, .toast { display: none; }
  .layout { display: block; padding: 0; }
}
