/* ── Thumbnails Strip ── */
.console-disclosure {
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: rgba(20, 20, 23, 0.4);
    overflow: hidden;
}

.console-disclosure > summary {
    min-height: 36px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.console-disclosure > summary::-webkit-details-marker {
    display: none;
}

.console-disclosure > summary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.console-disclosure[open] > summary {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.disclosure-chevron {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.console-disclosure[open] .disclosure-chevron {
    transform: rotate(180deg);
}

.snapshot-disclosure .thumbnails-row {
    padding: 8px;
    margin-bottom: 0;
}

.transcript-disclosure {
    margin: 8px 16px;
}

.transcript-disclosure > summary {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 10px;
}

.transcript-disclosure .live-transcript-container {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.thumbnails-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    min-height: 56px;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 4px;
    width: 100%;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

/* ── Thumbnails Row (strip + inline snap btn) ── */
.thumbnails-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    flex-shrink: 0;
}

.thumbnails-row .thumbnails-container {
    flex: 2;
    min-width: 0;
}

/* ── Inline Multi-Snap Button (right of thumbnails) ── */
.btn-snap-inline {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    white-space: nowrap;
    padding: 6px 4px;
    min-height: 56px;
}

.btn-snap-inline:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-focus);
    color: var(--text-primary);
}

.btn-snap-inline:active {
    transform: scale(0.97);
}

.btn-snap-inline .icon {
    width: 15px;
    height: 15px;
}

.thumbnail {
    width: 72px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.02);
    background-size: cover;
    background-position: top center;
    flex-shrink: 0;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--border-focus);
}

.btn-delete-snap {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 2px solid var(--bg-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.btn-delete-snap:hover {
    opacity: 1;
    background-color: rgb(239, 68, 68);
}

/* ── Code Area (IDE) ── */
.code-area {
    flex: 1;
    min-height: 55vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    background: #1e1e1e;
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.4);
}

.code-header {
    padding: 10px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.code-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    position: relative;
}

.code-font-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.code-font-controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    padding: 0;
}

.code-font-controls button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.code-font-controls button:active {
    transform: scale(0.95);
}

.code-content pre {
    margin: 0;
    padding: 16px;
    background: transparent !important;
    font-family: var(--font-code) !important;
    font-size: var(--code-font-size, 13px) !important;
    line-height: 1.7 !important;
    tab-size: 4;
    overflow-x: auto;
}

.code-content code {
    font-family: var(--font-code) !important;
    font-size: var(--code-font-size, 13px) !important;
    background: transparent !important;
}

.code-content .plain-text {
    padding: 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.7;
    color: #d4d4d4;
    white-space: pre-wrap;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    font-family: var(--font-code);
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
    user-select: none;
    pointer-events: none;
}

.line-numbers span {
    display: block;
    padding-right: 8px;
}

.code-content.has-lines pre {
    padding-left: 52px;
}

/* ── Quick Answer Area ── */
.quick-area {
    flex: 1;
    min-height: 55vh;
    border-radius: var(--radius-md);
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.4);
}

.quick-header {
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    font-size: 11px;
    color: #60a5fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    z-index: 20;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.quick-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.quick-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    white-space: pre-wrap;
    font-family: var(--font-ui);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (max-width: 520px) {
    .quick-header {
        padding: 8px 10px;
        gap: 6px;
        overflow: visible;
    }

    .quick-header > span:first-child {
        font-size: 10px;
        letter-spacing: 0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }

    .quick-header-actions {
        flex-shrink: 0;
        gap: 3px;
    }

    .quick-header #quick-ts {
        display: none;
    }

    .quick-mode-btn {
        width: 25px;
        height: 25px;
    }

    .quick-mode-divider {
        margin: 0 2px;
    }
}

.quick-mode-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.18s ease;
    outline: none;
}

.quick-mode-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
}

.quick-mode-btn.active-detailed,
.quick-mode-btn.active-bullet {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4), 0 0 8px rgba(99, 102, 241, 0.15);
}

.quick-mode-btn.active-rapid {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4), 0 0 8px rgba(245, 158, 11, 0.12);
}

.quick-mode-btn.active-rapid svg {
    fill: rgba(251, 191, 36, 0.5);
}

.quick-mode-btn.active-very-detailed {
    background: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.4), 0 0 8px rgba(20, 184, 166, 0.12);
}



/* ── Explanation Section ── */
.explanation {
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    flex-shrink: 0;
    display: none;
}

.explanation h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.explanation ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explanation li {
    position: relative;
    padding-left: 20px;
    color: #cbd5e1;
}

.explanation li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

/* ── Buttons ── */
.btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    user-select: none;
}

.btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-focus);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-green-dim);
    border-color: var(--accent-green-border);
    color: var(--accent-green);
    font-size: 14px;
}

.btn-primary:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Active tab indicator on the trigger button */
.btn.tab-active-code {
    box-shadow: 0 0 0 1px var(--accent-green);
}

.btn.tab-active-quick {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue-border);
    color: #60a5fa;
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Voice Picker Dropdown ── */
.voice-picker-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    height: 44px;
    width: 100%;
    min-width: 0;
}

.voice-select {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-select option {
    background: #1a1a2e;
    color: #e2e8f0;
    font-size: 12px;
}

.voice-select:focus {
    color: rgba(255, 255, 255, 0.8);
}

/* ── Voice Toggle Button ── */
.btn-voice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.btn-voice:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.btn-voice.voice-on {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.btn-voice.voice-on:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* ── Voice Rate Slider ── */
.voice-rate-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    height: 44px;
    width: 100%;
    min-width: 0;
}

.rate-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    min-width: 26px;
    text-align: right;
    letter-spacing: 0.02em;
}

.rate-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.rate-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.rate-slider::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.rate-slider:hover::-webkit-slider-thumb {
    background: #10b981;
    transform: scale(1.2);
}

.rate-slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Sidecar Status Wrap (50% Equal Width) ── */
.sidecar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    height: 44px;
    width: 100%;
    min-width: 0;
}

.sidecar-badge {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Language Accent Picker Wrap (50% Equal Width) ── */
.lang-picker-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    height: 44px;
    width: 100%;
    min-width: 0;
}

/* ── Login Screen ── */
#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    background-color: var(--bg-base);
    position: relative;
}

#login-screen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 400px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.login-card h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.3px;
}

.login-card .login-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -10px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.login-field .field-hint {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(148, 163, 184, 0.5);
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    height: 46px;
    transition: border-color 0.2s;
}

.login-input-wrap:focus-within {
    border-color: var(--accent-green);
}

.login-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-ui);
}

.login-input-wrap .input-icon {
    color: rgba(71, 85, 105, 0.8);
    display: flex;
    flex-shrink: 0;
}

.login-input-wrap .eye-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    color: rgba(71, 85, 105, 0.8);
}

.login-btn {
    padding: 14px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.login-btn:hover {
    opacity: 0.92;
    transform: scale(0.99);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-login-btn {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background 0.2s, border-color 0.2s;
}

.google-login-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.google-login-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.login-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: none;
}

.login-logo {
    width: 52px;
    height: 52px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.login-toggle {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.login-toggle button {
    background: none;
    border: none;
    color: var(--accent-green);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-ui);
    padding: 0;
}

.login-toggle button:hover {
    text-decoration: underline;
}

/* ── Logout Button ── */
.account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(99, 102, 241, 0.24);
    color: #c7d2fe;
    font-size: 12px;
    font-weight: 700;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 6px;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.logout-btn svg {
    width: 14px;
    height: 14px;
    stroke: #64748b;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logout-btn:hover svg {
    stroke: #f87171;
}

.tap-to-hear {
    display: none;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-top: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
    animation: tap-pulse 2s ease-in-out infinite;
}

@keyframes tap-pulse {
    0%, 100% { background: rgba(16, 185, 129, 0.06); }
    50% { background: rgba(16, 185, 129, 0.18); }
}

.tap-to-hear.visible { display: flex; }
.tap-to-hear:active {
    transform: scale(0.98);
    background: rgba(16, 185, 129, 0.28);
}

/* ── Multi-Snap Thumbnails & Control Row ── */
.thumbnails-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    min-height: 40px;
}

.thumbnails-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}
.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    position: relative;
    width: 50px;
    height: 36px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.15s, border-color 0.15s;
}
.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--accent-green, #10b981);
}

.btn-delete-snap {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s, background 0.15s;
}
.btn-delete-snap:hover {
    transform: scale(1.2);
    background: #dc2626;
}

/* ── Inline Multi-Snap Button ── */
.btn-snap-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}
.btn-snap-inline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}
.btn-snap-inline:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-snap-inline svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ── Multi-Snap Max Limit State (5/5 Screenshots) ── */
.btn-snap-inline.max-limit {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(245, 158, 11, 0.22) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    color: #fca5a5 !important;
    cursor: not-allowed !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.3) !important;
    opacity: 0.95;
    animation: snap-limit-pulse 2s infinite ease-in-out;
}
.btn-snap-inline.max-limit svg {
    stroke: #fca5a5 !important;
}

@keyframes snap-limit-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
        border-color: rgba(239, 68, 68, 0.8);
    }
}

.snap-count-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 2px;
}

/* ── Code & Solve Active Snaps Tracking Badge ── */
.solve-snap-badge {
    background: rgba(0, 245, 160, 0.2);
    border: 1px solid rgba(0, 245, 160, 0.5);
    color: #00f5a0;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 4px;
    letter-spacing: 0.2px;
}

.btn-primary.has-snaps {
    border-color: rgba(0, 245, 160, 0.5);
    box-shadow: 0 0 16px rgba(0, 245, 160, 0.2);
}

/* ── Stealth Console Model Picker ── */
.quick-mode-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 4px;
}

.model-picker-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 30;
}

.model-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid rgba(99, 102, 241, 0.32);
    background: rgba(99, 102, 241, 0.14);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-code, monospace);
    cursor: pointer;
    outline: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    user-select: none;
}

.model-select-btn:hover {
    background: rgba(99, 102, 241, 0.24);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.22);
}

.model-select-btn .cpu-icon {
    flex-shrink: 0;
    color: #818cf8;
}

.model-select-btn .model-label-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.model-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    right: 0;
    min-width: 245px;
    max-width: min(280px, calc(100vw - 20px));
    background: rgba(14, 18, 30, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(99, 102, 241, 0.2);
    z-index: 1000;
    animation: modelDropdownFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-dropdown-header {
    display: none;
}

.model-menu-close-btn {
    display: none;
}

#quick-model-wrap .model-dropdown-menu {
    top: calc(100% + 6px);
    bottom: auto;
}

.model-dropdown-menu[hidden] {
    display: none !important;
}

.model-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.14s ease;
    outline: none;
}

.model-option-btn:hover {
    background: rgba(255, 255, 255, 0.07);
}

.model-option-btn.active {
    background: rgba(99, 102, 241, 0.18);
}

.model-opt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.model-opt-dot.active {
    background: #818cf8;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.85);
}

.model-opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.model-opt-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #e2e8f0;
    font-family: var(--font-code, monospace);
    letter-spacing: -0.2px;
}

.model-option-btn.active .model-opt-name {
    color: #818cf8;
}

.model-opt-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-ui, sans-serif);
}

/* ── Mobile Responsive Layout Adjustments (<= 520px) ── */
@media (max-width: 520px) {
    .model-select-btn {
        height: 26px;
        padding: 0 7px;
        font-size: 10.5px;
        gap: 4px;
    }

    .model-select-btn .model-label-text {
        max-width: 82px;
    }

    .model-dropdown-menu {
        min-width: 220px;
        max-width: min(260px, calc(100vw - 16px));
        right: 0;
        left: auto;
    }

    #header-model-wrap .model-dropdown-menu,
    #quick-model-wrap .model-dropdown-menu {
        top: calc(100% + 6px);
        bottom: auto;
    }

    .model-option-btn {
        padding: 8px 10px;
    }

    .model-opt-name {
        font-size: 11.5px;
    }

    .model-opt-desc {
        font-size: 9.5px;
    }
}

@keyframes modelDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

