/* 内容创作 ·「我要写稿」按选题卡直接写全文（2026-11-27 四个入口第二批）：已选选题卡标签 + 「+」里的选题卡列表 */
.composer .cwc-tag { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px 8px 7px 12px; max-width: 100%;
  border-radius: 10px; background: var(--brand-soft, #F0EBFB); color: var(--brand-text, #6A48C9); font-size: 13px; line-height: 1.4; }
.composer .cwc-tag[hidden] { display: none; }
.composer .cwc-label { flex: none; font-weight: 500; opacity: .85; }
.composer .cwc-label::after { content: '：'; }
.composer .cwc-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer .cwc-x { flex: none; width: 22px; height: 22px; border: none; border-radius: 6px; background: transparent; color: inherit;
  font-size: 12px; line-height: 22px; cursor: pointer; }
.composer .cwc-x:hover { background: rgba(124, 92, 214, .14); }

#modal .cwc-head { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; font-size: 14px; }
#modal .cwc-head span { font-size: 12px; color: var(--muted, #8A8598); }
#modal .cwc-list { display: flex; flex-direction: column; gap: 8px; max-height: min(52vh, 460px); overflow-y: auto; padding: 2px; }
#modal .cwc-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line, #E6E2EE); border-radius: 12px; background: var(--card, #fff); color: var(--text); font: inherit; }
#modal .cwc-row:hover { border-color: var(--brand, #7C5CD6); }
#modal .cwc-row.sel { border-color: var(--brand, #7C5CD6); background: var(--brand-soft, #F0EBFB); box-shadow: 0 0 0 2px rgba(124, 92, 214, .16); }
#modal .cwc-row.off { cursor: not-allowed; background: #F6F5F8; color: #9C97A6; }
#modal .cwc-row.off:hover { border-color: var(--line, #E6E2EE); }
#modal .cwc-radio { flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid #C9C2D8; border-radius: 50%; }
#modal .cwc-row.sel .cwc-radio { border: 5px solid var(--brand, #7C5CD6); }
#modal .cwc-row.off .cwc-radio { border-color: #DDD9E4; background: #EEECF1; }
#modal .cwc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#modal .cwc-main b { font-size: 14px; font-weight: 600; line-height: 1.5; }
#modal .cwc-main small { font-size: 13px; line-height: 1.6; color: var(--muted, #8A8598); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#modal .cwc-row.off .cwc-main small { color: #ABA6B5; }
#modal .cwc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; }
#modal .cwc-type { padding: 2px 8px; border-radius: 999px; background: #F1EFF5; color: #6F6A7B; }
#modal .cwc-ok { color: #2F8F5B; font-weight: 500; }
#modal .cwc-wait { color: #A0782A; }
#modal .cwc-empty { padding: 28px 16px; text-align: center; font-size: 14px; line-height: 1.7; color: var(--muted, #8A8598);
  border: 1px dashed var(--line, #E6E2EE); border-radius: 12px; }
#modal .mfoot .cwc-gap { flex: 1; }

@media (max-width: 760px) {
  #modal .cwc-row { padding: 10px 12px; }
  #modal .cwc-side { display: none; }
  #modal .cwc-row.off .cwc-main b::after { content: ' · 先确认后才能写稿'; font-weight: 400; font-size: 12px; color: #A0782A; }
}
#modal .cwc-list + .mfoot { margin-top: 18px; }

/* 第三批：对话里的写稿记录（AI 一条 + 「打开写稿卡片」按钮） */
#chatLog .cwt-turn .abody { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
#chatLog .cwt-status { display: inline-flex; align-items: center; gap: 8px; line-height: 1.7; }
#chatLog .cwt-status.busy { color: var(--brand-text, #6A48C9); }
#chatLog .cwt-status.warn { color: #A0782A; }
#chatLog .cwt-open { font-size: 13px; padding: 7px 14px; }

/* 2026-11-29：写稿版本对比（电脑并排、窄屏上下排）与对话里的「和上一版对比」 */
#chatLog .cwt-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
#chatLog .cwt-cmp { font-size: 13px; padding: 7px 14px; }
#modal .wcmp-host { margin: 4px 0 12px; }
#modal .wcmp-off { font-size: 13px; color: var(--muted, #8A8598); }
#modal .wcmp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
#modal .wcmp-pick select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line, #E6E2EE); background: var(--card, #fff); }
#modal .wcmp-note { color: var(--muted, #8A8598); }
#modal .wcmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#modal .wcmp-col { border-radius: 10px; background: #FAF9FC; padding: 10px 12px; font-size: 14px; line-height: 1.8; min-width: 0; }
#modal .wcmp-title { font-size: 12px; color: var(--muted, #8A8598); margin-bottom: 6px; }
#modal .wcmp-col p { margin: 0; padding: 0 6px; border-radius: 4px; }
#modal .wcmp-col .d-del { color: #9A4A44; text-decoration: line-through; background: #FBEDEC; }
#modal .wcmp-col .d-add { color: #1F6B45; background: #E7F5EC; }
#modal .wcmp-legend { margin: 6px 0 0; font-size: 12px; color: var(--muted, #8A8598); }
@media (max-width: 760px) { #modal .wcmp-grid { grid-template-columns: 1fr; } }
