/* 团队项目复用全站主题，浅蓝紫绿只作轻量状态提示。 */
#workline-root{min-width:0}.wl-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.wl-stat{border:1px solid var(--line);border-radius:16px;padding:20px;text-align:left;display:grid;gap:8px;color:var(--text);cursor:pointer}.wl-stat.blue{background:var(--accent-soft)}.wl-stat.violet{background:var(--info-soft)}.wl-stat.mint{background:var(--ok-soft)}.wl-stat strong{font-size:32px;font-weight:650;line-height:1.2}.wl-stat small{color:var(--text-dim);font-size:12px}.wl-toolbar,.wl-searchbar{display:flex;align-items:center;gap:12px;margin:14px 0;flex-wrap:wrap}.wl-toolbar{justify-content:space-between}.wl-filters{display:flex;gap:4px;flex-wrap:wrap}.wl-filters button,.wl-tabs button{border:0;border-radius:8px;background:transparent;padding:9px 13px;color:var(--text-dim);cursor:pointer;font:inherit}.wl-filters .selected,.wl-tabs .selected{color:var(--accent-text);background:var(--accent-soft);font-weight:600}.wl-searchbar input{flex:1;min-width:180px;margin:0}.wl-searchbar select{max-width:160px;margin:0}.wl-table-wrap{overflow:auto;max-height:calc(100vh - 410px);min-height:300px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.wl-table{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px}.wl-table th{position:sticky;top:0;z-index:3;background:var(--panel-2);padding:14px 12px;text-align:left;color:var(--text-dim);font-size:12px;font-weight:600;border-bottom:1px solid var(--line)}.wl-table td{vertical-align:top;border-bottom:1px solid var(--line-soft);padding:14px 12px;background:var(--panel);height:110px}.wl-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);margin-bottom:8px}.wl-project-link{border:0;background:transparent;display:flex;align-items:flex-start;gap:12px;text-align:left;padding:0;cursor:pointer;color:var(--text);width:100%;font:inherit}.wl-project-link img,.wl-no-image{width:62px;height:68px;object-fit:contain;flex-shrink:0;background:var(--panel-2);border-radius:8px;border:1px solid var(--line-soft)}.wl-no-image{display:grid;place-items:center;color:var(--text-dim)}.wl-project-link b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;line-height:1.65;word-break:break-word}.wl-project-link small{display:block;color:var(--text-dim);font-size:11px;margin-top:7px}.wl-cell{display:block;width:100%;border:0;background:transparent;text-align:left;font:inherit;color:var(--text);cursor:pointer;padding:0;line-height:1.7;max-height:122px;overflow:hidden;word-break:break-word}.wl-cell:hover{color:var(--accent)}.wl-cell p{margin:7px 0}.wl-cell small{color:var(--text-dim)}.wl-status,.wl-alert{display:inline-block;padding:2px 7px;border-radius:5px;font-size:11px;margin-right:5px;background:var(--accent-soft);color:var(--accent-text)}.wl-status.review{background:var(--warn-soft);color:var(--warn-text)}.wl-status.done{background:var(--ok-soft);color:var(--ok-text)}.wl-status.cancelled,.wl-status.paused{background:var(--panel-2);color:var(--text-dim)}.wl-alert{background:var(--danger-soft);color:var(--danger-text)}.wl-footnote{color:var(--text-dim);font-size:12px;margin-top:14px}.wl-empty{padding:45px;color:var(--text-dim);text-align:center}.wl-empty button{margin:15px auto}.wl-dialog{width:min(1220px,94vw);height:91vh;max-width:94vw;max-height:94vh;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);padding:0;box-shadow:var(--shadow-pop);overflow:hidden;margin:auto}.wl-dialog[open]{display:flex;flex-direction:column}.wl-dialog::backdrop,.wl-image-preview::backdrop{background:var(--overlay);backdrop-filter:blur(3px)}.wl-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;padding:23px 28px 15px;gap:18px;flex-shrink:0}.wl-dialog-head h2{font-size:21px;line-height:1.5;margin:5px 0;max-width:1030px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.wl-kicker{color:var(--accent);font-size:11px;letter-spacing:.1em}.wl-tabs{display:flex;gap:8px;padding:0 28px 15px;border-bottom:1px solid var(--line);flex-shrink:0}.wl-dialog-body{flex:1;min-height:0;overflow:auto;padding:24px 28px;background:var(--bg-soft)}.wl-dialog-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;border-top:1px solid var(--line);gap:16px;flex-shrink:0}.wl-dialog-footer>div{flex:1;display:flex;align-items:center;gap:16px}.wl-dialog-footer input{max-width:440px;margin:0;font-size:12px}.wl-dialog-footer span{font-size:12px;color:var(--text-dim);max-width:440px}.wl-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin:0 0 20px}.wl-form-grid label{font-size:12px;color:var(--text-dim);display:flex;flex-direction:column;gap:7px;min-width:0}.wl-form-grid input,.wl-form-grid select,.wl-form-grid textarea{font:inherit;font-size:13px;color:var(--text);margin:0;min-width:0;width:100%;box-sizing:border-box}.wl-form-grid label small{font-size:11px}.wl-wide{grid-column:1/-1}.wl-form-grid .wl-check{flex-direction:row;align-items:center;grid-column:1/-1}.wl-check input,.wl-members input{width:auto!important}.wl-members{display:flex;gap:12px;flex-wrap:wrap}.wl-members label{display:flex;flex-direction:row;align-items:center;gap:5px}.wl-review-note,.wl-rule-note{padding:15px 18px;background:var(--warn-soft);color:var(--warn-text);border:1px solid var(--line);border-radius:10px;margin-bottom:18px;font-size:13px;line-height:1.8}.wl-rule-note{background:var(--accent-soft);color:var(--text)}.wl-rule-note p{margin:6px 0}.wl-block,.wl-track{border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-bottom:16px;overflow:hidden}.wl-block summary,.wl-track summary{padding:17px 20px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none;gap:16px;background:var(--panel)}.wl-block summary::after,.wl-track summary::after{content:'⌄';color:var(--text-dim)}.wl-block[open] summary::after,.wl-track[open] summary::after{transform:rotate(180deg)}.wl-block summary span,.wl-track summary span{font-size:12px;color:var(--text-dim);margin-left:auto}.wl-rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:9px 18px;background:var(--panel-2);border-block:1px solid var(--line-soft)}.wl-rich-toolbar button{padding:5px 9px;background:var(--panel);border:1px solid var(--line);border-radius:5px;font-size:12px;color:var(--text);cursor:pointer}.wl-rich-toolbar .wl-highlight{background:#fff0a6;color:#58480c}.wl-rich{padding:18px 22px;min-height:125px;line-height:1.9;font-size:14px;overflow-wrap:anywhere;outline:none;max-height:620px;overflow:auto;background:white;color:#25314b}.wl-rich:focus{box-shadow:inset 0 0 0 2px var(--accent-line)}.wl-rich:empty::before{content:attr(data-placeholder);color:#8b94a5;pointer-events:none}.wl-rich p{margin:4px 0 10px}.wl-rich ul,.wl-rich ol{padding-left:25px}.wl-rich.readonly{min-height:0}.wl-attachments{display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.wl-attachment{width:150px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--panel)}.wl-attachment>button{width:100%;min-height:50px;border:0;background:var(--panel);cursor:pointer;padding:0}.wl-attachment img{width:100%;height:116px;object-fit:contain;background:#fff;display:block}.wl-attachment>div{padding:8px;font-size:11px}.wl-attachment span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--text-dim)}.wl-attachment button[data-cover],.wl-attachment button[data-drop-asset]{border:0;background:transparent;color:var(--accent);padding:5px 0 0;margin-right:9px;font-size:11px;cursor:pointer}.wl-upload{border:1px dashed var(--accent-line);border-radius:9px;color:var(--accent);font-size:12px;min-height:70px;min-width:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:14px;gap:10px}.wl-upload input{font-size:11px;max-width:180px}.wl-track .wl-form-grid{border:none;margin:0;padding:18px 20px}.wl-remove{margin:0 20px 16px;color:var(--danger-text)}.wl-linked{padding:12px;color:var(--accent);background:var(--accent-soft);border-radius:9px}.wl-linked button{margin-left:12px}.wl-history article{display:flex;gap:15px;border-left:1px solid var(--line);margin-left:8px;padding:4px 0 23px 20px;position:relative}.wl-history-dot{position:absolute;left:-5px;top:10px;width:9px;height:9px;border-radius:50%;background:var(--accent)}.wl-history small{display:block;color:var(--text-dim);margin-top:6px}.wl-history p{margin:7px 0;font-size:13px}.wl-old-version{border:1px solid var(--line);border-radius:12px;padding:20px;background:var(--panel)}.wl-old-version details{border:1px solid var(--line);padding:10px;margin:10px 0;border-radius:6px}.wl-image-preview{border:1px solid var(--line);border-radius:14px;background:var(--panel);max-width:94vw;max-height:94vh;margin:auto;padding:15px;overflow:auto}.wl-image-preview img{display:block;max-width:85vw;height:auto;margin-top:10px}.wl-image-preview button{position:sticky;top:0}#wl-body button:focus-visible,#workline-root button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:780px){.wl-summary{gap:8px}.wl-stat{padding:13px}.wl-stat strong{font-size:25px}.wl-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wl-dialog-body{padding:14px}.wl-dialog-head,.wl-dialog-footer{padding:14px}.wl-dialog-footer>div{display:block}.wl-dialog-footer input{margin-top:5px}.wl-table-wrap{max-height:65vh}.wl-dialog-head h2{font-size:17px}}@media(max-width:500px){.wl-form-grid{grid-template-columns:1fr}.wl-stat small{display:none}.wl-tabs{padding:0 10px 10px}.wl-dialog{width:98vw;max-width:98vw}}
/* 总表优先占满工作区；只编辑点击的那一格。 */
.col-func[data-view="workline"] .func-head{display:none}.col-func[data-view="workline"] .func-body{display:flex;min-height:0;overflow:hidden;padding:0 8px 8px}#view-workline.active{display:flex;flex:1;min-height:0;min-width:0}#workline-root{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.wl-summary{display:flex;gap:8px;margin:0;flex-shrink:0}.wl-stat{display:flex;align-items:center;gap:10px;padding:7px 13px;border-radius:8px;font-size:12px}.wl-stat strong{font-size:17px}.wl-stat small{display:none}.wl-toolbar,.wl-searchbar{margin:7px 0;flex-shrink:0}.wl-table-wrap{flex:1;min-height:0;max-height:none}.wl-footnote{margin:7px 0 0;font-size:11px;flex-shrink:0}.wl-actions{display:flex;gap:8px}.wl-party-cell{display:flex;width:100%;min-width:0;flex-direction:column;align-items:center;border:0;padding:0;background:transparent;font:inherit;text-align:center;color:var(--text);cursor:pointer}.wl-party-cell .wl-party-name{width:100%;font-weight:600;overflow:hidden;text-overflow:ellipsis}.wl-party-cell small{display:block;width:100%;margin-top:7px;color:var(--text-dim);font-size:10px;line-height:1.45;overflow-wrap:anywhere}.wl-export{border:1px solid var(--line);background:var(--panel-2);color:var(--accent-text);font-size:11px;padding:4px 8px;margin-top:9px;border-radius:5px;cursor:pointer}.wl-collaborators>span{display:block;color:var(--text-dim);font-size:12px;margin-bottom:8px}.wl-direct-editor{width:min(980px,94vw);height:85vh}.wl-direct-editor .wl-kicker{display:block;max-width:850px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0;font-size:12px;color:var(--text-dim)}.wl-direct-editor .wl-block summary{display:none}.wl-direct-editor .wl-rich{min-height:220px;max-height:none}.wl-direct-editor .wl-block{margin-bottom:0}.wl-direct-editor .wl-dialog-body{background:var(--panel)}.workline-fullscreen .col-func[data-view="workline"]{position:fixed;inset:0;z-index:500;width:100vw;height:100dvh;background:var(--bg);display:flex}
.wl-row-actions{display:flex;gap:6px}.wl-direct-editor:has([data-field="project_party"]){height:330px}.wl-direct-editor .wl-tabs{padding-bottom:8px}
.wl-export-preview{padding:0;width:min(1000px,94vw)}.wl-export-preview header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 20px;background:var(--panel);border-bottom:1px solid var(--line);z-index:2}.wl-export-preview header small{display:block;color:var(--text-dim);font-size:12px;margin-top:6px}.wl-export-preview img{width:100%;max-width:100%;height:auto;margin:0}.wl-export-preview .pill{white-space:nowrap;text-decoration:none}.wl-export-preview button{position:static}

/* 统计并入筛选，一排工具栏；窄工作区自动分排，表格独立滚动。 */
.wl-topbar{display:grid;grid-template-columns:auto auto minmax(210px,1fr) auto;grid-template-areas:"title filters search actions";align-items:center;gap:8px;flex-shrink:0;padding:8px 0}
.wl-topbar h1{grid-area:title;font-size:17px;font-weight:650;line-height:32px;white-space:nowrap;margin:0 4px 0 0}
.wl-topbar .wl-filters{grid-area:filters;flex-wrap:nowrap;gap:2px;min-width:0;overflow:visible}
.wl-topbar .wl-filters button{display:flex;align-items:center;gap:5px;white-space:nowrap;padding:7px 8px;font-size:12px;line-height:18px}
.wl-filter-count{font-variant-numeric:tabular-nums;font-size:11px;padding:0 4px;border-radius:4px;background:var(--panel-2);color:var(--text-dim)}
.wl-topbar [data-filter="all"] .wl-filter-count{background:var(--accent-soft);color:var(--accent-text)}
.wl-topbar [data-filter="attention"] .wl-filter-count{background:var(--info-soft);color:var(--info)}
.wl-topbar [data-filter="review"] .wl-filter-count{background:var(--ok-soft);color:var(--ok-text)}
.wl-topbar .wl-searchbar{grid-area:search;flex-wrap:nowrap;gap:6px;margin:0;min-width:0}
.wl-topbar .wl-searchbar input{width:120px;min-width:100px;height:32px;padding:6px 9px;font-size:12px;box-sizing:border-box}
.wl-topbar .wl-searchbar select{width:108px;min-width:0;flex-shrink:0;height:32px;padding:5px 4px;font-size:12px;box-sizing:border-box}
.wl-topbar .wl-actions{grid-area:actions;flex-shrink:0;align-items:center;gap:5px;margin-left:auto}
.wl-topbar .pill{white-space:nowrap;min-height:32px;height:32px;padding:6px 9px;font-size:12px;box-sizing:border-box}
.wl-topbar .wl-refresh{width:32px;padding:7px}
.wl-options{position:relative}
.wl-options summary{cursor:pointer;list-style:none}
.wl-options summary::-webkit-details-marker{display:none}
.wl-options-menu{position:absolute;right:0;top:38px;z-index:10;width:220px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-pop)}
.wl-options-menu button{display:block;width:100%;border:0;border-radius:5px;padding:9px;text-align:left;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.wl-options-menu button:hover{background:var(--accent-soft)}
.wl-options-menu p{margin:4px 9px;padding-top:8px;border-top:1px solid var(--line);color:var(--text-dim);font-size:11px;line-height:1.8}
.wl-table th{padding:10px 9px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-table td{padding:12px 9px;overflow-wrap:anywhere}
.wl-table .wl-sticky-number,.wl-table .wl-sticky-person,.wl-table .wl-sticky-project,.wl-table .wl-sticky-reference{position:sticky;z-index:2}
.wl-table .wl-sticky-number{left:0;text-align:center;padding-left:3px;padding-right:3px;font-size:11px;color:var(--text-dim);font-variant-numeric:tabular-nums}
.wl-table .wl-sticky-person{left:var(--wl-number-width)}
.wl-table .wl-sticky-project{left:calc(var(--wl-number-width) + var(--wl-party-width))}
.wl-table .wl-sticky-reference{left:calc(var(--wl-number-width) + var(--wl-party-width) + var(--wl-project-width));box-shadow:5px 0 8px -7px #72849d}
.wl-table th.wl-sticky-number,.wl-table th.wl-sticky-person,.wl-table th.wl-sticky-project,.wl-table th.wl-sticky-reference{z-index:4}
.wl-table .wl-avatar{width:24px;height:24px;font-size:11px;margin:0 auto 6px}
.wl-table .wl-project-link{gap:7px;min-width:0}
.wl-table .wl-project-link>span:last-child{min-width:0}
.wl-table .wl-project-link img,.wl-table .wl-no-image{width:44px;height:52px;border-radius:5px}
.wl-table .wl-project-link b{font-size:12px;line-height:1.6}
.wl-table .wl-project-link small{font-size:10px;margin-top:4px}
.wl-table .wl-row-actions{gap:4px;flex-wrap:wrap}
.wl-table .wl-export{font-size:10px;padding:4px 6px;white-space:nowrap}
.wl-project-name{display:block;width:100%;min-width:0;border:0;padding:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.wl-project-name b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;font-size:12px;line-height:1.6;word-break:break-word}
.wl-project-name>small{display:block;margin-top:5px;color:var(--text-dim);font-size:10px}
.wl-project-flags{display:flex;justify-content:flex-end;gap:4px;margin-top:7px}
.wl-project-flags .wl-status,.wl-project-flags .wl-alert{margin:0}
.wl-reference-cell{min-height:54px;max-height:132px}
.wl-reference-cell .wl-cell-assets{display:grid;justify-items:center;justify-content:center}
.wl-reference-cell .wl-cell-asset-label{max-width:108px}
.wl-reference-empty{display:grid;min-height:54px;place-items:center;border:1px dashed var(--line);border-radius:7px;color:var(--text-dim);font-size:10px}
.wl-column-resize{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;touch-action:none;user-select:none;z-index:5}
.wl-column-resize::after{content:'';position:absolute;right:0;top:9px;bottom:9px;width:1px;background:var(--line)}
.wl-column-resize:hover::after,.wl-column-resize:focus-visible::after{width:3px;background:var(--accent)}
.wl-column-resize:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body.wl-resizing,body.wl-resizing *{cursor:col-resize!important;user-select:none!important}
@container(max-width:980px){.wl-topbar{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"title filters filters" "search search actions"}}
@container(max-width:520px){.wl-topbar{gap:5px;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"title filters" "search search" "actions actions"}.wl-topbar h1{grid-area:title;font-size:15px}.wl-topbar .wl-filters button{padding:6px;font-size:11px}.wl-topbar .wl-searchbar select{width:90px}.wl-topbar .wl-actions{margin-left:0}.wl-topbar .wl-actions .pill{padding:5px 8px}}

/* 原表底色是进度，不再把整格铺满。每段内容用浅色卡片和左侧深色竖线表达。 */
.wl-cell{max-height:132px;padding:3px;overflow:hidden;color:var(--text)}
.wl-cell:hover{color:var(--text)}
.wl-cell-card{--wl-tone-bg:var(--panel-2);--wl-tone-line:var(--line);display:block;position:relative;margin:0 0 6px;padding:8px 9px 8px 12px;border-radius:8px;background:var(--wl-tone-bg);text-align:left;overflow:hidden}
.wl-cell-card:last-child{margin-bottom:0}
.wl-cell-card::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;border-radius:8px 0 0 8px;background:var(--wl-tone-line)}
.wl-cell:hover .wl-cell-card{box-shadow:inset 0 0 0 1px var(--wl-tone-line)}
.wl-cell-card-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;font-size:12px;line-height:1.55;color:var(--text);word-break:break-word}
.wl-cell-card>small{display:block;margin-top:5px;font-size:10px;line-height:1.45;color:var(--text-dim)}
.wl-cell-card-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:6px}
.wl-cell-card-foot>small{min-width:0;color:var(--text-dim);font-size:10px;line-height:1.45}
.wl-card-flags{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 auto}
.wl-card-flags .wl-status,.wl-card-flags .wl-alert{margin:0;white-space:nowrap}
.tone-shipped{--wl-tone-bg:var(--chip-peach-bg);--wl-tone-line:var(--chip-peach-text);color:var(--chip-peach-text)}
.tone-production{--wl-tone-bg:var(--chip-mint-bg);--wl-tone-line:var(--chip-mint-text);color:var(--chip-mint-text)}
.tone-packaging{--wl-tone-bg:var(--chip-cream-bg);--wl-tone-line:var(--chip-cream-text);color:var(--chip-cream-text)}
.tone-technical{--wl-tone-bg:var(--accent-soft);--wl-tone-line:var(--accent);color:var(--accent-text)}
.tone-paused{--wl-tone-bg:var(--panel-2);--wl-tone-line:var(--text-dim);color:var(--text-dim)}
.tone-neutral{--wl-tone-bg:var(--panel);--wl-tone-line:var(--line)}
.wl-progress-cell .wl-cell-card{background:var(--panel-2)}
.wl-tone-legend{display:grid;gap:5px;margin:5px 7px 8px;padding:9px 2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.wl-tone-legend span,.wl-source-cells small{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.45;color:var(--text-dim)}
.wl-tone-legend i,.wl-source-cells i{display:block;width:3px;height:15px;border-radius:3px;background:var(--wl-tone-line);flex:0 0 auto}
.wl-options-menu{width:260px}
.wl-block-state{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 18px;background:var(--panel-2);border-top:1px solid var(--line-soft)}
.wl-block-state label{display:flex;align-items:center;gap:8px;color:var(--text-dim);font-size:11px;white-space:nowrap}
.wl-block-state select{width:auto;min-width:190px;margin:0;padding:5px 8px;font-size:12px}
.wl-source-cells{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.wl-source-cells>span{font-size:10px;color:var(--text-dim)}
.wl-source-cells small{padding:4px 7px;border-radius:6px;background:var(--wl-tone-bg);color:var(--text)}
.wl-rich>div[style*="background-color"]{border-radius:4px}
@container(max-width:620px){.wl-block-state{display:block}.wl-block-state label{white-space:normal}.wl-source-cells{justify-content:flex-start;margin-top:9px}.wl-block-state select{min-width:0;max-width:100%}}

/* 项目负责人保持一行，窄列中用省略号收口。 */
.wl-party-cell small{font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}

/* 单元格附件只占一行。三张以内叠放实图，更多用数量收口；每张图仍支持全站悬停预览。 */
.wl-cell-assets{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:5px 1px 0;color:var(--text-dim)}
.wl-cell-asset-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.wl-cell-thumbs{display:flex;align-items:center;flex:0 0 auto;padding-right:2px}
.wl-cell-thumbs img,.wl-cell-file-icon{width:27px;height:27px;margin-left:-7px;border:2px solid var(--panel);border-radius:6px;object-fit:cover;background:#fff;box-shadow:0 1px 3px #18284024}
.wl-cell-thumbs img:first-child,.wl-cell-file-icon:first-child{margin-left:0}
.wl-cell-file-icon{display:grid;place-items:center;color:var(--accent-text);background:var(--accent-soft);font-size:10px}
.wl-cell-more{display:grid;place-items:center;min-width:25px;height:25px;margin-left:-5px;padding:0 4px;border:2px solid var(--panel);border-radius:7px;background:var(--panel-2);color:var(--text);font-size:9px;font-weight:600;box-shadow:0 1px 3px #18284018}
.wl-rich [style^="color:#ffffff"],.wl-rich [style*=";color:#ffffff"],.wl-rich [style^="color: #ffffff"],.wl-rich [style*="; color: #ffffff"],.wl-rich [style^="color:white"],.wl-rich [style*=";color:white"]{color:#202226!important}

/* ================================================================ 团队项目
   表头 8 列：项目概况 + 内料/主包材/配件/试用装/第三方测试/补充资料/备注。
   每格是「首轮 + 反馈N」轮次堆叠；首轮内容按业务要求固定黄底白字。 */

/* 第 1 列钉住，横向滚动时不跟着跑。 */
.wl-table .wl-profile{position:sticky;left:0;z-index:2;background:var(--panel);box-shadow:5px 0 8px -7px #72849d;width:var(--wl-profile-width);min-width:var(--wl-profile-width);max-width:var(--wl-profile-width)}
.wl-table th.wl-sticky-profile{position:sticky;left:0;z-index:5;background:var(--panel-2)}
.wl-profile-main{display:flex;flex-direction:column;gap:6px;width:100%;min-width:0;border:0;background:transparent;padding:0;text-align:left;color:var(--text);font:inherit;cursor:pointer}
.wl-project-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.wl-project-title b{font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.wl-project-title small{font-size:10.5px;color:var(--text-dim);line-height:1.4;overflow-wrap:anywhere}
.wl-profile-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:10.5px;color:var(--text-dim)}
.wl-profile-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-profile-photos{display:flex;align-items:center;gap:4px}
.wl-profile-photos img{width:38px;height:42px;border-radius:5px;object-fit:cover;background:var(--panel-2)}
.wl-profile-req{font-size:10.5px;color:var(--text-dim);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wl-profile-flags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:10px}
.wl-profile-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.wl-more{display:grid;place-items:center;min-width:24px;height:24px;border-radius:6px;background:var(--panel-2);color:var(--text-dim);font-size:9px}

/* 物料列：轮次堆叠 */
.wl-table td.wl-lane{padding:10px 9px;vertical-align:top}
.wl-rounds{display:flex;flex-direction:column;gap:8px;min-width:0}
.wl-lane-empty{font-size:11px;color:var(--text-dim);padding:8px 2px;border:1px dashed var(--line);border-radius:7px;text-align:center}
.wl-round{border:1px solid var(--line);border-radius:9px;background:var(--panel);overflow:hidden}
.wl-round.level-remind{border-color:#e0a437;box-shadow:0 0 0 2px #e0a43722}
.wl-round.level-abnormal{border-color:var(--danger);box-shadow:0 0 0 2px #df5a6d22}
.wl-round-head{display:flex;align-items:center;gap:6px;padding:6px 8px;background:var(--panel-2);font-size:10.5px;color:var(--text-dim)}
.wl-round.is-first .wl-round-head{background:#fff3d6;color:#8a5a00}
.wl-round-name{font-weight:650;color:var(--text)}
.wl-round.is-first .wl-round-name{color:#8a5a00}
.wl-round-date{font-variant-numeric:tabular-nums}
.wl-level{margin-left:auto;padding:1px 6px;border-radius:4px;font-size:9.5px;font-weight:600}
.wl-level.remind{background:#fdf1d8;color:#a5650a}
.wl-level.abnormal{background:#ffe3e7;color:var(--danger-text)}
/* 首轮＝客户/管理员定的要求，固定黄底白字（业务指定的 #ff7b00） */
.wl-round.is-first .wl-round-content{background:#ff7b00;color:#fff}
.wl-round-content{padding:7px 9px;font-size:11.5px;line-height:1.65;max-height:96px;overflow:hidden;overflow-wrap:anywhere;position:relative}
.wl-round-content:not(.is-empty)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;background:linear-gradient(transparent,var(--panel))}
.wl-round.is-first .wl-round-content::after{background:linear-gradient(transparent,#ff7b00)}
/* 首轮正文里的富文本自带颜色（旧表导入时带进来的深色字），会把"白字"盖掉。
   首轮是业务指定的黄底白字，这里强制统一，别让内联色赢了。 */
/* 同上：不再逐个强制白字 */
.wl-round-content>*:first-child{margin-top:0}
.wl-round-content>*:last-child{margin-bottom:0}
.wl-muted{color:var(--text-dim)}
.wl-round-foot{display:flex;justify-content:flex-end;padding:0 7px 6px}
.wl-round-edit{border:1px solid var(--line);background:var(--panel-2);color:var(--accent-text);font-size:10px;padding:3px 8px;border-radius:5px;cursor:pointer}
.wl-lane-foot{display:flex;justify-content:flex-end;margin-top:7px}
.wl-new-round{border:1px dashed var(--line);background:transparent;color:var(--accent-text);font-size:10.5px;padding:5px 9px;border-radius:6px;cursor:pointer;white-space:nowrap}
.wl-new-round:hover{background:var(--accent-soft);border-color:var(--accent)}
.wl-new-round.is-first{border-style:solid;border-color:var(--accent);background:var(--accent-soft);font-weight:600}

/* 资料批次：边框颜色＝工厂颜色 */
.wl-batch{margin:0 7px 6px;padding:6px 8px;border-left:4px solid var(--factory);border-radius:0 6px 6px 0;background:var(--panel-2)}
.wl-batch-meta{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:10px;color:var(--text-dim);align-items:center}
.wl-batch-factory{font-weight:650;color:var(--text)}
.wl-batch-sent.is-missing{color:var(--danger-text);font-weight:600}
.wl-batch-code{font-variant-numeric:tabular-nums}
.wl-batch-files{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.wl-batch-files img{width:32px;height:32px;object-fit:cover;border-radius:5px;border:2px solid var(--factory);background:#fff}

/* 轮次编辑对话框 */
.wl-dialog.wl-round-editor{width:min(920px,95vw)}
.wl-round-hint{margin:0;font-size:11px;color:var(--text-dim);line-height:1.7;align-self:center}
.wl-batches-edit{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:10px}
.wl-batches-edit h3{margin:0;font-size:13px}
.wl-batches-edit h3 .wl-muted{font-weight:400;font-size:11px}
.wl-batch-form{border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--panel-2)}
.wl-batch-form-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.wl-batch-form-head b{font-size:12px}
.wl-batch-files-edit{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px}
.wl-file{position:relative;display:inline-flex}
.wl-file img{width:54px;height:54px;object-fit:cover;border-radius:6px;border:1px solid var(--line);background:#fff}
/* 资料附件拖拽换顺序：抓起来、目标位置给一条竖线提示（11-18 业务要求） */
.wl-batch-files-edit .wl-file{cursor:grab;transition:opacity .12s,box-shadow .12s}
.wl-batch-files-edit .wl-file:active{cursor:grabbing}
.wl-batch-files-edit .wl-file.is-dragging{opacity:.4;cursor:grabbing}
.wl-batch-files-edit .wl-file.is-drop-before::after,
.wl-batch-files-edit .wl-file.is-drop-after::after{content:'';position:absolute;top:-2px;bottom:-2px;width:4px;border-radius:2px;background:var(--accent);box-shadow:0 0 0 1px #fff;pointer-events:none}
.wl-batch-files-edit .wl-file.is-drop-before::after{left:-6px}
.wl-batch-files-edit .wl-file.is-drop-after::after{right:-6px}
.wl-file button{position:absolute;top:-6px;right:-6px;width:17px;height:17px;border-radius:50%;border:0;background:var(--danger);color:#fff;font-size:11px;line-height:1;cursor:pointer}
.wl-rich.is-first{background:#fff;color:#202226;min-height:160px}
/* 编辑首轮时同样是黄底白字：内联深色字一律压成白色，避免橙底上看不清。 */
/* 首轮编辑：只给默认白字，用户自己加的底色/字色以行内样式为准 */
.wl-rich.is-first{color:#202226}   /* 编辑区默认白底黑字；打过底色的按配色表取字色 */

/* 项目概况里的三块内容 */
.wl-profile-blocks{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.wl-profile-blocks h3{margin:0 0 7px;font-size:13px}
.wl-refs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}
.wl-ref{display:flex;flex-direction:column;gap:4px;align-items:center}
.wl-ref img{width:74px;height:82px;object-fit:cover;border-radius:7px;background:var(--panel-2);border:1px solid var(--line)}
.wl-ref button{border:0;background:transparent;color:var(--text-dim);font-size:10px;cursor:pointer}

/* 工厂与颜色 */
.wl-dialog.wl-factory-editor{width:min(680px,94vw)}
.wl-factory-row{display:grid;grid-template-columns:minmax(0,1fr) 96px 64px;gap:10px;align-items:end;padding:9px 0;border-bottom:1px solid var(--line-soft)}
.wl-factory-row label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--text-dim)}
.wl-factory-row input[type="color"]{height:32px;padding:2px;border-radius:6px;border:1px solid var(--line);background:var(--panel)}
.wl-dialog-sub{margin:2px 0 0;font-size:11px;color:var(--text-dim)}


/* ================================================================ 多选筛选 + 时间节点 + 状态单选 */

/* 顶部工具栏多一排：标题｜快捷分段｜搜索｜四个多选｜操作 */
.wl-topbar{grid-template-columns:auto auto minmax(150px,1fr) auto auto;grid-template-areas:"title filters search multiselects actions"}
.wl-multiselects{grid-area:multiselects;display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0}
.wl-ms{position:relative}
.wl-ms>summary{display:flex;align-items:center;gap:4px;height:32px;box-sizing:border-box;padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text-dim);font-size:12px;white-space:nowrap;cursor:pointer;list-style:none;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.wl-ms>summary::-webkit-details-marker{display:none}
.wl-ms>summary i{font-style:normal;font-size:9px;color:var(--text-dim);flex:0 0 auto}
.wl-ms>summary.has-pick{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text);font-weight:600}
.wl-ms-menu{position:absolute;left:0;top:38px;z-index:20;width:230px;max-height:330px;overflow:auto;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-pop)}
.wl-ms-list{display:flex;flex-direction:column}
.wl-ms-list label{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;font-size:12px;cursor:pointer;color:var(--text)}
.wl-ms-list label:hover{background:var(--accent-soft)}
.wl-ms-list input[type="checkbox"]{width:auto;min-width:0;margin:0;flex:0 0 auto;accent-color:var(--accent)}
.wl-ms-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl-ms-clear{width:100%;border:0;border-bottom:1px solid var(--line-soft);background:transparent;color:var(--text-dim);font:inherit;font-size:11px;padding:6px 8px;margin-bottom:3px;text-align:left;cursor:pointer}
.wl-ms-clear:hover{color:var(--accent-text)}
/* 排序菜单：全是复选框，按勾选先后当优先级；勾了 2 个以上时右边标 1/2/3 */
.wl-sortms>summary{max-width:196px}
.wl-sort-menu{width:230px}
.wl-sort-idx{margin-left:auto;flex:0 0 auto;font-size:9.5px;font-weight:700;color:#fff;
  background:var(--accent);border-radius:999px;padding:0 5px;line-height:1.7}
.wl-sort-hint{margin-top:4px;padding:6px 8px 2px;border-top:1px solid var(--line-soft);font-size:10px;
  line-height:1.5;color:var(--text-dim)}

/* 项目概况里的四个时间节点：两行四格，等宽不换行 */
.wl-dates{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;font-size:10.5px;color:var(--text-dim);font-variant-numeric:tabular-nums}
.wl-dates span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-dates i{font-style:normal;color:var(--text-dim);opacity:.75;margin-right:4px}

/* 状态单选 */
.wl-status-pick{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 4px}
.wl-status-opt{display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border:1px solid var(--line);border-radius:20px;font-size:12px;cursor:pointer;color:var(--text-dim);background:var(--panel)}
.wl-status-opt input{position:absolute;opacity:0;pointer-events:none}
.wl-status-opt:has(input:checked){font-weight:600;border-color:currentColor}
.wl-status-opt.st-active:has(input:checked){background:var(--accent-soft);color:var(--accent-text)}
.wl-status-opt.st-ordered:has(input:checked){background:var(--info-soft);color:var(--info)}
.wl-status-opt.st-shipped:has(input:checked){background:var(--ok-soft);color:var(--ok-text)}
.wl-status-opt.st-cancelled:has(input:checked){background:var(--danger-soft);color:var(--danger-text)}
.wl-status-opt.st-archived:has(input:checked){background:var(--panel-2);color:var(--text)}

.wl-section-title{margin:18px 0 8px;font-size:13px;font-weight:650;color:var(--text)}
.wl-dates-grid{align-items:start}
.wl-field-hint{display:block;margin-top:4px;font-size:10px;font-weight:400;color:var(--text-dim);line-height:1.5}

/* 新状态口径的徽标配色（取消用红、出货用绿、已下订单用紫，归档灰） */
.wl-status.ordered{background:var(--info-soft);color:var(--info)}
.wl-status.shipped{background:var(--ok-soft);color:var(--ok-text)}
.wl-status.cancelled{background:var(--danger-soft);color:var(--danger-text)}
.wl-status.archived{background:var(--panel-2);color:var(--text-dim)}
.wl-readonly-note{margin-bottom:16px}

/* ================================================================ 单元格：外显 + 小表格详情
   外显＝白底黑字、只显示最后一条信息；黄底只在点开的小表格里出现（图1→图3）。 */
.wl-table td.wl-lane{padding:8px 9px}
.wl-cell2{position:relative;display:block;min-height:104px;overflow:hidden;box-sizing:border-box;
  border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:var(--panel);color:var(--text);cursor:pointer;text-align:left}
.wl-cell2:hover{border-color:var(--accent)}
.wl-cell2.is-cancelled{cursor:default}
.wl-cell2.is-cancelled:hover{border-color:var(--line)}
.wl-cell2-round{display:block;font-size:9.5px;color:var(--text-dim);margin-bottom:3px}
.wl-cell2.is-cancelled .wl-cell2-round{color:inherit;opacity:.75}
.wl-cell2-text{font-size:11.5px;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.wl-cell2-empty{display:grid;place-items:center;height:78px;font-size:11px;color:var(--text-dim)}
.wl-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;z-index:1}
.wl-dot.is-yellow{background:#ffbd00;box-shadow:0 0 0 2px #ffbd0040}
.wl-dot.is-red{background:#e01b1b;box-shadow:0 0 0 2px #e01b1b40}

.wl-cell2-foot{display:flex;align-items:center;gap:6px;margin-top:5px;min-height:22px;flex-wrap:nowrap}
.wl-cell2-sent{font-size:9.5px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto;max-width:104px}
.wl-cell2-files{display:flex;align-items:center;gap:5px;flex:1;min-width:0;overflow:hidden}
.wl-file-group{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto}
.wl-file-group img{width:24px;height:24px;object-fit:cover;border:2px solid var(--factory);border-radius:5px;background:#fff;cursor:zoom-in}
.wl-file-more{font-style:normal;font-size:9px;color:var(--text-dim);margin-left:-1px}

/* 颜色标记下拉（图4 的 14 色） */
.wl-color{position:relative;margin-left:auto;flex:0 0 auto}
.wl-color>summary{display:flex;align-items:center;gap:4px;height:21px;padding:0 6px;border:1px dashed var(--line);border-radius:5px;background:var(--panel);color:var(--text-dim);font-size:9.5px;cursor:pointer;list-style:none;white-space:nowrap}
.wl-color>summary::-webkit-details-marker{display:none}
.wl-color>summary i{width:9px;height:9px;border-radius:2px;background:var(--line);display:inline-block}
.wl-color>summary b{font-weight:400;font-size:8px;opacity:.7}
.wl-color-menu{position:absolute;right:0;bottom:26px;z-index:40;width:212px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-pop)}
.wl-color-swatch{height:26px;border:0;border-radius:5px;font-size:10px;cursor:pointer;padding:0}
.wl-color-none{grid-column:1/-1;height:24px;border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--text-dim);font-size:10px;cursor:pointer}

/* 小表格详情（图2） */
.wl-dialog.wl-cell-editor{width:min(1080px,95vw)}
.wl-mini-wrap{overflow:auto}
.wl-mini{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;background:var(--panel);border-radius:8px;overflow:hidden}
.wl-mini th,.wl-mini td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 8px;vertical-align:top}
.wl-mini tr>*:first-child{border-left:1px solid var(--line)}
.wl-mini thead th{background:var(--panel-2);color:var(--text-dim);font-weight:600;text-align:center;border-top:1px solid var(--line)}
.wl-mini-head1 th{font-size:12px}
.wl-mini-group{letter-spacing:.2em}
.wl-mini-round{width:74px;font-weight:650;text-align:center;white-space:nowrap;background:var(--panel-2)}
.wl-mini-round.is-first{background:#fff3d6;color:#8a5a00}
.wl-mini-date{width:100px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--text-dim)}
.wl-mini-content{line-height:1.7;overflow-wrap:anywhere}
/* 首轮＝客户需求：黄底白字，只有点开这张小表格才看得到 */
.wl-mini-content.is-first{background:#ff7b00;color:#fff}
/* 旧表导入的正文带着深色单元格底纹（#333f50 之类），会盖掉首轮的橙底；
   小表格里一律让底纹透明，只保留文字自身的强调色（红字等）。 */
/* 不再强制透明：用户上传/编辑时加的底色要能显示出来 */
/* 首轮正文默认白字；但已经按配色表设过字色的（有底色高亮）必须保留 —— 不能再用 !important 压掉 */
/* 首轮正文：默认白字来自容器继承；带底色的片段由 normalizeInk 写入行内字色，子元素继承它 */
.wl-mini-content.is-feedback{background:rgba(254,142,158,.22)}
.wl-mini-sent{width:96px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.wl-mini-files img{width:34px;height:34px;object-fit:cover;border:2px solid var(--line);border-radius:5px;margin:0 4px 3px 0;cursor:zoom-in}
.wl-mini-factory{width:130px;overflow-wrap:anywhere}
.wl-mini-factory i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px}
.wl-mini-code{width:110px;overflow-wrap:anywhere}.wl-code-chips{display:flex;flex-wrap:wrap;gap:3px}.wl-code-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;background:var(--panel-2);border:1px solid var(--line);border-radius:20px;font-size:11px;color:var(--text);white-space:nowrap;line-height:1.4}.wl-code-chip button{border:0;background:transparent;cursor:pointer;color:var(--text-dim);padding:0;font-size:11px;line-height:1}.wl-code-label{grid-column:1/-1;font-size:12px;color:var(--text-dim);display:flex;flex-direction:column;gap:7px;min-width:0}.wl-code-chip.is-edit{cursor:text}.wl-code-chip.is-edit:hover{border-color:var(--accent);color:var(--accent-text)}.wl-code-chip button{min-width:14px;min-height:14px;display:inline-flex;align-items:center;justify-content:center}.wl-code-chip button:hover{color:var(--danger-text)}.wl-code-box{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:38px;padding:5px 10px;border:1px solid var(--line-soft);border-radius:8px;background:var(--bg);cursor:text}.wl-code-box:focus-within{box-shadow:0 0 0 2px var(--accent-line)}.wl-code-box [data-code-input]{border:none;outline:none;background:transparent;font:inherit;font-size:13px;color:var(--text);min-width:140px;flex:1;padding:0}.wl-code-box .wl-code-chip button{display:inline-flex}
.wl-mini-empty{text-align:center;color:var(--text-dim);padding:38px 10px!important}
.wl-mini-row{cursor:pointer}
/* 业务要求：鼠标移到表上不要有任何变色（原来 hover 会把黄底洗成浅蓝，影响阅读）。
   只保留上面那行可点击的光标提示。 */
.wl-mini-hint{margin:10px 2px 0;font-size:11px;color:var(--text-dim)}
.wl-mini-footer .wl-mini-actions{display:flex;gap:8px;flex:0 0 auto}

/* 项目取消：整个项目的每一格（含下方寄样/附件行）统一灰底黑字，覆盖格子自己的颜色设置 */
.wl-table td.wl-lane.is-cancelled{background:#808080}
.wl-table td.wl-lane.is-cancelled .wl-cell2{background:#808080!important;color:#202226!important;border-color:#6f6f6f}
.wl-table td.wl-lane.is-cancelled .wl-cell2-round,
.wl-table td.wl-lane.is-cancelled .wl-cell2-sent,
.wl-table td.wl-lane.is-cancelled .wl-cell2-empty{color:#202226;opacity:.8}

/* ================================================================ 序号列 + 项目概况（示意图版）
   序号列固定 44px 钉在最左；项目概况列宽收到原来的 2/3，内容框与其它格等高。 */
.wl-table .wl-sticky-index{position:sticky;left:0;z-index:3;width:var(--wl-index-width);min-width:var(--wl-index-width);max-width:var(--wl-index-width);
  background:var(--panel-2);text-align:center;font-size:11px;color:var(--text-dim);font-variant-numeric:tabular-nums;padding:6px 2px}
.wl-table th.wl-sticky-index{z-index:6;background:var(--panel-2);padding:10px 2px}
.wl-index-num{font-size:13px;font-weight:600;color:var(--text);margin-bottom:3px}
.wl-index-code{font-size:8px;font-weight:600;color:var(--accent-text);background:var(--accent-soft);padding:1px 4px;border-radius:3px;margin:2px auto;display:inline-block;max-width:90%}
.wl-index-status{font-size:8px;padding:1px 4px;border-radius:3px;background:var(--accent-soft);color:var(--accent-text);white-space:nowrap;margin-top:3px}
.wl-index-status.st-ordered{background:var(--info-soft);color:var(--info)}
.wl-index-status.st-shipped{background:var(--ok-soft);color:var(--ok-text)}
.wl-index-status.st-cancelled{background:var(--danger-soft);color:var(--danger-text)}
.wl-index-status.st-archived{background:var(--panel-2);color:var(--text-dim)}
/* ✦ 呼唤美维斯：序号格最下方，点开这个项目的专属对话
   只把图标绝对定位到单元格底部，不改 td 的 display ——
   一旦把 td 改成 flex，它就不再是表格单元格，行高和底色会散掉。 */
.wl-index-ask{position:absolute;left:50%;margin-left:-11px;bottom:27%;display:block;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;
  color:var(--persona-bg);font-size:15px;line-height:22px;cursor:pointer;transition:background .15s,transform .15s}
.wl-index-ask:hover,.wl-index-ask:focus-visible{background:var(--chip-violet-bg);transform:scale(1.12);outline:none}
.wl-index-ask svg{display:block;margin:3px auto;width:16px;height:16px;color:inherit}
.wl-table.is-compact .wl-index-ask{height:18px;line-height:18px;font-size:13px;bottom:8px;margin-left:-9px;width:18px}
.wl-table.is-compact .wl-index-ask svg{margin:1px auto;width:15px;height:15px}
.wl-m-ask{position:static;left:auto;bottom:auto;margin:0 0 0 auto;width:34px;height:34px;line-height:34px;font-size:19px}
/* 序号格：✦（呼唤美维斯）下面一颗「知识库」——点开就是这个项目的知识库资料夹 */
.wl-index-kb{position:absolute;left:50%;margin-left:-11px;bottom:11%;display:block;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;
  color:var(--accent-text);cursor:pointer;transition:background .15s,transform .15s}
.wl-index-kb:hover,.wl-index-kb:focus-visible{background:var(--accent-soft);transform:scale(1.12);outline:none}
.wl-index-kb svg{display:block;margin:3px auto;width:16px;height:16px;color:inherit}
/* 折叠模式：两个图标并排，别叠在一起 */
.wl-table.is-compact .wl-index-ask{margin-left:1px}
.wl-table.is-compact .wl-index-kb{bottom:8px;height:18px;width:18px;margin-left:-21px}
.wl-table.is-compact .wl-index-kb svg{margin:2px auto;width:14px;height:14px}
.wl-m-ask svg{width:20px;height:20px;margin:7px auto}
.wl-project-no{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.wl-table .wl-profile{position:sticky;left:var(--wl-index-width);z-index:2;background:var(--panel);
  box-shadow:5px 0 8px -7px #72849d;width:var(--wl-profile-width);min-width:var(--wl-profile-width);max-width:var(--wl-profile-width);padding:8px 9px}
.wl-table th.wl-sticky-profile{position:sticky;left:var(--wl-index-width);z-index:5;background:var(--panel-2)}

.wl-profile-box{display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:center;padding:8px 10px}
.wl-profile-top{position:absolute;top:5px;right:7px;left:7px;display:flex;justify-content:flex-end;gap:4px;pointer-events:none}
.wl-pf-status{font-size:9px;padding:1px 5px;border-radius:4px;background:var(--accent-soft);color:var(--accent-text);white-space:nowrap}
.wl-pf-status.is-review{background:var(--warn-soft);color:var(--warn-text)}
.wl-pf-status.st-ordered{background:var(--info-soft);color:var(--info)}
.wl-pf-status.st-shipped{background:var(--ok-soft);color:var(--ok-text)}
.wl-pf-status.st-cancelled{background:var(--danger-soft);color:var(--danger-text)}
.wl-pf-status.st-archived{background:var(--panel-2);color:var(--text-dim)}
.wl-pf-alert{font-size:9px;padding:1px 5px;border-radius:4px;background:var(--danger-soft);color:var(--danger-text);white-space:nowrap}
/* 项目概况右上角「未读 N」：这个项目还有没读的格时出现，点一下直接打开那一格。
   没读的格可能在右边没滚到的列里，靠这个入口把人带过去。 */
.wl-pf-unread{position:absolute;top:5px;right:6px;z-index:3;border:0;cursor:pointer;font-family:inherit;
  font-size:9.5px;font-weight:700;line-height:1.65;color:#fff;background:#169875;border-radius:999px;padding:0 6px}
.wl-pf-unread:hover{background:#0e7a5c}
.wl-profile-box:has(.wl-pf-unread) .wl-profile-name{padding-right:46px}
.wl-profile-name{font-size:13px;font-weight:650;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px}
.wl-profile-rule{height:1px;background:currentColor;opacity:.18;margin:3px 0}
.wl-profile-formula{font-size:10.5px;line-height:1.55;color:var(--text-dim);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wl-profile-box.is-first,.wl-profile-box[style] .wl-profile-formula{color:inherit}
.wl-profile-box[style] .wl-profile-formula{opacity:.85}

.wl-profile-foot{margin-top:5px;display:flex;flex-direction:column;gap:3px}
.wl-pf-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;font-size:9.5px;color:var(--text-dim);line-height:1.5}
.wl-pf-row b{font-weight:600;color:var(--text)}
.wl-pf-left{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}
.wl-pf-center{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;max-width:96px}
.wl-pf-right{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.wl-pf-photos{display:flex;align-items:center;gap:3px;justify-content:center;min-width:0;overflow:hidden}
.wl-pf-photos img{width:22px;height:22px;object-fit:cover;border:1px solid var(--line);border-radius:4px;background:var(--panel-2);cursor:zoom-in;flex:0 0 auto}
.wl-pf-more{font-style:normal;font-size:9px;color:var(--text-dim);flex:0 0 auto}
.wl-pf-dates{margin-top:2px;padding-top:3px;border-top:1px dashed var(--line);font-size:9.5px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-profile-foot .wl-color>summary{height:19px;padding:0 5px;font-size:9px}
.wl-profile-foot .wl-color-menu{bottom:24px;right:-4px}
/* 项目取消：项目概况整格也灰底黑字 */
.wl-table td.wl-profile.is-cancelled{background:#808080}
.wl-table td.wl-profile.is-cancelled .wl-profile-box{background:#808080!important;color:#202226!important;border-color:#6f6f6f}
.wl-table td.wl-profile.is-cancelled .wl-profile-formula,
.wl-table td.wl-profile.is-cancelled .wl-pf-row,
.wl-table td.wl-profile.is-cancelled .wl-pf-row b{color:#202226}

/* ================================================================ 行分割线 / 排序 / 中英文名
   业务要求：行与行之间要看得清楚，所以行线加粗加深（原来 1px 极淡，扫一屏容易串行）。 */
.wl-table tbody td{border-bottom:2px solid var(--line-strong)}
.wl-table tbody tr:last-child td{border-bottom:1px solid var(--line-strong)}

/* 排序下拉：和四个多选筛选同一排、同一个高度 */
.wl-sort{display:inline-flex;flex:0 0 auto}
.wl-sort select{height:32px;box-sizing:border-box;padding:4px 8px;font-size:12px;margin:0;max-width:168px;
  border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text-dim);cursor:pointer}

/* 项目概况：中文名为正名，英文名小一档灰字放下面 */
.wl-profile-name small{display:block;margin-top:2px;font-size:10px;font-weight:400;color:var(--text-dim);line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.wl-profile-box[style] .wl-profile-name small{color:inherit;opacity:.75}
.wl-name-origin{margin:2px 0 0;font-size:11px;color:var(--text-dim);line-height:1.6;overflow-wrap:anywhere}
.wl-name-origin span{color:var(--text)}


/* 小表格列宽（colgroup 控制）：轮次/建表时间窄，内容跨 4 列铺开，资料四列等宽 */
.wl-mini .wl-mini-c-round{width:76px}
.wl-mini .wl-mini-c-date{width:104px}
.wl-mini .wl-mini-c-sent{width:104px}
.wl-mini .wl-mini-c-files{width:auto}
.wl-mini .wl-mini-c-factory{width:132px}
.wl-mini .wl-mini-c-code{width:112px}
.wl-mini-head1 th{text-align:center}
.wl-mini-content{text-align:left;line-height:1.75;max-height:none}
.wl-mini-row.is-content .wl-mini-content{min-height:34px}
.wl-mini-sent,.wl-mini-files,.wl-mini-factory,.wl-mini-code{width:auto}

/* 内容行虽然已经横向铺开，但长正文仍会把整张小表撑得很高：
   限个高度、内部滚动，需要看全文时在格子里滚，不顶开整张表。 */
.wl-mini-content{max-height:300px;overflow:auto;scrollbar-width:thin}
.wl-mini-content::-webkit-scrollbar{width:8px}
.wl-mini-content::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:4px}
.wl-mini-content.is-first{scrollbar-color:rgba(255,255,255,.45) transparent}

/* ================================================================ 小表格（业务示意图：资料在上、内容在下）
   列：建表时间 ｜ 寄样时间 ｜ 附图 ｜ 工厂 ｜ 资料编码
   一轮有几家工厂就几行资料；建表时间纵向跨完这些行；内容整行铺开在最下面。 */
.wl-mini .wl-mini-c-date{width:112px}
.wl-mini .wl-mini-c-sent{width:112px}
.wl-mini .wl-mini-c-files{width:auto}
.wl-mini .wl-mini-c-factory{width:146px}
.wl-mini .wl-mini-c-code{width:124px}
.wl-mini-head1 th{text-align:center;white-space:nowrap}
/* 内容标签行：整行居中，告诉你是哪一轮的内容 */
.wl-mini-label td{background:var(--panel-2);color:var(--text-dim);font-weight:600;text-align:center;padding:6px 8px;letter-spacing:.05em}
.wl-mini-label .wl-mini-row,
.wl-mini-body{cursor:pointer}
.wl-mini-body td{vertical-align:top}
/* 内容正文：整行宽度，限高内滚，首轮仍为橙底白字 */
.wl-mini-content{max-height:300px;overflow:auto;scrollbar-width:thin;text-align:left!important}
.wl-mini-content.is-first{background:#ff7b00;color:#fff;text-align:left}
.wl-mini-content.is-feedback{background:rgba(254,142,158,.22)}
.wl-mini-date{vertical-align:middle!important}

/* 内容正文限高滚动（放在内层 div 上，td 上的 max-height 在表格里不生效） */
.wl-mini-content-inner{max-height:300px;overflow:auto;scrollbar-width:thin}
.wl-mini-content-inner::-webkit-scrollbar{width:8px}
.wl-mini-content-inner::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:4px}
.wl-mini-content.is-first .wl-mini-content-inner{scrollbar-color:rgba(255,255,255,.5) transparent}

/* ================================================================ 小表格 v2：每轮一个区块
   灰色标题带（首轮 内容）→ 资料表头 → 资料行（几家工厂几行）→ 内容区（整行）。 */
/* 灰色的轮次标题带 */
.wl-mini-title td{background:var(--line);color:var(--text);font-weight:700;font-size:12.5px;
  text-align:center;letter-spacing:.08em;padding:9px;border-top:2px solid var(--line-strong);border-bottom:1px solid var(--line-strong)}
.wl-mini-title:first-child td{border-top:1px solid var(--line)}
/* 每轮都重复一次的资料表头（白底、稍浅的字，和标题带区分开） */
.wl-mini-subhead td{background:var(--panel);color:var(--text-dim);font-weight:600;font-size:11.5px;text-align:center;padding:6px 8px}
/* 内容区与标题带之间留出分隔 */
.wl-mini-body td{border-top:1px solid var(--line-strong)}

/* ================================================================ 每轮独立外框 + 块间间隔
   业务要求：一眼能分出有几轮，所以每轮一张表、外框加粗加深、块之间留空。 */
.wl-mini-wrap{display:flex;flex-direction:column;gap:16px}
.wl-mini{border:2px solid var(--line-strong);border-radius:10px;overflow:hidden;background:var(--panel);box-shadow:0 1px 2px rgba(20,32,60,.05)}
.wl-mini table,.wl-mini{border-collapse:separate;border-spacing:0}
.wl-mini-title td{border-top:0!important}
.wl-mini-title:first-child td{border-radius:0}
.wl-mini td:last-child,.wl-mini th:last-child{border-right:0}
.wl-mini tbody tr:last-child td{border-bottom:0}
.wl-mini.is-empty{border-style:dashed;box-shadow:none}

/* ================================================================ 内容字体锁定 Arial
   业务要求：内容文字默认 Arial，不允许改字体；加粗、颜色、底纹等样式照旧可改。
   前后端富文本白名单本来就会丢弃 font-family（粘贴 Word 带进来的字体也进不来），
   这里再用 CSS 兜住，确保任何情况下内容区都是 Arial。
   中文在 Arial 里没有字形，浏览器会自动回退到系统中文字体，属预期行为。 */
#workline-root, .wl-dialog { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
#workline-root *, .wl-dialog * { font-family: inherit; }
.wl-rich, .wl-rich *,
.wl-mini-content, .wl-mini-content-inner, .wl-mini-content-inner *,
.wl-cell2-text, .wl-cell2-text *,
.wl-profile-formula, .wl-profile-formula *,
.wl-profile-name, .wl-profile-name * { font-family: inherit !important; }

/* ================================================================ 四象限法页面
   上排四张卡片（重要/不重要/紧急/不紧急），下面是十字四象限。 */
#view-marks .quad-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
#view-marks .quad-stat{cursor:default;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:block}
#view-marks .quad-stat .n{font-size:30px;font-weight:650;line-height:1.15;color:var(--text)}
#view-marks .quad-stat .l{font-size:12px;color:var(--text-dim);margin-top:2px}
#view-marks .quad-stat[data-quad-key="important"]{background:var(--danger-soft);border-color:transparent}
#view-marks .quad-stat[data-quad-key="unimportant"]{background:var(--panel-2);border-color:transparent}
#view-marks .quad-stat[data-quad-key="urgent"]{background:var(--warn-soft);border-color:transparent}
#view-marks .quad-stat[data-quad-key="not_urgent"]{background:var(--accent-soft);border-color:transparent}

#view-marks .quad-panel{padding:0;overflow:hidden}
#view-marks .quad-head{padding:16px 18px 12px}
#view-marks .quad-head h4{margin:0 0 4px}
#view-marks .quad-head p{margin:0;font-size:12px;line-height:1.6}
#view-marks .quad-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border-top:1px solid var(--line)}
#view-marks .quad-cell{background:var(--panel);display:flex;flex-direction:column;min-height:190px}
#view-marks .quad-cell-head{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line-soft);font-size:12px}
#view-marks .quad-cell-head b{font-size:13px;font-weight:650;color:var(--text)}
#view-marks .quad-cell-head span{color:var(--text-dim)}
#view-marks .quad-cell-head i{margin-left:auto;font-style:normal;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-dim)}
#view-marks .q1 .quad-cell-head{background:var(--danger-soft)}
#view-marks .q2 .quad-cell-head{background:var(--accent-soft)}
#view-marks .q3 .quad-cell-head{background:var(--warn-soft)}
#view-marks .q4 .quad-cell-head{background:var(--panel-2)}
#view-marks .quad-items{display:flex;flex-direction:column;max-height:420px;overflow:auto}
#view-marks .quad-item{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line-soft);
  background:transparent;color:var(--text);font:inherit;padding:10px 14px;cursor:pointer}
#view-marks .quad-item:hover{background:var(--accent-soft)}
#view-marks .quad-item:last-child{border-bottom:0}
#view-marks .qi-top{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
#view-marks .qi-top b{font-size:12.5px;font-weight:600}
#view-marks .qi-top small{font-size:10.5px;color:var(--text-dim)}
#view-marks .qi-text{font-size:11.5px;color:var(--text-dim);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#view-marks .qi-tags{display:flex;gap:5px;margin-top:2px}
#view-marks .qi-tags i{font-style:normal;font-size:10px;padding:1px 6px;border-radius:4px;background:var(--panel-2);color:var(--text-dim)}
#view-marks .q1 .qi-tags i{background:var(--danger-soft);color:var(--danger-text)}
#view-marks .q2 .qi-tags i{background:var(--accent-soft);color:var(--accent-text)}
#view-marks .q3 .qi-tags i{background:var(--warn-soft);color:var(--warn-text)}
#view-marks .quad-empty{padding:16px 14px;font-size:11.5px}
#view-marks .quad-loose{padding:0 0 6px}
#view-marks .quad-loose h5{margin:0;padding:12px 14px 6px;font-size:12px;color:var(--text-dim);border-top:1px solid var(--line)}
#view-marks .quad-loose .quad-items{flex-direction:row;flex-wrap:wrap;max-height:none}
#view-marks .quad-loose .quad-item{flex:1 1 260px;border-bottom:0;border-right:1px solid var(--line-soft)}

/* 轮次标题带右侧的四象限标签 */
.wl-mini-title td{position:relative;padding-right:190px}
.wl-mini-title-text{display:inline-block}
.wl-quad-tags{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;gap:5px}
.wl-quad-tags.is-readonly{gap:6px}
.wl-quad-tags.is-readonly i{font-style:normal;font-size:10px;padding:1px 6px;border-radius:4px;background:var(--panel);color:var(--text-dim)}
.wl-tag-select{height:23px;padding:0 4px;font-size:10.5px;border:1px dashed var(--line);border-radius:5px;background:var(--panel);color:var(--text-dim);cursor:pointer;max-width:88px}
.wl-tag-select.has-value{border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text);font-weight:600}

/* ================================================================ 单元格右上角：四象限标签 + 催样圆点
   业务口径：重要 / 紧急 = 红；不重要 / 不紧急 = 绿；没设置就不显示。 */
.wl-cell2-corner{position:absolute;top:5px;right:6px;display:flex;align-items:center;gap:4px;z-index:2;pointer-events:none}
.wl-cell2-tags{display:flex;align-items:center;gap:3px}
.wl-cell2-tags i{font-style:normal;font-size:9px;font-weight:600;line-height:1.6;padding:0 5px;border-radius:4px;white-space:nowrap}
.wl-cell2-tags i.is-red{background:#e02020;color:#fff}
.wl-cell2-tags i.is-green{background:#169875;color:#fff}
/* 圆点改成跟着标签排在一行，不再自己绝对定位 */
.wl-cell2-corner .wl-dot{position:static;flex:0 0 auto}
/* 超时角标：和「未读」同一套胶囊样式，黄底 1–3 天、红底 4 天起、7 天起文字变「严重超时」 */
.wl-late{display:inline-block;font-style:normal;font-size:9.5px;font-weight:700;line-height:1.6;
  color:#fff;border-radius:999px;padding:0 6px;white-space:nowrap}
.wl-late.is-yellow{background:#ffbd00;color:#202226}
.wl-late.is-red{background:#e01b1b}

/* 底色选中后，格内所有文字统一跟随 ink（含轮次标签、寄样/附件那一行） */
.wl-cell2[style] .wl-cell2-round,
.wl-cell2[style] .wl-cell2-empty{color:inherit!important}
/* 正文保留编辑时的局部底色/字色，只有没设过的才继承单元格颜色 */
.wl-cell2[style] .wl-cell2-text{color:inherit}
.wl-cell2[style] .wl-cell2-text *:not([style*="color"]){color:inherit}
.wl-cell2[style] .wl-cell2-round{opacity:.82}
.wl-color summary{color:inherit}

/* 协作人多选 */
.wl-assist-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.wl-assist-opt{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid var(--line);
  border-radius:999px;font-size:12px;cursor:pointer;background:var(--panel)}
.wl-assist-opt input{margin:0}
.wl-assist-opt:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text);font-weight:600}

/* 简约文档工具条 */
.wl-rich-toolbar{display:flex;align-items:center;gap:2px;flex-wrap:wrap;padding:6px 8px;margin-bottom:8px;
  background:var(--panel-2);border:1px solid var(--line);border-radius:10px}
.wl-rich-toolbar>button{min-width:30px;height:28px;padding:0 7px;border:1px solid transparent;border-radius:7px;
  background:transparent;color:var(--text);font-size:13px;cursor:pointer}
.wl-rich-toolbar>button:hover{background:var(--panel);border-color:var(--line)}
.wl-rt-sep{width:1px;height:16px;background:var(--line);margin:0 4px}
.wl-rt-more{position:relative}
.wl-rt-more>summary{list-style:none;display:inline-flex;align-items:center;gap:3px;height:28px;padding:0 8px;
  border-radius:7px;cursor:pointer;font-weight:600;font-size:13px}
.wl-rt-more>summary::-webkit-details-marker{display:none}
.wl-rt-more>summary:hover{background:var(--panel)}
.wl-rt-more>summary b{font-size:9px;font-weight:400;color:var(--text-dim)}
.wl-rt-palette{position:absolute;z-index:50;top:32px;left:0;display:grid;grid-template-columns:repeat(7,20px);
  gap:4px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 10px 30px rgba(15,23,42,.16)}
.wl-rt-palette button{width:20px;height:20px;padding:0;border:1px solid rgba(0,0,0,.08);border-radius:4px;
  cursor:pointer;font-size:10px;line-height:1;display:inline-flex;align-items:center;justify-content:center}

/* 项目概况：工厂名称 */
.wl-pf-factory{font-size:9px;color:var(--text-dim);background:var(--panel-2);border-radius:4px;padding:0 4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90px}

/* 协作人下拉多选 */
.wl-pick{position:relative;display:block}
.wl-pick>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:6px;
  min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);
  cursor:pointer;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.wl-pick>summary::-webkit-details-marker{display:none}
.wl-pick>summary b{font-size:10px;color:var(--text-dim);font-weight:400}
.wl-pick[open]>summary{border-color:var(--accent)}
.wl-pick-list{position:absolute;z-index:60;left:0;right:0;top:40px;max-height:220px;overflow:auto;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:6px}
.wl-pick-opt{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:13px}
.wl-pick-opt:hover{background:var(--panel-2)}
.wl-pick-opt input{margin:0}

/* 工具条内联色板：一次点击生效，不弹层、不丢选区 */
.wl-rt-label{font-size:11px;color:var(--text-dim);margin:0 2px 0 4px;white-space:nowrap}
.wl-rt-swatches{display:inline-flex;align-items:center;gap:3px;flex-wrap:nowrap;overflow-x:auto;max-width:46%}
.wl-rt-swatch{width:16px;height:16px;min-width:16px;padding:0;border:1px solid rgba(0,0,0,.08);border-radius:4px;
  cursor:pointer;font-size:9px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.wl-rt-swatch:hover{transform:scale(1.15)}

/* 首轮编辑区与预览保持一致：默认黄底白字。
   早期用旧工具条点过"红字"的内容会残留内联 color，编辑时看起来是"黄底红字"，
   这里统一压成白字；底色改动仍然生效（只锁字色，不锁背景）。 */
.wl-rich.is-first{color:#202226}   /* 编辑区默认白底黑字；具体字色由 normalizeInk 按底色决定 */

/* 折叠项目：再次压缩行高（默认 104px → 56px） */
.wl-filter-toggle{height:30px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);
  color:var(--text-dim);font-size:12px;cursor:pointer;white-space:nowrap}
.wl-filter-toggle:hover{color:var(--text);border-color:var(--accent)}
.wl-filter-toggle.selected{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text);font-weight:600}
.wl-table.is-compact .wl-cell2{min-height:56px;max-height:56px;padding:4px 7px}
.wl-table.is-compact .wl-cell2-round{font-size:8.5px;margin-bottom:1px}
.wl-table.is-compact .wl-cell2-text{font-size:10.5px;line-height:1.35;-webkit-line-clamp:2}
.wl-table.is-compact .wl-cell2-tags i{font-size:8px;padding:0 3px}
.wl-table.is-compact .wl-profile-box{min-height:56px;max-height:56px;padding:4px 6px}
.wl-table.is-compact .wl-profile-name{font-size:10.5px;margin-top:0;-webkit-line-clamp:1}
.wl-table.is-compact .wl-profile-name small{display:none}
.wl-table.is-compact .wl-profile-formula{font-size:9px;-webkit-line-clamp:1;margin-top:2px}
.wl-table.is-compact .wl-profile-rule{margin:3px 0}
.wl-table.is-compact .wl-profile-foot{font-size:9px}
.wl-table.is-compact .wl-pf-dates{display:none}
.wl-table.is-compact .wl-cell2-foot{font-size:8.5px;min-height:0;padding-top:2px}

/* 协作人下拉：勾选框与名字同一行、左对齐（之前被全局 label 样式挤成上下两行居中） */
.wl-pick, .wl-pick-list, .wl-pick-opt{text-align:left}
.wl-pick-opt{display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:8px!important;width:100%}
.wl-pick-opt input[type="checkbox"]{width:auto!important;min-width:0;flex:0 0 auto;margin:0}
.wl-pick-opt span{flex:1 1 auto;text-align:left;white-space:normal}
.wl-check{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12.5px;color:var(--text)}
.wl-check input[type="checkbox"]{width:auto;margin:0}

/* 折叠项目按钮（放在放大表格右侧） */
.wl-topbar .pill.is-on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text);font-weight:600}

/* 概况框顶部的工厂代号徽标（所有能看该项目的人都能看到） */
.wl-pf-code{margin-right:auto;font-size:9px;font-weight:600;color:var(--accent-text);background:var(--accent-soft);
  border-radius:4px;padding:0 5px;line-height:1.6;white-space:nowrap}

/* 反馈标题带左上角的"删除反馈" */
.wl-mini-del{position:absolute;left:8px;top:50%;transform:translateY(-50%);z-index:2;
  font-size:10px;padding:1px 7px;border-radius:4px;border:1px solid rgba(0,0,0,.12);
  background:var(--panel);color:#c0392b;cursor:pointer;line-height:1.6}
.wl-mini-del:hover{background:#fdecec;border-color:#e6a8a1}

/* 单元格弹窗头部：右侧显示项目名 + 历史修改 */
.wl-head-right{display:flex;align-items:center;gap:10px}
.wl-head-project{font-size:15px;font-weight:650;color:var(--text);max-width:320px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}


/* 单元格内容悬停预览（停留 1 秒放大，显示完整内容） */
#wl-hover-card{position:fixed;z-index:9999;max-width:520px;max-height:60vh;overflow:auto;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;
  box-shadow:0 18px 48px rgba(15,23,42,.22);font-size:13px;line-height:1.7;color:var(--text);
  white-space:pre-wrap;pointer-events:auto;display:none;overscroll-behavior:contain;scrollbar-gutter:stable}
#wl-hover-card.is-on{display:block}

/* 颜色标签：不再跟着选中色变底，统一默认样式 */
.wl-color>summary{background:var(--panel);border-color:var(--line);color:var(--text-dim)}
.wl-color>summary i{width:8px;height:8px;border-radius:2px;display:inline-block;border:1px solid var(--line)}


/* 只把"物料列"的正文区拉高；项目概况保持原样（104px 紧凑两段式） */
.wl-table td.wl-lane .wl-cell2{min-height:150px}

/* 折叠模式下物料列也要矮下来（后加的 150px 规则优先级更高，这里显式覆盖） */
.wl-table.is-compact td.wl-lane .wl-cell2{min-height:64px;max-height:64px}
.wl-table.is-compact td.wl-lane{padding:6px 9px}

/* 历史版本详情：改动高亮 */
.wl-history article{cursor:pointer}
.wl-history article:hover b{color:var(--accent)}
.wl-rev-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.wl-rev-head b{font-size:14px}
.wl-rev-head small{color:var(--text-dim);font-size:11px}
.wl-diff{margin:10px 0 16px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.wl-diff h4{margin:0;padding:8px 12px;background:var(--panel-2);font-size:12px;color:var(--text-dim)}
.wl-diff-row{display:flex;gap:10px;padding:7px 12px;border-top:1px solid var(--line);font-size:13px}
.wl-diff-key{flex:0 0 96px;color:var(--text-dim)}
.wl-diff-val{flex:1 1 auto}
.wl-diff-row.is-changed{background:#fffbeb}
.wl-diff-row del{color:#b02a37;background:#fdecec;text-decoration:line-through;padding:0 3px;border-radius:3px;margin-right:6px}
.wl-diff-round{margin:12px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.wl-diff-round h4{margin:0;padding:8px 12px;background:var(--panel-2);font-size:12px;display:flex;gap:8px;align-items:center}
.wl-diff-round.is-changed{border-color:#e0b400}
.wl-diff-round.is-changed h4{background:#fff6d6}
.wl-diff-badge{font-size:10px;font-weight:600;color:#8a5a00;background:#ffe9a8;border-radius:4px;padding:1px 6px}
.wl-diff-content{padding:10px 12px;font-size:13px;line-height:1.7;max-height:320px;overflow:auto}

/* 建表时间：只读静态文本（不再显示输入框与日历） */
.wl-date-static{display:flex;align-items:center;min-height:38px;padding:0 12px;border:1px dashed var(--line);
  border-radius:8px;background:var(--panel-2);color:var(--text-dim);font-size:13px}

/* 三个时间列等宽（建表 / 寄样 / 出成分） */
.wl-mini .wl-mini-c-date,
.wl-mini .wl-mini-c-sent,
.wl-mini .wl-mini-c-formula{width:112px;min-width:112px;max-width:112px}
.wl-mini .wl-mini-formula{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 小表格所有信息列居中 */
.wl-mini .wl-mini-subhead td,
.wl-mini .wl-mini-date,
.wl-mini .wl-mini-sent,
.wl-mini .wl-mini-formula,
.wl-mini .wl-mini-files,
.wl-mini .wl-mini-factory,
.wl-mini .wl-mini-code{text-align:center}
.wl-mini .wl-mini-files img{margin:0 2px}

/* ================= 手机端只读视图 ================= */
  html.is-mobile .wl-table-wrap{display:none}
  html.is-mobile .wl-mobile{padding:10px 12px 24px}
  html.is-mobile .wl-m-head{display:flex;align-items:baseline;gap:8px;margin:4px 0 10px}
  html.is-mobile .wl-m-head h1{font-size:19px;margin:0}
  html.is-mobile .wl-m-head span{font-size:12px;color:var(--text-dim)}
  html.is-mobile .wl-m-search{margin-bottom:12px}
  html.is-mobile .wl-m-search input{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font-size:14px;background:var(--panel)}
  html.is-mobile .wl-m-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:12px}
  html.is-mobile .wl-m-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
  html.is-mobile .wl-m-card>header b{font-size:15.5px;line-height:1.35}
  html.is-mobile .wl-m-status{flex:0 0 auto;font-size:10.5px;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text)}
  html.is-mobile .wl-m-en{margin:2px 0 0;font-size:11.5px;color:var(--text-dim)}
  html.is-mobile .wl-m-meta{margin:6px 0 0;font-size:11.5px;color:var(--text-dim);line-height:1.6}
  html.is-mobile .wl-m-card-lane{margin-top:10px;border-radius:10px;padding:10px;background:var(--panel-2)}
  html.is-mobile .wl-m-lane-head{font-size:11px;opacity:.85;margin-bottom:3px}
  html.is-mobile .wl-m-lane-dates{font-size:10.5px;opacity:.8;margin-bottom:6px}
  html.is-mobile .wl-m-lane-body{font-size:13.5px;line-height:1.72;word-break:break-word}
  html.is-mobile .wl-m-lane-body p{margin:0 0 8px}
  html.is-mobile .wl-filters,html.is-mobile .wl-multiselects,html.is-mobile .wl-topbar .pill,html.is-mobile .wl-filter-toggle,html.is-mobile .wl-searchbar{display:none!important}

/* 手机端：解除"整页固定高度 + 内部滚动"的桌面布局，改为整页滚动 */
  html.is-mobile .col-func[data-view="workline"] .func-body{display:block!important;overflow:visible!important;height:auto!important;padding:0 10px 40px!important}
  html.is-mobile #view-workline.active{display:block!important;flex:none!important;height:auto!important;min-height:0!important}
  html.is-mobile #workline-root{display:block!important;flex:none!important;min-height:0!important;height:auto!important;overflow:visible!important}
  html.is-mobile .wl-table-wrap{display:none!important}
  html.is-mobile .wl-topbar{display:none!important}
  html.is-mobile .wl-summary{display:none!important}
  html.is-mobile .wl-toolbar{display:none!important}

/* ===== 手机端：团队项目九宫格 + 详情（只读） ===== */
html.is-mobile .col-menu .menu .m-item{display:none!important}
html.is-mobile .col-menu .menu .m-item[data-view="workline"]{display:flex!important}
html.is-mobile .col-menu .menu-group{display:none!important}
html.is-mobile .wl-mobile{padding:10px 12px 32px}
html.is-mobile .wl-m-head{display:flex;align-items:baseline;gap:8px;margin:2px 0 10px}
html.is-mobile .wl-m-head h1{font-size:19px;margin:0}
html.is-mobile .wl-m-head span{font-size:12px;color:var(--text-dim)}
html.is-mobile .wl-m-search{margin-bottom:12px}
html.is-mobile .wl-m-search input{width:100%;height:38px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font-size:14px;background:var(--panel)}
html.is-mobile .wl-m-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
html.is-mobile .wl-m-cell{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px;
  display:flex;flex-direction:column;gap:5px;min-height:118px;cursor:pointer;position:relative}
html.is-mobile .wl-m-cell-top{display:flex;align-items:flex-start;gap:5px}
html.is-mobile .wl-m-cell-top b{font-size:13.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html.is-mobile .wl-m-dot{width:7px;height:7px;border-radius:50%;background:#e0a800;flex:0 0 auto;margin-top:4px}
html.is-mobile .wl-m-cell-status{font-size:10px;color:var(--accent-text);background:var(--accent-soft);
  border-radius:999px;padding:1px 7px;align-self:flex-start}
html.is-mobile .wl-m-cell-meta{font-size:10.5px;color:var(--text-dim);line-height:1.5;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html.is-mobile .wl-m-cell-snippet{font-size:10.5px;color:var(--text-dim);line-height:1.5;margin-top:auto;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;opacity:.9}
html.is-mobile .wl-m-detail-head{display:flex;align-items:center;gap:10px;margin:2px 0 8px}
html.is-mobile .wl-m-back{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--panel);
  font-size:17px;line-height:1;color:var(--text);flex:0 0 auto}
html.is-mobile .wl-m-detail-head b{font-size:16px;line-height:1.35;display:block}
html.is-mobile .wl-m-detail-head span{font-size:10.5px;color:var(--text-dim)}
html.is-mobile .wl-m-card-lane{margin-top:10px;border-radius:10px;padding:10px;background:var(--panel-2)}
html.is-mobile .wl-m-lane-head{font-size:11px;opacity:.85;margin-bottom:3px}
html.is-mobile .wl-m-lane-dates{font-size:10.5px;opacity:.8;margin-bottom:6px}
html.is-mobile .wl-m-lane-body{font-size:13.5px;line-height:1.72;word-break:break-word}

/* 三级面包屑：项目 › 物料 › 轮次 */
.wl-crumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;line-height:1.4}
.wl-crumb i{font-style:normal;color:var(--text-dim);font-size:13px}
.wl-crumb-1{color:var(--text-dim);font-size:13px}
.wl-crumb-2{color:var(--text);font-weight:600}
.wl-crumb-3{color:var(--accent-text);font-weight:700;font-size:16px}
.wl-crumb-3+.wl-crumb-1{display:none}

/* 面包屑中间一级可点击 = 返回阅读模式 */
.wl-crumb-2.is-link{cursor:pointer;border-bottom:1px dashed transparent}
.wl-crumb-2.is-link:hover{color:var(--accent);border-bottom-color:var(--accent)}

/* 未读标记 */
.wl-unread{display:inline-block;margin-left:6px;font-style:normal;font-size:9.5px;font-weight:700;
  color:#fff;background:#169875;border-radius:999px;padding:0 6px;line-height:1.6;vertical-align:1px}
html.is-mobile .wl-unread{font-size:9px;padding:0 5px}

/* 首轮对业务员只读 */
.wl-round-editor .wl-readonly-note{margin-bottom:14px}
.wl-round-editor .wl-rich[contenteditable="false"]{background:var(--panel-2);cursor:default}

/* 出成分时间 + "成分已发" 按钮 */
.wl-date-with-btn{display:flex;align-items:center;gap:6px}
.wl-date-with-btn>input{flex:1;min-width:0}
.wl-date-with-btn>.pill{flex:0 0 auto;white-space:nowrap}

/* 轮次编辑：附件上传条 */
.wl-upload-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin:0 0 12px;
  border:1px dashed var(--accent-line);border-radius:10px;background:var(--accent-soft)}
.wl-upload-bar b{font-size:12.5px}
.wl-upload-btn{display:inline-flex;align-items:center;gap:6px;background:var(--panel);border:1px solid var(--accent);
  color:var(--accent-text);border-radius:8px;padding:6px 12px;font-size:12.5px;cursor:pointer}
.wl-upload-btn input{display:none}
.wl-upload-bar .wl-muted{font-size:11px}
/* 编辑时间标签 */
.wl-edit-time{font-style:normal;margin-left:8px;font-size:9.5px;color:var(--text-dim)}
.wl-mini-title-text .wl-edit-time:empty{display:none}

/* 保存遮罩：居中、盖住整张表，避免"正在保存"被忽略 */
#wl-save-mask{position:absolute;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(250,250,248,.72);backdrop-filter:blur(1px);z-index:50}
#wl-save-mask.is-on{display:flex}
.wl-save-mask-box{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);
  border-radius:14px;padding:18px 26px;box-shadow:var(--shadow-pop);font-size:14px;color:var(--text)}
.wl-save-mask-dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--accent);
  border-top-color:transparent;animation:wl-spin .8s linear infinite}
@keyframes wl-spin{to{transform:rotate(360deg)}}
.wl-dialog{position:relative}

/* ---- 时间节点：标签后直接写截止日期 ---- */
.wl-label-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.wl-deadline{font-style:normal;font-size:11px;font-weight:500;color:var(--warn-text);background:var(--warn-soft);border-radius:5px;padding:1px 7px}
.wl-deadline.is-done{color:var(--text-dim);background:var(--panel-2)}
/* ---- 资料上传框：选择 / 拖入 / 粘贴 ---- */
.wl-dropzone{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;padding:14px 16px;border:1.5px dashed var(--accent-line);border-radius:10px;background:var(--panel);cursor:default;outline:none;transition:background .15s,border-color .15s}
.wl-dropzone:hover{border-color:var(--accent)}
.wl-dropzone.is-active,.wl-dropzone:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.wl-dropzone.is-drag{background:var(--accent-soft);border-color:var(--accent);border-style:solid}
.wl-dropzone.is-busy{opacity:.75;pointer-events:none}
.wl-dropzone-tip{font-size:12px;color:var(--text-dim);line-height:1.6}
.wl-dropzone-tip b{color:var(--text);font-weight:600}
.wl-dropzone-state{font-size:12px;color:var(--accent);font-weight:600}
.wl-dropzone-state:empty{display:none}
.wl-batch-empty .wl-dropzone{margin-top:4px}
.wl-danger-text{color:var(--danger-text)!important;border-color:var(--danger-soft)!important}

/* ---- 预览模式（单元格小表格）里的时间节点 ---- */
.wl-mini .wl-mini-sent,.wl-mini .wl-mini-formula{white-space:normal}
.wl-mini-note{display:inline-block;font-style:normal;font-size:11px;line-height:1.45;color:var(--warn-text);background:var(--warn-soft);border-radius:5px;padding:2px 6px}
.wl-mini-note.is-done{color:var(--ok-text);background:var(--ok-soft)}
.wl-deadline.is-done{color:var(--ok-text);background:var(--ok-soft)}

/* ---- 正文里的图片（客户反馈图） ---- */
img.wl-inline-img{display:inline-block;max-width:min(100%,360px);max-height:260px;margin:4px 6px 4px 0;border-radius:6px;border:1px solid var(--line);background:#fff;vertical-align:top;cursor:zoom-in;object-fit:contain}
img.wl-inline-img:not([src]){width:120px;height:90px;background:var(--panel-2)}
.wl-rich img.wl-inline-img{max-height:320px}
.wl-mini-content img.wl-inline-img{max-height:200px}
#wl-hover-card img.wl-inline-img{max-height:160px}
.wl-cell2-text img.wl-inline-img{max-height:38px;max-width:60px;margin:2px 3px 0 0}
.wl-cell2-text img.wl-inline-img:not([src]){width:48px;height:36px}
/* ---- 表格单元格：标签旁的最后修改时间、右上角未读 ---- */
.wl-cell-stamp{font-style:normal;margin-left:6px;font-variant-numeric:tabular-nums;opacity:.85}
.wl-cell2-corner .wl-cell-unread{margin-left:0;pointer-events:none}

/* ================================================================ 正文编辑器（Tiptap / ProseMirror）
   外框 .wl-rich 照旧负责底色、边框、高度；真正可编辑的是里面的 .mw-prose。 */
.wl-rich{padding:0!important;display:block}
.wl-rich:focus-within{box-shadow:inset 0 0 0 2px var(--accent-line)}
.wl-rich .mw-prose{padding:18px 22px;min-height:125px;outline:none;white-space:pre-wrap;word-break:break-word}
.wl-rich.is-first .mw-prose{min-height:160px}
.wl-rich .mw-prose p{margin:4px 0 10px}
.wl-rich .mw-prose ul,.wl-rich .mw-prose ol{padding-left:25px}
.wl-rich .mw-prose blockquote{margin:6px 0;padding-left:12px;border-left:3px solid var(--line);color:inherit}
.wl-rich .mw-prose p.is-editor-empty:first-child::before{content:attr(data-placeholder);color:#8b94a5;float:left;height:0;pointer-events:none}
.wl-rich.is-readonly{background:var(--panel-2)}
.wl-rich.is-readonly .mw-prose{cursor:default}
.wl-rich-toolbar>button.is-on{background:var(--panel);border-color:var(--accent-line);color:var(--accent)}
/* 正文里的图片：一个整体，点选 → 蓝框；悬停右上角出现 ×；拖动＝移动 */
.mw-img{position:relative;display:inline-block;vertical-align:top;margin:4px 6px 4px 0;line-height:0;cursor:grab;border-radius:7px}
.mw-img:active{cursor:grabbing}
.mw-img img.wl-inline-img{margin:0;cursor:inherit;pointer-events:none}
.mw-img.is-selected{outline:3px solid #3568ed;outline-offset:1px}
.mw-img.is-pending img{opacity:.55}
.mw-img.is-pending::after{content:'';position:absolute;left:8px;right:8px;bottom:8px;height:3px;border-radius:2px;
  background:linear-gradient(90deg,#3568ed 0 40%,rgba(53,104,237,.2) 40% 100%);background-size:200% 100%;animation:mw-load 1s linear infinite}
@keyframes mw-load{from{background-position:100% 0}to{background-position:-100% 0}}
.mw-img-del{position:absolute;top:-8px;right:-8px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;
  background:#d20000;color:#fff;font-size:14px;line-height:16px;padding:0;cursor:pointer;display:none;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.wl-rich:not(.is-readonly) .mw-img:hover .mw-img-del,.wl-rich:not(.is-readonly) .mw-img.is-selected .mw-img-del{display:block}
.ProseMirror-selectednode{outline:none}
.wl-rich .ProseMirror-gapcursor:after{border-top-color:#3568ed}

/* 悬停预览卡：内容超长时出竖向滚动条，鼠标滚轮可以继续往下读 */
#wl-hover-card{max-height:min(60vh,520px);overflow-y:auto;overflow-x:hidden}
#wl-hover-card::-webkit-scrollbar{width:8px}
#wl-hover-card::-webkit-scrollbar-thumb{background:rgba(100,116,139,.45);border-radius:4px}
#wl-hover-card .wl-hover-more{margin:8px 0 0;font-size:12px;color:var(--text-dim)}
/* 资料编码：原地修改某个编号时的小输入框（外观和标签一致，只是可以打字） */
.wl-code-box .wl-code-edit{font:inherit;font-size:11px;line-height:1.4;padding:2px 7px;border:1px solid var(--accent);border-radius:20px;background:var(--panel);color:var(--text);outline:none;box-shadow:0 0 0 2px var(--accent-line);min-width:0;width:auto;margin:0}
.wl-formula-undo{color:var(--text-dim)}.wl-formula-undo:hover{color:var(--danger-text);border-color:var(--danger-text)}

/* 最近打开/编辑过的那一行：序号列左边一道蓝线，保存回来一眼找到 */
.wl-table tr.is-anchor td.wl-sticky-index{box-shadow:inset 3px 0 0 var(--accent)}

/* ================================================================ 顶栏排布（10-29 修）
   原来是固定列数的 grid：右侧美维斯面板一打开、表格区变窄，各块放不下就互相叠住，
   「业务员」等筛选盖住了刷新按钮。改成会自动换行的一排：放得下就一行，
   放不下时筛选和排序整体换到第二行，再窄就继续换行——任何宽度都不会叠在一起。 */
.wl-topbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.wl-topbar>*{min-width:0}
.wl-topbar h1,.wl-topbar .wl-filters{flex:0 0 auto}
.wl-topbar .wl-searchbar{flex:1 1 170px;min-width:150px}
.wl-topbar .wl-searchbar input{flex:1;width:auto;min-width:0}
.wl-topbar .wl-multiselects{flex:0 1 auto;flex-wrap:wrap;row-gap:6px}
.wl-topbar .wl-actions{flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
@container (max-width:1250px){
  .wl-topbar .wl-multiselects{order:9;flex:1 1 100%}
}

/* 项目卡片底部的交期：工厂已回复交期时用强调色，和"约定交期"区分开 */
.wl-pf-due.is-factory{color:var(--accent-text);font-weight:600}

/* ================================================================ 客户（10-31）
   序号列：客户代号在上、工厂代号在下，各占一行；客户待选（甲方负责对接多个客户）用警示色。 */
.wl-index-code{display:block;width:fit-content;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl-index-code.is-customer{background:var(--ok-soft);color:var(--ok-text)}
.wl-index-code.is-conflict{background:var(--warn-soft);color:var(--warn-text)}

/* 顶栏收紧：多了「客户」筛选，按钮和筛选文字缩短，筛选框收窄；放不下仍按 10-29 的规则整体换行 */
.wl-topbar .wl-ms>summary{max-width:120px;padding:5px 8px}
.wl-topbar .wl-sort select{max-width:112px}
.wl-topbar .wl-searchbar{flex:1 1 150px;min-width:130px}
.wl-topbar .wl-filters button{padding:7px 7px}

/* 内料：无需提供成分表 */
.wl-formula-skip{font-style:normal;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:10px;
  background:rgba(46,158,99,.10);color:#2e9e63;font-size:13px;border:1px solid rgba(46,158,99,.28)}
.wl-deadline.is-skip{color:#2e9e63}

/* 负向按钮组（项目暂停 / 项目取消）：和普通状态按钮同款，只是单独分组 */
.wl-status-sep{width:1px;align-self:center;height:20px;background:var(--line);margin:0 14px}
button.wl-status-opt{font-family:inherit;font-size:12px;font-weight:400;cursor:pointer;line-height:1.2}
button.wl-status-opt:hover{border-color:var(--accent)}
.wl-neg-btn.is-negative{background:#fff7e8;border-color:#e0a03a;color:#b87511;font-weight:600}

/* 上传进度提示（参考照片） */
.wl-upload-note{display:block;margin-top:4px;font-size:11px;color:var(--text-dim);min-height:14px}

/* 图片查看器：左右转 90°（存服务器，所有人看到都正）、缩放、下载 */
.wl-image-viewer{border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);
  width:min(1400px,96vw);height:min(94vh,1000px);max-width:96vw;max-height:94vh;padding:0;margin:auto;overflow:hidden}
.wl-image-viewer[open]{display:flex;flex-direction:column}
.wl-image-viewer::backdrop{background:var(--overlay);backdrop-filter:blur(3px)}
.wl-iv-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;
  border-bottom:1px solid var(--line);flex-wrap:wrap;flex:0 0 auto;background:var(--panel)}
.wl-iv-name{font-size:13px;color:var(--text-dim);min-width:0;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl-iv-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wl-iv-tools .pill{font-size:12px;padding:5px 10px}
.wl-iv-tools .pill[disabled]{opacity:.55;cursor:default}
.wl-iv-gap{width:1px;height:18px;background:var(--line);margin:0 4px}
.wl-iv-scale{font-size:12px;color:var(--text-dim);min-width:46px;text-align:center;font-variant-numeric:tabular-nums}
.wl-iv-stage{flex:1;min-height:0;overflow:auto;background:var(--bg-soft);display:flex;padding:16px}
.wl-iv-stage img{display:block;margin:auto;border-radius:8px;background:#fff;flex:0 0 auto}
html.is-mobile .wl-iv-head{padding:8px 10px;gap:8px}
html.is-mobile .wl-iv-name{max-width:100%}

/* 弹窗里的图片悬浮工具条：左转 / 右转 / 缩放 / 下载 / 关闭 / 删除 */
.wl-img-tools{position:fixed;z-index:60;display:flex;align-items:center;gap:2px;padding:4px 6px;
  background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-pop);
  font-size:12px;color:var(--text)}
.wl-img-tools button{border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;
  width:26px;height:26px;border-radius:6px;cursor:pointer;display:grid;place-items:center;line-height:1;padding:0}
.wl-img-tools button:hover{background:var(--accent-soft);color:var(--accent-text)}
.wl-img-tools button[disabled]{opacity:.45;cursor:default}
.wl-img-tools button.is-danger:hover{background:var(--danger-soft);color:var(--danger-text)}
.wl-it-sep{width:1px;height:16px;background:var(--line);margin:0 3px;flex:0 0 auto}
.wl-it-scale{font-size:10.5px;color:var(--text-dim);min-width:34px;text-align:center;font-variant-numeric:tabular-nums}
.wl-rich:not(.is-readonly) .mw-img.is-tools-on .mw-img-del{display:none!important}
.wl-img-tools button svg{display:block;width:16px;height:16px}
.wl-img-tools button.is-danger svg{width:16px;height:16px}

/* 顶栏「超时」下拉分档（2026-11-27）：与单元格角标同一口径 */
.wl-late-filter{position:static}
.wl-late-filter>summary{display:flex;align-items:center;gap:5px;white-space:nowrap;padding:7px 8px;
  font-size:12px;line-height:18px;border-radius:8px;cursor:pointer;list-style:none;color:var(--text-dim)}
.wl-late-filter>summary::-webkit-details-marker{display:none}
.wl-late-filter>summary.selected,.wl-late-filter.is-on>summary{color:var(--accent-text);background:var(--accent-soft);font-weight:600}
.wl-late-filter>summary i{font-style:normal;font-size:9px}
.wl-late-menu{position:fixed;z-index:400;min-width:190px;padding:6px;background:var(--panel);
  border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-pop);display:flex;flex-direction:column}
.wl-late-menu button{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--text);
  font:inherit;font-size:12px;padding:7px 8px;border-radius:6px;cursor:pointer;text-align:left;white-space:nowrap}
.wl-late-menu button:hover{background:var(--accent-soft)}
.wl-late-menu button.selected{font-weight:700;background:var(--accent-soft);color:var(--accent-text)}
.wl-late-menu .wl-filter-count{margin-left:auto}
.wl-late-swatch{width:9px;height:9px;border-radius:3px;background:var(--line);flex:0 0 auto}
.wl-late-swatch.is-yellow{background:var(--late-yellow)}.wl-late-swatch.is-red{background:var(--late-red)}
.wl-late-swatch.is-serious{background:var(--late-serious)}
html.is-mobile .wl-m-cell-top .wl-late{margin-left:auto;flex:0 0 auto}

/* ================== 双团队协同：1#客户贯通一栏（对话式）+ 私密备忘录 ================== */
.wl-dialog-span-td{padding:7px 8px!important;vertical-align:middle}
.wl-dialog-span{display:flex;flex-direction:column;gap:7px;padding:11px 14px;border:1px solid #c9d9ff;
  background:linear-gradient(180deg,#fbfdff,#f4f8ff);border-radius:9px;cursor:pointer;transition:.14s;min-height:104px}
.wl-dialog-span:hover{border-color:#3568ed;box-shadow:0 4px 14px rgba(53,104,237,.1)}
.wl-span-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11.5px}
.wl-span-who{font-weight:700;color:#2856cb;background:#edf3ff;border:1px solid #c9d9ff;border-radius:5px;padding:1px 7px;font-size:10.5px}
.wl-span-at{color:var(--text-dim);font-size:11px}
.wl-span-right{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.wl-span-done{font-size:10.5px;background:#e6f7f1;color:#1d6f68;border-radius:6px;padding:1px 8px;font-weight:600}
.wl-span-raw{border:1px solid var(--line);background:#fff;color:var(--text-dim);border-radius:5px;padding:1px 7px;font-size:10.5px;cursor:pointer}
.wl-span-raw:hover{border-color:#3568ed;color:#2856cb}
.wl-span-preview{font-size:12px;color:#3c4a63;line-height:1.65;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wl-span-band{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:auto}
.wl-span-mini{font-size:10.5px;border-radius:5px;padding:1px 7px;background:#eef1f7;color:#5a6a86;white-space:nowrap}
.wl-span-mini.st-b2a{background:#edf3ff;color:#2856cb;font-weight:600}
.wl-span-mini.st-a2c{background:#e6f7f1;color:#1d6f68;font-weight:600}
.wl-span-mini.st-done{background:#d6f2e6;color:#146a52;font-weight:600}
.wl-span-mini.st-skip{background:#f5f6fa;color:#a3aec0;text-decoration:line-through}
.wl-span-go{margin-left:auto;font-size:11.5px;color:#2856cb;font-weight:650;white-space:nowrap}
.wl-span-chat{background:#e01b1b;color:#fff;border-radius:999px;padding:0 7px;font-size:10px;font-weight:700;line-height:17px}

/* 项目概况弹窗内的私密备忘录（支持 2/3/4# 记录式与 1# 对话式共用） */
.wl-memo-card{border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:14px;overflow:hidden}
.wl-memo-head{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fcfdff;border-bottom:1px solid var(--line);font-size:12px;font-weight:650;flex-wrap:wrap}
.wl-memo-head small{margin-left:auto;font-weight:400;color:var(--text-dim);font-size:11px}
.wl-memo-list{max-height:170px;overflow:auto}
.wl-memo-item{display:flex;align-items:flex-start;gap:8px;padding:7px 12px;border-bottom:1px solid var(--line);font-size:12px}
.wl-memo-item:last-child{border-bottom:0}
.wl-memo-item.side-A{background:#fdf7ea;border-left:3px solid #f0d18d}
.wl-memo-item.side-B{background:#eef8f2;border-left:3px solid #9ad9be}
.wl-memo-item.is-done .wl-memo-txt{text-decoration:line-through;opacity:.6}
.wl-memo-txt{flex:1;min-width:0;word-break:break-word}
.wl-memo-meta{font-size:10.5px;color:#7d8ca3;white-space:nowrap}
.wl-memo-add{display:flex;gap:6px;padding:8px 12px;background:#fafbfd;border-top:1px solid var(--line)}
.wl-memo-add input{flex:1;min-width:0;border:1px solid var(--line);border-radius:6px;padding:5px 9px;font-size:12px}
