/* V13 editor chrome; resume-paper typography and PDF layout remain controlled by styles.css. */
.editor-body .form-field>.field-caption{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.field-change-badge{font-size:10px;font-weight:600;line-height:1.5;color:#87620b;background:#fff0b5;border:1px solid #efcf6d;border-radius:4px;padding:1px 5px}
.editor-body .form-field>.field-input-wrap{position:relative;display:block;min-width:0;font-size:14px;line-height:1.8;font-weight:400;color:#344158}
.field-change-overlay{position:absolute;inset:0;pointer-events:none;user-select:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;border:1px solid transparent;border-radius:9px;padding:10px 11px;font:inherit;color:transparent}
.field-change-overlay .ai-highlight{color:transparent;background:#ffe58f}
.editor-body .form-field textarea.has-change-overlay{position:relative;background:transparent}
.editor-body .has-field-change textarea,.editor-body .has-field-change input{border-color:#dfbd56}
.editor-body .has-field-change input{background:#fff9e6}
.field-change-badge[hidden],.field-change-overlay[hidden]{display:none}
.field-input-wrap>textarea,.field-input-wrap>input{display:block}
.editor-body{min-width:320px;background:#fff;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#1e293b}
.editor-flow-header{height:72px;padding:0 28px;border-bottom:1px solid #e0e7f0;background:white;display:flex;align-items:center;justify-content:space-between;gap:20px}.editor-flow-header>div{display:flex;align-items:center;gap:14px}.editor-flow-header strong{font-size:20px;letter-spacing:0}.editor-flow-header .brand-glyph{width:34px;height:34px}.editor-flow-header #saveStatus{font-size:12px;color:#8c98a8;display:flex;align-items:center;gap:5px;white-space:nowrap}.editor-flow-header #saveStatus svg{width:15px;height:15px}
.editor-workspace{height:calc(100dvh - 72px);grid-template-columns:minmax(410px,45%) minmax(490px,55%)}.form-pane{grid-template-rows:100px minmax(0,1fr);border-right:1px solid #e0e7f0}.form-pane-head{display:block;padding:21px 28px 12px;border:0}.form-pane-head h1{font-size:23px;line-height:1.4;margin-bottom:12px;color:#1e293b}.form-section-nav{justify-content:flex-start;gap:12px;flex-wrap:wrap}.form-section-nav button{font-size:12px;padding:0;min-height:26px;color:#68778d;white-space:nowrap}.form-inner{padding:24px 28px 48px;max-width:800px}.job-context{display:block;background:#f1f6ff;border:0;border-radius:12px;padding:19px 18px;margin-bottom:26px}.job-context>strong{font-size:15px;line-height:1.6;color:#1e293b}.job-context p{font-size:12px;line-height:1.8;color:#68778d;margin:10px 0 0}.form-section-head h2{font-size:17px;color:#1e293b}.form-field label{font-size:13px;color:#1e293b}.editor-body input:not([type=checkbox]):not([type=file]),.editor-body textarea{border-color:#d9e2ee;border-radius:9px;color:#344158;font-size:14px;line-height:1.8}.editor-save-version{width:100%;min-height:54px;font-size:17px;margin-top:28px}.preview-pane{grid-template-rows:auto minmax(0,1fr);background:#f3f6fc}.preview-toolbar{min-height:100px;flex-wrap:wrap;padding:15px 24px;border-bottom:0;background:#f3f6fc;gap:12px}.preview-toolbar>div:first-child>span{font-size:16px;font-weight:650;color:#1e293b}.preview-toolbar b{font-size:10px;color:#8b98ac}.preview-toolbar-controls{flex-wrap:wrap;justify-content:flex-end;gap:10px}.preview-toolbar-actions{border-left:0;padding-left:0;gap:9px}.preview-toolbar-actions .download-button{border:1px solid #1677ff;color:white;background:#1677ff;min-width:110px;min-height:38px;font-size:13px;gap:7px}.preview-toolbar-actions .secondary-button{font-size:11px;min-height:34px}.preview-scroll{background:#f3f6fc;padding:8px 24px 40px}.preview-page-wrap{box-shadow:none}.resume-paper{box-shadow:none;border:1px solid #dce4f0}.preview-source{border:0}.editor-template-tabs{display:flex;gap:5px;align-items:center}.editor-template-tabs button{min-height:36px;min-width:49px;padding:7px 12px;background:#f5f7fb;color:#68778d;border:0;border-radius:8px;font-size:12px}.editor-template-tabs button.active{background:#eaf2ff;color:#1677ff;font-weight:600}.pdf-font-control{font-size:11px;border-color:#dce4ef}.ai-review-bar,.ai-annotation{box-shadow:none;border-radius:10px}.ai-review-bar{background:#f0f6ff;border-color:#d9e6fc}.ai-annotation{border-color:#d9e3f0}.ai-annotation-head{background:#f4f8ff}.ai-annotation-actions .apply-suggestion{background:#1677ff}.editor-saved-backdrop{position:fixed;inset:0;background:#edf2f8cc;z-index:80;display:grid;place-items:center;padding:24px}.editor-saved-dialog{width:min(440px,100%);background:white;border:1px solid #e0e7f0;border-radius:14px;padding:34px;text-align:center}.editor-saved-dialog>.brand-glyph{width:54px;height:54px;border-radius:50%;margin-bottom:8px}.editor-saved-dialog h2{font-size:25px;margin:16px 0}.editor-saved-dialog p{font-size:13px;line-height:1.8;color:#68778d}.editor-saved-dialog>div{display:grid;gap:12px;margin-top:26px}.editor-saved-dialog button{min-height:44px;font-size:14px}
@media(max-width:1150px){.editor-workspace{grid-template-columns:minmax(360px,44%) minmax(450px,56%)}.preview-toolbar{padding:15px}.preview-toolbar-controls{justify-content:flex-start}.form-inner{padding-inline:22px}.preview-scroll{padding-inline:15px}.form-pane-head{padding-inline:22px}}
@media(max-width:880px){.editor-flow-header{height:auto;min-height:64px;position:sticky;top:0;z-index:30;padding:12px 18px;gap:10px}.editor-flow-header strong{font-size:16px}.editor-flow-header>div{gap:9px}.editor-flow-header .flow-link{font-size:11px}.editor-flow-header #saveStatus{font-size:10px}.editor-workspace{display:block;height:auto;min-height:0;overflow:visible}.form-pane{min-height:0;display:block;border-right:0}.form-inner{padding:20px 18px 30px}.form-pane-head{padding:20px 18px}.preview-pane{display:block;min-height:700px}.preview-toolbar{min-height:100px}.preview-scroll{overflow:auto;min-height:600px}.editor-template-tabs button{min-width:44px;padding:7px 10px}.editor-saved-dialog{padding:24px}.form-section-nav{gap:10px}}
@media print{.editor-flow-header,.editor-save-version,.editor-saved-backdrop{display:none!important}.editor-workspace{height:auto}.resume-paper{border:0}.preview-scroll{background:white}}
