/* FormProcessor — Performance Lab Theme (default) + Classic Glassmorphism (opt-in) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&family=DM+Sans:wght@400;500;600&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ==========================================
   PERFORMANCE LAB TOKENS (Default)
   ========================================== */
:root {
    /* Backgrounds */
    --void:     #060708;
    --base:     #0d0f10;
    --surface:  #151819;
    --elevated: #1d2022;
    --panel:    #242829;

    /* Accents */
    --accent:          #FF4519;
    --accent-hover:    #FF6B42;
    --accent-dim:      rgba(255, 69, 25, 0.12);
    --accent-gradient: linear-gradient(135deg, #FF4519, #FF6B42);

    /* Semantic */
    --data:    #78FFB8;
    --success: #00C96B;
    --warning: #FFAA00;
    --danger:  #FF3B30;

    /* Text */
    --text:           #F2F3F4;
    --text-secondary: #8A9099;
    --text-muted:     #4A5258;

    /* Borders */
    --border:        rgba(255, 255, 255, 0.07);
    --border-bright: rgba(255, 255, 255, 0.15);

    /* Glass tokens — solid in Performance Lab */
    --glass-bg:     var(--surface);
    --glass-border: var(--border);
    --glass-blur:   0px;
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Legacy aliases for compatibility */
    --bg-deep:    var(--base);
    --bg-surface: var(--surface);

    /* Typography */
    --font-display: 'Barlow Condensed', 'Impact', condensed, sans-serif;
    --font:         'DM Sans', system-ui, -apple-system, sans-serif;
    --mono:         'Space Mono', 'Consolas', monospace;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* Radii — sharp in Performance Lab */
    --radius-sm:   2px;
    --radius-md:   2px;
    --radius-lg:   4px;
    --radius-pill: 2px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ==========================================
   CLASSIC GLASSMORPHISM OVERRIDE
   ========================================== */
:root[data-theme="classic"] {
    --void:     #0a0a1a;
    --base:     #0a0a1a;
    --surface:  #12122a;
    --elevated: #1a1a35;
    --panel:    #1f1f40;

    --accent:          #e94560;
    --accent-hover:    #ff6b8a;
    --accent-dim:      rgba(233, 69, 96, 0.12);
    --accent-gradient: linear-gradient(135deg, #e94560, #ff6b8a);

    --data:    #4aedc4;
    --success: #4aedc4;
    --warning: #f0a500;
    --danger:  #e94560;

    --text:           #f0f0f5;
    --text-secondary: #b0b0c0;
    --text-muted:     #707088;

    --border:        rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);

    --glass-bg:     rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur:   16px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --bg-deep:    #0a0a1a;
    --bg-surface: #12122a;

    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font:         'Inter', system-ui, -apple-system, sans-serif;
    --mono:         'JetBrains Mono', 'Consolas', monospace;

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-pill: 50px;
}

/* Classic: restore SVG logo gradient colors */
:root[data-theme="classic"] .logo-stop-1 { stop-color: #e94560; }
:root[data-theme="classic"] .logo-stop-2 { stop-color: #ff6b8a; }

/* ==========================================
   RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-accent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 69, 25, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 69, 25, 0); }
}

:root[data-theme="classic"] {
    --pulse-color: rgba(233, 69, 96, 0.4);
}

@keyframes float-up {
    0%   { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.section-animate {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-animate:nth-child(1) { transition-delay: 0s; }
.section-animate:nth-child(2) { transition-delay: 0.07s; }
.section-animate:nth-child(3) { transition-delay: 0.14s; }
.section-animate:nth-child(4) { transition-delay: 0.21s; }
.section-animate:nth-child(5) { transition-delay: 0.28s; }

/* ==========================================
   BODY — grid texture background
   ========================================== */
body {
    background-color: var(--base);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.015) 39px,
            rgba(255, 255, 255, 0.015) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            rgba(255, 255, 255, 0.015) 39px,
            rgba(255, 255, 255, 0.015) 40px
        );
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    padding: 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

:root[data-theme="classic"] body {
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(74, 237, 196, 0.06) 0%, transparent 50%);
}

/* ==========================================
   HEADER
   ========================================== */
header {
    margin-bottom: var(--space-lg);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Logo */
.header-brand {
    flex-shrink: 0;
}

header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text);
    line-height: 1;
}

.logo-text strong {
    color: var(--accent);
}

.logo-text {
    color: var(--text-secondary);
    font-weight: 700;
}

.logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Subtitle (classic only) */
.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    display: none;
}

:root[data-theme="classic"] .subtitle {
    display: block;
}

/* Nav — flat with bottom-border active indicator */
.nav-bar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.75rem;
    width: 100%;
    order: 10;
}

.nav-bar.nav-open {
    display: flex;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--text);
    border-bottom-color: var(--accent);
    background: transparent;
}

:root[data-theme="classic"] .nav-link.active {
    border-radius: var(--radius-pill);
    border-bottom-color: transparent;
    background: rgba(233, 69, 96, 0.15);
}

.nav-spacer {
    display: none;
}

/* Header actions (auth area + theme toggle) */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Auth area */
#auth-area {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.auth-user-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font);
}

/* Theme toggle */
.theme-toggle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    min-height: 32px;
    min-width: 58px;
    white-space: nowrap;
    transition: color var(--transition-base), border-color var(--transition-base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--border-bright);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Hamburger — mobile */
.menu-toggle {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.menu-toggle:hover {
    color: var(--text);
    border-color: var(--border-bright);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Login buttons (small, in nav) */
.login-btn-sm {
    min-height: 36px;
    padding: 0.4rem var(--space-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    font-weight: 500;
    white-space: nowrap;
    transition: transform var(--transition-fast), background var(--transition-base), border-color var(--transition-base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.login-btn-sm:hover {
    transform: none;
    box-shadow: none;
}

.login-btn-sm.google {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.25);
    color: #8ab4f8;
}
.login-btn-sm.google:hover { background: rgba(66, 133, 244, 0.2); }

.login-btn-sm.microsoft {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}
.login-btn-sm.microsoft:hover { background: rgba(255,255,255,0.06); border-color: var(--border-bright); }

.login-btn-sm.dev {
    background: rgba(120, 255, 184, 0.08);
    border-color: rgba(120, 255, 184, 0.2);
    color: var(--data);
    font-weight: 600;
}
.login-btn-sm.dev:hover { background: rgba(120, 255, 184, 0.15); }

.login-btn-sm.logout {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}
.login-btn-sm.logout:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ==========================================
   SECTIONS
   ========================================== */
section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--glass-shadow);
    transition: border-color var(--transition-base);
}

section:hover {
    border-color: var(--border-bright);
}

h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text);
}

:root[data-theme="classic"] h2 {
    color: var(--success);
    font-family: var(--font);
    text-transform: none;
    letter-spacing: 0;
}

/* ==========================================
   BUTTONS
   ========================================== */
button {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text);
    border: 1px solid var(--glass-border);
    padding: 0.65rem var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px;
    font-family: var(--font);
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-base),
                background var(--transition-base), border-color var(--transition-base);
}

button:hover:not(:disabled) {
    background: var(--elevated);
    border-color: var(--border-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.primary-btn {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.primary-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 69, 25, 0.35);
}

:root[data-theme="classic"] .primary-btn {
    background: var(--accent-gradient);
    font-family: var(--font);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

:root[data-theme="classic"] .primary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b8a, #e94560);
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.4);
}

.secondary-btn {
    background: transparent;
    border-color: var(--border-bright);
    color: var(--text-secondary);
}

.secondary-btn:hover:not(:disabled) {
    background: var(--elevated);
    border-color: var(--accent);
    color: var(--accent);
}

:root[data-theme="classic"] .secondary-btn {
    border-color: var(--accent);
    color: var(--accent);
}

:root[data-theme="classic"] .secondary-btn:hover:not(:disabled) {
    background: rgba(233, 69, 96, 0.1);
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}

.danger-btn {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
}

.danger-btn:hover:not(:disabled) {
    background: rgba(255, 59, 48, 0.12);
    border-color: var(--danger);
}

/* ==========================================
   INPUTS
   ========================================== */
input[type="text"] {
    background: var(--elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    width: 100%;
    min-height: 44px;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}

input[type="text"]::placeholder {
    color: var(--text-muted);
}

input[type="file"] {
    color: var(--text-secondary);
    min-height: 44px;
}

select {
    background: var(--elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    min-height: 36px;
    transition: border-color var(--transition-base);
}

select:focus {
    outline: none;
    border-color: var(--accent);
}

select option {
    background: var(--surface);
    color: var(--text);
}

/* Misc layout */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.status-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-message.error   { color: var(--danger); }
.status-message.success { color: var(--success); }

.hint-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 var(--space-md) 0;
}

.placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.badge-optional {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--elevated);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    vertical-align: middle;
    margin-left: var(--space-sm);
}

/* ==========================================
   STEP PROGRESS INDICATOR
   Numbered squares [1]──[2]──[3]──[4]
   ========================================== */
.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: var(--space-md) var(--space-sm);
    margin-bottom: var(--space-md);
}

.step-track {
    position: absolute;
    top: calc(var(--space-md) + 14px);
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

:root[data-theme="classic"] .step-fill {
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.4);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Numbered square box */
.step-dot {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Step number — shown in Performance Lab */
.step-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1;
    transition: opacity 0.2s ease;
}

/* Checkmark SVG — shown when completed */
.step-dot svg {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s ease;
}

:root[data-theme="classic"] .step-num {
    display: none;
}

:root[data-theme="classic"] .step-dot {
    border-radius: 50%;
    background: var(--bg-surface);
    color: transparent;
}

.step-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

:root[data-theme="classic"] .step-label {
    font-family: var(--font);
    font-weight: 500;
    letter-spacing: 0.06em;
}

/* Active state */
.step.active .step-dot {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.step.active .step-num {
    color: var(--accent);
}

.step.active .step-label {
    color: var(--text);
}

:root[data-theme="classic"] .step.active .step-dot {
    animation: pulse-accent 2s infinite;
}

/* Completed state */
.step.completed .step-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.step.completed .step-num {
    opacity: 0;
}

.step.completed .step-dot svg {
    opacity: 1;
    transform: scale(1);
    color: #fff;
}

.step.completed .step-label {
    color: var(--text-secondary);
}

:root[data-theme="classic"] .step.completed .step-dot {
    background: var(--accent-gradient);
    border-color: transparent;
    animation: none;
}

/* ==========================================
   UPLOAD SECTION + CORNER BRACKETS
   ========================================== */
.upload-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Corner bracket dropzone */
.upload-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    border: 1px dashed var(--border-bright);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    min-height: 160px;
}

/* Top-left bracket */
.upload-dropzone::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Top-right bracket */
.upload-dropzone::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Bottom corners via nested div */
.dropzone-corners::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    z-index: 2;
}

.dropzone-corners::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    z-index: 2;
}

.dropzone-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* In classic mode, hide corner brackets */
:root[data-theme="classic"] .upload-dropzone::before,
:root[data-theme="classic"] .upload-dropzone::after,
:root[data-theme="classic"] .dropzone-corners::before,
:root[data-theme="classic"] .dropzone-corners::after {
    display: none;
}

:root[data-theme="classic"] .upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.upload-dropzone:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.upload-dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 1px var(--accent), inset 0 0 40px rgba(255, 69, 25, 0.04);
}

:root[data-theme="classic"] .upload-dropzone.dragover {
    transform: scale(1.01);
    box-shadow: 0 0 32px rgba(233, 69, 96, 0.15);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.dropzone-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease, transform 0.3s ease;
}

.upload-dropzone:hover .dropzone-icon {
    color: var(--accent);
    transform: translateY(-3px);
}

.dropzone-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin: 0;
}

:root[data-theme="classic"] .dropzone-text {
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.dropzone-hint {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 6px 0 0 0;
    letter-spacing: 0.02em;
}

:root[data-theme="classic"] .dropzone-hint {
    font-family: var(--font);
}

.upload-divider {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.upload-divider::before,
.upload-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.upload-url {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.upload-url label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

:root[data-theme="classic"] .upload-url label {
    font-family: var(--font);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.url-input-group {
    display: flex;
    gap: var(--space-sm);
}

.url-input-group input[type="text"] {
    flex: 1;
}

/* ==========================================
   THUMBNAIL LOADING
   ========================================== */
#thumbnail-loading {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
}

#thumbnail-loading p {
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

/* ==========================================
   TRIM SECTION
   ========================================== */
.trim-container {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

:root[data-theme="classic"] .trim-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.thumbnail-strip {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.thumbnail-strip::-webkit-scrollbar { height: 4px; }
.thumbnail-strip::-webkit-scrollbar-track { background: transparent; }
.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 2px;
}

.thumbnail-img {
    height: 80px;
    width: auto;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity var(--transition-base);
}

.thumbnail-img.thumbnail-out-of-range {
    opacity: 0.2;
}

/* Trim control cards */
.trim-control {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
}

:root[data-theme="classic"] .trim-control {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.trim-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.trim-control-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

:root[data-theme="classic"] .trim-control-label {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.trim-control-time {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--data);
    font-weight: 700;
}

:root[data-theme="classic"] .trim-control-time {
    color: var(--success);
    font-size: 0.9rem;
}

.trim-slider-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.trim-slider-row input[type="range"] {
    flex: 1;
    height: 44px;
    accent-color: var(--accent);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.trim-slider-row input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--border-bright);
    border-radius: 2px;
}

.trim-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 69, 25, 0.4);
    margin-top: -12px;
}

:root[data-theme="classic"] .trim-slider-row input[type="range"]::-webkit-slider-thumb {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 12px rgba(233, 69, 96, 0.4);
    margin-top: -14px;
}

.trim-slider-row input[type="range"]::-moz-range-track {
    height: 4px;
    background: var(--border-bright);
    border-radius: 2px;
    border: none;
}

.trim-slider-row input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 69, 25, 0.4);
}

:root[data-theme="classic"] .trim-slider-row input[type="range"]::-moz-range-thumb {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

:root[data-theme="classic"] .trim-slider-row input[type="range"]::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
}

.trim-nudge-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--elevated);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-base), border-color var(--transition-base);
    -webkit-tap-highlight-color: var(--accent-dim);
    user-select: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.trim-nudge-btn:hover, .trim-nudge-btn:active {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
}

.trim-preview {
    margin-top: var(--space-xs);
    display: flex;
    justify-content: center;
}

.trim-preview img {
    height: 90px;
    width: auto;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 16px rgba(255, 69, 25, 0.2);
}

.trim-info {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

:root[data-theme="classic"] .trim-info {
    background: rgba(74, 237, 196, 0.08);
    border: none;
    border-radius: var(--radius-sm);
}

.trim-info #trim-duration {
    color: var(--data);
    font-weight: 700;
}

:root[data-theme="classic"] .trim-info #trim-duration {
    color: var(--success);
}

/* ==========================================
   EXERCISE SELECT
   ========================================== */
.exercise-select-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.exercise-select-row label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

:root[data-theme="classic"] .exercise-select-row label {
    font-family: var(--font);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

/* ==========================================
   VIEWER + CANVAS
   With viewfinder corner brackets
   ========================================== */
.viewer-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.canvas-container {
    flex: 1;
    position: relative;
}

/* Viewfinder top-left */
.canvas-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    z-index: 3;
    pointer-events: none;
    opacity: 0.8;
}

/* Viewfinder top-right */
.canvas-container::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    z-index: 3;
    pointer-events: none;
    opacity: 0.8;
}

/* Bottom corners */
.canvas-viewfinder::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    z-index: 3;
    pointer-events: none;
    opacity: 0.8;
}

.canvas-viewfinder::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    z-index: 3;
    pointer-events: none;
    opacity: 0.8;
}

.canvas-viewfinder {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Hide viewfinder in classic mode */
:root[data-theme="classic"] .canvas-container::before,
:root[data-theme="classic"] .canvas-container::after,
:root[data-theme="classic"] .canvas-viewfinder::before,
:root[data-theme="classic"] .canvas-viewfinder::after {
    display: none;
}

#video-canvas {
    width: 100%;
    background: #000;
    border-radius: var(--radius-sm);
    display: block;
}

/* ==========================================
   PROGRESS BAR (processing overlay)
   ========================================== */
#progress-bar-container {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    z-index: 4;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-track {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

#progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s;
}

:root[data-theme="classic"] #progress-bar {
    background: var(--accent-gradient);
    border-radius: var(--radius-pill);
}

.stop-process-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    min-height: auto;
    white-space: nowrap;
}

#progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--mono);
    pointer-events: none;
    letter-spacing: 0.05em;
}

/* Processing overlay */
#processing-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    z-index: 2;
    color: var(--text-secondary);
}

#processing-overlay p {
    font-size: 0.85rem;
    font-family: var(--mono);
    margin-top: var(--space-sm);
    letter-spacing: 0.03em;
}

#processing-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* ==========================================
   ANGLE DATA PANEL
   Large Space Mono numbers
   ========================================== */
#angle-panel {
    width: 100%;
    max-height: 220px;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

:root[data-theme="classic"] #angle-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    max-height: 200px;
}

#angle-panel::-webkit-scrollbar { width: 4px; }
#angle-panel::-webkit-scrollbar-track { background: transparent; }
#angle-panel::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 2px;
}

#angle-panel h3 {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

:root[data-theme="classic"] #angle-panel h3 {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--success);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

#angle-data .angle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
}

#angle-data .angle-row:last-child {
    border-bottom: none;
}

.angle-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font);
    letter-spacing: 0.02em;
}

.angle-value {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--data);
    letter-spacing: 0.02em;
}

:root[data-theme="classic"] .angle-value {
    color: var(--success);
    font-size: 0.82rem;
}

/* Detected movement label */
#movement-label {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--accent-dim);
    border-left: 3px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

:root[data-theme="classic"] #movement-label {
    background: var(--accent-gradient);
    border-left: none;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

#movement-info {
    margin-top: var(--space-sm);
}

#movement-info h3 {
    font-size: 0.7rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

:root[data-theme="classic"] #movement-info h3 {
    color: var(--success);
    font-family: var(--font);
    letter-spacing: 0;
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 600;
}

/* ==========================================
   PLAYER BAR
   ========================================== */
.player-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    flex-wrap: nowrap;
}

:root[data-theme="classic"] .player-bar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
}

.player-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-shrink: 0;
}

.player-btn:hover {
    color: var(--text);
    background: var(--elevated);
    transform: none;
    box-shadow: none;
    border: none;
}

:root[data-theme="classic"] .player-btn {
    border-radius: 50%;
}

:root[data-theme="classic"] .player-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.player-btn-main {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: var(--accent);
    color: #fff;
}

.player-btn-main:hover {
    background: var(--accent-hover) !important;
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 69, 25, 0.3);
}

:root[data-theme="classic"] .player-btn-main {
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(233, 69, 96, 0.3);
}

.player-scrubber-wrap {
    flex: 1;
    min-width: 60px;
    display: flex;
    align-items: center;
}

.player-scrubber {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-bright);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

:root[data-theme="classic"] .player-scrubber {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.player-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    box-shadow: none;
}

:root[data-theme="classic"] .player-scrubber::-webkit-slider-thumb {
    border-radius: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

:root[data-theme="classic"] .player-scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.player-scrubber::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    border: none;
    cursor: pointer;
}

.player-scrubber::-moz-range-track {
    height: 3px;
    background: var(--border-bright);
    border-radius: 2px;
    border: none;
}

.player-time {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 65px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.player-speed {
    background: var(--elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 5px;
    font-size: 0.7rem;
    font-family: var(--mono);
    min-height: auto;
    cursor: pointer;
    flex-shrink: 0;
}

.player-speed:focus {
    outline: none;
    border-color: var(--accent);
}

/* ==========================================
   COACHING CARDS
   ========================================== */
#coaching-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.coaching-card {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    animation: float-up 0.35s ease forwards;
    transition: border-color 0.3s ease;
}

:root[data-theme="classic"] .coaching-card {
    display: flex;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.coaching-card:nth-child(1) { animation-delay: 0s; }
.coaching-card:nth-child(2) { animation-delay: 0.08s; }
.coaching-card:nth-child(3) { animation-delay: 0.16s; }

/* Colored left border accent */
.coaching-card.issues {
    border-left: 3px solid var(--danger);
}

.coaching-card.corrections {
    border-left: 3px solid var(--warning);
}

.coaching-card.positives {
    border-left: 3px solid var(--success);
}

:root[data-theme="classic"] .coaching-card.issues,
:root[data-theme="classic"] .coaching-card.corrections,
:root[data-theme="classic"] .coaching-card.positives {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Card icon (classic only) */
.coaching-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Hide icon in Performance Lab */
:root:not([data-theme="classic"]) .coaching-card-icon {
    display: none;
}

.coaching-card-icon svg { width: 22px; height: 22px; }

.coaching-card.issues     .coaching-card-icon { background: rgba(233, 69, 96, 0.12);  color: var(--accent); }
.coaching-card.corrections .coaching-card-icon { background: rgba(74, 158, 237, 0.12); color: #4a9eed; }
.coaching-card.positives  .coaching-card-icon { background: rgba(74, 237, 196, 0.12); color: var(--success); }

.coaching-card-content {
    flex: 1;
    min-width: 0;
}

.coaching-card-content h3 {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

:root[data-theme="classic"] .coaching-card-content h3 {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.coaching-card.issues     .coaching-card-content h3 { color: var(--danger); }
.coaching-card.corrections .coaching-card-content h3 { color: var(--warning); }
.coaching-card.positives  .coaching-card-content h3 { color: var(--success); }

:root[data-theme="classic"] .coaching-card.issues h3     { color: var(--accent); }
:root[data-theme="classic"] .coaching-card.corrections h3 { color: #4a9eed; }
:root[data-theme="classic"] .coaching-card.positives h3  { color: var(--success); }

.coaching-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coaching-card-content li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: var(--space-xs) 0;
    padding-left: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.coaching-card-content li:last-child {
    border-bottom: none;
}

/* Bullet dot */
.coaching-card-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.coaching-card.issues li::before     { background: var(--danger); }
.coaching-card.corrections li::before { background: var(--warning); }
.coaching-card.positives li::before  { background: var(--success); }

:root[data-theme="classic"] .coaching-card-content li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-left: 0;
}

:root[data-theme="classic"] .coaching-card-content li::before {
    display: none;
}

/* Share action bar */
.share-action-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.share-inline-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.share-inline-status.error   { color: var(--danger); }
.share-inline-status.success { color: var(--success); }

/* ==========================================
   SKELETON LOADING
   ========================================== */
.skeleton-card {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

:root[data-theme="classic"] .skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg,
        var(--elevated) 0%,
        var(--panel) 50%,
        var(--elevated) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

:root[data-theme="classic"] .skeleton-line {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    height: 14px;
    border-radius: 4px;
}

.skeleton-line:last-child   { margin-bottom: 0; }
.skeleton-line-title        { width: 40%; height: 16px; margin-bottom: var(--space-md); }
.skeleton-line-short        { width: 60%; }

/* ==========================================
   COACHING LOADING
   ========================================== */
#coaching-loading {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: spin 0.7s linear infinite;
}

:root[data-theme="classic"] .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
}

/* Coaching frame thumbnails */
.coaching-frame-strip {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    overflow-x: auto;
    padding: var(--space-xs) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
}

.coaching-frame-thumb {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.coaching-frame-thumb img {
    height: 90px;
    width: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.coaching-frame-thumb img:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(255, 69, 25, 0.2);
}

.coaching-frame-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ==========================================
   HISTORY PAGE
   ========================================== */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.history-card {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

:root[data-theme="classic"] .history-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

.history-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

:root[data-theme="classic"] .history-card:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.1), var(--glass-shadow);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.history-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    cursor: pointer;
}

.history-rename-btn,
.history-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color var(--transition-base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.history-rename-btn:hover,
.history-delete-btn:hover {
    color: var(--accent);
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

.rename-input {
    background: var(--elevated);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: inherit;
    padding: 2px 6px;
    width: 100%;
    outline: none;
}

.history-details {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.history-row {
    padding: 0.18rem 0;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
}

:root[data-theme="classic"] .history-row {
    font-family: var(--font);
    font-size: 0.82rem;
}

.history-row .label {
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.78rem;
}

.history-movement {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

:root[data-theme="classic"] .history-movement {
    font-family: var(--font);
    letter-spacing: 0;
}

.history-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Detail View */
.detail-video-container {
    margin: var(--space-md) 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.detail-video-container video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

:root[data-theme="classic"] .detail-meta {
    font-family: var(--font);
    font-size: 0.85rem;
}

.detail-meta-item strong {
    color: var(--accent);
    text-transform: uppercase;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

:root[data-theme="classic"] .modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

:root[data-theme="classic"] .modal-header h3 {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    min-height: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.modal-close:hover {
    color: var(--text);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.share-link-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.share-link-group input {
    flex: 1;
    font-family: var(--mono);
    font-size: 0.78rem;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: var(--space-sm);
}

:root[data-theme="classic"] .share-link-group input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.share-link-group .primary-btn { flex-shrink: 0; }

.share-copy-status {
    font-size: 0.8rem;
    min-height: 1.2em;
    margin-bottom: var(--space-sm);
}
.share-copy-status.success { color: var(--success); }
.share-copy-status.error   { color: var(--danger); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

/* ==========================================
   LOGIN GATE
   ========================================== */
.login-gate {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--base);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(255,255,255,0.015) 39px,
            rgba(255,255,255,0.015) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            rgba(255,255,255,0.015) 39px,
            rgba(255,255,255,0.015) 40px
        );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

:root[data-theme="classic"] .login-gate {
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(233, 69, 96, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(74, 237, 196, 0.08) 0%, transparent 50%);
}

.login-gate-card {
    text-align: center;
    max-width: 380px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    padding: var(--space-2xl) var(--space-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.45s ease forwards;
    position: relative;
}

/* Corner brackets on login card */
.login-gate-card::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px;
    width: 16px; height: 16px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}
.login-gate-card::after {
    content: '';
    position: absolute;
    top: 12px; right: 12px;
    width: 16px; height: 16px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

:root[data-theme="classic"] .login-gate-card::before,
:root[data-theme="classic"] .login-gate-card::after {
    display: none;
}

:root[data-theme="classic"] .login-gate-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.login-gate-logo {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
}

.login-gate-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.login-gate-title strong {
    color: var(--accent);
}

:root[data-theme="classic"] .login-gate-title {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font);
    font-size: 1.6rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}

:root[data-theme="classic"] .login-gate-title strong {
    color: unset;
}

.login-gate-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

:root[data-theme="classic"] .login-gate-subtitle {
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.login-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.login-gate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    min-height: 44px;
    padding: 0.65rem var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    border: 1px solid var(--border);
    background: var(--elevated);
    color: var(--text-secondary);
    transition: border-color var(--transition-base), background var(--transition-base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.login-gate-btn:hover {
    border-color: var(--border-bright);
    background: var(--panel);
    transform: none;
    box-shadow: none;
}

:root[data-theme="classic"] .login-gate-btn {
    border: 1px solid var(--glass-border);
    background: transparent;
    border-radius: var(--radius-sm);
}

:root[data-theme="classic"] .login-gate-btn:hover {
    transform: translateY(-2px);
}

.login-gate-btn.google {
    border-color: rgba(66, 133, 244, 0.3);
    background: rgba(66, 133, 244, 0.08);
    color: #8ab4f8;
}
.login-gate-btn.google:hover {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: none;
}

.login-gate-btn.microsoft {
    border-color: var(--border);
    background: var(--elevated);
    color: var(--text-secondary);
}

.login-gate-btn.dev {
    border-color: rgba(120, 255, 184, 0.2);
    background: rgba(120, 255, 184, 0.05);
    color: var(--data);
    font-weight: 600;
}
.login-gate-btn.dev:hover {
    background: rgba(120, 255, 184, 0.12);
    border-color: rgba(120, 255, 184, 0.35);
    box-shadow: none;
}

/* ==========================================
   SETTINGS FIELDSET
   ========================================== */
.settings-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--elevated);
}

:root[data-theme="classic"] fieldset {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--glass-border);
}

fieldset legend {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 0.3rem;
}

:root[data-theme="classic"] fieldset legend {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
}

fieldset label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xs) 0;
    cursor: pointer;
    min-height: 40px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

fieldset label:hover { color: var(--text); }

/* ==========================================
   UTILITIES
   ========================================== */
.hidden {
    display: none !important;
}

/* ==========================================
   TABLET (min-width: 600px)
   ========================================== */
@media (min-width: 600px) {
    body {
        padding: var(--space-md) var(--space-lg);
    }

    .upload-controls {
        flex-direction: row;
        align-items: stretch;
    }

    .upload-dropzone {
        flex: 1;
    }

    .upload-divider {
        flex-direction: column;
        padding: 0 var(--space-sm);
    }

    .upload-divider::before,
    .upload-divider::after {
        width: 1px;
        height: auto;
        flex: 1;
    }

    .upload-url {
        flex: 1;
        justify-content: center;
    }

    input[type="text"] {
        width: auto;
    }

    .settings-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ==========================================
   DESKTOP (min-width: 900px)
   ========================================== */
@media (min-width: 900px) {
    body {
        padding: var(--space-md) var(--space-xl);
    }

    header h1 {
        font-size: 1.6rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    /* Hide hamburger, show nav inline */
    .menu-toggle {
        display: none;
    }

    .nav-bar {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin-top: 0;
        order: 0;
        width: auto;
        flex: 1;
        justify-content: center;
    }

    .nav-link {
        min-height: auto;
        padding: 0.3rem 0.75rem;
        font-size: 0.82rem;
        letter-spacing: 0.1em;
    }

    .header-actions {
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
    }

    #auth-area {
        flex-direction: row;
        align-items: center;
    }

    .login-btn-sm {
        min-height: 30px;
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    section {
        padding: 1.25rem;
    }

    /* Viewer side-by-side */
    .viewer-layout {
        flex-direction: row;
    }

    #angle-panel {
        max-height: 480px;
        min-width: 260px;
    }

    /* Compact sizes */
    button {
        min-height: auto;
        padding: 0.4rem var(--space-md);
        font-size: 0.875rem;
    }

    input[type="text"] {
        min-height: auto;
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
        width: 300px;
    }

    fieldset label {
        min-height: auto;
    }

    .history-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .history-delete-btn {
        min-width: auto;
        min-height: auto;
        font-size: 1rem;
        padding: 0 0.3rem;
    }
}

/* ==========================================
   HISTORY SEARCH / FILTER BAR
   ========================================== */
.history-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    align-items: center;
}

.history-search-input {
    flex: 1;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    font-family: var(--font);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
    min-height: 0;
    width: auto;
}

.history-search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.history-filter-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.6rem;
    font-family: var(--font);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.history-filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ==========================================
   HISTORY CARD THUMBNAIL
   ========================================== */
.history-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--elevated);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.history-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.history-thumb-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--elevated) 0%,
        var(--panel) 40%,
        var(--elevated) 80%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Hide skeleton once image loads */
.history-card-thumb img:not([src=""]) ~ .history-thumb-skeleton {
    display: none;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   FORM SCORE GAUGE
   ========================================== */
.form-score-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) 0 var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.score-ring-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.score-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.score-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================
   WEBSOCKET RECONNECT TOAST
   ========================================== */
.reconnect-toast {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--text);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reconnect-toast-msg {
    flex: 1;
    min-width: 0;
}

.reconnect-toast-btn {
    min-height: auto;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.reconnect-toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.2rem;
    min-height: auto;
    line-height: 1;
}

.reconnect-toast-close:hover {
    color: var(--text);
}

/* ==========================================
   UPLOAD PROGRESS BAR
   ========================================== */
#upload-progress-section {
    margin-top: 1rem;
}

.upload-progress-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.upload-progress-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    flex: 1;
}

.upload-progress-pct {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    min-width: 3rem;
    text-align: right;
}

.upload-cancel-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    min-height: auto;
    transition: color 0.15s, border-color 0.15s;
}

.upload-cancel-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.upload-progress-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.25s ease-out;
}

.upload-progress-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
}

.upload-stat {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.upload-stat:first-child {
    flex: 1;
}

#clip-progress-detail {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
}
