.preview-page .warn {
  margin: 0 0 12px;
  background: #fff7e8;
  color: #8a5a00;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.jd-box textarea {
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
}
.level-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.level-btns button, .style-btns button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.level-btns button.active, .style-btns button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.score-card {
  display: none;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  gap: 14px;
  align-items: center;
}
.score-card.show { display: flex; }
.score-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
  background: #e8f7ef;
  color: #1b7a45;
}
.score-num small { font-size: 12px; margin-left: 2px; }
.score-card.mid .score-num { background: #fff6e5; color: #b26b00; }
.score-card.low .score-num { background: #fdecea; color: #c0392b; }
.score-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.score-reason { font-size: 13px; line-height: 1.5; }
.score-meta { margin-top: 6px; font-size: 12px; color: var(--fg-muted); }
.style-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.stage { padding: 8px 0 48px; overflow-x: auto; }
.paper-wrap { width: 210mm; margin: 0 auto; }
#resume {
  --paper: #fff;
  --ink: #1c2333;
  --muted: #5c6675;
  --line: #d7dee7;
  --accent: #1f4e79;
  --accent-soft: #e8eef5;
  --gold: #c4a35a;
  width: 210mm;
  min-height: 297mm;
  background: var(--paper);
  color: var(--ink);
  padding: 14mm 16mm 16mm;
  box-shadow: 0 10px 32px rgba(20, 30, 50, 0.1);
}
#resume.theme-minimal { --accent: #171717; --accent-soft: #f4f4f5; --gold: #171717; --muted: #737373; }
#resume.theme-minimal .resume-header { border-bottom: 1px solid #171717; padding-bottom: 14px; }
#resume.theme-minimal .doc-title { color: #171717; letter-spacing: 0.42em; font-weight: 400; }
#resume.theme-minimal .resume-name { font-size: 32px; letter-spacing: 0.18em; font-weight: 500; }
#resume.theme-minimal .section-title { color: #171717; border: 0; font-size: 12px; letter-spacing: 0.28em; margin-top: 22px; padding-bottom: 0; }
#resume.theme-minimal .section-title span { border: 0; padding: 0; }
#resume.theme-sidebar { --accent: #1e3a5f; --accent-soft: #f3f6fa; --gold: #c4a35a; }
#resume.theme-sidebar .resume-header { border: 0; background: #1e3a5f; padding: 14px 16px 12px; margin-bottom: 16px; }
#resume.theme-sidebar .doc-title { color: #e4c56b; }
#resume.theme-sidebar .resume-name { color: #fff; }
#resume.theme-sidebar .section-title { border: 0; border-bottom: 2px solid #1e3a5f; padding-bottom: 6px; }
#resume.theme-sidebar .section-title span { border: 0; padding: 0; color: #1e3a5f; }
#resume.theme-modern { --accent: #0f766e; --accent-soft: #f0fdfa; --gold: #0f766e; --muted: #5b6b73; border-top: 7px solid #0f766e; }
#resume.theme-modern .resume-header { border-bottom: 1px solid #99f6e4; padding-bottom: 12px; }
#resume.theme-modern .doc-title { color: #0f766e; }
#resume.theme-modern .resume-name { color: #115e59; }
#resume.theme-modern .section-title { border: 0; border-bottom: 2px solid #0f766e; color: #0f766e; padding: 0 0 6px; }
#resume.theme-modern .section-title span { border: 0; padding: 0; }
#resume.theme-modern .skill-k { border-left: 3px solid #0f766e; padding-left: 8px; }
#resume.theme-modern .job-head { border: 0; border-left: 3px solid #0f766e; padding: 2px 0 2px 10px; }
#resume.theme-elegant { --accent: #7f1d1d; --accent-soft: #fdf4f4; --gold: #b45309; --muted: #6b5e57; }
#resume.theme-elegant .resume-header { text-align: center; border-top: 1px solid #7f1d1d; border-bottom: 1px solid #7f1d1d; padding: 12px 0; }
#resume.theme-elegant .doc-title,
#resume.theme-elegant .resume-name,
#resume.theme-elegant .section-title,
#resume.theme-elegant .project-title { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; }
#resume.theme-elegant .section-title { text-align: center; border: 0; }
#resume.theme-elegant .section-title span { border-bottom: 1px solid #b45309; }
.resume-header { border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 16px; }
.doc-title { font-size: 12px; letter-spacing: 0.28em; color: var(--accent); font-weight: 600; }
.resume-name { margin-top: 4px; font-size: 28px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; }
.section-title { margin: 18px 0 10px; font-size: 14px; color: var(--accent); letter-spacing: 0.12em; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.section-title span { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--gold); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 16px; }
.info-item { font-size: 12.5px; line-height: 1.5; }
.info-item.intent { grid-column: 1 / -1; }
.info-k { color: var(--muted); margin-right: 6px; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.job-company { font-size: 14px; font-weight: 700; margin-right: 10px; }
.job-role { font-size: 13px; color: var(--muted); }
.job-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.project-title { margin: 10px 0 6px; font-size: 13px; color: var(--accent); font-weight: 600; }
#resume p, .desc, .result-line { margin: 0 0 6px; font-size: 12.5px; line-height: 1.65; }
.bullet-list, .edu-list { margin: 4px 0 8px; padding-left: 18px; }
.bullet-list li, .edu-list li { margin: 3px 0; font-size: 12.5px; line-height: 1.6; }
.skill-list { display: flex; flex-direction: column; gap: 6px; }
.skill-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.55; }
.skill-k { flex: 0 0 92px; color: var(--accent); font-weight: 600; }
.project-block { margin: 0 0 8px; }
.project-tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  margin-bottom: 4px;
  background: #fff3c4;
  color: #8a6a00;
}
.mock-tag { background: #ffe8d6; color: #b34d00; }
.project-block.is-replaced { background: #fff8dc; border-left: 3px solid #e6b800; padding: 6px 10px; margin: 8px 0; border-radius: 0 6px 6px 0; }
.project-block.is-mock { background: #fff4ec; border-left: 3px solid #e67a2e; padding: 6px 10px; margin: 8px 0; border-radius: 0 6px 6px 0; }
.skills-block.is-replaced { background: #eef6ff; border-left: 3px solid #1f4e79; padding: 6px 10px; margin: 8px 0; border-radius: 0 6px 6px 0; }
body.exporting .paper-wrap { transform: none !important; }
body.exporting #resume { box-shadow: none; }
body.exporting .project-block.is-replaced,
body.exporting .project-block.is-mock,
body.exporting .skills-block.is-replaced { background: transparent; border: 0; padding: 0; }
body.exporting .project-tag { display: none; }
@media (max-width: 900px) {
  .paper-wrap { transform: scale(0.72); transform-origin: top center; }
}
