/* =============================================
   Chatter TTS — Voice Cloning Studio
   Premium dark glassmorphic design
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bg-dark: #0a0a14;
    --bg-card: rgba(18, 18, 32, 0.75);
    --bg-card-hover: rgba(25, 25, 45, 0.85);
    --bg-input: rgba(30, 30, 55, 0.6);
    --border: rgba(100, 100, 180, 0.15);
    --border-focus: rgba(167, 139, 250, 0.5);
    --text: #e8e8f0;
    --text-muted: #8888aa;
    --text-dim: #5a5a7a;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-glow: rgba(167, 139, 250, 0.35);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.25);
    --gradient: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
    --danger: #f87171;
    --success: #34d399;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Animated background --- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 139, 250, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6, 182, 212, 0.08), transparent),
        radial-gradient(ellipse 40% 60% at 10% 60%, rgba(167, 139, 250, 0.06), transparent);
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.app-layout {
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .app-layout {
        display: flex;
        flex-direction: column;
    }

    .col-center {
        order: 3;
    }
}

/* --- Header --- */
.header {
    margin-bottom: 32px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* --- Card --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(167, 139, 250, 0.04);
    transition: box-shadow var(--transition);
}

/* ============================
   LOGIN PAGE
   ============================ */
.login-card {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

.login-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-card .form-group {
    text-align: left;
}

.login-card .btn-lg {
    margin-top: 8px;
}

/* ============================
   WELCOME BANNER
   ============================ */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-sm);
    animation: bannerSlideIn 0.5s ease-out;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.welcome-left strong {
    color: var(--accent);
}

.welcome-avatar {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

/* ============================
   VOICE TABS
   ============================ */
.voice-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-xs);
    padding: 3px;
    border: 1px solid var(--border);
}

.voice-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition);
}

.voice-tab.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
}

.voice-tab:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.voice-tab-content {
    animation: tabFadeIn 0.2s ease;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================
   SAVED SAMPLES LIST
   ============================ */
.samples-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.samples-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.84rem;
    padding: 20px 0;
}

.sample-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.sample-item:hover {
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.06);
}

.sample-item.selected {
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.1);
    box-shadow: 0 0 12px var(--accent-glow);
}

.sample-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sample-item-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.sample-item-info {
    flex: 1;
    min-width: 0;
}

.sample-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sample-item-meta {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.sample-item-lang {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cyan);
    flex-shrink: 0;
}

.sample-item-delete {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition);
    flex-shrink: 0;
}

.sample-item-delete:hover {
    color: var(--danger);
}

.sample-item-delete svg {
    width: 16px;
    height: 16px;
}

.add-story-btn {
    margin-top: 0.5rem;
    width: 100%;
}

/* ============================
   SAVE DIALOG
   ============================ */
.save-dialog {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-xs);
    animation: tabFadeIn 0.2s ease;
}

.save-dialog-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* ============================
   UPLOAD ZONE
   ============================ */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: rgba(30, 30, 55, 0.3);
    transition: all var(--transition);
    cursor: default;
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
    box-shadow: 0 0 24px var(--accent-glow);
}

.upload-zone-icon {
    width: 40px;
    height: 40px;
    color: var(--text-dim);
    transition: color var(--transition);
}

.upload-zone.dragover .upload-zone-icon {
    color: var(--accent);
}

.upload-zone-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.upload-zone-hint {
    font-size: 0.76rem;
    color: var(--text-dim);
}

.upload-zone-formats {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.upload-browse-btn {
    cursor: pointer;
}

.upload-success-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    animation: tabFadeIn 0.2s ease;
}

/* --- Audio preview actions row --- */
.audio-preview-actions {
    display: flex;
    gap: 8px;
}

/* --- Section --- */
.section {
    margin-bottom: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
}

.section-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* --- Recorder --- */
.recorder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mic-btn {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.mic-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
    box-shadow: 0 0 20px var(--accent-glow);
}

.mic-btn.recording {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
    animation: micPulse 1.5s ease-in-out infinite;
}

.mic-icon {
    width: 28px;
    height: 28px;
}

.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--danger);
    opacity: 0;
    pointer-events: none;
}

.mic-btn.recording .pulse-ring {
    animation: pulseOut 1.5s ease-out infinite;
}

@keyframes micPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseOut {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.recorder-info {
    text-align: center;
}

.recorder-status {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.recorder-timer {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

/* --- Waveform --- */
.waveform {
    width: 100%;
    max-width: 360px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.waveform.active {
    opacity: 1;
}

/* --- Audio preview --- */
.audio-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.audio-preview audio {
    flex: 1;
    height: 36px;
    outline: none;
}

/* --- Form elements --- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

select.input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select.input option {
    background: #1a1a2e;
    color: var(--text);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    padding: 12px 28px;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-accent {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--cyan);
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-accent:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--cyan);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    width: 100%;
    padding: 14px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

/* --- Processing --- */
.processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 0;
}

/* AI Visualization */
.ai-visualization {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ai-core {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-glow);
    animation: pulseCore 1.5s infinite alternate ease-in-out;
    z-index: 2;
}

.ai-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--accent);
    border-radius: 50%;
    animation: spinRing 8s linear infinite;
    opacity: 0.6;
}

.ai-particles {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1.5px solid var(--cyan);
    border-radius: 50%;
    animation: spinRing 4s linear infinite reverse;
    opacity: 0.4;
}

@keyframes pulseCore {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 20px var(--accent-glow);
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 40px var(--accent);
    }
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Stats display */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.stat-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
}

.processing-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.5s;
}

.timeout-info {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* --- Result --- */
.result {
    padding: 24px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-icon {
    width: 28px;
    height: 28px;
    color: var(--success);
}

.result-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
}

.result-audio {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xs);
}

.result-actions {
    display: flex;
    gap: 10px;
}

/* --- Error --- */
.error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-top: 16px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-xs);
    color: var(--danger);
    font-size: 0.86rem;
}

.error-msg svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.76rem;
    color: var(--text-dim);
}

.footer strong {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* --- Disabled overlay for locked controls --- */
.locked {
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(0.3);
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .container {
        padding: 24px 12px 40px;
    }

    .card {
        padding: 24px 18px;
    }

    .section-desc {
        padding-left: 0;
    }

    .audio-preview {
        flex-direction: column;
    }

    .audio-preview-actions {
        flex-wrap: wrap;
    }


    .welcome-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===================================================
   AI FINETUNES PANEL
   =================================================== */

.finetune-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-input);
}

.finetune-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--transition);
}

.finetune-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.finetune-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.finetune-header>span {
    flex: 1;
    text-align: left;
}

.finetune-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.finetune-chevron.open {
    transform: rotate(180deg);
}

.finetune-body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Feature card */
.finetune-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.finetune-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 12px;
}

.finetune-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.finetune-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.finetune-card-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.25s, background 0.25s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(18px);
    background: #fff;
}

/* Sub-options */
.finetune-subopts {
    padding: 0 14px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    transition: opacity 0.2s;
}

.finetune-subopts.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.suboption {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.suboption input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.slider-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.slider-option strong {
    color: var(--cyan);
}

.slider-option input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Increase story list scrollbox height to match taller center column */
#storyList.samples-list {
    max-height: 340px;
}