/* 自媒体工作台（工作 → 自媒体）专用样式——内容工作台升级 01（2026-09-27）。
 *
 * 通用件（.subnav / .grid / .card.metric / .pill / .empty / .section / .table-wrap / .field / .btn / .kv /
 * .form-ok / .form-error / .form-actions / .hidden）全部复用 console.css；这里只补本页新增的：
 * 工具条、筛选行、渐进式表单与折叠区、选题选择器、脚本字数估算与骨架按钮、版本差异、本机暂存提示、
 * 制作清单、素材缩略图 / 选择器 / 放大层、缺项列表、日期列表、信号卡。类名一律 cw- 前缀。
 * 复用 console.css 的令牌（--space-* / --radius-* / --fs-* / 色板），不重定义档位。
 * CSP: style-src 'self'；脚本端不写内联 style=，动态状态全部靠切换这里定义好的类名。没有外部 url()。
 */

.cw-page { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cw-page .section { margin: 0; background: #ffffff; border-color: #eaecf0; padding: 22px 24px; }
.cw-page .cw-page { gap: 22px; }
.cw-page :is(summary, strong, .cw-check span) { overflow-wrap: anywhere; min-width: 0; }

/* 工具条 / 筛选行 / 分段切换 */
.cw-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.cw-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-3); }
.cw-filters input[type="search"], .cw-filters input[type="text"] { flex: 1 1 220px; min-width: 0; }
.cw-segment { display: inline-flex; gap: var(--space-1); margin-bottom: var(--space-3); }
.cw-active { background: var(--accent-soft, var(--surface-2)); border-color: var(--accent, var(--line-strong)); font-weight: var(--fw-semibold); }
.cw-muted { color: var(--text-3); font-size: var(--fs-helper); }
.cw-note { font-size: var(--fs-helper); color: var(--text-3); margin: 0; line-height: 1.6; }
.cw-step { font-size: var(--fs-helper); color: var(--text-2); white-space: nowrap; }
.cw-subhead { font-size: var(--fs-body); font-weight: var(--fw-semibold); margin: var(--space-3) 0 var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.cw-link-out {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
}
.cw-link-out:hover { text-decoration: underline; }
.cw-page dd .cw-link-out { white-space: normal; word-break: break-all; }
.cw-title-link { color: var(--accent); text-decoration: none; font-weight: 500; line-height: 1.5; letter-spacing: -0.005em; }
.cw-title-link:hover { text-decoration: underline; }
.cw-title-link:visited { color: var(--accent); }

/* 表单：宽屏两栏，窄屏一栏；正文 / 目标平台跨两栏。 */
.cw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--space-4); align-items: start; min-width: 0; }
.cw-form .form-error, .cw-form .form-actions, .cw-field-wide { grid-column: 1 / -1; }
.cw-form .field > span:first-child { display: block; font-size: var(--fs-nav); color: var(--text-2); margin-bottom: var(--space-1); font-weight: var(--fw-medium); }
.cw-form .field .field-hint { display: block; }
.cw-form textarea { width: 100%; box-sizing: border-box; }

/* 折叠区（更多设置 / 新建表单 / 历史版本） */
.cw-disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); background: var(--surface); }
.cw-disclosure > summary:not(.btn) { cursor: pointer; font-size: var(--fs-body); color: var(--text-2); }
.cw-disclosure[open] > summary { margin-bottom: var(--space-2); }
.cw-new { border: none; padding: 0; background: transparent; }
.cw-new > summary { list-style: none; display: inline-flex; }
.cw-new > summary::-webkit-details-marker { display: none; }

/* 目标平台多选 */
.cw-checks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; }
.cw-check { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-body); color: var(--text); cursor: pointer; }
.cw-check input { width: 16px; height: 16px; min-height: 0; margin: 0; }

/* 选题选择器 */
.cw-picker-host { display: grid; gap: var(--space-2); }
.cw-topic-suggestions { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); background: var(--surface); }
.cw-topic-suggestions > summary { cursor: pointer; color: var(--text-2); }
.cw-topic-suggestions[open] > summary { margin-bottom: var(--space-2); }
.cw-results { display: grid; gap: var(--space-1); }
.cw-result {
  display: flex; justify-content: space-between; gap: var(--space-3); text-align: left; width: 100%;
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  font: inherit; color: var(--text);
}
.cw-result:hover, .cw-result:focus-visible { border-color: var(--line-strong); background: var(--surface-2); }
.cw-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }

/* 脚本：字数估算 / 骨架按钮 / 版本卡 / 差异 */
.cw-counter { margin: var(--space-1) 0 0; font-size: var(--fs-helper); color: var(--text-3); }
.cw-templates { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.cw-version { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: var(--space-3) var(--space-4); }
.cw-version-hook, .cw-version-cta, .cw-version-meta { margin: var(--space-2) 0 0; font-size: var(--fs-body); color: var(--text-2); }
.cw-version-body {
  margin: 0; padding: var(--space-3); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  font-family: inherit; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.cw-diff { font-size: var(--fs-body); line-height: var(--lh-body); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cw-diff-same, .cw-diff-add, .cw-diff-del { display: grid; grid-template-columns: 1.5em 1fr; padding: 0 var(--space-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-diff-add { background: var(--ok-soft, #e8f5ec); }
.cw-diff-del { background: var(--alert-soft, #fdecec); text-decoration: line-through; color: var(--text-2); }
.cw-diff-mark { color: var(--text-3); user-select: none; }
.cw-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-body); }

/* 制作清单 */
.cw-checklist { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); }
.cw-checklist-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; }

/* 素材：缩略图 / 选择器 / 放大层 */
.cw-assets { display: grid; gap: var(--space-3); }
.cw-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: var(--space-2); }
.cw-thumb { display: grid; gap: var(--space-1); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2); background: var(--surface); min-width: 0; overflow: hidden; }
.cw-thumb > img, .cw-thumb > video { width: 100%; height: 92px; object-fit: cover; border-radius: 6px; display: block; background: var(--surface-2); }
.cw-thumb-open { padding: 0; border: none; background: transparent; cursor: zoom-in; display: block; width: 100%; }
.cw-thumb-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; }
.cw-thumb-img img, .cw-thumb-img video { width: 100%; height: 100%; object-fit: cover; }
.cw-thumb-meta { display: grid; font-size: var(--fs-helper); overflow-wrap: anywhere; }
.cw-thumb-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.cw-picker { display: grid; gap: var(--space-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3); }
.cw-picker .cw-filters select { flex: 0 0 auto; width: auto; min-width: 120px; }
.cw-dialog { max-width: min(92vw, 960px); width: 100%; border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-3); background: var(--surface); color: var(--text); }
.cw-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.cw-media-large { display: flex; justify-content: center; }
.cw-media-large img, .cw-media-large video { max-width: 100%; max-height: 75vh; object-fit: contain; }

/* 缺项 / 日期列表 / 信号卡 */
.cw-gaps { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); }
.cw-gap { font-size: var(--fs-body); color: var(--text); }
.cw-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.cw-dates li { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: baseline; }
.cw-date { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.cw-signal-list { display: grid; gap: var(--space-3); }
.cw-signal { border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); background: var(--surface); display: grid; gap: var(--space-2); }
.cw-signal-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.cw-signal-summary { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 分页 / 说明列表 */
.cw-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.cw-pager-end { font-size: var(--fs-helper); color: var(--text-3); }
.cw-list { margin: 0; padding-left: var(--space-5); font-size: var(--fs-body); line-height: var(--lh-body); }
.cw-list li + li { margin-top: var(--space-1); }

/* 快捷发布：固定素材版本、平台变体、素材顺序与逐平台任务。 */
.cw-quick-form { align-items: stretch; }
.cw-quick-assets { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); }
.cw-quick-asset-list { display: grid; gap: var(--space-2); }
.cw-quick-asset {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); background: var(--surface);
}
.cw-quick-asset-copy { display: grid; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.cw-quick-variant { grid-column: 1 / -1; }
.cw-quick-enable { margin-bottom: var(--space-3); font-weight: var(--fw-semibold); }
.cw-quick-cover-preview { grid-column: 1 / -1; }
.cw-quick-order { display: grid; gap: var(--space-2); }
.cw-quick-order-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.cw-quick-result:empty { display: none; }
.cw-quick-jobs { display: grid; gap: var(--space-2); }
.cw-quick-job { display: grid; gap: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3); }
.cw-quick-job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; }
.cw-inline { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* 手机宽度：单列，按钮可点到 */
@media (max-width: 720px) {
  .cw-form { grid-template-columns: 1fr; }
  .cw-checklist-row { grid-template-columns: 1fr 1fr; }
  .cw-checklist-row input[type="text"] { grid-column: 1 / -1; }
  .cw-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-toolbar > a, .cw-toolbar > button, .cw-filters > button { min-height: 40px; }
  .cw-filters select { flex: 1 1 140px; }
  .cw-quick-asset, .cw-quick-order-row, .cw-quick-job-head { align-items: stretch; flex-direction: column; }
  .cw-quick-asset > .btn { width: 100%; min-height: 40px; }
}
/* SM-04b: stable A/B groups, each expanding to three candidate cards. */
.cw-ai-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.cw-ai-single, .cw-ai-group, .cw-ai-candidates { display: grid; gap: 1rem; min-width: 0; }
.cw-ai-group { padding: 1rem; border: 1px solid var(--border, #ddd); border-radius: .75rem; }
.cw-ai-group > h3, .cw-ai-card > h4 { margin: 0; }
.cw-ai-card { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--border, #ddd); border-radius: .75rem; min-width: 0; background: var(--surface); }
.cw-ai-card input, .cw-ai-card textarea { width: 100%; box-sizing: border-box; }
.cw-ai-angle { margin: 0; }
.cw-ai-refs { font-size: .8rem; overflow-wrap: anywhere; }
.cw-ai-results { margin-top: 1rem; }
@media (max-width: 760px) { .cw-ai-pair { grid-template-columns: 1fr; } }
/* 大厂级表格排版：垂直居中、表头高辨识度、列宽自适应、拒绝单字孤行断行 */
.cw-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}
.cw-page thead th {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: #475467;
  background: #f8fafc;
  border-bottom: 1px solid #eaecf0;
  white-space: nowrap;
  letter-spacing: 0.01em;
  vertical-align: middle;
}
.cw-page tbody td {
  padding: 13px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  line-height: 1.5;
}
.cw-page tbody tr:hover td {
  background: #f8fafc;
}
.cw-cell-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #475467;
  font-size: 13px;
}
.cw-cell-nowrap {
  white-space: nowrap;
}
.cw-cell-account {
  min-width: 170px;
}
.cw-account-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.cw-plat-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 18px;
  flex: 0 0 auto;
}
.cw-account-name {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: #334155;
  white-space: nowrap;
}
.cw-cell-title {
  min-width: 220px;
  max-width: 360px;
  word-break: normal;
  overflow-wrap: break-word;
}
.cw-cell-source {
  white-space: nowrap;
  color: #475467;
  font-size: 13px;
}
.cw-source-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  color: #475467;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.cw-work-id {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cw-cell-actions {
  white-space: nowrap;
  width: 1%;
}
.cw-publication-projection,
.cw-publication-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cw-publication-actions .btn {
  min-height: 30px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  border-radius: 6px;
  white-space: nowrap;
}

/* 日常高频自媒体工作流指挥条与六步漏斗导航（纯白底、低饱和、呼吸感排版） */
.cw-daily-bar {
  display: grid;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #ffffff;
}
.cw-daily-bar-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}
.cw-daily-bar-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}
.cw-daily-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cw-pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #ffffff;
  color: #475467;
  text-decoration: none;
  font-size: var(--fs-helper);
  font-weight: var(--fw-medium);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cw-pipeline-step:hover {
  border-color: #cbd5e1;
  color: #101828;
}
.cw-pipeline-step-active {
  border-color: #93c5fd;
  background: #f8fafc;
  color: #1d4ed8;
  font-weight: var(--fw-semibold);
}
.cw-pipeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  flex: 0 0 auto;
}
.cw-pipeline-step-active .cw-pipeline-num {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 一键复制工具栏与平台字数/话题实时体检 */
.cw-copy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
}
.cw-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cw-copy-ok {
  border-color: #86efac;
  color: #15803d;
  background: #f0fdf4;
  font-weight: var(--fw-semibold);
}
.cw-platform-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cw-platform-pill {
  padding: 6px 14px;
  border: 1px solid #eaecf0;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: var(--fs-helper);
  cursor: pointer;
}
.cw-platform-pill:hover {
  border-color: #cbd5e1;
  color: #101828;
}
.cw-platform-pill-active {
  border-color: #93c5fd;
  background: #f8fafc;
  color: #1d4ed8;
  font-weight: var(--fw-semibold);
}
.cw-spec-hint {
  margin: 6px 0 0;
  font-size: var(--fs-helper);
  color: #667085;
}
.cw-spec-warn {
  color: #b45309;
  font-weight: var(--fw-medium);
}
.cw-retro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cw-engage-badge {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-semibold);
  color: #334155;
}

/* 自媒体总览全景、三大创作来源卡、AI 下一期提案工作室与帖子/素材必做反馈闭环台 */
.cw-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.cw-source-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #ffffff;
}
.cw-source-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cw-source-desc {
  margin: 0;
  color: #475467;
  font-size: var(--fs-helper);
  line-height: 1.6;
}
.cw-feedback-summary {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 16px;
}
.cw-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.cw-studio-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #ffffff;
  align-content: start;
}
.cw-studio-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f4f7;
}
.cw-studio-dna {
  padding: 12px 14px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #ffffff;
  font-size: var(--fs-helper);
  color: #475467;
}
.cw-studio-spec {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #ffffff;
}
.cw-feedback-badge-win {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #ffffff;
  color: #15803d;
  font-size: var(--fs-helper);
  font-weight: var(--fw-medium);
}
.cw-feedback-badge-ok {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: var(--fs-helper);
  font-weight: var(--fw-medium);
}
.cw-feedback-badge-wait {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #ffffff;
  color: #b45309;
  font-size: var(--fs-helper);
  font-weight: var(--fw-medium);
}
.cw-selfmade-box {
  margin-top: 0;
  background: #ffffff;
  border-color: #eaecf0;
}

/* 极简风格：真实数据图表区（白底主导、柔和低饱和配色、宽敞间距） */
.cw-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}
.cw-chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #ffffff;
}
.cw-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cw-chart-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: #101828;
}
.cw-chart-sub {
  font-size: var(--fs-helper);
  color: #667085;
}
.cw-svg-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cw-svg-bar-bg {
  fill: #f3f4f6;
}
.cw-svg-bar-views {
  fill: #60a5fa;
}
.cw-svg-bar-interact {
  fill: #34d399;
}
.cw-svg-bar-rate {
  fill: #93c5fd;
}
.cw-svg-bar-engage {
  fill: #a5b4fc;
}
.cw-svg-bar-funnel {
  fill: #60a5fa;
  opacity: 0.8;
}
.cw-svg-donut-bg {
  fill: none;
  stroke: #f3f4f6;
  stroke-width: 9;
}
.cw-svg-donut-win {
  fill: none;
  stroke: #34d399;
  stroke-width: 9;
  stroke-linecap: round;
}
.cw-svg-donut-ok {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 9;
  stroke-linecap: round;
}
.cw-svg-label {
  fill: #475467;
  font-size: 11px;
  font-family: inherit;
}
.cw-svg-val {
  fill: #1e293b;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.cw-svg-muted {
  fill: #667085;
  font-size: 10px;
  font-family: inherit;
}
.cw-donut-wrap {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  align-items: center;
}
.cw-donut-legend {
  display: grid;
  gap: 8px;
}
.cw-svg-grid-line {
  stroke: #f1f5f9;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.cw-svg-axis-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}
.cw-svg-line-views,
.cw-svg-plat-douyin {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cw-svg-line-likes,
.cw-svg-plat-channels {
  fill: none;
  stroke: #10b981;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cw-svg-plat-other {
  fill: none;
  stroke: #6366f1;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cw-svg-plat-xhs {
  fill: none;
  stroke: #fb7185;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cw-svg-area-views {
  fill: #3b82f6;
  fill-opacity: 0.08;
  stroke: none;
}
.cw-svg-area-likes {
  fill: #10b981;
  fill-opacity: 0.08;
  stroke: none;
}
.cw-svg-dot-views,
.cw-svg-pdot-douyin {
  fill: #ffffff;
  stroke: #3b82f6;
  stroke-width: 2;
}
.cw-svg-dot-likes,
.cw-svg-pdot-channels {
  fill: #ffffff;
  stroke: #10b981;
  stroke-width: 2;
}
.cw-svg-pdot-other {
  fill: #ffffff;
  stroke: #6366f1;
  stroke-width: 2;
}
.cw-svg-pdot-xhs {
  fill: #ffffff;
  stroke: #fb7185;
  stroke-width: 2;
}
.cw-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-helper);
  color: #475467;
}
.cw-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cw-legend-swatch-views,
.cw-legend-swatch-douyin {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3b82f6;
  display: inline-block;
}
.cw-legend-swatch-likes,
.cw-legend-swatch-channels {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10b981;
  display: inline-block;
}
.cw-legend-swatch-other {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #6366f1;
  display: inline-block;
}
.cw-svg-line-comments {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cw-svg-area-comments {
  fill: #f59e0b;
  fill-opacity: 0.08;
  stroke: none;
}
.cw-svg-dot-comments {
  fill: #ffffff;
  stroke: #f59e0b;
  stroke-width: 2;
}
.cw-legend-swatch-comments {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f59e0b;
  display: inline-block;
}
.cw-svg-node-group {
  cursor: pointer;
  outline: none;
}
.cw-svg-node-hit {
  fill: transparent;
  stroke: none;
}
.cw-svg-tip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.cw-svg-node-group:hover .cw-svg-tip,
.cw-svg-node-group:focus .cw-svg-tip,
.cw-svg-node-group:focus-visible .cw-svg-tip {
  opacity: 1;
}
.cw-svg-node-group:hover .cw-svg-dot-views,
.cw-svg-node-group:hover .cw-svg-dot-likes,
.cw-svg-node-group:hover .cw-svg-dot-comments,
.cw-svg-node-group:hover .cw-svg-pdot-douyin,
.cw-svg-node-group:hover .cw-svg-pdot-xhs,
.cw-svg-node-group:hover .cw-svg-pdot-channels,
.cw-svg-node-group:hover .cw-svg-pdot-other,
.cw-svg-node-group:focus .cw-svg-dot-views,
.cw-svg-node-group:focus .cw-svg-dot-likes,
.cw-svg-node-group:focus .cw-svg-dot-comments,
.cw-svg-node-group:focus .cw-svg-pdot-douyin,
.cw-svg-node-group:focus .cw-svg-pdot-xhs,
.cw-svg-node-group:focus .cw-svg-pdot-channels,
.cw-svg-node-group:focus .cw-svg-pdot-other {
  stroke-width: 3;
}
.cw-svg-tip-bg {
  fill: #101828;
  opacity: 0.92;
}
.cw-svg-tip-text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.cw-legend-swatch-xhs {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fb7185;
  display: inline-block;
}

/* 极简风格：可折叠帖子手风琴（纯白底、呼吸感间距，点开查看详情并一键生成下一期） */
.cw-min-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cw-post-list {
  display: grid;
  gap: 14px;
}
.cw-post-accordion {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cw-post-accordion:hover {
  border-color: #cbd5e1;
}
.cw-post-accordion[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.cw-post-summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 22px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  border-radius: 12px;
}
.cw-post-summary::-webkit-details-marker {
  display: none;
}
.cw-post-summary-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 0;
}
.cw-post-date-chip {
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cw-post-title-text {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: #101828;
}
.cw-post-metrics-inline,
.cw-inline-metric-editor {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cw-inline-metric-editor-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cw-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cw-inline-metric-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cw-inline-metric-field:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}
.cw-inline-metric-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #667085;
  white-space: nowrap;
}
.cw-inline-num-input {
  width: 58px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #101828;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}
.cw-inline-num-input::-webkit-outer-spin-button,
.cw-inline-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cw-inline-num-input.cw-inline-num-sm {
  width: 46px;
}
.cw-inline-num-input.cw-inline-num-xs {
  width: 38px;
}
.cw-inline-delta-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cw-inline-save-btn {
  padding: 4px 10px !important;
  font-size: 12px !important;
  height: 28px !important;
  white-space: nowrap;
}
.cw-inline-ai-btn {
  padding: 4px 10px !important;
  font-size: 12px !important;
  height: 28px !important;
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.cw-inline-ai-btn:hover {
  background: #dbeafe !important;
}
.cw-post-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  background: #ffffff;
  color: #475467;
  font-size: var(--fs-helper);
  font-variant-numeric: tabular-nums;
}
.cw-post-expand-hint {
  font-size: var(--fs-helper);
  color: #475467;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.cw-post-detail-body {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.25fr);
  gap: 24px;
  padding: 22px 24px 24px;
  border-top: 1px solid #f2f4f7;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}
@media (max-width: 920px) {
  .cw-post-detail-body {
    grid-template-columns: 1fr;
  }
}
.cw-post-detail-card,
.cw-post-next-card {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #ffffff;
  align-content: start;
  min-width: 0;
  overflow: hidden;
}
.cw-post-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.cw-post-media-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
  overflow: hidden;
}
.cw-post-media-img-wrap {
  width: 100%;
  height: 82px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-post-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cw-post-media-cap {
  font-size: 11px;
  line-height: 1.35;
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-post-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cw-post-stat-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #f2f4f7;
  border-radius: 8px;
  background: #ffffff;
}
.cw-post-stat-label {
  font-size: 11px;
  color: #667085;
}
.cw-post-stat-val {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: #101828;
  font-variant-numeric: tabular-nums;
}
.cw-post-content-box,
.cw-post-retro-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #f2f4f7;
  border-radius: 8px;
  background: #ffffff;
  font-size: var(--fs-helper);
  color: #344054;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* AI 趋势工作台：全量发布数据总结、平台走势对比与选题/脚本提案（纯白底、低饱和、支持直接采纳与在线修改采纳） */
.cw-trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.cw-trend-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #ffffff;
}
.cw-trend-summary-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cw-trend-summary-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: #101828;
}
.cw-trend-summary-body {
  margin: 0;
  font-size: var(--fs-helper);
  color: #344054;
  line-height: 1.65;
}
.cw-trend-summary-metrics {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #f2f4f7;
  font-size: 12px;
  color: #475467;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}
.cw-trend-plat-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.cw-trend-plat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #ffffff;
}
.cw-trend-plat-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.cw-trend-plat-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cw-trend-plat-trait {
  font-size: 12px;
  color: #475467;
}
.cw-trend-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin: 6px 0 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f4f7;
}
.cw-trend-proposal-list {
  display: grid;
  gap: 18px;
}
.cw-trend-proposal-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cw-trend-proposal-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.cw-trend-proposal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}
.cw-trend-proposal-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cw-trend-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: var(--fw-semibold);
}
.cw-trend-evidence {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
  color: #475467;
  line-height: 1.55;
}
.cw-trend-preview-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.3fr);
  gap: 16px;
}
@media (max-width: 920px) {
  .cw-trend-preview-grid {
    grid-template-columns: 1fr;
  }
}
.cw-trend-topic-box,
.cw-trend-script-box {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #ffffff;
  align-content: start;
}
.cw-trend-box-title {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #101828;
  padding-bottom: 8px;
  border-bottom: 1px solid #f2f4f7;
}
.cw-trend-kv-row {
  display: grid;
  gap: 4px;
  font-size: var(--fs-helper);
  color: #344054;
  line-height: 1.55;
}
.cw-trend-kv-label {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: #667085;
}
.cw-trend-kv-val {
  color: #344054;
}
.cw-trend-script-pre {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f2f4f7;
  border-radius: 8px;
  background: #fcfcfd;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}
.cw-trend-edit-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #ffffff;
}
.cw-trend-edit-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.cw-trend-adopted-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
}

/* ── AI 短视频制作 Agent 样板间与双擎工作台（short-video-studio.mjs） ── */
.cw-svs-shell {
  display: grid;
  gap: 20px;
}
.cw-svs-hero {
  display: grid;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #334155 100%);
  color: #f8fafc;
}
.cw-svs-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 20px;
}
.cw-svs-hero-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.cw-svs-hero-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 88ch;
}
.cw-svs-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cw-svs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cw-svs-badge-amber {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
}
.cw-svs-badge-green {
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.45);
}
.cw-svs-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
}
.cw-svs-kpi-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.cw-svs-kpi-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.cw-svs-kpi-val {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.cw-svs-kpi-hint {
  font-size: 11px;
  color: #cbd5e1;
}
.cw-svs-stage-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.cw-svs-stage-btn {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cw-svs-stage-btn:hover {
  border-color: #2563eb;
  background: #f8fafc;
}
.cw-svs-stage-btn-active {
  border: 2px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}
.cw-svs-stage-step {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}
.cw-svs-stage-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.cw-svs-stage-desc {
  font-size: 12px;
  color: #475467;
  line-height: 1.4;
}
.cw-svs-grid-2 {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.15fr);
  gap: 16px;
}
.cw-svs-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .cw-svs-grid-2 {
    grid-template-columns: 1fr;
  }
}
.cw-svs-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  align-content: start;
}
.cw-svs-card-selected {
  border: 2px solid #2563eb;
  background: #f8fafc;
}
.cw-svs-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.cw-svs-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.cw-svs-shot-list {
  display: grid;
  gap: 10px;
}
.cw-svs-shot-row {
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  align-items: start;
}
@media (max-width: 760px) {
  .cw-svs-shot-row {
    grid-template-columns: 1fr;
  }
}
.cw-svs-time-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.cw-svs-roll-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.cw-svs-roll-a {
  background: #dbeafe;
  color: #1e40af;
}
.cw-svs-roll-b {
  background: #fef3c7;
  color: #92400e;
}
.cw-svs-roll-card {
  background: #dcfce7;
  color: #166534;
}
.cw-svs-player-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) {
  .cw-svs-player-layout {
    grid-template-columns: 1fr;
  }
}
.cw-svs-phone-frame {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: #0f172a;
  border: 3px solid #334155;
  justify-items: center;
}
.cw-svs-canvas-video {
  width: 100%;
  max-width: 330px;
  height: auto;
  border-radius: 12px;
  background: #090d16;
  display: block;
}
.cw-svs-canvas-cover {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #faf6ee;
  display: block;
  margin: 0 auto;
}
.cw-svs-scrubber {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
}
.cw-svs-track-stack {
  display: grid;
  gap: 8px;
}
.cw-svs-track-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  align-items: center;
  font-size: 12px;
}
.cw-svs-track-name {
  font-weight: 700;
  color: #0f172a;
}
.cw-svs-code-box {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow-y: auto;
}
.cw-svs-gov-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
  font-size: 12px;
}
.cw-svs-status-toast {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}
.cw-svs-video-preview-el {
  display: none;
}

/* ── 自媒体 · 图文工作台 Agent 样板间与四渠道自动归属联动（graphic-article-studio.mjs） ── */
.cw-ga-hidden {
  display: none !important;
}
.cw-ga-secret-mask {
  -webkit-text-security: disc;
}
.cw-ga-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.cw-ga-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.cw-ga-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cw-ga-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}
.cw-ga-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.cw-ga-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.cw-ga-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.cw-ga-pill-ok {
  background: #dcfce7;
  color: #15803d;
}
.cw-ga-pill-warn {
  background: #fef3c7;
  color: #b45309;
}
.cw-ga-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
}
.cw-ga-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.cw-ga-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-linkage-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}
.cw-ga-linkage-left,
.cw-ga-linkage-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cw-ga-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.cw-ga-model-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
}
.cw-ga-toast-host {
  min-height: 0;
}
.cw-ga-toast {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}
.cw-ga-main-grid {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-main-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1080px) {
  .cw-ga-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cw-ga-left-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cw-ga-left-col > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cw-ga-left-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cw-ga-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.cw-ga-field-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.cw-ga-topic-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
.cw-ga-extras-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-extra-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
}
.cw-ga-extra-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-extra-head > strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.45;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cw-ga-extra-head > .cw-ga-shot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.cw-ga-mp-config-bar {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  margin-bottom: 12px;
}
.cw-ga-mp-config-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.cw-ga-doc-banner {
  font-size: 12px;
  font-weight: 600;
  color: #1e3a8a;
}
.cw-ga-mp-input {
  width: 210px;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 12px;
}
.cw-ga-ready-cover-card {
  display: grid;
  gap: 6px;
  padding: 0;
  border-radius: 10px;
  border: none;
  background: transparent;
}
.cw-ga-ready-cover-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: transparent;
  display: block;
  margin: 0 auto;
}
.cw-ga-ready-cover-placeholder {
  padding: 18px 16px;
  border-radius: 8px;
  border: 1px dashed #86efac;
  background: #ffffff;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.cw-ga-shots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #475467;
}
.cw-ga-shots-tag {
  color: #15803d;
  font-size: 11px;
}
.cw-ga-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-shot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cw-ga-shot-thumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
}
.cw-ga-shot-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
}
.cw-ga-shot-file {
  color: #cbd5e1;
  font-size: 10px;
}
.cw-ga-shot-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  font-size: 11px;
  min-width: 0;
}
.cw-ga-shot-meta .cw-ga-shot-file {
  color: #475467;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
}
.cw-ga-shot-asset {
  color: #64748b;
  font-size: 11px;
  min-width: 0;
}
.cw-ga-gen-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.cw-ga-preserve-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cw-ga-preserve-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
  line-height: 1.4;
}
.cw-ga-preserve-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-ga-preserve-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
  padding: 8px 8px;
  background: #0f766e;
  color: #ffffff;
  border: 1px solid #0d9488;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.cw-ga-preserve-btn:hover {
  background: #0d9488;
  color: #ffffff;
  border-color: #0f766e;
}
.cw-ga-attr-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  font-size: 12px;
}
.cw-ga-attr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.cw-ga-attr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cw-ga-attr-label {
  color: #64748b;
}
.cw-ga-attr-val {
  color: #0f172a;
  font-weight: 600;
}
.cw-ga-right-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cw-ga-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}
.cw-ga-plat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cw-ga-plat-tab {
  padding: 8px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cw-ga-plat-tab-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.cw-ga-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cw-ga-state-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.cw-ga-state-pending {
  background: #fef3c7;
  color: #b45309;
}
.cw-ga-state-approved {
  background: #dcfce7;
  color: #15803d;
}
.cw-ga-state-published {
  background: #dbeafe;
  color: #1d4ed8;
}
.cw-ga-btn-approve {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}
.cw-ga-btn-publish-disabled {
  opacity: 0.65;
}
.cw-ga-account-drawer {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fafc;
}
.cw-ga-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cw-ga-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.cw-ga-account-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}
.cw-ga-account-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.cw-ga-account-note {
  font-size: 11px;
  color: #475467;
  line-height: 1.45;
}
.cw-ga-isolation-tip {
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.5;
}
.cw-ga-article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cw-ga-article-h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}
.cw-ga-title-input {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
}
.cw-ga-cover-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.cw-ga-cover-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cw-ga-cover-spec-tag {
  font-size: 12px;
  font-weight: 600;
  color: #475467;
}
.cw-ga-cover-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}
.cw-ga-cover-canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #d6d3c9;
  display: block;
}
.cw-ga-cover-canvas-vert {
  max-width: 420px;
  margin: 0 auto;
}
.cw-ga-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
}
.cw-ga-tldr-box {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.65;
}
.cw-ga-sections {
  display: grid;
  gap: 22px;
}
.cw-ga-section-block {
  display: grid;
  gap: 12px;
}
.cw-ga-h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.cw-ga-p {
  margin: 0;
  font-size: 15px;
  color: #334155;
  line-height: 1.75;
}
.cw-ga-edit-area {
  width: 100%;
  padding: 10px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
}
.cw-ga-figure {
  margin: 4px 0;
  display: grid;
  gap: 8px;
}
.cw-ga-figure-frame {
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.cw-ga-figure-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cw-ga-figure-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.cw-ga-figure-asset {
  font-size: 11px;
  color: #64748b;
}
.cw-ga-figure-facts {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.55;
}
.cw-ga-figcaption {
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.cw-ga-table-wrap {
  display: grid;
  gap: 12px;
  overflow-x: auto;
}
.cw-ga-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cw-ga-table th,
.cw-ga-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.cw-ga-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}
.cw-ga-faq-wrap {
  display: grid;
  gap: 12px;
}
.cw-ga-faq-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}
.cw-ga-xhs-wrap {
  display: grid;
  gap: 14px;
}
.cw-ga-xhs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cw-ga-xhs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.cw-ga-xhs-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: #fff1f2;
  font-size: 13px;
}
.cw-ga-xhs-page {
  font-size: 11px;
  font-weight: 700;
  color: #e11d48;
}
.cw-ga-xhs-copy {
  margin: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.cw-ga-shot-img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: block;
  cursor: zoom-in;
}
.cw-ga-figure-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: transparent;
  display: block;
  margin: 8px auto;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  cursor: zoom-in;
}
.cw-ga-shot-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.cw-ga-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.65);
}
.cw-ga-modal-dialog {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}
.cw-ga-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.cw-ga-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}
.cw-ga-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
}
.cw-ga-check-pass {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.cw-ga-check-fail {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.cw-ga-warn-banner {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
}
.cw-ga-pub-receipt-host {
  display: grid;
}
.cw-ga-pub-receipt-box {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
  font-size: 13px;
}
.cw-ga-pub-receipt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.cw-ga-extras-head-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-extras-head-bar .cw-ga-shot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cw-ga-pub-modal-body {
  display: grid;
  gap: 8px;
}
.cw-ga-pub-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.cw-ga-pub-top-confirm-btn {
  margin-left: auto;
  font-weight: 700;
}
.cw-ga-pub-modal-list {
  display: grid;
  gap: 6px;
}
.cw-ga-pub-modal-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.cw-ga-pub-modal-card-selected {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}
.cw-ga-pub-modal-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
}
.cw-ga-web-menu-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.cw-ga-web-menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cw-ga-web-menu-select {
  width: auto;
  max-width: 190px;
  padding: 4px 8px;
  font-size: 12px;
}
.cw-ga-web-lang-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: 12px;
}
.cw-ga-web-lang-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cw-ga-web-lang-mode-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cw-ga-web-lang-select {
  min-width: 0;
  width: auto;
  max-width: min(100%, 420px);
  padding: 5px 8px;
  font-size: 12px;
  box-sizing: border-box;
}
.cw-ga-pub-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.cw-ga-clipboard-holder {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 640px) {
  .cw-ga-shell,
  .cw-ga-main-grid,
  .cw-ga-left-col,
  .cw-ga-right-col,
  .cw-ga-article-card,
  .cw-ga-topbar,
  .cw-ga-linkage-bar {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .cw-ga-article-card {
    padding: 16px 14px;
  }
  .cw-ga-shots-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   r42: Self-Media 4-Workflow Daily SOP & Gemini Multimodal Workbench
   Strict CSP style-src 'self' compliant — zero inline styles
   ========================================================================== */

/* 1. Overview 4-Card Daily Workflow Strip (/work/content) */
.cw-wf4-section {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #dbe4f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.cw-wf4-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.cw-wf4-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.cw-wf4-gemini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}
.cw-wf4-gemini-pill-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.cw-wf4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1200px) {
  .cw-wf4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .cw-wf4-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cw-wf4-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  min-width: 0;
  box-sizing: border-box;
}
.cw-wf4-card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}
.cw-wf4-card-top {
  display: grid;
  gap: 6px;
}
.cw-wf4-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cw-wf4-step {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
}
.cw-wf4-step-green {
  background: #ecfdf5;
  color: #047857;
}
.cw-wf4-step-purple {
  background: #f5f3ff;
  color: #6d28d9;
}
.cw-wf4-step-amber {
  background: #fffbeb;
  color: #b45309;
}
.cw-wf4-tag {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.cw-wf4-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.cw-wf4-desc {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}
.cw-wf4-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  padding-top: 4px;
}

/* 2. Graphic Article Studio Workflow 1 & 2 Switcher & Dual Doc Slots */
.cw-ga-wf-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.cw-ga-wf-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}
.cw-ga-wf-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}
.cw-ga-wf-btn-active {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.cw-ga-ai-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cw-ga-ai-status-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.cw-ga-docslot-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cw-ga-docslot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cw-ga-docslot-loaded {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
}
.cw-ga-docslot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.cw-ga-docslot-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-ga-docslot-meta {
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
  word-break: break-word;
}
.cw-ga-sync-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}
.cw-ga-tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.cw-ga-tier-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  color: #0f172a;
}
.cw-ga-btn-gemini {
  background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  border-color: #1e40af;
  color: #ffffff;
}
.cw-ga-btn-gemini:hover {
  background: linear-gradient(135deg, #1e40af 0%, #115e59 100%);
  color: #ffffff;
}

/* 3. Video Studio Workbench (Workflows 3 & 4) */
.cw-svs-hidden {
  display: none !important;
}
.cw-svs-mode-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 960px) {
  .cw-svs-mode-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cw-svs-mode-card {
  appearance: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  cursor: pointer;
  display: grid;
  gap: 4px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cw-svs-mode-card:hover {
  border-color: #3b82f6;
}
.cw-svs-mode-card-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}
.cw-svs-mode-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.cw-svs-mode-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}
.cw-svs-wf-grid {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 1060px) {
  .cw-svs-wf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cw-svs-col-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}
.cw-svs-dropzone {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed #94a3b8;
  background: #f8fafc;
  text-align: center;
}
.cw-svs-dropzone-loaded {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
}
.cw-svs-video-player {
  width: 100%;
  max-height: 380px;
  border-radius: 10px;
  background: #0f172a;
  object-fit: contain;
}
.cw-svs-frames-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cw-svs-frame-item {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  text-align: center;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
}
.cw-svs-frame-item-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
.cw-svs-frame-img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 5px;
  background: #0f172a;
}
.cw-svs-title-picks {
  display: grid;
  gap: 6px;
}
.cw-svs-title-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  font-family: inherit;
}
.cw-svs-title-pick:hover {
  border-color: #93c5fd;
  background: #ffffff;
}
.cw-svs-title-pick-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
}
.cw-svs-plat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cw-svs-plat-tab {
  appearance: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cw-svs-plat-tab-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.cw-svs-cover-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .cw-svs-cover-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cw-svs-deposit-cover-preview {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  margin: 0 auto;
}
.cw-svs-check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cw-svs-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
}
.cw-svs-check-pill input[type="checkbox"],
.cw-ga-sync-toggle input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 15px;
  accent-color: #2563eb;
  cursor: pointer;
}
.cw-svs-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cw-svs-card .field {
  min-width: 0;
  max-width: 100%;
}
.cw-svs-card textarea,
.cw-svs-card input:not([type="checkbox"]):not([type="radio"]),
.cw-svs-card select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#wf3GenerateVideoPkgBtn,
#submitWorkDepositBtn {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  height: auto;
  padding: 10px 14px;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
}
.cw-svs-deposit-list {
  display: grid;
  gap: 10px;
}
.cw-svs-deposit-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
@media (max-width: 680px) {
  .cw-svs-deposit-item {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cw-svs-deposit-thumb {
  width: 76px;
  height: 98px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #0f172a;
}
.cw-svs-deposit-thumb-empty {
  width: 76px;
  height: 98px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  text-align: center;
}
.cw-svs-metrics-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


/* ==========================================================================
   r43: Overseas Social Direct Publishing (Facebook + LinkedIn + YouTube)
   Strict CSP default-src 'self'; style-src 'self' compliant — zero inline style
   ========================================================================== */

.cw-os-feed-wrap {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
}

.cw-os-feed-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.cw-os-feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.cw-os-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-os-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.cw-os-avatar-fb {
  background: linear-gradient(135deg, #1877f2 0%, #0c4a9e 100%);
}

.cw-os-avatar-li {
  background: linear-gradient(135deg, #0a66c2 0%, #083d77 100%);
}

.cw-os-author-meta {
  display: grid;
  gap: 2px;
}

.cw-os-author-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.cw-os-author-sub {
  font-size: 12px;
  color: #64748b;
}

.cw-os-post-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  color: #1e293b;
}

.cw-os-link-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  color: inherit;
}

.cw-os-link-domain {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.cw-os-link-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.cw-os-link-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.cw-os-cred-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  margin-top: 8px;
}

.cw-os-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1180px) {
  .cw-os-cred-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cw-os-cred-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  align-content: start;
}

.cw-os-cred-card-ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.cw-os-cred-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cw-os-cred-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.cw-os-guide-details {
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
}

.cw-os-guide-summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  user-select: none;
}

.cw-os-guide-body {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}

.cw-os-rate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  color: #1e3a8a;
}

/* Video Studio Overseas Modal (CSP-safe) */
.cw-svs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.cw-svs-modal-dialog {
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  padding: 20px;
  display: grid;
  gap: 14px;
  box-sizing: border-box;
}

.cw-svs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.cw-svs-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.cw-svs-pub-target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 860px) {
  .cw-svs-pub-target-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cw-svs-pub-target-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.cw-svs-pub-target-card-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.cw-svs-receipt-list {
  display: grid;
  gap: 8px;
}

.cw-svs-receipt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 12px;
}

.cw-svs-receipt-row-ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.cw-svs-receipt-row-err {
  border-color: #fca5a5;
  background: #fef2f2;
}

/* ==========================================================================
   r44 Minimalist Breathing-Room Design System & Collapsed History Drawers
   Zero inline styles (CSP: style-src 'self')
   ========================================================================== */

.cw-page {
  gap: 24px;
  padding-bottom: 48px;
}

/* Overview Minimalist 4-Card Studio Launcher */
.cw-min-overview-hero {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cw-min-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cw-min-overview-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cw-min-overview-title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.cw-min-overview-sub {
  font-size: 13px;
  color: #64748b;
}

.cw-min-launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1120px) {
  .cw-min-launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cw-min-launcher-grid {
    grid-template-columns: 1fr;
  }
}

.cw-min-launcher-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: #fafbfc;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.cw-min-launcher-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.cw-min-launcher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
}

.cw-min-launcher-name {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.cw-min-launcher-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
}

.cw-min-launcher-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Soft KPI Metric Strip Overrides on Content Page */
.cw-page > .grid {
  gap: 16px;
}

.cw-page > .grid > .card,
.cw-page > .grid > a {
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  padding: 18px 20px;
}

/* Collapsed-by-default History Drawer (Shared across Overview, Graphic Studio, Video Studio) */
.cw-min-history-drawer {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cw-min-history-drawer[open] {
  border-color: #dbe2ea;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.cw-min-history-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #fafbfc;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cw-min-history-summary::-webkit-details-marker {
  display: none;
}

.cw-min-history-summary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.cw-min-history-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cw-min-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
}

.cw-min-history-hint {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cw-min-history-drawer[open] > .cw-min-history-summary .cw-min-history-chevron {
  transform: rotate(180deg);
}

.cw-min-history-state-open {
  display: none;
}

.cw-min-history-drawer[open] > .cw-min-history-summary .cw-min-history-state-closed {
  display: none;
}

.cw-min-history-drawer[open] > .cw-min-history-summary .cw-min-history-state-open {
  display: inline;
}

.cw-min-history-chevron {
  display: inline-block;
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.18s ease;
}

.cw-min-history-body {
  padding: 16px 18px 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.cw-min-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.cw-min-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cw-min-history-row:hover {
  background: #ffffff;
  border-color: #e2e8f0;
}

.cw-min-history-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.cw-min-history-row-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-min-history-row-meta {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-min-history-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Inline Collapsible Details (for Cover Text Tweaks & Inline Screenshots) */
.cw-min-inline-details {
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
}

.cw-min-inline-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.cw-min-inline-details > summary::-webkit-details-marker {
  display: none;
}

.cw-min-inline-details > summary:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.cw-min-inline-details-body {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Minimalist Empty Canvas (Clean Slate when no unpublished draft is active) */
.cw-min-empty-canvas {
  min-height: 480px;
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 20px;
  padding: 56px 40px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.cw-min-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
}

.cw-min-empty-title {
  font-size: 21px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.cw-min-empty-sub {
  max-width: 480px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #64748b;
  margin: 0;
}

.cw-min-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cw-min-ghost-link {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cw-min-ghost-link:hover {
  color: #0f172a;
}

/* Sleek Single-Row Studio Header Bar (Video Studio & Clean Switchers) */
.cw-min-studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.cw-min-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f1f5f9;
}

.cw-min-seg-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cw-min-seg-btn:hover {
  color: #0f172a;
}

.cw-min-seg-btn-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cw-min-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Graphic Studio Minimalist Breathing-Room Overrides */
.cw-ga-shell {
  gap: 22px;
  padding-top: 4px;
}

.cw-ga-main-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 1080px) {
  .cw-ga-main-grid {
    grid-template-columns: 1fr;
  }
}

.cw-ga-left-col {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 18px;
  padding: 22px;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.025);
}

.cw-ga-wf-switch {
  background: #f1f5f9;
  border: none;
  padding: 4px;
  border-radius: 11px;
  gap: 4px;
}

.cw-ga-wf-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: transparent;
}

.cw-ga-wf-btn-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cw-ga-docslot-stack {
  gap: 12px;
}

.cw-ga-docslot-card {
  background: #fafbfc;
  border: 1px dashed #cbd5e1;
  border-radius: 13px;
  padding: 16px;
  gap: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cw-ga-docslot-card:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.cw-ga-docslot-loaded {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.cw-ga-topbar {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  margin-bottom: 4px;
}

.cw-ga-article-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 20px;
  padding: 42px 52px;
  gap: 26px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

@media (max-width: 768px) {
  .cw-ga-article-card {
    padding: 24px 20px;
  }
}

.cw-ga-p {
  line-height: 1.82;
  color: #334155;
}

/* Video Studio Minimalist Breathing-Room Overrides */
.cw-svs-shell {
  gap: 22px;
}

.cw-svs-wf-grid {
  gap: 28px;
  align-items: start;
}

.cw-svs-col-stack {
  gap: 20px;
}

.cw-svs-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 18px;
  padding: 24px;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.025);
}

.cw-svs-dropzone {
  background: #fafbfc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 24px 20px;
  gap: 10px;
}

.cw-svs-dropzone-loaded {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.cw-svs-cover-grid-3 {
  gap: 18px;
}

/* ==========================================================================
   r45 Big-Tech Minimalist Typography, Breathing-Room Modals & High-Clarity UI
   Inspired by Linear / Apple / Feishu Design System
   Zero inline styles (Strict CSP: style-src 'self')
   ========================================================================== */

.cw-page,
.cw-ga-shell,
.cw-ga-modal-backdrop,
.cw-svs-modal-backdrop,
.cw-min-overview-hero,
.cw-min-studio-bar {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Global Readability & Contrast Upgrade across Self-Media Studios */
.cw-min-overview-title {
  font-size: 18px;
  font-weight: 650;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.cw-min-overview-sub {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

.cw-min-launcher-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.cw-min-launcher-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.cw-min-mode-tab {
  font-size: 13.5px;
  font-weight: 550;
  color: #475569;
  padding: 7px 15px;
}

.cw-min-mode-tab-active {
  color: #0f172a;
  font-weight: 600;
}

.cw-min-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.cw-min-empty-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
}

/* Big-Tech Modal Shell (Graphic Studio & Video Studio Unified) */
.cw-ga-modal-backdrop,
.cw-svs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cw-ga-modal-dialog,
.cw-svs-modal-dialog {
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 26px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #0f172a;
  outline: none;
  box-shadow:
    0 24px 60px -12px rgba(15, 23, 42, 0.22),
    0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.cw-ga-modal-head,
.cw-svs-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cw-bt-modal-head-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cw-bt-modal-title,
.cw-svs-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.cw-bt-modal-subtitle {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
}

.cw-bt-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cw-bt-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.cw-bt-modal-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Publish Modal Body & Breathable Layout */
.cw-ga-pub-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Clean Preset Bar — Single Calm Row, Zero Clutter */
.cw-bt-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

.cw-bt-preset-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cw-bt-preset-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  margin-right: 4px;
}

.cw-bt-preset-pill {
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cw-bt-preset-pill:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}

.cw-bt-preset-pill-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.cw-bt-preset-summary {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}

.cw-bt-preset-count {
  font-weight: 650;
  color: #2563eb;
}

/* Grouped Channel Sections */
.cw-bt-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-bt-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-bt-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.cw-bt-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.cw-bt-group-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Individual Channel Row — Crisp, Calm, Spacious */
.cw-bt-channel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cw-bt-channel-row:hover {
  border-color: #cbd5e1;
  background: #fcfdff;
}

.cw-bt-channel-row-selected {
  border-color: #3b82f6;
  background: #f8fbff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.07);
}

.cw-bt-channel-row-selected:hover {
  border-color: #2563eb;
  background: #f4f9ff;
}

.cw-bt-row-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 380px;
  min-width: 0;
}

.cw-bt-checkbox {
  width: 18px;
  height: 18px;
  margin: 8px 0 0 0;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

/* Brand Monogram Tile */
.cw-bt-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  user-select: none;
}

.cw-bt-brand-web {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.cw-bt-brand-mp {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
  font-size: 11px;
}

.cw-bt-brand-li {
  background: #eff6ff;
  color: #0a66c2;
  border: 1px solid #dbeafe;
  font-size: 16px;
}

.cw-bt-brand-fb {
  background: #eff6ff;
  color: #1877f2;
  border: 1px solid #dbeafe;
  font-size: 17px;
}

.cw-bt-brand-zh {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #e0f2fe;
  font-size: 15px;
}

.cw-bt-brand-xhs {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #ffe4e6;
  font-size: 11.5px;
}

/* 2-Line Typography Stack inside Row */
.cw-bt-row-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.cw-bt-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cw-bt-channel-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.cw-bt-account-handle {
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

/* Honest, Quiet Status Pills */
.cw-bt-status-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cw-bt-tag-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.cw-bt-tag-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.cw-bt-tag-sky {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.cw-bt-tag-slate {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.cw-bt-sub-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Inline Sleek Website Menu & Language Selects */
.cw-bt-inline-select {
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  max-width: 185px;
  transition: border-color 0.15s ease;
}

.cw-bt-inline-select:hover,
.cw-bt-inline-select:focus {
  border-color: #3b82f6;
  outline: none;
}

.cw-bt-inline-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cw-bt-inline-link {
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cw-bt-inline-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Right Action Cluster — Quiet Ghost Buttons, Zero Visual Noise */
.cw-bt-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cw-bt-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cw-bt-ghost-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.cw-bt-ghost-btn-accent {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.cw-bt-ghost-btn-accent:hover {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

.cw-bt-ghost-btn-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.cw-bt-ghost-btn-warn:hover {
  border-color: #fcd34d;
  background: #fef3c7;
  color: #92400e;
}

.cw-bt-single-pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cw-bt-single-pub-btn:hover:not(:disabled) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.cw-bt-single-pub-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sticky Clean Modal Footer — Single Unmistakable Primary CTA */
.cw-ga-pub-modal-foot {
  position: sticky;
  bottom: -20px;
  margin: 2px -26px -20px;
  padding: 12px 26px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #f1f5f9;
  z-index: 2;
}

.cw-bt-foot-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cw-bt-foot-hint {
  font-size: 12.5px;
  color: #64748b;
}

.cw-bt-cancel-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cw-bt-cancel-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.cw-bt-primary-cta {
  height: 40px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.24);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.cw-bt-primary-cta:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.cw-bt-primary-cta:disabled {
  background: #94a3b8;
  border-color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

/* Upgraded Post-Publish Receipt Card */
.cw-ga-pub-receipt-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: #f8fefb;
  color: #0f172a;
  font-size: 13.5px;
}

.cw-bt-receipt-title {
  font-size: 15px;
  font-weight: 650;
  color: #065f46;
}

.cw-ga-pub-receipt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.cw-ga-pub-receipt-row .cw-ga-shot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cw-ga-pub-receipt-row .cw-ga-shot-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.cw-ga-pub-receipt-row .cw-ga-shot-meta span {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.cw-ga-pub-receipt-row .cw-ga-shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Video Studio Overseas Publish & Vault Modals Big-Tech Alignment */
.cw-os-rate-bar {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.55;
}

.cw-os-target-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cw-os-target-card:hover {
  border-color: #cbd5e1;
}

/* Left Sidebar Publish History Readability (Full 2-Line Title + Crisp Action Row) */
.cw-ga-left-col .cw-min-history-row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
}

.cw-ga-left-col .cw-min-history-row-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}

.cw-ga-left-col .cw-min-history-row-meta {
  white-space: normal;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.cw-ga-left-col .cw-min-history-row-actions {
  justify-content: flex-start;
  gap: 6px;
}

#graphicHistoryDrawer .cw-ga-shot-actions .cw-ga-btn {
  white-space: nowrap;
  flex: 1 1 auto;
  justify-content: center;
  font-size: 12px;
  padding: 5px 8px;
}

@media (max-width: 680px) {
  .cw-ga-modal-dialog,
  .cw-svs-modal-dialog {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .cw-bt-channel-row {
    padding: 12px 14px;
  }
  .cw-bt-row-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 32px;
  }
  .cw-ga-pub-modal-foot {
    margin: 4px -16px -18px;
    padding: 14px 16px 16px;
  }
  .cw-bt-foot-hint {
    display: none;
  }
}

/* ==========================================================================
   Simbatch r46 — Top Upload Hub, Vendor-Neutral Controls & Account Card Fix
   Strict CSP Compliant (Zero inline styles)
   ========================================================================== */

.cw-min-empty-canvas {
  min-height: 360px;
  padding: 40px 36px;
  gap: 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.cw-min-empty-canvas-dragover {
  border-color: #2563eb;
  background: #f5f9ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cw-min-mode-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-bottom: 4px;
}

.cw-min-mode-pill {
  appearance: none;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cw-min-mode-pill:hover {
  color: #0f172a;
}

.cw-min-mode-pill-active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.cw-min-shot-box {
  width: 100%;
  max-width: 620px;
  display: grid;
  gap: 10px;
  margin: 4px 0;
  text-align: left;
}

.cw-min-topic-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13.5px;
  color: #0f172a;
  box-sizing: border-box;
}

.cw-min-topic-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cw-min-shot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.cw-min-shot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  max-width: 200px;
}

.cw-min-shot-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.cw-min-shot-name {
  font-size: 12px;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Account Drawer & 7-Card Grid Clean Typography (Fixes Vertical Pill Squish) */
.cw-ga-account-drawer {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 20px 22px;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.cw-ga-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cw-ga-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.cw-ga-account-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fcfcfd;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cw-ga-account-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.cw-ga-account-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}

.cw-ga-account-card-title-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.cw-ga-account-card-title-wrap input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.cw-ga-account-card-title-wrap strong {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.cw-ga-account-card-top .cw-ga-pill {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11.5px;
  border-radius: 999px;
}

.cw-ga-pill-neutral {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.cw-ov-vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cw-ov-vault-actions .cw-ga-btn {
  white-space: nowrap;
}

/* ==========================================================================
   Simbatch r47 — Pure-White Minimalist Storyboard & Multi-Clip Auto-Edit Studio
   Strict CSP Compliant (Zero inline styles)
   ========================================================================== */

/* Convert legacy dark .cw-svs-hero & cards to Pure-White Big-Tech Minimalist */
.cw-svs-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 26px;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.cw-svs-hero-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cw-svs-hero-sub {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.6;
}

.cw-svs-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

.cw-svs-badge-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.cw-svs-badge-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.cw-svs-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.cw-svs-kpi-label {
  color: #64748b;
  font-size: 12px;
}

.cw-svs-kpi-val {
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

.cw-svs-kpi-hint {
  color: #64748b;
  font-size: 12px;
}

.cw-svs-gov-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 12px;
}

.cw-svs-time-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cw-svs-phone-frame {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}

.cw-svs-code-box {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Multi-Clip Auto-Edit Studio (Pure-White Minimalist with Breathing Room) */
.cw-mc-studio-card {
  display: grid;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.cw-mc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cw-mc-title-group {
  display: grid;
  gap: 6px;
}

.cw-mc-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.cw-mc-sub {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  max-width: 82ch;
}

.cw-mc-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.35fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .cw-mc-layout {
    grid-template-columns: 1fr;
  }
}

.cw-mc-left-col,
.cw-mc-right-col {
  display: grid;
  gap: 16px;
}

.cw-mc-upload-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.cw-mc-clip-list {
  display: grid;
  gap: 12px;
}

.cw-mc-clip-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fcfcfd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cw-mc-clip-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.cw-mc-clip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}

.cw-mc-clip-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-mc-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 600;
}

.cw-mc-clip-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.cw-mc-clip-role {
  font-size: 12px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.cw-mc-clip-meta {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

.cw-mc-clip-quote {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.55;
}

.cw-mc-trim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 12px;
  color: #64748b;
}

.cw-mc-trim-input {
  width: 72px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.cw-mc-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cw-mc-check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.cw-mc-player-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fcfcfd;
}

.cw-mc-video-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #0f172a;
  margin: 0 auto;
  display: block;
  border: 1px solid #cbd5e1;
}

.cw-mc-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.cw-mc-quick-banner {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  text-align: left;
  margin-top: 4px;
}

.cw-mc-quick-banner-text {
  display: grid;
  gap: 3px;
}

.cw-mc-quick-banner-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e3a8a;
}

.cw-mc-quick-banner-sub {
  font-size: 12px;
  color: #3b82f6;
}

/* ==========================================================================
   Simbatch r49 — Minimalist AI Script Studio & End-to-End Practical Flow
   Strict CSP Compliant (Zero inline styles)
   ========================================================================== */

.cw-ai-script-studio {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-bottom: 6px;
}

.cw-ai-script-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
}

.cw-ai-script-title-wrap {
  display: grid;
  gap: 4px;
}

.cw-ai-script-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.cw-ai-script-sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

.cw-ai-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-ai-style-pill {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cw-ai-style-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.cw-ai-style-pill-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.cw-ai-angle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 720px) {
  .cw-ai-angle-row {
    grid-template-columns: 1fr;
  }
}

.cw-ai-angle-input {
  width: 100%;
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
}

.cw-ai-angle-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cw-ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.cw-ai-chip-label {
  font-size: 12px;
  color: #64748b;
}

.cw-ai-chip {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cw-ai-chip:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.cw-ai-action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.cw-ai-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-ai-status-text {
  font-size: 12.5px;
  color: #047857;
  font-weight: 500;
}

.cw-ai-proposals-box {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #ffffff;
}

.cw-ai-prop-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  font-size: 12.5px;
  color: #1e293b;
}

.cw-script-flow-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cw-script-flow-hint {
  width: 100%;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}
