/* Cadence - AI Creative Director */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-primary: #06080c;
    --bg-secondary: rgba(10, 14, 22, 0.92);
    --bg-card: rgba(14, 20, 32, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 210, 210, 0.2);
    --text-primary: #e8edf5;
    --text-secondary: #8b95a8;
    --text-muted: #4a5568;
    --accent: #00d2d2;
    --accent-light: #40e8e8;
    --accent-glow: rgba(0, 210, 210, 0.35);
    --accent-2: #7ce8d2;
    --accent-3: #b4f0e0;
    --gradient-1: linear-gradient(135deg, #00d2d2 0%, #00a3cc 50%, #0077b6 100%);
    --gradient-2: linear-gradient(135deg, #00d2d2 0%, #7c3aed 100%);
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-glow: 0 0 40px rgba(0, 210, 210, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    height: 100dvh;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

/* --- Ambient background --- */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    animation: float 25s ease-in-out infinite;
}

.bg-gradient .orb-1 {
    width: 600px; height: 600px;
    background: #00d2d2;
    top: -200px; left: -100px;
}

.bg-gradient .orb-2 {
    width: 500px; height: 500px;
    background: #0077b6;
    bottom: -200px; right: -100px;
    animation-delay: -8s;
}

.bg-gradient .orb-3 {
    width: 400px; height: 400px;
    background: #00a3cc;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -16s;
    opacity: 0.04;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.02); }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* --- App shell --- */

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

/* --- Header --- */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-1);
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 40px; height: 40px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo .tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.status-badge.active {
    border-color: var(--border-glow);
    box-shadow: 0 0 16px rgba(0, 210, 210, 0.1);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s;
}

.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
    animation: pulse-dot 2s infinite;
}

.status-dot.connecting {
    background: var(--warning);
    animation: pulse-dot 0.8s infinite;
}

.status-dot.error { background: var(--error); }
.status-dot.idle { background: var(--text-muted); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* --- Mode indicator --- */

.mode-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-bar.visible {
    max-height: 44px;
    opacity: 1;
    padding: 8px 24px;
}

.mode-pill {
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mode-pill.study { background: rgba(0, 210, 210, 0.12); color: var(--accent); }
.mode-pill.scout { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.mode-pill.create { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.stat-value {
    color: var(--text-secondary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stat-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

/* --- Main layout --- */

.main-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.main-container.insights-visible {
    grid-template-columns: 1fr 280px 420px;
}

/* --- Insights panel --- */

.insights-panel {
    display: flex;
    flex-direction: column;
    background: rgba(8, 12, 20, 0.95);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insights-panel {
    display: none;
}

.main-container.insights-visible .insights-panel {
    display: flex;
}

.insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.insights-header h2 {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insights-toggle {
    width: 24px; height: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-glass);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}

.insights-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.insights-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insights-body::-webkit-scrollbar { width: 4px; }
.insights-body::-webkit-scrollbar-track { background: transparent; }
.insights-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

.insight-section {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.insight-section h3 {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.insight-content {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.insight-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 11px;
}

.insight-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    animation: tag-in 0.3s ease;
}

@keyframes tag-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.insight-tag.pattern { background: rgba(0, 210, 210, 0.12); color: var(--accent); }
.insight-tag.hook { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.insight-tag.delivery { background: rgba(124, 58, 237, 0.12); color: #a78bfa; }
.insight-tag.signature { background: rgba(52, 211, 153, 0.12); color: var(--success); }

.insight-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 11px;
    line-height: 1.5;
    animation: msg-in 0.35s ease;
}

.insight-item:last-child { border-bottom: none; }

.insight-item .insight-label {
    font-weight: 600;
    color: var(--accent-light);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.insight-item .insight-value {
    color: var(--text-primary);
}

.insight-meter {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    overflow: hidden;
}

.insight-meter-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-1);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Profile progress in insights */
.profile-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.profile-progress-label {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.profile-progress-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.profile-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-1);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-progress-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* --- Screen panel --- */

.screen-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: rgba(6, 6, 14, 0.5);
    min-height: 0;
    overflow: hidden;
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.screen-header h2 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 210, 210, 0.12);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-badge.visible { display: inline-flex; }

.live-badge .live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 1s infinite;
}

.screen-preview-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.screen-preview {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: var(--bg-primary);
    object-fit: contain;
    position: absolute;
    inset: 0;
}

.screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    text-align: center;
    position: absolute;
    inset: 0;
    justify-content: center;
    padding: 40px;
}

.screen-placeholder .placeholder-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.screen-placeholder p {
    font-size: 13px;
    max-width: 300px;
    line-height: 1.6;
}

/* --- Waveform --- */

.waveform-container {
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
    border-top: 1px solid var(--border);
    background: rgba(6, 6, 14, 0.8);
    flex-shrink: 0;
}

.waveform-container.visible { height: 40px; }

#waveform { width: 100%; height: 100%; display: block; }

/* --- Controls --- */

.controls-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-demo {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.btn-demo:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
}

.btn-demo:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-danger {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

.btn-mic {
    width: 42px; height: 42px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 18px;
}

.btn-mic:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-mic.active {
    background: rgba(0, 210, 210, 0.1);
    border-color: var(--accent);
    color: var(--accent-light);
    animation: mic-ring 2s ease-out infinite;
}

.btn-mic:disabled { opacity: 0.3; cursor: not-allowed; }

@keyframes mic-ring {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.controls-meta {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.hidden { display: none !important; }

/* --- Chat panel --- */

.chat-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    height: 100%;
    min-height: 0;
}

.director-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass);
    flex-shrink: 0;
}

.director-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.director-avatar.speaking {
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 24px var(--accent-glow);
    animation: avatar-speak 1s ease-in-out infinite alternate;
}

@keyframes avatar-speak {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.director-info h3 {
    font-size: 15px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.director-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Transcript --- */

.transcript {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    min-height: 0;
}

.transcript::-webkit-scrollbar { width: 5px; }
.transcript::-webkit-scrollbar-track { background: transparent; }
.transcript::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.transcript-entry {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
    animation: msg-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.transcript-entry.cadence {
    background: rgba(255, 107, 43, 0.06);
    border-color: rgba(0, 210, 210, 0.06);
    border-left: 3px solid var(--accent);
}

.transcript-entry.user {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.transcript-entry.system {
    background: rgba(52, 211, 153, 0.05);
    border-left: 3px solid var(--success);
    font-size: 12px;
}

.transcript-entry.transcribing {
    opacity: 0.6;
    font-style: italic;
}

.transcript-role {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.transcript-entry.cadence .transcript-role { color: var(--accent-light); }
.transcript-entry.system .transcript-role { color: var(--success); }

.transcript-text {
    display: block;
    color: var(--text-primary);
    word-break: break-word;
}

.transcript-text code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-2);
}

/* --- Suggestion chips --- */

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 0;
    flex-shrink: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-chips.visible {
    max-height: 120px;
    opacity: 1;
    padding: 10px 16px 6px;
}

.suggestion-chip {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    background: rgba(0, 210, 210, 0.06);
    color: var(--accent-light);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    animation: tag-in 0.3s ease;
}

.suggestion-chip:hover {
    background: rgba(0, 210, 210, 0.15);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 210, 210, 0.15);
}

/* --- Chat input --- */

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 18, 0.6);
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: all 0.25s;
}

.chat-input input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 210, 210, 0.1);
}

.chat-input input::placeholder { color: var(--text-muted); }

.btn-send {
    padding: 11px 18px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-send:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

/* --- Empty state --- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
    padding: 40px 32px;
    text-align: center;
}

.empty-state .hero-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.empty-state h2 {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state .typewriter {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.6;
    min-height: 44px;
}

.empty-state .typewriter .cursor {
    display: inline-block;
    width: 2px; height: 16px;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* --- Responsive --- */

@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 1fr 420px;
    }
    .insights-panel {
        display: none;
    }
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: 40% 60%;
    }
    .screen-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .insights-panel {
        display: none;
    }
}

/* --- Utility --- */

.fade-in { animation: fade-in 0.3s ease; }

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
