/* --- dashboard.css --- */
/* --- Modern Dashboard Styles --- */

/* AR 스테이지 전체 화면 스타일 */
.ar-stage-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ar-stage-fullpage.hidden {
    display: none;
}

.ar-stage-fullpage.show {
    opacity: 1;
    transform: translateY(0);
}

.ar-stage-header {
    background: #2d2d2d;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #404040;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ar-stage-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.ar-stage-header .btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 5px 12px;
}

.ar-stage-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10001;
}

.ar-stage-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.ar-stage-loading p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.ar-stage-content {
    flex: 1;
    width: 100%;
    height: calc(100vh - 38px);
    position: relative;
}

.ar-stage-content.hidden {
    display: none;
}

.ar-stage-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 환영 섹션 */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: welcomePulse 8s ease-in-out infinite;
}

@keyframes welcomePulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

.welcome-content h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.quick-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* 통계 카드 기본 스타일 */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 카드 색상 테마 */
.stat-card.primary::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.stat-card.success::before { background: linear-gradient(90deg, #4CAF50, #45a049); }
.stat-card.info::before { background: linear-gradient(90deg, #2196F3, #1976D2); }
.stat-card.warning::before { background: linear-gradient(90deg, #FF9800, #F57C00); }
.stat-card.gradient::before { background: linear-gradient(90deg, #E91E63, #AD1457); }
.stat-card.featured::before { background: linear-gradient(90deg, #FF6B6B, #FF8E53); }

/* 통계 아이콘 */
.stat-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    flex-shrink: 0;
}

.stat-card.primary .stat-icon { background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)); }
.stat-card.success .stat-icon { background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1)); }
.stat-card.info .stat-icon { background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(25, 118, 210, 0.1)); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(245, 124, 0, 0.1)); }
.stat-card.gradient .stat-icon { background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(173, 20, 87, 0.1)); }
.stat-card.featured .stat-icon { background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1)); }

/* 통계 콘텐츠 */
.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary-color);
}

.stat-card .featured-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary-color);
}

.stat-card .change {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.change.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.change.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.stat-card .sub-text {
    font-size: 0.85em;
    color: var(--text-disabled-color);
    margin-top: 4px;
}

/* 인사이트 섹션 */
.insights-section {
    margin-bottom: 40px;
}

.insights-section h2 {
    margin-bottom: 24px;
    color: var(--text-primary-color);
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.insight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 252, 250, 0.98) 50%, rgba(240, 248, 245, 0.95) 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(184, 212, 200, 0.2);
    border-left: 4px solid var(--primary-color, #6D9886);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    border-color: rgba(109, 152, 134, 0.4);
    border-left-color: var(--primary-dark, #5a8272);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.insight-header h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary-color);
}

.insight-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-badge.hot {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
}

.insight-card:has(.insight-badge.hot) {
    border-left-color: #FF8E53;
}

.insight-card:has(.insight-badge.hot):hover {
    border-left-color: #E57373;
}

.insight-badge.new {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.insight-card:has(.insight-badge.new) {
    border-left-color: #44A08D;
}

.insight-badge.warning {
    background: linear-gradient(135deg, #FFB74D, #FF8A65);
    color: white;
}

.insight-card:has(.insight-badge.warning) {
    border-left-color: #FF8A65;
}

.insight-card:has(.insight-badge.warning):hover {
    border-left-color: #F57C5A;
}

.insight-card p {
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin-bottom: 16px;
}

.insight-action a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.insight-action a:hover {
    color: var(--primary-dark);
}

/* ===== 대시보드 - 트렌디·미니멀 디자인 (운영 인사이트 톤) ===== */
/* 컬렉션별 인사이트 h2(#5A6B6B), artwork-total-hint(#8B9A9A) 색톤 적용 */
main:has(#dashboard-content) .content-header h1 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #5A6B6B;
}

#dashboard-content {
    --insight-accent: rgba(122, 139, 139, 0.5);
    --insight-accent-strong: rgba(109, 152, 134, 0.35);
    --insight-text-muted: #8B9A9A;
    --insight-pastel-sage: rgba(167, 196, 181, 0.9);
    --insight-pastel-mint: rgba(184, 212, 200, 0.85);
    --insight-pastel-lavender: rgba(212, 200, 220, 0.85);
    --insight-pastel-sky: rgba(200, 220, 230, 0.85);
    --insight-pastel-sand: rgba(230, 220, 205, 0.85);
}

#dashboard-content .welcome-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 28px;
    color: #5A6B6B;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#dashboard-content .welcome-section::before {
    display: none;
}

#dashboard-content .welcome-content h2 {
    font-family: var(--font-family-base);
    font-size: 1.2rem;
    font-weight: 600;
    color: #5A6B6B;
    background: none;
    -webkit-text-fill-color: inherit;
}

#dashboard-content .welcome-content p {
    font-size: 0.875rem;
    color: var(--insight-text-muted);
}

#dashboard-content .quick-action-btn {
    background: #f8faf9;
    border: 1px solid rgba(109, 152, 134, 0.2);
    color: #446A58;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
}

#dashboard-content .quick-action-btn:hover {
    background: rgba(184, 212, 200, 0.25);
    box-shadow: none;
    transform: none;
}

/* 통계 카드 - 플랫·미니멀 트렌디 스타일 */
#dashboard-content .stat-card {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    gap: 14px;
}

#dashboard-content .stat-card::before {
    height: 2px;
    border-radius: 1px 1px 0 0;
}

#dashboard-content .stat-card::after {
    display: none;
}

#dashboard-content .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#dashboard-content .stat-card.primary::before { background: linear-gradient(90deg, rgba(167, 196, 181, 0.8), rgba(184, 212, 200, 0.8)); }
#dashboard-content .stat-card.success::before { background: linear-gradient(90deg, rgba(184, 212, 200, 0.8), rgba(200, 220, 230, 0.8)); }
#dashboard-content .stat-card.info::before { background: linear-gradient(90deg, rgba(200, 220, 230, 0.8), rgba(212, 200, 220, 0.8)); }
#dashboard-content .stat-card.warning::before { background: linear-gradient(90deg, rgba(230, 220, 205, 0.8), rgba(230, 210, 215, 0.8)); }
#dashboard-content .stat-card.featured::before { background: linear-gradient(90deg, rgba(212, 200, 220, 0.8), rgba(200, 220, 230, 0.8)); }

#dashboard-content .stat-card .stat-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

#dashboard-content .stat-card.primary .stat-icon { background: rgba(167, 196, 181, 0.2); }
#dashboard-content .stat-card.success .stat-icon { background: rgba(184, 212, 200, 0.2); }
#dashboard-content .stat-card.info .stat-icon { background: rgba(200, 220, 230, 0.25); }
#dashboard-content .stat-card.warning .stat-icon { background: rgba(230, 220, 205, 0.25); }
#dashboard-content .stat-card.featured .stat-icon { background: rgba(212, 200, 220, 0.2); }

#dashboard-content .stat-card .stat-content h3 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--insight-text-muted);
    margin-bottom: 6px;
}

#dashboard-content .stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5A6B6B;
}

#dashboard-content .stat-card .sub-text {
    font-size: 0.75rem;
    color: var(--insight-text-muted);
}

#dashboard-content .dashboard-grid {
    gap: 16px;
    margin-bottom: 28px;
}

/* 실시간 현황 섹션 */
#dashboard-content .insights-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #5A6B6B;
    margin-bottom: 18px;
}

#dashboard-content .insight-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px 18px;
    border-left: 3px solid rgba(109, 152, 134, 0.4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#dashboard-content .insight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

#dashboard-content .insight-card .insight-header {
    margin-bottom: 10px;
}

#dashboard-content .insight-card .insight-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5A6B6B;
}

#dashboard-content .insight-card:has(.insight-badge.hot) { border-left-color: rgba(184, 212, 200, 0.6); }
#dashboard-content .insight-card:has(.insight-badge.new) { border-left-color: rgba(200, 220, 230, 0.7); }
#dashboard-content .insight-card:has(.insight-badge.warning) { border-left-color: rgba(230, 220, 205, 0.7); }

#dashboard-content .insight-badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    font-weight: 600;
}

#dashboard-content .insight-action a {
    font-size: 0.8rem;
}

#dashboard-content .content-section.modern-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#dashboard-content .insights-grid {
    gap: 16px;
}

#dashboard-content .modern-data-table {
    font-size: 0.85rem;
    color: #5A6B6B;
}

#dashboard-content .modern-data-table th {
    color: #8B9A9A;
}

#dashboard-content .modern-data-table th .th-content {
    color: #8B9A9A !important;
}

#dashboard-content .modern-data-table td {
    color: #5A6B6B;
}

/* 프로젝트 제목·로그 내용(artwork-col) - 인라인 color 오버라이드 */
#dashboard-content .modern-data-table td.artwork-col .th-content,
#dashboard-content .modern-data-table td.artwork-col div,
#dashboard-content .modern-data-table td.artwork-col span {
    color: #5A6B6B !important;
}

/* 기간·시간(tags-col, number-col) - 인사이트 톤 적용 */
#dashboard-content .modern-data-table td.tags-col .th-content,
#dashboard-content .modern-data-table td.tags-col span,
#dashboard-content .modern-data-table td.number-col .th-content,
#dashboard-content .modern-data-table td.number-col span {
    color: #8B9A9A !important;
}

#dashboard-content .modern-data-table th,
#dashboard-content .modern-data-table td {
    padding: 10px 12px;
}

/* 컬렉션 한눈에 테이블 열 너비 고정 */
.modern-data-table th.artwork-col,
.modern-data-table td.artwork-col {
    width: 30%;
}

.modern-data-table th.tags-col,
.modern-data-table td.tags-col {
    width: 18%;
    min-width: 18%;
    max-width: 18%;
}

.modern-data-table th.number-col,
.modern-data-table td.number-col,
.modern-data-table th.percentage-col,
.modern-data-table td.percentage-col,
.modern-data-table th.action-col,
.modern-data-table td.action-col {
    width: 10.4%;
}

/* 분석 차트 섹션 통일 (상관관계·조형요소 등) - 폰트 색상 일치 */
#analytics-content .section-header-modern h2 {
    color: #5A6B6B;
    font-weight: 600;
}

.analytics-chart-section .section-header-modern {
    margin-bottom: 24px;
}
.analytics-chart-section .charts-grid {
    margin-top: 24px;
}
.analytics-chart-section .chart-card-full {
    margin-top: 24px;
    width: 100%;
    min-height: 420px;
}
.analytics-chart-section #like-correlation-scatter-container.unified-chart-card {
    min-height: 580px;
    height: 580px;
    padding: 4px 6px 6px;
}
.analytics-chart-section .modern-table-container {
    margin-top: 24px;
}
.analytics-chart-section.tag-treemap-section .tag-treemap-chart-card {
    margin-top: 24px;
}
.analytics-chart-section .insight-box {
    margin-top: 0;
    margin-bottom: 24px;
}

/* 모던 섹션 헤더 */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header-modern h2 {
    margin: 0;
    color: var(--text-primary-color);
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(109, 152, 134, 0.35);
}

/* 활동 로그 */
.activity-log {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(109, 152, 134, 0.04);
    border-radius: 8px;
    margin: 0 -8px;
    padding: 16px 8px;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.activity-icon.view { background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(25, 118, 210, 0.1)); }
.activity-icon.like { background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(173, 20, 87, 0.1)); }
.activity-icon.replay { background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1)); }
.activity-icon.admin { background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(245, 124, 0, 0.1)); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary-color);
    margin-bottom: 4px;
    font-size: 0.95em;
}

.activity-desc {
    color: var(--text-secondary-color);
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 4px;
}

.activity-time {
    color: var(--text-disabled-color);
    font-size: 0.8em;
    font-weight: 500;
}


/* 상태 그리드 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary-color);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.status-badge.moderate {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.status-badge.secure {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.status-label {
    color: var(--text-secondary-color);
    font-size: 0.9em;
}

.status-value {
    color: var(--text-primary-color);
    font-weight: 600;
    font-size: 0.9em;
}

/* 진행률 바 */
.progress-item {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.progress-label span:first-child {
    color: var(--text-secondary-color);
}

.progress-label span:last-child {
    color: var(--text-primary-color);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 상태 카드 색상 테마 */
.status-card.healthy {
    border-left: 4px solid #4CAF50;
}

.status-card.warning-level {
    border-left: 4px solid #FF9800;
}

.status-card.info-level {
    border-left: 4px solid #2196F3;
}

/* 모던 섹션 스타일 */
.modern-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

/* Chart Placeholder & Simulation (기존 시뮬레이션 영역 스타일) */
.chart-placeholder {
    min-height: 250px; /* Minimum height for the placeholder */
    /* Removed background-color: #ecf0f1; */ /* 배경색 제거 */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    border-radius: var(--border-radius);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border: 1px dashed var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* 아래 analytics-chart-container 와 병합하거나 역할 분담 필요 */
}

.chart-title {
    font-weight: 600;
    font-style: normal;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    width: 95%;
    justify-content: center;
}

.chart-title .icon {
    margin-left: 8px;
    font-size: 1.1em;
    font-style: normal;
}

.chart-purpose {
    font-style: normal;
    font-size: 0.9em;
    max-width: 95%;
    line-height: 1.5;
    text-align: left;
    margin-top: 20px;
    width: 100%;
}

/* --- Chart.js 관련 스타일 및 컨테이너 --- */

/* Chart.js 캔버스를 감싸는 컨테이너 공통 스타일 */
.analytics-chart-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--base-padding);
    margin-top: var(--content-padding); /* 섹션 간격 유지 */
    /* margin-bottom 제거: 높이 조절로 해결 */
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative; /* 내부 요소(캔버스) 크기 조절 기준 */
    min-height: 300px; /* 최소 높이 설정 (기본) */
    /* *** 기본 최대 높이 증가 *** */
    max-height: 500px; /* <<< 기본 최대 높이를 450px -> 500px 로 증가 */
    overflow: hidden; /* <<< 중요: 내용 넘칠 경우 숨김 */
}

.analytics-chart-container h3 { /* 차트 컨테이너 제목 */
    font-size: 1.1em;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--base-padding);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary-color);
    flex-shrink: 0; /* 제목은 줄어들지 않도록 */
}

/* 캔버스 자체에 대한 스타일 (Chart.js가 생성) */
.analytics-chart-container canvas {
    max-width: 100%; /* 너비는 컨테이너에 맞춤 */
    /* height: auto; */ /* 높이는 JS 옵션(maintainAspectRatio)과 CSS max-height로 조절 */
    /* Chart.js 옵션 maintainAspectRatio: false 일 때 CSS 높이 적용 가능 */
    /* max-height 설정은 위의 .analytics-chart-container 에서 제어 */
}

/* 분석 목적 텍스트 스타일 (기존 .chart-purpose 와 유사하게) */
.analytics-chart-container .chart-purpose {
    margin-top: var(--base-padding);
    font-size: 0.85em; /* 약간 작게 */
    color: var(--text-secondary-color);
    text-align: left;
    line-height: 1.6;
}


/* --- *** 분석 섹션 그리드 레이아웃 *** --- */
.analytics-grid {
    display: grid;
    /* 2열 그리드, 반응형 고려 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 최소 300px, 공간 있으면 1fr */
    gap: var(--content-padding); /* 그리드 아이템 간 간격 */
    margin-top: var(--content-padding); /* 위쪽 섹션과의 간격 */
}

/* 그리드 내의 각 차트 컨테이너 조정 (필요시) */
.analytics-grid .analytics-chart-container {
    margin-top: 0; /* 그리드 갭으로 간격 대체 */
    /* 필요하다면 특정 차트 컨테이너의 grid-column 속성 등으로 위치/크기 조정 */
    /* 예: #like-correlation-scatter-container { grid-column: span 2; } */
}


/* --- 특정 분석 컨테이너 추가 스타일 --- */

/* 이동 시간 테이블 컨테이너 */
#travel-time-heatmap-container {
    max-height: 450px;
    /* margin-bottom 제거 */
}
#travel-time-heatmap-container .table-container {
    max-height: 350px;
    margin-top: 10px;
}

/* 경로 목록 컨테이너 */
#path-visualization-container {
     max-height: 450px;
     /* margin-bottom 제거 */
}
#path-visualization-container ol {
    padding-left: 20px;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 10px;
}
#path-visualization-container li {
    margin-bottom: 8px;
    font-size: 0.9em;
}


/* 가로 막대 차트 (좋아요 비교) 컨테이너 높이 조정 */
#like-bar-chart-container {
    min-height: 350px;
    max-height: 600px; /* <<< 550px -> 600px 로 증가 */
    /* margin-bottom 제거 */
}

/* 산점도 컨테이너 - 통일된 chart-card 레이아웃 내부 (unified-chart-card로 적용됨) */
#like-correlation-scatter-container:not(.unified-chart-card) {
    min-height: 380px;
    max-height: none;
    overflow: visible;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 28px 24px;
}
#like-correlation-scatter-container:not(.unified-chart-card) h3 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid rgba(99, 102, 241, 0.5);
    padding-left: 14px;
}
#like-correlation-scatter-container:not(.unified-chart-card) .bubble-chart-canvas-wrapper {
    width: 100%;
    height: 420px;
    position: relative;
    flex-shrink: 0;
}
#like-correlation-scatter-container:not(.unified-chart-card) .bubble-chart-canvas-wrapper canvas {
    border-radius: 10px;
    width: 100% !important;
    height: 100% !important;
    display: block;
}
#like-correlation-scatter-container:not(.unified-chart-card) .chart-insight {
    margin-top: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    flex-shrink: 0;
}

/* '다시보기' 분석 차트 컨테이너 */
#replay-analysis-chart-container {
    max-height: 550px; /* <<< 450px -> 550px 로 증가 */
    /* margin-bottom 제거 */
}


/* 기존 차트 영역 (캔버스로 대체된 경우) */
#ar-type-interaction-chart,
#exhibition-ar-runs-chart,
#exhibition-avg-time-chart,
#weekly-ar-trend-chart,
#monthly-avg-time-chart {
    /* 캔버스 자체보다는 부모 컨테이너(.analytics-chart-container)의 크기를 조절 */
    max-height: 500px;
}

/* 애니메이션 및 반응형 디자인 */

/* 페이드인 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 대시보드 요소 애니메이션 적용 */
.welcome-section {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }

.insight-card {
    animation: fadeInLeft 0.6s ease-out backwards;
}

.insight-card:nth-child(1) { animation-delay: 0.2s; }
.insight-card:nth-child(2) { animation-delay: 0.4s; }
.insight-card:nth-child(3) { animation-delay: 0.6s; }

.activity-item {
    animation: slideInRight 0.4s ease-out backwards;
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4) { animation-delay: 0.4s; }

.status-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.status-card:nth-child(1) { animation-delay: 0.2s; }
.status-card:nth-child(2) { animation-delay: 0.4s; }
.status-card:nth-child(3) { animation-delay: 0.6s; }

.stat-card .value {
    animation: countUp 0.8s ease-out 0.4s backwards;
}

/* 호버 시 추가 효과 */
.quick-action-btn:hover {
    animation: pulse 1.5s infinite;
}

.insight-badge.hot {
    animation: pulse 2s infinite;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .quick-actions {
        justify-content: center;
        width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    
    .stat-card .value {
        font-size: 1.6em;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-header-modern {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 20px;
    }
    
    .welcome-content h2 {
        font-size: 1.5em;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .welcome-content p {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .quick-action-btn {
        padding: 10px 14px;
        font-size: 0.9em;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stat-icon {
        align-self: center;
    }
    
    .insight-card, .status-card, .modern-section {
        padding: 16px;
    }
    
    .activity-item {
        padding: 12px 0;
    }
}

/* === 운영 인사이트 전용 스타일 === */
/* 퓨어·깔끔한 연한 채도 팔레트 (실서비스 수준 통일) */
#analytics-content {
    --insight-pastel-mint: rgba(184, 212, 200, 0.85);
    --insight-pastel-sage: rgba(167, 196, 181, 0.9);
    --insight-pastel-lavender: rgba(212, 200, 220, 0.85);
    --insight-pastel-sky: rgba(200, 220, 230, 0.85);
    --insight-pastel-sand: rgba(230, 220, 205, 0.85);
    --insight-pastel-blush: rgba(230, 210, 215, 0.85);
    --insight-accent: rgba(122, 139, 139, 0.5);
    --insight-accent-strong: rgba(109, 152, 134, 0.35);
    --insight-text-muted: #8B9A9A;
    --insight-border: rgba(184, 212, 200, 0.25);
    --insight-shadow: 0 4px 24px rgba(122, 139, 139, 0.06);
    --insight-shadow-hover: 0 12px 40px rgba(122, 139, 139, 0.1);
}

/* 분석 개요 섹션 */
.analytics-overview {
    margin-bottom: 40px;
}

.overview-header {
    text-align: center;
    margin-bottom: 32px;
}

.overview-header h2 {
    font-size: 2em;
    margin-bottom: 8px;
    color: var(--text-primary-color);
    font-weight: 700;
}

.overview-header p {
    color: var(--text-secondary-color);
    font-size: 1.1em;
    margin: 0;
}

.analytics-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.analytics-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

/* 인사이트 상단 카드 - 슬라이드형 스크롤 애니 */
/* 운영 인사이트 메인 영역 - 슬라이드형 스크롤 애니 */
#analytics-content .content-section.modern-section {
    opacity: 0.15;
    transform: scale(0.97) translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    min-height: calc(100vh - 160px);
    padding-bottom: 72px;
    scroll-margin-top: 120px;
}

#analytics-content .content-section.modern-section.insight-slide-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#analytics-content .content-section.modern-section.insight-slide-active .section-header-modern,
#analytics-content .content-section.modern-section.insight-slide-active .charts-grid,
#analytics-content .content-section.modern-section.insight-slide-active .modern-table-container,
#analytics-content .content-section.modern-section.insight-slide-active .artwork-total-view-wrap,
#analytics-content .content-section.modern-section.insight-slide-active .artwork-total-cards-grid {
    animation: insightContentFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes insightContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insight-slide-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    font-size: 0.9em;
    color: var(--insight-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: insightHintPulse 3s ease-in-out infinite;
}

@keyframes insightHintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

#analytics-content .insight-intro-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

#analytics-content .insight-intro-section::before {
    content: '✦';
    position: absolute;
    top: 20%;
    left: 15%;
    font-size: 2em;
    color: var(--insight-accent);
    animation: introFloat1 8s ease-in-out infinite;
    z-index: 0;
}

#analytics-content .insight-intro-section::after {
    content: '✧';
    position: absolute;
    top: 60%;
    left: 75%;
    font-size: 1.5em;
    color: var(--insight-accent);
    animation: introFloat2 10s ease-in-out infinite;
    z-index: 0;
}

.insight-intro-card::before {
    content: '✦';
    position: absolute;
    top: 35%;
    left: 85%;
    font-size: 2.5em;
    color: var(--insight-accent);
    animation: introFloat3 12s ease-in-out infinite;
    z-index: 0;
}

.insight-intro-card::after {
    content: '✧';
    position: absolute;
    top: 75%;
    left: 20%;
    font-size: 1.8em;
    color: var(--insight-accent);
    animation: introFloat4 9s ease-in-out infinite;
    z-index: 0;
}

@keyframes introFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(30px, -20px) rotate(90deg); opacity: 1; }
    50% { transform: translate(15px, 40px) rotate(180deg); opacity: 0.5; }
    75% { transform: translate(-20px, 10px) rotate(270deg); opacity: 0.8; }
}

@keyframes introFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    33% { transform: translate(-40px, 30px) rotate(120deg); opacity: 1; }
    66% { transform: translate(20px, -25px) rotate(240deg); opacity: 0.4; }
}

@keyframes introFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    40% { transform: translate(-25px, -35px) rotate(144deg); opacity: 0.9; }
    80% { transform: translate(35px, 20px) rotate(288deg); opacity: 0.6; }
}

@keyframes introFloat4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    50% { transform: translate(40px, -40px) rotate(180deg); opacity: 1; }
}

.insight-intro-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.insight-intro-hello {
    margin: 0 0 32px 0;
    font-size: 4.5em;
    font-weight: 300;
    font-family: 'Noto Serif KR', Georgia, serif;
    background: linear-gradient(135deg, #7A8B8B 0%, #8B9A9A 50%, #6D9886 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    animation: introTyping 2s steps(20, end) forwards;
    width: 0;
}

.insight-intro-title {
    margin: 0;
    font-size: 2.2em;
    font-weight: 300;
    font-family: 'Noto Serif KR', Georgia, serif;
    color: var(--insight-text-muted);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    animation: introTyping 2.2s steps(26, end) 2s forwards;
    width: 0;
}

@keyframes introTyping {
    from { 
        width: 0; 
        opacity: 1;
    }
    to { 
        width: 100%; 
        opacity: 1;
    }
}

#analytics-content .charts-grid.two-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto;
}

/* 컬렉션별 비교 데이터 분석 - 프로젝트 선택 드롭다운 숨김 */
.analytics-chart-section .compare-exhibition-filter-wrap {
    display: none !important;
}

/* 컬렉션별 인사이트 - 프로젝트/날짜/태그 필터 숨김 */
.analytics-chart-section .artwork-total-filter-wrap {
    display: none !important;
}

/* 컬렉션별 인사이트 - 우상단 안내 문구 */
.artwork-total-hint {
    font-size: 0.85em;
    color: var(--insight-text-muted, #8B9A9A);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* 컬렉션별 전체 데이터 - 인사이트를 테이블 아래로, chart-insight 스타일 통일 */
.analytics-chart-section .chart-insight.artwork-total-insight {
    margin-top: 16px;
}

/* 컬렉션별 전체 데이터 - 헤더 레이아웃 (제목 + 뷰 토글) */
.artwork-total-header.artwork-total-header {
    flex-wrap: wrap;
    gap: 12px;
}
.artwork-total-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.artwork-total-view-toggle {
    display: flex;
    gap: 0;
    background: rgba(184, 212, 200, 0.15);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid rgba(184, 212, 200, 0.25);
}
.artwork-total-view-toggle .view-toggle-btn {
    padding: 6px 14px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--insight-text-muted, #8B9A9A);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.artwork-total-view-toggle .view-toggle-btn:hover {
    color: #5A6B6B;
}
.artwork-total-view-toggle .view-toggle-btn.active {
    background: #FFFFFF;
    color: var(--primary-color, #6D9886);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 컬렉션별 전체 데이터 - 뷰 래퍼 */
.artwork-total-view-wrap {
    margin-top: 24px;
}
.artwork-total-section .artwork-total-view-wrap .modern-table-container {
    margin-top: 0;
}
.artwork-total-card-view {
    display: none;
}
.artwork-total-card-view[aria-hidden="false"] {
    display: block;
}

/* 컬렉션별 전체 데이터 - 테이블 뷰 강화 (썸네일, 행 호버) */
#artwork-statistics-body .table-row {
    border-left: 3px solid transparent;
    background: linear-gradient(to right,
        rgba(109, 152, 134, 0.02) 0%,
        rgba(109, 152, 134, 0.04) 18%,
        rgba(109, 152, 134, 0.02) 28%,
        rgba(109, 152, 134, 0.06) 38%,
        rgba(109, 152, 134, 0.03) 48%,
        rgba(109, 152, 134, 0.07) 58%,
        rgba(109, 152, 134, 0.02) 68%,
        rgba(109, 152, 134, 0.05) 78%,
        rgba(109, 152, 134, 0.04) 88%,
        rgba(109, 152, 134, 0.04) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left top;
    transition: border-left-color 0.25s ease, background-size 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease, box-shadow 0.25s ease;
}
#artwork-statistics-body .table-row:hover {
    background-size: 100% 100%;
    border-left-color: var(--insight-accent-strong, rgba(109, 152, 134, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
#artwork-statistics-body .artwork-thumbnail.artwork-thumbnail-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}
#artwork-statistics-body .artwork-thumbnail.artwork-thumbnail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 컬렉션 한눈에 테이블 - 태그 위치 미세 조정 */
#artwork-statistics-body td.tags-cell .tag-list {
    margin-top: 0px;
}
.tag-more {
    font-size: 0.75em;
    color: var(--insight-text-muted, #8B9A9A);
    margin-left: 4px;
    vertical-align: middle;
}

/* 컬렉션별 전체 데이터 - 카드 뷰 */
.artwork-total-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: 550px;
    overflow-y: auto;
}
.artwork-total-cards-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--insight-text-muted, #8B9A9A);
    font-size: 0.95em;
}
.artwork-total-card {
    background: #FFFFFF;
    border: 1px solid rgba(184, 212, 200, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(122, 139, 139, 0.06);
}
.artwork-total-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(122, 139, 139, 0.12);
    border-color: rgba(109, 152, 134, 0.4);
}
.artwork-total-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.2) 0%, rgba(212, 200, 220, 0.1) 100%);
}
.artwork-total-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.artwork-total-card:hover .artwork-total-card-thumb img {
    transform: scale(1.05);
}
.artwork-total-card-body {
    padding: 16px;
}
.artwork-total-card-title {
    font-size: 1em;
    font-weight: 600;
    color: #5A6B6B;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.artwork-total-card-title:hover {
    color: var(--primary-color, #6D9886);
}
.artwork-total-card-meta {
    font-size: 0.8em;
    color: var(--insight-text-muted, #8B9A9A);
    margin-bottom: 10px;
}
.artwork-total-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

/* 카드 태그 회전 애니메이션용 고정 높이 */
.artwork-total-card-tags.tag-rotating {
    min-height: 28px;
    max-height: 28px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.artwork-total-card-tags .analytics-tag {
    margin: 0;
}
.artwork-total-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.artwork-total-card-metric {
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.1) 0%, rgba(212, 200, 220, 0.06) 100%);
    border-radius: 8px;
    text-align: center;
}
.artwork-total-card-metric .metric-label {
    display: block;
    font-size: 0.7em;
    color: var(--insight-text-muted, #8B9A9A);
    margin-bottom: 2px;
}
.artwork-total-card-metric .metric-val {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-secondary-color);
}

/* 컬렉션별 전체 데이터 - 반응형: 모바일 카드 뷰만 */
@media (max-width: 768px) {
    .artwork-total-view-toggle {
        display: none;
    }
    .artwork-total-view-wrap .artwork-total-table-view {
        display: none !important;
    }
    .artwork-total-view-wrap .artwork-total-card-view {
        display: block !important;
    }
    .artwork-total-view-wrap .artwork-total-card-view[aria-hidden="true"] {
        display: block !important;
    }
    .artwork-total-cards-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }
}

/* 한 프로젝트 내 컬렉션 비교 3개 차트 - 슬라이드에 꽉 차도록 세로 길게 */
.charts-grid.compare-three-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 24px;
    margin-top: 24px;
    min-height: 500px;
}

.chart-card.compare-chart-card {
    height: 500px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--insight-border);
    box-shadow: var(--insight-shadow);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card.compare-chart-card:hover {
    box-shadow: var(--insight-shadow-hover);
    border-color: rgba(184, 212, 200, 0.4);
}

.chart-card.compare-chart-card .chart-canvas-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    max-height: 360px;
    overflow: hidden;
}

.chart-card.compare-chart-card .chart-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 360px !important;
}

.chart-card.compare-chart-card .chart-insight {
    margin-top: 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.12) 0%, rgba(212, 200, 220, 0.08) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--insight-accent-strong);
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .charts-grid.compare-three-charts {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .chart-card.compare-chart-card {
        height: 440px;
        min-height: 440px;
    }
}

/* 컬렉션순위 슬라이드 - 카드 형태 + 좌우 버튼 */
.artwork-ranking-section .artwork-ranking-hint {
    font-size: 0.85em;
    color: var(--insight-text-muted, #8B9A9A);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
/* 태그 트리맵 섹션 - 프로젝트 인기 TOP과 동일 hint 스타일 */
.tag-treemap-section .tag-treemap-hint {
    font-size: 0.85em;
    color: var(--insight-text-muted, #8B9A9A);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.artwork-ranking-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    position: relative;
}
.artwork-ranking-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--insight-border, rgba(184, 212, 200, 0.4));
    background: #FFFFFF;
    color: #5A6B6B;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(122, 139, 139, 0.08);
}
.artwork-ranking-nav:hover {
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.2) 0%, rgba(212, 200, 220, 0.1) 100%);
    border-color: var(--insight-accent-strong, rgba(109, 152, 134, 0.5));
    box-shadow: 0 4px 20px rgba(122, 139, 139, 0.12);
}
.artwork-ranking-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.artwork-ranking-slider {
    flex: 1;
    overflow: hidden;
    min-height: 240px;
}
.artwork-ranking-cards {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.artwork-ranking-card {
    flex: 0 0 65%;
    width: 65%;
    min-width: 0;
    padding: 12px;
    transition: filter 0.35s ease, opacity 0.35s ease;
}
.artwork-ranking-card.artwork-ranking-card-blurred {
    filter: blur(4px);
    opacity: 0.75;
}
.artwork-ranking-card.artwork-ranking-card-current {
    filter: none;
    opacity: 1;
}
.artwork-ranking-card-inner {
    background: #FFFFFF;
    border: 1px solid var(--insight-border);
    box-shadow: var(--insight-shadow);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}
.artwork-ranking-hover-insight {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, rgba(109, 152, 134, 0.96) 0%, rgba(88, 130, 160, 0.94) 50%, rgba(74, 144, 226, 0.92) 100%);
    color: #FFFFFF;
    font-size: 1.12em;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
    z-index: 2;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.artwork-ranking-hover-insight-text {
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.artwork-ranking-hover-insight-text.insight-slide-out,
.insight-panel-cycle-text.insight-slide-out {
    opacity: 0;
    transform: translateY(-6px);
}
.artwork-ranking-hover-insight-text.insight-slide-in,
.insight-panel-cycle-text.insight-slide-in {
    animation: artworkInsightSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.insight-panel-cycle-text {
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@keyframes artworkInsightSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.artwork-ranking-card-inner:hover .artwork-ranking-hover-insight {
    opacity: 1;
    visibility: visible;
}
.artwork-ranking-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.15) 0%, rgba(212, 200, 220, 0.1) 100%);
    flex-shrink: 0;
}
.artwork-ranking-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.artwork-ranking-card-inner:hover {
    box-shadow: var(--insight-shadow-hover);
    border-color: rgba(184, 212, 200, 0.4);
}
.artwork-ranking-card-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(109, 152, 134, 0.2) 0%, rgba(184, 212, 200, 0.15) 100%);
    color: var(--insight-accent-strong, #6D9886);
    font-weight: 700;
    font-size: 1em;
}
.artwork-ranking-card-title {
    margin: 0;
    font-size: 1.08em;
    font-weight: 600;
    color: #5A6B6B;
    letter-spacing: 0.02em;
}
.artwork-ranking-card-meta {
    font-size: 0.85em;
    color: var(--insight-text-muted, #8B9A9A);
}
.artwork-ranking-card-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.artwork-ranking-metric {
    padding: 8px;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.1) 0%, rgba(212, 200, 220, 0.06) 100%);
    border-radius: 8px;
    text-align: center;
}
.artwork-ranking-metric-label {
    font-size: 0.7em;
    color: var(--insight-text-muted);
}
.artwork-ranking-metric-value {
    font-size: 0.85em;
    font-weight: 600;
    color: #5A6B6B;
}
.artwork-ranking-indicator {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9em;
    color: var(--insight-text-muted);
}
.artwork-ranking-section .section-header-modern {
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .artwork-ranking-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .artwork-ranking-card-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 통일된 2열 차트 그리드 (상관관계·태그) */
.charts-grid.chart-grid-unified {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 24px;
    min-height: 420px;
}

.chart-card.unified-chart-card {
    height: 420px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #ffffff 0%, rgba(248, 250, 252, 0.98) 50%, rgba(241, 245, 249, 0.95) 100%);
    border: 1px solid rgba(184, 212, 200, 0.32);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(122, 139, 139, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card.unified-chart-card:hover {
    box-shadow: 0 12px 40px rgba(122, 139, 139, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(184, 212, 200, 0.45);
}

.chart-card.unified-chart-card .chart-canvas-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    max-height: 320px;
    overflow: hidden;
}

.chart-card.unified-chart-card .chart-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 320px !important;
}

/* 상관관계 버블 차트 - Chart.js 기본 툴팁(숫자 말풍선) 숨김, 사이드 패널만 사용 */
.chart-card.unified-chart-card#like-correlation-scatter-container .chartjs-tooltip,
.chart-card.unified-chart-card#like-correlation-scatter-container [id*="chartjs-tooltip"] {
    display: none !important;
}

/* 상관관계 버블 차트 - 레이아웃 (차트 + 사이드 패널) */
.chart-card.unified-chart-card#like-correlation-scatter-container .bubble-chart-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    gap: 16px;
    margin-top: 14px;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .bubble-chart-canvas-wrapper {
    flex: 1 1 auto;
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

/* 사이드 패널 */
.chart-card.unified-chart-card#like-correlation-scatter-container .bubble-chart-side-panel {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    padding: 8px;
    overflow: hidden;
    min-height: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.7);
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-placeholder.side-panel-placeholder-visible {
    opacity: 1;
    transform: translateY(0);
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-content {
    display: none;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 0;
    flex: 1;
    justify-content: flex-start;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-content.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 130px;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-title {
    font-size: 0.98em;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-insight {
    font-size: 0.86em;
    color: #475569;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    flex-shrink: 0;
    min-height: 0;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .side-panel-ratio {
    font-size: 0.82em;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
    flex-shrink: 0;
    min-height: 0;
}

@media (max-width: 900px) {
    .chart-card.unified-chart-card#like-correlation-scatter-container .bubble-chart-layout {
        flex-direction: column;
    }
    .chart-card.unified-chart-card#like-correlation-scatter-container .bubble-chart-side-panel {
        width: 100%;
        min-height: 120px;
    }
}

.chart-card.unified-chart-card#like-correlation-scatter-container .bubble-chart-canvas-wrapper canvas {
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .chart-header {
    margin-bottom: 0;
    padding: 10px 12px 10px;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .chart-header h3 {
    font-size: 0.98em;
    color: #5A6B6B;
}

.chart-card.unified-chart-card#like-correlation-scatter-container .chart-insight {
    margin-top: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.15) 0%, rgba(212, 200, 220, 0.1) 50%, rgba(200, 220, 230, 0.06) 100%);
    border-radius: 12px;
    border: 1px solid rgba(184, 212, 200, 0.2);
    border-left: 4px solid var(--insight-accent-strong, rgba(109, 152, 134, 0.5));
    box-shadow: 0 2px 8px rgba(122, 139, 139, 0.04);
    flex-shrink: 0;
}

/* 태그 트리맵 (unified 내부) */
.chart-card.unified-chart-card.tag-treemap-chart-card .tag-treemap-canvas-wrapper {
    flex: 1;
    min-height: 320px;
    height: auto;
}

@media (max-width: 1200px) {
    .charts-grid.chart-grid-unified {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .chart-card.unified-chart-card {
        height: 360px;
        min-height: 360px;
    }
}

.analytics-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.analytics-stat-card.primary::before { background: linear-gradient(90deg, rgba(167, 196, 181, 0.9), rgba(184, 212, 200, 0.9)); }
.analytics-stat-card.success::before { background: linear-gradient(90deg, rgba(184, 212, 200, 0.9), rgba(200, 220, 230, 0.9)); }
.analytics-stat-card.info::before { background: linear-gradient(90deg, rgba(200, 220, 230, 0.9), rgba(212, 200, 220, 0.9)); }
.analytics-stat-card.warning::before { background: linear-gradient(90deg, rgba(230, 220, 205, 0.9), rgba(230, 210, 215, 0.9)); }

.analytics-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* 필터 스타일 */
.analytics-filters {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-secondary-color);
}

.modern-select, .modern-input {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-primary-color);
    font-size: 0.9em;
    transition: all 0.3s ease;
    min-width: 140px;
}

.modern-select:focus, .modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 152, 134, 0.1);
}

/* 인사이트 박스 */
.insight-box {
    background: linear-gradient(135deg, rgba(109, 152, 134, 0.12) 0%, rgba(184, 212, 200, 0.08) 40%, rgba(212, 200, 220, 0.06) 100%);
    border: 1px solid rgba(184, 212, 200, 0.25);
    border-left: 4px solid var(--insight-accent-strong, rgba(109, 152, 134, 0.5));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.insight-box:hover {
    border-color: rgba(109, 152, 134, 0.35);
    border-left-color: var(--primary-color, #6D9886);
    box-shadow: 0 4px 20px rgba(122, 139, 139, 0.08);
}

.insight-box .insight-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: linear-gradient(135deg, rgba(109, 152, 134, 0.2) 0%, rgba(134, 168, 151, 0.15) 100%);
    color: var(--primary-color, #6D9886);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(109, 152, 134, 0.12);
}

.insight-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.insight-content {
    color: var(--text-secondary-color);
    line-height: 1.6;
    flex: 1;
}

.insight-content strong {
    color: var(--text-primary-color);
}

/* 현대적인 테이블 스타일 */
.modern-table-container {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(122, 139, 139, 0.06);
    border: 1px solid rgba(184, 212, 200, 0.2);

    overflow-y: auto;
    overflow-x: hidden;
    max-height: 550px;
}

.modern-data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;

    border-collapse: separate;
}

.modern-data-table thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modern-data-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #6B7280;
    font-size: 0.9em;
    border-bottom: 2px solid var(--border-color);

    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-icon {
    font-size: 0.8em;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sort-icon:hover {
    opacity: 1;
}

.modern-data-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.table-row:hover {
    background: rgba(109, 152, 134, 0.02);
}

/* 컬렉션 정보 셀 */
.artwork-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artwork-thumbnail {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.artwork-details {
    min-width: 0;
}

.artwork-title {
    font-weight: 600;
    color: var(--text-primary-color);
    margin-bottom: 4px;
    font-size: 0.95em;
}

/* 컬렉션별 전체 데이터: 컬렉션명 카드와 동일 스타일 (볼드, 색상) */
#artwork-statistics-body .artwork-title {
    font-weight: 600;
    color: #5A6B6B;
}

.artwork-meta {
    color: var(--text-secondary-color);
    font-size: 0.8em;
}

/* 태그 스타일 */
.analytics-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    color: white;
    margin: 2px;
    white-space: nowrap;
    text-align: center;
}

.analytics-tag.small { padding: 2px 5px; font-size: 0.7em; }
.analytics-tag.large { padding: 5px 10px; font-size: 0.85em; }

/* 태그 rotation용 고정 크기 (너비 변동 방지) */
.analytics-tag.tag-size-fixed {
    min-width: 50px;
    max-width: 92px;
    height: 22px;
    line-height: 22px;
    font-size: 0.7em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-tag.modern { background: linear-gradient(135deg, #A5B4FC, #818CF8); }
.analytics-tag.ar { background: linear-gradient(135deg, #A7F3D0, #6EE7B7); }
.analytics-tag.interactive { background: linear-gradient(135deg, #FECACA, #FDBA74); }
.analytics-tag.nature { background: linear-gradient(135deg, #BBF7D0, #86EFAC); }
.analytics-tag.painting { background: linear-gradient(135deg, #E9D5FF, #C4B5FD); }
.analytics-tag.landscape { background: linear-gradient(135deg, #FED7AA, #FDBA74); }
.analytics-tag.tech { background: linear-gradient(135deg, #BFDBFE, #93C5FD); }
.analytics-tag.digital { background: linear-gradient(135deg, #FBCFE8, #F9A8D4); }

/* 태그 rotation 애니메이션 */
.tag-fade-out {
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* 태그 회전 애니메이션용 고정 높이 (너비 변동 방지) */
.tag-list.tag-rotating {
    min-height: 28px;
    max-height: 28px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* 태그 호버 인사이트 (프로젝트 인기 TOP과 동일 디자인) */
.analytics-tag-wrap {
    position: relative;
    display: inline-block;
}
.analytics-tag-hover-insight {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    padding: 14px 18px;
    background: linear-gradient(160deg, rgba(109, 152, 134, 0.96) 0%, rgba(88, 130, 160, 0.94) 50%, rgba(74, 144, 226, 0.92) 100%);
    color: #FFFFFF;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}
.analytics-tag-hover-insight::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(88, 130, 160, 0.94);
}
.analytics-tag-hover-insight-text {
    display: block;
    animation: tagInsightSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes tagInsightSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.analytics-tag-wrap:hover .analytics-tag-hover-insight {
    opacity: 1;
    visibility: visible;
}

/* 컬렉션별 전체 데이터: 태그 데이터 볼드 제거 */
#artwork-statistics-body .analytics-tag {
    font-weight: 400;
}

/* 수치 셀 */
.metric-value {
    font-weight: 700;
    color: var(--text-primary-color);
    font-size: 1em;
    margin-bottom: 2px;
}

/* 컬렉션별 전체 데이터: 수치 데이터 볼드 제거, artwork-meta와 동일 채도 */
#artwork-statistics-body .metric-value {
    font-weight: 400;
    color: var(--text-secondary-color);
}

.metric-value.high {
    color: #4CAF50;
}

.metric-trend {
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.metric-trend.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.metric-trend.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.metric-trend.neutral {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

/* 퍼센티지 표시 */
.percentage-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.percentage-value {
    font-weight: 700;
    font-size: 0.95em;
}

.percentage-display.high .percentage-value { color: #4CAF50; }
.percentage-display.medium .percentage-value { color: #FF9800; }
.percentage-display.low .percentage-value { color: #F44336; }

.percentage-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.percentage-display.high .percentage-fill { background: linear-gradient(90deg, #4CAF50, #45a049); }
.percentage-display.medium .percentage-fill { background: linear-gradient(90deg, #FF9800, #F57C00); }
.percentage-display.low .percentage-fill { background: linear-gradient(90deg, #F44336, #D32F2F); }

/* 추천사항 */
.recommendation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 500;
}

.recommendation.excellent {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.recommendation.good {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.recommendation.attention {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.rec-icon {
    font-size: 1em;
}

.rec-text {
    white-space: nowrap;
}

/* 차트 그리드 */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    flex: 1;
    max-height: 280px !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary-color);
}

.chart-period {
    font-size: 0.8em;
    color: var(--text-secondary-color);
    background: rgba(109, 152, 134, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

/* 상관관계 · 태그 트리맵 차트 기간 레이블 스타일 통일 (태그처럼 여백) */
.chart-card.unified-chart-card#like-correlation-scatter-container .chart-period,
.tag-treemap-chart-card .chart-period {
    font-size: 0.8em;
    color: var(--text-secondary-color);
    background: rgba(109, 152, 134, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    margin: 4px 0;
}

/* 태그 분석 콘텐츠 */
.tag-analytics-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

/* 태그 분석 콘텐츠 스크롤바 스타일 */
.tag-analytics-content::-webkit-scrollbar {
    width: 6px;
}

.tag-analytics-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.tag-analytics-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.tag-analytics-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 태그 순위 트리맵 (2D 격자형) */
.tag-treemap-section {
    margin-top: 32px;
}

.tag-treemap-chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.tag-treemap-chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tag-treemap-chart-card .chart-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #5A6B6B;
}

.tag-treemap-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.tag-treemap-canvas-wrapper {
    flex: 1;
    min-width: 0;
    height: 420px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tag-treemap-grid-bg {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 10% 10%;
}

.tag-treemap-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.tag-treemap-chart-card .chart-insight {
    margin-top: 12px;
    padding: 14px 18px;
}

/* 태그 트리맵 - 사이드 패널 (호버 인사이트) */
.tag-treemap-side-panel {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(160deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.96) 50%, rgba(226, 232, 240, 0.94) 100%);
    border-radius: 14px;
    border: 1px solid rgba(184, 212, 200, 0.3);
    box-shadow: 0 4px 20px rgba(122, 139, 139, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.tag-treemap-panel-placeholder {
    color: var(--insight-text-muted, #94A3B8);
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-treemap-panel-placeholder.tag-treemap-panel-placeholder-visible {
    opacity: 1;
    transform: translateY(0);
}

.tag-treemap-panel-content {
    display: none;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-treemap-panel-content.tag-treemap-panel-content-visible {
    opacity: 1;
    transform: translateY(0);
}

.tag-treemap-panel-fixed {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tag-treemap-panel-rank {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--primary-color, #6D9886);
    letter-spacing: 0.05em;
}
.tag-treemap-panel-percent {
    font-size: 0.88em;
    font-weight: 700;
    color: #334155;
}
.tag-treemap-panel-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #64748B;
    line-height: 1.35;
}

.tag-treemap-panel-insight {
    font-size: 0.88em;
    color: #475569;
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px solid rgba(184, 212, 200, 0.25);
    white-space: pre-line;
    word-break: keep-all;
}
.tag-treemap-panel-insight .insight-panel-cycle-text {
    white-space: pre-line;
    word-break: keep-all;
}

@media (max-width: 900px) {
    .tag-treemap-layout {
        flex-direction: column;
    }
    .tag-treemap-side-panel {
        width: 100%;
        min-height: 140px;
    }
}

.tag-metric {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.tag-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tag-rank {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
    flex-shrink: 0;
}

.tag-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-count {
    font-size: 0.85em;
    color: var(--text-secondary-color);
    align-self: flex-end;
}

.tag-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.tag-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* 태그 상세 분석 */
.tag-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tag-detail-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-detail-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.tag-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tag-trend {
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.tag-trend.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.tag-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.tag-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-secondary-color);
    font-size: 0.9em;
}

.stat-value {
    color: var(--text-primary-color);
    font-weight: 600;
    font-size: 0.9em;
}

.tag-related {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.related-label {
    color: var(--text-secondary-color);
    font-size: 0.85em;
    margin-right: 8px;
}

/* ====================================
   컬렉션 상세 모달 - 가로/세로 크기 확대
   ==================================== */
#artwork-detail-modal .modal-container {
    max-width: 1300px;
    width: 95%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

#artwork-detail-modal .modal-header {
    flex-shrink: 0;
}

#artwork-detail-modal .modal-body {
    flex: 1;
    min-height: 0;
    max-height: none;
}

#artwork-detail-modal .modal-footer {
    flex-shrink: 0;
}

/* 작품별 상세데이터 그래프 - 인사이트 색톤 적용 (#5A6B6B, #8B9A9A) */
#artwork-detail-modal .modal-header-text {
    flex: 1;
    min-width: 0;
}
#artwork-detail-modal .modal-title {
    color: #5A6B6B;
}
#artwork-detail-modal .modal-chart-hover-hint {
    margin: 0;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.9em;
    color: #8B9A9A;
    font-weight: 500;
    letter-spacing: 0.02em;
    align-self: center;
}

#artwork-detail-modal .temp-title-group h3 {
    color: #5A6B6B;
}

#artwork-detail-modal .temp-subtitle {
    color: #8B9A9A;
}

#artwork-detail-modal .slide-nav-hint {
    color: #8B9A9A;
}

#artwork-detail-modal .top-chart-card:has(#duration-ratio-chart) .chart-container::before {
    color: #5A6B6B;
}

#artwork-detail-modal .top-chart-card:has(#duration-ratio-chart) .chart-container::after {
    color: #8B9A9A;
}

#artwork-detail-modal .insight-item .insight-text {
    color: #5A6B6B;
}

#artwork-detail-modal .insight-item .insight-text strong {
    color: #5A6B6B;
}

/* 모달 차트 툴팁 - 강화된 디자인 (컨설팅 포함) */
#artwork-detail-modal .chartjs-tooltip {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.modal-chart-tooltip {
    position: fixed;
    z-index: 10000;
    padding: 14px 18px;
    background: rgba(248, 251, 249, 0.98);
    border: 1px solid rgba(184, 212, 200, 0.4);
    border-radius: 12px;
    border-left: 4px solid rgba(109, 152, 134, 0.5);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 600;
    color: #5A6B6B;
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.94) translateY(6px);
    transform-origin: top left;
    overflow: visible;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    width: max-content;
}
.modal-chart-tooltip.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.modal-chart-tooltip .tooltip-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #5A6B6B;
}
.modal-chart-tooltip .tooltip-body {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #5A6B6B;
    white-space: nowrap;
}
.modal-chart-tooltip .tooltip-footer {
    font-size: 11px;
    color: #5A6B6B;
    padding-top: 8px;
    border-top: 1px solid rgba(184, 212, 200, 0.3);
    white-space: nowrap;
}

/* ====================================
   슬라이드 전환 (PPT 스타일)
   ==================================== */

#artwork-detail-modal .modal-body.modal-slides-container {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding: 24px 48px 24px 24px;
}

#artwork-detail-modal .modal-slides-wrapper {
    display: block;
}

.modal-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(92vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0 32px 0;
    box-sizing: border-box;
    opacity: 0.2;
    transform: scale(0.94) translateY(8px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.modal-slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-slide .slide-inner {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.modal-slide-divider .slide-inner {
    text-align: center;
}

.divider-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.divider-content-center .divider-icon {
    font-size: 4em;
    margin-bottom: 24px;
    animation: dividerIconPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 16px rgba(122, 139, 139, 0.15));
}

@keyframes dividerIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

.divider-content-center .divider-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #7A8B8B 0%, #6D9886 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-content-center .divider-subtitle {
    font-size: 1.1em;
    color: var(--insight-text-muted);
    margin: 0 0 32px 0;
    font-weight: 500;
}

.divider-content-center .scroll-arrow-down {
    font-size: 2.5em;
    color: var(--insight-accent-strong);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

.divider-content-center.mini .divider-icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.divider-content-center.mini .divider-title {
    font-size: 1.6em;
}

/* 인사이트 메인: 테마 전환 구간 - 인트로와 동일한 ✦✧ 떠다니는 배경 */
.insight-theme-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}
.insight-theme-divider::before {
    content: '✦';
    position: absolute;
    top: 20%;
    left: 15%;
    font-size: 2em;
    color: var(--insight-accent);
    animation: introFloat1 8s ease-in-out infinite;
    z-index: 0;
}
.insight-theme-divider::after {
    content: '✧';
    position: absolute;
    top: 60%;
    left: 75%;
    font-size: 1.5em;
    color: var(--insight-accent);
    animation: introFloat2 10s ease-in-out infinite;
    z-index: 0;
}
.insight-theme-divider .insight-divider-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.insight-theme-divider .insight-divider-inner::before {
    content: '✦';
    position: absolute;
    top: 35%;
    left: 85%;
    font-size: 2.5em;
    color: var(--insight-accent);
    animation: introFloat3 12s ease-in-out infinite;
    z-index: 0;
}
.insight-theme-divider .insight-divider-inner::after {
    content: '✧';
    position: absolute;
    top: 75%;
    left: 20%;
    font-size: 1.8em;
    color: var(--insight-accent);
    animation: introFloat4 9s ease-in-out infinite;
    z-index: 0;
}
.insight-theme-divider .divider-content-center {
    min-height: 280px;
}
.insight-theme-divider .insight-divider-inner .divider-content-center {
    opacity: 0;
    transform: scale(0.9) translateY(35px);
    filter: blur(3px);
    transition: none;
}
.insight-theme-divider.insight-slide-active .insight-divider-inner .divider-content-center {
    animation: themeDividerSinkIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes themeDividerSinkIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.slide-nav-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9em;
    color: #9CA3AF;
    font-weight: 500;
}

/* 슬라이드 인디케이터 (우측) */
.slide-indicators {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.slide-dot:hover {
    border-color: rgba(109, 152, 134, 0.5);
    background: rgba(184, 212, 200, 0.4);
}

.slide-dot.active {
    background: rgba(109, 152, 134, 0.6);
    border-color: rgba(109, 152, 134, 0.6);
    transform: scale(1.3);
}

/* ====================================
   상위 3개 차트 - 한 줄 배치
   ==================================== */

.top-three-charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* 슬라이드 3번 전용: 2열 레이아웃 */
.top-three-charts.two-column-layout {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 48px;
    margin-bottom: 20px;
}

.top-three-charts.two-column-layout .top-chart-card .chart-container {
    max-height: 450px;
}

#artwork-detail-modal .top-three-charts {
    overflow: visible;
}

#artwork-detail-modal .top-chart-card {
    overflow: visible;
}

.top-chart-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.top-chart-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.top-chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

.top-chart-card .chart-header h3 {
    font-size: 1em;
    font-weight: 700;
    color: #5A6B6B;
    margin: 0;
    line-height: 1.4;
}

.top-chart-card .chart-period {
    font-size: 0.75em;
    color: #8B9A9A;
    background: rgba(184, 212, 200, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.top-chart-card .chart-container {
    flex: 1;
    position: relative;
    min-height: 200px;
    margin-bottom: 12px;
}

.top-chart-card .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 컬렉션 상세 모달 슬라이드 1 - 체류시간 도넛 중앙 총 인원수 표시 */
.top-chart-card:has(#duration-ratio-chart) .chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-chart-card:has(#duration-ratio-chart) .chart-container::before {
    content: attr(data-total);
    position: absolute;
    top: 50%;
    left: 66%;
    transform: translate(-50%, -80%);
    font-size: 1.4em;
    font-weight: 800;
    color: #2c3e50;
    pointer-events: none;
    z-index: 1;
}

.top-chart-card:has(#duration-ratio-chart) .chart-container::after {
    content: '명 관람';
    position: absolute;
    top: 50%;
    left: 66%;
    transform: translate(-50%, 25%);
    font-size: 0.95em;
    color: #576574;
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.chart-insight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(184, 212, 200, 0.15) 0%, rgba(212, 200, 220, 0.1) 50%, rgba(200, 220, 230, 0.06) 100%);
    border-radius: 12px;
    border: 1px solid rgba(184, 212, 200, 0.2);
    border-left: 4px solid var(--insight-accent-strong, rgba(109, 152, 134, 0.5));
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(122, 139, 139, 0.04);
}

.chart-insight .insight-icon {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: linear-gradient(135deg, rgba(109, 152, 134, 0.25) 0%, rgba(134, 168, 151, 0.18) 100%);
    color: var(--primary-color, #6D9886);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 4px rgba(109, 152, 134, 0.1);
}

.chart-insight .insight-text {
    font-size: 0.88em;
    color: #5A6B6B;
    line-height: 1.5;
    font-weight: 600;
}

/* ====================================
   컬렉션 온도 추이 Showcase (모달용)
   ==================================== */

.temperature-showcase {
    margin-bottom: 32px;
}

.temperature-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.temperature-card.featured:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.temperature-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    animation: tempPulse 4s ease-in-out infinite;
}

@keyframes tempPulse {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-5%, -5%) scale(1.1); opacity: 0.8; }
}

.temp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    gap: 16px;
}

.temp-icon {
    font-size: 3em;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: tempIconFloat 3s ease-in-out infinite;
}

@keyframes tempIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.temp-title-group {
    flex: 1;
}

.temp-title-group h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.temp-subtitle {
    font-size: 0.9em;
    color: #6B7280;
    font-weight: 500;
}

.current-temp-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.05);
    min-width: 140px;
}

.temp-value {
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.temp-status {
    font-size: 0.95em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
}

.temp-chart-container {
    height: 280px;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.temp-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.temp-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.insight-item.hot {
    border-left-color: #EF4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, white 100%);
}

.insight-item.warm {
    border-left-color: #F59E0B;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, white 100%);
}

.insight-item.cool {
    border-left-color: #3B82F6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, white 100%);
}

.insight-icon {
    font-size: 1.5em;
    line-height: 1;
    flex-shrink: 0;
}

.insight-text {
    font-size: 0.95em;
    color: #374151;
    line-height: 1.5;
    font-weight: 500;
}

.insight-text strong {
    font-weight: 700;
    color: #111827;
}

/* 프로젝트별 차트 그리드 */
.exhibition-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.exhibition-chart-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.exhibition-chart-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.exhibition-chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.exhibition-chart-card .chart-header h3 {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary-color);
}

.exhibition-chart-card .chart-period {
    font-size: 0.75em;
    color: var(--text-secondary-color);
    background: rgba(109, 152, 134, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.exhibition-chart-card .chart-container {
    flex: 1;
    position: relative;
    min-height: 0;
}

.exhibition-chart-card canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 200px !important;
}

/* 차트 카드별 색상 테마 */
.exhibition-chart-card:nth-child(1) {
    border-left: 4px solid #667eea;
}

.exhibition-chart-card:nth-child(1) .chart-period {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.exhibition-chart-card:nth-child(2) {
    border-left: 4px solid #4CAF50;
}

.exhibition-chart-card:nth-child(2) .chart-period {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

/* 도넛 차트 특별 스타일 */
.exhibition-chart-card:nth-child(2) .chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 도넛 차트 중앙 정보 */
.exhibition-chart-card:nth-child(2) .chart-container::before {
    content: attr(data-total);
    position: absolute;
    top: 50%;
    /* 왼쪽 범례 때문에 차트가 우측으로 밀렸으므로 65%~68% 사이로 조정 */
    left: 66%; 
    /* 수직 위치: 위로 살짝 올림 */
    transform: translate(-50%, -80%); 
    /* 글씨 크기 격차를 줄이기 위해 숫자 크기 하향 */
    font-size: 1.4em; 
    font-weight: 800;
    color: #2c3e50;
    pointer-events: none;
    z-index: 1;
}

.exhibition-chart-card:nth-child(2) .chart-container::after {
    content: '명 관람';
    position: absolute;
    top: 50%;
    left: 66%; /* 위 숫자와 동일하게 맞춤 */
    /* 수직 위치: 숫자의 바로 아래로 바짝 붙임 */
    transform: translate(-50%, 25%); 
    /* 하단 텍스트 크기를 키워 숫자와 대비를 줄임 */
    font-size: 0.95em; 
    color: #576574; 
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.exhibition-chart-card:nth-child(3) {
    border-left: 4px solid #FF9800;
}

.exhibition-chart-card:nth-child(3) .chart-period {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.exhibition-chart-card:nth-child(4) {
    border-left: 4px solid #E91E63;
}

.exhibition-chart-card:nth-child(4) .chart-period {
    background: rgba(233, 30, 99, 0.1);
    color: #E91E63;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .top-three-charts {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .top-chart-card .chart-container {
        min-height: 180px;
    }

    .exhibition-charts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .exhibition-chart-card {
        height: 250px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .temperature-card.featured {
        padding: 20px;
    }
    
    .temp-header {
        flex-wrap: wrap;
    }
    
    .current-temp-badge {
        min-width: 100px;
        padding: 12px 16px;
    }
    
    .temp-value {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* 컬렉션 상세 모달 - 모바일에서 전체화면 */
    #artwork-detail-modal .modal-container {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
    }

    .modal-slide {
        min-height: calc(100vh - 140px);
        padding: 20px 0;
    }

    .slide-indicators {
        right: 8px;
    }

    .slide-dot {
        width: 8px;
        height: 8px;
    }

    .divider-content-center .divider-icon {
        font-size: 3em;
    }

    .divider-content-center .divider-title {
        font-size: 1.5em;
    }

    .top-three-charts {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .top-chart-card {
        padding: 16px;
    }
    
    .top-chart-card .chart-header h3 {
        font-size: 0.92em;
    }
    
    .top-chart-card .chart-container {
        min-height: 160px;
    }
    
    .chart-insight {
        padding: 10px 14px;
    }
    
    .chart-insight .insight-text {
        font-size: 0.82em;
    }

    .analytics-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .exhibition-charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .exhibition-chart-card {
        height: 220px;
        padding: 12px;
    }
    
    .exhibition-chart-card .chart-header h3 {
        font-size: 0.9em;
    }
    
    .exhibition-chart-card canvas {
        max-height: 160px !important;
    }
    
    .modern-data-table {
        font-size: 0.85em;
    }
    
    .modern-data-table th,
    .modern-data-table td {
        padding: 12px 8px;
    }
}

/* 다크모드 지원 (미래 확장을 위한 기본 구조) */
@media (prefers-color-scheme: dark) {
    .stat-card, .insight-card, .status-card, .modern-section, .activity-log {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .welcome-section {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}

/* ====================================
   Consulting Section Styles
   ==================================== */

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.consulting-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8f0fe;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.consulting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.consulting-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.consulting-card:hover::after {
    width: 500px;
    height: 500px;
}

.consulting-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.consulting-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4ff;
}

.consulting-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
}

.consulting-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.consulting-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consulting-insight,
.consulting-recommendation,
.consulting-impact {
    background: #f8faff;
    border-radius: 12px;
    padding: 18px;
    border-left: 4px solid #667eea;
}

.consulting-insight {
    border-left-color: #3498db;
}

.consulting-recommendation {
    border-left-color: #e74c3c;
}

.consulting-impact {
    border-left-color: #27ae60;
}

.consulting-content h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.consulting-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.consulting-content li {
    margin-bottom: 8px;
    color: #34495e;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.consulting-content li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.consulting-content strong {
    color: #2c3e50;
    font-weight: 600;
}



/* Responsive Design for Consulting Section */
@media (max-width: 768px) {
    .consulting-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .consulting-card {
        padding: 20px;
    }
    
    .consulting-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .consulting-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ====================================
   키리 AI 데이터 컨설팅 섹션
   ==================================== */

.kiri-consulting-section {
    position: relative;
    padding: 48px 32px 40px;
    background: linear-gradient(165deg, #fafcfb 0%, #f4f9f7 50%, #eef6f4 100%);
    border-radius: 20px;
    border: 1px solid rgba(184, 212, 200, 0.3);
    overflow: hidden;
}

/* 반투명 유리막: 섹션 위에 얹힌 글래스 레이어, 스크롤 시(insight-slide-active) 사라짐 */
.kiri-glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 252, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(184, 212, 200, 0.15);
    pointer-events: none;
}

.kiri-consulting-section.insight-slide-active .kiri-glass-overlay {
    animation: kiriGlassFadeOut 2.8s ease-out forwards;
}

@keyframes kiriGlassFadeOut {
    0%, 45% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.kiri-glass-text {
    margin: 0;
    font-family: 'Noto Serif KR', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.02em;
    line-height: 1.5;
    text-align: center;
}

.kiri-consulting-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(109, 152, 134, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.kiri-consulting-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    animation: kiriHeaderFadeIn 0.8s ease-out forwards;
}

@keyframes kiriHeaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kiri-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.kiri-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 196, 181, 0.95) 0%, rgba(109, 152, 134, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(122, 139, 139, 0.2);
    position: relative;
    z-index: 1;
    animation: kiriAvatarPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes kiriAvatarPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.kiri-avatar-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.kiri-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(184, 212, 200, 0.5);
    transform: translate(-50%, -50%);
    animation: kiriPulse 2s ease-out infinite;
}

@keyframes kiriPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.kiri-header-text {
    flex: 1;
}

.kiri-title {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.kiri-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #576574;
    line-height: 1.5;
}

/* 채팅 컨테이너 */
.kiri-chat-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.kiri-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    opacity: 0;
    animation: kiriMsgFadeIn 0.6s ease-out forwards;
}

.kiri-message-1 { animation-delay: 0.4s; }
.kiri-message-2 { animation-delay: 0.8s; }
.kiri-message-3 { animation-delay: 1.2s; }
.kiri-message-4 { animation-delay: 1.6s; }

@keyframes kiriMsgFadeIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kiri-msg-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D9886 0%, #446A58 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.kiri-msg-bubble {
    background: #fff;
    padding: 16px 20px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(109, 152, 134, 0.12);
    line-height: 1.6;
    font-size: 0.95rem;
    color: #34495e;
}

.kiri-msg-bubble p {
    margin: 0;
}

.kiri-msg-bubble strong {
    color: #2c3e50;
    font-weight: 600;
}

.kiri-msg-highlight {
    background: linear-gradient(135deg, rgba(109, 152, 134, 0.08) 0%, rgba(109, 152, 134, 0.04) 100%);
    border-left: 4px solid #6D9886;
    box-shadow: 0 6px 20px rgba(109, 152, 134, 0.12);
}

.kiri-msg-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6D9886;
    animation: kiriTypingDot 1.4s ease-in-out infinite both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes kiriTypingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    margin-left: 4px;
    font-size: 0.88rem;
    color: #7f8c8d;
}

/* CTA 영역 */
.kiri-cta {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    border: 1px dashed rgba(109, 152, 134, 0.3);
    text-align: center;
    animation: kiriCtaFadeIn 0.6s ease-out 2s forwards;
    opacity: 0;
}

@keyframes kiriCtaFadeIn {
    to {
        opacity: 1;
    }
}

.kiri-cta-text {
    margin: 0;
    font-size: 0.9rem;
    color: #576574;
}

/* 반응형 */
@media (max-width: 768px) {
    .kiri-consulting-section {
        padding: 32px 20px 28px;
    }

    .kiri-glass-text {
        font-size: 1.5rem;
    }

    .kiri-consulting-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 28px;
    }

    .kiri-title {
        font-size: 1.35rem;
    }

    .kiri-subtitle {
        font-size: 0.88rem;
    }

    .kiri-msg-bubble {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}