/* ---------- AI 코워커 (co-ai) — 패널 헤더 · 제안 카드 · 유령값 · 스코프 칩 · 실패 · 넓게 보기. 주황은 AI 개입 순간에만 ---------- */
.ed-chat.wide{width:480px}
/* 헤더 — AI 인격 */
.co-ai-ava{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;overflow:visible;flex:none}
.co-ai-ava img,.co-ai-ava .av{border-radius:50%!important;width:28px;height:28px}
.co-ai-ava .ma-ava{width:28px;height:28px}
.co-ai-ava.sm,.co-ai-ava.sm img,.co-ai-ava.sm .av,.co-ai-ava.sm .ma-ava{width:22px;height:22px}
.co-ai-dot{position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border-radius:50%;background:#2E9E5B;border:2px solid #fff}
.co-ai-dot.busy{background:var(--brand);animation:co-blink 1s ease-in-out infinite}
.co-ai-dot.wait{background:var(--brand)}
@keyframes co-blink{0%,100%{opacity:1}50%{opacity:.35}}
.co-ai-who{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.co-ai-who b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-ai-who span{font-size:11px;color:#9C9C9A;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 전송 버튼 = 중지 */
#edSendBtn.stop{background:#1F1F1D;color:#fff}
#edSendBtn.stop svg{display:none}
#edSendBtn.stop::before{content:"";width:10px;height:10px;background:#fff;border-radius:2px}
/* 스코프 칩 · 겹침 경고 */
.co-ctx{display:flex;align-items:center;gap:8px;padding:0 2px 8px;font-size:12px}
.co-ctx-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #F2C29B;background:#FDF6EE;color:#B45816;border-radius:99px;padding:4px 6px 4px 10px;font-weight:600}
.co-ctx-x{width:18px;height:18px;border-radius:50%;color:#B45816;font-size:14px;line-height:1;display:grid;place-items:center}
.co-ctx-x:hover{background:#F9DCC6}
.co-ctx-hint{color:#9C9C9A}
.co-ai-warn{margin:0 2px 8px;border:1px solid #F2C29B;background:#FDF6EE;color:#8A4A1A;border-radius:9px;padding:7px 10px;font-size:12px;line-height:1.5}
/* 대화 줄(확인 · AI 한 줄 반응) */
.co-ai-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12.5px;color:#2A2A28;line-height:1.5}
.co-ai-line.ai{align-self:flex-start;max-width:96%}
.co-ai-line button{height:26px;padding:0 10px;border:1px solid var(--border);border-radius:7px;font-size:12px;font-weight:500;background:#fff}
.co-ai-line button.pri{background:#1F1F1D;color:#fff;border-color:#1F1F1D}
/* 제안 카드 — .art 셸 계열 */
.co-prop{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden;font-size:13px;align-self:stretch}
.co-prop-h{display:flex;align-items:center;gap:7px;padding:8px 10px;border-bottom:1px solid var(--border-soft);background:#FCFCFB;min-width:0;flex-wrap:wrap}
.co-prop-h b{font-size:12.5px;font-weight:600;white-space:nowrap}
.co-prop-scope{font-size:11px;color:#B45816;background:#FDF6EE;border-radius:99px;padding:2px 8px;white-space:nowrap}
.co-prop-st{margin-left:auto;font-size:11px;color:#9C9C9A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.co-prop.applied .co-prop-st{color:#2E9E5B;font-weight:600}
.co-prop.failed .co-prop-st,.co-prop.discarded .co-prop-st{color:#9C9C9A}
.co-prop-warn{padding:7px 10px;background:#FDF6EE;color:#8A4A1A;font-size:11.5px;border-bottom:1px solid #F7E3D0;line-height:1.5}
.co-prop-say{padding:10px 12px;line-height:1.65;color:#2A2A28;min-height:34px}
.co-ai-cursor{display:inline-block;width:7px;height:14px;background:var(--brand);border-radius:2px;vertical-align:-2px;margin-left:2px;animation:co-blink .8s steps(1) infinite}
.co-prop-note{margin-top:8px;font-size:11.5px;color:#9C9C9A}
.co-prop-list{border-top:1px solid var(--border-soft);max-height:220px;overflow-y:auto;font-family:ui-monospace,Menlo,monospace;font-size:11.5px}
.co-prop-lh,.co-prop-row{display:grid;grid-template-columns:70px 1fr 1fr 16px;gap:6px;align-items:center;padding:4px 10px}
.co-prop-lh{color:#9C9C9A;font-family:inherit;font-size:11px;background:#FCFCFB;position:sticky;top:0}
.co-prop-lh{grid-template-columns:70px 1fr 1fr auto}
.co-prop-lh .co-prop-n{text-align:right;white-space:nowrap}
.co-prop-row{cursor:pointer;border-top:1px solid #F5F5F3}
.co-prop-row:hover{background:#FCFCFB}
.co-prop-row .c{color:#55554F}
.co-prop-row .c i{font-style:normal;color:#9C9C9A;font-size:10px;margin-left:3px}
.co-prop-row .b{color:#9C9C9A;text-decoration:line-through;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.co-prop-row .b em{display:block;text-decoration:none;font-style:normal;color:#C2453A;font-size:10.5px}
.co-prop-row .a{color:#B45816;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.co-prop-row .k::before{content:"✓";color:#2E9E5B;font-family:inherit}
.co-prop-row.off{opacity:.5}
.co-prop-row.off .k::before{content:"–";color:#9C9C9A}
.co-prop-row.off .a{text-decoration:line-through;font-weight:400;color:#9C9C9A}
.co-prop-row.stale .c::after{content:" ⚠";color:#C2453A}
.co-prop.chat-only .co-prop-list,.co-prop.chat-only .co-prop-f{display:none!important}
.co-prop-f{display:flex;align-items:center;gap:6px;padding:8px 10px;border-top:1px solid var(--border-soft);flex-wrap:wrap}
.co-prop-f button{height:28px;padding:0 11px;border:1px solid var(--border);border-radius:8px;font-size:12px;font-weight:500;background:#fff}
.co-prop-f button:hover{background:var(--hover)}
.co-prop-f button.pri{background:#1F1F1D;color:#fff;border-color:#1F1F1D}
.co-prop-f button.pri:hover{background:#333331}
.co-prop-f button:disabled{opacity:.5}
.co-prop-stale{margin-left:auto;font-size:11px;color:#9C9C9A}
.co-prop-stale b{color:#C2453A;font-weight:600}
.co-prop-done{font-size:12px;color:#2E9E5B;font-weight:600}
.co-prop.peek{border-color:#F2C29B}
.co-prop.peek .co-prop-h{background:#FDF6EE}
.co-ai-ask{margin-top:10px;align-items:flex-start}
/* 실패 카드 */
.co-ai-err{display:flex;flex-direction:column;gap:6px;background:#FBF3F2;border:1px solid #F1D3CF;border-radius:9px;padding:9px 11px;color:#8A3A32}
.co-ai-err b{font-size:11px;font-family:ui-monospace,Menlo,monospace;font-weight:600}
.co-ai-err span{font-size:12.5px;line-height:1.5;color:#5A3A36}
.co-ai-err div{display:flex;gap:6px;margin-top:4px}
.co-ai-err button{height:26px;padding:0 10px;border:1px solid #E7C4BF;border-radius:7px;font-size:12px;background:#fff;color:#5A3A36}
.co-ai-err button.pri{background:#1F1F1D;color:#fff;border-color:#1F1F1D}
/* 그리드 유령값 — 요청자 탭만. 클릭 가능한 유일한 오버레이 자식 */
.co-ghostv{position:absolute;box-sizing:border-box;pointer-events:auto;cursor:pointer;background:rgba(238,119,50,.13);border:1px dashed var(--brand);display:flex;align-items:center;padding:0 6px;font-size:12.5px;font-style:italic;color:#B45816;overflow:hidden;white-space:nowrap;z-index:3}
.co-ghostv:hover{background:rgba(238,119,50,.22)}
.co-ghostv.off{opacity:.45;text-decoration:line-through}
.co-ghostv.stale{border-color:#C2453A;color:#C2453A;background:rgba(194,69,58,.10)}
.co-ghost-pop{position:fixed;z-index:200;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.14);padding:8px 10px;font-size:12px;color:#2A2A28;min-width:180px;max-width:440px;line-height:1.6;word-break:break-all}
.co-ghost-pop b{font-family:ui-monospace,Menlo,monospace;margin-right:4px}
.co-ghost-pop div{display:flex;gap:6px;margin-top:8px}
.co-ghost-pop button{height:26px;padding:0 9px;border:1px solid var(--border);border-radius:7px;font-size:12px;background:#fff}
.co-ghost-pop button.pri{background:#1F1F1D;color:#fff;border-color:#1F1F1D}
/* AI 프레즌스 박스(23-co-sheet .co-peer.ai) · 스트립의 AI 자리 */
.co-peer.ai{cursor:pointer;pointer-events:auto;background:rgba(238,119,50,.08)}
.co-peer.ai .co-peer-tag{background:var(--brand)}
.co-pp.ai .co-ava{background:#fff}
.co-pp.ai:not(.on){opacity:.45}
.co-pp.ai.on .co-ava{box-shadow:0 0 0 2px var(--brand),0 0 0 4px #fff}
.xl td.co-flash.ai{--c:#EE7732}
