/* VibeCrew crew chatroom and desktop crew view styles split from app.css. */

/* ==== 1. 크루 채팅방 v2 ==== */
/* 채팅방 헤더: 타이틀 + 참여 워커 아바타 */
.chatroom-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--vc-line);
  flex-shrink: 0;
}
.chatroom-header-title { font-size: 15px; font-weight: 700; letter-spacing: 0; flex: 1; }
/* 겹치는 아바타 스택 */
.avatar-stack {
  display: flex; align-items: center;
}
.avatar-stack .avatar {
  margin-left: -8px; border: 2px solid var(--vc-bg);
  transition: transform var(--vc-fast), z-index var(--vc-fast);
}
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar:hover { transform: translateY(-2px); z-index: 2; }
/* @멘션 태그 */
.mention-tag {
  display: inline; background: var(--vc-blue-10); color: var(--vc-blue-2);
  border-radius: 4px; padding: 1px 6px; font-weight: 600;
}
/* 라우팅 칩 "→ 서연, 포지" */
.routing-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--vc-purple-10); color: var(--vc-purple-2);
  border-radius: var(--vc-r-pill); padding: 2px 8px;
  font-size: var(--vc-fs-xs); font-weight: 600;
  border: 1px solid var(--vc-purple-22);
}
/* 입력창 하단 활성 워커 칩 */
.chatroom-active-workers {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 0 2px;
}
.chatroom-worker-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--vc-r-pill);
  font-size: var(--vc-fs-xs); font-weight: 600;
  background: var(--vc-white-05); border: 1px solid var(--vc-line-2);
  color: var(--vc-text-2); cursor: pointer; transition: all var(--vc-fast);
}
.chatroom-worker-chip:hover { background: var(--vc-blue-10); border-color: var(--vc-blue-40); color: var(--vc-blue-2); }
.chatroom-worker-chip.is-busy { background: var(--vc-amber-15); border-color: var(--vc-amber-45); color: var(--vc-text); }
.chatroom-worker-chip .chip-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--vc-green);
}
.chatroom-worker-chip .chip-dot.busy { background: var(--vc-amber); animation: dot-pulse 1.8s ease-in-out infinite; }
.chatroom-worker-chip .chip-dot.idle { background: var(--vc-muted); }
/* 참여 크루 칩 프로필 사진 (보비 2026-05-30) — 탭하면 1:1. busy 노란 ring */
.chatroom-chip-av { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.chatroom-chip-av.state-busy { box-shadow: 0 0 0 calc(var(--space-1) / 2) var(--vc-amber); animation: cv-busy-glow calc(var(--motion-normal) * 5) ease-in-out infinite; }
.avatar-stack [data-worker-header] { position: relative; display: inline-flex; }
.avatar-stack [data-worker-header].is-busy::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-1) * -0.75);
  border-radius: var(--vc-r-pill);
  border: calc(var(--space-1) / 2) solid transparent;
  border-top-color: var(--vc-amber);
  border-right-color: var(--vc-amber-45);
  animation: cv-busy-spin calc(var(--motion-normal) * 4) linear infinite;
  pointer-events: none;
  z-index: 3;
}
.chatroom-modal {
  width: min(900px, 95vw);
  height: min(85vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.chatroom-search-row {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  align-items: center;
  border-bottom: 1px solid var(--vc-line);
}
.chatroom-main {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.chatroom-close-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--vc-line-2);
  border-radius: var(--vc-r-3);
  background: var(--vc-white-04);
  color: var(--vc-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chatroom-close-btn:hover { background: var(--vc-white-08); color: var(--vc-text); }

@media (max-width: 640px) {
  .chatroom-modal-bg {
    align-items: stretch;
  }
  .chatroom-modal-bg .chatroom-modal {
    width: 100%;
    height: 100%;
    max-height: 100svh;
    border-radius: 0;
  }
  .chatroom-modal-bg .chatroom-header {
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    gap: 8px;
  }
  .chatroom-modal-bg .chatroom-header .avatar-stack,
  .chatroom-modal-bg .chatroom-header > span:last-of-type {
    display: none;
  }
  .chatroom-modal-bg .chatroom-search-row {
    padding: 8px 12px;
  }
  .chatroom-modal-bg .chatroom-active-workers {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .chatroom-modal-bg .chatroom-worker-chip {
    min-height: 30px;
    flex-shrink: 0;
  }
}


/* ============================================================
   Task #17: Desktop Crew View (Slack-style overlay)
   ============================================================ */
.cv-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.cv-overlay.cv-open { transform: translateY(0); }
.cv-header {
  height: 52px; flex-shrink: 0; padding: 0 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--vc-line);
  background: var(--vc-bg-2-70);
  backdrop-filter: blur(12px);
}
.cv-breadcrumb { display: flex; align-items: center; gap: 8px; }
.cv-logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--vc-blue), var(--vc-purple));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cv-bc-main { font-weight: 700; font-size: 14px; }
.cv-bc-sep { color: var(--vc-white-20); }
.cv-bc-sub { color: var(--vc-text-2); font-size: 13px; }
.cv-bc-current { font-size: 13px; font-weight: 500; }
.cv-close-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--vc-white-06); color: var(--vc-text-2); font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--vc-fast);
}
.cv-close-btn svg { width: 15px; height: 15px; }
.cv-close-btn:hover { background: var(--vc-white-12); color: var(--vc-text); }
.cv-body { flex: 1; display: flex; min-height: 0; }
.cv-sidebar {
  width: 240px; flex-shrink: 0; border-right: 1px solid var(--vc-line);
  background: var(--vc-bg-2-50); display: flex; flex-direction: column; overflow-y: auto;
}
.cv-sidebar-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--vc-line); }
.cv-sidebar-proj { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.cv-sidebar-meta { font-size: 11px; color: var(--vc-muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.cv-green-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-green); display: inline-block; }
.cv-section-label {
  padding: 14px 16px 6px; font-size: 11px; color: var(--vc-muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.cv-channels, .cv-dms { padding: 0 8px; }
.cv-channel-item {
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  color: var(--vc-text-2); font-size: 13px; font-weight: 500;
  margin-bottom: 1px; transition: background var(--vc-fast);
}
.cv-channel-item:hover { background: var(--vc-white-04); }
.cv-channel-active { background: var(--vc-blue-15); color: var(--vc-text); font-weight: 600; }
.cv-channel-name { flex: 1; }
.cv-channel-badge {
  min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: var(--vc-blue); color: var(--vc-on-accent); font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cv-channel-active .cv-channel-badge { background: var(--vc-blue); }
.cv-dm-item {
  padding: 6px 10px; display: flex; align-items: center; gap: 10px;
  border-radius: 6px; cursor: pointer; transition: background var(--vc-fast);
}
.cv-dm-item:hover { background: var(--vc-white-04); }
.cv-dm-av {
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 10px; font-weight: 700; color: var(--vc-on-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cv-dm-name { font-size: 13px; color: var(--vc-text-2); flex: 1; }
.cv-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-green); }
.cv-main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.cv-channel-header {
  padding: 12px 22px; border-bottom: 1px solid var(--vc-line);
  display: flex; align-items: center; gap: 10px;
  background: var(--vc-bg-2-50); flex-shrink: 0;
}
.cv-ch-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.cv-ch-sep { width: 1px; height: 20px; background: var(--vc-line); margin: 0 4px; }
.cv-avatar-stack { display: flex; position: relative; height: 26px; width: 80px; }
.cv-stack-av {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--vc-bg); font-size: 9px; font-weight: 700; color: var(--vc-on-accent);
  display: flex; align-items: center; justify-content: center; top: 0;
}
.cv-stack-av:nth-child(1) { left: 0; z-index: 5; }
.cv-stack-av:nth-child(2) { left: 14px; z-index: 4; }
.cv-stack-av:nth-child(3) { left: 28px; z-index: 3; }
.cv-stack-av:nth-child(4) { left: 42px; z-index: 2; }
.cv-stack-av:nth-child(5) { left: 56px; z-index: 1; }
.cv-stack-more { background: var(--vc-white-10); color: var(--vc-muted); font-size: 8px; }
.cv-member-count { font-size: 12px; color: var(--vc-muted); margin-left: 8px; }
.cv-messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px 22px 12px; scrollbar-width: thin; }
.cv-date-divider {
  display: flex; align-items: center; gap: var(--vc-s-3); margin: var(--vc-s-4) 0; font-size: var(--vc-fs-xs); color: var(--vc-muted);
}
.cv-date-divider::before, .cv-date-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--vc-line);
}
.cv-msg { display: flex; gap: 12px; margin-bottom: 14px; }
.cv-msg[data-crew-priority="high"] .cv-msg-body {
  border-left: 2px solid var(--vc-amber);
  padding-left: 10px;
}
.cv-msg-av {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  font-size: 14px; font-weight: 700; color: var(--vc-on-accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.cv-av-ceo { background: linear-gradient(135deg, var(--vc-blue), var(--vc-purple)); }
.cv-msg-body { flex: 1; min-width: 0; }
.cv-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.cv-msg-name { font-weight: 700; font-size: 14px; }
.cv-msg-ts { font-size: 11px; color: var(--vc-muted); }
.cv-sup-badge {
  padding: 1px 7px; border-radius: 10px;
  background: var(--vc-blue-15); color: var(--vc-blue-2);
  font-size: 10px; font-weight: 600;
}
/* 공백 없는 긴 토큰(URL·sha·stream-json init JSON 등)이 안 깨져 cv-msg-text 가
   6800px 로 뻗어 크루채팅방이 좌우로 스크롤되던 것 차단 — overflow-wrap:anywhere
   가 공백 없는 긴 문자열도 강제 개행. (보비 2026-06-06) */
.cv-msg-text { font-size: 14px; line-height: 1.6; color: var(--vc-text); overflow-wrap: anywhere; word-break: break-word; }
.cv-msg-text pre, .cv-msg-text code { white-space: pre-wrap; overflow-wrap: anywhere; }
.cv-system-row {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; padding: 8px 0 12px;
  font-size: 11.5px; color: var(--vc-muted);
}
.cv-system-row[data-crew-priority="high"] { color: var(--vc-amber); }
.cv-system-row .crew-msg-tags {
  margin: 0; max-width: none; display: inline-flex;
}
.cv-no-msgs { text-align: center; color: var(--vc-muted); padding: 60px 0; font-size: 13px; }
.cv-input-area { padding: 10px 22px 18px; border-top: 1px solid var(--vc-line); background: var(--vc-bg-2-50); flex-shrink: 0; }
.cv-input-shell {
  background: var(--vc-input); border: 1px solid var(--vc-line-2);
  border-radius: 10px; padding: 10px 12px;
}
.cv-textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--vc-text); font-size: 14px; font-family: inherit;
  resize: none; line-height: 1.5;
}
.cv-input-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cv-input-tools { display: flex; align-items: center; gap: 4px; }
.cv-tool-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; color: var(--vc-muted); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--vc-fast), color var(--vc-fast);
}
.cv-tool-btn:hover { background: var(--vc-white-08); color: var(--vc-text); }
.cv-input-hint { font-size: 11px; color: var(--vc-muted); margin-left: 8px; }
.cv-send-btn {
  padding: 7px 14px; border-radius: 7px; border: none;
  background: var(--vc-blue); color: var(--vc-on-accent); font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: opacity var(--vc-fast);
}
.cv-send-btn:hover { opacity: 0.85; }
.cv-members-panel {
  width: 258px; flex-shrink: 0; border-left: 1px solid var(--vc-line);
  background: var(--vc-bg-2-40); overflow-y: auto; padding: 18px 16px;
}
@media (max-width: 900px) { .cv-members-panel { display: none; } }
@media (max-width: 700px) { .cv-sidebar { display: none; } }
.cv-mp-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cv-mp-section { font-size: 11px; color: var(--vc-green-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 8px; }
.cv-member-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.cv-member-av {
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: var(--vc-on-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.cv-member-av.state-busy { box-shadow: 0 0 0 2px var(--vc-amber); animation: cv-ring-pulse 1.4s infinite; }
.cv-member-av.state-unread { box-shadow: 0 0 0 2px var(--vc-blue); }
.cv-member-info { flex: 1; min-width: 0; }
.cv-member-name { font-size: 13px; font-weight: 500; }
.cv-member-role { font-size: 11px; color: var(--vc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-offline { opacity: 0.45; }
.cv-task-panel {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vc-line);
}
.cv-task-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.cv-task-head .cv-mp-section { margin-bottom: 0; color: var(--vc-blue-2); }
.cv-task-head-btn {
  height: 24px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--vc-line-2); background: var(--vc-white-035);
  color: var(--vc-text-2); font-size: 11px; cursor: pointer;
}
.cv-task-head-btn:hover { background: var(--vc-white-08); color: var(--vc-text); }
.cv-task-list { display: flex; flex-direction: column; gap: 6px; }
.cv-task-item {
  width: 100%; text-align: left; border: 1px solid var(--vc-line);
  background: var(--vc-white-025); color: var(--vc-text); border-radius: 8px;
  padding: 9px 10px; cursor: pointer; display: grid; gap: 3px;
}
.cv-task-item:hover { background: var(--vc-white-05); border-color: var(--vc-blue-30); }
.cv-task-title {
  font-size: 12.5px; font-weight: 700; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cv-task-meta {
  font-size: 10.5px; color: var(--vc-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cv-task-status {
  width: max-content; margin-top: 2px; padding: 2px 7px; border-radius: var(--vc-r-pill);
  background: var(--vc-white-06); color: var(--vc-muted); font-size: 10px; font-weight: 700;
}
.cv-task-status.active { background: var(--vc-amber-15); color: var(--vc-amber); }
.cv-task-status.ok { background: var(--vc-green-10); color: var(--vc-green-2); }
.cv-task-status.danger { background: var(--vc-red-10); color: var(--vc-red-2); }
.cv-task-foot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cv-task-foot .cv-task-status { margin-top: 0; }
.cv-task-act {
  padding: 2px 8px; border-radius: var(--vc-r-pill); font-size: 10px; font-weight: 700;
  background: var(--vc-white-06); color: var(--vc-muted); cursor: pointer; user-select: none;
}
.cv-task-act:hover { background: var(--vc-white-10); color: var(--vc-text); }
/* PR 카드 — 작업 큐에 PR 검토·머지 대기 표시 (바비 #697 pr_task_sync 데이터 · 보비 2026-06-11 대표님 아이디어 완결) */
.cv-task-pr { border-left: 2px solid var(--vc-purple); }
.cv-pr-badge {
  display: inline-block; font-size: 10px; font-weight: 700; color: var(--vc-purple);
  background: var(--vc-purple-12); border-radius: 4px; padding: 1px 6px; margin-right: 5px; vertical-align: 1px;
}
.cv-task-act.primary { background: var(--vc-blue-10); color: var(--vc-blue-2); }
.cv-task-act.primary:hover { background: var(--vc-blue-15); }
.cv-task-act.danger { margin-left: auto; background: var(--vc-red-10); color: var(--vc-red-2); }
.cv-task-act.danger:hover { background: var(--vc-red-18); }
.cv-task-empty {
  padding: 10px 0; color: var(--vc-muted); font-size: 12px; text-align: center;
}
.cv-task-route-btn {
  width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--vc-blue-30); background: var(--vc-blue-10);
  color: var(--vc-blue-2); font-size: 12px; font-weight: 700; cursor: pointer;
}
.cv-task-route-btn:hover { background: var(--vc-blue-15); }
.cv-mp-pinned { margin-top: 24px; }
.cv-mp-pin-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--vc-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.cv-mp-pin-card { padding: 10px 12px; background: var(--vc-white-025); border: 1px solid var(--vc-line); border-radius: 8px; }
.cv-mp-pin-meta { font-size: 11px; color: var(--vc-muted); margin-bottom: 4px; }
.cv-mp-pin-body { font-size: 12.5px; color: var(--vc-text-2); line-height: 1.4; }

/* ============================================================
   크루뷰 3단 레이아웃 재설계 (보비 2026-05-30)
   좌측: 크루채팅방 목록 + 참여 크루(라이브 점)
   가운데: 단체 대화 + 필터 탭(전체/알림/PR/소음)
   우측: 관제 정보창 (크루 현황 · 지금 일하는 중 · 작업 큐)
   ============================================================ */
/* 좌측 — 크루채팅방(프로젝트) 목록 */
.cv-rooms, .cv-sb-members { padding: 0 8px; }
.cv-room-item {
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  color: var(--vc-text-2); font-size: 13px; font-weight: 500;
  margin-bottom: 1px; transition: background var(--vc-fast);
}
.cv-room-item:hover { background: var(--vc-white-04); }
.cv-room-active { background: var(--vc-blue-15); color: var(--vc-text); font-weight: 600; }
.cv-room-hash { color: var(--vc-muted); font-weight: 600; }
.cv-room-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-room-empty { padding: 6px 10px; color: var(--vc-muted); font-size: 12px; }
/* 좌측 — 참여 크루 (라이브 점 + 클릭 → 1:1) */
.cv-sb-member {
  min-height: 44px; padding: 7px 8px 7px 10px; border-radius: 6px; cursor: pointer;
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 64px 54px; align-items: center; column-gap: 9px;
  transition: background var(--vc-fast);
}
.cv-sb-member:hover { background: var(--vc-white-04); }
.cv-sb-member.is-busy { background: var(--vc-amber-06); }
.cv-sb-member.is-busy:hover { background: var(--vc-amber-15); }
.cv-sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-faint); flex-shrink: 0; }
.cv-sb-dot.live { background: var(--vc-green); }
.cv-sb-dot.busy { background: var(--vc-amber); animation: cv-ring-pulse 1.4s infinite; }
/* 참여 크루 프로필 사진 아바타 + 상태 ring (메인 1:1 목록처럼) */
.cv-sb-av-wrap { position: relative; flex-shrink: 0; display: inline-flex; }
.cv-sb-av { width: 26px; height: 26px; border-radius: 50%; }
.cv-sb-av.state-busy { box-shadow: 0 0 0 calc(var(--space-1) / 2) var(--vc-amber-45); }
.cv-sb-av-wrap.is-busy::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-1) * -1);
  border-radius: var(--vc-r-pill);
  border: calc(var(--space-1) / 2) solid transparent;
  border-top-color: var(--vc-amber);
  border-right-color: var(--vc-amber-50);
  animation: cv-busy-spin calc(var(--motion-normal) * 4) linear infinite;
  pointer-events: none;
}
.cv-sb-av.state-unread { box-shadow: 0 0 0 calc(var(--space-1) / 2) var(--vc-blue); }
.cv-sb-livedot { position: absolute; right: calc(var(--space-1) / -4); bottom: calc(var(--space-1) / -4); width: var(--space-2); height: var(--space-2); border-radius: 50%; background: var(--vc-green); border: calc(var(--space-1) / 2) solid var(--vc-surface); z-index: 2; }
.cv-sb-offline .cv-sb-av { opacity: 0.5; filter: grayscale(0.6); }
.cv-sb-offline .cv-sb-member-name { color: var(--vc-muted); }
.cv-sb-member-main { min-width: 0; display: flex; align-items: center; gap: 5px; }
.cv-sb-member-name { font-size: 13px; color: var(--vc-text-2); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-sb-cycle { min-width: 0; font-size: 10px; line-height: 1; color: var(--vc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.cv-sb-star { color: var(--vc-blue-2); font-size: 10px; }
.cv-sb-activity {
  min-width: 0; padding: 3px 0; border-radius: var(--vc-r-pill);
  background: var(--vc-white-04); color: var(--vc-muted); font-size: 10px; font-weight: 700;
  line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: right;
}
.cv-sb-act-busy { background: transparent; color: var(--vc-amber); }
.cv-sb-act-unread { background: transparent; color: var(--vc-blue-2); }
.cv-sb-act-recent { background: transparent; color: var(--vc-green-2); }
.cv-sb-act-idle { background: transparent; color: var(--vc-muted); }
/* 가운데 상단 — 필터 탭 */
.cv-ftabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cv-ftab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--vc-r-pill);
  border: 1px solid transparent; background: transparent;
  color: var(--vc-text-2); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background var(--vc-fast), color var(--vc-fast);
}
.cv-ftab:hover { background: var(--vc-white-05); color: var(--vc-text); }
.cv-ftab-active { background: var(--vc-blue-15); color: var(--vc-text); }
.cv-ftab-n {
  min-width: 16px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--vc-white-10); color: var(--vc-text-2);
  font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cv-ftab-active .cv-ftab-n { background: var(--vc-blue); color: var(--vc-on-accent); }
/* 우측 — 관제 정보창 */
.cv-info-panel { display: flex; flex-direction: column; gap: 16px; }
.cv-stat-cards { display: flex; gap: 8px; }
.cv-stat-card {
  flex: 1; padding: 10px 6px; border-radius: 8px;
  background: var(--vc-white-04); border: 1px solid var(--vc-line); text-align: center;
}
.cv-stat-num { font-size: 20px; font-weight: 800; color: var(--vc-text); font-variant-numeric: tabular-nums; }
.cv-stat-num.cv-stat-busy { color: var(--vc-amber); }
.cv-stat-lbl { font-size: 10px; color: var(--vc-muted); margin-top: 2px; }
.cv-info-section { display: flex; flex-direction: column; gap: 7px; }
.cv-info-label { font-size: 11px; font-weight: 700; color: var(--vc-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cv-working-list { display: flex; flex-direction: column; gap: 5px; }
.cv-working-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 7px;
  background: var(--vc-amber-06); border: calc(var(--space-1) / 4) solid var(--vc-amber-28);
}
.cv-working-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-amber); animation: cv-ring-pulse 1.4s infinite; flex-shrink: 0; }
.cv-working-name { font-size: var(--vc-fs-xs); font-weight: 700; color: var(--vc-text); flex-shrink: 0; display: inline-flex; align-items: baseline; gap: calc(var(--space-1) / 2); }
.cv-working-dots { display: inline-flex; gap: calc(var(--space-1) / 2); margin-left: calc(var(--space-1) / 2); }
.cv-working-dots i {
  width: calc(var(--space-1) * 0.75);
  height: calc(var(--space-1) * 0.75);
  border-radius: 50%;
  background: var(--vc-amber);
  opacity: 0.3;
  animation: cv-working-dot calc(var(--motion-normal) * 5) ease-in-out infinite;
}
.cv-working-dots i:nth-child(2) { animation-delay: var(--motion-fast); }
.cv-working-dots i:nth-child(3) { animation-delay: var(--motion-normal); }
.cv-working-meta { font-size: 11px; color: var(--vc-muted); margin-left: auto; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-working-idle { padding: 7px 9px; color: var(--vc-muted); font-size: 12px; font-style: italic; }

@keyframes cv-busy-spin {
  to { transform: rotate(360deg); }
}

@keyframes cv-busy-glow {
  0%, 100% { box-shadow: 0 0 0 calc(var(--space-1) / 2) var(--vc-amber-50); }
  50% { box-shadow: 0 0 0 var(--space-1) var(--vc-amber-20); }
}

@keyframes cv-working-dot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(calc(var(--space-1) / -2)); }
}

/* 좌측 참여 크루 active (1:1 열린 워커 강조) */
.cv-sb-member.cv-sb-active { background: var(--vc-blue-15); }

/* 우측 패널 1:1 모드 (PR2) — 워커 클릭 시 정보창 대신 1:1 대화 (최소 폭 넉넉히) */
.cv-members-panel.cv-dm-mode { min-width: 380px; width: 380px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.cv-dm-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--vc-line); flex-shrink: 0; }
.cv-dm-head-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.cv-dm-head-info { flex: 1; min-width: 0; }
.cv-dm-head-name { font-size: 14px; font-weight: 700; color: var(--vc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-dm-head-sub { font-size: 11px; color: var(--vc-muted); }
.cv-dm-close { background: none; border: none; color: var(--vc-muted); cursor: pointer; padding: 5px; border-radius: 6px; display: flex; flex-shrink: 0; }
.cv-dm-close:hover { background: var(--vc-white-08); color: var(--vc-text); }
.cv-dm-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cv-dm-msg { display: flex; }
.cv-dm-user { justify-content: flex-end; }
.cv-dm-assistant { justify-content: flex-start; }
.cv-dm-bubble { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.cv-dm-user .cv-dm-bubble { background: var(--vc-blue); color: var(--vc-on-accent); border-bottom-right-radius: 4px; }
.cv-dm-assistant .cv-dm-bubble { background: var(--vc-surface-2); color: var(--vc-text); border-bottom-left-radius: 4px; }
.cv-dm-err { color: var(--vc-red-2); }
.cv-dm-empty, .cv-dm-loading { color: var(--vc-muted); font-size: 12px; text-align: center; margin: 24px 0; }
.cv-dm-input-area { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--vc-line); align-items: flex-end; flex-shrink: 0; }
.cv-dm-input { flex: 1; resize: none; background: var(--vc-input); border: 1px solid var(--vc-line-2); border-radius: 10px; padding: 8px 10px; color: var(--vc-text); font-size: 13px; font-family: inherit; max-height: 120px; }
.cv-dm-input:focus { outline: none; border-color: var(--vc-blue-40); }
.cv-dm-send { flex-shrink: 0; background: var(--vc-blue); border: none; border-radius: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--vc-on-accent); cursor: pointer; }
.cv-dm-send:hover { background: var(--vc-blue-h); }

/* Mobile crew view overrides kept after crew base rules. */
@media (max-width: 640px) {
  .cv-overlay { border-radius: 0; }
  .cv-sidebar { display: none; }
  .cv-members-panel { display: none; }
  /* 크루 1:1 DM 입력 16px: iOS 포커스 자동줌 차단 (보비 2026-06-02) */
  .cv-dm-input { font-size: 16px; }
}
