.ck-sup-tabs { display:flex; gap:6px; padding:10px 14px 0; background:#fff; border-bottom:1px solid #e2e8f0; }
.ck-sup-tab { flex:1; border:0; background:#f1f5f9; color:#475569; font-weight:800; font-size:14px; padding:11px 8px; border-radius:12px 12px 0 0; cursor:pointer; font-family:inherit; }
.ck-sup-tab.on { background:#f97316; color:#fff; }
.ck-sup-tab[data-t="chat"] { order:-1; }
.ck-live-badge { display:inline-block; min-width:18px; padding:0 6px; margin-left:4px; border-radius:99px; background:#ef4444; color:#fff; font-size:11.5px; }
.ck-live-status { font-size:13px; font-weight:700; color:#64748b; margin-bottom:8px; }
.ck-live-status i { display:inline-block; width:9px; height:9px; border-radius:50%; background:#94a3b8; margin-right:6px; }
.ck-live-status.on { color:#16a34a; }
.ck-live-status.on i { background:#22c55e; }
#ck-live-pane { flex-direction:column; }
.ck-live-msgs { flex:1 1 auto; min-height:160px; height:auto; overflow:auto; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:8px; }
.ck-live-b { max-width:82%; padding:9px 13px; border-radius:16px; font-size:15px; line-height:1.4; white-space:pre-wrap; word-break:break-word; }
.ck-live-b.user { background:#f97316; color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.ck-live-b.admin { background:#fff; border:1px solid #e2e8f0; align-self:flex-start; border-bottom-left-radius:4px; color:#0f172a; }
.ck-live-attach { display:flex; align-items:center; justify-content:center; width:48px; flex:0 0 48px; border-radius:12px; background:#fff7ed; border:2px solid #fed7aa; font-size:20px; cursor:pointer; }
.ck-live-attach:hover { background:#ffedd5; }
.ck-live-prev { display:flex; align-items:center; gap:12px; margin-top:10px; padding:8px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
.ck-live-prev img { max-width:90px; max-height:70px; border-radius:8px; display:block; }
.ck-live-prev button { margin-left:auto; border:0; background:#fee2e2; color:#b91c1c; font-weight:700; font-size:13px; padding:8px 14px; border-radius:99px; cursor:pointer; }
.ck-live-img { display:block; max-width:100%; width:220px; border-radius:12px; margin-bottom:6px; cursor:zoom-in; background:#e2e8f0; min-height:60px; object-fit:cover; }
.ck-tick { display:inline-block; margin-left:5px; background:#fff; color:#94a3b8; border-radius:99px; padding:0 6px; font-weight:800; font-size:11px; letter-spacing:-2px; line-height:16px; }
.ck-tick.read { color:#0ea5e9; }
.ck-live-b small { display:block; font-size:11px; opacity:.7; margin-top:3px; }
.ck-live-empty { margin:auto; text-align:center; color:#64748b; font-weight:700; font-size:14px; padding:10px; }
.ck-live-id { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.ck-live-id input { flex:1 1 140px; padding:10px 12px; border:2px solid #e2e8f0; border-radius:12px; font-size:14px; font-family:inherit; outline:none; }
.ck-live-form { display:flex; gap:8px; margin-top:10px; }
.ck-live-form textarea { flex:1; resize:none; height:48px; padding:10px 12px; border:2px solid #e2e8f0; border-radius:12px; font-size:15px; font-family:inherit; outline:none; }
.ck-live-form textarea:focus, .ck-live-id input:focus { border-color:#f97316; }
.ck-live-form button { border:0; border-radius:12px; padding:0 18px; background:linear-gradient(135deg,#f97316,#ea580c); color:#fff; font-weight:800; font-size:15px; cursor:pointer; }
.ck-live-form button[disabled] { opacity:.6; }
.cc-t-user{--cc-mine:#f97316;--cc-mine2:#ea580c;--cc-mine-fg:#fff;--cc-their:#fff;--cc-their-fg:#0f172a;--cc-their-bd:#e2e8f0;--cc-acc:#f97316}
.cc-t-admin{--cc-mine:#6366f1;--cc-mine2:#4f46e5;--cc-mine-fg:#fff;--cc-their:#fff;--cc-their-fg:#0f172a;--cc-their-bd:#e2e8f0;--cc-acc:#6366f1}
.cc-box{display:flex;flex-direction:column}
.cc-day{align-self:center;margin:14px 0 6px;padding:3px 12px;border-radius:99px;background:rgba(100,116,139,.15);color:#475569;font-size:11.5px;font-weight:700;letter-spacing:.2px}
.cc-row{display:flex;margin-top:9px;animation:ccIn .18s ease-out}
.cc-row.cont{margin-top:2px}
.cc-row.mine{justify-content:flex-end}
@keyframes ccIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.cc-bub{position:relative;max-width:min(84%,520px);min-width:64px;padding:8px 12px 5px;border-radius:18px;font-size:15px;line-height:1.42;box-shadow:0 1px 2px rgba(15,23,42,.1);word-break:break-word;overflow-wrap:anywhere;transition:box-shadow .25s}
.cc-row.mine .cc-bub{background:linear-gradient(135deg,var(--cc-mine),var(--cc-mine2));color:var(--cc-mine-fg);border-bottom-right-radius:5px}
.cc-row.theirs .cc-bub{background:var(--cc-their);color:var(--cc-their-fg);border:1px solid var(--cc-their-bd);border-bottom-left-radius:5px}
.cc-text{white-space:pre-wrap}
.cc-meta{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:2px;font-size:10.5px;opacity:.78;line-height:16px}
.cc-edited{font-style:italic}
.cc-tick{background:rgba(255,255,255,.92);color:#94a3b8;border-radius:99px;padding:0 6px;font-weight:800;font-size:11px;letter-spacing:-2px;line-height:16px;opacity:1}
.cc-tick.read{color:#0ea5e9}
.cc-img{display:block;width:230px;max-width:100%;border-radius:12px;margin:2px 0 6px;cursor:zoom-in;background:#e2e8f0;min-height:60px;object-fit:cover}
.cc-quote{border-left:4px solid var(--cc-acc);background:rgba(15,23,42,.07);border-radius:9px;padding:5px 9px;margin:0 0 6px;cursor:pointer;font-size:12.5px;line-height:1.3;overflow:hidden}
.cc-row.mine .cc-quote{background:rgba(255,255,255,.2);border-left-color:#fff}
.cc-quote b{display:block;font-size:12px}
.cc-quote span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}
.cc-row.deleted .cc-bub{background:transparent;color:#64748b;border:1px dashed #cbd5e1;box-shadow:none}
.cc-row.deleted .cc-text{font-style:italic}
.cc-row.deleted .cc-more,.cc-row.deleted .cc-tick{display:none}
.cc-more{width:22px;height:18px;border:0;border-radius:99px;background:rgba(0,0,0,.14);color:inherit;font-size:13px;line-height:16px;padding:0;margin-left:2px;cursor:pointer;opacity:.8}
.cc-row.theirs .cc-more{background:rgba(15,23,42,.08)}
@media (hover:hover){.cc-more{display:none}}
.cc-acts{display:flex;align-items:center;gap:1px;align-self:center;margin:0 8px;padding:3px;background:#fff;border:1px solid #e2e8f0;border-radius:99px;box-shadow:0 2px 10px rgba(15,23,42,.1);opacity:0;transform:scale(.96);transition:opacity .14s,transform .14s}
.cc-row.mine .cc-acts{order:-1}
.cc-row:hover .cc-acts,.cc-acts:focus-within{opacity:1;transform:none}
.cc-acts button{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#64748b;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .12s,color .12s}
.cc-acts button:hover{background:#f1f5f9;color:#0f172a}
.cc-acts button[data-a=del]:hover{background:#fee2e2;color:#dc2626}
@media (hover:none){.cc-acts{display:none}}
.cc-flash .cc-bub{box-shadow:0 0 0 3px var(--cc-acc)}
.cc-menu{position:fixed;z-index:100000;min-width:176px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 14px 40px rgba(15,23,42,.28);padding:6px;font-family:inherit;animation:ccIn .12s ease-out}
.cc-menu button svg{flex:none;opacity:.8}
.cc-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:none;padding:10px 12px;border-radius:9px;font-size:14.5px;font-weight:600;cursor:pointer;color:inherit;font-family:inherit}
.cc-menu button:hover{background:#f1f5f9}
.cc-menu .danger{color:#dc2626}
.cc-menu .ask{padding:8px 10px 4px;font-size:13.5px;font-weight:700;max-width:230px}
.cc-menu .ask .btns{display:flex;gap:6px;margin-top:8px}
.cc-menu .ask .btns button{justify-content:center;background:#f1f5f9;padding:8px}
.cc-menu .ask .btns .danger{background:#dc2626;color:#fff}
.cc-ctx{display:none;align-items:center;gap:10px;padding:8px 12px;background:#f8fafc;border-top:1px solid #e2e8f0}
.cc-ctx.on{display:flex}
.cc-ctx i{width:4px;align-self:stretch;border-radius:4px;background:var(--cc-acc)}
.cc-ctx .cc-ctx-b{flex:1;min-width:0;font-size:12.5px;line-height:1.3}
.cc-ctx b{display:block;color:var(--cc-acc);font-size:12px}
.cc-ctx span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#475569}
.cc-ctx button{flex:0 0 auto;border:0;background:#e2e8f0;color:#334155;width:28px;height:28px;border-radius:50%;font-size:14px;cursor:pointer}

.ck-live-msgs.cc-box { gap:0; padding:12px 10px; scroll-behavior:smooth; }
#ck-live-ctx { margin-top:10px; border:1px solid #e2e8f0; border-radius:12px; }
.ck-live-err { color:#b91c1c; font-weight:700; font-size:13px; margin-top:8px; display:none; }
