/* 达人合作工作台 · 极光视觉（040 · 10-24，Owner 21:45 定）。
   颜色、按钮、圆角、字号照 One；变量取 One 的，缺了用同值兜底，所以放进弹窗、悬浮窗、整页都一样。
   宽度按工作台自己的宽度排（容器查询），不按浏览器窗口宽度：放进浮窗以后两者不一样。 */
.creator-workbench {
  --cw-ink: var(--ink, #0E1B2A); --cw-body: var(--body, #253545); --cw-sec: var(--sec, #4A5B6B); --cw-muted: var(--muted, #5E6F7E); --cw-faint: var(--faint, #7A8B98);
  --cw-line: var(--line, #D3DCE0); --cw-line-2: var(--line-2, #E1E8EB); --cw-line-3: var(--line-3, #EDF2F4); --cw-soft: var(--soft, #F2F6F7); --cw-soft-2: var(--soft-2, #F5F8F9);
  --cw-navy: var(--navy, #13253D); --cw-navy-h: var(--navy-h, #1E3654); --cw-teal: var(--teal, #0F6E85); --cw-cyan-ring: var(--cyan-ring, rgba(83,191,213,.18));
  --cw-amber: var(--amber, #B4570A); --cw-amber-ink: var(--amber-ink, #7A4206); --cw-red: var(--red, #8E2219); --cw-btn-line: #C3CDD2;
  --cw-sh-menu: var(--sh-menu, 0 12px 32px rgba(10,29,53,.12), 0 2px 6px rgba(10,29,53,.05));
  container: cw / inline-size;
  height: 100%; display: flex; flex-direction: column; min-width: 0; background: #FFFFFF; color: var(--cw-ink);
  font: 14px/1.6 var(--font, "MiSans", "MiSans VF", "PingFang SC", "Microsoft YaHei", sans-serif); -webkit-font-smoothing: antialiased;
}
.creator-workbench *, .creator-workbench *::before, .creator-workbench *::after { box-sizing: border-box; }
.creator-workbench button, .creator-workbench input, .creator-workbench textarea, .creator-workbench select { font: inherit; color: inherit; }
.creator-workbench :focus-visible { outline: 2px solid var(--cw-teal); outline-offset: 2px; }
.creator-workbench h3, .creator-workbench h4, .creator-workbench p { margin: 0; }
.creator-workbench ul, .creator-workbench ol { margin: 0; padding: 0; list-style: none; }

/* 弹窗外壳（现在由 One 的 openCreators 挂；以后 F 的悬浮窗不用它） */
.creator-workbench-dialog { width: min(1120px, 94vw); max-width: 1120px; height: min(820px, 92dvh); max-height: 92dvh; padding: 0; border: 1px solid #D3DCE0; border-radius: 12px; overflow: hidden;
  background: #FFFFFF; color: #0E1B2A; box-shadow: 0 24px 64px rgba(10,29,53,.22); }
.creator-workbench-dialog::backdrop { background: rgba(14,27,42,.32); }
.creator-workbench-dialog [data-cw-root] { height: 100%; }
@media (max-width: 720px) { .creator-workbench-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; } }

/* ---- 按钮 ---- */
.creator-workbench button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--cw-btn-line); border-radius: 8px;
  background: #FFFFFF; color: var(--cw-ink); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.creator-workbench button:hover:not(:disabled) { background: var(--cw-soft); }
.creator-workbench button:disabled { opacity: .45; cursor: not-allowed; }
.creator-workbench .cw-primary { border-color: var(--cw-navy); background: var(--cw-navy); color: #FFFFFF; }
.creator-workbench .cw-primary:hover:not(:disabled) { border-color: var(--cw-navy-h); background: var(--cw-navy-h); }
.creator-workbench .cw-link { height: auto; padding: 0; border: 0; background: transparent; color: var(--cw-teal); font-weight: 400; }
.creator-workbench .cw-link:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.creator-workbench .cw-icon { width: 30px; padding: 0; border-color: transparent; background: transparent; color: var(--cw-sec); font-size: 16px; }
.creator-workbench .cw-icon:hover:not(:disabled) { background: var(--cw-soft); color: var(--cw-ink); }
.creator-workbench .cw-danger { color: var(--cw-red); }
.cw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cw-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }

/* ---- 悬停提示（ⓘ 和图标按钮），写法同 One：data-tip + ::after ---- */
.cw-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%;
  color: var(--cw-faint); font-size: 12px; font-style: normal; font-weight: 400; vertical-align: -2px; cursor: help; }
.cw-tip:hover, .cw-tip:focus-visible { color: var(--cw-teal); }
.creator-workbench [data-tip] { position: relative; }
.creator-workbench [data-tip]::after { content: attr(data-tip); position: absolute; z-index: 40; left: 50%; top: calc(100% + 6px); transform: translate(-50%, -3px); width: max-content; max-width: 280px;
  padding: 6px 9px; border-radius: 6px; background: #13253D; color: #FFFFFF; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: normal; text-align: left;
  pointer-events: none; display: none; }
/* 平时不出现、也不占滚动区域（不然靠右的按钮会把内容撑出横向滚动条） */
.creator-workbench [data-tip]:hover::after, .creator-workbench [data-tip]:focus-visible::after { display: block; transform: translate(-50%, 0); }
.creator-workbench .cw-head [data-tip]::after { left: auto; right: 0; transform: translate(0, -3px); }
.creator-workbench .cw-head [data-tip]:hover::after, .creator-workbench .cw-head [data-tip]:focus-visible::after { transform: none; }
@media (hover: none) { .creator-workbench [data-tip]::after { display: none; } }

/* ---- 顶部一行 ---- */
.cw-head { flex: none; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--cw-line-3); }
.cw-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.cw-title b { font-size: 15px; font-weight: 600; }
.cw-title > span { overflow: hidden; text-overflow: ellipsis; color: var(--cw-muted); font-size: 14px; }
.cw-head-r { flex: none; display: flex; align-items: center; gap: 2px; }
.creator-workbench .cw-pending { height: 28px; padding: 0 10px; border-color: #F1D2AE; background: #FFF6EC; color: var(--cw-amber-ink); }
.creator-workbench .cw-pending:hover:not(:disabled) { background: #FDEBD7; }
.cw-menu { position: relative; }
.cw-menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: var(--cw-sec); font-size: 18px; line-height: 1; list-style: none; cursor: pointer; }
.cw-menu > summary::-webkit-details-marker { display: none; }
.cw-menu > summary:hover, .cw-menu[open] > summary { background: var(--cw-soft); color: var(--cw-ink); }
.cw-menu-list { position: absolute; z-index: 50; top: calc(100% + 6px); right: 0; min-width: 200px; padding: 6px; border: 1px solid var(--cw-line); border-radius: 12px; background: #FFFFFF; box-shadow: var(--cw-sh-menu); }
.creator-workbench .cw-menu-list button { width: 100%; justify-content: flex-start; height: 34px; padding: 0 10px; border: 0; background: transparent; font-weight: 400; }
.creator-workbench .cw-menu-list button:hover:not(:disabled) { background: var(--cw-soft); }
.cw-menu-list hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--cw-line-3); }
.cw-source { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--cw-line-3); font-size: 13px; color: var(--cw-sec); }
.cw-source select { max-width: 260px; }

/* ---- 第二行：‹ 返回 · 当前位置 ---- */
.cw-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 20px 6px 12px; border-bottom: 1px solid var(--cw-line-3); }
.cw-bar strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.cw-bar .cw-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cw-muted); font-size: 14px; }
.cw-bar .cw-crumb::before { content: "·"; margin: 0 6px; color: var(--cw-faint); }
.cw-bar .cw-fill { flex: 1; }
.creator-workbench .cw-back { width: 30px; padding: 0; border-color: transparent; background: transparent; color: var(--cw-sec); font-size: 20px; font-weight: 400; }
.creator-workbench .cw-back:hover:not(:disabled) { background: var(--cw-soft); color: var(--cw-ink); }

/* ---- 步骤条 ---- */
.cw-steps { flex: none; display: flex; align-items: center; gap: 0; padding: 10px 20px; border-bottom: 1px solid var(--cw-line-3); overflow-x: auto; scrollbar-width: none; }
.cw-steps::-webkit-scrollbar { display: none; }
.creator-workbench .cw-steps button { flex: none; height: 28px; gap: 8px; padding: 0 6px; border: 0; background: transparent; color: var(--cw-muted); font-weight: 400; }
.creator-workbench .cw-steps button:disabled { opacity: 1; cursor: default; color: var(--cw-faint); }
.cw-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--cw-line); border-radius: 50%; font-size: 11px; font-weight: 600; }
.creator-workbench .cw-steps button[aria-current="step"] { color: var(--cw-ink); font-weight: 600; }
.cw-steps button[aria-current="step"] b { border-color: var(--cw-navy); background: var(--cw-navy); color: #FFFFFF; }
.cw-steps button.is-done b { border-color: var(--cw-teal); color: var(--cw-teal); }
.cw-steps i { flex: 1 1 16px; min-width: 12px; max-width: 64px; height: 1px; margin: 0 4px; background: var(--cw-line-2); }
.cw-steps-short { display: none; font-size: 13px; color: var(--cw-sec); }

/* ---- 主体、提示、出错 ---- */
.cw-body { flex: 1; min-height: 0; overflow: auto; padding: 20px; }
.cw-body > section, .cw-body > form { max-width: 960px; }
.cw-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.cw-h small { font-size: 13px; font-weight: 400; color: var(--cw-muted); }
.cw-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--cw-muted); }
.cw-error { flex: none; margin: 12px 20px 0; padding: 9px 12px; border: 1px solid #F1D2AE; border-radius: 8px; background: #FFF6EC; color: var(--cw-amber-ink); font-size: 13px; }
.cw-loading { flex: none; margin: 0; padding: 8px 20px; border-top: 1px solid var(--cw-line-3); background: var(--cw-soft-2); color: var(--cw-sec); font-size: 13px; }
.cw-empty { padding: 48px 16px; text-align: center; color: var(--cw-muted); font-size: 14px; }
.cw-empty h3 { margin-bottom: 6px; color: var(--cw-ink); font-size: 15px; font-weight: 600; }
.cw-empty .cw-actions { justify-content: center; margin-top: 14px; }

/* ---- 首页 ---- */
.cw-home { max-width: 640px; margin: 4px auto 0; }
.cw-entries { border: 1px solid var(--cw-line-2); border-radius: 12px; overflow: hidden; }
.creator-workbench .cw-entry { display: flex; align-items: center; gap: 12px; width: 100%; height: auto; padding: 14px 16px; border: 0; border-top: 1px solid var(--cw-line-3); border-radius: 0; background: #FFFFFF; text-align: left; white-space: normal; }
.creator-workbench .cw-entry:first-child { border-top: 0; }
.creator-workbench .cw-entry:hover:not(:disabled) { background: var(--cw-soft-2); }
.cw-entry-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--cw-soft); color: var(--cw-teal); }
.cw-entry-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cw-entry-t b { font-size: 15px; font-weight: 600; color: var(--cw-ink); }
.cw-entry-t span { font-size: 13px; font-weight: 400; color: var(--cw-muted); }
.cw-entry-go { flex: none; color: var(--cw-faint); font-size: 18px; font-weight: 400; }
.cw-query { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cw-query > span { margin-right: 4px; font-size: 13px; color: var(--cw-muted); }

/* ---- 筛选与表单 ---- */
.creator-workbench label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--cw-sec); }
.creator-workbench input:not([type=checkbox]):not([type=radio]):not([type=file]), .creator-workbench select, .creator-workbench textarea {
  width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--cw-line); border-radius: 8px; background: #FFFFFF; color: var(--cw-ink); font-size: 14px; }
.creator-workbench input:focus, .creator-workbench select:focus, .creator-workbench textarea:focus { outline: none; border-color: var(--cw-teal); box-shadow: 0 0 0 3px var(--cw-cyan-ring); }
.creator-workbench input[readonly] { background: var(--cw-soft-2); color: var(--cw-sec); }
.creator-workbench textarea { resize: vertical; line-height: 1.6; }
.creator-workbench input[type=checkbox], .creator-workbench input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--cw-navy); }
.creator-workbench .cw-check { flex-direction: row; align-items: center; gap: 8px; color: var(--cw-body); }
.cw-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 14px; }
.cw-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.cw-filters > label:not(.cw-check) { width: 150px; }
.cw-filters > label.cw-wide { width: 200px; }
.cw-advanced { flex-basis: 100%; }
.cw-advanced > summary { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; color: var(--cw-teal); font-size: 13px; cursor: pointer; list-style: none; }
.cw-advanced > summary::-webkit-details-marker { display: none; }
.cw-advanced > summary::after { content: ""; display: inline-block; vertical-align: -2px; margin-left: 2px; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; transition: transform .15s; }
.cw-advanced[open] > summary::after { transform: rotate(180deg); }
.cw-adv-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--cw-line-2); border-radius: 12px; background: var(--cw-soft-2); }
.cw-adv-group { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
.cw-adv-group > b { padding-top: 26px; font-size: 13px; font-weight: 600; color: var(--cw-sec); }
.cw-adv-group > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; }
.cw-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cw-form fieldset { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cw-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cw-settings { margin: 0 auto; }
.creator-workbench .cw-product-terms { padding: 12px 14px 14px; border: 1px solid var(--cw-line-2); border-radius: 12px; }
.cw-product-terms legend { max-width: 100%; padding: 0 6px; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; color: var(--cw-body); }
.cw-more { border-top: 1px solid var(--cw-line-3); padding-top: 10px; }
.cw-more > summary { color: var(--cw-teal); font-size: 13px; cursor: pointer; }
.cw-more > div { margin-top: 10px; }

/* ---- 列表结果与表格 ---- */
.cw-result-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 12px; color: var(--cw-muted); }
.cw-table-wrap { overflow-x: auto; border: 1px solid var(--cw-line-2); border-radius: 12px; }
.creator-workbench table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.creator-workbench th { height: 36px; padding: 0 12px; background: var(--cw-soft-2); color: var(--cw-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.creator-workbench td { padding: 10px 12px; border-top: 1px solid var(--cw-line-3); vertical-align: middle; overflow-wrap: anywhere; }
.creator-workbench td strong { display: block; font-size: 14px; font-weight: 500; color: var(--cw-ink); }
.creator-workbench td small { display: block; margin-top: 2px; font-size: 12px; color: var(--cw-muted); }
.creator-workbench tr.is-picked td { background: #F2FAFC; }
.creator-workbench .cw-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.creator-workbench th.cw-sel, .creator-workbench td.cw-sel { width: 40px; padding-right: 0; }
.creator-workbench td.cw-act { width: 1%; white-space: nowrap; text-align: right; }
.creator-workbench td.cw-act .cw-actions { justify-content: flex-end; flex-wrap: nowrap; }
.creator-workbench .cw-box { width: 18px; height: 18px; padding: 0; border: 1.5px solid #9AAAB6; border-radius: 4px; background: #FFFFFF; }
.creator-workbench .cw-box[aria-checked="true"] { border-color: var(--cw-navy); background: var(--cw-navy); }
.creator-workbench .cw-box[aria-checked="true"]::before { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; transform: rotate(-45deg); }
.creator-workbench .cw-box:hover:not(:disabled) { border-color: var(--cw-navy); background: #FFFFFF; }
.creator-workbench .cw-box[aria-checked="true"]:hover:not(:disabled) { background: var(--cw-navy-h); }
.cw-picked-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #F2FAFC; font-size: 13px; color: var(--cw-body); }
.cw-picked-bar b { margin-right: 4px; font-weight: 600; }
.cw-list-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 12px; color: var(--cw-muted); }
.cw-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--cw-body); }
.cw-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cw-faint); }
.cw-st[data-tone="amber"] { color: var(--cw-amber-ink); } .cw-st[data-tone="amber"]::before { background: var(--cw-amber); }
.cw-st[data-tone="teal"]::before { background: var(--cw-teal); }
.cw-st[data-tone="gray"] { color: var(--cw-muted); }
.cw-tag { display: inline-block; margin: 4px 4px 0 0; padding: 0 6px; border-radius: 4px; background: #FFF6EC; color: var(--cw-amber-ink); font-size: 12px; line-height: 20px; }
.cw-row-menu { position: relative; display: inline-block; }
.cw-row-menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: var(--cw-sec); list-style: none; cursor: pointer; }
.cw-row-menu > summary::-webkit-details-marker { display: none; }
.cw-row-menu > summary:hover, .cw-row-menu[open] > summary { background: var(--cw-soft); }

/* ---- 通用列表行（二级页） ---- */
.cw-list { border: 1px solid var(--cw-line-2); border-radius: 12px; overflow: hidden; }
.cw-list > li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-top: 1px solid var(--cw-line-3); }
.cw-list > li:first-child { border-top: 0; }
.cw-list > li.is-empty { justify-content: center; color: var(--cw-muted); font-size: 13px; }
.cw-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.cw-list-main b { font-size: 14px; font-weight: 500; color: var(--cw-ink); }
.cw-list-main small { font-size: 12px; color: var(--cw-muted); }
.cw-list-main p { font-size: 13px; color: var(--cw-body); white-space: pre-wrap; }
.cw-background-recipients { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.cw-background-recipients > li { min-height: 36px; overflow-wrap: anywhere; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--cw-soft); font-size: 13px; }
.creator-workbench .cw-chip button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cw-muted); }

/* ---- 键值 ---- */
.cw-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.cw-kv dt { color: var(--cw-muted); } .cw-kv dd { margin: 0; overflow-wrap: anywhere; color: var(--cw-ink); }
.cw-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.cw-metrics section { padding: 12px 14px; border: 1px solid var(--cw-line-2); border-radius: 12px; }
.cw-metrics small { display: block; font-size: 12px; color: var(--cw-muted); }
.cw-metrics strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cw-text { padding: 12px 14px; border-radius: 8px; background: var(--cw-soft-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--cw-body); }

/* ---- 核对页 ---- */
.cw-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cw-review-grid > section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cw-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.cw-sub .cw-link { font-size: 13px; }
.cw-review-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- 消息 ---- */
.cw-message-asset, .cw-message-preview { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--cw-line-2); border-radius: 12px; overflow-wrap: anywhere; }
.cw-message-preview > small { font-size: 12px; color: var(--cw-muted); }
.cw-message-preview li { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--cw-line-3); }
.cw-message-preview li small { font-size: 12px; color: var(--cw-muted); }
.cw-message-image { display: block; max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; }
.cw-messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cw-messages article { max-width: 82%; padding: 8px 12px; border-radius: 12px; background: var(--cw-soft); }
.cw-messages article.is-me { align-self: flex-end; background: #E3F4F8; }
.cw-messages article small { display: block; margin-bottom: 2px; font-size: 12px; color: var(--cw-muted); }
.cw-messages article p { white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-sequence { display: flex; flex-direction: column; gap: 8px; }

/* ---- 样品建议 ---- */
.cw-sample-advice { padding: 10px 12px; border-radius: 8px; background: var(--cw-soft-2); font-size: 13px; }
.cw-sample-advice h4 { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--cw-ink); }
.cw-sample-advice li { position: relative; padding-left: 12px; color: var(--cw-body); }
.cw-sample-advice li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--cw-faint); }
.cw-sample-advice summary { margin-top: 4px; color: var(--cw-teal); cursor: pointer; }
.cw-sample-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--cw-line-2); border-radius: 12px; }

/* ---- 确认卡（窗口内确认、自动建联授权）：确认卡统一外壳（PD leonlee01 11-17；方长江 11-17 同意，只换卡头和底栏）——
   白卡细边圆角 14，不用黄框；卡头浅底状态标签（样式在 one.css .cfs-state）+ 深色标题；风险小标签、提醒块改浅灰。 ---- */
.cw-confirm { max-width: 720px; border: 1px solid var(--cw-line-2); border-radius: 14px; background: #FFFFFF; overflow: hidden; }
.cw-confirm > header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--cw-line-3); }
.cw-confirm > header > b { color: var(--cw-ink); font-size: 15px; font-weight: 600; }
.cw-confirm > header span { font-size: 12px; color: var(--cw-muted); }
.cw-confirm-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; font-size: 14px; }
.cw-confirm-body .cw-kv { font-size: 13.5px; }
.cw-confirm-lead { font-size: 15px; font-weight: 600; color: var(--cw-ink); }
.cw-confirm-warn { padding: 10px 12px; border-radius: 10px; background: var(--cw-soft-2); color: var(--cw-ink); font-size: 13px; }
.cw-confirm-warn .cw-check { margin-top: 6px; color: var(--cw-amber-ink); }
.cw-confirm .cw-gates { display: inline-flex; gap: 6px; }
.cw-confirm .cw-gates em { padding: 0 7px; border-radius: 5px; background: var(--cw-soft); color: var(--cw-sec); font-size: 11.5px; font-weight: 500; font-style: normal; line-height: 20px; }
.cw-diff { width: 100%; font-size: 13px; }
.cw-diff th { height: 30px !important; }
.cw-confirm > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--cw-line-3); background: var(--cw-soft-2); }
.cw-confirm > footer .cw-link { margin-right: auto; }
.cw-confirm details > summary { color: var(--cw-teal); font-size: 13px; cursor: pointer; }
.cw-confirm details > div { margin-top: 8px; }

/* ---- 话术模板 ---- */
.cw-template-list > li { align-items: flex-start; }

/* ---- 流程底栏 ---- */
.cw-flow-footer { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--cw-line-3); background: #FFFFFF; }
.cw-flow-footer .cw-meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--cw-muted); }

/* 靠右、靠底的按钮：提示往上、往左开，不出工作台 */
.creator-workbench .cw-flow-footer [data-tip]::after, .creator-workbench .cw-form-actions [data-tip]::after, .creator-workbench td.cw-act [data-tip]::after, .creator-workbench .cw-picked-bar [data-tip]::after, .creator-workbench .cw-toolbar .cw-actions [data-tip]::after {
  left: auto; right: 0; top: auto; bottom: calc(100% + 6px); transform: translate(0, 3px); }
.creator-workbench .cw-flow-footer [data-tip]:hover::after, .creator-workbench .cw-form-actions [data-tip]:hover::after, .creator-workbench td.cw-act [data-tip]:hover::after,
.creator-workbench .cw-picked-bar [data-tip]:hover::after, .creator-workbench .cw-toolbar .cw-actions [data-tip]:hover::after { transform: none; }
.cw-fill { flex: 1; }
.cw-search-fields { font-size: 13px; color: var(--cw-body); } .cw-search-fields ul { padding-left: 14px; }
.cw-row-menu .cw-menu-list { min-width: 180px; }

/* ---- 窄：按工作台宽度（放进浮窗时是浮窗的宽度） ---- */
@container cw (max-width: 760px) {
  .cw-review-grid, .cw-form-pair { grid-template-columns: 1fr; }
  .cw-adv-group { grid-template-columns: 1fr; } .cw-adv-group > b { padding-top: 0; }
  .cw-filters > label:not(.cw-check), .cw-filters > label.cw-wide { width: calc(50% - 6px); }
}
@container cw (max-width: 640px) {
  .cw-head { padding-left: 14px; } .cw-bar { padding-left: 6px; padding-right: 14px; } .cw-body { padding: 14px; } .cw-flow-footer { padding: 10px 14px; }
  .cw-steps { padding: 8px 14px; } .cw-steps > button, .cw-steps > i { display: none; } .cw-steps-short { display: block; }
  .cw-error { margin: 10px 14px 0; }
  /* 表格变成一行一张卡片 */
  .cw-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .creator-workbench .cw-table-wrap table, .creator-workbench .cw-table-wrap tbody { display: block; }
  .creator-workbench .cw-table-wrap thead { display: none; }
  .creator-workbench .cw-table-wrap tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--cw-line-2); border-radius: 12px; }
  .creator-workbench .cw-table-wrap td { display: block; padding: 0; border: 0; }
  .creator-workbench .cw-table-wrap td.cw-sel { grid-row: 1 / span 9; width: auto; }
  .creator-workbench .cw-table-wrap td:not(.cw-sel):not(.cw-act):not(:first-child) { grid-column: 2; font-size: 13px; color: var(--cw-sec); }
  .creator-workbench .cw-table-wrap td[data-label]:not(.cw-act)::before { content: attr(data-label) "："; color: var(--cw-muted); }
  .creator-workbench .cw-table-wrap td.cw-num { text-align: left; }
  .creator-workbench .cw-table-wrap td.cw-act { grid-column: 2 / -1; width: auto; text-align: left; margin-top: 4px; }
  .creator-workbench .cw-table-wrap td.cw-act .cw-actions { justify-content: flex-start; flex-wrap: wrap; }
  .creator-workbench .cw-table-wrap tr.cw-empty-row { display: block; }
  .cw-filters > label:not(.cw-check), .cw-filters > label.cw-wide { width: 100%; }
  .cw-messages article { max-width: 100%; }
}
@container cw (max-width: 460px) { .cw-title > span { display: none; } .creator-workbench .cw-pending { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .cw-advanced > summary::after { transition: none; } }
.creator-workbench .cw-product-thumb:not(:empty) { float:left; width:56px; height:56px; margin:0 10px 4px 0; }
.creator-workbench .cw-product-thumb img { width:56px; height:56px; border-radius:6px; }

.commerce-entity { display:inline-flex; gap:10px; align-items:center; max-width:100%; margin:4px 12px 4px 0; vertical-align:middle; }
.commerce-entity__image { position:relative; display:flex; align-items:center; justify-content:center; width:44px; height:44px; flex:0 0 44px; overflow:hidden; border-radius:7px; background:#f0f3f5; }
.commerce-entity__image.is-avatar { border-radius:50%; }
.commerce-entity__image img { width:44px; height:44px; object-fit:cover!important; }
.commerce-entity__placeholder { color:#76818e; font-size:10px; line-height:1.3; text-align:center; }
.commerce-entity__text { display:flex; flex-direction:column; min-width:0; gap:3px; }
.commerce-entity__text strong,.commerce-entity__text small { white-space:normal; overflow-wrap:anywhere; }
.commerce-entity__id { font-size:11px; color:var(--text-muted,#657080); user-select:text; }

.commerce-entity__image img { position:absolute; inset:0; }

/* 040 · 10-26《极光提示统一》：达人合作里的提示不上暖色底；字回到正文色，左边一道 2px 细竖线。 */
.cw-confirm-warn { border: 0; border-radius: 0; background: transparent; color: var(--cw-body); box-shadow: inset 2px 0 0 #E0904A; padding: 4px 0 4px 12px; }
.cw-error { border: 0; border-radius: 8px; background: #FDF1E3; color: #8A4B00; font-weight: 500; box-shadow: inset 3px 0 0 #E0904A; padding: 9px 12px; }
.cw-confirm-warn .cw-check { color: inherit; }

/* ---- 1108 · 紧凑：同样的内容少占一屏高（浮窗里不用再往下滑才看全）。宽度仍按 Owner 定的 720。 ---- */
.cw-bar { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.cw-steps { padding: 6px 16px; }
.cw-body { padding: 14px 16px; }
.cw-flow-footer { padding: 8px 16px; }
.cw-form { gap: 10px; }
.creator-workbench label { gap: 4px; }
.creator-workbench input:not([type=checkbox]):not([type=radio]):not([type=file]), .creator-workbench select, .creator-workbench textarea { min-height: 32px; padding: 5px 10px; }
.cw-hint { margin-top: 4px; font-size: 12px; }
.creator-workbench td { padding: 8px 12px; }
.cw-toolbar { margin-bottom: 10px; }
.cw-home { margin-top: 0; }
.creator-workbench .cw-entry { padding: 11px 14px; }

/* 商品名：列表里最多两行，悬停出全名和大图（.cw-peek） */
.creator-workbench .commerce-entity--product .commerce-entity__text strong,
.creator-workbench .commerce-entity--sku .commerce-entity__text strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.creator-workbench .commerce-entity { margin: 0; min-width: 0; }
.creator-workbench .commerce-entity__image { cursor: zoom-in; }

/* ---- 1108 · 设置佣金与条件：三小步，一次只展开一步，其余一行摘要 ---- */
.cw-settings { max-width: 680px; gap: 8px; }
.cw-part { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--cw-line-2); border-radius: 12px; }
.cw-part.is-open { border-color: var(--cw-teal); box-shadow: 0 0 0 3px var(--cw-cyan-ring); }
.cw-part h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--cw-ink); }
.cw-part h4 small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--cw-muted); }
.cw-part > h4 > b, .creator-workbench button.cw-part > b { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cw-navy); color: #FFFFFF; font-size: 11px; font-weight: 600; }
.creator-workbench button.cw-part { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 42px; padding: 8px 14px; background: var(--cw-soft-2); text-align: left; white-space: nowrap; }
.creator-workbench button.cw-part > b { background: var(--cw-teal); }
.cw-part-t { flex: none; font-size: 13px; font-weight: 600; color: var(--cw-ink); }
.cw-part-s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 400; color: var(--cw-sec); }
.cw-part-e { flex: none; font-size: 12.5px; font-weight: 400; color: var(--cw-teal); }
.cw-label-row { display: flex; align-items: center; gap: 6px; }
.cw-auto { display: inline-block; margin-left: 0; padding: 0 6px; border-radius: 4px; background: #E3F4F8; color: var(--cw-teal); font-size: 11px; line-height: 18px; vertical-align: 1px; }
.cw-checks { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.cw-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border-radius: 8px; background: var(--cw-soft-2); }
.cw-bulk > b { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--cw-sec); }
.creator-workbench .cw-inline { flex-direction: row; align-items: center; gap: 4px; font-size: 12.5px; color: var(--cw-sec); white-space: nowrap; }
.creator-workbench .cw-inline input:not([type=checkbox]) { width: 76px; min-height: 28px; padding: 3px 8px; font-size: 13px; }
.creator-workbench .cw-inline i { font-style: normal; color: var(--cw-muted); }
.cw-term-list { display: flex; flex-direction: column; border: 1px solid var(--cw-line-2); border-radius: 10px; overflow: hidden; }
.cw-term-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "entity rates" "price rates"; align-items: center; gap: 2px 12px; padding: 8px 12px; border-top: 1px solid var(--cw-line-3); }
.cw-term-row:first-child { border-top: 0; }
.cw-term-row > [data-cw-product-image] { grid-area: entity; min-width: 0; }
.cw-term-price { grid-area: price; padding-left: 54px; font-size: 12px; color: var(--cw-muted); }
.cw-term-rates { grid-area: rates; display: flex; gap: 10px; }
.cw-ai-products { display: flex; flex-direction: column; gap: 6px; }
.cw-ai-products .cw-term-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "entity" "price"; }
@container cw (max-width: 640px) {
  .cw-term-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "entity" "price" "rates"; }
  .cw-term-rates { padding-left: 54px; flex-wrap: wrap; }
}

/* ---- 1108 · 悬停预览（挂在 body 上，不被浮窗裁掉） ---- */
.cw-peek { position: fixed; z-index: 2147483000; display: flex; flex-direction: column; gap: 6px; width: max-content; max-width: 300px; padding: 10px; border: 1px solid #D3DCE0; border-radius: 12px;
  background: #FFFFFF; color: #0E1B2A; box-shadow: 0 12px 32px rgba(10,29,53,.16), 0 2px 6px rgba(10,29,53,.06); pointer-events: none;
  font: 13px/1.5 var(--font, "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif); }
.cw-peek[hidden] { display: none; }
.cw-peek canvas { display: block; width: 280px; height: 280px; object-fit: contain; border-radius: 8px; background: #F2F6F7; }
.cw-peek.is-avatar canvas { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.cw-peek b { font-weight: 600; overflow-wrap: anywhere; }
.cw-peek small { color: #5E6F7E; font-size: 12px; user-select: text; }

/* 1108 · 720 宽的浮窗里成对的输入仍并排（原来 ≤760 就单列，表单被拉得很长）；更窄再单列。 */
@container cw (min-width: 561px) { .cw-form-pair { grid-template-columns: 1fr 1fr; } }
.cw-ai-products + .cw-hint, [data-cw-ai-brief] > .cw-hint { margin-top: 0; }

/* ---- 1108 · 实际售价：折后价加粗，原价划线，活动类型小标签 ---- */
.cw-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.cw-term-price .cw-price { justify-content: flex-start; }
.cw-price b { font-weight: 600; color: var(--cw-ink, #0E1B2A); }
.cw-price s { font-size: 12px; color: var(--cw-faint, #7A8B98); }
.cw-price em { padding: 0 5px; border-radius: 4px; background: #FDEEEC; color: #A2341F; font-size: 11px; font-style: normal; line-height: 18px; }
.cw-price small { font-size: 11px; color: var(--cw-muted, #5E6F7E); }

/* P0 达人库：「按条件批量筛选」（条件一行排开；位次区间与全选同一行） */
.cw-library-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px;align-items:end}
.cw-library-form .cw-form-actions{margin:0}
.cw-library-range{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}
.creator-workbench .cw-library-range label{flex-direction:row;align-items:center;gap:6px;margin:0}
.cw-library-range input{width:64px}
.cw-library-toggle{display:inline-flex;align-items:center;gap:6px}
