@font-face {
    font-family: 'ABC Arizona Flare';
    src: url('/fonts/ABCArizonaFlare-Regular-Trial.woff2') format('woff2'),
         url('/fonts/ABCArizonaFlare-Regular-Trial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ABC Arizona Flare Sans';
    src: url('/fonts/ABCArizonaSans-Regular-Trial.woff2') format('woff2'),
         url('/fonts/ABCArizonaSans-Regular-Trial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #fdfbf7;
    --text: #342e29;
    --accent-red: #86312b;
    --accent-green: #344736;
    --border-color: #342e29;
    --font-serif: 'ABC Arizona Flare', serif;
    --font-sans: 'ABC Arizona Flare Sans', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

button, select {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--border-color);
    background: var(--bg);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    touch-action: manipulation;
}

input {
    font-family: var(--font-sans);
    border: 2px solid var(--border-color);
    background: var(--bg);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 0;
    font-size: 1rem;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

button:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px) scale(0.98);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(134, 49, 43, 0.85);
    outline-offset: 3px;
}

button:disabled, input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: normal;
    letter-spacing: -0.02em;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Start Screen — Editorial Split */
.start-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Lock the outer container */
}

.start-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-hero {
    height: 60vh;
    width: 100%;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255, 205, 136, 0.28), transparent 26%),
        radial-gradient(circle at 78% 20%, rgba(94, 132, 101, 0.35), transparent 24%),
        linear-gradient(135deg, rgba(17, 25, 21, 0.5), rgba(17, 25, 21, 0) 42%),
        linear-gradient(180deg, #15120f 0%, #233128 44%, #111a15 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1612;
    position: absolute; /* Changed from fixed to absolute to stay pinned to the top of the fixed parent */
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 1; /* Lowest level */
}

.start-content-scroll-wrapper {
    position: absolute; /* Overlay the hero completely */
    inset: 0;
    z-index: 10; /* High level to ensure it is in front of the hero */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.start-content-spacer {
    height: 50vh; /* This defines how much of the image is seen initially */
    flex-shrink: 0;
    pointer-events: none; /* Let clicks pass through to the hero if needed */
}

.start-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 64px 32px 120px;
    background: var(--bg); /* Opaque background ensures it covers the hero as it scrolls up */
    position: relative;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.3); /* Stronger shadow for depth */
}

.start-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-hero {
    height: 50vh; /* Exactly 50% of the viewport height */
    width: 100%;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255, 205, 136, 0.28), transparent 26%),
        radial-gradient(circle at 78% 20%, rgba(94, 132, 101, 0.35), transparent 24%),
        linear-gradient(135deg, rgba(17, 25, 21, 0.5), rgba(17, 25, 21, 0) 42%),
        linear-gradient(180deg, #15120f 0%, #233128 44%, #111a15 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1612;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent the image from being squished by keyboard or content */
}

.start-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent 40%);
    pointer-events: none;
}

.start-hero-gradient {
    position: absolute;
    inset: auto -10% -22% auto;
    width: min(48vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 153, 0.38) 0%, rgba(255, 214, 153, 0.12) 34%, transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}

.start-hero-badge {
    position: absolute;
    top: 26px;
    left: 26px;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid rgba(255, 248, 238, 0.28);
    background: rgba(18, 22, 18, 0.38);
    color: rgba(255, 248, 238, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    backdrop-filter: blur(10px);
}

.start-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top to control spacing better */
    padding: 48px 32px;
    background: var(--bg);
    position: relative;
    margin-top: -40px; /* Pull content UP into the image area */
    border-top-left-radius: 40px; /* Elegant rounded corner transition */
    border-top-right-radius: 40px;
    z-index: 5;
}

.start-header-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px; /* Tightened from 48px */
    animation: editorialFadeIn 1s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.start-title {
    font-size: clamp(2.2rem, 8vw, 4rem); /* Slightly smaller on mobile to save vertical space */
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text);
    text-transform: uppercase;
    text-wrap: balance;
}

.name-input, .session-passcode {
    width: 100%;
    height: 56px; /* Tightened from 64px */
    border: none;
    border-bottom: 1px solid rgba(52, 46, 41, 0.15);
    background: transparent;
    font-size: 1rem; /* Better mobile readability */
    padding: 0 8px;
    appearance: none;
}

.start-header-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
    animation: editorialFadeIn 1s cubic-bezier(0.2, 1, 0.3, 1) both;
}

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

.start-title {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--text);
    text-transform: uppercase;
    text-wrap: balance;
}

.start-sub {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.58;
    font-weight: 600;
}

.start-intro {
    max-width: 36rem;
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.65;
    opacity: 0.78;
    text-wrap: pretty;
}

.start-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 520px;
    animation: editorialFadeIn 1s cubic-bezier(0.2, 1, 0.3, 1) 0.2s both;
    position: relative;
}

.start-actions::before {
    content: 'Join the room';
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.5;
}

.name-input, .session-passcode {
    width: 100%;
    height: 64px;
    border: none;
    border-bottom: 1px solid rgba(52, 46, 41, 0.15);
    background: transparent;
    font-size: 1.1rem;
    padding: 0 16px;
    appearance: none;
}

.name-input:focus, .session-passcode:focus {
    border-bottom: 2px solid var(--text);
    background: rgba(0,0,0,0.02);
}

.btn-start {
    margin-top: 32px;
    height: 64px;
    background: var(--text);
    color: var(--bg);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: bold;
}

.btn-start:hover {
    background: var(--accent-green);
    color: #fff;
}

.start-hint {
    margin-top: 40px;
    font-size: 0.75rem;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.6;
    max-width: 400px;
}

.session-recovery-msg {
    font-size: 0.75rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    opacity: 0.8;
}

.session-recovery-msg.hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Help Icon — floating bottom right */
.help-fab {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #86312b;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    box-shadow: none;
    position: static;
    padding: 0;
}

.help-fab:hover {
    background: #9e3430;
    transform: scale(1.1);
}

/* Help Modal */
.help-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(28, 22, 18, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.help-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.help-modal {
    background: var(--bg);
    border: 2px solid var(--border-color);
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.help-modal-overlay.open .help-modal {
    transform: translateY(0);
}

.help-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.help-modal-close:hover {
    background: var(--text);
    color: var(--bg);
}

.help-modal h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.help-modal-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 32px;
    line-height: 1.5;
}

.guideline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.guideline-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--accent-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.guideline-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.guideline-text p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    opacity: 0.65;
    line-height: 1.5;
}

/* Present View */
.present-view {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.presentation-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.presentation-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg);
    z-index: 10;
    align-items: center;
}

.topbar-label {
    font-family: var(--font-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--border-color);
    padding: 6px 16px;
    background: #fff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    position: relative;
}

.status-dot.live { 
    background: #2ecc71; 
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.status-dot.paused { background: #f39c12; }

.status-dot.your-turn {
    background: var(--accent-green);
    animation: pulse-your-turn 1.5s ease-in-out infinite;
}

@keyframes pulse-your-turn {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.status-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#status-text {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-detail {
    font-size: 0.7rem;
    opacity: 0.6;
}

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

.chat-fab {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
}

.chat-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-fab-count.is-zero {
    display: none;
}

.slide-counter {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Slide Area */
.slide-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.slide-container {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-visual-shell {
    flex: 1;
    min-height: 300px;
    border-bottom: 2px solid var(--border-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #fff;
    transition: background-image 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blur-up {
    filter: blur(20px);
}

.slide-copy {
    padding: 40px 32px;
    transition: all 0.4s ease;
    background: var(--bg);
    position: relative;
    padding-bottom: 120px; /* Space for footer */
}

.folio-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(52, 46, 41, 0.1);
    padding-bottom: 10px;
    position: relative;
}

.folio-date, .folio-deck {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.slide-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

.slide-content-flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slide-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    opacity: 0.9;
    font-family: var(--font-serif);
}

.transcription-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.full-transcription {
    margin: 0;
    width: 100%;
    max-width: 720px;
    opacity: 1;
}

.narration-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 8px;
    background: var(--bg);
    position: relative;
}

.narration-progress-track {
    flex: 0 0 80%;
    width: 80%;
    height: 4px;
    background: rgba(52, 46, 41, 0.1);
    border-radius: 2px;
    overflow: hidden;
    order: 1;
}

.narration-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--text);
    border-radius: 2px;
    transition: width 120ms linear;
}

.slide-pause-btn {
    flex: 0 0 20%;
    width: 20%;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--text);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    order: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slide-pause-btn:hover {
    background: #333;
}

.slide-pause-btn.is-paused {
    background: var(--accent-green);
}

.slide-pause-btn.is-paused:hover {
    background: #2a8a4a;
}

.full-transcription {
    margin: 0;
    width: 100%;
    max-width: 100%;
    opacity: 1;
}

/* Scrubber / Slide History Carousel Modal */
.scrubber-container {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(28, 22, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scrubber-container:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.scrubber-modal {
    background: var(--bg);
    border: 2px solid var(--border-color);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.scrubber-container:not(.hidden) .scrubber-modal {
    transform: translateY(0);
}

.scrubber-inner {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 32px 48px;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.scrubber-inner::-webkit-scrollbar {
    display: none;
}
.scrubber-inner {
    scrollbar-width: none;
}

.scrubber-header {
    padding: 40px 32px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.scrubber-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 720px;
}

.scrubber-nav {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.scrubber-nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
}

.scrubber-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.scrubber-nav-btn:hover:not(:disabled) {
    background: var(--text);
    color: var(--bg);
}

.scrubber-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    opacity: 0.5;
}

.scrubber-copy {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.72;
}

.scrubber-filmstrip {
    display: inline-flex;
    gap: 12px;
    padding-bottom: 4px;
}

.scrubber-empty-state {
    min-height: 160px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 1px dashed rgba(52, 46, 41, 0.22);
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.58;
    background: rgba(255, 255, 255, 0.36);
}

.scrubber-thumb {
    width: 136px;
    height: 88px;
    border: 2px solid var(--border-color);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.4;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    color: #fff;
    text-align: left;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, opacity;
}

.scrubber-thumb:hover {
    opacity: 0.95;
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255,255,255,0.4);
}

.scrubber-thumb.active:hover {
    border-color: var(--accent-red);
}

.scrubber-thumb.active {
    opacity: 1;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(134, 49, 43, 0.2), 0 16px 28px rgba(0,0,0,0.12);
}

.scrubber-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 14, 12, 0.08), rgba(16, 14, 12, 0.58));
    pointer-events: none;
}

.scrubber-thumb.no-image {
    background: linear-gradient(180deg, #a28f78, #6f5f50);
}

.scrubber-thumb-index,
.scrubber-thumb-title {
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.scrubber-thumb.disabled {
    opacity: 0.5;
    filter: grayscale(1) contrast(0.8);
    cursor: not-allowed;
    border-color: rgba(52, 46, 41, 0.15);
    transform: none !important;
}

.scrubber-thumb.disabled:hover {
    transform: none !important;
}

.scrubber-thumb-index {
    font-size: 0.7rem;
    opacity: 0.86;
}

.scrubber-thumb-title {
    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0.88;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.scrubber-thumb-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0,0,0,0.3);
    transition: opacity 0.2s ease;
}

.scrubber-thumb:hover .scrubber-thumb-overlay,
.scrubber-thumb.active .scrubber-thumb-overlay {
    opacity: 1;
}

.scrubber-thumb.disabled .scrubber-thumb-overlay {
    opacity: 1;
    background: transparent;
}

.scrubber-action-icon {
    width: 24px;
    height: 24px;
    color: white;
    drop-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scrubber-icon-pulse {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.wrapup-question-copy {
    margin: 18px 0 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.75;
}

/* Subtitles / Transcript removed */

/* Presentation Footer */
.presentation-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align to bottom so hints sit above */
    padding: 24px 32px;
    border-top: none;
    background: var(--bg);
    z-index: 10;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left {
    align-items: flex-start;
}

.footer-right {
    align-items: flex-end;
}

.help-fab {
    position: relative;
}

.interrupt-mic {
    position: relative;
}

.icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d54d2a;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.interrupt-mic .icon-badge {
    top: -4px;
    right: -4px;
}

.footer-hint {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    font-weight: bold;
}

.footer-continue-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-green);
    color: #fff;
    border: 2px solid var(--accent-green);
    font-size: 0.8rem;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.footer-continue-btn.visible {
    display: flex;
}

.footer-continue-btn:hover {
    background: #2a3a2b;
    border-color: #2a3a2b;
    transform: none;
}

/* Immersive Dock */
.immersive-dock {
    display: flex;
    align-items: center;
    gap: 32px;
}

.dock-hint {
    display: flex;
    flex-direction: column;
}

.dock-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.dock-sub {
    font-size: 0.85rem;
    opacity: 0.6;
}

.interrupt-mic {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(52, 46, 41, 0.96), rgba(52, 46, 41, 0.88));
    color: #fff;
    border-color: rgba(52, 46, 41, 0.2);
    box-shadow: 0 16px 40px rgba(52, 46, 41, 0.12);
}

.interrupt-mic:hover {
    background: linear-gradient(180deg, rgba(38, 34, 30, 0.98), rgba(52, 46, 41, 0.92));
    border-color: rgba(52, 46, 41, 0.3);
}

.interrupt-mic.listening {
    background: linear-gradient(180deg, rgba(77, 90, 66, 0.98), rgba(52, 46, 41, 0.92));
    border-color: rgba(77, 90, 66, 0.35);
}

/* Dialogue / Q&A Panel — Editorial Style */
.qa-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 480px;
    background: var(--bg);
    border-left: 1px solid rgba(52, 46, 41, 0.1);
    z-index: 500;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -40px 0 100px rgba(52, 46, 41, 0.08);
}

.qa-panel.hidden {
    transform: translateX(100%);
}

.qa-panel-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.qa-header {
    padding: 48px 40px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.qa-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
    opacity: 0.4;
    margin-bottom: 8px;
}

.qa-display-title {
    font-size: 2.5rem;
    line-height: 1;
}

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

.qa-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 46, 41, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.qa-count {
    font-weight: bold;
    font-size: 0.85rem;
}

.qa-pill-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.5;
}

.qa-close-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(52, 46, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: var(--text);
}

.qa-close-circle:hover {
    background: var(--text);
    color: var(--bg);
}

.qa-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px;
    margin-bottom: 120px; /* Space for sticky footer */
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Question Cards - Personal Chat Style */
.qa-card {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(52, 46, 41, 0.08);
    position: relative;
    animation: editorialFadeIn 0.8s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.qa-card.is-answered {
    border-left: 4px solid var(--accent-green);
}

.qa-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.5;
    gap: 12px;
}

.qa-card-meta .question-author {
    font-weight: 600;
}

.qa-card-question {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text);
    padding-left: 0;
}

.qa-card-answer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(52, 46, 41, 0.1);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
}

.qa-answer-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-answer-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qa-answer-thread-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.qa-answer-audio-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green);
    color: #fff;
    border-color: transparent;
}

.qa-answer-audio-btn:hover:not(:disabled) {
    background: #2b3a2c;
    color: #fff;
    transform: translateY(-1px);
}

.qa-answer-audio-btn:disabled {
    background: rgba(52, 46, 41, 0.12);
    color: rgba(52, 46, 41, 0.4);
}

.qa-answer-audio-icon {
    display: block;
}

.qa-answer-thread-summary {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.86;
}

.qa-answer-thread-details {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.65;
}

.qa-answer-reel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-answer-piece {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(253, 251, 247, 0.92), rgba(244, 238, 229, 0.88));
    border: 1px solid rgba(52, 46, 41, 0.12);
    box-shadow: 0 10px 24px rgba(52, 46, 41, 0.05);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.45;
    animation: qaAnswerSwap 560ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

@keyframes qaAnswerSwap {
    from { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.qa-empty-state {
    padding: 60px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.qa-empty-state p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.4;
    max-width: 280px;
}

/* Q&A Footer / Input Area */
.qa-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px 48px;
    background: linear-gradient(to top, var(--bg) 80%, rgba(253, 251, 247, 0) 100%);
}

.qa-input-container {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: #fff;
    padding: 8px 8px 8px 20px;
    border: 1px solid rgba(52, 46, 41, 0.1);
    box-shadow: 0 10px 30px rgba(52, 46, 41, 0.05);
}

.qa-textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    resize: none;
    max-height: 120px;
    color: var(--text);
}

.qa-textarea:focus {
    outline: none;
}

.qa-send-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.qa-send-btn:hover {
    background: var(--text);
    transform: scale(1.05);
}

.qa-send-btn:disabled {
    background: rgba(52, 46, 41, 0.15);
    cursor: not-allowed;
    transform: none;
}

.qa-send-btn svg {
    margin-left: 2px;
}

.qa-input-hint {
    margin-top: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.3;
    font-weight: bold;
}

@media (max-width: 720px) {
    .qa-panel {
        width: 100%;
        border-left: none;
    }

    .qa-header {
        padding: 32px 24px 24px;
    }

    .qa-content-area {
        padding: 0 24px;
    }

    .qa-footer {
        padding: 24px 24px 32px;
    }
}

/* Reactions */
.reaction-bar {
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 20;
}

.reaction-btn {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text);
    transition: all 0.2s ease;
    font-size: 1.4rem;
}

.reaction-btn:hover {
    transform: translateY(-4px) scale(1.1);
}

.reaction-clap:hover { background: #344736; }
.reaction-heart:hover { background: #86312b; }
.reaction-idea:hover { background: #ffc083; }

.reaction-btn:active {
    transform: scale(0.9);
}

.floating-reaction {
    position: absolute;
    bottom: 20px;
    pointer-events: none;
    z-index: 100;
    user-select: none;
    will-change: transform, opacity;
}

@keyframes float-and-fade {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--drift), -250px) rotate(var(--rotation)) scale(var(--scale));
        opacity: 0;
    }
}

/* Polls */
.poll-container {
    position: absolute;
    top: 32px;
    right: 32px;
    background: #fff;
    border: 2px solid var(--border-color);
    padding: 32px;
    width: 380px;
    max-width: calc(100vw - 64px);
    z-index: 15;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.poll-container h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Turn Overlay */
.slide-turn-overlay {
    display: none;
}

.slide-turn-overlay.hidden {
    display: none;
}

.slide-turn-card {
    background: #fff;
    border: 3px solid var(--border-color);
    padding: 80px 60px;
    max-width: 720px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 48px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.1);
    transform: translateY(0) scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-turn-overlay.hidden .slide-turn-card {
    display: none;
}

.slide-turn-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slide-turn-eyebrow {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--accent-red);
    display: block;
}

.slide-turn-title {
    font-size: 4rem;
    line-height: 1;
    font-weight: normal;
}

.slide-turn-detail {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

.slide-turn-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.slide-turn-mic, .slide-turn-continue {
    height: 72px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 0;
    font-size: 1rem;
    min-width: 240px;
}

.slide-turn-mic {
    background: linear-gradient(180deg, rgba(52, 46, 41, 0.96), rgba(52, 46, 41, 0.88));
    color: #fff;
    border-color: rgba(52, 46, 41, 0.18);
}

.slide-turn-continue {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border-color);
}

.slide-turn-qa {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.slide-turn-input-row {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.slide-turn-input {
    flex: 1;
    height: 56px;
    background: #f9f9f9;
}

.slide-turn-send {
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.slide-turn-send:hover {
    background: var(--text);
    border-color: var(--text);
}

/* Modal UI */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(52, 46, 41, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-card {
    background: var(--bg);
    border: 3px solid var(--border-color);
    padding: 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.modal-icon.alert {
    background: #fff0f0;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.modal-card h2 {
    font-size: 2.2rem;
    line-height: 1.1;
}

.modal-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
}

.btn-text {
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    font-size: 0.8rem;
    opacity: 0.6;
}

.btn-text:hover {
    background: transparent;
    color: var(--text);
    opacity: 1;
}

/* Mobile UI Refinement */
@media (max-width: 720px) {
    .start-content {
        padding: 48px 32px;
        max-width: 100%;
    }

    .start-title {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .start-sub {
        font-size: 1rem;
        margin-bottom: 36px;
    }

    .start-actions {
        gap: 12px;
    }

    .name-input, .session-passcode, .btn-start {
        height: 56px;
    }

    .help-modal {
        padding: 36px 28px;
    }

    .help-modal h2 {
        font-size: 1.6rem;
    }

    .topbar {
        padding: 12px 16px;
    }

    .topbar-right {
        gap: 12px;
    }

    .help-fab {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .topbar-label {
        font-size: 1rem;
    }

    .topbar-center {
        display: none;
    }

    .slide-main {
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .slide-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .slide-visual-shell {
        flex: none;
        height: 30%;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        border-bottom: 2px solid var(--border-color);
    }

    .slide-copy {
        flex: 1;
        padding: 24px 20px 108px 20px; /* Account for 84px footer + 24px spacing */
        background: var(--bg);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .folio-bar {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .slide-title {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .slide-content-flow {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 12px;
    }

    .slide-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(52, 46, 41, 0.1);
    }

    .transcription-wrapper {
        display: flex;
        flex-direction: column;
    }

    .full-transcription {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .narration-controls {
        padding: 10px 0;
        margin-bottom: 8px;
        gap: 12px;
        background: var(--bg);
    }

    .slide-copy {
        padding: 24px 20px 100px;
    }

    .presentation-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg);
        z-index: 100;
        border-top: none;
        padding: 0 24px;
        height: 84px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .reaction-btn {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(52, 46, 41, 0.15);
        background: rgba(52, 46, 41, 0.02);
    }

    .interrupt-mic {
        padding: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 2px 2px 0 var(--border-color);
    }

    .interrupt-label {
        display: none;
    }

    .footer-hint {
        display: none;
    }

    /* Poll Visibility Fix (Mobile) */
    .poll-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        z-index: 3000;
        box-shadow: 0 20px 80px rgba(0,0,0,0.4);
        padding: 32px 24px;
    }

    .slide-turn-card {
        padding: 48px 24px;
        gap: 32px;
    }

    .slide-turn-title {
        font-size: 2.8rem;
    }

    .slide-turn-actions {
        flex-direction: column;
        gap: 12px;
    }

    .slide-turn-mic, .slide-turn-continue {
        width: 100%;
        min-width: 0;
    }

    .qa-panel {
        width: 100%;
        border-left: none;
        box-shadow: none;
    }

    .qa-panel.hidden {
        transform: translateX(100%);
    }

    /* Waveform: Bottom-right overlay on image */
    .waveform {
        position: absolute;
        bottom: 12px;
        right: 16px;
        left: auto;
        width: 120px;
        height: 24px;
        z-index: 20;
    }
}

/* Loading Overlay — The 10% Breath */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.loading-content {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
}

.loading-quote-container {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.loading-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    color: var(--text);
    animation: quoteFadeIn 1.5s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.loading-author {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
    animation: quoteFadeIn 1.5s cubic-bezier(0.2, 1, 0.3, 1) 0.3s both;
}

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

.loading-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(52, 46, 41, 0.1);
    position: relative;
    overflow: hidden;
}

.loading-progress-fill {
    position: absolute;
    inset: 0;
    background: var(--text);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-status {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    font-weight: bold;
}

.loading-progress-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
    margin-top: 0.5rem;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

/* Transcript Reel */
.transcript-reel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 120px;
    width: 100%;
    animation: reelEnter 420ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.transcript-reel-waiting {
    gap: 14px;
}

.transcript-reel-meta {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    opacity: 0.52;
}

.transcript-reel-phrase {
    font-family: var(--font-serif);
    font-size: 1rem; /* 16px on mobile */
    line-height: 1.16;
    letter-spacing: -0.04em;
    max-width: 18ch;
    text-wrap: balance;
    animation: phraseSwap 620ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

.transcript-reel-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.transcript-reel-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(52, 46, 41, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(253, 251, 247, 0.88), rgba(248, 243, 235, 0.78));
    box-shadow: 0 10px 30px rgba(52, 46, 41, 0.05);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    animation: pillPulse 1.8s ease-in-out infinite;
}

.transcript-reel-waiting .transcript-reel-pill:nth-child(2) {
    animation-delay: 220ms;
}

.transcript-reel-waiting .transcript-reel-pill:nth-child(3) {
    animation-delay: 440ms;
}

.transcript-reel-complete .transcript-reel-phrase {
    color: var(--text);
}

.transcript-reel-progress {
    width: 100%;
    height: 2px;
    background: rgba(52, 46, 41, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 4px;
}

.transcript-reel-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent, #342e29);
    border-radius: 1px;
    transition: width 120ms linear;
}

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

@keyframes phraseSwap {
    from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes pillPulse {
    0%, 100% { opacity: 0.48; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-1px); }
}

.wrapup-actions {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}

.wrapup-mic {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(52, 46, 41, 0.96), rgba(52, 46, 41, 0.88));
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(134, 49, 43, 0.3);
}

.wrapup-mic:hover {
    background: linear-gradient(180deg, rgba(38, 34, 30, 0.98), rgba(52, 46, 41, 0.92));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.wrapup-mic.listening {
    background: linear-gradient(180deg, rgba(77, 90, 66, 0.98), rgba(52, 46, 41, 0.92));
}

.wrapup-mic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapup-panel {
    margin-top: 40px;
    text-align: left;
    width: 100%;
}

.wrapup-mcqs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Dot progress row */
.wrapup-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.wrapup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(52, 46, 41, 0.18);
    transition: all 0.3s ease;
}
.wrapup-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--text);
}
.wrapup-dot.done {
    background: rgba(52, 46, 41, 0.45);
}

.wrapup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
}

.wrapup-eyebrow {
    display: block;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.wrapup-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.wrapup-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.wrapup-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wrapup-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fdfbf7;
    border: 2px solid var(--border-color);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    gap: 12px;
    width: 100%;
}

/* Typeform-style MCQ card */
.typeform-card {
    gap: 0;
}

.typeform-qnum {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.4;
    margin-bottom: 16px;
}

.typeform-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.typeform-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.typeform-option {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(253, 251, 247, 0.7);
    border: 2px solid rgba(52, 46, 41, 0.12);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
}

.typeform-option:hover {
    border-color: rgba(52, 46, 41, 0.3);
    border-left-color: var(--text);
    background: #fff;
    transform: translateX(3px);
}

.typeform-option.is-selected {
    background: #fff;
    border-color: var(--text);
    border-left-color: var(--accent-green);
    border-left-width: 4px;
    box-shadow: 0 4px 20px rgba(52, 46, 41, 0.08);
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
}

.typeform-opt-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1.5px solid rgba(52, 46, 41, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: bold;
    opacity: 0.6;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.typeform-option.is-selected .typeform-opt-letter {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
    opacity: 1;
}

.typeform-option .option-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    z-index: 1;
    text-align: left;
}

.typeform-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: bold;
    opacity: 0.65;
    grid-column: 3;
}

.typeform-bar-wrap {
    grid-column: 1 / -1;
    height: 3px;
    background: rgba(52, 46, 41, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.typeform-bar {
    height: 100%;
    background: var(--accent-green);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.wrapup-option.is-selected {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--border-color);
    border-width: 3px;
}

.option-text {
    font-family: var(--font-sans);
    font-weight: bold;
    font-size: 1rem;
    z-index: 1;
}

.option-bar-bg {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.option-bar {
    height: 100%;
    background: var(--accent-green);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-count {
    font-size: 0.85rem;
    opacity: 0.7;
    z-index: 1;
    align-self: flex-end;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
}

.wrapup-slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.wrapup-nav-btn {
    padding: 8px 16px;
    min-width: 80px;
}

.wrapup-progress {
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
}

.story-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: #344736;
    color: #fff;
    border: none;
    font-family: 'ABC Arizona Flare', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-btn:hover {
    background: #342e29;
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .completion-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .wrapup-panel {
        margin-top: 24px;
    }

    .wrapup-header {
        flex-direction: column;
        gap: 8px;
    }

    .wrapup-timer {
        font-size: 1.2rem;
    }

    .wrapup-card-title {
        font-size: 1.1rem;
    }

    .wrapup-option {
        padding: 12px;
    }

    .wrapup-slider-nav {
        margin-top: 20px;
        padding-top: 16px;
    }

    .cta-blocks {
        gap: 8px;
    }

    .cta-block {
        padding: 14px 16px;
    }

    .cta-block-label {
        font-size: 0.9rem;
    }
}


/* Compact MCQ & QA Slides */
/* QA Slides */
.wrapup-qa-slides { margin-top: 32px; border-top: 1px solid var(--border-color); padding-top: 24px; }
.qa-slides-title { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 16px; }
.qa-slides-scroll { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.qa-slides-scroll::-webkit-scrollbar { display: none; }
.qa-slide-card { flex: 0 0 85%; min-width: 280px; max-width: 400px; background: rgba(0,0,0,0.03); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; scroll-snap-align: center; display: flex; flex-direction: column; gap: 12px; }
.qa-slide-header { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.qa-slide-q { font-weight: 600; font-size: 1.05rem; }
.qa-slide-a { font-size: 0.95rem; line-height: 1.5; color: var(--text-dim); }


/* Pause/Play Button */
.slide-pause-btn { position: absolute; bottom: 10px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-red); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.15s; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.slide-pause-btn:hover { transform: scale(1.1); background: #9e3430; }
.slide-pause-btn.is-paused { background: var(--accent-green); }
.slide-pause-btn.is-paused:hover { background: #2a3a2b; }

/* ============================================
   DESKTOP REDESIGN (min-width: 1025px)
   Mobile CSS above is preserved as-is.
   ============================================ */

@media (min-width: 1025px) {

    /* --- Start Screen: Editorial Split --- */
    .start-screen {
        flex-direction: row;
        overflow: hidden;
    }

    .start-hero {
        width: 50%;
        height: 100vh;
        flex: none;
        position: relative; /* Reset from absolute if base had it */
    }

    .start-content-scroll-wrapper {
        position: relative; /* Disable absolute overlay */
        width: 50%;
        height: 100vh;
        flex: none;
        z-index: 10;
        overflow-y: auto;
    }

    .start-content-spacer {
        display: none; /* No need for mobile spacer on desktop */
    }

    .start-content {
        width: 100%;
        margin-top: 0; /* Reset mobile pull-up */
        padding: clamp(48px, 6vh, 96px) clamp(48px, 5vw, 96px);
        border-radius: 0; /* No rounded corners on desktop split */
        box-shadow: none;
        min-height: 100vh;
        justify-content: center;
    }

    .start-hero::after {
        background: linear-gradient(to right, transparent 60%, rgba(0, 0, 0, 0.3));
    }

    .start-hero-badge {
        top: 32px;
        left: 32px;
    }

    .start-content {
        width: 50%;
        flex: none;
        padding: clamp(48px, 6vh, 96px) clamp(48px, 5vw, 96px);
        justify-content: center;
        overflow-y: auto;
    }

    .start-header-group {
        margin-bottom: 40px;
    }

    .start-title {
        font-size: clamp(3rem, 4vw, 4.5rem);
    }

    .start-actions {
        max-width: 440px;
    }

    .start-hint {
        max-width: 440px;
    }

    /* --- Topbar: Cleaner Desktop Spacing --- */
    .topbar {
        padding: 16px 40px;
    }

    .topbar-center {
        display: flex;
    }

    .status-indicator {
        padding: 8px 20px;
    }

    .topbar-right {
        gap: 24px;
    }

    /* --- Slide Layout: Side-by-Side Split --- */
    .slide-main {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .slide-container {
        display: grid;
        grid-template-columns: 1.2fr 1fr; /* Image gets slightly more weight */
        height: 100%;
        align-items: stretch;
    }

    .slide-visual-shell {
        position: relative;
        top: auto;
        border-right: 2px solid var(--border-color);
        border-bottom: none;
        min-height: 0;
        height: 100%;
        background-color: #fff;
    }

    .slide-copy {
        padding: 80px 64px 100px 64px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        height: 100%;
        background: var(--bg);
    }

    /* Desktop-only reaction pills floating inside footer */
    .reaction-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1.5px solid rgba(52, 46, 41, 0.18);
        background: rgba(253, 251, 247, 0.9);
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    }
    .reaction-btn:hover {
        transform: scale(1.18) translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

    /* We keep footer-right visible because presentation-footer now spans only the right column */
    .footer-right {
        display: flex;
    }

    .presentation-footer {
        padding: 20px 48px;
        justify-content: space-between;
        gap: 20px;
        /* Align footer perfectly with the right column (1.2fr 1fr grid) */
        left: 54.545%;
        border-top: 1px solid rgba(52, 46, 41, 0.08); /* Subtle separator from text */
    }

    .folio-bar {
        margin-bottom: 32px;
    }

    .slide-title {
        font-size: clamp(2.5rem, 3vw, 3.5rem);
        margin-bottom: 28px;
    }

    .slide-subtitle {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .full-transcription {
        font-size: 1.05rem;
        max-width: 100%;
    }

    .transcript-reel-phrase {
        font-size: 1.5625rem; /* Exactly 25px */
    }

    /* --- Footer: Centered, No Wasted Space --- */
    .presentation-footer {
        padding: 20px 40px;
        justify-content: center;
        gap: 40px;
    }

    .footer-block {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .footer-hint {
        display: none;
    }

    .immersive-dock {
        gap: 24px;
        align-items: center;
    }

    .reaction-bar {
        gap: 16px;
    }

    /* --- Q&A Panel: Wider on Desktop --- */
    .qa-panel {
        width: 600px;
    }

    .qa-panel-inner {
        max-width: 600px;
    }

    .qa-header {
        padding: 40px 40px 28px;
    }

    .qa-content-area {
        padding: 0 40px;
    }

    .qa-footer {
        padding: 28px 40px 40px;
    }

    .qa-display-title {
        font-size: 2.2rem;
    }
}

/* --- Completion Overlay --- */
.completion-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 5000;
    display: flex;
    overflow: hidden;
}

.completion-split-screen {
    display: flex;
    width: 100%;
    height: 100vh;
    background: var(--bg);
}

.completion-content-panel {
    flex: 1.2;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    border-right: 1px solid rgba(52, 46, 41, 0.1);
    background: var(--bg);
    overflow-y: auto;
}

.completion-image-panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

/* Floating Chatbot Widget */
.completion-chat-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 6000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-widget-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-toggle:hover {
    transform: scale(1.1);
}

.chat-widget-window {
    width: 380px;
    height: 520px;
    background: #fff;
    border: 1px solid rgba(52, 46, 41, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatPopup 0.4s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.chat-widget-window.hidden {
    display: none;
}

@keyframes chatPopup {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-widget-header {
    padding: 24px;
    background: var(--bg);
    border-bottom: 1px solid rgba(52, 46, 41, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-top: 4px;
}

.chat-widget-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.4;
    padding: 4px;
}

.completion-qa-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.completion-chat-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(52, 46, 41, 0.08);
    background: #faf9f7;
}

.completion-chat-footer .qa-input-container {
    background: #fff;
    border: 1px solid rgba(52, 46, 41, 0.12);
    padding: 6px 6px 6px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(52, 46, 41, 0.06);
}

.completion-chat-footer .qa-textarea {
    font-size: 0.95rem;
    padding: 10px 0;
}

.completion-chat-footer .qa-send-btn {
    width: 44px;
    height: 44px;
    background: var(--accent-green);
    border-radius: 50%;
}

.completion-chat-footer .qa-send-btn:hover {
    background: var(--text);
}

.completion-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 24px;
}

.completion-summary {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.cta-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
}

.cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--border-color);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-block:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
    transform: translateX(6px);
}

.completion-footer-note {
    margin-top: 40px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.6;
}

.btn-restart-minimal {
    margin-top: 48px;
    background: transparent;
    border: 1px solid rgba(52, 46, 41, 0.2);
    padding: 10px 20px;
    font-size: 0.7rem;
    opacity: 0.5;
    width: fit-content;
}

.qa-card {
    background: #fff;
    border: 1px solid rgba(52, 46, 41, 0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    animation: cardSlide 0.3s ease-out;
}

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

.qa-card-question {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.qa-card-answer {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid rgba(52, 46, 41, 0.05);
}

.qa-empty-state {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.4;
    font-size: 0.85rem;
}

.qa-textarea {
    width: 100%;
    border: none;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    resize: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.qa-textarea:focus {
    outline: none;
    background: #f0f0f0;
}

.qa-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.qa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--text);
    color: var(--bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

/* Mobile Adjustments for Completion */
@media (max-width: 960px) {
    .completion-split-screen {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .completion-content-panel {
        padding: 48px 24px;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(52, 46, 41, 0.1);
    }
    
    .completion-image-panel {
        flex: none;
        height: 300px;
    }

    .chat-widget-window {
        width: calc(100vw - 40px);
        height: 450px;
    }
}



.chat-title {
    font-size: 1.6rem;
    line-height: 1;
}

.chat-header-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
}

.presence-dot {
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.presence-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.completion-qa-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.completion-chat-footer {
    padding: 20px 24px 40px;
    background: var(--bg);
}

.qa-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.qa-card-question {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.qa-empty-state {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
    font-size: 0.9rem;
}
    .completion-overlay {
        overflow: hidden;
    }

    .completion-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        height: 100vh;
        overflow: hidden;
    }

    .completion-action-side {
        border-right: 2px solid var(--border-color);
        overflow-y: auto;
        height: 100%;
        border-bottom: none;
    }

    .completion-hero {
        height: 40vh;
    }

    .completion-action-content {
        padding: 64px 80px;
        gap: 40px;
    }

    .completion-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 12px;
    }

    .completion-title {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }

    .completion-summary {
        font-size: 1.1rem;
    }

    .completion-cta {
        max-width: 480px;
    }

    .completion-footer-note {
        padding-top: 40px;
        font-size: 1.2rem;
    }

    .completion-chat-side {
        border-top: none;
    }

    .completion-chat-header {
        padding: 48px 48px 32px;
    }

    .chat-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 8px;
    }

    .chat-title {
        font-size: 2.2rem;
    }

    .chat-header-presence {
        gap: 8px;
        padding-bottom: 6px;
    }

    .presence-dot {
        width: 8px;
        height: 8px;
    }

    .presence-label {
        font-size: 0.7rem;
    }

    .completion-qa-list {
        padding: 40px 48px;
        gap: 24px;
    }

    .completion-chat-footer {
        padding: 32px 48px 48px;
        background: linear-gradient(to top, var(--bg) 80%, transparent 100%);
    }

    .scrubber-modal {
        max-width: 1100px;
    }

    .scrubber-inner {
        padding: 0 48px 48px;
    }

    .scrubber-header {
        padding: 48px 48px 32px;
    }

    .scrubber-thumb {
        width: 160px;
        height: 100px;
    }

    /* --- Slide Turn Card: Desktop --- */
    .slide-turn-card {
        padding: 72px 64px;
        max-width: 680px;
    }

    .slide-turn-title {
        font-size: 3.5rem;
    }

    .slide-turn-detail {
        font-size: 1.15rem;
    }

    /* --- Poll: Desktop Positioning --- */
    .poll-container {
        width: 420px;
        top: 50%;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* --- Help Modal: Desktop --- */
    .help-modal {
        max-width: 560px;
        padding: 56px;
    }
}
