/* ===============================================
   call.css v3.6 - AI Call 서비스 전용 스타일
   getstyle.css 기반 위에 AI Call 오버라이드
   =============================================== */

/* ===== 모바일 가로 오버플로 방지 (핵심) ===== */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ===== AI Call 페이지 — 섹션 가로 중앙 정렬 (좌우 여백 균등) ===== */
:root {
    --call-layout-max: 1100px;
}
.avatar-container {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding-left: var(--spacing-sm, 0.75rem);
    padding-right: var(--spacing-sm, 0.75rem);
    box-sizing: border-box;
}
.avatar-container > .avatar-header,
.avatar-container > .call-tab-nav,
.avatar-container > .call-tab-content {
    width: 100%;
    max-width: var(--call-layout-max);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.call-tab-content {
    padding-left: 0;
    padding-right: 0;
}
.call-tab-content .avatar-display-section,
.call-tab-content .call-setup-section,
.call-tab-content .call-history-gallery {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.call-tab-content .hedra-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.call-setup-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.call-history-gallery {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.call-history-gallery .gallery-header,
.call-history-grid {
    max-width: 100%;
}

/* ===== 상단-하단 간격 축소 ===== */
.avatar-display-section {
    margin-bottom: 0.5rem !important;
}
.hedra-container {
    gap: 0.75rem !important;
    padding: 1rem 2rem !important;
}

/* Inbound 상단 상태 카드는 하단 설정 그리드(허용 전화번호 + AI 응답 설정)와 동일 폭 */
#tabInbound > .avatar-display-section .hedra-container {
    max-width: 1100px !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ===== 연락처 & AI 설정 바로 보이기 ===== */
.call-setup-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== 상단 컨트롤 AI Call 오버라이드 ===== */
.top-controls-wrapper .style-dropdown-top {
    font-size: 0.8rem;
}
.top-controls-wrapper {
    margin-bottom: 0 !important;
}

/* AI Call 4개 컨트롤 너비 재배분 — 데스크톱 전용 (모바일에선 세로 스택) */
@media (min-width: 901px) {
    .top-left-control {
        flex: 1 1 auto !important; /* 통화 유형 — 음성은 AI 설정 패널로 이동 후 남은 폭 활용 */
        min-width: 0;
    }
    .top-right-control {
        flex: 0 0 200px !important; /* START CALL 버튼 */
    }
}

/* 음성 미리듣기 버튼 — 드롭다운과 동일한 pill-shape 글래스모피즘 */
.btn-voice-preview {
    height: 44px;
    padding: 0 1.1rem;
    min-width: 44px;
    border-radius: 22px;
    border: solid 1px rgba(183, 78, 145, 0.25);
    background: rgba(49, 36, 80, 0.35);
    backdrop-filter: blur(25px);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.btn-voice-preview:hover {
    background: rgba(94, 66, 166, 0.45);
    border-color: var(--accent-pink, #b74e91);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(183, 78, 145, 0.3);
}
.btn-voice-preview:active {
    transform: translateY(0);
}
.btn-voice-preview.playing {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.18) 0%, rgba(183, 78, 145, 0.22) 100%);
    border-color: rgba(244, 67, 54, 0.45);
    color: #ff6b6b;
    animation: voicePulse 1.5s ease-in-out infinite;
}
.btn-voice-preview.playing i {
    animation: none; /* 아이콘은 별도 애니메이션 없이 색상만 */
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.25); }
    50% { box-shadow: 0 4px 18px rgba(244, 67, 54, 0.2), 0 0 0 6px rgba(244, 67, 54, 0); }
}

/* ===== LLM 모델 비용/속도 뱃지 ===== */
.config-model-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.call-model-info {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    align-items: center;
}

.model-cost-badge,
.model-speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.62rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    line-height: 1;
}
.model-cost-badge .badge-dot,
.model-speed-badge .badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.model-cost-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #f0c040;
}
.model-cost-badge .badge-dot { background: #f0c040; }

.model-speed-badge {
    background: rgba(0, 230, 118, 0.1);
    color: #50e890;
}
.model-speed-badge .badge-dot { background: #50e890; }

/* ===== AI Call 대시보드 (통화 진행/결과 표시) ===== */
.call-dashboard-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1654 40%, #1a0a2e 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(162, 89, 255, 0.15);
    overflow: hidden;
    min-height: 200px;
}

.call-state { padding: 2rem; }

/* --- 유휴 상태: AI 오브 비주얼 --- */
.call-idle-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem 1.5rem;
}

.ai-orb-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* AI 오브 애니메이션 */
.ai-orb {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.ai-orb-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(162, 89, 255, 0.2);
    transform: translate(-50%, -50%);
}

.ai-orb-ring.ring-1 {
    width: 140px; height: 140px;
    animation: orbRingSpin 8s linear infinite;
    border-color: rgba(162, 89, 255, 0.15);
    border-top-color: rgba(162, 89, 255, 0.5);
}
.ai-orb-ring.ring-2 {
    width: 115px; height: 115px;
    animation: orbRingSpin 6s linear infinite reverse;
    border-color: rgba(106, 90, 249, 0.1);
    border-right-color: rgba(106, 90, 249, 0.4);
}
.ai-orb-ring.ring-3 {
    width: 90px; height: 90px;
    animation: orbRingSpin 4s linear infinite;
    border-color: rgba(183, 78, 145, 0.1);
    border-bottom-color: rgba(183, 78, 145, 0.4);
}

@keyframes orbRingSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.ai-orb-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #a259ff, #6a5af9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    box-shadow: 0 0 40px rgba(162, 89, 255, 0.4), 0 0 80px rgba(162, 89, 255, 0.15);
    animation: orbCorePulse 3s ease-in-out infinite;
}

@keyframes orbCorePulse {
    0%, 100% { box-shadow: 0 0 40px rgba(162, 89, 255, 0.4), 0 0 80px rgba(162, 89, 255, 0.15); }
    50% { box-shadow: 0 0 60px rgba(162, 89, 255, 0.6), 0 0 120px rgba(162, 89, 255, 0.25); }
}

.ai-orb-label {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.4rem;
}
.ai-orb-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1rem;
}
.ai-orb-badges {
    display: flex; gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.orb-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: rgba(162, 89, 255, 0.12);
    border: 1px solid rgba(162, 89, 255, 0.25);
    color: rgba(212, 184, 255, 0.85);
    padding: 3px 10px; border-radius: 12px;
    font-size: 0.65rem; font-weight: 500; letter-spacing: 0.3px;
}

/* --- 통화 유형 카드 --- */
.call-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 0 0.5rem;
}
.call-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(162, 89, 255, 0.12);
    border-radius: 14px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.call-type-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a259ff, #6a5af9);
    opacity: 0; transition: opacity 0.3s ease;
}
.call-type-card:hover,
.call-type-card.active {
    border-color: rgba(162, 89, 255, 0.45);
    background: rgba(42, 20, 72, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(162, 89, 255, 0.12);
}
.call-type-card:hover::before,
.call-type-card.active::before { opacity: 1; }
.call-type-icon {
    width: 48px; height: 48px;
    margin: 0 auto 0.6rem;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.15), rgba(106, 90, 249, 0.15));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}
.call-type-card:hover .call-type-icon,
.call-type-card.active .call-type-icon {
    background: linear-gradient(135deg, #a259ff, #6a5af9);
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.35);
}
.call-type-card h4 {
    font-size: 0.85rem; margin: 0 0 0.3rem;
    color: #fff; font-weight: 500;
}
.call-type-card p {
    font-size: 0.7rem; color: rgba(255, 255, 255, 0.5);
    margin: 0; line-height: 1.4;
}

/* --- 통화 진행 상태 --- */
.call-active-state { padding: 2rem; }

.active-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(162, 89, 255, 0.15);
}
.active-header h3 {
    margin: 0; font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.calling-indicator {
    display: flex; gap: 4px; align-items: center;
}
.calling-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a259ff;
    animation: callingPulse 1.4s ease-in-out infinite;
}
.calling-dot:nth-child(2) { animation-delay: 0.2s; }
.calling-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes callingPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* 진행 아이템 */
.progress-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px; margin-bottom: 0.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.progress-item.calling { border-left-color: #ffc107; background: rgba(255, 193, 7, 0.04); }
.progress-item.completed { border-left-color: #4caf50; background: rgba(76, 175, 80, 0.04); }
.progress-item.failed { border-left-color: #ff5050; background: rgba(255, 80, 80, 0.04); }

.progress-item .status-icon {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}
.progress-item.calling .status-icon {
    background: rgba(255, 193, 7, 0.15); color: #ffc107;
    animation: statusPulse 1.5s ease-in-out infinite;
}
.progress-item.completed .status-icon { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.progress-item.failed .status-icon { background: rgba(255, 80, 80, 0.15); color: #ff5050; }

@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.progress-info { flex: 1; }
.progress-name { font-size: 0.85rem; color: #fff; }
.progress-status { font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); }
.progress-duration { font-size: 0.75rem; color: rgba(255, 255, 255, 0.35); flex-shrink: 0; }

/* --- 결과 상태 --- */
.call-results-state { padding: 2rem; }

.results-header-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(162, 89, 255, 0.15);
}
.results-header-bar h3 {
    margin: 0; font-size: 1.1rem; color: #fff; font-weight: 400;
    display: flex; align-items: center; gap: 0.5rem;
}
.results-header-bar h3 i { color: #4caf50; }

.btn-new-call {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 6px 14px;
    background: rgba(162, 89, 255, 0.15);
    border: 1px solid rgba(162, 89, 255, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem; cursor: pointer;
    transition: all 0.3s ease;
}
.btn-new-call:hover {
    background: rgba(162, 89, 255, 0.25);
    color: #fff;
}

/* 결과 요약 */
.results-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}
.summary-stat {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px; padding: 0.8rem; text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.summary-stat .stat-value { font-size: 1.5rem; font-weight: 700; color: #a259ff; line-height: 1; }
.summary-stat .stat-label { font-size: 0.65rem; color: rgba(255, 255, 255, 0.4); margin-top: 0.2rem; }
.summary-stat.success .stat-value { color: #4caf50; }
.summary-stat.failed .stat-value { color: #ff5050; }

/* 결과 카드 */
.result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(162, 89, 255, 0.1);
    border-radius: 12px; padding: 1rem;
    margin-bottom: 0.75rem; transition: all 0.3s ease;
}
.result-card:hover { border-color: rgba(162, 89, 255, 0.25); }
.result-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.5rem;
}
.result-contact { display: flex; align-items: center; gap: 0.6rem; }
.result-badge {
    padding: 2px 8px; border-radius: 10px;
    font-size: 0.65rem; font-weight: 600;
}
.result-badge.success { background: rgba(76, 175, 80, 0.12); color: #4caf50; }
.result-badge.failed { background: rgba(255, 80, 80, 0.12); color: #ff5050; }
.result-summary-text {
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.7);
    line-height: 1.6; padding: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px; margin-bottom: 0.5rem;
    border-left: 2px solid rgba(162, 89, 255, 0.25);
}
.result-meta {
    display: flex; gap: 1rem;
    font-size: 0.7rem; color: rgba(255, 255, 255, 0.35);
}
.result-meta span { display: flex; align-items: center; gap: 0.2rem; }

/* ===== 연락처 & AI 설정 섹션 ===== */
.call-setup-section {
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.setup-container {
    max-width: var(--call-layout-max, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.setup-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.setup-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.setup-panel-header.sub {
    margin-top: 1rem;
    border-bottom-color: rgba(162, 89, 255, 0.1);
}
.setup-panel-header h3 {
    margin: 0; font-size: 1rem; color: #fff; font-weight: 400;
    display: flex; align-items: center; gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.setup-panel-header h3 i {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

/* ===== Outbound / Inbound 2열 레이아웃 (데스크톱: 좌 | AI+WebCall 동일 높이) ===== */
.outbound-main-section,
.inbound-main-section {
    margin-top: 0;
}
.outbound-setup-container,
.inbound-setup-container {
    align-items: stretch;
}
.outbound-right-column,
.inbound-right-column {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}
.outbound-webcall-desc {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.48);
}
.outbound-webcall-desc i {
    color: #7c5cff;
    margin-right: 0.25rem;
}
.outbound-webcall-header {
    margin-bottom: 0.45rem;
    padding-bottom: 0.45rem;
}

/* Outbound Web Call — 라벨 동일선 | 좌: 링크+공유(=QR높이) | 우: QR */
.outbound-wc-compact {
    margin-top: 0.15rem;
}
.outbound-wc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 0.4rem;
    row-gap: 0.38rem;
    align-items: start;
}
.outbound-wc-field-label {
    display: block;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}
.outbound-wc-link-label {
    grid-column: 1;
    grid-row: 1;
}
.outbound-wc-qr-label {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
    padding-right: 0.15rem;
}
.outbound-wc-left-stack,
.outbound-wc-main-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.32rem;
    min-width: 0;
    min-height: 108px;
    height: 108px;
    box-sizing: border-box;
}
.outbound-wc-link-controls {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
    flex: 0 0 auto;
}
.outbound-wc-link-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    font-size: 0.75rem;
}
.outbound-wc-link-controls .wc-copy-btn-compact {
    flex: 0 0 auto;
    height: 42px;
    min-height: 42px;
    padding: 0 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
}
.wc-copy-btn-compact .wc-copy-text {
    margin-left: 0.25rem;
}

/* AI Call 주요 액션: 등록 + 설정 저장 — 동일 높이·스타일 */
.btn-add-contact-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    min-width: 5.5rem;
    min-height: 2.6rem;
    padding: 0.7rem 1rem !important;
    background: linear-gradient(135deg, #a259ff, #6a5af9) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: auto !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-sizing: border-box;
}
.btn-add-contact-primary::after {
    display: none !important;
    content: none !important;
}
.btn-add-contact-primary:hover {
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.4);
}

/* Outbound / Inbound 설정 저장 — 등록 버튼과 동일 (레이아웃만 추가) */
.outbound-ai-panel .btn-save-outbound-action,
.inbound-ai-panel .btn-save-outbound-action {
    width: 100%;
    margin-top: 0.65rem;
}
.outbound-ai-panel .btn-save-outbound-action:disabled,
.inbound-ai-panel .btn-save-outbound-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.outbound-ai-panel .btn-save-outbound-action.saved,
.inbound-ai-panel .btn-save-outbound-action.saved {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}
.outbound-wc-share-block {
    flex: 0 0 auto;
    text-align: left;
    margin: 0;
}
.outbound-wc-share-label {
    display: block;
    margin: 0 0 0.28rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}
.outbound-wc-share-icons {
    justify-content: flex-start;
    gap: 0.45rem;
}
.outbound-wc-share-icons .wc-share-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.05rem;
}
.outbound-wc-qr-cell {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 108px;
}
.outbound-wc-qr-box {
    width: 108px;
    height: 108px;
    min-width: 108px;
    min-height: 108px;
    padding: 0.4rem;
    box-sizing: border-box;
}
.outbound-wc-qr-box .wc-qr-placeholder {
    min-height: 92px;
}
.outbound-wc-qr-box .wc-qr-placeholder span {
    font-size: 0.62rem;
}
.outbound-wc-qr-save {
    width: 108px;
    margin-top: 0.35rem;
}

@media (min-width: 901px) {
    .outbound-contacts-panel,
    .inbound-allow-panel {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .outbound-contacts-panel .contacts-list,
    .inbound-allow-panel .contacts-list {
        flex: 1 1 auto;
        max-height: none;
        min-height: 120px;
    }
    .outbound-ai-panel,
    .inbound-ai-panel {
        flex: 0 0 auto;
        padding: 1.15rem 1.25rem 0.75rem;
    }
    .outbound-ai-panel .setup-panel-header,
    .inbound-ai-panel .setup-panel-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }
    .outbound-ai-panel .config-field,
    .inbound-ai-panel .config-field {
        margin-bottom: 0.4rem;
    }
    .outbound-ai-panel #aiPrompt {
        min-height: 4.5rem;
        resize: vertical;
    }
    .inbound-ai-panel #inboundPrompt {
        min-height: 4.5rem;
        resize: vertical;
    }
    .outbound-ai-panel .btn-save-outbound-action,
    .inbound-ai-panel .btn-save-outbound-action {
        margin-top: 0.55rem;
    }
    .outbound-webcall-panel,
    .inbound-webcall-panel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        margin-top: auto;
        padding: 0.95rem 1.25rem 1rem;
        border-color: rgba(124, 92, 255, 0.22);
        background: rgba(124, 92, 255, 0.04);
    }
}

@media (max-width: 900px) {
    .outbound-right-column,
    .inbound-right-column {
        gap: 1rem;
    }
    .outbound-webcall-panel,
    .inbound-webcall-panel {
        margin-top: 0.25rem;
        padding: 0.85rem 0.75rem;
    }
    .outbound-webcall-desc {
        font-size: 0.78rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }
    .outbound-setup-container,
    .inbound-setup-container {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }
    .outbound-contacts-panel .contacts-list,
    .inbound-allow-panel .contacts-list {
        max-height: 200px;
    }
    /* 모바일: 링크 → QR → 공유 순 (display:contents로 자식 reorder) */
    .outbound-wc-grid {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }
    .outbound-wc-link-label { order: 1; }
    .outbound-wc-main-left {
        display: contents;
    }
    .outbound-wc-link-controls {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.35rem;
        align-items: stretch;
    }
    .outbound-wc-qr-label {
        order: 3;
        text-align: left;
        padding-right: 0;
        margin-top: 0.25rem;
    }
    .outbound-wc-qr-cell {
        order: 4;
        align-items: center;
        height: auto;
        width: 100%;
    }
    .outbound-wc-share-block {
        order: 5;
    }
    .outbound-wc-main-left,
    .outbound-wc-left-stack {
        height: auto;
        min-height: 0;
    }
    .outbound-wc-link-input {
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        font-size: 0.8rem;
    }
    .outbound-wc-link-controls .wc-copy-btn-compact {
        width: auto;
        min-width: 44px !important;
        max-width: none;
        height: 44px;
        min-height: 44px;
        padding: 0 0.55rem !important;
        flex-shrink: 0;
    }
    .wc-copy-btn-compact .wc-copy-text {
        display: none;
    }
    .outbound-wc-share-icons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .outbound-wc-share-icons .wc-share-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .outbound-wc-qr-box {
        width: 148px;
        height: 148px;
        min-width: 148px;
        min-height: 148px;
    }
    .btn-add-contact-primary {
        width: 100%;
        min-width: 0;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .outbound-webcall-panel {
        padding: 0.75rem 0.65rem;
    }
    .outbound-wc-link-controls {
        flex-direction: row;
        gap: 0.35rem;
    }
    .outbound-wc-link-input {
        font-size: 0.75rem;
        padding: 0 0.65rem;
    }
    .outbound-wc-qr-box {
        width: 132px;
        height: 132px;
        min-width: 132px;
        min-height: 132px;
    }
    .add-contact-form-primary {
        padding: 0.85rem 0.75rem;
    }
    .contacts-addressbook-actions .panel-action-btn.google {
        font-size: 0.72rem;
    }
}

.panel-actions {
    display: flex; gap: 0.5rem;
}
.panel-action-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 5px 12px; border-radius: 8px;
    border: 1px solid rgba(162, 89, 255, 0.25);
    background: rgba(162, 89, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem; cursor: pointer;
    transition: all 0.3s ease;
}
.panel-action-btn:hover {
    background: rgba(162, 89, 255, 0.2);
    color: #fff;
}
.panel-action-btn.google {
    border-color: rgba(66, 133, 244, 0.3);
    background: rgba(66, 133, 244, 0.08);
}
.panel-action-btn.google:hover {
    background: rgba(66, 133, 244, 0.2);
}

/* 연락처 검색 */
.contacts-search-bar {
    position: relative;
    margin-bottom: 0.75rem;
}
.contacts-search-bar i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}
.contacts-search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 10px;
    padding: 0.65rem 0.8rem 0.65rem 2.2rem;
    color: #fff; font-size: 0.85rem; outline: none;
    transition: border-color 0.3s ease;
}
.contacts-search-bar input:focus {
    border-color: rgba(162, 89, 255, 0.5);
}
.contacts-search-bar input::placeholder { color: rgba(255, 255, 255, 0.3); }

/* 연락처 리스트 */
.contacts-list {
    max-height: 220px; overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.contacts-list::-webkit-scrollbar { width: 5px; }
.contacts-list::-webkit-scrollbar-track { background: transparent; }
.contacts-list::-webkit-scrollbar-thumb { background: rgba(162, 89, 255, 0.25); border-radius: 3px; }

.contact-item {
    display: flex; align-items: center;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s ease;
}
.contact-item:hover { background: rgba(162, 89, 255, 0.05); }
.contact-item.selected {
    background: rgba(162, 89, 255, 0.1);
    border-left: 3px solid #a259ff;
}
.contact-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #a259ff, #6a5af9);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #fff; font-weight: 600;
    margin-right: 0.6rem; flex-shrink: 0;
}
.contact-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; }
.contact-name {
    font-size: 0.8rem; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 0;
}
.contact-number {
    font-size: 0.7rem; color: rgba(255, 255, 255, 0.4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-delete-btn {
    background: none; border: none; color: rgba(255,255,255,0.25);
    cursor: pointer; padding: 2px 6px; font-size: 0.7rem;
    border-radius: 50%; transition: all 0.2s ease; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
}
.contact-delete-btn:hover {
    color: #ff5252; background: rgba(255,82,82,0.15);
}
.contact-check {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s ease;
}
.contact-item.selected .contact-check { background: #a259ff; border-color: #a259ff; }
.contact-item.selected .contact-check::after { content: '\2713'; color: #fff; font-size: 0.6rem; font-weight: bold; }

.contacts-empty {
    text-align: center; padding: 1.5rem;
    color: rgba(255, 255, 255, 0.35); font-size: 0.8rem;
}
.contacts-empty i {
    display: block; font-size: 1.8rem; margin-bottom: 0.4rem;
    color: rgba(162, 89, 255, 0.25);
}

/* 수동 추가 — 항상 표시, 단일 「등록」 플로우 */
.add-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-top: 0.55rem;
    border: 1px dashed rgba(162, 89, 255, 0.15);
}
.add-contact-form.visible,
.add-contact-form.add-contact-form-always {
    display: flex;
}
.add-contact-form-intro {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.add-contact-form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.add-contact-form-label i {
    margin-right: 0.35rem;
    color: rgba(162, 89, 255, 0.85);
    font-size: 0.72rem;
}
.add-contact-form-hint {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.35;
}
.add-contact-form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: stretch;
}
.add-contact-form-row input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
}
.add-contact-form input::placeholder { color: rgba(255, 255, 255, 0.25); }
/* Outbound / Inbound 직접 입력: 플레이스홀더 크기 통일 */
.outbound-contact-manual .add-contact-form-row input,
.inbound-contact-manual .add-contact-form-row input {
    font-size: 0.8rem;
}
.outbound-contact-manual .add-contact-form-row input::placeholder,
.inbound-contact-manual .add-contact-form-row input::placeholder {
    font-size: 0.75rem;
    opacity: 1;
}
.add-contact-form .btn-add:not(.btn-add-contact-primary) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem !important;
    background: linear-gradient(135deg, #a259ff, #6a5af9) !important;
    border: none !important;
    border-radius: 8px;
    color: #fff !important;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
.add-contact-form .btn-add:not(.btn-add-contact-primary)::after {
    display: none !important;
    content: none !important;
}
.add-contact-form .btn-add:not(.btn-add-contact-primary):hover {
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.4);
}

/* Outbound: 직접 입력 우선 (1~2명 빠른 등록) */
.add-contact-form-primary {
    margin-top: 0;
    padding: 1rem 1rem 0.95rem;
    background: linear-gradient(145deg, rgba(162, 89, 255, 0.12), rgba(106, 90, 249, 0.06));
    border: 1px solid rgba(162, 89, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.add-contact-form-primary .add-contact-form-label {
    font-size: 0.88rem;
}
.add-contact-form-primary .add-contact-form-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.48);
}
/* 직접 입력: Outbound / Inbound 동일 — 이름 → 전화 → 이메일 → 등록 (세로 스택) */
.add-contact-form-primary .outbound-contact-form-stack {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.45rem;
}
.add-contact-form-primary .outbound-contact-form-stack input {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}
.add-contact-form-primary .outbound-contact-form-stack .btn-add-contact-primary {
    width: 100%;
    min-width: 0;
    justify-content: center;
    margin-top: 0.1rem;
}

.contacts-footer-top {
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
    padding-top: 0;
    border-top: none;
}
.contacts-addressbook-row {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.015);
}
.contacts-addressbook-hint {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
}
.contacts-addressbook-actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}
.contacts-addressbook-actions .panel-action-btn.google {
    flex: 1;
    justify-content: center;
}

.contacts-footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.selected-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex; align-items: center; gap: 0.3rem;
}
.selected-badge i { color: #a259ff; }
.selected-badge strong { color: #a259ff; font-size: 0.95rem; }

/* ===== AI 설정 ===== */
.config-row { display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.config-field { flex: 1; margin-bottom: 0.5rem; }
.config-field label {
    display: block; font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem; font-weight: 400;
}
.config-field select,
.config-field input,
.config-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    color: #fff; font-size: 0.85rem; outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

/* AI 설정 패널: 음성 선택 + 미리듣기 한 줄 */
.config-voice-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.config-voice-row select {
    flex: 1;
    min-width: 0;
    width: auto !important;
}
.config-voice-row .btn-voice-preview {
    height: auto;
    min-height: 44px;
    align-self: stretch;
    border-radius: 8px;
}
.config-field select:focus,
.config-field input:focus,
.config-field textarea:focus { border-color: rgba(162, 89, 255, 0.5); }
.config-field select option { background: #1a0a2e; color: #fff; }
.config-field textarea { resize: vertical; min-height: 65px; }

/* ===== 설문 편집기 ===== */
.survey-editor { display: none; margin-top: 0.75rem; }
.survey-editor.visible { display: block; }
.survey-question-item {
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.survey-question-item input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 89, 255, 0.12);
    border-radius: 8px; padding: 0.5rem 0.7rem;
    color: #fff; font-size: 0.8rem; outline: none;
}
.survey-question-item input::placeholder { color: rgba(255, 255, 255, 0.25); }
.q-num { color: #a259ff; font-weight: 700; font-size: 0.8rem; min-width: 26px; }
.btn-remove-q {
    width: 26px; height: 26px; border-radius: 50%;
    border: none; background: rgba(255, 80, 80, 0.1);
    color: #ff5050; cursor: pointer; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.btn-remove-q:hover { background: rgba(255, 80, 80, 0.25); }
.btn-add-question {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.8rem; background: transparent;
    border: 1px dashed rgba(162, 89, 255, 0.25);
    border-radius: 8px; color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem; cursor: pointer;
    transition: all 0.2s ease; margin-top: 0.3rem;
}
.btn-add-question:hover { border-color: rgba(162, 89, 255, 0.5); color: #a259ff; }

/* ===== 소셜 공유 (전송 상태) ===== */
.share-icon-circle.share-email {
    background: linear-gradient(135deg, #a259ff, #6a5af9);
}
.send-status {
    margin-top: 0.5rem;
    font-size: 0.75rem; color: #4caf50;
    display: none;
    align-items: center; gap: 0.3rem;
    justify-content: center;
}
.send-status.visible { display: flex; }

/* ===== 통화 기록 (갤러리 카드 패턴) ===== */
.call-history-gallery {
    width: 100%;
    padding: 0 var(--spacing-sm);
    margin-top: 1.5rem;
}
.call-history-gallery .gallery-header {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 1.2rem;
}
.call-history-grid {
    max-width: 1200px;
    margin: 0 auto;
}
.call-history-grid .contacts-empty {
    grid-column: 1 / -1;
}

/* 히스토리 카드 */
.history-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
}
.history-card:hover {
    border-color: rgba(162, 89, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(162, 89, 255, 0.15);
}

/* 카드 상단: 수신인 + 요약 영역 */
.hcard-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0.8rem 0.5rem;
    position: relative;
    overflow: hidden;
    gap: 0.4rem;
}
.hcard-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.06;
}
.hcard-visual.appointment::before { background: linear-gradient(135deg, #2196F3, #1565C0); opacity: 0.1; }
.hcard-visual.survey::before { background: linear-gradient(135deg, #FF9800, #E65100); opacity: 0.1; }
.hcard-visual.wellness::before { background: linear-gradient(135deg, #4CAF50, #1B5E20); opacity: 0.1; }

/* 수신인 헤더 */
.hcard-recipient {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.hcard-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: #fff; font-weight: 600;
    flex-shrink: 0;
}
.hcard-avatar.appointment { background: linear-gradient(135deg, #2196F3, #1565C0); }
.hcard-avatar.survey { background: linear-gradient(135deg, #FF9800, #E65100); }
.hcard-avatar.wellness { background: linear-gradient(135deg, #4CAF50, #1B5E20); }

.hcard-recipient-info {
    flex: 1; min-width: 0;
}
/* 플랫폼 뱃지 (히스토리 카드) */
.hcard-platform {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
}
.hcard-platform.claw {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
}
.hcard-platform.vapi {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}
/* 과거 기록 라인 플랫폼 아이콘 */
.hline-plat {
    font-size: 0.7rem;
    flex-shrink: 0;
    margin: 0 0.1rem;
}
.hcard-name {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hcard-phone {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 요약 텍스트 */
.hcard-summary {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    position: relative;
}

/* 통화시간 태그 */
.hcard-duration {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex; align-items: center; gap: 0.2rem;
    position: relative;
}

/* 카드 하단 정보 */
.hcard-footer {
    padding: 0.6rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
}
.hcard-type {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hcard-date {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}
.hcard-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hcard-badge.success { background: rgba(76, 175, 80, 0.12); color: #4caf50; }
.hcard-badge.partial { background: rgba(255, 193, 7, 0.12); color: #ffc107; }
.hcard-badge.failed { background: rgba(255, 80, 80, 0.12); color: #ff5050; }

/* ===== 과거 히스토리 라인 (1줄 압축) ===== */
.history-past-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}
.history-past-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding: 0.6rem 0.5rem 0.4rem;
    display: flex; align-items: center; gap: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.2rem;
}
.history-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 42px;
}
.history-line:hover {
    background: rgba(162, 89, 255, 0.08);
}
.hline-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: #fff; font-weight: 600;
    flex-shrink: 0;
}
.hline-avatar.appointment { background: linear-gradient(135deg, #2196F3, #1565C0); }
.hline-avatar.survey { background: linear-gradient(135deg, #FF9800, #E65100); }
.hline-avatar.wellness { background: linear-gradient(135deg, #4CAF50, #1B5E20); }
.hline-name {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    white-space: nowrap;
    min-width: 70px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hline-type {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}
.hline-dur {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}
.hline-summary {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.4rem;
    line-height: 1.4;
}
.hline-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    margin-left: auto;
}
.hline-status {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex; align-items: center; gap: 0.25rem;
}

/* ===== Google Contacts CI 로고 버튼 ===== */
.panel-action-btn.google .google-contacts-logo {
    width: 16px; height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* ===== 추가 버튼 세련된 아이콘 ===== */
.panel-action-btn .btn-add-icon {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ===== 토스트 알림 ===== */
.call-toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: rgba(26, 10, 46, 0.95);
    border: 1px solid rgba(162, 89, 255, 0.3);
    border-radius: 14px; padding: 0.8rem 1.2rem;
    display: flex; align-items: center; gap: 0.6rem;
    color: #fff; font-size: 0.85rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transform: translateY(120%); opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.call-toast.show { transform: translateY(0); opacity: 1; }
.call-toast i { font-size: 1rem; color: #4caf50; }

/* ===== Call Detail Modal ===== */
.call-detail-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.call-detail-overlay.active { display: flex; }

.call-detail-modal {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1654 100%);
    border: 1px solid rgba(162, 89, 255, 0.25);
    border-radius: 16px;
    width: 100%; max-width: 680px; max-height: 85vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* wv-bar — 레거시 (사용하지 않음) */
.wv-bar { display: none; }

/* 섹션 블록 (Recording / Transcripts / Info) */
.cdm-section-block {
    margin-bottom: 1rem;
}
.cdm-section-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cdm-section-title i {
    font-size: 0.75rem;
}
.cdm-section-title i.fa-headphones { color: #00bcd4; }
.cdm-section-title i.fa-comments { color: #ff9800; }
.cdm-section-title i.fa-info-circle { color: #a259ff; }
.cdm-section-title.cdm-toggle {
    cursor: pointer;
    justify-content: space-between;
    transition: color 0.2s ease;
}
.cdm-section-title.cdm-toggle:hover { color: rgba(255, 255, 255, 0.75); }
.cdm-toggle-icon {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

/* Recording 영역 */
.cdm-recording-area {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 파형 캔버스 컨테이너 — Vapi 대시보드 스타일 (듀얼 레이어) */
.cdm-rec-waveform {
    position: relative;
    height: 120px;
    margin-bottom: 0.3rem;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    background: #0d0d0d;
}
/* 어두운 배경 캔버스 (미재생 부분) */
.cdm-rec-waveform canvas.wv-dim {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
/* 밝은 캔버스 (재생된 부분) — clip으로 잘라서 표시 */
.cdm-rec-waveform canvas.wv-bright {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    clip-path: inset(0 100% 0 0);
}
/* 플레이헤드 (세로 커서) */
.cdm-wv-playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: left 0.06s linear;
    z-index: 3;
    display: none;
}
.cdm-wv-playhead.active { display: block; }
/* 시간 눈금 */
.cdm-wv-timeline {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-bottom: 0.5rem;
}
.cdm-wv-tick {
    font-size: 0.55rem;
    color: rgba(0, 188, 212, 0.35);
    font-variant-numeric: tabular-nums;
}
/* 플레이어 — 파형과 동일한 전체 너비 */
.cdm-rec-controls {
    display: block;
}
.cdm-rec-controls audio {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    display: block;
}
/* 다운로드 + 시간 — 플레이어 아래 우측 */
.cdm-rec-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.cdm-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 16px;
    background: rgba(0, 188, 212, 0.12);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    color: #00bcd4;
    font-size: 0.72rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.cdm-btn-download:hover {
    background: rgba(0, 188, 212, 0.22);
    color: #4dd0e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}
.cdm-btn-download i { font-size: 0.7rem; }
.cdm-rec-duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Call Info 행 */
.cdm-info-content {
    padding: 0.5rem 0;
}
.cdm-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.cdm-info-row span { color: rgba(255, 255, 255, 0.4); }
.cdm-info-row strong { color: rgba(255, 255, 255, 0.75); font-weight: 500; }

/* 빈 메시지 */
.cdm-empty-msg {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    font-size: 0.8rem;
}

.cdm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(162, 89, 255, 0.15);
    flex-shrink: 0;
}
.cdm-header h3 {
    margin: 0; font-size: 1.05rem; color: #fff; font-weight: 400;
    display: flex; align-items: center; gap: 0.5rem;
}
.cdm-header h3 i { color: #a259ff; }
.cdm-close {
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    max-width: 32px; max-height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    aspect-ratio: 1;
    transition: all 0.2s ease;
}
.cdm-close:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff5050;
}

.cdm-body {
    overflow-y: auto; padding: 1.2rem 1.5rem; flex: 1;
}
.cdm-body::-webkit-scrollbar { width: 5px; }
.cdm-body::-webkit-scrollbar-track { background: transparent; }
.cdm-body::-webkit-scrollbar-thumb { background: rgba(162, 89, 255, 0.25); border-radius: 3px; }

/* 세션 요약 */
.cdm-session-summary {
    display: flex; gap: 0.75rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.cdm-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px; padding: 0.6rem 1rem;
    text-align: center; flex: 1; min-width: 70px;
}
.cdm-stat-value { font-size: 1.1rem; font-weight: 700; color: #a259ff; line-height: 1; }
.cdm-stat-label { font-size: 0.6rem; color: rgba(255, 255, 255, 0.4); margin-top: 0.15rem; }
.cdm-stat.success .cdm-stat-value { color: #4caf50; }
.cdm-stat.failed .cdm-stat-value { color: #ff5050; }

/* 개별 통화 항목 */
.cdm-call-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(162, 89, 255, 0.1);
    border-radius: 12px; margin-bottom: 0.75rem;
    overflow: hidden; transition: border-color 0.3s ease;
}
.cdm-call-item:hover { border-color: rgba(162, 89, 255, 0.25); }

.cdm-call-header {
    display: flex; align-items: center;
    padding: 0.8rem 1rem; cursor: pointer; gap: 0.6rem;
}
.cdm-call-header .contact-avatar { width: 36px; height: 36px; font-size: 0.8rem; }
.cdm-call-meta { flex: 1; }
.cdm-call-name { font-size: 0.85rem; color: #fff; }
.cdm-call-phone { font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); }
.cdm-call-badges { display: flex; gap: 0.4rem; align-items: center; }
.cdm-duration { font-size: 0.7rem; color: rgba(255, 255, 255, 0.35); display: flex; align-items: center; gap: 0.2rem; }

/* 확장 상세 영역 */
.cdm-call-detail {
    display: none; padding: 0 1rem 1rem;
    border-top: 1px solid rgba(162, 89, 255, 0.08);
}
.cdm-call-detail.expanded { display: block; }

.cdm-detail-section { margin-top: 0.75rem; }
.cdm-detail-label {
    font-size: 0.7rem; color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: flex; align-items: center; gap: 0.3rem;
}
.cdm-detail-label i { color: #a259ff; font-size: 0.65rem; }

.cdm-summary-text {
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.7);
    line-height: 1.6; padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02); border-radius: 8px;
    border-left: 2px solid rgba(162, 89, 255, 0.25);
}

/* 대화록 메시지 — 채팅 스타일 (우측정렬 + 내용길이 맞춤 + 색감 리뉴얼) */
.cdm-transcript {
    max-height: none; overflow-y: visible;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cdm-msg {
    margin-bottom: 0;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 82%;
    width: fit-content;
    position: relative;
    transition: all 0.35s ease;
}
/* Bot (Assistant) — 좌측 / 다크 슬레이트 계열 */
.cdm-msg.bot {
    background: linear-gradient(135deg, rgba(30, 36, 50, 0.85) 0%, rgba(40, 48, 68, 0.75) 100%);
    border: 1px solid rgba(100, 120, 160, 0.18);
    color: rgba(200, 210, 230, 0.92);
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 4px;
}
/* User — 우측 / 틸-민트 액센트 */
.cdm-msg.user {
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.14) 0%, rgba(0, 188, 212, 0.1) 100%);
    border: 1px solid rgba(0, 188, 212, 0.2);
    color: rgba(220, 245, 240, 0.9);
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 4px;
}
.cdm-msg-role {
    font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.cdm-msg.bot .cdm-msg-role { color: rgba(140, 160, 200, 0.8); }
.cdm-msg.user .cdm-msg-role { color: #26a69a; }
.cdm-msg-time {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.22);
    margin-top: 0.3rem;
}

/* 오디오-대화록 동기화 하이라이트 */
.cdm-msg.active-highlight {
    transform: scale(1.015);
    z-index: 2;
}
.cdm-msg.bot.active-highlight {
    background: linear-gradient(135deg, rgba(45, 55, 85, 0.95) 0%, rgba(55, 68, 105, 0.92) 100%);
    border-color: rgba(130, 160, 230, 0.50) !important;
    box-shadow:
        0 0 0 1px rgba(130, 160, 230, 0.18),
        0 0 16px rgba(130, 160, 230, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 0 0 0 transparent;
    border-left: 3px solid rgba(140, 170, 240, 0.7) !important;
}
.cdm-msg.bot.active-highlight .cdm-msg-role {
    color: rgba(170, 195, 255, 0.95);
}
.cdm-msg.bot.active-highlight .cdm-msg-time {
    color: rgba(255, 255, 255, 0.38);
}
.cdm-msg.user.active-highlight {
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.28) 0%, rgba(0, 188, 212, 0.22) 100%);
    border-color: rgba(0, 210, 190, 0.50) !important;
    box-shadow:
        0 0 0 1px rgba(0, 210, 190, 0.18),
        0 0 16px rgba(0, 210, 190, 0.10),
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 0 0 0 transparent;
    border-right: 3px solid rgba(0, 220, 200, 0.65) !important;
}
.cdm-msg.user.active-highlight .cdm-msg-role {
    color: rgba(80, 230, 210, 0.95);
}
.cdm-msg.user.active-highlight .cdm-msg-time {
    color: rgba(255, 255, 255, 0.38);
}

/* 녹음 플레이어 */
.cdm-audio-player {
    width: 100%; border-radius: 8px;
    background: rgba(0, 0, 0, 0.2); padding: 0.5rem;
}
.cdm-audio-player audio { width: 100%; height: 36px; }

/* 로딩 & 상세보기 버튼 */
.cdm-loading {
    text-align: center; padding: 1rem;
    color: rgba(255, 255, 255, 0.4); font-size: 0.8rem;
}
.cdm-loading i {
    display: block; font-size: 1.2rem; margin-bottom: 0.3rem;
    color: #a259ff; animation: cdmSpin 1s linear infinite;
}
@keyframes cdmSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.cdm-btn-detail {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 5px 12px;
    background: rgba(162, 89, 255, 0.1);
    border: 1px solid rgba(162, 89, 255, 0.25);
    border-radius: 6px;
    color: rgba(212, 184, 255, 0.8);
    font-size: 0.7rem; cursor: pointer;
    transition: all 0.2s ease;
}
.cdm-btn-detail:hover {
    background: rgba(162, 89, 255, 0.2); color: #fff;
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .setup-container { grid-template-columns: 1fr !important; }
    .call-type-cards { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
    .results-summary { grid-template-columns: repeat(2, 1fr) !important; }

    /* 900px 이하 공통: 가로 넘침 방지 */
    .avatar-container,
    .hedra-container,
    .call-setup-section,
    .call-history-gallery,
    .avatar-display-section,
    .call-tab-content {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .hedra-container {
        padding: 0.8rem 0.5rem !important;
    }

    /* 상단 컨트롤: 세로 스택 */
    .top-controls-wrapper {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        max-width: 100% !important;
        gap: 0.5rem !important;
    }
    .top-left-control,
    .top-center-control,
    .top-right-control {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

    /* ===== Inbound Header Compact Fix =====
       응답 스케줄 pill이 부모 높이를 먹고 세로로 길어지는 충돌 방지 */
    #tabInbound .inb-status-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    #tabInbound .inb-status-left {
        flex: 0 0 auto !important;
        height: 60px !important;
        min-height: 60px !important;
    }
    #tabInbound .inb-status-left .toggle-switch {
        margin-left: 1rem !important;
    }
    #tabInbound #inboundSchedulePanel {
        flex: 1 1 auto !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 0.45rem 0.65rem !important;
        overflow: hidden !important;
    }
    #tabInbound .inb-schedule-inline,
    #tabInbound .inbound-schedule-compact {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        height: 100% !important;
        min-height: 0 !important;
    }
    #tabInbound .inb-schedule-title {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
    }
    #tabInbound .schedule-options-pill {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        gap: 0.22rem !important;
        width: auto !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0.18rem !important;
    }
    #tabInbound .schedule-option-pill {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #tabInbound .schedule-time-row-compact {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0.2rem 0.45rem !important;
    }
    #tabInbound .schedule-time-row-compact .time-input-group {
        flex-direction: row !important;
        align-items: center !important;
    }
    @media (max-width: 760px) {
        #tabInbound .inb-status-header {
            flex-direction: column !important;
            align-items: stretch !important;
        }
        #tabInbound #inboundSchedulePanel {
            height: auto !important;

    /* ===== FINAL: Inbound Header Compact Fix ===== */
    #tabInbound .inb-status-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    #tabInbound .inb-status-left {
        flex: 0 0 auto !important;
        height: 60px !important;
        min-height: 60px !important;
    }
    #tabInbound .inb-status-left .toggle-switch {
        margin-left: 1rem !important;
    }
    #tabInbound #inboundSchedulePanel {
        flex: 1 1 auto !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 0.45rem 0.65rem !important;
        overflow: hidden !important;
    }
    #tabInbound .inb-schedule-inline,
    #tabInbound .inbound-schedule-compact {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        height: 100% !important;
        min-height: 0 !important;
    }
    #tabInbound .inb-schedule-title {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
    }
    #tabInbound .schedule-options-pill {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        gap: 0.22rem !important;
        width: auto !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0.18rem !important;
    }
    #tabInbound .schedule-option-pill {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #tabInbound .schedule-time-row-compact {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0.2rem 0.45rem !important;
    }
    #tabInbound .schedule-time-row-compact .time-input-group {
        flex-direction: row !important;
        align-items: center !important;
    }
    @media (max-width: 760px) {
        #tabInbound .inb-status-header {
            flex-direction: column !important;
            align-items: stretch !important;
        }
        #tabInbound #inboundSchedulePanel {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
        }
        #tabInbound .inb-schedule-inline,
        #tabInbound .inbound-schedule-compact {
            flex-wrap: wrap !important;
        }
    }
            max-height: none !important;
            overflow: visible !important;
        }
        #tabInbound .inb-schedule-inline,
        #tabInbound .inbound-schedule-compact {
            flex-wrap: wrap !important;
        }
    }

@media (max-width: 768px) {
    /* 전체 컨테이너 — 가로 넘침 방지 */
    .avatar-container { padding: 0.5rem 0.4rem; overflow-x: hidden; }
    .avatar-display-section { overflow-x: hidden; width: 100%; }
    .hedra-container { padding: 0.8rem 0.6rem !important; gap: 0.5rem !important; width: 100% !important; max-width: 100% !important; }
    .call-setup-section { padding: 0 0.2rem; width: 100%; overflow-x: hidden; }
    .call-history-gallery { padding: 0 0.2rem; width: 100%; overflow-x: hidden; }

    /* 헤더 */
    .avatar-header { padding: 0.8rem 0.5rem 0.4rem; }
    .avatar-header .title { font-size: 1.3rem; }
    .avatar-header .subtitle { font-size: 0.75rem; }

    /* 상단 컨트롤: 세로 스택 */
    .top-controls-wrapper {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .top-left-control,
    .top-center-control,
    .top-right-control {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .top-left-control { flex: 1 1 100% !important; }
    .top-center-control { flex: 1 1 100% !important; }
    .top-right-control { flex: 1 1 100% !important; }
    .top-controls-wrapper .style-dropdown-top { width: 100%; }
    .btn-voice-preview {
        height: 42px;
        padding: 0 0.9rem;
        min-width: 42px;
    }
    .btn-create-top { width: 100%; justify-content: center; }

    /* 대시보드 */
    .call-dashboard-wrapper { min-height: 180px; border-radius: 14px; }
    .call-state { padding: 1.2rem 0.8rem; }
    .call-active-state { padding: 1.2rem 0.8rem; }
    .call-results-state { padding: 1.2rem 0.8rem; }

    /* 연락처 & 설정 패널 */
    .setup-container { grid-template-columns: 1fr; gap: 1rem; }
    .setup-panel { padding: 1rem 0.8rem; }
    .setup-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .panel-actions { width: 100%; }
    .panel-action-btn { flex: 1; justify-content: center; font-size: 0.7rem; }

    /* AI 설정 행 */
    .config-row { flex-direction: column; gap: 0.5rem; }
    .config-model-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

    /* 설문 */
    .survey-question-item { gap: 0.3rem; }
    .survey-question-item input { font-size: 0.78rem; padding: 0.45rem 0.6rem; }

    /* 소셜 공유 */
    .social-share-row { gap: 0.5rem !important; }
    .share-label { font-size: 0.6rem; }
    .share-icon-circle { width: 38px; height: 38px; font-size: 0.8rem; }

    /* 결과 */
    .results-summary { grid-template-columns: repeat(2, 1fr); }
    .result-card { padding: 0.8rem; }
    .result-card-header { flex-direction: column; align-items: flex-start; gap: 0.3rem; }

    /* 통화 기록 */
    .call-history-gallery { padding: 0 0.3rem; margin-top: 1rem; }
    .history-card { aspect-ratio: auto; min-height: 120px; }

    /* 모달 */
    .call-detail-overlay { padding: 0.5rem; }
    .call-detail-modal { max-height: 95vh; border-radius: 14px; }
    .cdm-header { padding: 0.8rem 1rem; }
    .cdm-header h3 { font-size: 0.9rem; }
    .cdm-body { padding: 0.8rem; }
    .cdm-session-summary { gap: 0.5rem; }
    .cdm-stat { padding: 0.5rem 0.6rem; min-width: 60px; }
    .cdm-stat-value { font-size: 0.9rem; }
    .cdm-msg { max-width: 90%; font-size: 0.78rem; padding: 0.6rem 0.8rem; }
    .cdm-recording-area { padding: 0.75rem; }
    .cdm-rec-waveform { height: 80px; }

    /* 버튼 */
    .btn-start-call { font-size: 0.9rem; padding: 0.8rem 1rem; }

    /* 토스트 */
    .call-toast { left: 1rem; right: 1rem; bottom: 1.5rem; }

    /* 탭 */
    .call-tab-nav { max-width: 100%; margin: 0 0.5rem 0.5rem; padding: 3px; }
    .call-tab { padding: 0.6rem 0.6rem; font-size: 0.8rem; gap: 0.35rem; }
    .call-tab .tab-desc { display: none; }
    .call-tab .tab-label { font-size: 0.8rem; }

    /* Inbound 상태 카드 */
    .inbound-status-card { padding: 1.2rem 0.8rem; max-width: 100%; }
    .inb-stats-row { grid-template-columns: repeat(2, 1fr); }
    .inb-status-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

    /* Inbound 설정 */
    .inb-phone-field { flex-direction: column; align-items: stretch; gap: 0.4rem; }
    .inb-phone-field .phone-icon-circle { align-self: flex-start; }
    .schedule-options { flex-direction: column; gap: 0.4rem; }
    .schedule-time-row { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
    .time-separator { display: none; }
}

@media (max-width: 480px) {
    /* 극소형 모바일 */
    .avatar-header .title { font-size: 1.1rem; }
    .avatar-header .subtitle { font-size: 0.65rem; }
    .hedra-container { padding: 0.6rem 0.5rem !important; }

    /* 탭 */
    .call-tab-nav { margin: 0 0.3rem 0.4rem; border-radius: 12px; padding: 2px; }
    .call-tab { padding: 0.55rem 0.3rem; font-size: 0.75rem; border-radius: 10px; gap: 0.25rem; }
    .call-tab i { font-size: 0.75rem; }
    .call-tab .tab-label { font-size: 0.75rem; }
    .call-tab .tab-desc { display: none; }

    /* 대시보드 */
    .call-dashboard-wrapper { min-height: 120px; border-radius: 12px; }
    .call-state { padding: 1rem 0.6rem; }

    /* 연락처 */
    .contact-item { padding: 0.5rem 0.6rem; }
    .contact-avatar { width: 28px; height: 28px; font-size: 0.65rem; }
    .contact-name { font-size: 0.75rem; }
    .contact-number { font-size: 0.6rem; }
    .contacts-list { max-height: 180px; }

    /* 설정 */
    .setup-panel { padding: 0.8rem 0.6rem; }
    .config-field label { font-size: 0.7rem; }
    .config-field select,
    .config-field input,
    .config-field textarea { font-size: 0.8rem; padding: 0.5rem 0.6rem; }

    /* 기록 */
    .history-line { gap: 0.3rem; padding: 0.4rem; }
    .hline-type { display: none; }
    .hline-dur { display: none; }
    .hline-name { max-width: 80px; font-size: 0.7rem; }
    .hline-date { font-size: 0.55rem; }
    .hline-status { font-size: 0.6rem; }

    /* 모달 */
    .call-detail-modal { max-height: 95vh; border-radius: 12px; }
    .cdm-header { padding: 0.7rem 0.8rem; }
    .cdm-body { padding: 0.6rem; }
    .cdm-recording-area { padding: 0.6rem; }
    .cdm-rec-waveform { height: 65px; }
    .cdm-rec-actions { justify-content: flex-end; }
    .cdm-session-summary { gap: 0.4rem; }
    .cdm-stat { padding: 0.4rem 0.5rem; }
    .cdm-stat-value { font-size: 0.85rem; }
    .cdm-msg { max-width: 92%; font-size: 0.75rem; padding: 0.5rem 0.7rem; }

    /* 결과 */
    .results-summary { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .summary-stat { padding: 0.6rem 0.4rem; }
    .summary-stat .stat-value { font-size: 1.2rem; }

    /* 토스트 */
    .call-toast { bottom: 1rem; right: 0.5rem; left: 0.5rem; font-size: 0.8rem; }

    /* 버튼 */
    .btn-start-call { font-size: 0.85rem; padding: 0.75rem 0.8rem; border-radius: 10px; }
    .btn-save-inbound { font-size: 0.85rem; padding: 0.65rem 1rem; }

    /* Inbound */
    .inbound-status-card { padding: 0.8rem 0.6rem; }
    .inb-stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .inb-stat-val { font-size: 1rem; }
    .inb-stat-lbl { font-size: 0.58rem; }
    .inb-status-title { font-size: 0.9rem; }
    .inb-phone { font-size: 0.7rem; }

    /* 수동 추가 폼 */
    .add-contact-form { flex-direction: column; }
    .add-contact-form-row { flex-direction: column; }
    .add-contact-form-row input { min-width: auto; width: 100%; }
    .add-contact-form .btn-add:not(.btn-add-contact-primary) { width: 100%; justify-content: center; }
    .outbound-contact-form-stack input:nth-child(1),
    .outbound-contact-form-stack input:nth-child(2),
    .outbound-contact-form-stack input:nth-child(3) {
        flex: 1 1 100%;
        min-width: 0;
    }
    .btn-add-contact-primary { width: 100%; min-width: 0; min-height: 50px; }

    /* Google Contacts 모달 */
    .call-detail-modal { margin: 0.3rem; }
}

/* ===============================================
   Tab Navigation & Inbound Tab Styles
   =============================================== */

/* ===== Tab Navigation ===== */
.call-tab-nav {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: var(--call-layout-max, 1100px);
    margin: 0 auto 0.5rem;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(162, 89, 255, 0.12);
    overflow: hidden;
    box-sizing: border-box;
}
.call-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px;
}
.call-tab i { font-size: 0.9rem; }
.call-tab .tab-label { font-weight: 600; letter-spacing: 0.02em; }
.call-tab .tab-desc { font-size: 0.65rem; opacity: 0.6; }
.call-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(162, 89, 255, 0.06);
}
.call-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.2), rgba(106, 90, 249, 0.15));
    box-shadow: 0 2px 12px rgba(162, 89, 255, 0.15);
}
.call-tab.active .tab-desc { opacity: 0.7; }

/* Tab Content */
.call-tab-content { display: none; }
.call-tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Inbound Status Card ===== */
.inbound-status-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1654 40%, #1a0a2e 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(162, 89, 255, 0.15);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.inbound-status-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(162, 89, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.inb-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(162, 89, 255, 0.1);
}
.inb-status-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    min-height: 56px;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(162, 89, 255, 0.12);
    border-radius: 18px;
    flex: 0 0 auto;
}
.inb-status-left .toggle-switch {
    margin-left: 0.9rem;
}
.inb-status-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.inb-status-dot.off {
    background: rgba(255, 80, 80, 0.6);
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.3);
}
.inb-status-dot.on {
    background: #4caf50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
    animation: inbDotPulse 2s ease-in-out infinite;
}
@keyframes inbDotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 16px rgba(76, 175, 80, 0.6); }
}
.inb-status-title {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
    margin: 0;
}
.inb-phone {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0.15rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.inb-phone i {
    font-size: 0.7rem;
    color: rgba(162, 89, 255, 0.6);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    flex: 0 0 auto;
}
.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.toggle-track {
    width: 52px; height: 28px;
    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
}
.toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch input:checked ~ .toggle-track {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.4);
}
.toggle-switch input:checked ~ .toggle-track .toggle-thumb {
    left: 27px;
    background: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Inbound Schedule inside status card */
.inb-schedule-panel {
    margin: 0;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(162, 89, 255, 0.12);
    border-radius: 18px;
    position: relative;
    z-index: 1;
    min-height: 56px;
    max-width: none;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}
.inb-schedule-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-height: 42px;
}
.inb-schedule-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding-left: 0.25rem;
    flex: 0 0 auto;
}
.inb-schedule-kicker {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.96rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
    white-space: nowrap;
}
.inb-schedule-kicker i {
    color: rgba(162, 89, 255, 0.8);
}
#inboundScheduleSummary {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inb-schedule-note {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.72rem;
    white-space: nowrap;
}
.inbound-schedule-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}
.schedule-options-pill {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.22rem;
    padding: 0.18rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    flex: 0 0 250px;
    height: 38px;
    align-self: center;
}
.schedule-option-pill {
    justify-content: center;
    height: 32px;
    min-height: 32px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 650;
    transition: all 0.18s ease;
}
.schedule-option-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.schedule-option-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    white-space: nowrap;
}
.schedule-option-pill:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.92), rgba(116, 70, 255, 0.72));
    color: #fff;
    box-shadow: 0 6px 16px rgba(90, 45, 180, 0.22);
}
.schedule-time-row-compact {
    justify-content: center;
    margin: 0;
    height: 38px;
    min-height: 38px;
    padding: 0.22rem 0.45rem;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
    align-self: center;
}
.schedule-time-row-compact .time-input-group {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}
.schedule-time-row-compact .time-input-group label {
    font-size: 0.62rem;
}
.schedule-time-row-compact input[type="time"] {
    width: 104px;
    min-height: 30px;
    padding: 0 0.35rem;
    font-size: 0.78rem;
}
@media (max-width: 980px) {
    .inb-status-header {
        flex-wrap: wrap;
        align-items: stretch;
    }
    .inb-schedule-panel {
        flex: 1 1 100%;
    }
}
@media (max-width: 760px) {
    .inb-schedule-panel {
        border-radius: 16px;
    }
    .inb-schedule-inline {
        flex-wrap: wrap;
    }
    .inbound-schedule-compact {
        flex-wrap: wrap;
    }
    .schedule-options-pill {
        border-radius: 16px;
        flex: 1 1 100%;
    }
    .schedule-option-pill {
        min-height: 34px;
        border-radius: 12px;
    }
    .schedule-time-row-compact {
        justify-content: flex-start;
        border-radius: 12px;
    }
}

/* Inbound Stats Row */
.inb-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.inb-stat {
    text-align: center;
    padding: 0.6rem 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.inb-stat-val {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #a259ff;
    line-height: 1;
    margin-bottom: 0.15rem;
}
.inb-stat-lbl {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Inbound Phone Number Field ===== */
.inb-phone-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(162, 89, 255, 0.06);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 12px;
}
.inb-phone-field .phone-icon-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.2), rgba(106, 90, 249, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.inb-phone-field .phone-icon-circle i {
    color: #a259ff;
    font-size: 0.85rem;
}
.inb-phone-field input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.inb-phone-field input:focus {
    border-color: rgba(162, 89, 255, 0.5);
}
.inb-phone-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.inb-phone-help {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: -0.6rem;
    margin-bottom: 0.8rem;
    padding-left: 0.2rem;
    line-height: 1.5;
}
.inb-phone-help.inb-phone-help-oneline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}
.inbound-allow-hint {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 0.3rem;
}
.inb-phone-help a {
    color: rgba(162, 89, 255, 0.7);
    text-decoration: none;
}
.inb-phone-help a:hover {
    color: #a259ff;
    text-decoration: underline;
}

/* First Message Input */
.inbound-first-msg-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #e0e0e0;
    font-size: 0.8rem;
    transition: border-color 0.2s;
}
.inbound-first-msg-input:focus {
    border-color: rgba(162, 89, 255, 0.5);
    outline: none;
}
.inbound-first-msg-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ===== Allowlist Remove Button ===== */
.btn-remove-allow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    padding: 0 !important;
    margin: 0;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 80, 80, 0.28) !important;
    background: rgba(255, 80, 80, 0.1);
    color: rgba(255, 230, 230, 0.85);
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.btn-remove-allow::after {
    display: none !important;
    content: none !important;
}
.btn-remove-allow i {
    font-size: 0.68rem;
    line-height: 1;
    pointer-events: none;
}
.btn-remove-allow:hover {
    background: rgba(255, 80, 80, 0.22);
    color: #fff;
    border-color: rgba(255, 80, 80, 0.45) !important;
}

/* main.css 전역 button 스타일이 삭제 버튼을 알약형으로 만드는 것 방지 */
#inboundAllowList .btn-remove-allow {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
}

/* ===== Schedule Settings ===== */
.inbound-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.schedule-options {
    display: flex;
    gap: 1rem;
}
.schedule-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
}
.schedule-option input[type="radio"] {
    accent-color: #a259ff;
    width: 14px; height: 14px;
}
.schedule-time-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(162, 89, 255, 0.1);
}
.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.time-input-group label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}
.time-input-group input[type="time"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
}
.time-input-group input[type="time"]:focus {
    border-color: rgba(162, 89, 255, 0.5);
}
.time-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    margin-top: 0.8rem;
}

/* ===== Save Inbound Button ===== */
.btn-save-inbound {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #a259ff, #6a5af9);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}
.btn-save-inbound:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(162, 89, 255, 0.35);
}
.btn-save-inbound:active {
    transform: translateY(0);
}
.inbound-prompt-gate-hint,
.outbound-prompt-gate-hint {
    margin: 0.45rem 0 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 193, 7, 0.85);
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 8px;
}
.inbound-prompt-gate-hint i,
.outbound-prompt-gate-hint i {
    margin-right: 0.35rem;
    opacity: 0.9;
}

.btn-save-inbound:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-save-inbound.saved {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

/* ===== Inbound History Card Visual ===== */
.hcard-visual.inbound-visual::before {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    opacity: 0.1;
}

/* ===== Inbound 좌측 컬럼 (허용번호 + 가이드) ===== */
.inbound-left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.inbound-left-column > .inbound-allow-panel,
.inbound-left-column > .setup-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.inbound-left-column > .inbound-allow-panel > .contacts-list,
.inbound-left-column > .setup-panel > .contacts-list {
    flex: 1;
    min-height: 120px;
}
.inbound-left-column > .inbound-allow-panel > .contacts-footer,
.inbound-left-column > .setup-panel > .contacts-footer {
    margin-top: auto;
}
.inbound-left-column > .forwarding-guide-card {
    flex: 0 0 auto;
}

/* ===== 착신전환 설정 가이드 카드 ===== */
.forwarding-guide-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 188, 212, 0.15);
    border-radius: var(--radius-lg, 16px);
    padding: 1.2rem;
}
.fwg-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.fwg-header i {
    color: #00bcd4;
    font-size: 1rem;
}
.fwg-header h4 {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}
.fwg-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.8rem;
    line-height: 1.4;
}
.fwg-carriers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.fwg-carrier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.fwg-carrier-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #00bcd4;
    min-width: 42px;
}
.fwg-carrier code {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 188, 212, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    border: none;
}
.fwg-cancel {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
}
.fwg-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.12);
}
.fwg-tip i {
    color: #ffc107;
    font-size: 0.75rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.fwg-tip span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ===== Inbound Tab Responsive (768/480은 위 공통 반응형에서 처리) ===== */

/* ===== Generate Prompt Button & Modal ===== */
.prompt-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.prompt-label-row label {
    margin-bottom: 0;
}
.btn-generate-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.7rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 230, 118, 0.35) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    color: #00e676 !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    height: auto !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}
.btn-generate-prompt:hover {
    background: rgba(0, 230, 118, 0.18);
    border-color: #00e676;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.25);
}
.btn-generate-prompt:active {
    transform: translateY(0);
}
.btn-generate-prompt i {
    font-size: 0.75rem;
}

/* Generate Prompt Overlay */
.generate-prompt-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.generate-prompt-overlay.active {
    display: flex;
}
.generate-prompt-modal {
    background: linear-gradient(145deg, #1a1230 0%, #1e1638 100%);
    border: 1px solid rgba(162, 89, 255, 0.2);
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(162, 89, 255, 0.08);
}
.gpm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gpm-header h3 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gpm-header h3 i {
    color: #00e676;
}

/* main.css 전역 button(알약형 height/line-height + ::after 오버레이) 무력화 */
.generate-prompt-modal button {
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    min-height: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
.generate-prompt-modal button::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
}

/* 닫기: 작은 정사각형, X에 맞게 여백 최소 */
.generate-prompt-modal .gpm-close {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 !important;
    line-height: 1 !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.generate-prompt-modal .gpm-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35) !important;
}
.gpm-body {
    position: relative;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Generate 진행 중 — 고객 안내 오버레이 */
.gpm-progress-layer {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(14, 10, 26, 0.94);
    backdrop-filter: blur(8px);
    border-radius: 0 0 14px 14px;
}
.gpm-progress-layer.is-visible {
    display: flex !important;
}
.gpm-progress-card {
    text-align: center;
    max-width: 320px;
}
.gpm-progress-spinner {
    font-size: 2.25rem;
    color: #a259ff;
    margin-bottom: 1rem;
}
.gpm-progress-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}
.gpm-progress-step {
    font-size: 0.8rem;
    color: rgba(162, 89, 255, 0.95);
    margin: 0 0 1rem;
    min-height: 1.25em;
    transition: opacity 0.25s ease;
}
.gpm-progress-track {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.gpm-progress-indeterminate {
    height: 100%;
    width: 35%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6a5af9, #a259ff, #6a5af9);
    animation: gpm-progress-slide 1.4s ease-in-out infinite;
}
@keyframes gpm-progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(340%); }
}
.gpm-progress-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.45;
    margin: 0;
}

.gpm-description {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}
.gpm-field label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.35rem;
    font-weight: 500;
}
.gpm-field label i {
    color: rgba(162, 89, 255, 0.7);
    margin-right: 0.25rem;
}
.gpm-input, .gpm-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
    resize: vertical;
}
.gpm-input:focus, .gpm-textarea:focus {
    outline: none;
    border-color: rgba(0, 230, 118, 0.5);
    background: rgba(255, 255, 255, 0.06);
}
.gpm-input::placeholder, .gpm-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Quick Templates */
.gpm-templates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.gpm-template-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 0.2rem;
}
.gpm-template-btn {
    padding: 0.35rem 0.75rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap !important;
    flex-shrink: 0;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
.gpm-template-btn:hover {
    background: rgba(162, 89, 255, 0.12);
    border-color: rgba(162, 89, 255, 0.3);
    color: #fff;
}

/* Nemotron 옵션 (Generate Prompt 모달) */
.gpm-nemotron-block {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(162, 89, 255, 0.06);
    border: 1px solid rgba(162, 89, 255, 0.15);
}
.gpm-nemotron-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}
.gpm-nemotron-titles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
    padding-right: 0.25rem;
}
/* 토글: 박스 우측 상단 고정, 텍스트와 겹치지 않음 */
.generate-prompt-modal .gpm-nemotron-toggle.toggle-switch,
.gpm-nemotron-header .gpm-nemotron-toggle.toggle-switch {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    margin: 0;
    margin-left: auto;
    z-index: 1;
}
.generate-prompt-modal .gpm-nemotron-toggle .toggle-track {
    display: block;
}
.gpm-nemotron-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}
.gpm-nemotron-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}
.gpm-hint-nemotron {
    margin: 0.55rem 0 0;
    padding: 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.45;
}
.gpm-hint-nemotron i {
    margin-right: 0.25rem;
    color: rgba(0, 230, 118, 0.55);
}
.gpm-nemotron-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.gpm-nemotron-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
}
.gpm-field-compact label {
    font-size: 0.74rem !important;
}
.gpm-field-span2 {
    grid-column: 1 / -1;
}
.gpm-select {
    cursor: pointer;
    appearance: auto;
}
@media (max-width: 480px) {
    .gpm-nemotron-grid {
        grid-template-columns: 1fr;
    }
    .gpm-field-span2 {
        grid-column: 1;
    }
}

/* Generate Button — 세로 패딩 이전 대비 약 1.5배 추가 */
.gpm-generate-btn {
    width: 100%;
    padding: 1.43rem 1rem;
    min-height: 0;
    border-radius: 10px;
    border: none !important;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
}
.gpm-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}
.gpm-generate-btn:active { transform: translateY(0); }
.gpm-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Section */
.gpm-result label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem;
    font-weight: 500;
}
.gpm-result .gpm-textarea {
    background: rgba(0, 230, 118, 0.04);
    border-color: rgba(0, 230, 118, 0.2);
    font-size: 0.82rem;
    line-height: 1.55;
}
.gpm-result-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
}
.gpm-apply-btn {
    flex: 1;
    padding: 0.25rem 1rem;
    border-radius: 10px;
    border: none !important;
    background: linear-gradient(135deg, #a259ff, #7c4dff);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.3s;
}
.gpm-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.3);
}
.gpm-retry-btn {
    padding: 0.25rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}
.gpm-retry-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Responsive for Generate Modal */
@media (max-width: 600px) {
    .generate-prompt-modal { max-width: 100%; border-radius: 14px; }
    .gpm-header { padding: 1rem; }
    .gpm-body { padding: 1rem; gap: 0.8rem; }
    .gpm-templates { gap: 0.3rem; }
    .gpm-template-btn { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
}

/* ===== FINAL OVERRIDE: Inbound header compact layout ===== */
#tabInbound .inb-status-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}
#tabInbound .inb-status-left {
    flex: 0 0 auto !important;
    height: 60px !important;
    min-height: 60px !important;
}
#tabInbound .inb-status-left .toggle-switch {
    margin-left: 1rem !important;
}
#tabInbound #inboundSchedulePanel {
    flex: 1 1 auto !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0.45rem 0.65rem !important;
    overflow: hidden !important;
}
#tabInbound .inb-schedule-inline,
#tabInbound .inbound-schedule-compact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    height: 100% !important;
    min-height: 0 !important;
}
#tabInbound .inb-schedule-title {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
}
#tabInbound .schedule-options-pill {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 0.22rem !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0.18rem !important;
}
#tabInbound .schedule-option-pill {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 0.75rem !important;
    align-items: center !important;
    justify-content: center !important;
}
#tabInbound .schedule-time-row-compact {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0.2rem 0.45rem !important;
}
#tabInbound .schedule-time-row-compact .time-input-group {
    flex-direction: row !important;
    align-items: center !important;
}
@media (max-width: 760px) {
    #tabInbound .inb-status-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #tabInbound #inboundSchedulePanel {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    #tabInbound .inb-schedule-inline,
    #tabInbound .inbound-schedule-compact {
        flex-wrap: wrap !important;
    }
}

/* FINAL OVERRIDE: Inbound 활성 텍스트와 토글을 바로 나란히 배치 */
#tabInbound .inb-status-left {
    justify-content: flex-start !important;
    width: auto !important;
    max-width: max-content !important;
    align-items: center !important;
}
#tabInbound .inb-status-left > div {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}
#tabInbound .inb-status-title {
    white-space: nowrap !important;
    line-height: 1 !important;
    margin: 0 !important;
}
#tabInbound .inb-status-left .toggle-switch {
    margin-left: 0.75rem !important;
    align-self: center !important;
    transform: translateY(4px) !important;
}

/* FINAL OVERRIDE: Inbound schedule time icon white */
#tabInbound .schedule-time-row-compact input[type="time"] {
    width: 132px !important;
    min-width: 132px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #fff !important;
    color-scheme: dark !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.55rem center !important;
    background-size: 1rem 1rem !important;
    padding: 0 1.65rem 0 0.72rem !important;
}
#tabInbound .schedule-time-row-compact input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    cursor: pointer !important;
    width: 1.4rem !important;
    height: 100% !important;
    padding: 0 !important;
    margin-left: -1.45rem !important;
}

/* ===== WebCall 설정 반응형 레이아웃 ===== */
.wc-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.2rem;
    align-items: start;
}
.wc-link-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.wc-link-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.wc-link-input {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    box-sizing: border-box;
}
.wc-copy-btn {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.wc-share-section {
    margin-top: 0.8rem;
}
.wc-share-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.wc-share-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.wc-share-btns.wc-share-icon-row {
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
}
.wc-share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    flex: 0 0 auto;
}
.wc-share-icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}
.wc-share-icon-btn:active {
    transform: scale(0.96);
}
.wc-share-kakao {
    color: #fee500;
    border-color: rgba(254, 229, 0, 0.35);
    background: rgba(254, 229, 0, 0.1);
}
.wc-share-telegram {
    color: #29b6f6;
    border-color: rgba(41, 182, 246, 0.35);
    background: rgba(41, 182, 246, 0.1);
}
.wc-share-sms {
    color: #81c784;
    border-color: rgba(129, 199, 132, 0.35);
    background: rgba(129, 199, 132, 0.1);
}
.wc-share-btns .btn-add {
    flex: 1 1 0;
    min-width: 0;
}
.wc-qr-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.wc-qr-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.wc-qr-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: #fff;
    border-radius: 12px;
    line-height: 0;
    max-width: 100%;
    min-width: 160px;
    min-height: 160px;
    box-sizing: border-box;
}
.wc-qr-box:has(.wc-qr-placeholder) {
    line-height: 1.4;
}
.wc-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    min-height: 128px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    box-sizing: border-box;
}
.wc-qr-placeholder span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(30, 30, 40, 0.72);
    font-weight: 500;
    white-space: normal;
    word-break: keep-all;
}
.wc-qr-box canvas,
.wc-qr-box img {
    max-width: 100% !important;
    height: auto !important;
}
.wc-qr-save-wrap {
    margin-top: 0.55rem;
    width: 160px;
}
.wc-qr-save-wrap .btn-add {
    width: 100%;
    min-height: 44px;
    padding: 0 0.8rem;
}

/* 태블릿 */
@media (max-width: 768px) {
    .wc-main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .wc-qr-col {
        align-items: center;
    }
    .wc-qr-box {
        max-width: 200px;
    }
    .wc-share-btns {
        flex-wrap: wrap;
    }
    .wc-share-btns.wc-share-icon-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .wc-share-btns .btn-add {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .wc-link-row {
        flex-direction: column;
    }
    .wc-link-input {
        width: 100%;
    }
    .wc-copy-btn {
        width: 100%;
    }
    .wc-share-btns .btn-add {
        flex: 1 1 100%;
    }
    .wc-share-btns.wc-share-icon-row {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .wc-share-icon-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.05rem;
    }
    .wc-qr-box {
        max-width: 180px;
    }
    .wc-qr-save-wrap {
        width: 100%;
    }
}
