:root {
    color-scheme: dark light;
    --bg-midnight: #0B0F19;
    --bg-panel: #131824;
    --bg-gradient-start: #1a2130;
    --bg-shadow-run: rgba(11, 15, 25, 0.5);
    --gold-gilded: #D4AF37;
    --gold-highlight: #F9F295;
    --gold-dim: #8a7020;
    --white-ledger: #E8E6E3;
    --text-primary: #E8E6E3;
    --text-secondary: #cbd0dc;
    --text-muted: #a5adba;
    --grey-redaction: #2C333F;
    --grey-subtle: #1a1f2e;
    --grey-inactive: #666;
    --success-green: #3fb950;
    --success-green-dim: #2ea043;
    --info-blue: #58a6ff;
    --error-red: #ff6b6b;
    --surface-overlay-subtle: rgba(255, 255, 255, 0.02);
    --surface-overlay-light: rgba(255, 255, 255, 0.03);
    --surface-overlay-medium: rgba(255, 255, 255, 0.05);
    --surface-overlay-strong: rgba(255, 255, 255, 0.08);
    --surface-overlay-intense: rgba(255, 255, 255, 0.1);
    --surface-overlay-heavy: rgba(255, 255, 255, 0.12);
    --surface-overlay-max: rgba(255, 255, 255, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.37);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --shadow-inset: rgba(0, 0, 0, 0.5);
    --header-bg: rgba(11, 15, 25, 0.8);
    --header-border: rgba(255, 255, 255, 0.05);
    --gold-overlay-subtle: rgba(212, 175, 55, 0.05);
    --gold-overlay-light: rgba(212, 175, 55, 0.1);
    --gold-overlay-medium: rgba(212, 175, 55, 0.15);
    --gold-overlay-strong: rgba(212, 175, 55, 0.2);
    --gold-overlay-glow: rgba(212, 175, 55, 0.3);
    --gold-border-subtle: rgba(212, 175, 55, 0.3);
    --gold-border-medium: rgba(212, 175, 55, 0.5);
    --success-overlay: rgba(63, 185, 80, 0.05);
    --success-overlay-hover: rgba(63, 185, 80, 0.08);
    --info-overlay: rgba(88, 166, 255, 0.08);
    --info-border: rgba(88, 166, 255, 0.2);
    --gradient-hero-text: linear-gradient(180deg, #fff 0%, #ccc 100%);
    --gradient-gold-btn: linear-gradient(135deg, var(--gold-gilded), var(--gold-dim));
    --gradient-success-btn: linear-gradient(135deg, #3fb950, #2ea043);
    --gradient-metallic: linear-gradient(135deg, var(--gold-highlight), var(--gold-gilded), var(--gold-dim));
    --gradient-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent);
    --noise-opacity: 0.03;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --shadow-glass: 0 8px 32px 0 var(--shadow-color);
    --shadow-card: 0 4px 16px var(--shadow-color);
    --shadow-elevated: 0 12px 40px var(--shadow-color);
    --shadow-modal: 0 20px 60px var(--shadow-heavy);
    --border-glass: 1px solid var(--border-subtle);
    --border-active: 1px solid var(--gold-gilded);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease
}

[data-theme=light] {
    --bg-midnight: #F8F9FC;
    --bg-panel: #FFFFFF;
    --bg-gradient-start: #EEF1F6;
    --bg-shadow-run: rgba(252, 231, 168, 0.5);
    --gold-gilded: #B8942C;
    --gold-highlight: #D4AF37;
    --gold-dim: #8B7021;
    --white-ledger: #1A1F2E;
    --text-primary: #1A1F2E;
    --text-secondary: #3D4555;
    --text-muted: #6B7280;
    --grey-redaction: #E5E7EB;
    --grey-subtle: #F3F4F6;
    --grey-inactive: #9CA3AF;
    --success-green: #16A34A;
    --success-green-dim: #15803D;
    --info-blue: #2563EB;
    --error-red: #DC2626;
    --surface-overlay-subtle: rgba(0, 0, 0, 0.02);
    --surface-overlay-light: rgba(0, 0, 0, 0.03);
    --surface-overlay-medium: rgba(0, 0, 0, 0.04);
    --surface-overlay-strong: rgba(0, 0, 0, 0.06);
    --surface-overlay-intense: rgba(0, 0, 0, 0.08);
    --surface-overlay-heavy: rgba(0, 0, 0, 0.1);
    --surface-overlay-max: rgba(0, 0, 0, 0.15);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --shadow-inset: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(248, 249, 252, 0.9);
    --header-border: rgba(0, 0, 0, 0.08);
    --gold-overlay-subtle: rgba(184, 148, 44, 0.06);
    --gold-overlay-light: rgba(184, 148, 44, 0.1);
    --gold-overlay-medium: rgba(184, 148, 44, 0.15);
    --gold-overlay-strong: rgba(184, 148, 44, 0.2);
    --gold-overlay-glow: rgba(184, 148, 44, 0.25);
    --gold-border-subtle: rgba(184, 148, 44, 0.4);
    --gold-border-medium: rgba(184, 148, 44, 0.6);
    --success-overlay: rgba(22, 163, 74, 0.08);
    --success-overlay-hover: rgba(22, 163, 74, 0.12);
    --info-overlay: rgba(37, 99, 235, 0.08);
    --info-border: rgba(37, 99, 235, 0.25);
    --gradient-hero-text: linear-gradient(180deg, #1A1F2E 0%, #3D4555 100%);
    --gradient-gold-btn: linear-gradient(135deg, var(--gold-gilded), var(--gold-dim));
    --gradient-success-btn: linear-gradient(135deg, #16A34A, #15803D);
    --gradient-metallic: linear-gradient(135deg, var(--gold-highlight), var(--gold-gilded), var(--gold-dim));
    --gradient-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent);
    --noise-opacity: 0.015
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    transition: var(--transition-theme);
}

body {
    background-color: var(--bg-midnight);
    background-image: radial-gradient(circle at 50% 0, var(--bg-gradient-start) 0, var(--bg-midnight) 70%);
    /* background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient-start) 0%, var(--bg-midnight) 70%); */
    color: var(--white-ledger);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-theme);
}

/* Noise Texture */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: var(--noise-opacity);
}

h1, h2, h3 {
font-family: var(--font-serif);
font-weight: 400;
letter-spacing: -0.01em;
}

.container {
    height: 100%;
    margin: 0 auto;
    padding: 0px 24px;
    width: 100%;
}



/* Navigation */
nav {
    -webkit-app-region: drag;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    /* backdrop-filter: blur(10px); */
    z-index: 50;
    border-bottom: 1px solid var(--border-subtle);
}

/* Make interactive elements in the drag region clickable */
nav button,
nav .privilege-indicator,
nav .account-indicator,
nav .auth-status,
nav .nav-status,
nav .status-indicator {
    -webkit-app-region: no-drag;
}


    /* Promo Banner */
    .promo-banner {
        background: linear-gradient(90deg, var(--bg-midnight) 0%, rgba(212, 175, 55, 0.08) 50%, var(--bg-midnight) 100%);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding: 12px 24px;
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 101;
    }

    .promo-banner-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

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

    .promo-banner-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--gold-gilded);
        color: var(--bg-midnight);
        padding: 6px 14px;
        border-radius: 4px;
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .promo-banner-cta:hover {
        background: var(--gold-dim);
        transform: translateY(-1px);
    }

    .promo-banner-cta svg {
        width: 14px;
        height: 14px;
    }

    /* Mobile promo banner */
    @media (max-width: 768px) {
        .promo-banner {
            padding: 10px 16px;
        }
        .promo-banner-content {
            gap: 10px;
        }
        .promo-banner-text {
            font-size: 0.8rem;
        }
        .promo-banner-cta {
            padding: 5px 12px;
            font-size: 0.8rem;
        }
        body.has-promo-banner .site-header {
            top: 48px !important;
        }
    }

    /* NAV WORK */
    .site-header {
        padding: 20px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        backdrop-filter: blur(10px);
        background: var(--header-bg);
        z-index: 100;
        border-bottom: 1px solid var(--header-border);
        transition: var(--transition-theme);
    }

    /* Offset header when promo banner is present */
    body.has-promo-banner .site-header {
        top: 58px !important;
    }

    .header-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-logo {
        font-family: var(--font-serif);
        font-size: 1.8rem;
        color: var(--white-ledger);
        text-decoration: none;
        letter-spacing: -0.02em;
    }

    .site-logo span {
        color: var(--gold-gilded);
        font-style: italic;
    }
        
    .logo {
        padding-top: 10px;
        padding-bottom: 10px;
        font-family: var(--font-serif);
        font-size: 1.5rem;
        color: var(--white-ledger);
        padding-left: 3rem;
    }
    .logo span { color: var(--gold-gilded); }

    .nav-status {
        display: flex;
        align-items: center;
        gap: 20px;
        -webkit-app-region: no-drag;
        app-region: no-drag;
    }

            .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .site-logo {
            font-family: var(--font-serif);
            font-size: 1.75rem;
            color: var(--white-ledger);
            text-decoration: none;
        }

        .site-logo span {
            color: var(--gold-gilded);
        }

        .site-nav {
            display: flex;
            align-items: center;
            gap: 32px;
        }

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

        .nav-link {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: var(--transition-smooth);
        }

        .nav-link:hover,
        .nav-link.active {
            color: var(--gold-gilded);
        }

        .nav-cta {
            padding: 10px 20px;
            background: var(--gold-gilded);
            color: var(--bg-midnight);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: var(--transition-smooth);
        }

        .nav-cta:hover {
            background: var(--gold-highlight);
            transform: translateY(-1px);
        }

    .nav-cta {
        padding: 12px 24px;
         background: var(--gold-gilded);
            color: var(--bg-midnight);
        text-decoration: none;
        border-radius: 99px;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .nav-cta:hover {
        background: var(--gold-highlight);
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    }


.mode-toggle {
display: flex;
background: var(--surface-overlay-medium);
border-radius: 99px;
padding: 4px;
}

.mode-btn {
padding: 8px 16px;
background: transparent;
border: none;
color: var(--text-muted);
font-family: var(--font-sans);
font-size: 0.85rem;
border-radius: 99px;
cursor: pointer;
transition: var(--transition-smooth);
}

.mode-btn.active {
background: var(--gold-gilded);
color: var(--bg-midnight);
font-weight: 500;
}

.privilege-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    border: var(--border-glass);
    padding: 8px 14px;
    border-radius: 99px;
    background: var(--surface-overlay-subtle);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.privilege-indicator:hover {
    border-color: var(--gold-gilded);
    background: var(--gold-overlay-subtle);
}

.privilege-indicator.active {
    border-color: var(--success-green);
    background: var(--success-overlay);
}

.privilege-indicator.active:hover {
    border-color: var(--success-green);
    background: var(--success-overlay-hover);
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border: var(--border-glass);
    border-radius: 99px;
    background: var(--surface-overlay-subtle);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sign-in-btn,
.sign-out-btn {
    padding: 6px 14px;
    background: var(--gold-gilded);
    color: var(--bg-midnight);
    border: none;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sign-in-btn:hover,
.sign-out-btn:hover {
    background: var(--gold-highlight);
    transform: translateY(-1px);
}

.privilege-dot {
    width: 6px;
    height: 6px;
    background-color: var(--grey-inactive);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.privilege-dot.active {
    background-color: var(--success-green);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success-overlay-hover);
}

.info-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    background: var(--gold-overlay-medium);
    border: 1px solid var(--gold-border-medium);
    border-radius: 50%;
    color: var(--gold-gilded);
    font-size: 0.65rem;
    font-style: italic;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.info-btn-small:hover {
    background: var(--gold-gilded);
    color: var(--bg-midnight);
    transform: scale(1.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    border: var(--border-glass);
    padding: 8px 14px;
    border-radius: 99px;
    background: var(--surface-overlay-subtle);
}


.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Hero */
.hero {
padding: 30px 0;
}

.hero-layout {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.hero-title-section {
text-align: left;
}

.hero h1 {
font-size: 2.8rem;
line-height: 1.1;
margin-bottom: 4px;
background: var(--gradient-hero-text);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-subtitle {
font-family: var(--font-serif);
font-size: 1.25rem;
color: var(--gold-gilded);
font-style: italic;
margin: 0;
letter-spacing: 0.05em;
}

.hero p {
font-size: 1rem;
color: var(--text-muted);
max-width: 600px;
margin: 0 auto 24px;
font-weight: 300;
}

/* Progress Indicator */
.progress-container {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0;
flex-shrink: 0;
}

.progress-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
position: relative;
opacity: 0.4;
transition: opacity 0.3s;
}

.progress-step.active {
opacity: 1;
}

.progress-step.active .progress-circle {
background: var(--gold-gilded);
color: var(--bg-midnight);
box-shadow: 0 0 20px var(--gold-overlay-glow);
}

.progress-circle {
width: 40px;
height: 40px;
border-radius: 50%;
background: transparent;
border: 2px solid var(--text-muted);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 1.1rem;
transition: var(--transition-smooth);
}

.progress-step span {
font-size: 0.85rem;
color: var(--text-muted);
font-family: var(--font-mono);
}

.progress-step.active span {
color: var(--white-ledger);
}

.progress-line {
width: 100px;
height: 2px;
background: var(--border-medium);
margin: 0 -20px;
margin-top: -35px;
}

/* Main Interface */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
}

.machine-frame {
background: var(--surface-overlay-strong);
border: var(--border-glass);
border-radius: 24px;
padding: 4px;
box-shadow: var(--shadow-glass);
backdrop-filter: blur(20px);
margin-bottom: 40px;
flex: 1;
}

.machine-surface {
background: var(--bg-midnight);
border-radius: 20px;
padding: 32px;
min-height: 500px;
max-height: calc(100vh - 300px);
overflow-y: auto;
border: 1px solid var(--border-light);
}

/* Step Panels */
.step-panel {
display: none;
animation: fadeIn 0.4s ease;
}

.step-panel.active {
display: block;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.panel-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
border-bottom: 1px solid var(--border-medium);
padding-bottom: 20px;
margin-bottom: 30px;
}

.header-main {
flex: 1;
}

.panel-title {
font-family: var(--font-serif);
font-size: 1.8rem;
color: var(--white-ledger);
display: block;
margin-bottom: 8px;
}

.panel-subtitle {
font-size: 0.95rem;
color: var(--text-secondary);
font-weight: 300;
}

/* Help Tooltip */
.help-tooltip {
position: relative;
}

.help-icon {
width: 24px;
height: 24px;
border-radius: 50%;
border: 1px solid var(--text-muted);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
color: var(--text-muted);
cursor: help;
transition: var(--transition-smooth);
}

.help-icon:hover {
border-color: var(--gold-gilded);
color: var(--gold-gilded);
}

.tooltip-content {
position: absolute;
top: 100%;
right: 0;
margin-top: 10px;
background: var(--bg-panel);
border: 1px solid var(--gold-gilded);
border-radius: 8px;
padding: 12px 16px;
width: 250px;
font-size: 0.85rem;
line-height: 1.5;
opacity: 0;
pointer-events: none;
transform: translateY(-10px);
transition: var(--transition-smooth);
z-index: 10;
}

.help-tooltip:hover .tooltip-content {
opacity: 1;
transform: translateY(0);
pointer-events: all;
}

/* Form Elements */
.form-group {
margin-bottom: 20px;
}

.label-text {
font-family: var(--font-mono);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--gold-gilded);
opacity: 0.8;
margin-bottom: 12px;
display: block;
}

.select-box {
width: 100%;
background: var(--surface-overlay-light);
border: 1px solid var(--border-medium);
color: var(--white-ledger);
padding: 12px 14px;
font-family: var(--font-sans);
font-size: 0.95rem;
border-radius: 8px;
outline: none;
cursor: pointer;
transition: var(--transition-smooth);
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a5adba' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
padding-right: 40px;
}

.select-box:hover {
border-color: var(--gold-border-medium);
background-color: var(--surface-overlay-medium);
}

.select-box:focus {
border-color: var(--gold-gilded);
background-color: var(--surface-overlay-medium);
box-shadow: 0 0 0 2px var(--gold-overlay-light);
}

.select-box option {
background: var(--bg-panel);
color: var(--white-ledger);
padding: 8px;
}

.context-input {
width: 100%;
background: var(--surface-overlay-light);
border: 1px solid var(--border-medium);
border-radius: 8px;
padding: 14px;
color: var(--white-ledger);
font-family: var(--font-sans);
font-size: 0.95rem;
min-height: 120px;
resize: vertical;
transition: var(--transition-smooth);
}

.context-input:focus {
outline: none;
border-color: var(--gold-gilded);
background: var(--surface-overlay-medium);
}

/* Radio Groups */
.radio-group {
display: flex;
gap: 16px;
flex-wrap: wrap;
}

.radio-option {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
background: var(--surface-overlay-light);
border: 1px solid var(--border-medium);
border-radius: 8px;
cursor: pointer;
transition: var(--transition-smooth);
}

.radio-option:hover {
border-color: var(--gold-gilded);
}

.radio-option input[type="radio"] {
margin: 0;
}

.radio-option input[type="radio"]:checked + span {
color: var(--gold-gilded);
font-weight: 500;
}

/* Drop Zone */
.drop-zone-wrapper {
margin-bottom: 30px;
}

.drop-zone {
border: 2px dashed var(--border-strong);
border-radius: 12px;
padding: 30px;
text-align: center;
background: var(--surface-overlay-subtle);
transition: var(--transition-smooth);
cursor: pointer;
position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
border-color: var(--gold-gilded);
background: var(--gold-overlay-subtle);
transform: scale(1.02);
}

.drop-icon {
font-size: 2.5rem;
display: block;
margin-bottom: 16px;
}

.drop-text {
font-size: 1.1rem;
color: var(--white-ledger);
display: block;
margin-bottom: 8px;
}

.drop-sub {
font-size: 0.85rem;
color: var(--text-muted);
}

.file-list {
margin-top: 20px;
text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface-overlay-medium);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.file-item button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.file-item button:hover {
    color: var(--error-red);
}

.file-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quick Start */
.quick-start {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-top: 16px;
color: var(--text-muted);
font-size: 0.9rem;
}

.text-btn {
background: transparent;
border: none;
color: var(--gold-gilded);
cursor: pointer;
font-family: inherit;
font-size: inherit;
transition: var(--transition-smooth);
}

.text-btn:hover {
text-decoration: underline;
}

/* Preset Cards */
.preset-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 24px;
}

.preset-card {
padding: 20px;
background: var(--surface-overlay-subtle);
border: 1px solid var(--border-medium);
border-radius: 12px;
text-align: center;
cursor: pointer;
transition: var(--transition-smooth);
}

.preset-card:hover {
border-color: var(--gold-gilded);
transform: translateY(-2px);
}

.preset-card.active {
background: var(--gold-overlay-light);
border-color: var(--gold-gilded);
}

.preset-icon {
font-size: 2rem;
display: block;
margin-bottom: 12px;
}

.preset-name {
display: block;
font-weight: 500;
margin-bottom: 4px;
color: var(--white-ledger);
}

.preset-desc {
font-size: 0.85rem;
color: var(--text-muted);
}

/* Sliders */
.calibration-section {
    padding: 0 20px;
}

.slider-container {
    margin-bottom: 32px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-items: center;
}

.slider-value {
    font-family: var(--font-mono);
    color: var(--gold-gilded);
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold-overlay-light);
}

.slider-track {
    height: 6px;
    background: var(--surface-overlay-heavy);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    padding: 14px 0;
}

.slider-line {
    height: 6px;
    background: var(--surface-overlay-max);
    border-radius: 3px;
    width: 100%;
    position: relative;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-gilded));
    border-radius: 3px;
    transition: width 0.1s;
}

.slider-knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: var(--bg-midnight);
    border: 2px solid var(--gold-gilded);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--surface-overlay-intense);
    z-index: 2;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Advanced Sections */
.advanced-section {
margin-top: 30px;
}

.section-divider {
display: flex;
align-items: center;
margin: 30px 0 20px;
color: var(--text-muted);
font-size: 0.85rem;
font-family: var(--font-mono);
text-transform: uppercase;
letter-spacing: 0.1em;
}

.section-divider::before,
.section-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border-medium);
}

.section-divider span {
padding: 0 20px;
}

/* Summary Card */
.summary-card {
background: var(--surface-overlay-light);
border: 1px solid var(--border-medium);
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
}

.summary-card h3 {
font-family: var(--font-serif);
font-size: 1.3rem;
margin-bottom: 20px;
color: var(--white-ledger);
}

.summary-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}

.summary-item {
display: flex;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid var(--border-subtle);
}

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

.summary-value {
color: var(--gold-gilded);
font-family: var(--font-mono);
font-size: 0.9rem;
}

/* Format Cards */
.format-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-top: 12px;
}

.format-card {
position: relative;
cursor: pointer;
}

.format-card input[type="radio"] {
position: absolute;
opacity: 0;
}

.format-content {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background: var(--surface-overlay-subtle);
border: 1px solid var(--border-medium);
border-radius: 12px;
transition: var(--transition-smooth);
text-align: center;
}

.format-card input[type="radio"]:checked + .format-content {
background: var(--gold-overlay-light);
border-color: var(--gold-gilded);
}

.format-icon {
font-size: 1.8rem;
margin-bottom: 12px;
}

.format-name {
font-weight: 500;
margin-bottom: 4px;
color: var(--white-ledger);
}

.format-desc {
font-size: 0.85rem;
color: var(--text-muted);
}

/* Analysis Options & Privilege Toggle */

/* Brass Toggle */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-overlay-subtle);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.toggle-wrapper-header {
    margin-top: 24px;
    max-width: 380px;
    border-color: var(--gold-gilded);
    box-shadow: 0 0 24px var(--gold-overlay-glow);
}

.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background: var(--gold-overlay-strong);
    border: 1px solid var(--gold-gilded);
    border-radius: 50%;
    color: var(--gold-gilded);
    font-size: 0.75rem;
    font-style: italic;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.info-btn:hover {
    background: var(--gold-gilded);
    color: var(--bg-midnight);
    transform: scale(1.1);
}

.toggle-switch {
    width: 64px;
    height: 36px;
    background: var(--grey-subtle);
    border-radius: 36px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 4px var(--shadow-inset);
    transition: all 0.3s ease;
    border: 1px solid var(--border-medium);
}

.toggle-switch.active {
    background: var(--gold-overlay-strong);
    border-color: var(--gold-gilded);
}

.toggle-knob {
    width: 28px;
    height: 28px;
    background: var(--gradient-metallic);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.toggle-knob::after {
    /* Metallic shine */
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: var(--gradient-shine);
    opacity: 0.4;
}

.toggle-switch.active .toggle-knob {
    left: 31px;
}

.analysis-options {
    margin: 30px 0;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-overlay-subtle);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.checkbox-option:hover {
    background: var(--surface-overlay-medium);
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Action Buttons */
.step-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid var(--border-medium);
}

.next-btn,
.back-btn,
.new-btn {
padding: 14px 28px;
border: none;
border-radius: 8px;
font-family: var(--font-sans);
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition-smooth);
}

.next-btn {
background: var(--gradient-gold-btn);
color: var(--bg-midnight);
margin-left: auto;
}

.next-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px var(--gold-overlay-glow);
}

.back-btn {
background: transparent;
color: var(--text-muted);
border: 1px solid var(--border-medium);
}

.back-btn:hover {
border-color: var(--gold-gilded);
color: var(--gold-gilded);
}

.action-btn {
width: 100%;
padding: 18px;
background: var(--gradient-gold-btn);
color: var(--bg-midnight);
font-family: var(--font-mono);
font-size: 1rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
border: none;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
transition: var(--transition-smooth);
margin: 30px 0;
}

.action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 32px var(--gold-overlay-glow);
}

.action-btn:disabled {
background: var(--grey-redaction);
cursor: not-allowed;
transform: none;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--success-overlay);
    border: 1px solid var(--success-green);
    border-radius: 8px;
    color: var(--success-green);
    font-size: 0.9rem;
    margin-top: 20px;
}

.security-notice .notice-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--success-green);
    flex-shrink: 0;
}

/* Output Card */
.output-card {
background: var(--surface-overlay-light);
border: 1px solid var(--success-green);
border-radius: 12px;
padding: 24px;
margin-top: 30px;
display: none;
animation: slideUp 0.4s ease;
}

@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.output-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 16px;
border-bottom: 1px solid var(--border-medium);
margin-bottom: 16px;
}

.output-status {
color: var(--success-green);
font-weight: 500;
}

.output-time {
color: var(--text-muted);
font-size: 0.85rem;
font-family: var(--font-mono);
}

.output-preview {
margin-bottom: 20px;
color: var(--text-muted);
}

.output-actions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}

.download-btn {
background: transparent;
border: 1px solid var(--border-strong);
color: var(--white-ledger);
padding: 12px;
border-radius: 6px;
cursor: pointer;
font-family: var(--font-sans);
font-size: 0.9rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: var(--transition-smooth);
}

.download-btn:hover {
border-color: var(--gold-gilded);
color: var(--gold-gilded);
}

/* Floating Help Button */
.help-float {
position: fixed;
bottom: 30px;
right: 30px;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--gold-gilded);
color: var(--bg-midnight);
border: none;
font-size: 1.5rem;
font-weight: 600;
cursor: pointer;
box-shadow: var(--shadow-card);
transition: var(--transition-smooth);
z-index: 100;
}

.help-float:hover {
transform: scale(1.1);
box-shadow: 0 6px 24px var(--gold-overlay-glow);
}

/* Help Panel */
.help-panel {
position: fixed;
right: -400px;
top: 0;
width: 400px;
height: 100%;
background: var(--bg-panel);
border-left: 1px solid var(--border-medium);
padding: 40px;
overflow-y: auto;
transition: right 0.3s ease;
z-index: 101;
}

.help-panel.active {
right: 0;
}

.help-content h3 {
font-family: var(--font-serif);
font-size: 1.5rem;
margin-bottom: 24px;
}

.help-steps {
margin: 30px 0;
}

.help-step {
display: flex;
gap: 16px;
margin-bottom: 24px;
}

.help-num {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--gold-gilded);
color: var(--bg-midnight);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
flex-shrink: 0;
}

.help-step strong {
display: block;
margin-bottom: 4px;
color: var(--white-ledger);
}

.help-step p {
color: var(--text-muted);
font-size: 0.9rem;
line-height: 1.5;
}

.help-close {
width: 100%;
padding: 14px;
background: var(--gold-gilded);
color: var(--bg-midnight);
border: none;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: var(--transition-smooth);
}

.help-close:hover {
filter: brightness(1.1);
}

/* Privilege Guard Modal */
.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--gold-gilded);
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-content.prompt-editor-modal {
    width: 80vw;
    max-width: 80vw;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-wizard {
    overflow: hidden;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    background: var(--surface-overlay-subtle);
    border-bottom: 1px solid var(--border-medium);
    flex-shrink: 0;
    position: relative;
}

.wizard-scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-medium);
    display: none;
}

.wizard-scroll-fill {
    height: 100%;
    background: var(--gold-gilded);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 4px var(--gold-border-medium);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.wizard-step.active {
    opacity: 1;
}

.wizard-step.completed {
    opacity: 0.8;
}

.wizard-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-number {
    background: var(--gold-gilded);
    border-color: var(--gold-gilded);
    color: var(--bg-midnight);
    box-shadow: 0 0 20px var(--gold-overlay-glow);
}

.wizard-step.completed .wizard-step-number {
    background: var(--gold-overlay-strong);
    border-color: var(--gold-gilded);
    color: var(--gold-gilded);
}

.wizard-step.completed .wizard-step-number::after {
    content: '✓';
    position: absolute;
}

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

.wizard-step.active .wizard-step-label {
    color: var(--white-ledger);
}

.wizard-line {
    width: 60px;
    height: 2px;
    background: var(--border-medium);
    margin: 0 -10px;
    margin-top: -20px;
}

/* Wizard Panels */
.wizard-panel {
    display: none;
    animation: fadeInSlide 0.3s ease;
    overflow-y: auto;
    padding-bottom: 20px;
}

.wizard-panel.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.disclosure-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-gilded);
    opacity: 0.8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Key Points */
.key-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gold-overlay-subtle);
    border-left: 3px solid var(--gold-gilded);
    border-radius: 4px;
}

.point-icon {
    color: var(--gold-gilded);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Policy Cards */
.policy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.policy-card {
    background: var(--surface-overlay-subtle);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.policy-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.policy-card h4 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--gold-gilded);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.policy-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    background: var(--surface-overlay-subtle);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comparison-cell.header {
    background: var(--gold-overlay-light);
    color: var(--gold-gilded);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.cell-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.text-success {
    color: var(--success-green);
}

.text-info {
    color: var(--info-blue);
}

.badge-none {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success-overlay);
    color: var(--success-green);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-minimal {
    display: inline-block;
    padding: 4px 12px;
    background: var(--info-overlay);
    color: var(--info-blue);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Protection Features */
.protection-features {
    background: var(--surface-overlay-subtle);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.protection-features h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gold-gilded);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.protection-features ul {
    list-style: none;
    padding: 0;
}

.protection-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.protection-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-gilded);
    font-weight: 600;
}

/* Disclosure Note */
.disclosure-note {
    background: var(--info-overlay);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    font-size: 0.9rem;
}

.disclosure-note strong {
    color: var(--info-blue);
    display: block;
    margin-bottom: 8px;
}

.disclosure-highlight.success {
    background: var(--success-overlay);
    border-left-color: var(--success-green);
}

.disclosure-highlight.success strong {
    color: var(--success-green);
}

/* Acknowledgment Checkbox */
.acknowledgment-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gold-overlay-subtle);
    border: 1px solid var(--gold-border-subtle);
    border-radius: 8px;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.acknowledgment-check:hover {
    background: var(--gold-overlay-light);
    border-color: var(--gold-gilded);
}

.acknowledgment-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--gold-gilded);
}

.acknowledgment-check span {
    font-size: 0.95rem;
    color: var(--white-ledger);
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.wizard-prev,
.wizard-next,
.wizard-accept {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wizard-prev {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
}

.wizard-prev:hover {
    border-color: var(--gold-gilded);
    color: var(--gold-gilded);
}

.wizard-next {
    background: var(--gradient-gold-btn);
    color: var(--bg-midnight);
    margin-left: auto;
}

.wizard-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-overlay-glow);
}

.wizard-next:disabled,
.wizard-accept:disabled {
    background: var(--grey-redaction);
    color: var(--grey-inactive);
    cursor: not-allowed;
    transform: none;
}

.wizard-accept {
    background: var(--gradient-success-btn);
    color: white;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
}

.wizard-accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--success-overlay-hover);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--bg-panel);
}

.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white-ledger);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--gold-gilded);
    background: var(--gold-overlay-light);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--surface-overlay-medium);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-gilded);
}

.disclosure-section {
    margin-bottom: 35px;
}

.disclosure-section h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--gold-gilded);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gold-overlay-medium);
    border: 1px solid var(--gold-gilded);
    border-radius: 50%;
    font-size: 0.9rem;
}

.disclosure-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.disclosure-highlight {
    background: var(--gold-overlay-light);
    border-left: 3px solid var(--gold-gilded);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.disclosure-highlight strong {
    color: var(--gold-gilded);
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.disclosure-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.disclosure-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    line-height: 1.6;
}

.disclosure-list li:last-child {
    border-bottom: none;
}

.disclosure-list strong {
    color: var(--white-ledger);
}

.disclosure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.disclosure-item {
    background: var(--surface-overlay-subtle);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
}

.disclosure-item h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gold-gilded);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.disclosure-item p {
    font-size: 0.9rem;
    margin: 0;
}

.disclosure-disclaimer {
    background: var(--info-overlay);
    border: 1px solid var(--info-border);
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.disclosure-disclaimer strong {
    color: var(--info-blue);
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Privilege Guard Visual Elements */
.disclosure-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    color: var(--gold-gilded);
    flex-shrink: 0;
}

.disclosure-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.disclosure-highlight.success .highlight-icon {
    color: var(--success-green, #4ade80);
}

.disclosure-highlight.warning {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #fbbf24;
}

.disclosure-highlight.warning .highlight-icon {
    color: #fbbf24;
}

.disclosure-highlight.warning strong {
    color: #fbbf24;
}

/* Data Flow Diagram */
.data-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    margin: 20px 0;
    background: var(--surface-overlay-strong);
    border-radius: 12px;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-overlay-light);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    min-width: 100px;
}

.flow-node svg {
    color: var(--text-muted);
}

.flow-node span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.flow-node.client {
    border-color: var(--gold-gilded);
}

.flow-node.client svg {
    color: var(--gold-gilded);
}

.flow-node.client span {
    color: var(--gold-gilded);
}

.flow-node.google {
    border-color: rgba(66, 133, 244, 0.5);
}

.flow-node.google svg {
    color: #4285f4;
}

.flow-node.google span {
    color: #4285f4;
}

.flow-node.blocked {
    opacity: 0.5;
    border-style: dashed;
}

.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.flow-label {
    font-size: 0.65rem;
    color: var(--gold-gilded);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flow-blocked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.blocked-label {
    font-size: 0.65rem;
    color: var(--error-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Key Points with Icons */
.key-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.key-point-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Policy Cards with Icons */
.policy-card {
    text-align: center;
}

.policy-icon {
    margin-bottom: 12px;
}

/* Metadata Grid */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.metadata-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--surface-overlay-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.metadata-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.metadata-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metadata-item strong {
    font-size: 0.85rem;
    color: var(--white-ledger);
}

.metadata-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Disclosure Item Icons */
.disclosure-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disclosure-item-icon {
    margin-bottom: 4px;
}

/* Provider Flow Diagram */
.flow-providers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flow-node.openai {
    border-color: rgba(16, 163, 127, 0.5);
}

.flow-node.openai svg {
    color: #10a37f;
}

.flow-node.openai span:first-of-type {
    color: #10a37f;
}

.flow-node.anthropic {
    border-color: rgba(204, 133, 89, 0.5);
    opacity: 0.7;
}

.flow-node.anthropic svg {
    color: #cc8559;
}

.flow-node.anthropic span:first-of-type {
    color: #cc8559;
}

.provider-status {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.provider-status.active {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.provider-status.coming-soon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Provider ZDR Grid */
.provider-zdr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.provider-zdr-card {
    background: var(--surface-overlay-subtle);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-zdr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white-ledger);
    font-weight: 500;
}

.provider-zdr-header svg {
    color: var(--text-muted);
}

.provider-zdr-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.provider-zdr-features li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.provider-zdr-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gold-gilded);
    border-radius: 50%;
    flex-shrink: 0;
}

.provider-zdr-status {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
}

.provider-zdr-status.active {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.provider-zdr-status.coming-soon {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Acknowledgment Required Highlight */
.acknowledgment-check.highlight-required {
    animation: highlightPulse 0.5s ease-in-out 2;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin: -12px;
}

@keyframes highlightPulse {
    0%, 100% {
        background: rgba(251, 191, 36, 0.15);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        background: rgba(251, 191, 36, 0.25);
        box-shadow: 0 0 0 4px rgba(251, 191, 36, 0);
    }
}

/* Wizard Next Button Disabled State */
.wizard-next:disabled,
.wizard-accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    margin-top: auto;
    flex-shrink: 0;
}

.understand-btn {
    padding: 14px 40px;
    background: var(--gradient-gold-btn);
    color: var(--bg-midnight);
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.understand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-overlay-glow);
}

/* Privacy Modal */
.privacy-modal {
    max-width: 600px;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gold-gilded);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.privacy-section li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
}

.privacy-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 600;
}

.privacy-notice {
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.privacy-notice strong {
    color: var(--info-blue);
}

/* Sign In Modal */
.sign-in-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0);
    backdrop-filter: blur(0px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.sign-in-modal.active {
    opacity: 1;
    pointer-events: all;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
}

.sign-in-content {
    background: var(--bg-panel);
    border: 1px solid var(--gold-gilded);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sign-in-modal.active .sign-in-content {
    transform: translateY(0) scale(1);
}

.sign-in-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.sign-in-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--white-ledger);
    margin-bottom: 8px;
}

.sign-in-logo span {
    color: var(--gold-gilded);
}

.sign-in-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gold-gilded);
    font-style: italic;
    letter-spacing: 0.05em;
}

.sign-in-body {
    padding: 40px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.03);
}

.auth-tab.active {
    color: var(--gold-gilded);
    border-bottom-color: var(--gold-gilded);
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

.sign-in-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-gilded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    text-align: center;
}

.manual-config-info {
    margin-bottom: 24px;
}

.config-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.input-hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.config-note {
    margin-top: 24px;
    padding: 12px;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.config-note strong {
    color: var(--info-blue);
}

.email-step,
.passkey-step {
    animation: fadeInSlide 0.3s ease;
}

.passkey-step {
    display: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.email-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white-ledger);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.email-input:focus {
    outline: none;
    border-color: var(--gold-gilded);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.email-input::placeholder {
    color: rgba(165, 173, 186, 0.5);
}

.submit-btn,
.passkey-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-gilded), var(--gold-dim));
    color: var(--bg-midnight);
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 24px;
}

.submit-btn:hover:not(:disabled),
.passkey-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.submit-btn:disabled,
.passkey-btn:disabled {
    background: linear-gradient(135deg, #555, #333);
    cursor: not-allowed;
    transform: none;
}

.back-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--gold-gilded);
}

.email-display {
    text-align: center;
    padding: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    color: var(--gold-gilded);
}

.passkey-info {
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.passkey-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.status-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.status-message:not(:empty) {
    display: block;
}

.status-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.status-message.info {
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: var(--info-blue);
}

.status-message.success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: var(--success-green);
}

.sign-in-footer {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
    border-radius: 99px;
    color: var(--success-green);
    font-size: 0.85rem;
    font-weight: 500;
}

.security-badge-icon {
    font-size: 1rem;
}

/* Login Screen - Full Page */
.login-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-midnight);
    background-image: radial-gradient(circle at 50% 0%, #1a2130 0%, var(--bg-midnight) 70%);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
}

.login-screen.active {
    display: flex;
}

.login-nav {
    -webkit-app-region: drag;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.request-account-btn {
    -webkit-app-region: no-drag;
    padding: 8px 16px;
    background: transparent;
    color: var(--gold-gilded);
    border: 1px solid var(--gold-gilded);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.request-account-btn:hover {
    background: var(--gold-gilded);
    color: var(--bg-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.login-content {
    background: var(--bg-panel);
    border: 1px solid var(--gold-gilded);
    margin-top: 70px;
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.2);
    animation: loginSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    padding: 50px 40px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}

.login-logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--white-ledger);
    margin-bottom: 12px;
}

.login-logo span {
    color: var(--gold-gilded);
}

.login-tagline {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold-gilded);
    font-style: italic;
    letter-spacing: 0.05em;
}

.login-body {
    padding: 40px;
}

.login-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gold-gilded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    text-align: center;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-privacy-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Sign In Modal */
.sign-in-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0);
    backdrop-filter: blur(0px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.sign-in-modal.active {
    opacity: 1;
    pointer-events: all;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
}

.sign-in-content {
    background: var(--bg-panel);
    border: 1px solid var(--gold-gilded);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sign-in-modal.active .sign-in-content {
    transform: translateY(0) scale(1);
}

.sign-in-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.sign-in-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--white-ledger);
    margin-bottom: 8px;
}

.sign-in-logo span {
    color: var(--gold-gilded);
}

.sign-in-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gold-gilded);
    font-style: italic;
    letter-spacing: 0.05em;
}

.sign-in-body {
    padding: 40px;
}

.sign-in-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-gilded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    text-align: center;
}

.email-step,
.passkey-step {
    animation: fadeInSlide 0.3s ease;
}

.passkey-step {
    display: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.email-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white-ledger);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.email-input:focus {
    outline: none;
    border-color: var(--gold-gilded);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.email-input::placeholder {
    color: rgba(165, 173, 186, 0.5);
}

.submit-btn,
.passkey-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-gilded), var(--gold-dim));
    color: var(--bg-midnight);
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 24px;
}

.submit-btn:hover:not(:disabled),
.passkey-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.submit-btn:disabled,
.passkey-btn:disabled {
    background: linear-gradient(135deg, #555, #333);
    cursor: not-allowed;
    transform: none;
}

.back-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--gold-gilded);
}

.email-display {
    text-align: center;
    padding: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    color: var(--gold-gilded);
}

.passkey-info {
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.passkey-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.status-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.status-message:not(:empty) {
    display: block;
}

.status-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.status-message.info {
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: var(--info-blue);
}

.status-message.success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: var(--success-green);
}

.sign-in-footer {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
    border-radius: 99px;
    color: var(--success-green);
    font-size: 0.85rem;
    font-weight: 500;
}

.security-badge-icon {
    font-size: 1rem;
}

/* Account Indicator */
.account-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    color: var(--white-ledger);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.account-indicator:hover {
    border-color: var(--gold-gilded);
    background: rgba(212, 175, 55, 0.05);
}

.account-icon {
    font-size: 1rem;
}

.account-email {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Account Panel */
.account-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: var(--bg-panel);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 101;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.account-panel.active {
    right: 0;
}

.account-panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.account-panel-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white-ledger);
    margin: 0;
}

.account-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.account-close:hover {
    color: var(--gold-gilded);
    background: rgba(212, 175, 55, 0.1);
}

.account-panel-body {
    padding: 20px;
}

.account-info {
    margin-bottom: 30px;
}

.account-field {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.field-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-value {
    font-size: 0.9rem;
    color: var(--gold-gilded);
    font-family: var(--font-mono);
}

/* Usage Display */
.usage-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.usage-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-gilded);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.usage-stats {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.usage-label {
    color: var(--text-muted);
}

.usage-value {
    color: var(--white-ledger);
    font-family: var(--font-mono);
}

.usage-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-gilded));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

.account-group {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    margin-top: 20px;
}

.group-label {
    font-size: 0.85rem;
    color: var(--info-blue);
    font-family: var(--font-mono);
}

.group-name {
    font-size: 0.9rem;
    color: var(--white-ledger);
}

.account-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Preview Panel */
.preview-panel {
    position: fixed;
    right: -500px;
    top: 0;
    width: 500px;
    height: 100%;
    background: var(--bg-panel);
    border-left: 1px solid var(--gold-gilded);
    overflow: hidden;
    transition: right 0.3s ease;
    z-index: 102;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.preview-panel.active {
    right: 0;
}

.preview-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
}

.preview-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gold-gilded);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.preview-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.preview-close:hover {
    color: var(--gold-gilded);
    background: rgba(212, 175, 55, 0.1);
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.preview-content.pdf-preview-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdf-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    flex: 1;
}

.pdf-preview-fallback {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.pdf-download-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold-gilded), var(--gold-dim));
    color: var(--bg-midnight);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.pdf-download-btn span {
    font-size: 1.2rem;
}

.preview-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--white-ledger);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.preview-pdf,
.preview-binary {
    text-align: center;
    padding: 40px 20px;
}

.pdf-icon,
.file-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.preview-pdf h3,
.preview-binary h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white-ledger);
    margin-bottom: 12px;
}

.pdf-name,
.pdf-size {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pdf-note,
.preview-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Attached files hover effect for preview */
.attached-file {
    cursor: pointer;
    transition: all 0.3s ease;
}

.attached-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Footer */
@media (max-width: 1024px) {
.preset-cards {
    grid-template-columns: 1fr;
}

.machine-surface {
    padding: 24px;
}

.format-cards {
    grid-template-columns: 1fr;
}
}

.site-footer {
    padding: 60px 24px 30px;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, transparent 0%, var(--bg-shadow-run) 100%);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: var(--white-ledger);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--gold-gilded);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold-gilded);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white-ledger);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
    letter-spacing: normal;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--white-ledger);
}

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-panel,
    .preview-panel {
        width: 100%;
        right: -100%;
    }
    
    .account-panel.active,
    .preview-panel.active {
        right: 0;
    }
}

@media (max-width: 768px) {
.container {
    padding: 0 20px;
}

.hero-layout {
    flex-direction: column;
    gap: 24px;
}

.hero-title-section {
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
}

.progress-container {
    transform: scale(0.8);
    margin: 0;
    justify-content: center;
}

.progress-step span {
    font-size: 0.7rem;
}

.preset-cards,
.format-cards {
    grid-template-columns: 1fr;
}

.summary-grid {
    grid-template-columns: 1fr;
}

.output-actions {
    grid-template-columns: 1fr;
}

.radio-group {
    flex-direction: column;
}

.radio-option {
    width: 100%;
}

.step-actions {
    flex-direction: column;
    gap: 16px;
}

.next-btn,
.back-btn {
    width: 100%;
}

.help-panel {
    width: 100%;
    right: -100%;
}

.machine-surface {
    padding: 20px;
}

.drop-zone {
    padding: 30px 20px;
}

.drop-text {
    font-size: 1rem;
}

.panel-title {
    font-size: 1.4rem;
}

.modal-content {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
}

.modal-body {
    max-height: calc(100vh - 280px); /* Account for header, progress, and footer */
}

.disclosure-grid {
    grid-template-columns: 1fr;
}

.wizard-progress {
    padding: 20px;
    gap: 10px;
}

.wizard-step-label {
    display: none;
}

.wizard-line {
    width: 30px;
}

.policy-cards {
    grid-template-columns: 1fr;
}

.comparison-table {
    font-size: 0.8rem;
}

.comparison-row {
    grid-template-columns: 1fr;
}

.comparison-cell {
    padding: 12px;
}

.comparison-cell.header {
    display: none;
}

.comparison-row:first-child {
    display: none;
}

.comparison-cell:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold-gilded);
    display: block;
    margin-bottom: 4px;
}

/* Touch-friendly buttons on mobile */
.mode-btn {
    min-width: 80px;
    padding: 10px 12px;
}

.help-float {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

/* Better touch targets for sliders */
.slider-track {
    padding: 20px 0;
}

.slider-knob {
    width: 28px;
    height: 28px;
}

/* Ensure buttons are touch-friendly */
.next-btn,
.back-btn,
.action-btn,
.wizard-next,
.wizard-prev,
.wizard-accept {
    min-height: 48px;
}
}

/* ============================================
   SPECIALIZATION PAGES (.spec-* components)
   Practice area landing pages
   ============================================ */

/* Hero Section */
.spec-hero {
    padding: 240px 24px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.spec-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;
    color: var(--white-ledger);
    margin-bottom: 16px;
    line-height: 1.2;
}

.spec-punchline {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-gilded);
    margin-bottom: 20px;
}

.spec-subhead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Scenario Section - The "Cloud Way" vs "inCamera Way" */
.spec-scenario {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.spec-scenario h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white-ledger);
    text-align: center;
    margin-bottom: 16px;
}

.spec-scenario-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    padding: 20px;
    background: var(--bg-panel);
    border-radius: 12px;
    border-left: 3px solid var(--gold-gilded);
}

.spec-scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .spec-scenario-grid {
        grid-template-columns: 1fr;
    }
}

.spec-scenario-card {
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-subtle);
}

.spec-scenario-card.cloud {
    border-top: 3px solid var(--error-red);
}

.spec-scenario-card.incamera {
    border-top: 3px solid var(--success-green);
}

.spec-scenario-card h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.spec-scenario-card.cloud h3 {
    color: var(--error-red);
}

.spec-scenario-card.incamera h3 {
    color: var(--success-green);
}

.spec-scenario-card ol {
    margin: 0;
    padding-left: 20px;
}

.spec-scenario-card li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.spec-scenario-result {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-weight: 500;
}

.spec-scenario-card.cloud .spec-scenario-result {
    color: var(--error-red);
}

.spec-scenario-card.incamera .spec-scenario-result {
    color: var(--success-green);
}

/* Comparison Section (reuses existing table styles) */
.spec-comparison {
    padding: 60px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.spec-comparison h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white-ledger);
    text-align: center;
    margin-bottom: 32px;
}

/* Use Cases Grid */
.spec-usecases {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.spec-usecases h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white-ledger);
    text-align: center;
    margin-bottom: 40px;
}

.spec-usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.spec-usecase-card {
    background: var(--bg-panel);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.spec-usecase-card:hover {
    border-color: var(--gold-border-subtle);
    transform: translateY(-2px);
}

.spec-usecase-card h3 {
    font-size: 1rem;
    color: var(--white-ledger);
    margin-bottom: 8px;
}

.spec-usecase-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section (practice-specific) */
.spec-faq {
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.spec-faq h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white-ledger);
    text-align: center;
    margin-bottom: 40px;
}

.spec-faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.spec-faq-item:last-child {
    border-bottom: none;
}

.spec-faq-question {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white-ledger);
    margin-bottom: 12px;
}

.spec-faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.spec-cta {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--bg-panel));
}

.spec-cta h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--white-ledger);
    margin-bottom: 16px;
}

.spec-cta p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.spec-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gold-gilded);
    color: var(--bg-midnight);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.spec-cta-btn:hover {
    background: var(--gold-highlight);
    transform: translateY(-2px);
}

/* Solutions Hub Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.solutions-card {
    background: var(--bg-panel);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    text-decoration: none;
}

.solutions-card:hover {
    border-color: var(--gold-border-subtle);
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.solutions-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--white-ledger);
    margin-bottom: 12px;
}

.solutions-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.solutions-card-link {
    font-size: 0.9rem;
    color: var(--gold-gilded);
    font-weight: 500;
}

/* Practice area icons */
.spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gold-overlay-light);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* ═══════════════════════════════════════════════════
   EXAMPLES / ANALYSIS LIBRARY
   ═══════════════════════════════════════════════════ */

/* --- Library index grid --- */
.examples-grid {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.examples-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    background: var(--surface-overlay-light);
    border: var(--border-glass);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.examples-card:hover {
    background: var(--surface-overlay-medium);
    border-color: var(--gold-gilded);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.examples-card-type {
    display: inline-block;
    width: fit-content;
    padding: 2px 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold-gilded);
    background: var(--gold-overlay-subtle);
    border: 1px solid var(--gold-border-subtle);
    border-radius: 4px;
}

.examples-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 4px 0 0;
}

.examples-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.examples-card-link {
    font-size: 0.9rem;
    color: var(--gold-gilded);
    font-weight: 500;
}

/* --- Individual example page --- */
.example-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.example-breadcrumb a {
    color: var(--gold-gilded);
    text-decoration: none;
}

.example-breadcrumb a:hover {
    text-decoration: underline;
}

.example-viewer {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.example-viewer-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.example-tab {
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-overlay-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.example-tab:hover {
    color: var(--text-primary);
    background: var(--surface-overlay-medium);
}

.example-tab.active {
    color: var(--gold-gilded);
    background: var(--gold-overlay-subtle);
    border-color: var(--gold-border-subtle);
}

.example-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 85vh;
    min-height: 600px;
}

.example-panels.view-original .example-panel-analysis { display: none; }
.example-panels.view-original { grid-template-columns: 1fr; }

.example-panels.view-analysis .example-panel-original { display: none; }
.example-panels.view-analysis { grid-template-columns: 1fr; }

.example-panel {
    display: flex;
    flex-direction: column;
    background: var(--surface-overlay-light);
    border: var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
}

.example-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.example-panel-header h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.example-download {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-gilded);
    text-decoration: none;
}

.example-download:hover {
    text-decoration: underline;
}

.example-panel-embed {
    flex: 1;
    min-height: 0;
    position: relative;
}

.example-panel-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-panel);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .example-panels {
        grid-template-columns: 1fr;
        height: auto;
    }

    .example-panel-embed {
        height: 70vh;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }
}