/**
 * PgMP Roadmap Visual Learning Tool - Styles
 * Version: 1.2.0 - With Lottie animations and all fixes
 */

:root {
    --pgmp-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --pgmp-bg-primary: #FAFBFC;
    --pgmp-bg-secondary: #FFFFFF;
    --pgmp-bg-tertiary: #F3F4F6;
    --pgmp-border: #E5E7EB;
    --pgmp-border-light: #F0F1F3;
    --pgmp-text-primary: #1F2937;
    --pgmp-text-secondary: #4B5563;
    --pgmp-text-tertiary: #9CA3AF;
    --pgmp-definition: #2563EB;
    --pgmp-definition-light: #DBEAFE;
    --pgmp-definition-bg: #EFF6FF;
    --pgmp-delivery: #7C3AED;
    --pgmp-delivery-light: #EDE9FE;
    --pgmp-delivery-bg: #F5F3FF;
    --pgmp-closure: #059669;
    --pgmp-closure-light: #D1FAE5;
    --pgmp-closure-bg: #ECFDF5;
    --pgmp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --pgmp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --pgmp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --pgmp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --pgmp-transition-fast: 150ms ease;
    --pgmp-transition-normal: 250ms ease;
    --pgmp-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pgmp-roadmap-container {
    font-family: var(--pgmp-font-primary);
    background: var(--pgmp-bg-primary);
    color: var(--pgmp-text-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--pgmp-shadow-lg);
    min-height: 600px;
}

.pgmp-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; gap: 16px; }
.pgmp-loading-spinner { width: 48px; height: 48px; border: 3px solid var(--pgmp-border); border-top-color: var(--pgmp-definition); border-radius: 50%; animation: pgmp-spin 1s linear infinite; }
@keyframes pgmp-spin { to { transform: rotate(360deg); } }
.pgmp-loading p { color: var(--pgmp-text-secondary); font-size: 14px; font-weight: 500; }

/* Header */
.pgmp-header { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); padding: 32px 40px; color: white; position: relative; overflow: hidden; }
.pgmp-header::before { content: ''; position: absolute; top: -50%; right: -10%; width: 50%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none; }
.pgmp-header-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.pgmp-header-lottie { width: 60px; height: 60px; flex-shrink: 0; }
.pgmp-title { font-size: 28px; font-weight: 700; margin: 0 0 8px 0; letter-spacing: -0.02em; color: #FFFFFF !important; }
.pgmp-subtitle { font-size: 14px; opacity: 0.9; margin: 0; font-weight: 400; color: #E2E8F0 !important; }

/* Toolbar */
.pgmp-toolbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 24px; background: var(--pgmp-bg-secondary); border-bottom: 1px solid var(--pgmp-border); align-items: center; }
.pgmp-toolbar-group { display: flex; gap: 8px; align-items: center; }
.pgmp-toolbar-label { font-size: 12px; font-weight: 600; color: var(--pgmp-text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.pgmp-toolbar-hint { font-size: 10px; color: var(--pgmp-text-tertiary); font-style: italic; margin-left: 4px; }

/* Buttons */
.pgmp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; font-weight: 500; border-radius: 8px; border: 1px solid var(--pgmp-border); background: var(--pgmp-bg-secondary); color: var(--pgmp-text-secondary); cursor: pointer; transition: all var(--pgmp-transition-fast); font-family: inherit; white-space: nowrap; flex-shrink: 0; }
.pgmp-btn:hover { background: var(--pgmp-bg-tertiary); border-color: #D1D5DB; color: var(--pgmp-text-primary); }
.pgmp-btn-primary { background: linear-gradient(135deg, var(--pgmp-definition) 0%, #1d4ed8 100%); border-color: var(--pgmp-definition); color: white; }
.pgmp-btn-primary:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); border-color: #1d4ed8; color: white; transform: translateY(-1px); box-shadow: var(--pgmp-shadow-md); }
.pgmp-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pgmp-btn-lottie { width: 20px; height: 20px; flex-shrink: 0; }

/* Select */
.pgmp-select { padding: 8px 32px 8px 12px; font-size: 13px; font-weight: 500; border-radius: 8px; border: 1px solid var(--pgmp-border); background: var(--pgmp-bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; cursor: pointer; color: var(--pgmp-text-secondary); font-family: inherit; min-width: 140px; }
.pgmp-select:focus { outline: none; border-color: var(--pgmp-definition); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

/* Depth Controls */
.pgmp-depth-wrapper { position: relative; display: flex; align-items: center; gap: 8px; }
.pgmp-depth-controls { display: flex; gap: 4px; background: var(--pgmp-bg-tertiary); padding: 4px; border-radius: 10px; }
.pgmp-depth-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border-radius: 6px; border: none; background: transparent; color: var(--pgmp-text-tertiary); cursor: pointer; transition: all var(--pgmp-transition-fast); }
.pgmp-depth-btn:hover { color: var(--pgmp-text-primary); }
.pgmp-depth-btn.active { background: var(--pgmp-bg-secondary); color: var(--pgmp-definition); box-shadow: var(--pgmp-shadow-sm); }

.pgmp-help-btn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--pgmp-border); background: var(--pgmp-bg-secondary); color: var(--pgmp-text-tertiary); font-size: 11px; font-weight: 600; cursor: help; display: flex; align-items: center; justify-content: center; position: relative; }
.pgmp-help-btn:hover { background: var(--pgmp-definition); color: white; border-color: var(--pgmp-definition); }
.pgmp-tooltip { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; background: #1e293b; color: white; padding: 12px 16px; border-radius: 8px; font-size: 12px; width: 280px; z-index: 100; box-shadow: var(--pgmp-shadow-xl); line-height: 1.5; opacity: 0; visibility: hidden; transition: all var(--pgmp-transition-fast); }
.pgmp-tooltip::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: #1e293b; }
.pgmp-help-btn:hover .pgmp-tooltip { opacity: 1; visibility: visible; }

/* Content */
.pgmp-content { display: flex; min-height: 500px; }
.pgmp-roadmap-view { flex: 1; overflow-x: auto; overflow-y: auto; padding: 24px; }
.pgmp-timeline { display: flex; flex-direction: column; gap: 2px; min-width: 1200px; }
.pgmp-phase-row { display: flex; gap: 2px; }

/* Phase Header */
.pgmp-phase-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all var(--pgmp-transition-normal); position: relative; overflow: hidden; min-width: 160px; }
.pgmp-phase-header::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px; }
.pgmp-phase-header.definition { background: var(--pgmp-definition-bg); color: var(--pgmp-definition); }
.pgmp-phase-header.definition::before { background: var(--pgmp-definition); }
.pgmp-phase-header.delivery { background: var(--pgmp-delivery-bg); color: var(--pgmp-delivery); }
.pgmp-phase-header.delivery::before { background: var(--pgmp-delivery); }
.pgmp-phase-header.closure { background: var(--pgmp-closure-bg); color: var(--pgmp-closure); }
.pgmp-phase-header.closure::before { background: var(--pgmp-closure); }
.pgmp-phase-header:hover { transform: translateY(-2px); box-shadow: var(--pgmp-shadow-md); }

.pgmp-phase-lottie { width: 36px; height: 36px; flex-shrink: 0; }
.pgmp-phase-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: currentColor; opacity: 0.15; position: relative; }
.pgmp-phase-icon svg { width: 20px; height: 20px; stroke: currentColor; opacity: 1; animation: pgmp-icon-float 3s ease-in-out infinite; }

@keyframes pgmp-icon-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pgmp-icon-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }
@keyframes pgmp-icon-bounce { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-4px); } 75% { transform: translateY(2px); } }
@keyframes pgmp-icon-wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes pgmp-icon-glow { 0%, 100% { filter: drop-shadow(0 0 2px currentColor); } 50% { filter: drop-shadow(0 0 8px currentColor); } }

/* Subphases */
.pgmp-subphases { display: flex; gap: 2px; flex: 1; }
.pgmp-subphase-card { flex: 1; background: var(--pgmp-bg-secondary); border-radius: 12px; padding: 16px; border: 1px solid var(--pgmp-border-light); cursor: pointer; transition: all var(--pgmp-transition-normal); position: relative; min-width: 180px; }
.pgmp-subphase-card:hover { border-color: var(--pgmp-border); box-shadow: var(--pgmp-shadow-md); transform: translateY(-2px); }
.pgmp-subphase-card.highlighted { border-color: var(--pgmp-definition); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

.pgmp-subphase-lottie { width: 32px; height: 32px; margin-bottom: 10px; }
.pgmp-subphase-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pgmp-definition) 0%, #1d4ed8 100%); color: white; margin-bottom: 10px; }
.pgmp-subphase-icon svg { width: 16px; height: 16px; animation: pgmp-icon-pulse 2s ease-in-out infinite; }
.pgmp-subphase-card:nth-child(2) .pgmp-subphase-icon svg { animation: pgmp-icon-bounce 2s ease-in-out infinite; }
.pgmp-subphase-card:nth-child(3) .pgmp-subphase-icon svg { animation: pgmp-icon-wiggle 2s ease-in-out infinite; }

.pgmp-subphase-name { font-weight: 600; font-size: 14px; color: var(--pgmp-text-primary); margin-bottom: 4px; }
.pgmp-subphase-desc { font-size: 12px; color: var(--pgmp-text-tertiary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pgmp-governance-gate { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 8px; background: var(--pgmp-bg-tertiary); border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--pgmp-text-secondary); }
.pgmp-governance-gate svg { width: 12px; height: 12px; stroke: currentColor; animation: pgmp-icon-glow 2s ease-in-out infinite; }

/* Artifacts */
.pgmp-artifacts-row { display: flex; gap: 2px; margin-top: 2px; }
.pgmp-artifacts-column { flex: 1; min-width: 180px; padding: 8px; }

.pgmp-artifact-card { background: var(--pgmp-bg-secondary); border: 1px solid var(--pgmp-border-light); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; transition: all var(--pgmp-transition-fast); position: relative; display: flex; align-items: flex-start; gap: 10px; }
.pgmp-artifact-card:hover { border-color: var(--pgmp-definition-light); background: var(--pgmp-definition-bg); transform: translateX(4px); }
.pgmp-artifact-card.primary { border-left: 3px solid var(--pgmp-definition); }
.pgmp-artifact-card.highlighted { background: var(--pgmp-definition-light); border-color: var(--pgmp-definition); }

.pgmp-artifact-lottie { width: 24px; height: 24px; flex-shrink: 0; }
.pgmp-artifact-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--pgmp-definition-light); color: var(--pgmp-definition); flex-shrink: 0; }
.pgmp-artifact-icon svg { width: 12px; height: 12px; animation: pgmp-icon-bounce 3s ease-in-out infinite; }

.pgmp-artifact-content { flex: 1; min-width: 0; }
.pgmp-artifact-name { font-size: 13px; font-weight: 500; color: var(--pgmp-text-primary); margin-bottom: 2px; }
.pgmp-artifact-family { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pgmp-text-tertiary); font-weight: 600; }

/* Activity Cards */
.pgmp-activity-card { background: var(--pgmp-bg-secondary); border: 1px solid var(--pgmp-border-light); border-radius: 8px; padding: 8px 12px; margin-bottom: 4px; cursor: pointer; transition: all var(--pgmp-transition-fast); display: flex; align-items: center; gap: 8px; }
.pgmp-activity-card:hover { border-color: var(--pgmp-delivery-light); background: var(--pgmp-delivery-bg); transform: translateX(4px); }
.pgmp-activity-card.primary { border-left: 3px solid var(--pgmp-delivery); }

.pgmp-activity-lottie { width: 20px; height: 20px; flex-shrink: 0; }
.pgmp-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pgmp-delivery); flex-shrink: 0; animation: pgmp-icon-pulse 2s ease-in-out infinite; }
.pgmp-activity-name { font-size: 12px; font-weight: 500; color: var(--pgmp-text-primary); }

/* Role Chips */
.pgmp-role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pgmp-role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; cursor: pointer; transition: all var(--pgmp-transition-fast); }
.pgmp-role-chip.accountable { background: rgba(220, 38, 38, 0.1); color: #DC2626; border: 1px solid rgba(220, 38, 38, 0.2); }
.pgmp-role-chip.responsible { background: rgba(37, 99, 235, 0.1); color: #2563EB; border: 1px solid rgba(37, 99, 235, 0.2); }
.pgmp-role-chip.consulted { background: rgba(124, 58, 237, 0.1); color: #7C3AED; border: 1px dashed rgba(124, 58, 237, 0.3); }
.pgmp-role-chip.support { background: rgba(217, 119, 6, 0.1); color: #D97706; border: 1px dotted rgba(217, 119, 6, 0.3); }
.pgmp-role-chip:hover { transform: scale(1.05); box-shadow: var(--pgmp-shadow-sm); }
.pgmp-role-type { font-weight: 700; font-size: 10px; }

/* FIX #1: Modal Close Button - Black X on white background */
.pgmp-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; animation: pgmp-fadeIn var(--pgmp-transition-normal); }
.pgmp-detail-modal { background: var(--pgmp-bg-secondary); border-radius: 20px; max-width: 650px; width: 90%; max-height: 85vh; overflow: hidden; box-shadow: var(--pgmp-shadow-xl); animation: pgmp-slideUp var(--pgmp-transition-slow); }
.pgmp-detail-header { padding: 24px 28px; border-bottom: 1px solid var(--pgmp-border); display: flex; justify-content: space-between; align-items: flex-start; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }
.pgmp-detail-header-content { display: flex; align-items: flex-start; gap: 16px; flex: 1; }
/* HIDE large Lottie in header, keep small icon */
.pgmp-detail-lottie { display: none !important; }
/* Small icon for modal header */
.pgmp-detail-icon-small { 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, var(--pgmp-definition) 0%, #1d4ed8 100%); 
    color: white; 
    flex-shrink: 0;
}
.pgmp-detail-icon-small svg { width: 22px; height: 22px; }
.pgmp-detail-title { font-size: 20px; font-weight: 700; color: var(--pgmp-text-primary); margin: 0 0 4px 0; }
.pgmp-detail-type { display: inline-block; font-size: 11px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 20px; background: var(--pgmp-definition); }

/* FIXED: Close button with VISIBLE BLACK X */
.pgmp-detail-close { 
    width: 44px; 
    height: 44px; 
    border-radius: 10px; 
    border: 2px solid #94a3b8; 
    background: #f8fafc; 
    color: #0f172a;  /* VERY DARK - almost black */
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all var(--pgmp-transition-fast); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.pgmp-detail-close:hover { 
    background: #fee2e2; 
    color: #dc2626; 
    border-color: #f87171;
}
.pgmp-detail-close svg {
    width: 22px;
    height: 22px;
    stroke-width: 3;
}

.pgmp-detail-content { padding: 24px 28px; overflow-y: auto; max-height: 65vh; }
/* HIDE any Lottie animations in modal content */
.pgmp-detail-content dotlottie-player { display: none !important; }
.pgmp-detail-section { margin-bottom: 20px; }
.pgmp-detail-section:last-child { margin-bottom: 0; }
.pgmp-detail-section-title { font-size: 11px; font-weight: 600; color: var(--pgmp-text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
/* FIX: Make all SVGs in section titles small */
.pgmp-detail-section-title svg { width: 14px; height: 14px; flex-shrink: 0; }
.pgmp-detail-description { font-size: 15px; color: var(--pgmp-text-secondary); line-height: 1.7; }

/* FIX: Limit ALL SVGs in modal content to reasonable sizes */
.pgmp-detail-content svg { max-width: 24px; max-height: 24px; }

.pgmp-exam-tip { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); border: 1px solid #F59E0B; border-radius: 12px; padding: 16px 18px; font-size: 14px; color: #92400E; display: flex; align-items: flex-start; gap: 12px; }
.pgmp-exam-tip-lottie { width: 28px; height: 28px; flex-shrink: 0; display: none; }
.pgmp-exam-tip svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.pgmp-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pgmp-keyword { display: inline-block; padding: 4px 10px; background: var(--pgmp-bg-tertiary); border-radius: 20px; font-size: 12px; color: var(--pgmp-text-secondary); font-weight: 500; }

/* Legend */
.pgmp-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 24px; background: var(--pgmp-bg-tertiary); border-top: 1px solid var(--pgmp-border); }
.pgmp-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pgmp-text-secondary); }
.pgmp-legend-color { width: 12px; height: 12px; border-radius: 3px; }

/* Story Mode */
.pgmp-story-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); z-index: 1000; display: flex; align-items: center; justify-content: center; animation: pgmp-fadeIn var(--pgmp-transition-normal); }
@keyframes pgmp-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pgmp-story-content { background: var(--pgmp-bg-secondary); border-radius: 20px; max-width: 850px; width: 90%; max-height: 85vh; overflow: hidden; box-shadow: var(--pgmp-shadow-xl); animation: pgmp-slideUp var(--pgmp-transition-slow); }
@keyframes pgmp-slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.pgmp-story-header { padding: 28px 36px; background: linear-gradient(135deg, var(--pgmp-definition) 0%, var(--pgmp-delivery) 100%); color: white; display: flex; align-items: center; gap: 20px; }
.pgmp-story-lottie { width: 64px; height: 64px; flex-shrink: 0; }
.pgmp-story-header-text { flex: 1; }
.pgmp-story-step { font-size: 13px; font-weight: 600; opacity: 0.9; margin-bottom: 6px; color: rgba(255,255,255,0.9) !important; }
.pgmp-story-title { font-size: 28px; font-weight: 700; margin: 0; color: #FFFFFF !important; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.pgmp-story-body { padding: 32px; max-height: 50vh; overflow-y: auto; }
.pgmp-story-description { font-size: 16px; color: var(--pgmp-text-secondary); line-height: 1.7; margin-bottom: 24px; }
.pgmp-story-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pgmp-story-item { background: var(--pgmp-bg-tertiary); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; transition: all var(--pgmp-transition-fast); }
.pgmp-story-item:hover { transform: translateY(-2px); box-shadow: var(--pgmp-shadow-md); }
.pgmp-story-item-lottie { width: 32px; height: 32px; flex-shrink: 0; }
.pgmp-story-item-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--pgmp-definition); color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pgmp-story-item-icon svg { width: 16px; height: 16px; animation: pgmp-icon-bounce 2s ease-in-out infinite; }
.pgmp-story-item-text { font-size: 13px; font-weight: 500; color: var(--pgmp-text-primary); }

.pgmp-story-footer { padding: 20px 32px; border-top: 1px solid var(--pgmp-border); display: flex; justify-content: space-between; align-items: center; }
.pgmp-story-progress { display: flex; gap: 6px; }
.pgmp-story-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pgmp-border); transition: all var(--pgmp-transition-fast); }
.pgmp-story-dot.active { background: var(--pgmp-definition); transform: scale(1.2); }
.pgmp-story-dot.completed { background: var(--pgmp-closure); }
.pgmp-story-nav { display: flex; gap: 8px; }

/* Animations */
.pgmp-animate-in { animation: pgmp-animateIn var(--pgmp-transition-slow) forwards; }
@keyframes pgmp-animateIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Empty State */
.pgmp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 40px; text-align: center; color: var(--pgmp-text-tertiary); }
.pgmp-empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; }
.pgmp-empty-state p { font-size: 14px; }

/* Activity Count Badge */
/* ACTIVITY COUNT BADGE - with tooltip */
.pgmp-activity-count { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 22px; 
    height: 22px; 
    padding: 0 6px; 
    background: var(--pgmp-delivery); 
    color: white; 
    border-radius: 11px; 
    font-size: 11px; 
    font-weight: 600; 
    margin-left: 8px;
    cursor: help;
    position: relative;
}
.pgmp-activity-count::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}
.pgmp-activity-count::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.pgmp-activity-count:hover::after,
.pgmp-activity-count:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .pgmp-header { padding: 24px; }
    .pgmp-title { font-size: 22px; }
    .pgmp-toolbar { padding: 16px; }
    .pgmp-roadmap-view { padding: 16px; }
    .pgmp-story-items { grid-template-columns: 1fr; }
    .pgmp-content { flex-direction: column; }
    .pgmp-detail-modal { max-width: 95%; }
}

/* ==================== CINEMA MODE ==================== */
.pgmp-cinema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 40px;
}

.pgmp-cinema-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pgmp-cinema-bg {
    display: none;
}

.pgmp-cinema-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-size: 200px 200px;
    animation: pgmp-stars-move 120s linear infinite;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    border-radius: 24px;
}

@keyframes pgmp-stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-250px); }
}

.pgmp-cinema-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 30px 35px;
    color: white;
    animation: pgmp-cinema-fadein 0.6s ease;
    overflow-y: auto;
    flex: 1;
}

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

.pgmp-cinema-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pgmp-cinema-chapter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pgmp-cinema-chapter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
}

.pgmp-cinema-chapter-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

.pgmp-cinema-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #ef4444;
    background: #dc2626;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}

.pgmp-cinema-close:hover {
    background: #b91c1c;
    border-color: #f87171;
    transform: scale(1.05);
}

.pgmp-cinema-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.pgmp-cinema-close-label {
    display: none;
}

.pgmp-cinema-scene {
    text-align: center;
}

.pgmp-cinema-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.pgmp-cinema-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pgmp-icon-pulse 2s ease-in-out infinite;
}

@keyframes pgmp-icon-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.pgmp-cinema-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 16px;
}

.pgmp-cinema-icon svg {
    width: 32px;
    height: 32px;
    stroke: #a5b4fc;
}

.pgmp-cinema-title-wrapper {
    margin-bottom: 16px;
}

.pgmp-cinema-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pgmp-cinema-subtitle {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.pgmp-cinema-narrative {
    max-width: 650px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
}

.pgmp-cinema-keypoints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pgmp-cinema-keypoint {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #c7d2fe;
}

.pgmp-cinema-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 10px;
}

.pgmp-cinema-roles {
    margin-bottom: 16px;
}

.pgmp-cinema-role-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pgmp-cinema-role-chip {
    padding: 5px 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pgmp-cinema-artifacts, .pgmp-cinema-activities {
    margin-bottom: 16px;
}

.pgmp-cinema-artifact-list, .pgmp-cinema-activity-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pgmp-cinema-artifact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 8px;
    font-size: 12px;
    color: #93c5fd;
}

.pgmp-cinema-artifact-item svg {
    width: 14px;
    height: 14px;
}

.pgmp-cinema-activity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 6px;
    font-size: 11px;
    color: #c4b5fd;
}

.pgmp-cinema-activity-dot {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
}

.pgmp-cinema-more {
    padding: 5px 12px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.pgmp-cinema-examtip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 550px;
    margin: 20px auto 0;
    padding: 14px 18px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    text-align: left;
}

.pgmp-cinema-examtip-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
}

.pgmp-cinema-examtip-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fbbf24;
}

.pgmp-cinema-examtip-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 4px;
}

.pgmp-cinema-examtip-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #fcd34d;
}

.pgmp-cinema-footer {
    padding: 20px 35px;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pgmp-cinema-progress-wrapper {
    margin-bottom: 16px;
}

.pgmp-cinema-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.pgmp-cinema-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.05s linear;
}

.pgmp-cinema-progress-text {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
}

.pgmp-cinema-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pgmp-cinema-chapters {
    display: flex;
    gap: 8px;
}

.pgmp-cinema-chapter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pgmp-cinema-chapter-dot:hover {
    border-color: rgba(255,255,255,0.6);
}

.pgmp-cinema-chapter-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.15);
}

.pgmp-cinema-chapter-dot.complete {
    background: #10b981;
    border-color: #10b981;
}

.pgmp-cinema-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pgmp-cinema-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pgmp-cinema-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.pgmp-cinema-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pgmp-cinema-btn svg {
    width: 16px;
    height: 16px;
}

.pgmp-cinema-btn-play {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.pgmp-cinema-btn-play:hover {
    background: rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.7);
}

.pgmp-cinema-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
}

.pgmp-cinema-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pgmp-cinema-scene-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    max-width: 100%;
}

.pgmp-cinema-scene-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pgmp-cinema-scene-dot:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.3);
}

.pgmp-cinema-scene-dot.active {
    background: #3b82f6;
    transform: scale(1.5);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.pgmp-cinema-scene-dot.complete {
    background: #10b981;
}

/* Cinema Mode Button in Toolbar */
.pgmp-btn-cinema {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-color: #334155 !important;
    color: white !important;
}

.pgmp-btn-cinema:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-color: #475569 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pgmp-cinema-content {
        padding: 20px;
    }
    
    .pgmp-cinema-title {
        font-size: 28px;
    }
    
    .pgmp-cinema-subtitle {
        font-size: 16px;
    }
    
    .pgmp-cinema-narrative {
        font-size: 15px;
    }
    
    .pgmp-cinema-icon {
        width: 60px;
        height: 60px;
    }
    
    .pgmp-cinema-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* ========================================
   ECO Artifacts, Spanning & Updated Styles
   ======================================== */

/* ECO Artifact (not in Standard, from ECO) */
.pgmp-artifact-card.eco {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.pgmp-artifact-card.eco:hover {
    border-left-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.pgmp-eco-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Updated Artifact (appears in later subphases) */
.pgmp-artifact-card.updated {
    border-left: 3px solid #06b6d4;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    opacity: 0.9;
}

.pgmp-update-badge {
    display: inline-block;
    font-size: 12px;
    color: #06b6d4;
    margin-left: 4px;
    font-weight: bold;
}

/* Spanning Activity Indicator */
.pgmp-activity-card.spanning {
    border-left: 3px solid #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.pgmp-spanning-indicator {
    display: inline-block;
    font-size: 10px;
    color: #8b5cf6;
    margin-left: 6px;
    font-weight: bold;
}

/* ========================================
   Transversal Bars - Supporting Domains
   ======================================== */

.pgmp-transversal-section {
    padding: 20px 24px;
    background: var(--pgmp-bg-tertiary);
    border-top: 1px solid var(--pgmp-border);
}

.pgmp-transversal-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--pgmp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pgmp-transversal-header.integration {
    margin-top: 16px;
    color: #0f172a;
}

.pgmp-transversal-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgmp-transversal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-weight: 500;
}

.pgmp-transversal-bar.domain {
    opacity: 0.9;
}

.pgmp-transversal-bar.domain:hover {
    opacity: 1;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pgmp-transversal-bar.integration {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 16px 20px;
    border-radius: 12px;
}

.pgmp-transversal-bar.integration:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.pgmp-transversal-name {
    font-size: 14px;
    font-weight: 600;
}

.pgmp-transversal-focuses {
    font-size: 12px;
    opacity: 0.8;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.pgmp-transversal-arrow {
    font-size: 16px;
    opacity: 0.7;
}

.pgmp-integration-section {
    margin-top: 8px;
}

/* ========================================
   Integration Management Modal Focuses
   ======================================== */

.pgmp-integration-focuses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgmp-focus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 3px solid #0f172a;
}

.pgmp-focus-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.pgmp-focus-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--pgmp-text-primary);
}

/* ========================================
   Legend Updates
   ======================================== */

.pgmp-legend-item .eco-indicator {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 4px;
    margin-right: 6px;
}

.pgmp-legend-item .updated-indicator {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 4px;
    margin-right: 6px;
}

/* Additional Activity Count Tooltip Fix */
.pgmp-activity-count[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
}

/* ========================================
   Full Width Transversal Sections
   ======================================== */

.pgmp-transversal-section-fullwidth {
    margin-top: 24px;
    padding: 20px 0;
    border-top: 2px solid var(--pgmp-border);
}

.pgmp-transversal-header-main {
    font-size: 13px;
    font-weight: 700;
    color: var(--pgmp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding-left: 24px;
}

.pgmp-transversal-header-main.integration {
    margin-top: 20px;
    color: #0f172a;
}

.pgmp-transversal-bars-fullwidth {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 24px;
}

.pgmp-transversal-bar-fullwidth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-weight: 500;
}

.pgmp-transversal-bar-fullwidth.domain {
    opacity: 0.92;
}

.pgmp-transversal-bar-fullwidth.domain:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pgmp-transversal-bar-fullwidth.integration {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 18px 24px;
    border-radius: 12px;
    margin: 0 24px;
}

.pgmp-transversal-bar-fullwidth.integration:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.pgmp-transversal-desc {
    flex: 1;
    font-size: 12px;
    opacity: 0.8;
    margin: 0 20px;
    font-weight: 400;
}

.pgmp-integration-section-fullwidth {
    margin-top: 16px;
}

/* ========================================
   Spanning Activities (Long Bars)
   ======================================== */

.pgmp-spanning-activities-row {
    display: flex;
    padding: 12px 24px 12px 24px;
}

.pgmp-spanning-activities-container {
    flex: 1;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 16px;
}

.pgmp-spanning-label {
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pgmp-spanning-activity-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.pgmp-spanning-activity-bar:last-child {
    margin-bottom: 0;
}

.pgmp-spanning-activity-bar:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pgmp-spanning-activity-bar.highlighted {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5);
}

.pgmp-spanning-activity-bar .pgmp-activity-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.pgmp-spanning-activity-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.pgmp-spanning-arrow {
    font-size: 16px;
    opacity: 0.8;
    margin-left: 12px;
}

/* ========================================
   Alignment Fixes
   ======================================== */

.pgmp-phase-label-spacer {
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
}

.pgmp-artifacts-grid {
    display: flex;
    flex: 1;
    gap: 16px;
}

.pgmp-artifacts-row {
    display: flex;
    padding: 8px 24px 8px 24px;
    gap: 16px;
}

.pgmp-artifacts-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Phase row alignment */
.pgmp-phase-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px;
}

.pgmp-phase-header {
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgmp-subphases {
    flex: 1;
    display: flex;
    gap: 16px;
}

.pgmp-subphase-card {
    flex: 1;
    min-width: 0;
}

/* Component family color */
.pgmp-artifact-family[data-family="component"] {
    color: #0891b2;
}

.pgmp-artifact-card[data-family="component"] {
    border-left-color: #0891b2;
}

/* ========================================
   Updatable Artifacts Row (Delivery)
   ======================================== */

.pgmp-spanning-artifacts-row {
    display: flex;
    padding: 12px 24px 12px 24px;
}

.pgmp-spanning-artifacts-container {
    flex: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px;
}

.pgmp-spanning-label.update {
    color: #2563eb;
}

.pgmp-spanning-artifact-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.pgmp-spanning-artifact-bar:last-child {
    margin-bottom: 0;
}

.pgmp-spanning-artifact-bar:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pgmp-spanning-artifact-bar.highlighted {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.pgmp-artifact-icon-small {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    opacity: 0.9;
}

.pgmp-artifact-icon-small svg {
    width: 16px;
    height: 16px;
}

.pgmp-spanning-artifact-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.pgmp-update-label {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 12px;
}
