/* 选题分析：正文直接铺在白底，只有表格、AI 补全、状态使用轻容器 */
.ta-mode { display: inline-flex; padding: 3px; border-radius: 999px; background: #EFEDE8; margin-left: 8px; flex: none; }
.ta-mode button { border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; color: var(--text-muted, #7A746A); cursor: pointer; white-space: nowrap; }
.ta-mode button.on { background: #fff; color: var(--text, #242424); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ta-wait { margin-top: 6px; font-size: 12.5px; color: var(--text-muted, #7A746A); }
.ta-body { font-size: 14px; line-height: 1.9; color: #3B3730; max-width: 760px; overflow-wrap: anywhere; }
.ta-body p { margin: 0 0 10px; }
.ta-body b { color: #1F1C17; font-weight: 600; }
.ta-body code { padding: 1px 5px; border-radius: 4px; background: #F1EFEA; font-size: 12.5px; }
.ta-body ul, .ta-body ol { margin: 0 0 12px; padding-left: 20px; }
.ta-body li { margin-bottom: 6px; }
.ta-title { font-size: 16px; font-weight: 700; color: #1F1C17; margin-bottom: 8px; }
.ta-lead { padding: 12px 14px; border-radius: 10px; background: #F7F5F0; }
.ta-h { margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid #ECE8DF; font-size: 15px; font-weight: 700; color: #1F1C17; line-height: 1.6; }
.ta-h.sub { margin: 14px 0 8px; padding-top: 0; border-top: 0; font-size: 14px; }
.ta-quote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #D9D3C7; background: #F7F5F0; border-radius: 0 8px 8px 0; color: #5A554C; }
.ta-summary { margin-top: 18px !important; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft, #F1ECFB); }
.ta-table { margin: 4px 0 14px; border: 1px solid #E7E2D8; border-radius: 10px; overflow: hidden; }
.ta-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.75; }
.ta-table th { text-align: left; padding: 8px 12px; background: #F7F5F0; font-weight: 600; color: #5A554C; white-space: nowrap; }
.ta-table td { padding: 9px 12px; border-top: 1px solid #EFEBE3; vertical-align: top; }
.ta-table td:first-child { font-weight: 600; color: #1F1C17; min-width: 72px; }
.ta-sup { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: #EEF3F8; border: 1px solid #DCE6F0; }
.ta-sup p { margin: 4px 0 2px; }
.ta-sup small { display: block; color: #6B7684; font-size: 12.5px; line-height: 1.7; }
.ta-sup-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ta-sup-tag { font-size: 12px; font-weight: 600; color: #3F6A99; }
.ta-sup-state { font-size: 12px; color: #6B7684; }
.ta-sup-state.ok { color: #2F7D55; }
.ta-sup-acts { display: flex; gap: 14px; margin-top: 6px; }
.ta-sup.decided { background: #F1F7F3; border-color: #D8E9DF; }
.ta-sup.rejected { display: flex; align-items: center; gap: 10px; background: #F5F4F1; border-color: #E7E2D8; opacity: .8; }
.ta-sup-input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; border: 1px solid #C9D6E4; border-radius: 8px; font: inherit; line-height: 1.7; resize: vertical; background: #fff; }
.ta-link { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: #5A554C; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ta-link.primary { color: var(--brand-text, #6A48C9); font-weight: 600; }
.ta-link:hover { color: #1F1C17; }
.ta-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ta-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #F1EFEA; color: #6B655B; }
.ta-chip.ok { background: #E6F3EB; color: #2F7D55; }
.ta-chip.wait { background: #FBF1DD; color: #94651A; }
.ta-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ta-actions .btn { padding: 8px 20px; font-size: 13.5px; }
@media (max-width: 720px) {
  .ta-mode { margin: 6px 0 0; }
  .ta-table table, .ta-table tbody, .ta-table tr, .ta-table td { display: block; width: 100%; box-sizing: border-box; }
  .ta-table thead { display: none; }
  .ta-table tr { border-top: 1px solid #EFEBE3; padding: 8px 0; }
  .ta-table tr:first-child { border-top: 0; }
  .ta-table td { border: 0; padding: 3px 12px; }
  .ta-table td::before { content: attr(data-label) "："; color: #8A8478; font-weight: 400; font-size: 12px; margin-right: 4px; }
  .ta-actions .btn { flex: 1; }
}

/* 选题卡：内联展开的轻容器 */
.tc-card { margin-top: 16px; max-width: 760px; border: 1px solid #E3DDD1; border-radius: 14px; background: #FDFCFA; padding: 16px 18px; font-size: 13.5px; line-height: 1.85; color: #3B3730; overflow-wrap: anywhere; }
.tc-card.confirmed { border-color: #BFDCCB; background: #FAFDFB; }
.tc-card.loading, .tc-card.error { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.tc-card.error { border-color: #EBC8C8; background: #FDF6F6; color: #A33A3A; }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tc-head b { font-size: 15px; color: #1F1C17; }
.tc-head-acts { display: flex; gap: 14px; }
.tc-state { margin-left: 8px; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #FBF1DD; color: #94651A; }
.tc-state.ok { background: #E6F3EB; color: #2F7D55; }
.tc-meta { margin-left: 8px; font-size: 12px; color: #8A8478; }
.tc-card section { margin-top: 14px; padding-top: 12px; border-top: 1px solid #EFEBE3; }
.tc-card h5 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #5A554C; display: flex; align-items: center; gap: 12px; }
.tc-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 5px 0; }
.tc-row > label { color: #8A8478; font-size: 12.5px; padding-top: 1px; }
.tc-row small, .tc-node small, .tc-card li small { display: block; color: #8A8478; font-size: 12.5px; line-height: 1.7; }
.tc-card ul { margin: 0; padding-left: 18px; }
.tc-src { display: inline-block; margin-left: 8px; font-size: 11.5px; padding: 0 8px; border-radius: 999px; background: #EEF3F8; color: #3F6A99; white-space: nowrap; vertical-align: 1px; }
.tc-src.ok { background: #E6F3EB; color: #2F7D55; }
.tc-type { font-weight: 600; color: #1F1C17; }
.tc-pain { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #F7F5F0; }
.tc-pain-title { font-size: 12px; color: #8A8478; }
.tc-pain p { margin: 2px 0 4px; font-weight: 600; color: #1F1C17; }
.tc-pain dl { display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px; margin: 0 0 4px; }
.tc-pain dt { color: #8A8478; font-size: 12.5px; }
.tc-pain dd { margin: 0; }
.tc-material { font-size: 12.5px; color: #6B655B; }
.tc-material > span { margin-right: 8px; color: #8A8478; }
.tc-node { display: flex; gap: 10px; padding: 6px 0; }
.tc-node > div { flex: 1; min-width: 0; }
.tc-node p { margin: 0; }
.tc-no { flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: #EFEDE8; color: #6B655B; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.tc-rule { margin-bottom: 8px; }
.tc-rule p { margin: 0; }
.tc-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-assume { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; background: #EEF3F8; }
.tc-assume.decided { background: #F1F7F3; }
.tc-assume p { flex: 1; margin: 0; min-width: 0; }
.tc-assume-acts { display: flex; gap: 12px; flex: none; }
.tc-note { display: block; color: #8A8478; font-size: 12.5px; }
.tc-input { display: block; width: 100%; box-sizing: border-box; margin: 2px 0 6px; padding: 7px 10px; border: 1px solid #D9D3C7; border-radius: 8px; font: inherit; line-height: 1.7; resize: vertical; background: #fff; }
.tc-input:focus { outline: 2px solid var(--brand-soft, #E4DAFA); border-color: var(--brand, #7C5CE0); }
.tc-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tc-foot .btn { padding: 8px 20px; font-size: 13.5px; }
@media (max-width: 720px) {
  .tc-row { grid-template-columns: 1fr; gap: 0; }
  .tc-foot .btn { flex: 1; }
}

/* 库内案例引用 */
.ta-cite { display: inline-block; margin: 0 2px; padding: 0 7px; border: 1px solid #C9D6E4; border-radius: 999px; background: #EEF3F8; color: #3F6A99; font: inherit; font-size: 11.5px; line-height: 1.6; cursor: pointer; vertical-align: 1px; }
.ta-cite:hover { background: #3F6A99; color: #fff; }
.ta-cite.static { cursor: default; margin-right: 8px; }
.ta-hits { margin-top: 14px; max-width: 760px; padding: 12px 14px; border: 1px solid #DCE6F0; border-radius: 12px; background: #F8FAFC; font-size: 13.5px; line-height: 1.8; }
.ta-hits-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ta-hit { padding: 8px 0; border-top: 1px solid #E6ECF2; }
.ta-hit.on .ta-hit-title { color: #1F1C17; font-weight: 600; }
.ta-hit-title { color: #3B3730; }
.ta-hit-meta { margin-left: 8px; font-size: 12px; color: #8A8478; font-weight: 400; }
.ta-hit .ta-quote { margin: 6px 0; }
.ta-hit-why { margin: 0 0 4px; color: #5A554C; font-size: 13px; }
.ta-hits-note { display: block; margin-top: 6px; color: #8A8478; font-size: 12px; }

/* 六节点分块：留白、序号、可收起 */
.ta-body .ta-title { margin-bottom: 12px; }
.ta-body .ta-lead { margin-bottom: 18px; line-height: 1.95; }
.ta-node { margin: 0 0 12px; border: 1px solid #ECE8DF; border-radius: 12px; background: #fff; overflow: hidden; }
.ta-node.open { border-color: #E3DDD1; }
.ta-node-head { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 0; background: #FAF9F6; font: inherit; text-align: left; color: #1F1C17; cursor: pointer; }
div.ta-node-head { cursor: default; }
button.ta-node-head:hover { background: #F4F2EC; }
.ta-node-no { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--brand, #7C5CE0); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ta-node-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.ta-node-chev { flex: none; font-size: 12px; color: #8A8478; }
.ta-node-body { padding: 14px 16px 6px; border-top: 1px solid #F0ECE4; }
.ta-node-body p { margin: 0 0 12px; }
.ta-node-body ul, .ta-node-body ol { margin: 0 0 14px; }
.ta-node-body li { margin-bottom: 8px; }
.ta-node-body .ta-h.sub { margin: 16px 0 8px; }
.ta-node-preview { padding: 0 14px 12px 48px; background: #FAF9F6; font-size: 12.5px; color: #8A8478; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-body .ta-summary { margin-top: 16px !important; }

/* 复制按钮：浅底圆角框 */
.ta-copy { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #E4DFD5; background: #F5F3EE; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 12.5px; line-height: 1.2; color: #4A453D; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ta-copy:hover { background: #ECE8E0; border-color: #D6D0C4; color: #1F1C17; }
.ta-copy:active { background: #E4DFD5; }
.ta-copy svg { flex: none; }

/* 底部输入框：多行时自动增高，最多约 10 行，超出滚动 */
#ccNote { max-height: 260px; overflow-y: auto; }

/* 2026-11-22 内容创作页改版 */
/* 去掉英文标识（// CONTENT STUDIO、// BRAINSTORM SESSION、回复前的「AI」头像） */
#view-create .phead .micro, #ccStorm .chat-head .micro { display: none; }
#chatLog .turn.ai > .aava:not(.error) { display: none; }
/* 删除右侧「结果提取工作台」，对话区铺满 */
#stormSide { display: none !important; }
#ccStorm { grid-template-columns: minmax(0, 1fr) !important; }

/* 选择此方向按钮 */
.ta-use-row { margin: -2px 0 14px; }
.ta-copy.ta-use { color: var(--brand-text, #6A48C9); border-color: #DCD2F3; background: var(--brand-soft, #F1ECFB); white-space: nowrap; }
.ta-copy.ta-use:hover { background: #E7DEFA; border-color: #C9BAF0; color: #4F2FB0; }

/* 方向表格：居中、单元格垂直居中、推荐行加粗 */
.ta-body:has(.ta-dir-table) { max-width: 1120px; }
.ta-table.ta-dir-table { margin: 14px auto 16px; overflow-x: auto; box-shadow: 0 2px 10px rgba(26, 24, 23, .04); }
.ta-dir-table table { min-width: 860px; }
.ta-dir-table th, .ta-dir-table td { vertical-align: middle; }
.ta-dir-table td:first-child { min-width: 0; }
.ta-table .c { text-align: center; }
.ta-dir-table th.c:first-child, .ta-dir-table td.c:first-child { width: 48px; }
.ta-dir-table tbody tr:hover td { background: #FBFAF7; }
.ta-dir-table tr.ta-rec td { font-weight: 700; color: #1F1C17; background: #F5F1FD; }
.ta-dir-table tr.ta-rec:hover td { background: #EFE9FC; }
.ta-rec-tag { display: inline-block; margin: 0 4px 2px 0; padding: 1px 6px; border-radius: 6px; background: var(--brand, #7C5CDB); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: middle; }
.ta-pick-th, .ta-pick-td { width: 112px; }
@media (max-width: 760px) {
  .ta-dir-table table { min-width: 0; }
  .ta-table .c { text-align: left; }
  .ta-pick-td { padding-top: 8px !important; }
}

/* 选题卡弹窗 */
.tc-modal .tc-modal-body .tc-card { max-width: none; margin-top: 12px; border: 0; padding: 0; box-shadow: none; background: transparent; }
.tc-modal .tc-modal-acts { display: inline-flex; gap: 8px; margin-left: auto; }

/* 选题卡 · 待补素材输入（2026-11-27） */
.tc-gaps { list-style: none; padding-left: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.tc-gap { padding: 10px 12px; border-radius: 10px; background: #FBF6EC; border: 1px solid #F0E4CB; }
.tc-gap.filled { background: #F1F7F3; border-color: #CFE5D7; }
.tc-gap-need b { font-weight: 600; color: #1F1C17; }
.tc-gap-form { margin-top: 6px; }
.tc-gap-input { display: block; width: 100%; box-sizing: border-box; min-height: 64px; padding: 8px 10px; border: 1px solid #D9D3C7; border-radius: 8px; font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; background: #fff; }
.tc-gap-input:focus { outline: 2px solid var(--brand-soft, #E4DAFA); border-color: var(--brand, #7C5CE0); }
.tc-gap-acts { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin-top: 6px; }
.tc-gap-ok { padding: 5px 18px; font-size: 13px; }
.tc-gap-filled { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.tc-gap-filled > span { flex: none; font-size: 12px; padding: 0 8px; border-radius: 999px; background: #E6F3EB; color: #2F7D55; }
.tc-gap-filled p { flex: 1; min-width: 0; margin: 0; color: #1F1C17; white-space: pre-wrap; }
.tc-feature.on { color: #2F7D55; border-color: #BFDCCB; background: #F1F7F3; }

/* 精选选题卡标签 */
#ccCards { padding-top: 12px; }
#ccCards .tcf-intro { margin: 0 0 40px; font-size: 13px; color: #8A8478; }
.tcf-card { cursor: pointer; }
.tcf-card .atop > span { display: flex; align-items: center; height: 24px; margin: 0; padding: 0 10px 2px; border-radius: 8px 8px 0 0; font-size: 12px; }
.tcf-type { background: #EFEDE8; color: #5A554C; }
.tcf-title { display: block; font-size: 14px; color: #1F1C17; margin-bottom: 4px; }
.tcf-card .atxt p { margin: 0; }
