.wf-full-copy{background:var(--surface);padding:26px 30px;border:1px solid var(--line);border-radius:10px;margin-bottom:28px;min-width:0}
.wf-full-copy>h2{margin:0 0 22px;font-size:20px}.wf-full-copy .wf-copy{font-size:15px;line-height:1.9;max-width:70ch}
.wf-full-copy .md table{display:block;max-width:100%;overflow-x:auto}.wf-full-copy .md pre{max-width:100%;overflow-x:auto}
.wf-top-export{position:sticky;top:64px;z-index:12;display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--surface);padding:14px 18px;margin-bottom:24px;border:1px solid var(--line);border-radius:8px}
.wf-top-export>b{font-size:13px}.wf-top-export .hint{font-size:12px}.wf-top-export button{font-size:13px}
@media(max-width:850px){.wf-review-layout>.wf-review{grid-row:auto;display:flex}.wf-full-copy{padding:22px 20px}.wf-top-export{gap:8px 12px;padding:12px}.wf-top-export .hint{flex-basis:100%}}
.wf-history-copy{white-space:pre-wrap;overflow-wrap:anywhere}
.wf-history-copy img{display:block;width:100%;height:auto;margin:16px 0}
.wf-review-history{padding:18px 0;border-top:1px solid var(--line)}
.wf-review-history details{margin-top:14px}
.ac-template-editor{min-width:0;border:0;border-top:1px solid var(--line);padding:24px 0;margin-top:24px}.ac-template-editor legend{font-size:18px;font-weight:650;padding:0 8px 0 0}
.ac-template-layouts{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:22px 0}.ac-template-layouts h3{font-size:16px}.ac-template-layouts details{margin-top:14px}
.ac-template-color{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}.ac-template-color input{min-width:0}
.ac-template-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:22px;margin:24px 0}.ac-template-library article{min-width:0;display:grid;align-content:start;gap:10px}.ac-template-library b,.ac-template-library small{overflow-wrap:anywhere}.ac-template-library small{color:var(--ink2);font-size:12px}
.ac-template-library img{height:190px;width:100%;object-fit:contain;background:var(--surface2);display:block}.ac-template-library select{min-width:0;width:100%}.ac-template-upload{display:grid;gap:14px;margin:16px 0}.ac-template-upload input{min-width:0;width:100%;box-sizing:border-box}
.at-reference{padding:14px 0;font-size:13px}.at-reference summary{cursor:pointer;font-weight:600}.at-reference-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px}.at-reference figure{margin:0;min-width:0}.at-reference img{width:100%;height:180px;object-fit:contain;background:var(--surface2)}.at-reference figcaption{overflow-wrap:anywhere;font-size:12px;color:var(--ink2)}
@media(max-width:620px){.ac-template-layouts{grid-template-columns:1fr}.ac-template-library{grid-template-columns:repeat(2,minmax(0,1fr))}.ac-template-library img{height:150px}.ac-template-color{grid-template-columns:1fr}}
.wf-stage-nav .wf-project-name{font-weight:650;color:var(--ink);padding:8px 10px}
.wf-stage-nav .wf-stage-link{display:flex;align-items:flex-start;flex-direction:column;gap:2px;line-height:1.5;min-width:0}
.wf-stage-link>span{overflow-wrap:anywhere}.wf-stage-link>small{font-size:11px;color:var(--ink2);font-weight:400}
.wf-stage-link[hidden],.wf-material-grid>[hidden]{display:none}
.wf-stage-nav>section{border-top:1px solid var(--line);margin-top:16px;padding-top:6px}
.wf-stage-nav h2.side-label{font-weight:600;font-size:12px;padding:0 10px}.wf-stage-empty{padding:0 10px;font-size:12px;color:var(--ink2)}
.wf-stage-nav .side-search{box-sizing:border-box;width:100%;margin-top:14px}.wf-stage-nav a:focus-visible{outline:2px solid var(--zhu);outline-offset:2px}
.wf-stage-next{display:flex;flex-wrap:wrap;gap:16px;padding:20px 0;margin:12px 0;border-top:1px solid var(--line)}
.wf-stage-next a{display:inline-block;padding:8px 0;font-weight:600}.wf-direction-setup{padding:0 24px;border:1px solid var(--line);background:var(--surface);border-radius:10px}
.wf-material-library{padding:12px 0 24px;border-top:1px solid var(--line)}.wf-material-library h3{font-size:14px;margin:16px 0}
.wf-material-library input[type=search]{max-width:240px;min-width:0}.wf-material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px}
.wf-material-grid article{min-width:0}.wf-material-grid b,.wf-material-grid p{display:block;font-size:12px;margin:8px 0;line-height:1.6;overflow-wrap:anywhere}
.wf-material-grid p{color:var(--ink2)}.wf-material-preview{display:block;padding:0;border:1px solid var(--line);background:var(--surface2);width:100%;height:160px;overflow:hidden;cursor:zoom-in}
.wf-material-preview img{width:100%;height:100%;object-fit:contain;display:block}.wf-material-detail img{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}.wf-material-detail p{overflow-wrap:anywhere}
@media(max-width:600px){.wf-material-library .wf-section-heading{flex-direction:column;align-items:stretch}.wf-material-library input[type=search]{max-width:none;width:100%;box-sizing:border-box}.wf-material-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wf-direction-setup{padding:0 16px}}
.mr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;max-height:380px;overflow:auto}.mr-item{display:grid!important;grid-template-columns:20px 54px 1fr!important;align-items:center;gap:8px;padding:8px;border:1px solid #dce3ed;border-radius:6px;min-width:0}.mr-item img{width:54px!important;height:68px!important;object-fit:contain}.mr-item span{font-size:12px;overflow-wrap:anywhere}.mr-item input{width:auto!important}.vs-page-assignment{padding:10px 0;border-bottom:1px solid #e4e9f0;min-width:0}.vs-page-assignment details{margin-top:8px}.vs-page-assignment .mr-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}@media(max-width:600px){.mr-grid,.vs-page-assignment .mr-grid{grid-template-columns:1fr}}
.wf-initial-reference>.mr-picker{display:block;width:100%}.mr-picker{min-width:0}.mr-grid{width:100%;box-sizing:border-box}
.at-geometry{margin-top:14px}.at-area-row,.at-region{padding:10px 0;border-bottom:1px solid #dce3ed}.at-area-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.at-area-fields label{min-width:0}.at-area-fields input{width:100%;min-width:0}.at-region>label{display:block;margin:8px 0}.at-region button{margin-top:10px}.at-region input[type=checkbox],.at-area-row input[type=checkbox]{width:auto}
.at-preview{margin:12px 0}.at-preview canvas{display:block;width:100%;max-width:345px;height:auto;border:1px solid #dce3ed;margin:12px auto}.at-preview .err:empty{display:none}
.at-fixed-colors{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);font-size:13px;overflow-wrap:anywhere}.at-fixed-colors p{margin:8px 0}.at-fixed-colors ul{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:8px 0}.at-fixed-colors li{display:flex;align-items:center;gap:6px;min-width:0}.at-color-swatch{display:inline-block;flex:0 0 14px;width:14px;height:14px;border:1px solid #888;border-radius:3px}
/* 材料页：粘贴区常显；标题下的项目名称可就地修改；图片素材入口在图片区块头部，图片识别的文字默认收起 */
.wf-paste{display:grid;gap:8px}.wf-paste label{font-weight:600;font-size:13px}.wf-paste>button{justify-self:start}
.wf-heading>div:has(>.wf-project-title){flex:1 1 auto;min-width:0}.wf-heading .wf-project-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0 0 10px}.wf-project-title b{font-size:15px;min-width:0;overflow-wrap:anywhere}.wf-project-title input{flex:1 1 220px;min-width:0;max-width:360px;box-sizing:border-box}.wf-project-title button{font-size:13px;min-height:36px}
.wf-image-upload{display:grid;gap:8px;margin:0 0 8px;min-width:0}.wf-image-docs>summary{cursor:pointer;font-size:13px;padding:6px 0;color:var(--ink2)}
/* 材料页图片勾选：计数与全选按钮在客户素材标题行；分类标签贴在缩略图左上角；未启用的卡片半透明并标「未启用」 */
.wf-material-usage{margin:16px 0 18px}.wf-material-usage-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}.wf-material-usage-bar h3{margin:0}
.wf-material-count{font-size:13px;color:var(--ink2)}.wf-material-usage-actions{display:flex;gap:8px;margin-left:auto}.wf-material-usage-actions button{font-size:13px;min-height:36px}
.wf-material-usage .hint{font-size:12px;line-height:1.7;margin:8px 0 0}.wf-material-usage .err{margin:8px 0 0;font-size:13px}.wf-material-usage .err:empty{display:none}
.wf-material-preview{position:relative}.wf-material-kind{position:absolute;left:6px;top:6px;max-width:calc(100% - 12px);box-sizing:border-box;padding:1px 7px;border:1px solid var(--line);border-radius:4px;background:#FFFFFFE8;color:var(--ink);font-size:11px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-material-use-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
.wf-material-use{display:inline-flex;align-items:center;gap:6px;min-height:32px;font-size:12px;cursor:pointer}.wf-material-use input{width:16px;height:16px;margin:0;flex:0 0 16px;accent-color:var(--zhu)}
.wf-material-off{font-size:11px;color:#805619;background:#FFF1D8;padding:1px 7px;border-radius:4px;white-space:nowrap}
.wf-material-grid article.is-off .wf-material-preview img{opacity:.4}.wf-material-grid article.is-off>b,.wf-material-grid article.is-off>p{opacity:.6}
@media(max-width:600px){.wf-material-usage-actions{margin-left:0;width:100%}.wf-material-usage-actions button{flex:1}}
/* 候选方向：来源与编辑角标（人工填写、已编辑用区别于 AI 的底色）；操作列加宽到 120px、按钮纵向排列（覆盖 accounts.css 的 90px，那边不改） */
.wf-badge.human{color:#5E3B97;background:#F2ECFB}
.wf-direction-name{display:flex;flex-direction:column;gap:6px;min-width:0}.wf-direction-badges{display:flex;flex-wrap:wrap;gap:4px}.wf-direction-badges .wf-badge{line-height:1.6}
.wf-direction-history article>.wf-direction-badges{margin:2px 0 6px}
.wf-direction-table th.wf-direction-ops-head{width:120px}.wf-direction-table td.wf-direction-ops{padding-left:10px;padding-right:10px}
/* v5 旧项目没有可用操作时不渲染「操作」列；这时最后一列是「风险与待补」，不能被 accounts.css 的 th:last-child 压成 90px */
.wf-direction-table.no-ops th:last-child{width:auto}
.wf-direction-ops button{display:block;width:100%;margin:0 0 8px;padding:7px 6px;white-space:normal;line-height:1.4}.wf-direction-ops button:last-child{margin-bottom:0}
.wf-direction-form{display:grid;gap:6px;max-width:720px}.wf-direction-form>.hint{margin:0 0 6px;font-size:13px;line-height:1.7}
.wf-direction-form label{font-weight:600;font-size:13px;margin-top:8px}.wf-direction-form input,.wf-direction-form textarea{width:100%;box-sizing:border-box;min-width:0}
.wf-direction-form>button{justify-self:start;margin-top:10px;min-height:42px}.wf-direction-form .err{margin:6px 0 0}.wf-direction-form .err:empty{display:none}
.wf-direction-original{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface2)}.wf-direction-original>summary{cursor:pointer;font-size:13px;font-weight:600}
.wf-direction-original dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:6px 12px;font-size:13px;margin:10px 0 0}.wf-direction-original dt{color:var(--ink2)}.wf-direction-original dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.wf-direction-table td.wf-direction-ops{display:flex;flex-wrap:wrap;gap:8px;padding:8px 15px}.wf-direction-ops button{flex:1 1 120px;width:auto;margin:0}}
@media(max-width:560px){.wf-direction-form>button{width:100%}.wf-direction-original dl{grid-template-columns:1fr;gap:2px}.wf-direction-original dd{margin-bottom:6px}}
/* 方向页图片张数：标签、「封面 +」与下拉同一行（覆盖全局 select 的 width:100%），说明另起一行；冲突提醒沿用 wf-attention */
.wf-page-plan{display:grid;gap:8px;margin-top:20px;min-width:0}.wf-page-plan-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
.wf-page-plan label{font-weight:600;font-size:13px}.wf-page-plan-row span{font-size:14px}.wf-page-plan select{width:auto;min-width:0;max-width:100%}
.wf-page-plan>p{margin:0;font-size:13px;line-height:1.7}.wf-page-plan>p a{margin-left:6px;white-space:nowrap}
/* 逐页阅读区：每张页卡标题下的图片脚本，保留脚本里的换行，长串不撑破页卡 */
.wf-page-script{font-size:12px;line-height:1.7;color:var(--ink2);white-space:pre-line;overflow-wrap:anywhere;margin:6px 0 0}
.wf-page-script>span{display:block;font-weight:600;color:var(--ink)}
/* 导出页：稿件页顶部只剩「导出大纲 →」入口（仍 sticky）；导出页用卡片分三块（状态、下载、交接留档），信息格窄屏改单列 */
.wf-export-entry{display:inline-flex;align-items:center;min-height:36px;padding:7px 14px;border-radius:9px;background:var(--zhu);color:#fff;font-size:13px;font-weight:600;white-space:nowrap}.wf-export-entry:hover{background:var(--zhu-deep);color:#fff}
.wf-delivery .wf-export-link{margin:12px 0}.wf-export-link a{font-weight:600;font-size:13px}
.wf-export-heading h1::before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;margin:0 10px 0 0;vertical-align:middle;background:#D99A2B}.wf-export-heading.success h1::before{background:#2E8A68}
.wf-export-page{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:22px 26px;margin:0 0 20px;min-width:0}.wf-export-page>h2{font-size:17px;margin:0 0 8px}.wf-export-page>.hint{margin:0 0 14px;font-size:13px;line-height:1.7}
.wf-export-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px 24px;margin:0 0 6px}.wf-export-info>div{min-width:0}.wf-export-info dt{font-size:12px;color:var(--ink2)}.wf-export-info dd{margin:2px 0 0;font-weight:600;overflow-wrap:anywhere}.wf-export-info dd.wf-export-ok{color:#236A52}
.wf-export-page .wf-readiness{margin:18px 0 0}.wf-export-page .wf-exportbar{gap:10px}.wf-export-page .wf-exportbar button{font-size:14px;min-height:42px;padding:9px 18px}
.wf-export-gap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:16px 0 0}.wf-export-gap p{margin:0}.wf-export-gap button{font-size:13px}
.wf-export-page>.wf-success{margin:0 0 12px}.wf-export-page>.wf-status:empty{min-height:0;padding:0}.wf-export-page>button{min-height:42px}.wf-export-page>button+.hint{margin:10px 0 0}
@media(max-width:560px){.wf-export-page{padding:18px 16px}.wf-export-info{grid-template-columns:1fr;gap:10px}.wf-export-page .wf-exportbar button,.wf-export-page>button{flex:1 1 100%;width:100%}.wf-export-gap button{width:100%}}
/* 完整文案：标题行放「直接改文案」，提示另起一行；弹窗沿用直接改字（pc-*）的样式，只有编辑栏、没有预览栏 */
.wf-full-copy-head{justify-content:space-between;gap:10px 16px;margin:0 0 8px}.wf-full-copy-head>h2{margin:0;font-size:20px}.wf-full-copy-head>button{min-height:36px;font-size:13px}
.wf-full-copy>.wf-full-copy-hint{margin:0 0 22px;font-size:13px;line-height:1.7}
.fc-dialog{width:min(820px,94vw)}.fc-notes:empty{display:none}.fc-notes>p{margin:0 0 14px;line-height:1.7}.fc-dialog .pc-status{margin:12px 0 0}
/* 弹窗头部：标题区可收缩换行，「关闭」按钮不收缩、不折行（390 宽下「直接改文案」头部说明很长，按钮曾被压成「关/闭」两行） */
.wf-modal-head>:first-child{min-width:0}.wf-modal-head>button{flex:none;white-space:nowrap}
/* 材料页「图片模板」（选填）：与图片素材同一套卡片网格，勾选的卡片加蓝框；窄屏两列，缩略图不裁掉版式 */
.wf-templates{padding:4px 0 20px;border-top:1px solid var(--line)}.wf-templates .wf-section-heading{margin:20px 0 14px}.wf-templates h2{font-size:18px}
.wf-optional{font-size:12px;font-weight:400;color:var(--ink2);border:1px solid var(--line);border-radius:6px;padding:1px 6px;margin-left:8px;vertical-align:middle}
.wf-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}.wf-template-grid article{min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface)}.wf-template-grid article.is-on{border-color:#88A7EE;background:#EDF2FF}
.wf-template-images{display:flex;gap:6px;height:130px}.wf-template-images a{flex:1;min-width:0;display:block;background:var(--surface2);border:1px solid var(--line);overflow:hidden}.wf-template-images img{width:100%;height:100%;object-fit:contain;display:block}
.wf-template-empty{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:var(--ink2);background:var(--surface2);border:1px dashed var(--line2);padding:8px}
.wf-template-use{display:flex;align-items:flex-start;gap:8px;margin:10px 0 4px;cursor:pointer}.wf-template-use input{width:auto;margin-top:3px;accent-color:var(--zhu)}.wf-template-use b{font-size:13px;overflow-wrap:anywhere}.wf-template-grid small{display:block;font-size:12px;color:var(--ink2)}
.wf-templates>div>.hint,.wf-templates>.hint{font-size:13px}.wf-templates .hint a{margin-left:6px}.wf-template-none{display:grid;gap:6px}.wf-template-none p{margin:0}.at-project-templates{margin:4px 0 10px}
@media(max-width:600px){.wf-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wf-template-images{height:110px}}
/* 逐页改图片脚本：按钮紧跟脚本；「最近替换的图片」折叠在页卡底部，缩略图与当时的脚本并排，窄页卡上下排 */
.wf-page-caption .wf-script-edit{margin-top:6px}.wf-page-caption .wf-script-stale{margin:8px 0 0;font-size:12px;line-height:1.7}
.wf-replaced{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:12px;min-width:0}.wf-replaced>summary{cursor:pointer;font-weight:600}
.wf-replaced>.hint{margin:6px 0;font-size:12px;line-height:1.6}.wf-replaced .err:empty{display:none}
.wf-replaced-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start;margin:10px 0 0}
.wf-replaced-thumb{display:block;padding:0!important;border:1px solid var(--line)!important;background:#E8EDF5;cursor:zoom-in}.wf-replaced-thumb img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain}
.wf-replaced-item figcaption{display:grid;gap:4px;min-width:0}.wf-replaced-item .wf-page-script{margin:0}.wf-replaced-item small{color:var(--ink2);line-height:1.6}
.wf-replaced-item button{justify-self:start;margin-top:2px}
@media(max-width:420px){.wf-replaced-item{grid-template-columns:1fr}.wf-replaced-thumb{max-width:140px}}
