/**
 * interview.html page styles — Option A reskin (KEH-2528).
 */

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

        :root {
    --bg-primary: var(--cr-color-background);
    --bg-card: var(--cr-color-background-card);
    --bg-card-hover: var(--cr-color-background-section);
    --bg: var(--cr-color-background);
    --bg-alt: var(--cr-color-background-section);
    --bg-elevated: var(--cr-color-background-section);
    --bg-deep: var(--cr-color-background);
    --text-primary: var(--cr-color-text);
    --text-secondary: var(--cr-color-text-secondary);
    --text-mid: var(--cr-color-text-muted);
    --text-dim: var(--cr-color-text-muted);
    --text: var(--cr-color-text);
    --accent-red: var(--cr-color-accent);
    --accent: var(--cr-color-accent);
    --accent-bright: var(--cr-color-accent-bright);
    --accent-gold: var(--cr-color-text);
    --accent-gold-bright: var(--cr-color-text-secondary);
    --gold: var(--cr-color-text);
    --gold-bright: var(--cr-color-text-secondary);
    --green: var(--cr-color-success);
    --amber: var(--cr-color-warning);
    --success: var(--cr-color-success);
    --warning: var(--cr-color-warning);
    --border-subtle: var(--cr-color-border-strong);
    --border: var(--cr-color-border);
    --border-accent: rgba(212, 43, 32, 0.22);
    --shadow-soft: transparent;
    --accent-glow: transparent;
    --accent-glow-strong: transparent;
    --gold-glow: transparent;
}

        body {
            font-family: var(--cr-font-ui);
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
        }

        h1 { font-family: var(--cr-font-display); font-weight: var(--cr-font-weight-bold); letter-spacing: -0.02em; text-transform: none; }
        h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

        /* ═══════════════════════════════════════
           BRIEFING SCREEN — DOSSIER EDITION
        ═══════════════════════════════════════ */
        .briefing-screen {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 24px;
            background: var(--bg);
        }

        .briefing-card {
            max-width: 660px;
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--cr-color-border);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
            max-height: calc(100vh - 120px);
            display: flex;
            flex-direction: column;
        }

        /* Subtle corner brackets — dossier feel */
        .briefing-card::before,
        .briefing-card::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border-color: var(--accent);
            border-style: solid;
            opacity: 0.4;
        }
        .briefing-card::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
        .briefing-card::after  { top: 0; right: 0; border-width: 2px 2px 0 0; }

        /* ── Dossier Top Bar ── */
        .briefing-topbar {
            background: var(--cr-color-background);
            padding: 12px 28px;
            border-bottom: 1px solid var(--cr-color-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            position: relative;
        }

        .briefing-topbar .briefing-brand {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        @media (max-width: 520px) {
            .briefing-topbar .briefing-brand .cr-brand__wordmark {
                display: none;
            }
        }

        .briefing-topbar .back-link {
            font-size: 0.7rem;
            color: var(--text-dim);
            text-decoration: none;
            letter-spacing: 0.03em;
            transition: color 0.2s;
        }
        .briefing-topbar .back-link:hover { color: var(--text); }

        .briefing-stamp {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .briefing-stamp .stamp-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            color: var(--text-dim);
        }
        .briefing-stamp .threat-tag {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            color: var(--accent);
            background: rgba(212, 43, 32, 0.1);
            border: 1px solid rgba(212, 43, 32, 0.3);
            padding: 2px 7px;
            border-radius: 2px;
        }

        /* ── Dossier Meta Line ── */
        .briefing-meta {
            background: var(--cr-color-background-section);
            padding: 8px 28px;
            border-bottom: 1px solid var(--cr-color-border);
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            flex-shrink: 0;
        }
        .briefing-meta-item {
            font-family: 'Space Grotesk', monospace;
            font-size: 0.62rem;
            color: var(--text-dim);
            letter-spacing: 0.05em;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .briefing-meta-item .meta-label {
            color: var(--text-dim);
            opacity: 0.6;
        }
        .briefing-meta-item .meta-val {
            color: var(--text-mid);
            font-weight: 600;
        }
        .briefing-meta-sep {
            width: 1px;
            height: 12px;
            background: var(--cr-color-border-strong);
        }

        /* ── Dossier Title Block ── */
        .briefing-title-block {
            padding: 24px 28px 18px;
            flex-shrink: 0;
        }
        .briefing-title-block .doc-eyebrow {
            font-size: 0.62rem;
            letter-spacing: 0.18em;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 6px;
        }
        .briefing-title-block h1 { font-family: var(--cr-font-display); font-weight: var(--cr-font-weight-bold); letter-spacing: -0.02em; text-transform: none; }
        .briefing-title-block .briefing-subline {
            font-size: 0.75rem;
            color: var(--text-dim);
            line-height: 1.4;
            border-top: 1px solid var(--border);
            padding-top: 10px;
            margin-top: 4px;
        }

        /* ── Briefing Body (Tabbed Layout) ── */
        .briefing-body {
            display: flex;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
            padding: 0;
            min-height: 0;
        }

        /* Tab bar */
        .briefing-tabs {
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--cr-color-border);
            background: var(--cr-color-background-section);
            flex-shrink: 0;
            overflow-x: auto;
            gap: 0;
            scrollbar-width: none;
        }
        .briefing-tabs::-webkit-scrollbar { display: none; }

        .briefing-tab {
            flex: 0 0 auto;
            padding: 14px 18px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            color: var(--text-dim);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            position: relative;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
        }

        .briefing-tab:hover { color: var(--text-mid); }
        .briefing-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        /* Tab content container */
        .briefing-tabs-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px 28px;
            display: flex;
            flex-direction: column;
            min-height: 0;
            scrollbar-width: thin;
            scrollbar-color: var(--cr-color-border-strong) transparent;
        }
        .briefing-tabs-content::-webkit-scrollbar {
            width: 6px;
        }
        .briefing-tabs-content::-webkit-scrollbar-track {
            background: transparent;
        }
        .briefing-tabs-content::-webkit-scrollbar-thumb {
            background: var(--cr-color-border-strong);
            border-radius: 3px;
        }
        .briefing-tabs-content::-webkit-scrollbar-thumb:hover {
            background: var(--cr-color-text-muted);
        }

        /* Individual tab pane */
        .briefing-section {
            display: none;
            animation: fadeIn 0.2s ease;
        }
        .briefing-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .briefing-divider {
            display: none;
        }

        .briefing-section-title {
            font-size: 0.68rem;
            letter-spacing: 0.18em;
            color: var(--text-dim);
            margin-bottom: 14px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .briefing-section-title::after {
            display: none;
        }

        /* Your Role */
        .briefing-role {
            background: var(--cr-color-background-section);
            border-radius: 4px;
            padding: 14px 18px;
            border-left: 2px solid var(--accent);
        }
        .briefing-role .role-title {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            color: var(--text);
            margin-bottom: 4px;
        }
        .briefing-role .role-context {
            font-size: 0.88rem;
            line-height: 1.6;
            color: var(--text-mid);
        }
        .briefing-role .role-context strong { color: var(--text); }

        /* Situation block */
        .situation-block {
            background: var(--cr-color-background-section);
            border-radius: 4px;
            padding: 14px 18px;
            font-size: 0.88rem;
            color: var(--text-mid);
            line-height: 1.7;
        }
        .situation-block strong { color: var(--text); }

        /* What they know */
        .intel-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .intel-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.88rem;
            color: var(--text-mid);
            padding: 8px 14px;
            background: rgba(245,158,11,0.05);
            border: 1px solid rgba(245,158,11,0.12);
            border-radius: 4px;
            line-height: 1.5;
        }
        .intel-list .intel-dot {
            color: var(--amber);
            font-size: 0.7rem;
            margin-top: 4px;
            flex-shrink: 0;
        }

        /* Talking points */
        .talking-points {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .talking-points li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 14px;
            background: rgba(34, 197, 94, 0.05);
            border: 1px solid rgba(34, 197, 94, 0.12);
            border-radius: 4px;
            font-size: 0.88rem;
            color: var(--text-mid);
            line-height: 1.5;
        }
        .talking-points .tp-num {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            color: var(--green);
            font-size: 0.72rem;
            min-width: 22px;
            letter-spacing: 0.08em;
            margin-top: 1px;
        }

        /* Journalist card */
        .journalist-card {
            background: var(--cr-color-background-section);
            border-radius: 4px;
            padding: 14px 18px;
        }
        .journalist-card-row {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 12px;
        }
        .journalist-avatar-preview {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #9B1C1C, #b91c1c);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            color: white;
            flex-shrink: 0;
            border: 1px solid rgba(230,51,40,0.3);
        }
        .journalist-info .name {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text);
        }
        .journalist-info .j-role {
            font-size: 0.78rem;
            color: var(--text-dim);
            margin-top: 2px;
        }

        .tone-warning {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: rgba(212, 43, 32, 0.07);
            border: 1px solid rgba(212, 43, 32, 0.2);
            border-radius: 4px;
            padding: 10px 14px;
            font-size: 0.83rem;
            color: var(--text-mid);
            line-height: 1.5;
        }
        .tone-warning .tw-label {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 0.68rem;
            color: var(--accent);
            letter-spacing: 0.1em;
            white-space: nowrap;
            margin-top: 1px;
        }

        .avatar-feature-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding: 7px 12px;
            background: rgba(34, 197, 94, 0.06);
            border: 1px solid rgba(34, 197, 94, 0.15);
            border-radius: 4px;
            font-size: 0.76rem;
            color: var(--green);
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 500;
        }

        /* Go Live button */
        .go-live-wrapper {
            padding: 16px 28px 20px;
            position: relative;
            border-top: 1px solid var(--cr-color-border);
            flex-shrink: 0;
            background: var(--cr-color-background-card);
        }
        .go-live-wrapper::before {
            display: none;
        }

        .go-live-btn {
            width: 100%;
            padding: 14px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 4px;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            letter-spacing: 0.06em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }
        .go-live-btn::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, var(--cr-color-border) 0%, transparent 100%);
            pointer-events: none;
        }
        .go-live-btn:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: none; }
        .go-live-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

        /* Session Recording Toggle */
        .recording-toggle-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 16px;
            background: var(--cr-color-background-section);
            border-radius: 6px;
            margin-bottom: 16px;
            border: 1px solid var(--cr-color-border);
        }
        .recording-toggle-wrapper:hover {
            background: var(--cr-color-background);
        }
        .recording-toggle-label {
            font-size: 0.82rem;
            color: var(--text-mid);
            font-weight: 500;
        }
        .recording-toggle {
            position: relative;
            width: 44px;
            height: 24px;
            background: var(--cr-color-border-strong);
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .recording-toggle.active {
            background: var(--accent);
        }
        .recording-toggle::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s;
        }
        .recording-toggle.active::after {
            transform: translateX(20px);
        }
        .recording-status {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: var(--text-dim);
            margin-top: 8px;
            margin-bottom: var(--cr-space-lg);
            justify-content: center;
        }
        .recording-statusdot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text-dim);
        }
        .recording-status.recording .recording-statusdot {
            background: #ef4444;
            animation: pulse-live 1s ease-in-out infinite;
        }

        .live-icon {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 0 8px white;
            animation: pulse-live 1.5s ease-in-out infinite;
        }

        @keyframes pulse-live {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .briefing-screen.hidden { display: none; }


        /* ═══════════════════════════════════════
           INTERVIEW SCREEN — ZOOM-LIKE LAYOUT
        ═══════════════════════════════════════ */
        .interview-screen {
            display: none;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
            background: var(--cr-color-background);
        }

        .interview-screen.active { display: flex; }

        /* ── Top Bar ── */
        .top-bar {
            background: rgba(250, 249, 246, 0.96);
            border-bottom: 1px solid var(--cr-color-border);
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            z-index: 10;
            backdrop-filter: blur(12px);
        }

        .top-bar-left { display: flex; align-items: center; gap: 16px; }

        .live-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.6875rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--accent);
            font-weight: 700;
        }

        .live-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 3px rgba(212, 43, 32, 0.15);
            animation: pulse-live 1.5s ease-in-out infinite;
        }

        .session-label {
            font-size: 0.875rem;
            color: var(--text-dim);
            font-weight: 600;
        }

        .top-bar-right { display: flex; align-items: center; gap: 20px; }

        .question-counter {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.85rem;
            color: var(--text-mid);
            font-weight: 600;
        }
        .question-counter .current-q { color: var(--accent); }

        /* ── Session Countdown Timer ── */
        .session-timer-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 1px;
        }

        .session-timer-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.55rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            color: var(--text-dim);
            opacity: 0.7;
        }

        .session-timer {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-dim);
            font-variant-numeric: tabular-nums;
            min-width: 44px;
            text-align: right;
            transition: color 0.4s;
        }

        .session-timer.warning {
            color: var(--amber);
        }

        .session-timer.critical {
            color: var(--accent);
            animation: timerCriticalPulse 0.8s ease-in-out infinite;
        }

        @keyframes timerCriticalPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* ── Hard Break Overlay ── */
        .hard-break-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(6, 6, 9, 0.97);
            z-index: 500;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.5s ease;
            color: #FAF9F6;
        }

        .hard-break-overlay.active { display: flex; }

        .hard-break-content {
            text-align: center;
            padding: 48px 32px;
            max-width: 560px;
        }

        .hard-break-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.22em;
            color: var(--accent);
            background: rgba(212, 43, 32, 0.1);
            border: 1px solid rgba(212, 43, 32, 0.3);
            padding: 6px 14px;
            border-radius: 2px;
            margin-bottom: 28px;
        }

        .hard-break-badge::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 8px var(--accent);
            animation: pulse-live 1s ease-in-out infinite;
        }

        .hard-break-quote {
            font-family: var(--cr-font-display);
            font-size: clamp(1.8rem, 5vw, 2.8rem);
            letter-spacing: 0.04em;
            color: #FAF9F6;
            line-height: 1.15;
            margin-bottom: 20px;
        }

        .hard-break-divider {
            width: 48px;
            height: 2px;
            background: var(--accent);
            margin: 0 auto 18px;
            opacity: 0.5;
        }

        .hard-break-byline {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.82rem;
            color: rgba(250, 249, 246, 0.72);
            letter-spacing: 0.06em;
            margin-bottom: 36px;
        }

        .hard-break-loading {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.85rem;
            color: rgba(250, 249, 246, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .hard-break-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(212, 43, 32, 0.2);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            flex-shrink: 0;
        }

        /* ── Video Stage ── */
        .video-stage {
            flex: 1;
            position: relative;
            overflow: hidden;
            background: var(--cr-color-background-section);
            border-bottom: 1px solid var(--cr-color-border);
            min-height: 0;
        }

        /* Fallback avatar placeholder (shown when no HeyGen clip is loaded) */
        .avatar-placeholder {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: radial-gradient(ellipse at center, var(--cr-color-background-section) 0%, var(--cr-color-background) 70%);
            /* z-index: 1 — below video (z:2) and speaking ring (z:3).
               Without this, video stacks above placeholder even when
               placeholder display is set to flex, causing a black screen. */
            z-index: 1;
        }

        .avatar-placeholder-ring {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 2px solid var(--cr-color-border-strong);
            background: radial-gradient(circle at 35% 35%, rgba(212, 43, 32, 0.12), rgba(240, 239, 235, 0.9));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 1.75rem;
            color: var(--cr-color-text);
            margin-bottom: 16px;
            box-shadow: none;
        }

        .avatar-placeholder-ring.speaking {
            animation: speakingPulse 0.8s ease-in-out infinite;
        }

        @keyframes speakingPulse {
            0%, 100% { box-shadow: none; }
            50% { box-shadow: none; }
        }

        /* Speaking ring overlay on video */
        .speaking-ring {
            position: absolute;
            inset: 0;
            border: 3px solid var(--accent);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            box-shadow: inset 0 0 30px rgba(212, 43, 32, 0.15);
        }

        .speaking-ring.active { opacity: 1; }

        /* Name badge overlay (bottom-left of video) */
        .name-badge {
            position: absolute;
            bottom: 16px;
            left: 16px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            pointer-events: none;
        }

        .name-badge-inner {
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(8px);
            border-radius: 12px;
            padding: 10px 14px;
            border: 1px solid var(--cr-color-border);
        }

        .name-badge .badge-name {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 0.875rem;
            color: var(--cr-color-text);
        }

        .name-badge .badge-role {
            font-size: 0.75rem;
            color: var(--cr-color-text-muted);
            margin-top: 2px;
        }

        /* Speaking indicator on badge */
        .badge-speaking-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: none;
            display: inline-block;
            margin-right: 5px;
            animation: pulse-live 0.8s ease-in-out infinite;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .badge-speaking-dot.visible { opacity: 1; }

        /* User camera PiP */
        .user-pip {
            position: absolute;
            bottom: 16px;
            right: 16px;
            width: 160px;
            height: 112px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--cr-color-border-strong);
            background: #fff;
            box-shadow: none;
            transition: all 0.3s;
            z-index: 5; /* must be above heygenVideo (z-index:2) */
        }

        .user-pip:hover { border-color: var(--cr-color-text-muted); }

        #userCamera {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scaleX(-1);
        }

        .user-pip-label {
            position: absolute;
            bottom: 6px;
            left: 8px;
            font-size: 0.68rem;
            color: rgba(255, 255, 255, 0.5);
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 500;
            text-shadow: 0 1px 4px rgba(0,0,0,0.6);
        }

        .user-pip-no-cam {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--cr-color-background-section), #ddd);
            color: var(--text-dim);
            font-size: 1.5rem;
        }

        /* Connecting overlay */
        .connecting-overlay {
            position: absolute;
            inset: 0;
            background: rgba(9, 9, 16, 0.85);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            z-index: 20;
            backdrop-filter: blur(4px);
            transition: opacity 0.5s;
        }

        .connecting-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .connecting-spinner {
            width: 48px;
            height: 48px;
            border: 3px solid rgba(212, 43, 32, 0.2);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        .connecting-text {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.88rem;
            color: rgba(250, 249, 246, 0.85);
            font-weight: 500;
        }

        /* ── Countdown Overlay ── */
        .countdown-overlay {
            position: absolute;
            inset: 0;
            background: rgba(6, 6, 9, 0.93);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            z-index: 25;
            backdrop-filter: blur(3px);
            opacity: 1;
            transition: opacity 0.6s ease;
        }

        .countdown-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .countdown-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.3em;
            color: var(--accent);
            margin-bottom: 4px;
        }

        .countdown-number {
            font-family: var(--cr-font-display);
            font-size: clamp(7rem, 20vw, 12rem);
            line-height: 0.9;
            color: #FAF9F6;
            text-shadow: 0 0 60px rgba(212, 43, 32, 0.45), 0 0 120px rgba(212, 43, 32, 0.2);
            transform: scale(1);
            opacity: 1;
            transition: transform 0.25s ease-out, opacity 0.25s ease-out;
        }

        .countdown-number.tick-out {
            transform: scale(1.2);
            opacity: 0;
        }

        .countdown-on-air {
            font-family: var(--cr-font-display);
            font-size: clamp(3.5rem, 10vw, 6rem);
            letter-spacing: 0.12em;
            color: var(--accent);
            text-shadow: 0 0 40px rgba(212, 43, 32, 0.6);
            display: none;
        }

        .countdown-subline {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.72rem;
            font-weight: 500;
            letter-spacing: 0.18em;
            color: rgba(250, 249, 246, 0.72);
            margin-top: 6px;
            display: none;
        }

        @keyframes countdownPulse {
            0%   { transform: scale(0.88); opacity: 0; }
            40%  { transform: scale(1.04); opacity: 1; }
            100% { transform: scale(1);    opacity: 1; }
        }

        .countdown-number.tick-in {
            animation: countdownPulse 0.3s ease-out forwards;
        }

        /* ── Question Bar ── */
        .question-bar {
            background: #fff;
            border-bottom: 1px solid var(--cr-color-border);
            padding: 14px 20px;
            flex-shrink: 0;
            min-height: 52px;
            max-height: 96px;
            overflow-y: auto;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .question-bar-icon {
            font-size: 1.75rem;
            font-weight: 700;
            line-height: 1;
            color: var(--accent);
            margin-top: 2px;
            flex-shrink: 0;
        }

        .question-bar-text {
            font-size: 1rem;
            line-height: 1.55;
            color: var(--cr-color-text-secondary);
            font-style: italic;
            flex: 1;
        }

        .question-bar-text strong {
            color: var(--text);
            font-family: 'Space Grotesk', sans-serif;
            font-style: normal;
        }

        /* ── Feedback Strip ── */
        .feedback-strip {
            background: var(--cr-color-background-section);
            border-top: 1px solid var(--cr-color-border);
            padding: 8px 20px;
            flex-shrink: 0;
            overflow-x: auto;
            display: none;
            gap: 8px;
            align-items: center;
            scrollbar-width: none;
        }

        .feedback-strip.visible { display: flex; }
        .feedback-strip::-webkit-scrollbar { display: none; }

        .chip {
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid var(--border);
            color: var(--text-mid);
            background: var(--bg-elevated);
            font-weight: 500;
            white-space: nowrap;
            font-family: 'Space Grotesk', sans-serif;
        }

        .chip.good { border-color: rgba(34, 197, 94, 0.3); color: var(--green); background: var(--green-dim); }
        .chip.warn { border-color: rgba(245, 158, 11, 0.3); color: var(--amber); background: var(--amber-dim); }
        .chip.bad  { border-color: rgba(239, 68, 68, 0.3); color: var(--red); background: var(--red-dim); }
        .chip.score { color: var(--text-secondary); border-color: rgba(26, 26, 46, 0.18); background: rgba(26, 26, 46, 0.04); }

        /* ── Controls Bar ── */
        .controls-bar {
            background: var(--cr-color-background-section);
            border-top: 1px solid var(--cr-color-border);
            padding: 16px 20px 12px;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        /* Big round mic button */
        .mic-circle-btn {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            border: none;
            background: var(--accent);
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
            flex-shrink: 0;
            box-shadow: 0 8px 20px rgba(212, 43, 32, 0.22);
            justify-self: center;
        }

        .mic-circle-btn:hover:not(:disabled) {
            background: var(--accent-bright);
            transform: scale(1.05);
        }

        .mic-circle-btn:disabled { opacity: 0.35; cursor: not-allowed; }

        .mic-circle-btn.recording {
            background: var(--accent);
            border-color: var(--accent);
            animation: micPulse 1.5s ease infinite;
        }

        .mic-circle-btn.ready {
            background: var(--accent);
            border-color: var(--accent);
            animation: micReady 2s ease-in-out infinite;
        }

        @keyframes micPulse {
            0%, 100% { box-shadow: none; }
            50% { box-shadow: none; }
        }

        @keyframes micReady {
            0%, 100% { box-shadow: none; }
            50% { box-shadow: none; }
        }

        .mic-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--text-dim);
            text-align: center;
            min-width: 72px;
        }

        .mic-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            grid-column: 1;
            justify-self: center;
        }

        /* Type toggle button */
        .type-toggle-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: #fff;
            border: 1px solid var(--cr-color-border-strong);
            border-radius: 999px;
            color: var(--cr-color-text);
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.875rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            justify-self: end;
            grid-column: 3;
        }

        .type-toggle-btn:hover { border-color: var(--text-dim); color: var(--text); }
        .type-toggle-btn:disabled { opacity: 0.3; cursor: not-allowed; }

        /* Recording timer */
        .rec-timer {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.8125rem;
            color: var(--text-dim);
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            min-width: 40px;
            text-align: center;
            grid-column: 2;
        }

        /* ── Type Mode Panel ── */
        .type-panel {
            background: #fff;
            border-top: 1px solid var(--cr-color-border);
            padding: 12px 20px 20px;
            display: none;
            gap: 10px;
            align-items: flex-end;
            flex-shrink: 0;
        }

        .type-panel.visible { display: grid; grid-template-columns: 1fr auto; }

        .type-field {
            flex: 1;
            background: #fff;
            border: 1px solid var(--cr-color-border-strong);
            border-radius: 14px;
            padding: 12px 14px;
            color: var(--text);
            font-family: var(--cr-font-secondary);
            font-size: 0.9375rem;
            resize: none;
            min-height: 44px;
            max-height: 120px;
            line-height: 1.5;
            outline: none;
            transition: border-color 0.2s;
        }

        .type-field:focus { border-color: var(--border-accent); }
        .type-field::placeholder { color: var(--text-dim); }
        .type-field:disabled { opacity: 0.5; cursor: not-allowed; }

        .type-send-btn {
            padding: 12px 18px;
            height: 44px;
            background: var(--cr-color-text);
            color: white;
            border: none;
            border-radius: 999px;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            align-self: end;
        }

        .type-send-btn:hover:not(:disabled) { opacity: 0.9; }
        .type-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

        /* ── Upgrade Modal ── */
        .upgrade-modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 300;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        .upgrade-modal-backdrop.active { display: flex; }
        .upgrade-modal {
            background: var(--cr-color-background-card);
            border: 1px solid var(--cr-color-border-strong);
            border-radius: 16px;
            padding: 40px 36px;
            max-width: 420px;
            width: 90%;
            text-align: center;
            position: relative;
        }
        .upgrade-modal h2 {
            font-family: var(--cr-font-display);
            font-size: 2rem;
            color: var(--cr-color-text);
            letter-spacing: var(--cr-letter-spacing-display);
            margin-bottom: 10px;
        }
        .upgrade-modal p {
            color: var(--cr-color-text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 24px;
        }
        .upgrade-modal .feature-list {
            list-style: none;
            text-align: left;
            margin-bottom: 28px;
            padding: 0;
        }
        .upgrade-modal .feature-list li {
            color: var(--cr-color-text-secondary);
            font-size: 0.9rem;
            padding: 6px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .upgrade-modal .feature-list li::before {
            content: '✓';
            color: var(--cr-color-success);
            font-weight: 700;
            flex-shrink: 0;
        }
        .upgrade-modal .btn-upgrade {
            display: block;
            width: 100%;
            padding: 14px 24px;
            background: linear-gradient(135deg, var(--cr-color-text), var(--cr-color-text-secondary));
            color: var(--cr-color-background);
            font-weight: 700;
            font-size: 1rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-decoration: none;
            margin-bottom: 12px;
            transition: opacity 0.2s;
        }
        .upgrade-modal .btn-upgrade:hover { opacity: 0.9; }
        .upgrade-modal .btn-dismiss {
            background: none;
            border: none;
            color: var(--cr-color-text-muted);
            font-size: 0.85rem;
            cursor: pointer;
            text-decoration: underline;
        }
        .upgrade-modal .btn-dismiss:hover { color: var(--cr-color-text); }
        .upgrade-modal .price-hint {
            font-size: 0.8rem;
            color: var(--cr-color-text-muted);
            margin-bottom: 0;
            margin-top: -8px;
        }

        /* ── Session Complete Overlay ── */
        .session-complete-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(6, 6, 9, 0.95);
            z-index: 200;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.5s ease;
            color: #FAF9F6;
        }

        .session-complete-overlay.active { display: flex; }

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

        .complete-card {
            text-align: center;
            padding: 48px;
        }

        .complete-card h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: -0.02em;
            color: #FAF9F6;
        }

        .complete-card p { color: rgba(250, 249, 246, 0.78); font-size: 1rem; margin-bottom: 8px; }
        .complete-card .loading-text { color: var(--cr-color-accent-bright); font-size: 0.85rem; }

        /* Mobile */
        /* ── Exit Button (top-bar) ── */
        .exit-btn {
            background: #fff;
            border: 1px solid var(--cr-color-border-strong);
            color: var(--cr-color-text);
            width: 36px;
            height: 36px;
            border-radius: 999px;
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
            line-height: 1;
        }
        .exit-btn .cr-icon {
            width: 14px;
            height: 14px;
        }
        .exit-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: rgba(212, 43, 32, 0.08);
        }

        /* ── Exit Confirmation Modal ── */
        .exit-modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 400;
            align-items: center;
            justify-content: center;
        }
        .exit-modal-backdrop.active { display: flex; }
        .exit-modal {
            background: var(--cr-color-background-card);
            border: 1px solid var(--cr-color-border-strong);
            border-radius: 12px;
            padding: 32px 28px;
            max-width: 360px;
            width: 90%;
            text-align: center;
        }
        .exit-modal h2 {
            font-family: var(--cr-font-display);
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--cr-color-text);
            margin-bottom: 10px;
        }
        .exit-modal p {
            color: var(--cr-color-text-muted);
            font-size: 0.88rem;
            line-height: 1.5;
            margin-bottom: 24px;
        }
        .exit-modal-confirm {
            display: block;
            width: 100%;
            padding: 11px 20px;
            background: rgba(212, 43, 32, 0.15);
            border: 1px solid rgba(212, 43, 32, 0.4);
            color: var(--accent-bright);
            border-radius: 8px;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 10px;
            transition: all 0.2s;
        }
        .exit-modal-confirm:hover {
            background: rgba(212, 43, 32, 0.25);
            border-color: var(--accent);
        }
        .exit-modal-cancel {
            background: var(--cr-color-background-card);
            border: 1px solid var(--cr-color-border-strong);
            color: var(--cr-color-text-secondary);
            padding: 11px 20px;
            width: 100%;
            border-radius: 8px;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .exit-modal-cancel:hover {
            border-color: var(--cr-color-text-muted);
            color: var(--cr-color-text);
        }

        @media (max-width: 640px) {
            .briefing-screen { padding: 20px 16px 40px; }
            .briefing-topbar { padding: 12px 18px; }
            .briefing-meta { padding: 8px 18px; gap: 12px; }
            .briefing-title-block { padding: 20px 18px 0; }
            .briefing-title-block h1 { font-size: 2rem; }
            .briefing-body { padding: 18px 18px 24px; }
            .go-live-wrapper { padding: 0 18px 24px; }
            .controls-bar {
                padding: 12px 16px;
                gap: 12px;
                grid-template-columns: 1fr;
                justify-items: center;
            }
            .type-toggle-btn { justify-self: center; grid-column: 1; }
            .mic-wrap { grid-column: 1; }
            .rec-timer { grid-column: 1; }
            .session-label { display: none; }
            .mic-circle-btn { width: 60px; height: 60px; }
            .user-pip { width: 120px; height: 84px; }
            .top-bar { padding: 10px 14px; }
            .top-bar-right { gap: 12px; }
        }

/* KEH-2528 — flat Option A overrides */
.go-live-btn,
.mic-circle-btn,
.btn-upgrade,
.btn-dismiss,
.exit-modal-confirm {
  box-shadow: none;
}

.briefing-card::before,
.briefing-card::after {
  display: none;
}

.briefing-card {
  border-radius: var(--cr-radius-md);
  border-color: var(--cr-color-border);
}
