* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000;
    --bg-secondary: rgba(17, 24, 39, 0.4);
    --bg-tertiary: rgba(31, 41, 55, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #fff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --accent-primary: #6366f1;
    --accent-secondary: #ec4899;
    --accent-tertiary: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

[data-theme="light"] {
    --bg-primary: #f9fafb;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-tertiary: rgba(249, 250, 251, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 16px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 15s ease-in-out infinite;
}

[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
}

@keyframes ambientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 0;
}

.container {
    max-width: 2400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 12px;
    position: relative;
}

.header h1 {
    font-size: clamp(1.8em, 5vw, 3.5em);
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
}

.header p {
    font-size: clamp(0.75em, 2vw, 1em);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.header-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-2px);
}

.icon-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-primary);
    opacity: 1;
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2vw, 18px);
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toggle-label {
    font-size: clamp(11px, 1.8vw, 13px);
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(20px);
    background: white;
}

.cinema-toggle {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    white-space: nowrap;
}

.cinema-toggle:hover {
    opacity: 1;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cinema-toggle.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
    opacity: 1;
}

.controls.hidden {
    display: none;
}

.controls {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid.cinema-mode {
    margin-top: 40px;
}

.control-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(16px, 3vw, 24px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.control-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.control-section:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 25px 50px -10px rgba(0, 0, 0, 0.0),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px -20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.section-title {
    font-size: clamp(0.7em, 1.8vw, 0.85em);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

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

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2.5vw, 28px);
    border: none;
    border-radius: 12px;
    font-size: clamp(10px, 0.9vw, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(20px);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(75, 85, 99, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(75, 85, 99, 0.5);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

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

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

input[type="text"], input[type="search"], select {
    padding: clamp(10px, 2vw, 14px) clamp(12px, 2vw, 20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: clamp(12px, 2vw, 14px);
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100%;
}

input[type="text"]::placeholder,
input[type="search"]::placeholder {
    color: var(--text-tertiary);
}

input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(10px, 0.9vw, 15px);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2vw, 18px);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.status::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4b5563;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.2);
}

.status.connected {
    color: var(--accent-tertiary);
}

.status.connected::before {
    background: var(--accent-tertiary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.status.calibrating {
    color: var(--warning);
}

.status.calibrating::before {
    background: var(--warning);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.signal-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 2vw, 16px);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: clamp(11px, 1.8vw, 13px);
    color: var(--text-secondary);
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.signal-bar {
    width: 3px;
    background: var(--text-tertiary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.signal-bar:nth-child(1) { height: 6px; }
.signal-bar:nth-child(2) { height: 10px; }
.signal-bar:nth-child(3) { height: 14px; }
.signal-bar:nth-child(4) { height: 18px; }

.signal-indicator.excellent .signal-bar {
    background: var(--success);
}

.signal-indicator.good .signal-bar:nth-child(-n+3) {
    background: var(--success);
}

.signal-indicator.fair .signal-bar:nth-child(-n+2) {
    background: var(--warning);
}

.signal-indicator.poor .signal-bar:nth-child(1) {
    background: var(--danger);
}

.battery-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2vw, 18px);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: clamp(11px, 1.8vw, 13px);
    color: var(--text-secondary);
}

.battery-icon {
    position: relative;
    width: 24px;
    height: 12px;
    border: 2px solid var(--text-secondary);
    border-radius: 3px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 3px;
    width: 2px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    position: absolute;
    left: 1px;
    top: 1px;
    height: 6px;
    background: linear-gradient(90deg, var(--success), var(--accent-tertiary));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.battery-level.low {
    background: linear-gradient(90deg, var(--danger), #f97316);
}

.recording-timer {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2vw, 18px);
    background: rgba(236, 72, 153, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(236, 72, 153, 0.4);
    font-size: clamp(12px, 2vw, 14px);
    color: var(--accent-secondary);
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.hr-zone-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2vw, 18px);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.hr-zone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.hr-zone-indicator.zone-1 {
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}
.hr-zone-indicator.zone-2 {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}
.hr-zone-indicator.zone-3 {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}
.hr-zone-indicator.zone-4 {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}
.hr-zone-indicator.zone-5 {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.info-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-row > * {
    flex: 1;
    min-width: 140px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2vw, 20px);
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(16px, 3vw, 32px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 30px -10px rgba(0, 0, 0, 0),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px -15px rgba(99, 102, 241, 0.15);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(99, 102, 241, 0.05) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0),
        0 25px 60px -10px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0),
        0 0 60px -15px rgba(99, 102, 241, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: clamp(0.65em, 1.5vw, 0.75em);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: clamp(8px, 2vw, 16px);
    font-weight: 700;
}

.stat-value {
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

.stat-unit {
    font-size: 0.35em;
    color: var(--text-tertiary);
    margin-left: 6px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

@media (min-width: 2000px) {
  .charts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.chart-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(16px, 3vw, 32px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0),
        0 20px 40px -10px rgba(0, 0, 0, 0),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px -20px rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.chart-container:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0),
        0 25px 50px -10px rgba(0, 0, 0, 0),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px -20px rgba(99, 102, 241, 0.3);
}

.chart-container:hover::before {
    opacity: 1;
}

.chart-title {
    font-size: clamp(0.95em, 2vw, 1.1em);
    font-weight: 700;
    margin-bottom: clamp(12px, 2vw, 24px);
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-left: 12px;
}

.chart-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* History Button */
.history-button {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-button:hover {
    transform: translateY(-4px) scale(1.1);
}

@media (max-width: 768px) {
    .history-button {
        top: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .history-button {
        top: 16px;
        left: 16px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

.history-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--accent-secondary), #f43f5e);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    border: 2px solid var(--bg-primary);
    min-width: 22px;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 480px;
    max-width: 100vw;
    height: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-panel.active {
    right: 0;
}

.modal-header {
    padding: 32px 28px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: rotate(90deg);
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.session-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.session-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateX(-4px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .session-card:hover {
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.session-info {
    flex: 1;
}

.session-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.session-time {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-filename {
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: 'Courier New', monospace;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.session-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.session-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--accent-primary);
    font-weight: 600;
}

.session-actions {
    display: flex;
    gap: 8px;
}

.session-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(75, 85, 99, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-action-btn:hover {
    background: rgba(75, 85, 99, 0.5);
    color: var(--text-primary);
    transform: scale(1.1);
}

.session-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

/* Find .session-stats and modify it: */
.session-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed from repeat(2, 1fr) to fit 5 items better */
    gap: 12px;
}

/* Add responsive adjustment for mobile: */
@media (max-width: 768px) {
    .session-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.session-stat {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.session-stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.session-stat-value {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-stat-unit {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.session-stat-unit {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: 2px;
}

/* Add these new classes: */
.session-stat-value.sri-excellent {
    background: linear-gradient(135deg, #10b981, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-stat-value.sri-good {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-stat-value.sri-fair {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.session-stat-value.sri-poor {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-tertiary);
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-filter-section {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-tertiary);
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: stretch;
        flex-direction: column;
}

.search-box {
    flex: 1;
}

.filter-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-controls select {
    flex: 1;
    min-width: 140px;
}

@media (min-width: 769px) {
    .search-box {
        flex: 2;
    }

    .filter-controls {
        flex: 3;
    }
}

.filter-tag {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: rgba(99, 102, 241, 0.25);
}

.filter-tag.active {
    background: var(--accent-primary);
    color: white;
}

.modal-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.event-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.event-type-btn {
    padding: 10px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.event-type-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.event-type-btn.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.annotation-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.annotation-input input {
    flex: 1;
}

.annotations-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 12px;
}

.annotation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.annotation-time {
    color: var(--accent-tertiary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.annotation-text {
    flex: 1;
    margin: 0 12px;
    color: var(--text-primary);
}

.annotation-delete {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.annotation-delete:hover {
    background: rgba(239, 68, 68, 0.25);
}

.tag-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
}

.tag-input-group input {
    flex: 3;
    min-width: 0;
}

.tag-input-group .btn {
    flex: 0 0 auto;
    min-width: 80px;
}

.current-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
}

.tag-chip-remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tag-chip-remove:hover {
    opacity: 1;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-tertiary);
    font-size: clamp(12px, 2vw, 14px);
    opacity: 0.7;
}

.footer a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f472b6;
}

@media (max-width: 768px) {
    .header-controls {
        position: static;
        justify-content: center;
        margin-top: 16px;
    }

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

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

    .button-row {
        flex-direction: row;
    }

    .button-row .btn {
        width: 100%;
    }

    .info-row {
        flex-direction: row;
    }

    .modal-panel {
        width: 100%;
    }

    .history-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }

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

.chart-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 10;
}

.chart-placeholder-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.chart-placeholder-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Blur effect for charts with placeholders */
.chart-blurred > div:first-child {
    filter: blur(8px);
    opacity: 0.4;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sri-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(20px, 3vw, 32px);
    margin-bottom: 24px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px -20px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sri-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sri-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sri-container:hover::before {
    opacity: 1;
}

[data-theme="light"] .sri-container {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 10px 30px -5px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 40px -10px rgba(99, 102, 241, 0.15);
}

.sri-header {
    text-align: center;
    margin-bottom: 24px;
}

.sri-title {
    font-size: clamp(1.2em, 3vw, 1.8em);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.sri-subtitle {
    font-size: clamp(0.7em, 1.8vw, 0.85em);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.sri-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sri-metric {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.sri-metric:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(4px);
}

.sri-metric-label {
    font-size: clamp(0.75em, 1.8vw, 0.9em);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sri-metric-value {
    font-size: clamp(1.2em, 2.5vw, 1.6em);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sri-metric-weight {
    font-size: clamp(0.7em, 1.5vw, 0.8em);
    color: var(--text-tertiary);
    font-weight: 600;
    opacity: 0.7;
}

.sri-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sri-status-icon {
    font-size: 24px;
}

.sri-status-text {
    font-size: clamp(0.8em, 1.8vw, 0.95em);
    color: var(--text-secondary);
    font-weight: 600;
}

.sri-status.excellent {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.sri-status.excellent .sri-status-icon {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.sri-status.excellent .sri-status-text {
    color: var(--success);
}

.sri-status.good {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.4);
}

.sri-status.good .sri-status-text {
    color: var(--accent-tertiary);
}

.sri-status.fair {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.sri-status.fair .sri-status-text {
    color: var(--warning);
}

.sri-status.poor {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.sri-status.poor .sri-status-text {
    color: var(--danger);
}

/* Add after the .sri-status classes (around line 650): */

.sri-status.calculating {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.sri-status.calculating .sri-status-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

.sri-status.calculating .sri-status-text {
    color: var(--accent-primary);
}

.sri-gauge-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-width: 100px;
    margin: 0 auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sriGauge {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.15));
    transition: filter 0.3s ease;
}

[data-theme="light"] #sriGauge {
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.1));
}

.sri-score-overlay {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.sri-score-value {
    font-size: clamp(2em, 8vw, 4.5em);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
    animation: valueGlow 3s ease-in-out infinite;
}

@keyframes valueGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.5));
    }
}

.sri-score-label {
    font-size: clamp(0.6em, 2vw, 0.9em);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 4px;
    font-weight: 700;
    opacity: 0.8;
}

.sri-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sri-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sri-gauge-wrapper {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .sri-gauge-wrapper {
        max-width: 220px;
    }

    .sri-score-value {
        font-size: clamp(1.8em, 10vw, 3em);
    }
}

@media (min-width: 1920px) {
    .sri-gauge-wrapper {
        max-width: 450px;
    }
}

/* SRI Info Button */
.sri-info-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    z-index: 10;
}

.sri-info-btn:hover {
    opacity: 1;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-primary);
    transform: scale(1.1);
}

.sri-info-btn svg {
    width: 16px;
    height: 16px;
}

/* SRI Info Panel */
.sri-info-panel {
    width: 600px;
    max-width: 100vw;
}

.sri-info-section {
    margin-bottom: 28px;
}

.sri-info-section h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sri-info-section h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.sri-info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sri-component-explain {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.component-weight {
    font-size: 1.5em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.component-details {
    flex: 1;
}

.component-details strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95em;
}

.component-details p {
    font-size: 0.9em;
    margin: 0;
}

.sri-scale-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scale-item {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.scale-item.excellent {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.scale-item.good {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
}

.scale-item.fair {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.scale-item.poor {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.scale-item:hover {
    transform: translateX(4px);
}

.scale-range {
    font-weight: 800;
    font-size: 1.1em;
    margin-right: 12px;
}

.scale-item.excellent .scale-range { color: var(--success); }
.scale-item.good .scale-range { color: var(--accent-tertiary); }
.scale-item.fair .scale-range { color: var(--warning); }
.scale-item.poor .scale-range { color: var(--danger); }

.scale-label {
    font-weight: 600;
    color: var(--text-primary);
}

.scale-item p {
    margin-top: 6px;
    font-size: 0.85em;
}

.sri-references,
.sri-best-practices {
    list-style: none;
    padding: 0;
}

.sri-references li,
.sri-best-practices li {
    padding: 10px 12px 10px 32px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
    position: relative;
}

.sri-references li::before {
    content: '📄';
    position: absolute;
    left: 10px;
    top: 10px;
}

.sri-best-practices li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 10px;
    color: var(--success);
    font-weight: bold;
}

.sri-references li strong {
    color: var(--text-primary);
    display: inline;
}

@media (max-width: 768px) {
    .sri-info-panel {
        width: 100%;
    }

    .sri-component-explain {
        flex-direction: column;
        text-align: center;
    }

    .component-weight {
        min-width: auto;
    }
}

