/* ════════════════════════════════════════════════════════════
   Channel Persona System (UI Mockup v0.1)
   채널 셀렉터 + 페르소나 위저드 모달 + 매니저
   ════════════════════════════════════════════════════════════ */

/* ── 헤더 채널 셀렉터 ── */
.studio-channel-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}
.channel-selector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
  min-width: 200px;
}
.channel-selector-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}
.channel-icon {
  font-size: 22px;
  line-height: 1;
}
.channel-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.channel-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.channel-name {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-chevron {
  color: #888;
  flex-shrink: 0;
}
/* channel-edit-btn: 더 이상 사용 안 함 (드롭다운에 통합됨) */
.channel-edit-btn {
  display: none !important;
}
.channel-chevron-text {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── 드롭다운 (body 직속 + max z-index로 모든 stacking context 탈출) ── */
.channel-dropdown {
  position: fixed;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 2147483000;
  padding: 8px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.channel-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}
.dropdown-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.channel-count {
  font-size: 14px;
  color: #666;
}
.channel-list {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.15s;
  position: relative;
}
.channel-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* 활성 채널 좌측 컬러 바 (작은 점 형태) */
.channel-item-marker {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
}
.channel-item-row.is-active .channel-item-marker {
  background: #2563eb;
}
.channel-item-row.is-active .channel-item {
  background: rgba(37, 99, 235, 0.08);
}
.channel-item-row.is-active .channel-item-name {
  color: #93c5fd;
}
.channel-item-icon {
  font-size: 25px;
}
.channel-item-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.channel-item-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.channel-item-name-row .channel-item-name {
  flex: 1 1 auto;
  min-width: 0;
}
.channel-item-name-row .channel-item-check {
  margin-left: auto;
  flex-shrink: 0;
}
.channel-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.channel-item-desc {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* 채널 활성 라벨 (한 줄, 작고 깔끔하게) */
.channel-item-check {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.channel-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}
.channel-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 15px;
  border-radius: 6px;
  transition: all 0.15s;
}
.channel-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* ── 위저드 모달 오버레이 ── */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cp-modal {
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cp-modal-small {
  max-width: 560px;
}
.cp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cp-header-icon {
  font-size: 34px;
}
.cp-header-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.cp-header-subtitle {
  margin: 2px 0 0;
  font-size: 15px;
  color: #888;
}
.cp-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 30px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.cp-close-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ── 진행도 바 ── */
.cp-progress-wrap {
  padding: 14px 24px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cp-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.cp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  transition: width 0.4s ease;
}
.cp-progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: #888;
}

/* ── 축 진행 바 ── */
.cp-axis-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cp-axis-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 600;
  color: #666;
  transition: all 0.2s;
}
.cp-axis-dot.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
  color: #93c5fd;
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.cp-axis-dot.done {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* ── 본문 ── */
.cp-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}
.cp-step {
  animation: cpFadeIn 0.3s ease;
}
@keyframes cpFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 시작 화면 ── */
.cp-intro-hero {
  text-align: center;
  margin-bottom: 28px;
}
.cp-intro-icon {
  font-size: 59px;
  margin-bottom: 12px;
}
.cp-intro-hero h2 {
  margin: 0 0 8px;
  font-size: 25px;
  color: #fff;
  font-weight: 700;
}
.cp-intro-desc {
  margin: 0;
  color: #aaa;
  font-size: 16px;
  line-height: 1.6;
}
.cp-intro-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.cp-intro-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.cp-intro-card:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}
.cp-card-icon {
  font-size: 39px;
  margin-bottom: 10px;
}
.cp-intro-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
  font-weight: 600;
}
.cp-intro-card p {
  margin: 0;
  font-size: 15px;
  color: #999;
  line-height: 1.5;
}
.cp-recommended-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 4px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.cp-intro-footer {
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 15px;
  text-align: center;
}

/* ── 질문 블록 ── */
.cp-question-block {
  max-width: 580px;
  margin: 0 auto;
}
.cp-axis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 999px;
  font-size: 15px;
  color: #93c5fd;
  margin-bottom: 16px;
  font-weight: 600;
}
.cp-axis-icon {
  font-size: 17px;
}
.cp-question-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}
.cp-question-help {
  margin: 0 0 18px;
  color: #999;
  font-size: 16px;
  line-height: 1.6;
}
.cp-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 17px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border 0.15s;
}
.cp-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cp-textarea-small {
  min-height: 80px;
}
.cp-input {
  width: 100%;
  padding: 12px 16px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 17px;
  font-family: inherit;
}
.cp-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cp-answer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}
.cp-ai-thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
}
.cp-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: cpSpin 0.8s linear infinite;
}
@keyframes cpSpin {
  to {
    transform: rotate(360deg);
  }
}

.cp-followup-block {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
}
.cp-followup-block summary {
  cursor: pointer;
  color: #93c5fd;
  font-size: 16px;
  font-weight: 600;
}
.cp-followup-question {
  margin: 10px 0;
  color: #ccc;
  font-size: 16px;
}

.cp-tip-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 15px;
  line-height: 1.5;
}

/* ── 미리보기 그리드 ── */
.cp-preview-hero {
  text-align: center;
  margin-bottom: 24px;
}
.cp-preview-icon {
  font-size: 59px;
  margin-bottom: 8px;
}
.cp-preview-hero h2 {
  margin: 0 0 4px;
  font-size: 25px;
  color: #fff;
  font-weight: 700;
}
.cp-preview-desc {
  margin: 0;
  color: #aaa;
  font-size: 16px;
}

.cp-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cp-preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  transition: border 0.15s;
}
.cp-preview-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
}
.cp-preview-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cp-preview-card-icon {
  font-size: 20px;
}
.cp-preview-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cp-preview-card-body {
  font-size: 16px;
  color: #ddd;
  line-height: 1.5;
  min-height: 40px;
  outline: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.cp-preview-card-body:focus {
  background: rgba(37, 99, 235, 0.08);
}

/* ── 보이스 추천 ── */
.cp-voice-recommend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
/* 페르소나 보이스 선택 (제작탭 모달 연동) — 선택된 목록 칩 */
.cp-voice-empty {
  padding: 18px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.cp-voice-chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.cp-voice-chosen-badge {
  flex: 0 0 auto;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}
.cp-voice-chosen-badge.primary {
  background: #2563eb;
  color: #fff;
}
.cp-voice-chosen-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-voice-chosen-play {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-voice-chosen-play:hover {
  border-color: #2563eb;
  color: #fff;
}
.cp-voice-chosen-play.playing {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.cp-voice-chosen-remove {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.cp-voice-chosen-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.cp-voice-pick-btn {
  margin-top: 14px;
  width: 100%;
}
.cp-voice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-voice-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.cp-voice-card.selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
}
.cp-voice-card-main {
  flex: 1;
  min-width: 0;
}
.cp-voice-card-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cp-voice-tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.cp-voice-tag.free {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.cp-voice-tag.paid {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.cp-voice-card-desc {
  font-size: 15px;
  color: #999;
  line-height: 1.5;
}
.cp-voice-play-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #60a5fa;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.cp-voice-play-btn:hover {
  background: rgba(37, 99, 235, 0.25);
}

.cp-link-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: #60a5fa;
  cursor: pointer;
  font-size: 16px;
}
.cp-link-btn:hover {
  text-decoration: underline;
}

/* ── 빈 상태 ── */
.cp-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: #888;
}
.cp-empty-icon {
  font-size: 49px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.cp-empty-state p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ── 푸터 액션 ── */
.cp-modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}
.cp-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.cp-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}
.cp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.cp-btn-primary {
  background: #2563eb;
  color: #fff;
}
.cp-btn-primary:hover {
  background: #1d4ed8;
}
.cp-btn-danger {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.cp-btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}
.cp-btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

/* ── 매니저 리스트 ── */
.cp-manager-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}
.cp-manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.cp-manager-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cp-manager-icon {
  font-size: 27px;
}
.cp-manager-info {
  flex: 1;
  min-width: 0;
}
.cp-manager-name {
  font-size: 17px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-manager-desc {
  font-size: 15px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-active-tag {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-radius: 4px;
  font-weight: 700;
}
.cp-manager-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── 채널 리스트 빈 상태 (드롭다운) ── */
.cp-empty-hint {
  padding: 18px 14px;
  text-align: center;
  color: #888;
  font-size: 15px;
  line-height: 1.5;
}

/* ── 위저드 복구 배너 (작성 중이던 거 복구) ── */
.cp-resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
}
.cp-resume-info {
  flex: 1;
  min-width: 0;
}
.cp-resume-title {
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 3px;
}
.cp-resume-desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.4;
}
.cp-resume-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.cp-resume-actions .cp-btn {
  padding: 5px 10px;
  font-size: 14px;
}

/* ── 채널명 입력 블록 (미리보기 단계) ── */
.cp-channel-name-block {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 10px;
}
.cp-name-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 8px;
}
.cp-required {
  color: #f87171;
  font-weight: 700;
}
.cp-name-hint {
  margin-top: 6px;
  font-size: 14px;
  color: #888;
}

/* ── 인트로 카드 그리드 ── */
.cp-intro-options-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.cp-intro-options-4 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .cp-intro-options-3,
  .cp-intro-options-4 {
    grid-template-columns: 1fr;
  }
}

/* ── 채널 행 인라인 액션 (편집/삭제) ── */
.channel-item-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 2px;
  min-width: 0;
  width: 100%;
}
.channel-item-row .channel-item {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}
.channel-item-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 0 4px;
}
.channel-item-action-btn {
  padding: 6px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.12s;
}
.channel-item-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.channel-item-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.channel-item-action-divider {
  color: #444;
  font-size: 12px;
  user-select: none;
}

/* ── "새 채널 만들기" + 기호 우측 정렬 ── */
.channel-action-add {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
}
.cp-action-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #60a5fa;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.channel-action-add:hover .cp-action-plus {
  background: rgba(37, 99, 235, 0.3);
  color: #fff;
}

/* ── Persona Buttons Wizard (PBW) 기본 스타일 ── */
.pbw-question {
  padding: 4px 0;
}
.pbw-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pbw-title {
  margin: 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.pbw-hint {
  font-size: 15px;
  color: #888;
}
.pbw-slot {
  margin-bottom: 18px;
}
.pbw-slot-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #93c5fd;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pbw-slot-count {
  font-size: 14px;
  color: #888;
  font-weight: 500;
}
.pbw-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.pbw-option {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ccc;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
}
.pbw-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.pbw-option.is-selected {
  background: rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}
.pbw-option.is-dimmed {
  opacity: 0.4;
  cursor: not-allowed;
}
.pbw-selected-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  margin-bottom: 10px;
}
.pbw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 14px;
  cursor: pointer;
}
.pbw-chip-x {
  font-size: 17px;
  color: #93c5fd;
}
.pbw-freetext-wrap {
  margin-top: 14px;
}
.pbw-freetext-label {
  display: block;
  font-size: 15px;
  color: #aaa;
  margin-bottom: 5px;
}
.pbw-freetext {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
}
.pbw-warning {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  color: #fbbf24;
  font-size: 15px;
}
.pbw-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 영상 업로드 zone ── */
.cp-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.cp-upload-zone:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.4);
}
.cp-upload-zone.has-file {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.4);
  border-style: solid;
}
.cp-upload-icon {
  font-size: 39px;
  color: #888;
  margin-bottom: 10px;
}
.cp-upload-zone.has-file .cp-upload-icon {
  color: #4ade80;
}
.cp-upload-text {
  font-size: 17px;
  color: #ccc;
  margin-bottom: 4px;
}
.cp-upload-hint {
  font-size: 15px;
  color: #666;
}

/* ── AI 분석 진행 화면 ── */
.cp-analyzing-hero {
  text-align: center;
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}
.cp-spinner-large {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(96, 165, 250, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: cpSpin 0.9s linear infinite;
  margin: 0 auto 20px;
}
.cp-analyzing-hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}
.cp-analyzing-desc {
  margin: 0 0 28px;
  color: #aaa;
  font-size: 16px;
}

.cp-analyze-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.cp-analyze-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.2s;
}
.cp-as-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
}
.cp-as-label {
  font-size: 16px;
  color: #888;
}
.cp-analyze-step.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}
.cp-analyze-step.active .cp-as-marker {
  background: rgba(37, 99, 235, 0.3);
  border-color: #2563eb;
}
.cp-analyze-step.active .cp-as-marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #60a5fa;
  animation: cpPulse 1.2s ease-in-out infinite;
}
.cp-analyze-step.active .cp-as-label {
  color: #93c5fd;
  font-weight: 600;
}
.cp-analyze-step.done {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}
.cp-analyze-step.done .cp-as-marker {
  background: #4ade80;
  border-color: #22c55e;
}
.cp-analyze-step.done .cp-as-marker::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #052e16;
  font-weight: 800;
}
.cp-analyze-step.done .cp-as-label {
  color: #4ade80;
}
.cp-analyze-step.skipped .cp-as-label {
  color: #666;
  font-style: italic;
}
.cp-analyze-step.skipped .cp-as-marker {
  background: transparent;
  border-style: dashed;
}
.cp-analyze-step.error {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.3);
}
.cp-analyze-step.error .cp-as-marker {
  background: #f87171;
}
.cp-analyze-step.error .cp-as-label {
  color: #f87171;
}
@keyframes cpPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}
