/* Independent Moffer resume workspace; paper dimensions are also used for PDF. */
.resume-app { max-width: 1400px; margin: 0 auto; padding: 32px 32px 64px; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; }
.editor-eyebrow { font-size: 12px; letter-spacing: 0; font-weight: calc(400 - var(--polish-weight-adjust)); color: var(--muted); margin-bottom: 6px; }
.editor-heading p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.resume-start { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; margin: 0 0 22px; border: 1px solid transparent; border-radius: 12px; background: var(--polish-layer-2); }
.resume-start-kicker { color: var(--muted); font-size: 12px; }
.resume-start p { color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.resume-start-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
/* 欢迎区里的次要入口是文字链接：主色 + 下划线 */
.resume-start-actions .editor-link { min-height: 0; padding: 5px; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.resume-start-actions .editor-link:hover { background: transparent; color: var(--accent); text-decoration-color: currentColor; }
.editor-save { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.editor-save .btn { gap: 8px; }
.editor-oss-badge { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 100%; margin-top: 12px; padding: 6px 12px 6px 10px; border: 1px solid transparent; border-radius: 10px; background: var(--polish-layer-2); color: var(--ink-2); font-size: 12px; line-height: 1.5; text-decoration: none; transition: border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.editor-oss-badge svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; color: var(--ink); }
.editor-oss-badge strong { color: var(--accent); font-weight: calc(600 - var(--polish-weight-adjust)); }
.editor-oss-stars { color: var(--warn-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.editor-oss-arrow { display: inline-block; transition: transform .2s; }
.editor-oss-badge:hover, .editor-oss-badge:focus-visible { text-decoration: none; border-color: transparent; color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); background: var(--polish-layer-3); }
.editor-oss-badge:focus-visible { text-decoration: none; border-color: transparent; color: var(--ink); box-shadow: var(--polish-focus-visible); transform: translateY(-1px); background: var(--polish-layer-3); outline: 2px solid transparent; outline-offset: 2px; }
.editor-oss-badge:hover .editor-oss-arrow, .editor-oss-badge:focus-visible .editor-oss-arrow { transform: translate(2px, -2px); }
.sample-badge { background: var(--wb-soft); color: var(--wb-warn); border-radius: 6px; padding: 2px 8px; white-space: nowrap; font-size: 12px; }
.editor-actions { border-block: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; margin-bottom: 22px; }
.editor-action-group { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.editor-actions { flex-wrap: wrap; }
.editor-dialog.sync-dialog { width: min(620px, calc(100vw - 32px)); }
.sync-record { border: 1px solid transparent; border-radius: 9px; padding: 16px; display: grid; gap: 12px; min-width: 0; background: var(--polish-layer-2); }
.sync-record legend { font-size: 14px; font-weight: calc(600 - var(--polish-weight-adjust)); }
.sync-record p { overflow-wrap: anywhere; }
/* 工具栏操作（导入 / 打开云端 / 保存 / 导出…）：小号次按钮，静止就有边框；悬停只换颜色，尺寸不跳 */
.editor-link { appearance: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 30px; padding: 3px 10px; border: 1px solid var(--wb-control-line); border-radius: 6px; background: var(--wb-control-bg); color: var(--ink); font: inherit; font-size: 12px; font-weight: calc(500 - var(--polish-weight-adjust)); cursor: pointer; }
.editor-link:hover { background: var(--wb-control-hover); border-color: var(--wb-control-line-hover); color: var(--ink); text-decoration: none; }
.editor-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.editor-link:disabled { border-style: dashed; background: transparent; color: var(--muted); cursor: not-allowed; }
@media (max-width: 640px) { .editor-link { min-height: 40px; padding-inline: 12px; } }
.action-divider { width: 1px; height: 14px; background: var(--line); }
.editor-message { color: var(--ink-2); font-size: 13px; padding: 12px 16px; background: var(--accent-soft); border: 1px solid transparent; border-radius: 9px; margin-bottom: 18px; overflow-wrap: anywhere; }
.editor-message:empty { display: none; }
.editor-message.is-error, .editor-message.err { color: var(--danger-text); background: var(--danger-soft); }
.editor-workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 28px; }
.editor-panel { background: var(--polish-layer-2); border: 1px solid transparent; border-radius: 14px; min-width: 0; overflow: hidden; position: sticky; top: 82px; display: flex; flex-direction: column; max-height: calc(100dvh - 108px); }
.version-bar, .editor-tabs, .editor-panel-footer { flex-shrink: 0; }
.editor-tab-panel { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
.version-bar { padding: 20px 20px 16px; }
.version-bar > label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; }
.version-row { display: flex; align-items: center; gap: 6px; }
.version-row select { flex: 1; width: 0; border: 1px solid var(--control-line); border-radius: 8px; padding: 6px 10px; color: var(--ink); font: inherit; font-size: 14px; }
.icon-button { font: inherit; border: 1px solid transparent; border-radius: 8px; min-width: 34px; height: 36px; color: var(--ink-2); background: var(--polish-layer-2); cursor: pointer; }
.icon-button:hover { border-color: transparent; color: var(--accent); background: var(--polish-layer-3); }
.icon-button:disabled { opacity: .4; cursor: not-allowed; }
.editor-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); padding-inline: 14px; }
.editor-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 12px 2px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.editor-tabs button[aria-selected="true"] { color: var(--accent); font-weight: calc(650 - var(--polish-weight-adjust)); border-bottom-color: var(--accent); }
.panel-section { padding: 20px; display: grid; gap: 14px; border-bottom: 1px solid var(--line-2); }
.panel-section-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-section-heading h2 { font-size: 14px; font-weight: calc(650 - var(--polish-weight-adjust)); line-height: 1.3; }
.panel-section-heading > span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.panel-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.editor-fields { display: grid; gap: 12px; }
.editor-field { display: grid; gap: 6px; min-width: 0; }
.editor-field > span { font-size: 12px; color: var(--ink-2); }
.editor-field input, .editor-field textarea, .editor-field select, .fact-list textarea { width: 100%; min-width: 0; border: 1px solid var(--control-line); border-radius: 7px; padding: 9px 10px; font: inherit; font-size: 14px; line-height: 1.6; color: var(--ink); }
.editor-field textarea, .fact-list textarea { resize: vertical; }
.editor-field input::placeholder, .editor-field textarea::placeholder { color: var(--muted); opacity: .75; }
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus, .fact-list textarea:focus, .version-row select:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: transparent; box-shadow: var(--polish-focus); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact-list { display: grid; gap: 10px; }
.fact-card, .fact-item { border: 1px solid transparent; border-radius: calc(7px + 12px); padding: 12px; background: var(--polish-layer-2); min-width: 0; }
.fact-card.is-selected, .fact-item.is-selected { border-color: transparent; background: var(--polish-layer-3); }
.fact-head, .fact-card-head { display: flex; align-items: flex-start; gap: 9px; }
.fact-head input, .fact-card input[type="checkbox"], .consent-field input { accent-color: var(--accent); width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; }
.fact-select { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.fact-titles { display: grid; gap: 2px; min-width: 0; }
.fact-type { font-size: 12px; color: var(--muted); font-weight: calc(400 - var(--polish-weight-adjust)); }
.fact-wording { display: grid; gap: 6px; margin-top: 12px; }
.fact-wording > span { font-size: 12px; color: var(--muted); }
.fact-wording textarea { font-size: 12px; line-height: 1.7; padding: 8px; }
/* 原始素材里的操作是文字链接：主色 + 下划线 */
.fact-source-content .fact-action { border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--accent); padding: 5px 0; margin-right: 10px; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.fact-source-content .fact-action:hover { text-decoration-color: currentColor; }
.facts-empty { padding: 18px 12px; background: var(--surface-2); border-radius: 8px; text-align: center; }
.facts-empty strong { font-size: 12px; }
.facts-empty p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 8px; }
.fact-title, .fact-card strong { font-size: 14px; font-weight: calc(500 - var(--polish-weight-adjust)); color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.fact-subtitle, .fact-card small { font-size: 12px; color: var(--muted); display: block; line-height: 1.5; }
.fact-card details, .fact-item details { margin-top: 10px; font-size: 12px; }
.fact-card summary, .fact-item summary { cursor: pointer; color: var(--muted); font-size: 12px; padding-block: 3px; }
.fact-card details textarea { margin-top: 8px; font-size: 12px; }
.fact-card details p, .fact-card details li { font-size: 12px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.fact-card details ul { padding-left: 16px; }
.fact-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
/* 卡片操作（上移 / 下移 / 移除）：小号次按钮，静止就有边框；悬停只换颜色 */
.fact-actions button { min-height: 28px; padding: 2px 10px; border: 1px solid var(--wb-control-line); border-radius: 6px; background: var(--wb-control-bg); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.fact-actions button:hover { background: var(--wb-control-hover); border-color: var(--wb-control-line-hover); color: var(--ink); }
.fact-actions button.is-danger { color: var(--danger-text); }
.fact-actions button.is-danger:hover { color: var(--danger-text); border-color: var(--danger-text); }
.fact-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.fact-actions button:disabled { border-style: dashed; background: transparent; color: var(--muted); cursor: not-allowed; }
@media (max-width: 640px) { .fact-actions button { min-height: 36px; padding-inline: 12px; } }
.add-fact { border: 1px solid var(--wb-control-line); background: var(--wb-control-bg); color: var(--accent); padding: 11px; border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; width: 100%; }
.editor-panel-footer { font-size: 12px; color: var(--muted); padding: 16px 20px; display: flex; align-items: center; gap: 6px; background: var(--surface-2); }
.local-dot { width: 5px; height: 5px; background: var(--ok); border-radius: 50%; flex: 0 0 5px; }
.template-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.template-thumb { background: #fff; border: 1px solid var(--line); height: 94px; padding: 12px 10px; display: grid; align-content: start; gap: 9px; box-shadow: 0 2px 4px #11172905; }
.template-thumb i { display: block; width: 55%; height: 7px; background: #243c50; }
.template-thumb b { height: 11px; display: block; border-top: 2px solid #243c50; background: repeating-linear-gradient(to bottom, transparent 0 3px,#e2e6ef 3px 4px); }
.template-modern { border-left: 4px solid #4f46e5; }
.template-modern i { background: #4f46e5; }
.template-modern b { border-color: #4f46e5; }
.template-compact { gap: 5px; padding: 9px; }
.template-compact i { width: 100%; height: 5px; }
.template-compact b { height: 15px; border-width: 1px; }
.range-field { display: grid; gap: 12px; margin-bottom: 8px; font-size: 12px; color: var(--ink-2); }
.range-field > span { display: flex; justify-content: space-between; gap: 10px; }
.range-field output { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.range-field input { width: 100%; accent-color: var(--accent); cursor: pointer; }
.color-field { grid-template-columns: 1fr auto; align-items: center; }
.color-field input { width: 42px; height: 28px; padding: 3px; cursor: pointer; }
.consent-field { display: flex; gap: 9px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.panel-section > .btn { width: 100%; font-size: 13px; min-height: 40px; }
.ai-review { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ai-review h3 { font-size: 14px; }
.ai-review ul { padding-left: 18px; font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.ai-review h4 { font-size: 12px; margin-block: 10px 5px; }
.ai-proposal { margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ai-proposal h3 { font-size: 12px; margin-bottom: 6px; }
.review-actions { display: flex; gap: 8px; }
.review-actions > button { flex: 1; }
.fit-result ul.fit-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.fit-summary { display: flex; align-items: baseline; gap: 10px; }
.fit-total { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.fit-level { font-size: 13px; font-weight: calc(600 - var(--polish-weight-adjust)); color: var(--ink-2); }
.fit-summary.is-blocked .fit-level { color: var(--danger-text); }
.fit-item > strong { font-size: 12px; color: var(--ink); }
.fit-chip, .fit-priority { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); }
.fit-priority { background: none; padding-inline: 0; color: var(--muted); }
.fit-item[data-verdict="pass"] .fit-chip, .fit-item[data-status="met"] .fit-chip { background: var(--wb-soft); color: var(--ink-2); }
.fit-item[data-verdict="flag"] .fit-chip, .fit-item[data-verdict="unverified"] .fit-chip, .fit-item[data-status="partial"] .fit-chip { background: var(--wb-soft); color: var(--wb-warn); }
.fit-item[data-verdict="fail"] .fit-chip, .fit-item[data-status="gap"] .fit-chip { background: var(--wb-soft); color: var(--danger-text); }
.fit-quote { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fit-note, .fit-advice { font-size: 12px; line-height: 1.65; color: var(--ink-2); margin-top: 3px; }
.panel-credit { padding: 9px 12px; border: 1px solid transparent; border-radius: 9px; background: var(--polish-layer-2); color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.panel-credit a { color: var(--accent); font-weight: calc(600 - var(--polish-weight-adjust)); padding: 1px 3px; margin: 0 -1px; border-radius: 4px; transition: background-color .2s, color .2s; }
.panel-credit a:hover, .panel-credit a:focus-visible { text-decoration: none; background: var(--accent-line); color: var(--accent-2); }
@media (prefers-reduced-motion: reduce) { .editor-oss-badge, .editor-oss-arrow { transition: none; } .editor-oss-badge:hover, .editor-oss-badge:focus-visible, .editor-oss-badge:hover .editor-oss-arrow, .editor-oss-badge:focus-visible .editor-oss-arrow { transform: none; } }
.ai-review li.is-stretch { margin-bottom: 6px; }
/* 求职任务栏（resume.html#task=<id>）与逐条审阅的建议卡片 */
.task-bar { display: grid; gap: 6px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid transparent; border-radius: 12px; background: var(--polish-layer-2); min-width: 0; }
.task-bar-title { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.task-bar-line { font-size: 12px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.task-bar-line[data-state="stale"], .task-bar-line[data-state="unknown"], .task-bar-line[data-state="bad"] { color: var(--warn-text); }
.task-bar-msg { font-size: 12px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.task-bar-msg:empty { display: none; }
.task-bar-msg.is-error { color: var(--danger-text); }
.task-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.fit-save { font-size: 12px; line-height: 1.6; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); }
.fit-save.is-error { color: var(--warn-text); background: var(--warn-soft); }
.fact-use { padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn-text); }
.ai-review .proposal-label { margin-block: 8px 3px; color: var(--muted); font-weight: calc(600 - var(--polish-weight-adjust)); }
.ai-review .proposal-original { color: var(--muted); }
.proposal-reason { font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.ai-proposal .review-actions { margin-top: 10px; }
.stretch-choices { border: 0; margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); display: grid; gap: 5px; }
.stretch-choices legend { float: left; width: 100%; margin-bottom: 2px; font-size: 12px; color: var(--warn-text); }
.stretch-option { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.stretch-option input { accent-color: var(--accent); margin-top: 4px; flex: 0 0 auto; }
/* 诊断报告、原句定位与待确认补充 */
.editor-tabs { grid-template-columns: repeat(4, 1fr); }
.diagnosis-status { font-size: 12px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.diagnosis-status[data-state="failed"], .diagnosis-status[data-state="stale"] { color: var(--danger-text); }
.diagnosis-status[data-state="running"], .diagnosis-status[data-state="waiting"] { color: var(--accent); }
.diagnosis-report, .supplement-list { display: grid; gap: 12px; }
.diagnosis-finding, .supplement-card { display: grid; gap: 8px; padding: 12px; border: 1px solid transparent; border-radius: 9px; background: var(--polish-layer-2); }
.diagnosis-finding[data-type="error"] { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.diagnosis-finding[data-type="confirm"] { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.diagnosis-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.diagnosis-quote { justify-self: start; padding: 5px 8px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--accent); font: inherit; font-size: 12px; line-height: 1.6; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.diagnosis-finding p, .supplement-card p { color: var(--ink-2); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.diagnosis-finding p strong, .supplement-card p strong { color: var(--ink); }
.fact-wording textarea.is-diagnosis-target { outline: 3px solid var(--warn); outline-offset: 2px; }
.diagnosis-question { display: grid; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--warn-soft); }
.diagnosis-question label { color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.diagnosis-question textarea { width: 100%; box-sizing: border-box; }
.supplement-card[data-status="confirmed"] { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.supplement-card[data-status="dismissed"] { opacity: .72; }
.supplement-original { padding: 8px; border-radius: 7px; background: var(--surface-2); }
.preview-pane { min-width: 0; background: var(--polish-layer-2); border: 1px solid transparent; border-radius: 14px; padding: 20px 28px 22px; overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.preview-toolbar > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.preview-toolbar strong { font-size: 12px; font-weight: calc(600 - var(--polish-weight-adjust)); color: var(--ink-2); }
.preview-dot { background: var(--ok); width: 5px; height: 5px; border-radius: 50%; }
.preview-meta { font-size: 10px; margin-left: 5px; }
#pageStatus { font-variant-numeric: tabular-nums; white-space: nowrap; }
#pageStatus.is-error, #pageStatus.is-overflow { color: var(--danger-text); }
.paper-scale { position: relative; margin-inline: auto; transform-origin: top left; }
.preview-caption, .preview-print-note { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 18px; }
.preview-print-note { margin-top: 7px; font-size: 10px; }
.resume-paper { --resume-font-size: 10.5pt; --resume-line-height: 1.5; --resume-margin: 14mm; --resume-section-gap: 5mm; --resume-accent: #243c50; box-sizing: border-box; width: 210mm; min-height: 297mm; padding: var(--resume-margin); background: #fff; color: #202b35; font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif; font-size: var(--resume-font-size); line-height: var(--resume-line-height); box-shadow: 0 3px 14px #1117290d; transform-origin: top left; overflow-wrap: anywhere; text-align: left; }
.resume-paper * { box-sizing: border-box; }
.resume-paper { letter-spacing: normal; }
.resume-paper h1, .resume-paper h2, .resume-paper h3 { text-wrap: wrap; }
.resume-paper p, .resume-paper ul, .resume-paper h1, .resume-paper h2, .resume-paper h3 { margin: 0; }
.resume-head { padding-bottom: 3mm; }
.resume-head.has-avatar { position: relative; padding-right: 30mm; min-height: 24mm; }
.resume-avatar { position: absolute; top: 0; right: 0; width: 24mm; height: 24mm; filter: drop-shadow(0 1mm 2mm rgba(67, 56, 202, .18)); }
.resume-avatar svg { display: block; width: 100%; height: 100%; }
.resume-name { font-size: 26pt; line-height: 1.2; letter-spacing: -.035em; font-weight: 750; color: var(--resume-accent); margin-bottom: 2mm; }
.resume-headline { font-size: calc(var(--resume-font-size) + 1.5pt); font-weight: 600; color: var(--resume-accent); margin-bottom: 1.5mm; }
.resume-contact { font-size: calc(var(--resume-font-size) - 1pt); color: #52606c; line-height: 1.6; white-space: pre-line; }
.resume-summary { color: #46535f; font-size: var(--resume-font-size); margin-top: 2mm !important; }
.resume-section { margin-top: var(--resume-section-gap); }
.resume-section-title { color: var(--resume-accent); font-size: calc(var(--resume-font-size) + 1.5pt); font-weight: 700; letter-spacing: 0; border-bottom: .35mm solid var(--resume-accent); padding-bottom: 1mm; margin-bottom: 2mm !important; line-height: 1.5; }
.resume-entry { margin-top: 2.5mm; break-inside: avoid; }
.resume-entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; }
.resume-entry-labels { flex: 1; min-width: 0; }
.resume-entry-title { font-size: var(--resume-font-size); line-height: var(--resume-line-height); font-weight: 650; color: #253542; letter-spacing: 0; }
.resume-entry-subtitle { font-weight: 500; color: #3f4d58; font-size: var(--resume-font-size); }
.resume-entry-dates { color: #67717b; font-size: calc(var(--resume-font-size) - 1pt); flex: 0 1 auto; max-width: 42%; overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums; }
.resume-bullets { padding-left: 4mm; margin-top: 1mm !important; }
.resume-bullets li { margin-top: .7mm; padding-left: .5mm; }
.resume-skills { white-space: pre-line; }
.resume-paper[data-template="modern"] .resume-head { border-left: 1.3mm solid var(--resume-accent); padding-left: 4mm; }
.resume-paper[data-template="modern"] .resume-section-title { border-bottom: .25mm solid #e2e6ef; border-left: 1mm solid var(--resume-accent); padding-left: 2mm; }
.resume-paper[data-template="compact"] .resume-name { font-size: 22pt; }
.resume-paper[data-template="compact"] .resume-head { padding-bottom: 0; }
.resume-paper[data-template="compact"] .resume-section { margin-top: calc(var(--resume-section-gap) * .75); }
.resume-paper[data-template="compact"] .resume-entry { margin-top: 1.5mm; }
.resume-paper[data-template="compact"] .resume-bullets li { margin-top: 0; }
.resume-paper .resume-placeholder { color: #a1a9b2; font-weight: 400; }
.mobile-switch { display: none; }
.editor-dialog { width: min(520px, calc(100% - 32px)); border: 1px solid transparent; padding: 24px; background: var(--polish-layer-1); color: var(--ink); border-radius: 14px; box-shadow: 0 20px 80px #11172930; max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px)); overflow-y: auto; scroll-padding-block: 88px 24px; }
.editor-dialog::backdrop { background: #11172965; }
.editor-dialog form { display: grid; gap: 16px; }
.editor-dialog .dialog-heading { position: sticky; top: -24px; z-index: 2; margin: -24px -24px 0; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.editor-dialog .dialog-heading .icon-button { min-width: 44px; height: 44px; flex: none; }
#publishForm > button[type="submit"] { width: 100%; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { font-size: 19px; }
.editor-dialog button[type="submit"] { justify-self: end; }
.resume-app [hidden] { display: none !important; }
@media (max-width: 760px) { .editor-panel { position: static; max-height: none; } .editor-tab-panel { overflow: visible; } }
@media (max-width: 1050px) { .resume-app { padding: 24px 20px 48px; } .editor-workspace { grid-template-columns: 300px minmax(0, 1fr); gap: 18px; } .preview-pane { padding-inline: 18px; } .editor-save { flex-wrap: wrap; justify-content: flex-end; gap: 8px; } }
@media (max-width: 760px) { .resume-start { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; } .resume-start-actions { align-items: stretch; } }
@media (max-width: 760px) { .resume-app { padding: 22px 16px 40px; } .editor-heading { gap: 12px; align-items: flex-start; } .editor-heading h1 { font-size: 24px; } .editor-eyebrow { font-size: 8px; } .editor-heading p { font-size: 12px; } .editor-save { flex-direction: column; align-items: flex-end; font-size: 10px; } .editor-save .btn { padding: 9px 12px; gap: 9px; font-size: 12px; min-height: 38px; } .editor-actions { align-items: flex-start; flex-direction: column; padding-block: 14px; gap: 14px; margin-bottom: 16px; } .editor-action-group { gap: 17px; } .editor-link { font-size: 11px; } .mobile-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--wb-control-bg); border: 1px solid var(--wb-control-line); padding: 4px; border-radius: calc(7px + 4px); margin-bottom: 14px; } .mobile-switch button { font: inherit; font-size: 12px; padding: 10px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; } .mobile-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: calc(600 - var(--polish-weight-adjust)); } .editor-workspace { display: block; } .resume-app[data-view="edit"] .preview-pane { display: none; } .resume-app[data-view="preview"] .editor-panel { display: none; } .preview-pane { padding: 16px 12px 20px; } .preview-toolbar { gap: 6px; margin-bottom: 16px; } .preview-meta { font-size: 9px; margin-left: 0; } .editor-fields { gap: 14px; } .editor-field input,.editor-field textarea,.editor-field select { font-size: 16px; } .editor-panel-footer { font-size: 11px; } }
@page { size: A4; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; color: #202b35 !important; height: auto !important; }
  body > header, body > footer, .editor-heading, .resume-start, .editor-actions, .editor-message, .mobile-switch, .editor-panel, .preview-toolbar, .preview-caption, .preview-print-note, .editor-dialog, noscript { display: none !important; }
  .resume-app, .editor-workspace, .preview-pane, .paper-scale { display: block !important; width: 210mm !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; transform: none !important; }
  .resume-paper { display: block !important; width: 210mm !important; min-height: 297mm !important; margin: 0 !important; box-shadow: none !important; transform: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 导入简历文件：分步状态 + 识别结果核对页 */
.import-dialog { width: min(780px, calc(100% - 32px)); overflow-y: auto; }
.import-body { display: grid; gap: 14px; min-width: 0; }
.import-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.import-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.import-steps li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.import-steps li b { font-weight: calc(650 - var(--polish-weight-adjust)); color: var(--ink-2); }
.import-steps li[data-state="running"] { color: var(--ink); outline: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.import-steps li[data-state="done"] { color: var(--ink); }
.import-steps li[data-state="failed"] { color: var(--danger-text); background: var(--danger-soft); }
#importReviewBody { display: grid; gap: 20px; }
.import-group { display: grid; gap: 10px; }
.import-group h3 { font-size: 14px; }
.import-items { display: grid; gap: 10px; }
.import-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.import-grid .editor-field:has(textarea) { grid-column: 1 / -1; }
.import-entry { display: grid; gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: calc(7px + 12px); background: var(--polish-layer-2); min-width: 0; }
.import-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.import-entry-head strong { font-size: 13px; overflow-wrap: anywhere; }
.import-remove { appearance: none; border: 0; background: transparent; padding: 3px 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.import-remove:hover { color: var(--danger-text); }
.import-field.is-key > span { color: var(--ink); font-weight: calc(650 - var(--polish-weight-adjust)); }
.import-field.is-key input { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.import-key-mark { color: var(--accent); font-style: normal; }
.import-missing { color: var(--warn-text); background: var(--warn-soft); font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.import-date-problem { color: var(--danger-text); font-size: 11px; line-height: 1.5; }
.import-field input.is-bad { border-color: var(--danger); }
.import-done ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
@media (max-width: 760px) { .import-grid { grid-template-columns: minmax(0, 1fr); } .import-steps li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Ellipsis belongs to the stem so the actual file type remains readable. */
.file-name { display:inline-flex; align-items:baseline; min-width:0; max-width:100%; vertical-align:bottom; }
.file-name-stem { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.file-name-extension { flex:none; white-space:nowrap; }

/* ===== 应用页统一（2026-10-28）：编辑器沿用 site.css 的按钮 / 输入框 / 标签条 / 提示，这里只补版面 ===== */
html body.app-page main .resume-start { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html body.app-page main .editor-panel { padding-right: 20px; border-right: 1px solid var(--line); overflow: visible; }
html body.app-page main .editor-panel-footer { background: none; border-top: 1px solid var(--line); padding: 12px 0; }
html body.app-page main .preview-pane { border: 0; border-radius: 10px; background: var(--wb-soft); }
html body.app-page main :is(.fact-card, .fact-item) { padding: 12px 0; border-bottom: 1px solid var(--line); }
html body.app-page main :is(.fact-card, .fact-item).is-selected { border-left: 2px solid var(--accent); padding-left: 10px; background: none; }
html body.app-page main :is(.icon-button, .add-fact) { min-height: 32px; border: 1px solid var(--wb-control-line); border-radius: 8px; background: var(--wb-control-bg); color: var(--ink); font-size: 14px; }
html body.app-page main :is(.icon-button, .add-fact):hover { background: var(--wb-control-hover); color: var(--ink); border-color: var(--wb-control-line-hover); }
html body.app-page main .add-fact { color: var(--accent); width: 100%; }
html body.app-page main :is(.task-bar, .diagnosis-finding, .supplement-card, .import-entry) { padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
html body.app-page main .panel-credit { padding: 8px 12px; border: 0; border-radius: 8px; background: var(--wb-soft); font-size: 12px; line-height: 1.6; }
html body.app-page main :is(.panel-section-heading h2, .ai-review h3) { font-size: 14px; }
html body.app-page main .panel-section { border-bottom: 1px solid var(--line); }
html body.app-page main .editor-heading h1 { font-size: 20px; }
html body.app-page main .editor-tabs { margin-inline: 0; padding-inline: 0; }
html body.app-page main .editor-tabs button { padding-inline: 4px; white-space: nowrap; }
@media (max-width: 1080px) { html body.app-page main .editor-panel { padding-right: 0; border-right: 0; } }

/* 手机未选中的预览切换也需保持正文对比度。 */
@media (max-width:760px) { .mobile-switch button { color:var(--ink-2); } }
