.workflow-editor,.workflow-stage-editor{border:1px solid var(--line,#e2e8e5);border-radius:14px;padding:16px;margin:0 0 14px;min-width:0}
.workflow-editor>legend,.workflow-stage-editor>legend{font-weight:700;padding:0 7px}
.workflow-editor label,.workflow-stage-editor label{display:flex;flex-direction:column;gap:6px;font-size:13px;margin:8px 0;min-width:0}
.workflow-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.workflow-fields[hidden],.workflow-editor [hidden],.task-create-form [data-workflow-single][hidden]{display:none!important}
.workflow-editor .workflow-check{display:flex;flex-direction:row;align-items:center}
.workflow-check input{width:auto;min-height:0}
.workflow-editor input,.workflow-editor select,.workflow-editor textarea{width:100%;box-sizing:border-box}
.workflow-editor input:not([type=checkbox]),.workflow-editor select,.workflow-editor textarea,.workflow-finance textarea,#workflow-audit-form input,#workflow-audit-form textarea{border:1px solid var(--line,#dce6e2);border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink,#18382d);font:inherit;font-size:13px;line-height:1.5;outline:none;box-sizing:border-box}
.workflow-editor input:not([type=checkbox]):focus,.workflow-editor select:focus,.workflow-editor textarea:focus,.workflow-finance textarea:focus,#workflow-audit-form input:focus,#workflow-audit-form textarea:focus{border-color:#81ab92;box-shadow:0 0 0 3px #2161490c}
.workflow-editor:disabled input,.workflow-editor:disabled select,.workflow-editor:disabled textarea{background:#f7faf8;color:#70847d}
.workflow-editor .workflow-check input{accent-color:#2f8a5b}
#workflow-audit-form label,.workflow-finance label{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:13px}
#workflow-audit-form input,#workflow-audit-form textarea{width:100%}
.workflow-editor .workflow-check input{width:auto;min-height:0}
.workflow-editor textarea{min-height:70px}
.workflow-note{font-size:12px;color:var(--muted,#71817b);line-height:1.65;margin:8px 0;overflow-wrap:anywhere}
.workflow-reward-settings{margin-top:10px;border-top:1px solid var(--line,#e2e8e5);padding-top:10px}
.workflow-reward-settings>summary{cursor:pointer;font-weight:600}
.workflow-tier,.workflow-reward-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}
.workflow-reward-row{grid-template-columns:1fr 1fr 1fr}
.workflow-tier button{margin-bottom:8px}
.workflow-task-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;align-items:start}
.workflow-task-card{min-width:0}
.workflow-progress,.workflow-income{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:13px}
.workflow-stage{border:1px solid var(--line,#eee3e6);border-radius:12px;margin:10px 0;padding:12px}
.workflow-stage.current{border-color:var(--accent,#ee5179);background:rgba(255,241,246,.35)}
.workflow-stage>summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;font-size:13px;list-style:none}
.workflow-stage>summary span{color:var(--muted,#738078);font-size:12px;white-space:nowrap}
.workflow-stage p{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.workflow-stage .material-package{margin:12px 0}
.workflow-stage .material-picture-grid img{max-height:130px;object-fit:contain}
.workflow-actions,.workflow-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.workflow-stage-tag{display:block;color:var(--accent,#ee5179);margin-top:6px;font-size:12px}
.workflow-finance td:first-child small{display:block;color:var(--muted,#738078);margin-top:5px}
.workflow-finance td:last-child{min-width:270px;max-width:560px}
.workflow-finance details>summary{cursor:pointer;font-weight:600}
.workflow-finance textarea{min-height:65px;width:100%;box-sizing:border-box}
.workflow-retention-work{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-bottom:1px solid var(--line,#e2e8e5);padding:10px 0}
.workflow-retention-work>div{flex:1;min-width:160px}
.workflow-retention-work small{display:block;font-size:12px;color:var(--muted,#738078);margin-top:5px}
.workflow-audit-identity{padding:12px 0;border-bottom:1px solid var(--line,#e2e8e5);margin-bottom:12px;overflow-wrap:anywhere}
.workflow-public-rules details{padding:10px 0;border-bottom:1px solid var(--line,#eee3e6)}
.workflow-public-rules summary{font-weight:600;cursor:pointer}
.workflow-public-stage{padding:10px 0;border-bottom:1px solid var(--line,#eee3e6)}
.workflow-public-stage>strong{display:block;font-weight:600}
.workflow-public-rules p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.workflow-tabs [aria-pressed=true]{background:#e8f1ed;color:#173f31;border-color:#9ab5a8}
.modal:has(#submission-form),.modal:has(#reward-form),.modal:has(#metric-update-form),.modal:has(#workflow-audit-form){max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box}
.modal:has(#submission-form) .modal-head,.modal:has(#reward-form) .modal-head,.modal:has(#metric-update-form) .modal-head,.modal:has(#workflow-audit-form) .modal-head{position:sticky;top:-1px;background:#fff;z-index:1;padding-bottom:8px}
@media(max-width:700px){.workflow-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-editor,.workflow-stage-editor{padding:12px}.workflow-stage>summary{flex-wrap:wrap}.workflow-reward-row{grid-template-columns:1fr 1fr}.workflow-reward-row>.workflow-check{grid-column:1/-1}.workflow-tier{grid-template-columns:1fr 1fr}.workflow-tier button{justify-self:start}.workflow-income,.workflow-progress{flex-wrap:wrap}.workflow-finance td:last-child{min-width:240px}}

/* 达人端追加奖励弹框（2026-10-20） */
.rw-modal .rw-tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.rw-modal .rw-tab { flex: 1; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--muted-strong); cursor: pointer; }
.rw-modal .rw-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rw-modal .rw-step { font-weight: 700; margin: 12px 0 6px; }
.rw-modal .rw-copy { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; background: var(--surface-soft); border-radius: 10px; padding: 9px 11px; margin: 6px 0; line-height: 1.6; }
.rw-modal .rw-copy .link-button { white-space: nowrap; }
.rw-modal .rw-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.rw-modal .rw-img { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--accent-deep); text-decoration: none; }
.rw-modal .rw-img img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.rw-modal .rw-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.rw-modal .rw-pill { padding: 5px 12px; border-radius: 14px; border: 0; background: #f4eef0; color: var(--muted-strong); cursor: pointer; }
.rw-modal .rw-pill.on { background: var(--accent); color: #fff; }
.rw-modal .rw-count { display: flex; justify-content: space-between; align-items: baseline; }
.rw-modal .rw-count span { color: var(--muted); font-size: 12px; }

/* 提现规则（2026-10-20） */
.withdraw-quota { margin: 2px 0 8px; color: var(--muted); font-size: 12.5px; }
.withdraw-quota b { color: var(--accent-deep); }
.withdraw-rules { background: #fff7f9; border: 1px solid #f6d7e1; border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.withdraw-rules strong { display: block; color: var(--accent-deep); margin-bottom: 6px; font-size: 13.5px; }
.withdraw-rules .wr-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.65; margin: 2px 0; }
.withdraw-rules .wr-row span:first-child { flex: 0 0 72px; color: var(--muted); }
