:root {
  font-family: "Geist", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #152439;
  background: #f6f8fb;
  font-size: 15px;
  --text: #152439;
  --muted: #52647b;
  --line: #dce4ee;
  --accent: #2758c5;
  --accent-dark: #1c449f;
  --accent-light: #edf3ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5685ed; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: white; border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.brand small { font-weight: 600; font-size: 14px; margin-inline-start: 4px; }
.brand-mark { position: relative; display: inline-block; width: 32px; height: 32px; background: #17335e; border-radius: 9px; }
.brand-mark i { position: absolute; top: 9px; width: 3px; height: 14px; border-radius: 2px; background: #d6e5ff; }
.brand-mark i:nth-child(1) { left: 11px; transform: rotate(27deg); }
.brand-mark i:nth-child(2) { right: 11px; transform: rotate(-27deg); }
.brand-mark i:nth-child(3) { top: 17px; left: 12px; width: 8px; height: 2px; }
.top-actions { display: flex; gap: 18px; align-items: center; }
.mode { display: inline-flex; align-items: center; gap: 7px; background: #fff5d9; color: #795016; border: 1px solid #f1e0b4; border-radius: 99px; font-size: 12px; font-weight: 650; padding: 4px 10px; white-space: nowrap; }
.mode i { width: 6px; height: 6px; border-radius: 50%; background: #b77924; }
.intro { margin-block: 41px 26px; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 750; letter-spacing: -.045em; margin: 0 0 8px; }
p { margin: 0; }
.intro p, .muted { color: var(--muted); line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; background: #eaf0f7; padding: 5px; margin: 0 0 24px; border-radius: 12px; }
.step { min-width: 0; display: flex; min-height: 50px; padding: 8px 14px; gap: 10px; align-items: center; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.step-marker { flex: 0 0 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; border: 1px solid #bfccdd; font-size: 12px; }
.step[aria-current] { background: white; box-shadow: 0 1px 4px #17335e16; color: #1e53c2; }
.step[aria-current] .step-marker { background: var(--accent); border-color: var(--accent); color: white; }
.step.done .step-marker { background: #dce9ff; color: #2453a8; border-color: transparent; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 327px); align-items: start; gap: 20px; padding-bottom: 45px; }
.surface { background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 4px 13px #17335e08; }
.main-panel { padding: 29px; min-height: 400px; }
h2 { margin: 0 0 7px; font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
h2:focus { outline: none; }
.panel-intro { margin-bottom: 21px; }
.upload { background: #f5f8ff; border: 1px dashed #9eb8e9; border-radius: 11px; text-align: center; padding: 31px 16px; margin-top: 21px; }
.upload.dragging { background: #e6efff; border-color: var(--accent); }
.upload-symbol { display: grid; place-content: center; height: 40px; width: 40px; border-radius: 11px; margin: 0 auto 11px; background: #e3edff; color: #2452ad; font-size: 23px; }
.upload h3 { margin: 0 0 8px; font-size: 17px; }
.upload .muted { margin-bottom: 18px; font-size: 13px; }
.action { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; color: white; background: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.action:hover:not(:disabled) { background: var(--accent-dark); }
.action.secondary { background: white; color: #2b4364; border-color: #c9d5e5; }
.action.secondary:hover:not(:disabled) { background: #eef3fa; }
.text-button { color: #2d56a8; background: transparent; border: none; padding: 7px 0; font-weight: 600; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.start-actions { justify-content: space-between; }
.muted.small { font-size: 13px; }
.draft { overflow: hidden; }
.draft-header { background: #f0f5ff; border-bottom: 1px solid #dce7fa; padding: 20px 21px; }
.draft-header h2 { font-size: 18px; margin-bottom: 3px; }
.draft-content { padding: 5px 21px 21px; }
.draft-data { margin: 0; }
.draft-data > div { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid #e7edf5; }
.draft-data > div:last-child { border: none; }
.draft-data dt { font-size: 12px; color: var(--muted); }
.draft-data dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.draft-data ul { margin: 0; padding-inline-start: 18px; }
.draft-data li + li { margin-top: 6px; }
.draft-foot { border-radius: 8px; background: #f1f5fa; padding: 11px 12px; margin-top: 11px; font-size: 12px; line-height: 1.6; color: #465c76; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 4px; }
.field { min-width: 0; display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .course-note select { background: white; color: var(--text); border-radius: 7px; border: 1px solid #becbdc; padding: 9px 10px; min-width: 0; width: 100%; min-height: 42px; }
.check { display: flex; gap: 8px; align-items: center; line-height: 1.45; margin-top: 10px; font-size: 14px; }
.check input, .course-row input { flex-shrink: 0; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.attachment { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; align-items: center; margin-top: 14px; }
.attachment img { width: 50px; height: 58px; object-fit: contain; background: #f0f3f8; border-radius: 4px; }
.attachment div { min-width: 0; overflow-wrap: anywhere; }
.attachment button { white-space: nowrap; margin-inline-start: auto; }
.product-list, .course-list { display: grid; gap: 10px; }
.product { text-align: left; border: 1px solid #cad7e9; background: white; color: var(--text); padding: 15px; width: 100%; border-radius: 9px; display: grid; gap: 4px; }
.product:hover { border-color: var(--accent); background: #f5f8ff; }
.product strong { font-size: 16px; }
.pill { width: fit-content; font-size: 12px; background: #eaf1ff; color: #204eae; border-radius: 20px; padding: 3px 8px; font-weight: 650; }
.product p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.course { border: 1px solid #dce4ee; background: #fff; border-radius: 9px; }
.course.selected { background: #f7faff; border-color: #a8c0ed; }
.course-row { display: flex; align-items: start; gap: 11px; padding: 12px; cursor: pointer; }
.course-row input { margin-top: 3px; }
.course-row strong, .course-row small { display: block; }
.course-row small { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.course-note { padding: 0 12px 12px 41px; display: grid; gap: 4px; font-size: 13px; }
.callout { padding: 10px 12px; background: var(--accent-light); border-radius: 8px; color: #244577; font-size: 13px; line-height: 1.55; margin-bottom: 15px; }
.error { color: #a22524; font-size: 13px; margin-top: 10px; }
.review-grid { padding: 2px 0 0; margin: 0 0 17px; }
.review-grid div { padding: 10px 0; display: grid; gap: 6px; grid-template-columns: 108px 1fr; border-bottom: 1px solid var(--line); }
.review-grid dt { color: var(--muted); font-size: 13px; }
.review-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.review-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 8px; }
.review-card strong { display: block; }
.review-card .muted { font-size: 13px; }
.receipt { color: #16704c; display: inline-block; margin-top: 5px; font: 600 14px "IBM Plex Mono", ui-monospace, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 38px); }
  .workspace { grid-template-columns: 1fr; }
  .intro { margin-top: 28px; }
  .main-panel { min-height: 0; }
}
@media (max-width: 500px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 58px; }
  .top-actions { gap: 9px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand small { font-size: 12px; margin-inline-start: 0; }
  .brand-mark { scale: .9; }
  .intro { margin-block: 23px 17px; }
  .steps { margin-bottom: 13px; }
  .step { justify-content: center; align-items: center; padding: 6px 2px; gap: 4px; font-size: 11px; white-space: nowrap; }
  .step-marker { height: 16px; flex-basis: 16px; font-size: 10px; }
  .main-panel { padding: 17px; }
  h2 { font-size: 20px; }
  .upload { padding: 23px 10px; }
  .field-grid { grid-template-columns: 1fr; }
  input, select { font-size: 16px !important; }
  .start-actions { justify-content: flex-start; }
}

.review-layout { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.review-grid dd { white-space: pre-wrap; }
.review-grid ul { margin: 0; padding-inline-start: 1.3em; }
.review-hint { margin-top: 9px; }
.suggest-panel { border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin-bottom: 20px; background: #f5f8ff; }
.suggest-panel .actions { margin-top: 9px; }
.field textarea { font: inherit; font-weight: 400; color: var(--text); background: white; border: 1px solid #becbdc; border-radius: 7px; resize: vertical; padding: 9px 10px; width: 100%; min-width: 0; }
.action:disabled { cursor: not-allowed; opacity: .55; }
