/* 시즌 2 — 코딩 에이전트형 1:1 대화 행동 권한 모드 바 & 승인 요청 카드 */

.chat-perm-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  padding: 4px 8px;
  margin-bottom: 0;
  border-radius: 9px;
  background: rgba(20, 24, 38, 0.72);
  border: 1px solid rgba(124, 140, 255, 0.16);
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.chat-perm-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.perm-mode-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 18, 30, 0.72);
  color: var(--text-muted, #94a3b8);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.perm-mode-btn:hover {
  color: var(--text-main, #f1f5f9);
  border-color: rgba(124, 140, 255, 0.42);
}

.perm-mode-btn.active.mode-confirm {
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.65);
}

.perm-mode-btn.active.mode-auto {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.65);
}

.perm-mode-btn.active.mode-chat-only {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
}

.chat-perm-desc {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

.agent-action-card {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24, 29, 48, 0.95), rgba(16, 20, 34, 0.96));
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  max-width: 440px;
}

.agent-action-card.is-executed {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 36, 33, 0.72);
  padding: 8px 11px;
}

.agent-action-card.is-rejected {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(22, 26, 38, 0.58);
  padding: 7px 11px;
  opacity: 0.78;
}

.agent-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.agent-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}

.agent-action-state-tag {
  font-size: 10.5px;
  color: #fbbf24;
  font-weight: 600;
}

.agent-action-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #f1f5f9);
  margin-bottom: 4px;
}

.agent-action-meta {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
}

.agent-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.btn-approve-chat-action {
  appearance: none;
  border: 1px solid rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-approve-chat-action:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.34);
}

.btn-reject-chat-action {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.65);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-reject-chat-action:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
