.sessions-results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Shared layout tweaks */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.header-link {
    color: var(--neon-cyan);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.header-link:hover {
    text-decoration: underline;
}

/* Analyze page */
.analysis-page .upload-card,
.analysis-page .analyze-faq {
    margin-bottom: 24px;
}

.analytics-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.analytics-info h3,
.performance-overview h3 {
    margin-bottom: 5px;
}

.analytics-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 4px;
    gap: 6px;
}

.analytics-tabs .tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.analytics-tabs .tab.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(138, 43, 226, 0.25));
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(0, 245, 255, 0.25);
}

.analytics-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.analytics-legend[hidden] {
    display: none !important;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.head {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.7), rgba(138, 43, 226, 0.7));
}

.legend-dot.body {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.6), rgba(57, 255, 20, 0.6));
}

.legend-dot.other {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.65), rgba(249, 115, 22, 0.65));
}

.analytics-view {
    display: block;
}

.analytics-view[hidden] {
    display: none !important;
}

.accuracy-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accuracy-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.accuracy-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.accuracy-bar {
    flex: 1;
    display: flex;
    height: 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.accuracy-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.accuracy-segment.head {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.42), rgba(138, 43, 226, 0.42));
}

.accuracy-segment.body {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.35), rgba(57, 255, 20, 0.35));
}

.accuracy-segment.other {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(249, 115, 22, 0.4));
}

.damage-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.damage-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.damage-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.damage-bar {
    flex: 1;
    height: 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 43, 226, 0.18);
    overflow: hidden;
    position: relative;
}

.damage-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.6), rgba(0, 245, 255, 0.55));
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.damage-fill.empty {
    background: none;
    color: var(--text-secondary);
    justify-content: flex-start;
    padding: 0 12px;
}

.select-wrapper.compact {
    min-width: 100px;
}

.select-wrapper.compact select {
    padding: 8px 30px 8px 12px;
}

.upload-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-instructions h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.upload-instructions p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.upload-hint {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(0, 245, 255, 0.8);
}

.upload-caution {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

body.theme-light .upload-caution {
    color: rgba(55, 65, 81, 0.72);
}

.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(0, 245, 255, 0.45);
    border-radius: 24px;
    padding: 72px 32px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    background: linear-gradient(140deg, rgba(0, 245, 255, 0.12), rgba(138, 43, 226, 0.12));
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragging {
    border-color: rgba(0, 245, 255, 0.85);
    background: linear-gradient(140deg, rgba(0, 245, 255, 0.18), rgba(138, 43, 226, 0.14));
    transform: translateY(-3px);
}

.dropzone-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    max-width: 480px;
    pointer-events: none;
}

.drop-icon {
    font-size: 52px;
    filter: drop-shadow(0 12px 24px rgba(0, 245, 255, 0.35));
}

.drop-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.drop-subtitle {
    font-size: 14px;
}

.drop-warning {
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(0, 245, 255, 0.24);
    background: rgba(8, 12, 24, 0.5);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.upload-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(0, 245, 255, 0.25);
    background: rgba(0, 245, 255, 0.12);
}

.upload-meta-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-meta .file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.upload-meta .file-size {
    color: var(--text-muted);
    font-size: 12px;
}

.session-detail-page,
.analysis-page {
    position: relative;
}

body.theme-light .analysis-page .upload-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 16px 32px rgba(148, 163, 184, 0.18);
}

body.theme-light .analysis-page .upload-dropzone {
    border-color: rgba(124, 58, 237, 0.28);
    background: linear-gradient(140deg, rgba(14, 165, 233, 0.16), rgba(124, 58, 237, 0.12));
}

body.theme-light .analysis-page .upload-dropzone:hover,
body.theme-light .analysis-page .upload-dropzone.dragging {
    border-color: rgba(14, 165, 233, 0.45);
    background: linear-gradient(140deg, rgba(14, 165, 233, 0.22), rgba(124, 58, 237, 0.18));
}

body.theme-light .analysis-page .drop-warning {
    border-color: rgba(124, 58, 237, 0.26);
    background: rgba(236, 244, 255, 0.8);
    color: rgba(30, 41, 59, 0.78);
}

body.theme-light .analysis-page .upload-meta {
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(236, 244, 255, 0.85);
}

body.theme-light .analysis-page .phase-list li {
    border-color: rgba(124, 58, 237, 0.18);
    background: rgba(236, 244, 255, 0.6);
    color: rgba(30, 41, 59, 0.72);
}

body.theme-light .analysis-page .phase-list li.active {
    border-color: rgba(14, 165, 233, 0.6);
    background: rgba(14, 165, 233, 0.18);
    color: var(--text-primary);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
}

.text-button {
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.text-button:hover {
    text-decoration: underline;
}

.progress-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.phase-list {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-list li {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 245, 255, 0.18);
    text-align: center;
    font-size: 13px;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.phase-list li.active {
    border-color: rgba(0, 245, 255, 0.85);
    color: var(--text-primary);
    background: rgba(0, 245, 255, 0.18);
    box-shadow: 0 12px 28px rgba(0, 245, 255, 0.2);
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.upload-actions .glow-button {
    min-width: 200px;
}

.upload-status {
    font-size: 13px;
}

.status-message {
    color: var(--text-muted);
}

.status-message.error {
    color: #f87171;
}

.retry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.analyze-faq .faq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.analyze-faq strong {
    display: inline-block;
    min-width: 140px;
}

/* Sessions page */
.sessions-toolbar {
    margin-bottom: 20px;
}

.toolbar-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-bg);
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 14px;
}

body.theme-light .search-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    flex: 1;
}

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

.toolbar-actions .select-wrapper {
    flex: 0 1 160px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.date-range input {
    background: var(--secondary-bg);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-primary);
}

body.theme-light .date-range input {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: rgba(30, 41, 59, 0.8);
}

.sessions-results {
    display: grid;
    gap: 18px;
}

.session-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 245, 255, 0.18);
    background: linear-gradient(135deg, rgba(11, 14, 28, 0.9), rgba(8, 12, 24, 0.92));
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 20px 36px rgba(5, 10, 30, 0.45);
}

body.theme-light .session-card {
    background: linear-gradient(135deg, rgba(247, 249, 255, 0.95), rgba(234, 244, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 20px 32px rgba(148, 163, 184, 0.22);
}

.session-card.disabled {
    cursor: default;
    opacity: 0.85;
}

.session-card:not(.disabled):hover {
    transform: translateY(-2px);
    border-color: rgba(0, 245, 255, 0.4);
}

.session-thumb {
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(0, 245, 255, 0.2), transparent 60%),
                linear-gradient(135deg, rgba(138, 43, 226, 0.28), rgba(9, 14, 28, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 40px;
}

body.theme-light .session-card .session-thumb {
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.18), transparent 60%),
                linear-gradient(135deg, rgba(236, 233, 255, 0.9), rgba(219, 234, 254, 0.85));
    color: rgba(30, 41, 59, 0.82);
}

.session-thumb .play-badge {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(10, 14, 26, 0.4);
    backdrop-filter: blur(6px);
}

.session-content {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.session-meta span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.session-meta .meta-date {
    color: var(--text-primary);
    font-weight: 600;
}

.session-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.view-session {
    min-width: 140px;
}

.view-session.disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.status-pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.status-pill.completed {
    background: rgba(57, 255, 20, 0.18);
    color: #a6ff96;
}

.status-pill.processing {
    background: rgba(138, 43, 226, 0.18);
    color: #c4b5fd;
}

.status-pill.queued {
    background: rgba(255, 248, 0, 0.16);
    color: #fef08a;
}

.status-pill.failed {
    background: rgba(255, 7, 58, 0.18);
    color: #fca5a5;
}

.pagination {
    display: flex;
    justify-content: center;
}

/* Session detail */
.detail-header .meta-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.select-wrapper.compact {
    min-width: 110px;
}

.detail-header .meta-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
}

.back-link {
    display: inline-block;
    font-size: 13px;
    color: var(--neon-cyan);
    cursor: pointer;
    margin-bottom: 12px;
}

.detail-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.detail-side-stack {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 18px;
    height: 100%;
}

.detail-player {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.video-shell {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.12), transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.16), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    min-height: 240px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 18px;
    color: var(--text-secondary);
}

.video-placeholder span {
    font-size: 48px;
}

.video-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-primary);
    backdrop-filter: blur(6px);
}


.detail-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    border-radius: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(138, 43, 226, 0.06));
    border: 1px solid rgba(0, 245, 255, 0.18);
}

.kpi-card span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
}

.kpi-card strong {
    display: block;
    font-size: 22px;
    margin-top: 6px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.session-detail-page .charts-grid {
    gap: 30px;
}

.chart-card .chart-canvas {
    min-height: 280px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(8, 13, 30, 0.68));
    border-radius: 22px;
    border: 1px solid rgba(0, 245, 255, 0.14);
    padding: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 28px rgba(0, 245, 255, 0.08), 0 22px 44px rgba(5, 10, 30, 0.45);
}


.session-detail-page .chart-card .card-header-row {
    margin-bottom: 22px;
}

.session-detail-page #damage-chart {
    min-height: 300px;
}

.line-chart {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.session-detail-page #damage-chart .line-chart {
    aspect-ratio: 21 / 9;
}

.chart-axis {
    stroke: rgba(0, 245, 255, 0.28);
    stroke-width: 0.55;
}

.chart-line {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 1.4;
    opacity: 0.92;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.5));
}

.chart-point {
    fill: rgba(255, 255, 255, 0.95);
    stroke: rgba(0, 245, 255, 0.85);
    stroke-width: 1.2;
}

body.theme-light .chart-axis {
    stroke: rgba(148, 163, 184, 0.45);
}

body.theme-light .chart-line {
    stroke: rgba(37, 99, 235, 0.8);
}

body.theme-light .chart-point {
    fill: rgba(37, 99, 235, 0.9);
}

.chart-tick {
    font-size: 5px;
    fill: rgba(255, 255, 255, 0.45);
}

.aim-trajectory {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background: rgba(15, 23, 42, 0.32);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    color: var(--text-primary);
}

.aim-trajectory h4 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body.theme-light .aim-trajectory {
    background: rgba(236, 244, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgba(15, 23, 42, 0.82);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    height: 160px;
}

.chart-bars .bar {
    flex: 1;
    position: relative;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(0, 245, 255, 0.9), rgba(138, 43, 226, 0.6));
}

.chart-bars .bar span {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.chart-stems {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    height: 160px;
}

.chart-stems .stem {
    position: relative;
    width: 10px;
    height: 0;
    flex: 1;
    border-radius: 999px;
}

.chart-stems .stem.hit {
    height: 140px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.7));
}

.chart-stems .stem.miss {
    height: 60px;
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.9), rgba(239, 68, 68, 0.6));
}

.chart-stems .stem span {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.chart-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    width: 100%;
}

.chart-list-row span {
    width: 120px;
}

.chart-list-bar {
    flex: 1;
    position: relative;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.chart-list-fill {
    position: relative;
    display: block;
    height: 100%;
    min-height: 10px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.9), rgba(138, 43, 226, 0.8));
    color: #0a0e1a;
    font-weight: 600;
    font-size: 12px;
    text-align: right;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.chip {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(0, 245, 255, 0.15);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--text-secondary);
}

.sync-indicator {
    background: rgba(138, 43, 226, 0.15);
}

.heatmap-card .heatmap-tabs {
    display: flex;
    gap: 8px;
}

.heatmap-card .tab {
    border: none;
    background: rgba(0, 245, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
}

.heatmap-card .tab.active {
    background: rgba(0, 245, 255, 0.25);
    color: var(--text-primary);
}

.heatmap-preview {
    min-height: 220px;
    border-radius: 12px;
    margin-top: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.05)),
                linear-gradient(135deg, rgba(0, 245, 255, 0.18), rgba(138, 43, 226, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.7);
    font-size: 13px;
}

.feedback-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.feedback-card h3 {
    font-size: 16px;
}

.feedback-card ul {
    list-style: disc;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 20px;
}

.chart-card.chart-wide {
    grid-column: 1 / -1;
}

.chart-card.chart-narrow {
    grid-column: 1 / 2;
}

.heatmap-card.chart-broad {
    grid-column: 2 / 3;
}

/* Responsive */
@media (max-width: 900px) {
    .session-card {
        grid-template-columns: 1fr;
    }

    .session-thumb {
        height: 140px;
    }

    .upload-dropzone {
        padding: 56px 24px;
        min-height: 260px;
    }

    .drop-title {
        font-size: 18px;
    }

    .session-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .session-row-score {
        align-items: flex-start;
    }

    .toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-actions .select-wrapper,
    .date-range {
        width: 100%;
    }

    .date-range {
        justify-content: space-between;
    }

    .detail-top-grid {
        grid-template-columns: 1fr;
    }

    .detail-side-stack {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .player-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card.chart-wide,
    .chart-card.chart-narrow,
    .heatmap-card.chart-broad {
        grid-column: auto;
    }
}
.aim-card {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.session-detail-page #damage-chart,
.session-detail-page #weapon-performance,
.session-detail-page #aim-trajectory-x,
.session-detail-page #aim-trajectory-y {
    width: 100%;
}
