/* Voice Notes - Premium UI */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
}

.vn-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px;
}

/* ============================================================
   Header
   ============================================================ */
.vn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.vn-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.vn-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

/* ============================================================
   API Usage Bar
   ============================================================ */
.vn-usage-bar {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.vn-usage-bar.active {
    display: flex;
}

.vn-usage-label {
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.vn-usage-sep {
    color: #cbd5e1;
}

.vn-usage-cost {
    font-weight: 600;
    color: #059669;
}

.vn-usage-detail {
    color: #94a3b8;
}

/* ============================================================
   Stats Bar
   ============================================================ */
.vn-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vn-stat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    flex: 1;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.vn-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.vn-stat:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.vn-stat:nth-child(2)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.vn-stat:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.vn-stat:nth-child(4)::before { background: linear-gradient(90deg, #10b981, #34d399); }

.vn-stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.vn-stat:nth-child(1) .vn-stat-value { color: #2563eb; }
.vn-stat:nth-child(2) .vn-stat-value { color: #7c3aed; }
.vn-stat:nth-child(3) .vn-stat-value { color: #d97706; }
.vn-stat:nth-child(4) .vn-stat-value { color: #059669; }

.vn-stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ============================================================
   AI Summary
   ============================================================ */
.vn-analysis-summary {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    display: none;
}

.vn-analysis-summary.active {
    display: block;
}

.vn-analysis-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vn-last-analysed {
    font-size: 12px;
    color: #94a3b8;
}

/* ============================================================
   Tabs
   ============================================================ */
.vn-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.vn-tab {
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    position: relative;
}

.vn-tab:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.04);
}

.vn-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.vn-tab-panel {
    display: none;
}

.vn-tab-panel.active {
    display: block;
}

/* ============================================================
   Recording Cards
   ============================================================ */
.vn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vn-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vn-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.vn-card.playing {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.12);
}

.vn-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    margin-top: 2px;
}

.vn-play-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
}

.vn-play-btn.playing {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.vn-play-btn.playing:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.vn-play-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.vn-card-info {
    flex: 1;
    min-width: 0;
}

.vn-card-date {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
}

.vn-card-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.vn-card-meta span {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.vn-card-progress {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 10px;
    display: none;
    overflow: hidden;
}

.vn-card-progress.active { display: block; }

.vn-card-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.vn-card-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    display: none;
    font-variant-numeric: tabular-nums;
}

.vn-card-time.active { display: block; }

.vn-card-transcript-section {
    margin-top: 10px;
}

.vn-card-summary {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 6px;
}

.vn-card-transcript-link {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.vn-card-transcript-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.vn-card-transcribing {
    font-size: 12px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vn-transcribing-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    display: inline-block;
    animation: vn-pulse 1.2s ease-in-out infinite;
}

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

.vn-card-transcript-error {
    font-size: 12px;
    color: #dc2626;
    margin-bottom: 4px;
}

.vn-transcribe-btn {
    font-size: 12px;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.vn-transcribe-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.vn-transcribe-btn:disabled {
    color: #94a3b8;
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: default;
}

.vn-delete-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 2px;
}

.vn-delete-btn:hover {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.vn-delete-btn svg {
    width: 15px;
    height: 15px;
}

/* ============================================================
   Empty States
   ============================================================ */
.vn-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.vn-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.vn-empty p {
    font-size: 15px;
}

/* ============================================================
   Projects View
   ============================================================ */
.vn-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.vn-project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #3b82f6;
}

.vn-project-card:hover {
    border-color: #cbd5e1;
    border-left-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.vn-project-card.archived {
    opacity: 0.45;
    border-left-color: #94a3b8;
}

.vn-project-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.vn-project-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.vn-project-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.vn-badge-idea { background: #eff6ff; color: #1d4ed8; }
.vn-badge-planning { background: #fef3c7; color: #b45309; }
.vn-badge-active { background: #dcfce7; color: #15803d; }
.vn-badge-completed { background: #f1f5f9; color: #64748b; }

.vn-project-category {
    display: inline-block;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.vn-project-summary {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 14px;
    flex: 1;
}

.vn-project-points {
    margin: 0 0 14px 0;
    padding: 0 0 0 20px;
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
}

.vn-project-points li {
    margin-bottom: 2px;
}

.vn-project-points li::marker {
    color: #3b82f6;
}

.vn-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: auto;
}

.vn-project-note-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.vn-project-actions {
    display: flex;
    gap: 6px;
}

.vn-project-status-select {
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.15s;
}

.vn-project-status-select:hover {
    border-color: #cbd5e1;
}

/* ============================================================
   Todos View
   ============================================================ */
.vn-todo-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vn-todo-filter {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.vn-todo-filter:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vn-todo-filter.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.vn-todo-group {
    margin-bottom: 28px;
}

.vn-todo-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vn-todo-group-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.vn-todo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vn-todo-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vn-todo-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vn-todo-item.completed {
    opacity: 0.5;
}

.vn-todo-item.completed .vn-todo-text {
    text-decoration: line-through;
    color: #94a3b8;
}

.vn-todo-item.dismissed {
    opacity: 0.35;
    display: none;
}

.vn-todo-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.vn-todo-check:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.vn-todo-check.checked {
    background: #2563eb;
    border-color: #2563eb;
}

.vn-todo-check.checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-top: -2px;
}

.vn-todo-content {
    flex: 1;
    min-width: 0;
}

.vn-todo-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.55;
    font-weight: 500;
}

.vn-todo-meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
    align-items: center;
    flex-wrap: wrap;
}

.vn-todo-project-link {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.vn-todo-project-link:hover {
    text-decoration: underline;
}

.vn-todo-source-link {
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.vn-todo-source-link:hover {
    color: #3b82f6;
}

.vn-priority-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 0 0 2px #fff;
}

.vn-priority-high { background: #ef4444; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(239, 68, 68, 0.3); }
.vn-priority-medium { background: #f59e0b; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(245, 158, 11, 0.3); }
.vn-priority-low { background: #94a3b8; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(148, 163, 184, 0.2); }

.vn-todo-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.vn-todo-item:hover .vn-todo-actions {
    opacity: 1;
}

.vn-todo-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    padding: 0;
}

.vn-todo-action-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.vn-todo-show-all .vn-todo-item.dismissed {
    display: flex;
}

/* ============================================================
   Settings / API Key
   ============================================================ */
.vn-settings-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vn-settings-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

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

.vn-key-value {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 15px;
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    word-break: break-all;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Buttons */
.vn-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.vn-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.vn-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.vn-btn-secondary {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.vn-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vn-btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.vn-btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.vn-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.vn-url-section { margin-top: 16px; }

.vn-url-section label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.vn-url-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    word-break: break-all;
    margin-bottom: 8px;
}

.vn-shortcut-instructions {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.vn-shortcut-instructions h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 12px;
}

.vn-shortcut-instructions ol {
    font-size: 13px;
    color: #475569;
    padding-left: 20px;
    line-height: 1.9;
}

.vn-shortcut-instructions code {
    background: #dbeafe;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #1e40af;
}

.vn-key-created {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.vn-copied {
    font-size: 12px;
    color: #16a34a;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
}

.vn-copied.show { opacity: 1; }

/* ============================================================
   Loading / Empty
   ============================================================ */
.vn-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.vn-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: vn-spin 0.8s linear infinite;
}

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

/* ============================================================
   Overlay / Dialog
   ============================================================ */
.vn-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.vn-overlay.active { display: flex; }

.vn-dialog {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.vn-dialog h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.vn-dialog p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.vn-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.vn-dialog-actions .vn-btn {
    min-width: 100px;
}

/* ============================================================
   Toast
   ============================================================ */
.vn-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: #1e293b;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    max-width: 350px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.vn-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.vn-toast.error { background: #dc2626; }
.vn-toast.success { background: #059669; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .vn-container {
        padding: 16px 12px;
    }

    .vn-header h2 {
        font-size: 20px;
    }

    .vn-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .vn-stat {
        min-width: 0;
        padding: 12px 10px;
    }

    .vn-stat-value {
        font-size: 22px;
    }

    .vn-stat-label {
        font-size: 10px;
    }

    .vn-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .vn-play-btn {
        width: 38px;
        height: 38px;
    }

    .vn-card-meta {
        gap: 6px;
    }

    .vn-key-display {
        flex-direction: column;
    }

    .vn-key-display .vn-btn {
        width: 100%;
    }

    .vn-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vn-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .vn-tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .vn-projects-grid {
        grid-template-columns: 1fr;
    }

    .vn-todo-item {
        padding: 12px;
        gap: 10px;
    }

    .vn-todo-actions {
        opacity: 1;
    }

    .vn-analysis-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   Dark Mode
   ============================================================ */
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .vn-header h2 { color: #f1f5f9; }

/* Tabs */
[data-theme="dark"] .vn-tabs { border-bottom-color: #334155; }
[data-theme="dark"] .vn-tab { color: #94a3b8; }
[data-theme="dark"] .vn-tab:hover { color: #60a5fa; background: rgba(96, 165, 250, 0.06); }
[data-theme="dark"] .vn-tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }

/* Usage Bar */
[data-theme="dark"] .vn-usage-bar { background: #1e293b; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .vn-usage-label { color: #cbd5e1; }
[data-theme="dark"] .vn-usage-sep { color: #475569; }
[data-theme="dark"] .vn-usage-cost { color: #34d399; }
[data-theme="dark"] .vn-usage-detail { color: #64748b; }

/* Stats */
[data-theme="dark"] .vn-stat { background: #1e293b; border-color: #334155; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .vn-stat:nth-child(1) .vn-stat-value { color: #60a5fa; }
[data-theme="dark"] .vn-stat:nth-child(2) .vn-stat-value { color: #a78bfa; }
[data-theme="dark"] .vn-stat:nth-child(3) .vn-stat-value { color: #fbbf24; }
[data-theme="dark"] .vn-stat:nth-child(4) .vn-stat-value { color: #34d399; }

/* Summary */
[data-theme="dark"] .vn-analysis-summary { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); border-left-color: #3b82f6; color: #cbd5e1; }

/* Cards */
[data-theme="dark"] .vn-card { background: #1e293b; border-color: #334155; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .vn-card:hover { border-color: #475569; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .vn-card.playing { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6, 0 4px 12px rgba(59,130,246,0.15); }
[data-theme="dark"] .vn-card-date { color: #f1f5f9; }
[data-theme="dark"] .vn-card-meta { color: #64748b; }
[data-theme="dark"] .vn-card-meta span { background: #334155; }
[data-theme="dark"] .vn-card-progress { background: #334155; }
[data-theme="dark"] .vn-card-summary { color: #94a3b8; }
[data-theme="dark"] .vn-card-transcript-link { color: #60a5fa; }
[data-theme="dark"] .vn-transcribe-btn { color: #60a5fa; border-color: rgba(96,165,250,0.25); background: rgba(96,165,250,0.08); }
[data-theme="dark"] .vn-transcribe-btn:hover { background: rgba(96,165,250,0.15); }
[data-theme="dark"] .vn-transcribe-btn:disabled { color: #64748b; border-color: #334155; background: none; }
[data-theme="dark"] .vn-delete-btn { color: #475569; }
[data-theme="dark"] .vn-delete-btn:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.25); color: #f87171; }

/* Projects */
[data-theme="dark"] .vn-project-card { background: #1e293b; border-color: #334155; border-left-color: #3b82f6; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .vn-project-card:hover { border-color: #475569; border-left-color: #60a5fa; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
[data-theme="dark"] .vn-project-title { color: #f1f5f9; }
[data-theme="dark"] .vn-project-summary { color: #94a3b8; }
[data-theme="dark"] .vn-project-points { color: #94a3b8; }
[data-theme="dark"] .vn-project-points li::marker { color: #60a5fa; }
[data-theme="dark"] .vn-project-footer { border-top-color: #334155; }
[data-theme="dark"] .vn-project-category { background: #334155; color: #94a3b8; }
[data-theme="dark"] .vn-badge-idea { background: rgba(59,130,246,0.15); color: #60a5fa; }
[data-theme="dark"] .vn-badge-planning { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .vn-badge-active { background: rgba(34,197,94,0.15); color: #4ade80; }
[data-theme="dark"] .vn-badge-completed { background: #334155; color: #94a3b8; }
[data-theme="dark"] .vn-project-status-select { background: #0f172a; border-color: #334155; color: #e2e8f0; }

/* Todos */
[data-theme="dark"] .vn-todo-filter { border-color: #334155; color: #94a3b8; background: #1e293b; box-shadow: none; }
[data-theme="dark"] .vn-todo-filter:hover { background: #334155; border-color: #475569; }
[data-theme="dark"] .vn-todo-filter.active { background: #2563eb; color: white; border-color: #2563eb; }
[data-theme="dark"] .vn-todo-group-title { border-bottom-color: #334155; color: #94a3b8; }
[data-theme="dark"] .vn-todo-group-title::before { background: #60a5fa; }
[data-theme="dark"] .vn-todo-item { background: #1e293b; border-color: #334155; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .vn-todo-item:hover { border-color: #475569; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .vn-todo-text { color: #e2e8f0; }
[data-theme="dark"] .vn-todo-check { border-color: #475569; }
[data-theme="dark"] .vn-todo-check:hover { border-color: #3b82f6; background: rgba(59,130,246,0.1); }
[data-theme="dark"] .vn-todo-project-link { color: #60a5fa; }
[data-theme="dark"] .vn-todo-action-btn:hover { background: rgba(239,68,68,0.12); color: #f87171; }
[data-theme="dark"] .vn-priority-high { box-shadow: 0 0 0 2px #1e293b, 0 0 0 3px rgba(239,68,68,0.3); }
[data-theme="dark"] .vn-priority-medium { box-shadow: 0 0 0 2px #1e293b, 0 0 0 3px rgba(245,158,11,0.3); }
[data-theme="dark"] .vn-priority-low { box-shadow: 0 0 0 2px #1e293b; }

/* Settings */
[data-theme="dark"] .vn-settings-card { background: #1e293b; border-color: #334155; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .vn-settings-card h3 { color: #f1f5f9; }
[data-theme="dark"] .vn-key-value { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .vn-url-value { background: #0f172a; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .vn-btn-secondary { background: #334155; color: #e2e8f0; border-color: #475569; }
[data-theme="dark"] .vn-btn-secondary:hover { background: #475569; }
[data-theme="dark"] .vn-btn-danger { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); }
[data-theme="dark"] .vn-btn-danger:hover { background: rgba(220,38,38,0.2); }
[data-theme="dark"] .vn-shortcut-instructions { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.15); }
[data-theme="dark"] .vn-shortcut-instructions h4 { color: #60a5fa; }
[data-theme="dark"] .vn-shortcut-instructions ol { color: #94a3b8; }
[data-theme="dark"] .vn-shortcut-instructions code { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* Dialog / Toast / Empty */
[data-theme="dark"] .vn-dialog { background: #1e293b; box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
[data-theme="dark"] .vn-dialog h3 { color: #f1f5f9; }
[data-theme="dark"] .vn-dialog p { color: #94a3b8; }
[data-theme="dark"] .vn-overlay { background: rgba(0,0,0,0.7); }
[data-theme="dark"] .vn-toast { background: #334155; }
[data-theme="dark"] .vn-empty { color: #64748b; }
