.cp-dialog { width: min(560px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; }
.cp-dialog[open] { display: grid; gap: 10px; }
.cp-dialog::backdrop { background: #0008; }
.cp-head { display: flex; align-items: center; gap: 10px; } .cp-head h2 { margin: 0; font-size: 1.1rem; } .cp-head .spacer { flex: 1; }
.cp-note { margin: 0; color: var(--muted); font-size: .88rem; }
.cp-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cp-who input { width: 100%; }
.cp-list { overflow-y: auto; min-height: 200px; max-height: 46dvh; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.cp-empty { margin: auto; color: var(--muted); text-align: center; font-size: .9rem; }
.cp-row { display: flex; } .cp-row.me { justify-content: flex-end; }
.cp-bubble { max-width: 82%; padding: 8px 12px; border-radius: 12px; display: grid; gap: 4px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); }
.cp-row.me .cp-bubble { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.cp-bubble small { color: var(--muted); font-size: .75rem; }
.cp-error { margin: 0; color: var(--danger); font-size: .88rem; }
.cp-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; } .cp-compose textarea { resize: vertical; min-height: 44px; }

.cp-resume { position: fixed; right: 16px; bottom: 16px; z-index: 50; box-shadow: 0 6px 20px #0006; }
