/* ═══════════════════════════════════════════════════════════════════
   OCT Evaluation Webapp — Styles
   Premium dark theme with clinical aesthetics & glassmorphism
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #111820;
    --bg-card: rgba(18, 24, 33, 0.85);
    --bg-card-solid: #121821;
    --bg-card-hover: #1a2230;
    --bg-input: #0c1018;
    --bg-elevated: #1e2736;

    --border-default: rgba(255, 255, 255, 0.07);
    --border-muted: rgba(255, 255, 255, 0.04);
    --border-accent: #3b82f6;
    --border-glow: rgba(59, 130, 246, 0.25);

    --text-primary: #e8edf4;
    --text-secondary: #8b95a5;
    --text-muted: #5a6477;
    --text-link: #60a5fa;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #34d399;
    --accent-red: #f87171;
    --accent-orange: #fbbf24;
    --accent-purple: #a78bfa;
    --accent-teal: #2dd4bf;

    --gradient-accent: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-success: linear-gradient(135deg, #34d399, #2dd4bf);
    --gradient-hero: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.06));

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.04), transparent);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-blue-hover);
    text-decoration: none;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in { animation: fadeInUp 0.4s var(--transition-med) both; }
.fade-in-fast { animation: fadeIn 0.25s ease both; }

/* ── Navigation ────────────────────────────────────────────────── */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 28px;
    height: 58px;
    background: rgba(10, 14, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}
.nav-title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-logo {
    height: 26px;
    width: auto;
    filter: invert(1);
    opacity: 0.92;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.87rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}
.nav-link svg {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
}
.nav-link:hover svg { opacity: 1; }
.nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-weight: 600;
}
.nav-link.active svg { opacity: 1; }

/* ── Footer ────────────────────────────────────────────────────── */
.app-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
    border-top: 1px solid var(--border-muted);
    margin-top: 40px;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Page Header ───────────────────────────────────────────────── */
.page-header {
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-teal));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 4px;
    font-weight: 400;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-med), border-color var(--transition-med);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-muted);
    background: rgba(255, 255, 255, 0.015);
}
.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-body {
    padding: 22px;
}
.card-body.center {
    text-align: center;
}

/* ── Grid Layouts ──────────────────────────────────────────────── */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 800px) {
    .grid-2col { grid-template-columns: 1fr; }
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.3);
}
.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-blue-hover);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.btn-accent:hover:not(:disabled) {
    filter: brightness(1.12);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-default);
    color: var(--text-secondary);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.badge-pair {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-running {
    background: rgba(210, 153, 34, 0.15);
    color: var(--accent-orange);
    border-color: rgba(210, 153, 34, 0.3);
    animation: pulse 1.5s infinite;
}

.badge-done {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
    border-color: rgba(63, 185, 80, 0.3);
}

.badge-error {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red);
    border-color: rgba(248, 81, 73, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
}

/* ── Overview Page ─────────────────────────────────────────────── */
.overview-status-card {
    border-color: rgba(52, 211, 153, 0.2);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.05), var(--bg-card));
    box-shadow: var(--shadow-sm), 0 0 16px rgba(52, 211, 153, 0.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.status-dot-active {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(63, 185, 80, 0.5); }
    50% { box-shadow: 0 0 16px rgba(63, 185, 80, 0.8); }
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) {
    .config-grid { grid-template-columns: 1fr; }
}

.config-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-muted);
}

.mb-2 { margin-bottom: 16px; }

/* ── Status Messages ───────────────────────────────────────────── */
.status-msg {
    margin-top: 12px;
    font-size: 0.9rem;
}
.text-success { color: var(--accent-green); }
.text-error { color: var(--accent-red); }
.text-warning { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }

/* ── Deviation Highlighting (relative %) ──────────────────────── */
.rel-normal {
    color: var(--accent-green) !important;
}
.rel-warning {
    color: var(--accent-orange) !important;
    font-weight: 700;
}
.rel-severe {
    color: var(--accent-red) !important;
    font-weight: 700;
}

/* Deviation pills (inline badges for relative values) */
.dev-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
}
.dev-pill.dev-normal {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.1);
}
.dev-pill.dev-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent-orange);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.1);
}
.dev-pill.dev-severe {
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-red);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.1);
}

/* ── Sticky Verify Bar ────────────────────────────────────────── */
.sticky-verify-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}
.sticky-verify-bar .verify-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.sticky-verify-bar .verify-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Metrics Grouping ─────────────────────────────────────────── */
.metrics-group {
    margin-bottom: 20px;
}
.metrics-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    user-select: none;
}
.metrics-group-header h3 {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.metrics-group-body {
    border: 1px solid var(--border-muted);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
}

/* ── Hero Metric (large KPI) ──────────────────────────────────── */
.hero-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-metric {
    flex: 1;
    min-width: 180px;
    padding: 20px 16px;
    background: var(--gradient-hero);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-metric:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.08);
}
.hero-metric .hero-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.hero-metric .hero-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.15);
}
.hero-metric .hero-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Keyboard Shortcut Hints ──────────────────────────────────── */
.kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    color: var(--text-muted);
    line-height: 1.4;
}

.shortcut-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.88rem;
    flex-wrap: wrap;
    backdrop-filter: blur(8px);
}

.crumb {
    color: var(--text-link);
    padding: 2px 6px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}
.crumb:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
}

.crumb-sep {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Tree View ─────────────────────────────────────────────────── */
.tree-container {
    min-height: 200px;
}

.tree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.tree-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-med);
}
.tree-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tree-card-pair {
    border-color: rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.tree-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-muted);
}

.folder-icon {
    font-size: 1.2rem;
}

.tree-card-name {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.tree-card-subdirs {
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subdir-link {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-link);
    transition: all var(--transition-fast);
}
.subdir-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    text-decoration: none;
}

.tree-card-files {
    padding: 12px 16px;
}

.vol-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-muted);
}
.vol-file-item:last-child {
    border-bottom: none;
}

.slo-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    background: var(--bg-secondary);
}

.vol-file-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.vol-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vol-file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tree-card-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--border-muted);
    display: flex;
    justify-content: flex-end;
}

/* [Removed: .slo-large, .slo-medium — unused after canvas migration] */


.meta-table {
    width: 100%;
    border-collapse: collapse;
}
.meta-table tr {
    border-bottom: 1px solid var(--border-muted);
    transition: background var(--transition-fast);
}
.meta-table tr:hover {
    background: rgba(255, 255, 255, 0.015);
}
.meta-table td {
    padding: 9px 4px;
    font-size: 0.88rem;
}
.meta-key {
    color: var(--text-secondary);
    font-weight: 500;
    width: 150px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── B-Scan Viewer ─────────────────────────────────────────────── */
/* [Removed: .bscan-image — unused after canvas migration] */


.bscan-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.slider-container {
    margin-top: 12px;
    padding: 0 8px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-default);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform var(--transition-fast);
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ── B-Scan Canvas Overlay ────────────────────────────────────── */
.overlay-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}
.toggle-label input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.toggle-text {
    font-weight: 500;
}

.overlay-legend {
    margin-left: auto;
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.bscan-canvas-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    background: #000;
    max-height: 450px;
}
.bscan-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    max-height: 450px;
    margin: 0 auto;
    image-rendering: auto;
}

/* ── Export Button ─────────────────────────────────────────────── */
.btn-export {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    color: #0d1117;
    font-weight: 700;
}
.btn-export:hover:not(:disabled) {
    filter: brightness(1.1);
    color: #0d1117;
}

/* [Removed: Metric Selection Panel — no longer used after export consolidation] */

/* ── SLO Canvas ───────────────────────────────────────────────── */
.slo-canvas-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: #000;
}
.slo-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;
    image-rendering: auto;
}

/* ── Metrics Tables ────────────────────────────────────────────── */
.metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.metrics-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-default);
}
.metrics-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-muted);
    font-family: var(--font-mono);
    font-size: 0.83rem;
}
.metrics-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.012);
}
.metrics-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.metric-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.metric-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.metric-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-teal);
}

/* ── Pair View ─────────────────────────────────────────────────── */
.pair-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.pair-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pair-info-item span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.pair-info-item span:last-child {
    font-weight: 600;
    font-size: 1rem;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* Preserve µm unit sign inside text-transform:uppercase containers */
.unit { text-transform: none; }

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-default);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    margin-right: 12px;
    animation: spin 0.8s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* \u2500\u2500 Verification Badges \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
.badge-partial {
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent-orange);
    border-color: rgba(251, 191, 36, 0.25);
}

.badge-muted {
    background: rgba(139, 148, 158, 0.1);
    color: var(--text-muted);
    border-color: rgba(139, 148, 158, 0.2);
    font-weight: 500;
}

/* [Removed: .btn-verify — replaced by .vbtn verify button group] */


/* ── Upload Button ────────────────────────────────────────────── */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    transition: all var(--transition-fast);
}
.btn-upload:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
}
.btn-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Verified Tree Card ───────────────────────────────────────── */
.tree-card-verified {
    border-color: rgba(63, 185, 80, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(63, 185, 80, 0.04) 100%);
}

/* ── Loading Spinner (for tree) ───────────────────────────────── */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

/* ── Pair Eye Verification Status ─────────────────────────────── */
.pair-eye-status {
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-muted);
    font-size: 0.85rem;
}

.eye-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.eye-status-item.verified {
    background: rgba(63, 185, 80, 0.1);
    color: var(--accent-green);
}

.eye-status-item.unverified {
    background: rgba(139, 148, 158, 0.08);
    color: var(--text-muted);
}

/* ── Pair SLO Preview (tree view) ────────────────────────────── */
.pair-slo-preview {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-muted);
}
.pair-slo-multi {
    border-top: 1px solid var(--border-muted);
}
.pair-slo-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.pair-slo-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.pair-slo-eye {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 160px;
}
.pair-slo-eye a {
    display: block;
}
.pair-slo-eye .slo-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-default);
    transition: border-color var(--transition-fast);
}
.pair-slo-eye a:hover .slo-thumbnail {
    border-color: var(--accent-blue);
}
.pair-slo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.78rem;
}
.pair-slo-role {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}
.pair-slo-file {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.pair-slo-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* Larger SLO thumbnails for current-level pair preview */
.slo-thumbnail-lg {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-default);
    transition: border-color var(--transition-fast);
}
.pair-slo-eye a:hover .slo-thumbnail-lg {
    border-color: var(--accent-blue);
}

.current-pair-section {
    margin-bottom: 20px;
}
.pair-card-current {
    margin-bottom: 12px;
}
.pair-card-current .pair-slo-eye {
    max-width: 200px;
}
.pair-card-current .pair-slo-row {
    gap: 32px;
}

/* ── Fovea Recenter Alert ────────────────────────────────────── */
.fovea-alert {
    border: 1px solid rgba(210, 153, 34, 0.4);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(210, 153, 34, 0.06) 100%);
    padding: 14px 18px;
}
.fovea-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.fovea-alert-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.fovea-alert-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.fovea-alert-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-orange);
    margin-bottom: 2px;
}
.fovea-alert-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.fovea-alert-detail strong {
    display: inline;
    color: var(--text-primary);
    font-size: inherit;
}

/* ── Tag System ──────────────────────────────────────────────── */

/* Tag pills (full size, used in file detail) */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--tag-color, #888) 15%, transparent);
    color: var(--tag-color, #888);
    border: 1px solid color-mix(in srgb, var(--tag-color, #888) 30%, transparent);
    margin: 2px 4px 2px 0;
    transition: all var(--transition-fast);
}

.tag-pill-cat {
    font-weight: 700;
    opacity: 0.7;
    font-size: 0.75rem;
    margin-right: 2px;
}

.tag-pill-remove {
    background: none;
    border: none;
    color: var(--tag-color, #888);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}
.tag-pill-remove:hover {
    opacity: 1;
}

/* Tag pills (small, used in tree view) */
.tag-pill-sm {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--tag-color, #888) 12%, transparent);
    color: var(--tag-color, #888);
    border: 1px solid color-mix(in srgb, var(--tag-color, #888) 25%, transparent);
    margin: 1px 2px;
    white-space: nowrap;
}

/* Tag display area */
.tag-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 32px;
}

/* Tag editor section */
.tag-editor {
    margin-top: 12px;
}

.tag-editor-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Tag palette (grouped by category) */
.tag-palette-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-muted);
}

.tag-palette-cat {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 80px;
}

/* Tag chips (clickable in palette) */
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}
.tag-chip:hover {
    border-color: var(--tag-color, #888);
    background: color-mix(in srgb, var(--tag-color, #888) 10%, transparent);
    color: var(--tag-color, #888);
}
.tag-chip-active {
    background: color-mix(in srgb, var(--tag-color, #888) 18%, transparent);
    color: var(--tag-color, #888);
    border-color: color-mix(in srgb, var(--tag-color, #888) 40%, transparent);
    font-weight: 700;
}

/* Tag management section */
.tag-manager {
    margin-top: 12px;
}

.tag-mgmt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 800px) {
    .tag-mgmt-grid { grid-template-columns: 1fr; }
}

.tag-mgmt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-muted);
}

.tag-mgmt-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.5;
    transition: all var(--transition-fast);
}
.tag-mgmt-delete:hover {
    opacity: 1;
    background: rgba(248, 81, 73, 0.1);
}

/* [Removed: bottom-verify-card — replaced by sticky-verify-bar] */

/* ── Verify / Invalidate Button Group ────────────────────── */
.verify-btn-group {
    display: inline-flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-default);
    backdrop-filter: blur(8px);
}
.verify-btn-group .vbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}
.verify-btn-group .vbtn:not(:last-child) {
    border-right: 1px solid var(--border-default);
}
.verify-btn-group .vbtn:hover:not(.active-verified):not(.active-invalidated):not(.active-review-later) {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}
.verify-btn-group .vbtn.active-verified {
    background: rgba(52, 211, 153, 0.18);
    color: var(--accent-green);
    box-shadow: inset 0 0 12px rgba(52, 211, 153, 0.08);
}
.verify-btn-group .vbtn.active-invalidated {
    background: rgba(248, 113, 113, 0.18);
    color: var(--accent-red);
    box-shadow: inset 0 0 12px rgba(248, 113, 113, 0.08);
}
.verify-btn-group .vbtn.active-review-later {
    background: rgba(251, 191, 36, 0.18);
    color: var(--accent-orange);
    box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.08);
}
.verify-btn-group .vbtn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Query Page ──────────────────────────────────────────────── */

.query-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid var(--border-default);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}
.query-chip:hover {
    border-color: var(--tag-color, #888);
    color: var(--tag-color, #888);
}
.query-chip-include {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
    border-color: var(--accent-green);
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.3);
}
.query-chip-exclude {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red, #f85149);
    border-color: var(--accent-red, #f85149);
    font-weight: 700;
    text-decoration: line-through;
    box-shadow: 0 0 0 1px rgba(248, 81, 73, 0.3);
}

.query-summary {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
}
.query-summary-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
}
.query-summary-label.include {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
}
.query-summary-label.exclude {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red, #f85149);
}

.query-excluded {
    text-decoration: line-through;
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* [Removed: duplicate .btn-accent — already defined above] */

/* ── Pair Navigation ──────────────────────────────────────────── */
.pair-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pair-nav .btn {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ── Three-State Verification Badges ─────────────────────────── */
.badge-verified {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
    border-color: rgba(63, 185, 80, 0.3);
}
.badge-invalidated {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red);
    border-color: rgba(248, 81, 73, 0.3);
}
.badge-unreviewed {
    background: rgba(139, 148, 158, 0.1);
    color: var(--text-muted);
    border-color: var(--border-default);
}
.badge-review-later {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-orange);
    border-color: rgba(251, 191, 36, 0.3);
}

.status-icon-verified { color: var(--accent-green); }
.status-icon-invalidated { color: var(--accent-red); }
.status-icon-unreviewed { color: var(--text-muted); }
.status-icon-review-later { color: var(--accent-orange); }

/* Review-later tree card tint */
.tree-card-review-later {
    border-color: rgba(251, 191, 36, 0.25);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(251, 191, 36, 0.04) 100%);
}

/* Notes textarea */
.notes-textarea {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    resize: vertical;
    transition: border-color var(--transition-fast);
    line-height: 1.5;
}
.notes-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.notes-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}
.notes-save-indicator {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 18px;
    transition: opacity var(--transition-fast);
}



/* ── Merge Conflict Modal ────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-default);
    background: rgba(210, 153, 34, 0.05);
}
.modal-header h3 {
    font-size: 1.05rem;
    color: var(--accent-orange);
}
.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}
.btn-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-default);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.conflict-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.conflict-file {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    word-break: break-all;
}
.conflict-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.conflict-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}
.conflict-option:hover {
    background: var(--bg-card-hover);
}
.conflict-option input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--accent-blue);
}
.conflict-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.conflict-label strong {
    color: var(--text-primary);
}

/* ── Verification Status Summary (tree cards) ────────────────── */
.status-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
}
.status-summary .ss-verified { color: var(--accent-green); }
.status-summary .ss-invalidated { color: var(--accent-red); }
.status-summary .ss-review-later { color: var(--accent-orange); }
.status-summary .ss-total { color: var(--text-muted); }

/* ── Export All Progress ──────────────────────────────────────── */
.export-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.export-progress-track {
    height: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-muted);
    border-radius: 3px;
    overflow: hidden;
}

.export-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.export-progress-indeterminate {
    animation: exportIndeterminate 1.8s ease-in-out infinite;
    width: 40% !important;
}

@keyframes exportIndeterminate {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(150%); }
    100% { transform: translateX(-100%); }
}
