/* 策划 · 选题池：工作台内嵌 */
.cehua-plan-topics-shell { border-radius: 10px; transition: box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.cehua-plan-topics-shell--expanded { border: 1px solid var(--border-color,#e5e6eb); background: var(--bg-primary,#fff); box-shadow: 0 4px 18px rgba(15,23,42,.08); margin-bottom: 10px; }
.cehua-plan-topics-shell--expanded .wb-fn-row { border-bottom: 1px solid var(--border-color,#e5e6eb); }
.cehua-plan-topics-shell--result .cehua-plan-topics-form-pane { display: none !important; }
.cehua-plan-topics-shell--form .cehua-plan-topics-result-pane { display: none !important; }

.cehua-plan-topics-embed { margin:0; border:none; border-radius:0; background:var(--bg-secondary,#fafafa); overflow:hidden; max-height:0; opacity:0; padding:0 12px; transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, padding .4s cubic-bezier(.4,0,.2,1); }
.cehua-plan-topics-shell--expanded .cehua-plan-topics-embed { max-height:2000px; opacity:1; padding:10px 12px 12px; }

.cehua-plan-topics-embed .cehua-plan-topics-field { margin-bottom:8px; }
.cehua-plan-topics-embed .cehua-plan-topics-field label { margin-bottom:3px; font-size:12px; }
.cehua-plan-topics-embed .cehua-plan-topics-field input[type='text'],
.cehua-plan-topics-embed .cehua-plan-topics-field textarea { padding:7px 10px; font-size:13px; }
.cehua-plan-topics-embed .cehua-plan-topics-field textarea { min-height:52px; max-height:120px; }
.cehua-plan-topics-embed .cehua-plan-topics-actions { margin-top:8px; padding-top:0; }
.cehua-plan-topics-embed .cehua-plan-topics-actions button { padding:7px 14px; font-size:13px; }

@keyframes cehua-pt-pane-fadein { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.cehua-plan-topics-result-pane { animation:cehua-pt-pane-fadein .3s ease; display:flex; flex-direction:column; gap:8px; min-height:320px; max-height:min(85vh,900px); padding:12px 14px 14px; box-sizing:border-box; background:#fff; border:1px solid var(--border-color,#e5e6eb); border-radius:10px; overflow:hidden; }
.cehua-plan-topics-result-pane[hidden] { display:none !important; }

.cehua-pt-result-head { display:flex; align-items:center; gap:12px; flex-shrink:0; padding-bottom:8px; border-bottom:1px solid var(--border-color,#e5e6eb); }
.cehua-pt-back-btn { border:1px solid var(--border-color,#e5e6eb); background:#fff; color:var(--text-primary,#1d2129); border-radius:8px; padding:6px 12px; font-size:13px; cursor:pointer; font-family:inherit; }
.cehua-pt-back-btn:hover { background:#f7f8fa; border-color:#c9cdd4; }
.cehua-pt-result-title { font-size:14px; font-weight:600; color:var(--text-primary,#1d2129); }
.cehua-pt-stop-btn { border:1px solid #ffccc7; background:#fff2f0; color:#cf1322; border-radius:8px; padding:5px 10px; font-size:12px; cursor:pointer; font-family:inherit; }
.cehua-pt-stop-btn:hover { background:#fff1f0; border-color:#ffa39e; }

.cehua-pt-process-wrap { border:1px solid var(--border-color,#e5e6eb); border-radius:8px; background:#fafafa; flex-shrink:0; }
.cehua-pt-process-wrap--closed { display:none; }
.cehua-pt-process-log { margin:0; padding:8px 10px; font-size:12px; line-height:1.5; color:#4e5969; white-space:pre-wrap; word-break:break-word; max-height:240px; overflow-y:auto; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.cehua-pt-process-expand { align-self:center; border:1px solid var(--border-color,#d9d9d9); background:#fff; color:#4e5969; border-radius:999px; width:28px; height:24px; line-height:20px; cursor:pointer; font-size:12px; padding:0; }
.cehua-pt-process-expand:hover { background:#f7f8fa; }

.cehua-plan-topics-result-body { flex:1; min-height:120px; overflow:auto; background:#fff; color:#1d2129; font-size:14px; line-height:1.65; padding:4px 2px 8px; }
.cehua-pt-stream-plain { margin:0; padding:0; background:#fff !important; color:#1d2129 !important; border:none; white-space:pre-wrap; word-break:break-word; font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif; font-size:14px; line-height:1.65; max-height:min(58vh,520px); overflow:auto; }
.cehua-pt-stream-status { font-size:12px; line-height:1.45; color:var(--text-secondary,#86909c); margin-bottom:2px; min-height:1.2em; flex-shrink:0; }

.cehua-pt-result-md { max-width:100%; }
.cehua-pt-result-md h1 { font-size:1.25rem; margin:1.1em 0 .5em; font-weight:700; }
.cehua-pt-result-md h2 { font-size:1.1rem; margin:1em 0 .45em; font-weight:700; }
.cehua-pt-result-md h3 { font-size:1rem; margin:.9em 0 .4em; font-weight:600; }
.cehua-pt-result-md p { margin:.5em 0; }
.cehua-pt-result-md ul,.cehua-pt-result-md ol { margin:.5em 0; padding-left:1.4em; }
.cehua-pt-result-md li { margin:.25em 0; }
.cehua-pt-result-md strong { font-weight:600; }
.cehua-pt-result-md a { color:#165dff; text-decoration:none; }
.cehua-pt-result-md a:hover { text-decoration:underline; }
.cehua-pt-result-md code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.9em; background:#f2f3f5; padding:.1em .35em; border-radius:4px; }
.cehua-pt-result-md pre { background:#f7f8fa; color:#1d2129; padding:12px 14px; border-radius:8px; overflow:auto; font-size:13px; line-height:1.5; border:1px solid #e5e6eb; }
.cehua-pt-result-md pre code { background:transparent; padding:0; }
.cehua-pt-result-md blockquote { margin:.6em 0; padding:.4em 0 .4em 12px; border-left:3px solid #c9cdd4; color:#4e5969; }
.cehua-pt-result-md table { border-collapse:collapse; width:100%; margin:.75em 0; font-size:13px; }
.cehua-pt-result-md th,.cehua-pt-result-md td { border:1px solid #e5e6eb; padding:6px 10px; text-align:left; }
.cehua-pt-result-md th { background:#f7f8fa; font-weight:600; }
.cehua-pt-result-md-plain { white-space:pre-wrap; word-break:break-word; }

.cehua-plan-topics-embed .cehua-pt-result-copy-hint { flex-shrink:0; margin:0; padding-top:4px; }
.cehua-pt-result-empty,.cehua-pt-result-copy-hint { margin:8px 0 0; font-size:13px; color:var(--text-secondary,#86909c); }
.cehua-pt-result-error { padding:10px 12px; border-radius:8px; background:#fff2f0; border:1px solid #ffccc7; color:#cf1322; font-size:14px; line-height:1.6; }

.cehua-plan-topics-field { margin-bottom:14px; }
.cehua-plan-topics-field label { display:block; font-size:13px; font-weight:500; color:#4e5969; margin-bottom:6px; }
.cehua-plan-topics-field .req { color:#f53f3f; margin-left:2px; }
.cehua-plan-topics-field input[type="text"],.cehua-plan-topics-field textarea { width:100%; box-sizing:border-box; border:1px solid #e5e6eb; border-radius:8px; padding:10px 12px; font-size:14px; font-family:inherit; color:#1d2129; background:#fafafa; outline:none; }
.cehua-plan-topics-field input[type="text"]:focus,.cehua-plan-topics-field textarea:focus { border-color:#165dff; background:#fff; }
.cehua-plan-topics-field textarea { min-height:88px; resize:vertical; }
.cehua-plan-topics-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; padding-top:4px; }
.cehua-plan-topics-actions button { border:none; border-radius:8px; padding:9px 18px; font-size:14px; cursor:pointer; font-family:inherit; }
.cehua-plan-topics-actions .btn-submit { background:#165dff; color:#fff; }
.cehua-plan-topics-actions .btn-submit:hover { background:#0e42d2; }
.cehua-plan-topics-actions .btn-submit:disabled { opacity:.55; cursor:not-allowed; }
.cehua-plan-topics-err { font-size:12px; color:#f53f3f; margin-top:-6px; margin-bottom:8px; min-height:18px; }
.cehua-pt-opt-row { margin-bottom:6px; }
.cehua-pt-checkbox-label { display:flex !important; align-items:center; gap:6px; font-weight:400 !important; cursor:pointer; }

.cehua-pt-history-btn { border:1px solid var(--border-color,#d9d9d9); background:#fff; color:#4e5969; border-radius:8px; padding:6px 12px; font-size:13px; cursor:pointer; font-family:inherit; }
.cehua-pt-history-btn:hover { background:#f7f8fa; border-color:#c9cdd4; }
.cehua-pt-history-btn--small { padding:4px 10px; font-size:12px; margin-left:auto; }
.cehua-pt-history-clear-btn { margin-left:auto; border:1px solid #ffccc7; background:#fff; color:#cf1322; border-radius:8px; padding:4px 10px; font-size:12px; cursor:pointer; font-family:inherit; }
.cehua-pt-history-clear-btn:hover { background:#fff2f0; }

.cehua-plan-topics-history-pane { animation:cehua-pt-pane-fadein .3s ease; display:flex; flex-direction:column; gap:8px; min-height:200px; max-height:min(85vh,900px); padding:12px 14px 14px; box-sizing:border-box; background:#fff; border:1px solid var(--border-color,#e5e6eb); border-radius:10px; overflow:hidden; }
.cehua-plan-topics-history-pane[hidden] { display:none !important; }
.cehua-pt-history-list { flex:1; overflow:auto; display:flex; flex-direction:column; gap:6px; }
.cehua-pt-history-empty { padding:24px 0; text-align:center; color:#86909c; font-size:13px; }
.cehua-pt-history-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #e5e6eb; border-radius:8px; background:#fafafa; cursor:pointer; transition:background .15s,border-color .15s; }
.cehua-pt-history-item:hover { background:#f0f5ff; border-color:#adc6ff; }
.cehua-pt-history-item-info { flex:1; min-width:0; }
.cehua-pt-history-item-name { font-size:14px; font-weight:500; color:#1d2129; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cehua-pt-history-item-meta { font-size:12px; color:#86909c; margin-top:2px; }
.cehua-pt-history-item-del { flex-shrink:0; border:none; background:transparent; color:#86909c; font-size:16px; cursor:pointer; padding:2px 6px; border-radius:4px; line-height:1; }
.cehua-pt-history-item-del:hover { background:#fff2f0; color:#cf1322; }

.cehua-plan-topics-shell--history .cehua-plan-topics-form-pane,
.cehua-plan-topics-shell--history .cehua-plan-topics-result-pane { display:none !important; }
.cehua-plan-topics-shell--form .cehua-plan-topics-history-pane,
.cehua-plan-topics-shell--result .cehua-plan-topics-history-pane { display:none !important; }
