/* AI 팀 대화방(메신저) — 2026-11-13 시안 docs/mockups/2026-11-13-flow-chat.html · static/teamchat.js */
.tab-b:has(> #room-host .tc){padding:14px}
.tc{--tc-claude:#d97757;--tc-gpt:#10a37f;--tc-gemini:#4c8dff;--tc-grok:#9b7bff;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:start;word-break:keep-all}
.tc-room{position:relative;background:var(--bg-2);border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.tc-head{padding:14px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px}
.tc-ht{min-width:0}
.tc-head h3{font-size:18px;font-weight:700;line-height:1.3;margin:0}
.tc-meta{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-stack{display:flex;margin-left:auto;padding-left:8px}
.tc-stack .tc-av{width:28px;height:28px;font-size:10px;border:2px solid var(--bg-2);margin-left:-8px}
.tc-stack.big{margin:0;justify-content:center}.tc-stack.big .tc-av{width:44px;height:44px;font-size:14px;margin-left:-10px}
.tc-mode{display:none;height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--line-2);background:var(--panel);color:var(--text-2);font:600 12px var(--sans);cursor:pointer}
.tc-av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font:700 13px/1 var(--sans);letter-spacing:-.02em;color:#fff;flex:none;background:#55555c}
.tc-av.c{background:var(--tc-claude)}.tc-av.g{background:var(--tc-gpt)}.tc-av.gm{background:var(--tc-gemini)}.tc-av.x{background:var(--tc-grok)}
.tc-av.sp{visibility:hidden;height:1px}
/* 오늘의 결정 */
.tc-pin{margin:14px 16px 2px;background:var(--panel);border:1px solid var(--line-2);border-radius:14px;padding:12px 16px}
.tc-ph{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--text-2)}
.tc-ph svg{color:var(--brand)}
.tc-ph span{margin-left:auto;font-weight:500;color:var(--faint)}
.tc-pin ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.tc-pin li{display:flex;gap:10px;align-items:baseline;font-size:14px;color:var(--text)}
.tc-pin li i{width:6px;height:6px;border-radius:50%;background:var(--ok);flex:none;transform:translateY(-2px)}
.tc-pin li small{color:var(--muted);font-size:12px;margin-left:auto;white-space:nowrap;padding-left:10px}
/* 메시지 */
.tc-msgs{padding:8px 18px 18px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;height:min(64vh,620px);min-height:380px;overscroll-behavior:contain}
.tc-msgs:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.tc-day{align-self:center;margin:8px 0 0}
.tc-day span{font-size:12px;color:var(--faint);background:var(--panel);border-radius:999px;padding:2px 12px}
.tc-m{display:flex;gap:10px;align-items:flex-start;max-width:min(640px,92%)}
.tc-m.cont{margin-top:-8px}
.tc-body{min-width:0}
.tc-who{font-size:13px;color:var(--text-2);font-weight:600;display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.tc-who em{font-style:normal;font-weight:500;color:var(--faint);font-size:12px}
.tc-bub{margin-top:4px;background:var(--panel-2);border:1px solid var(--line);border-radius:4px 16px 16px 16px;padding:10px 14px;color:var(--text);font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.tc-bub .md{font-size:14px}.tc-bub .md>*:first-child{margin-top:0}.tc-bub .md>*:last-child{margin-bottom:0}
.tc-m.c .tc-bub{box-shadow:inset 3px 0 0 var(--tc-claude)}
.tc-m.g .tc-bub{box-shadow:inset 3px 0 0 var(--tc-gpt)}
.tc-m.gm .tc-bub{box-shadow:inset 3px 0 0 var(--tc-gemini)}
.tc-m.x .tc-bub{box-shadow:inset 3px 0 0 var(--tc-grok)}
.tc-m.q .tc-bub{border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.tc-foot{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:12px;color:var(--faint);flex-wrap:wrap}
.tc-tg{background:none;border:0;padding:2px 0;color:var(--muted);font:600 12px var(--sans);cursor:pointer}
.tc-tg:hover,.tc-tg.on{color:var(--brand)}
.tc-tg:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
.tc-pr{font-family:var(--mono,ui-monospace,monospace);font-size:11px;color:var(--text-2);background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:1px 7px;text-decoration:none;cursor:pointer;line-height:1.6}
a.tc-pr:hover,button.tc-pr:hover{border-color:var(--line-2);color:var(--text)}
.tc-pill{font-size:11px;font-weight:700;border-radius:6px;padding:1px 7px;background:var(--panel);color:var(--text-2);border:1px solid var(--line)}
.tc-pill.ok{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,transparent)}
.tc-pill.warn{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 40%,transparent)}
.tc-pill.ask{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 40%,transparent)}
.tc-me .tc-pill{margin-right:6px;background:rgba(255,255,255,.18);color:#fff;border:0}
.tc-sev{color:var(--muted)}
.tc-raw{margin-top:8px;background:var(--code-bg,#0e0e11);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.65;color:var(--text-2);overflow-wrap:anywhere;max-height:420px;overflow:auto}
.tc-raw .md{font-size:13px}.tc-raw .md>*:first-child{margin-top:0}
.tc-iss{margin:8px 0 0;padding-left:0;list-style:none;display:grid;gap:4px}
.tc-iss b{font-size:11px;margin-right:6px}.tc-iss code{margin-right:6px;font-size:12px}
.tc-me{align-self:flex-end;max-width:min(520px,86%);display:flex;flex-direction:column;align-items:flex-end}
.tc-me .tc-bub{background:var(--brand);border-color:transparent;border-radius:16px 4px 16px 16px;color:#fff;text-align:left}
.tc-me .tc-foot{justify-content:flex-end}
.tc-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tc-files img{max-width:180px;max-height:140px;border-radius:10px;border:1px solid var(--line);display:block}
.tc-file{font-size:13px;color:var(--text-2);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:4px 10px}
.tc-sys{align-self:center;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:4px 14px;max-width:92%;text-align:center}
.tc-sys span{overflow:hidden;text-overflow:ellipsis}
.tc-sys.ok svg{color:var(--ok);flex:none}
.tc-sys.bad{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 35%,var(--line))}
.tc-typing{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}
.tc-typing .tc-av{width:28px;height:28px;font-size:11px}
.tc-dots{display:inline-flex;gap:3px}.tc-dots i{width:5px;height:5px;border-radius:50%;background:var(--faint);animation:tc-dot 1.2s infinite}
.tc-dots i:nth-child(2){animation-delay:.2s}.tc-dots i:nth-child(3){animation-delay:.4s}
.tc-dots.still i{animation:none}
@keyframes tc-dot{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.tc-dots i{animation:none}}
.tc-empty{margin:auto;text-align:center;display:grid;gap:10px;justify-items:center;max-width:420px;padding:24px 8px}
.tc-empty b{font-size:16px}.tc-empty p{font-size:14px;color:var(--muted);margin:0}
.tc-new{position:absolute;left:50%;transform:translateX(-50%);bottom:96px;z-index:2;border:0;border-radius:999px;background:var(--brand);color:#fff;font:600 13px var(--sans);padding:6px 14px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.3)}
.tc-compose{border-top:1px solid var(--line);padding:12px 16px;display:flex;gap:10px;align-items:flex-end}
.tc-compose textarea{flex:1;min-width:0;min-height:46px;max-height:140px;resize:none;border-radius:12px;border:1px solid var(--line-2);background:var(--panel);color:var(--text);padding:12px 16px;font:15px/1.45 var(--sans)}
.tc-compose textarea:focus{outline:none;border-color:var(--brand)}
.tc-send{height:46px;padding:0 20px;border-radius:12px;background:var(--brand);color:#fff;font:700 15px var(--sans);border:0;flex:none;cursor:pointer}
.tc-send:disabled{opacity:.5;cursor:default}
.tc-note{padding:0 16px 12px;margin:0;font-size:12px;color:var(--faint)}
.tc-note.ro{padding:14px 16px;border-top:1px solid var(--line)}
/* 오른쪽 */
.tc-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:16px}
.tc-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px}
.tc-card h4{font-size:15px;font-weight:700;margin:0 0 10px}
.tc-card p{font-size:13px;color:var(--muted);margin:8px 0 0}
.tc-mem{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.tc-card h4+.tc-mem{border-top:0}
.tc-mem .tc-av{width:30px;height:30px;font-size:11px}
.tc-mem>div:not(.tc-st){min-width:0;flex:1}
.tc-mem .tc-nm{font-weight:600;font-size:14px;line-height:1.3}
.tc-mem .tc-rl{font-size:12px;color:var(--muted)}
.tc-mem .tc-st{flex:none;margin-left:auto;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}
.tc-mem .tc-st i{width:7px;height:7px;border-radius:50%;background:var(--faint)}
.tc-mem .tc-st.on i{background:var(--ok)}
.tc-baton{font-size:11px;font-weight:700;color:var(--brand);background:var(--brand-soft);border-radius:6px;padding:1px 6px;margin-left:6px}
.tc-opt{display:flex;width:100%;justify-content:space-between;align-items:center;font:14px var(--sans);color:var(--text-2);padding:7px 0;background:none;border:0;cursor:pointer;text-align:left}
.tc-opt:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.tc-sw{width:38px;height:22px;border-radius:999px;background:var(--line-2);position:relative;flex:none}
.tc-sw::after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:2px;left:2px;transition:left .15s}
.tc-sw.on{background:var(--brand)}.tc-sw.on::after{left:18px}
@media (prefers-reduced-motion:reduce){.tc-sw::after{transition:none}}
@media (max-width:1180px){.tc{grid-template-columns:1fr}.tc-side{position:static;display:grid;grid-template-columns:1fr 1fr}}
@media (max-width:760px){
  .tab-b:has(> #room-host .tc){padding:0}
  .tc-side{display:none}
  .tc-mode{display:inline-block}
  .tc-room{border-radius:0;border-left:0;border-right:0}
  .tc-head{padding:12px 14px;gap:10px}.tc-head h3{font-size:17px}
  .tc-head .tc-stack{display:none}
  .tc-mode{margin-left:auto}
  .tc-pin{margin:10px 10px 2px;padding:12px 14px}
  .tc-pin li{display:grid;grid-template-columns:6px 1fr;column-gap:10px}.tc-pin li i{transform:translateY(9px)}.tc-pin li small{grid-column:2;margin:0;padding:0}
  .tc-msgs{padding:6px 10px 14px;height:min(68vh,620px)}
  .tc-m{max-width:100%}.tc-av{width:32px;height:32px;font-size:12px}
  .tc-me{max-width:88%}
  .tc-compose{padding:10px}.tc-send{padding:0 16px}
  .tc-note{padding:0 12px 12px}
}
body:has(.tc-compose) .pcx-fab{display:none}   /* AI 팀 대화방에는 입력칸이 있으니 떠 있는 버튼을 숨긴다 */
