/* VolkCell – visual system
   Brand match: volkcell.com editorial-laboratory palette, white panels, hairline structure.
   Font: Inter (body/UI) · Geist (brand/headings) · Geist Mono (data/provenance)
*/

:root {
    --vc-black: #142333;
    --vc-ink: #142333;
    --vc-graphite: #42545e;
    --vc-muted: #5b6a72;
    --vc-line: #dbe7ee;
    --vc-paper: #f6f9fb;
    --vc-paper-2: #eef8fc;
    --vc-white: #FFFFFF;
    --vc-accent: #143b56;
    --vc-accent-2: #2d607f;
    --vc-teal: #bfe9ff;
    --vc-teal-soft: #d8f3ff;
    --vc-accent-tint: #eef8fc;
    --vc-navy: #102a3a;
    --vc-navy-deep: #091e2b;
    --vc-warn: #4f6f95;
    --vc-shadow: 0 18px 60px rgba(20,35,51,0.13);
    --vc-shadow-hard: 0 18px 48px rgba(16,42,58,0.20);
    --vc-radius: 8px;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-heading: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-brand: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--vc-paper); }

body.vc-shell {
    color: var(--vc-ink);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 8% 0%, rgba(191,233,255,0.36), transparent 34rem),
        radial-gradient(circle at 92% 12%, rgba(45,96,127,0.13), transparent 28rem),
        linear-gradient(135deg, rgba(20,35,51,0.024) 0 1px, transparent 1px 24px),
        var(--vc-paper);
}

body.vc-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.34;
    background:
        radial-gradient(circle at 18% 24%, rgba(45,96,127,0.09) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 16%, rgba(20,59,86,0.07) 0 1px, transparent 1.5px),
        radial-gradient(circle at 54% 76%, rgba(20,35,51,0.05) 0 1px, transparent 1.5px);
    background-size: 86px 86px, 122px 122px, 154px 154px;
    mix-blend-mode: multiply;
}

.vc-main { position: relative; }

/* ===== HTMX Loading States ===== */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request .htmx-indicator-hide { display: none; }

/* ===== Selection ===== */
::selection { background-color: var(--vc-black); color: var(--vc-white); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c8d1; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #728197; }

/* ===== Typography ===== */
body,
html,
.font-sans,
p,
label,
input,
select,
textarea {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.vc-nav,
.vc-logo,
.vc-product-wordmark,
.vc-btn-primary,
.vc-btn-secondary {
    font-family: var(--font-heading) !important;
}

/* ===== Monospace elements ===== */
code, pre, .font-mono, kbd, samp {
    font-family: var(--font-mono) !important;
}

/* ===== Range Input ===== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    border-radius: 0;
    background: var(--vc-line);
    outline: none;
    transition: background 0.15s ease;
}
input[type="range"]:hover { background: #9fdaf4; }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--vc-accent);
    cursor: pointer;
    border: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(191, 233, 255, 0.45);
    transform: scale(1.1);
}
input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--vc-accent); cursor: pointer;
    border: none;
}

/* ===== Tables ===== */
table th { white-space: nowrap; }

/* ===== Focus ===== */
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
    outline: 2px solid var(--vc-black);
    outline-offset: 1px;
    box-shadow: none;
}

/* ===== Animations (matching volkcell.com fade style) ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes vcReveal {
    from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes vcScanline {
    0% { transform: translateY(-18%); opacity: 0; }
    20%, 70% { opacity: 0.35; }
    100% { transform: translateY(118%); opacity: 0; }
}
@keyframes vcPulseDot {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.7); opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.65s ease;
}
.animate-fade-in {
    animation: fadeIn 0.3s ease;
}
.animate-scale-in {
    animation: scaleIn 0.25s ease;
}

/* ===== Progress shimmer ===== */
.progress-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== Card hover lift ===== */
.card-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
}

/* ===== Stat numbers stagger ===== */
.stat-number {
    animation: fadeInUp 0.5s ease backwards;
}
.stat-number:nth-child(2) { animation-delay: 0.08s; }
.stat-number:nth-child(3) { animation-delay: 0.16s; }

/* ===== Clean shadow (matching volkcell.com minimal look) ===== */
.shadow-premium {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.03);
}
.shadow-premium-lg {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ===== Image comparison slider ===== */
.compare-slider {
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
}

/* ===== Auth Modal (legacy class, kept for any straggler usage) ===== */
.auth-modal {
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
}

/* PR M — rebuilt sign-in gate. Hard-edged hairline modal with editorial
   chrome instead of a stock card.

   - vc-auth-overlay: layered backdrop (warm paper gradient + dot grid +
     blur). Reads as the page behind the gate, not a black scrim.
   - vc-auth-modal: square hairline panel with a heavy bottom shadow and
     a 2px black top accent rule (vc-auth-rule).
   - vc-auth-foot: subtle bottom strip that mirrors the page footer tone. */
/* ── Two-column auth page ── */
.vc-auth-fullscreen {
    height: 100dvh;
    overflow: hidden;
    background: var(--vc-white);
}
.vc-auth-hero {
    display: none;
    width: 50%;
    flex-direction: column;
    background:
        linear-gradient(160deg, var(--vc-navy-deep) 0%, var(--vc-accent) 50%, var(--vc-accent-2) 100%);
}
@media (min-width: 1024px) {
    .vc-auth-hero { display: flex; }
    .vc-auth-form-col { width: 50%; }
    .vc-auth-mobile-brand { display: none; }
    .vc-auth-hero-heading { font-size: 3rem; }
}
@media (min-width: 1280px) {
    .vc-auth-hero-heading { font-size: 3.5rem; }
}
.vc-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(191,233,255,0.12), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
}
.vc-auth-hero-heading { font-family: var(--font-heading); }
.vc-auth-form-col {
    position: relative;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.vc-auth-form-shell {
    box-sizing: border-box;
    min-height: 100%;
}
.vc-auth-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
}
body.vc-auth-open { overflow: hidden; }
.vc-auth-title { font-family: 'Syne', system-ui, sans-serif; }
.vc-auth-title em {
    font-style: italic;
    background-image: linear-gradient(0deg, var(--vc-black) 0 2px, transparent 2px);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 100%;
    padding-bottom: 2px;
}
.vc-auth-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #5b6a72;
    margin-bottom: 0.5rem;
}
.vc-auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #dbe7ee;
    color: var(--vc-black);
    background: var(--vc-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.vc-auth-input::placeholder { color: #9ca3af; }
.vc-auth-input:focus {
    outline: none;
    border-color: var(--vc-black);
    box-shadow: 0 0 0 1px var(--vc-black);
}
.vc-auth-submit { letter-spacing: 0.18em; }

/* ===== Alpine.js ===== */
[x-cloak] { display: none !important; }
[x-show]  { will-change: opacity, transform; }

/* ===== Volkcell.com-style outline buttons ===== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--vc-line);
    border-radius: 6px;
    background: var(--vc-white);
    color: var(--vc-ink);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-outline:hover {
    border-color: rgba(45, 96, 127, 0.46);
    color: var(--vc-accent);
}
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--vc-teal);
    border-radius: 6px;
    background: var(--vc-teal);
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-solid:hover {
    background: var(--vc-teal-soft);
    border-color: var(--vc-teal-soft);
}

/* ===== Section themes (matching volkcell.com) ===== */
.section-black {
    background: var(--vc-navy);
    color: #fafafa;
}
.section-white {
    background: var(--vc-paper);
    color: var(--vc-ink);
}
.section-dark-bold {
    background: var(--vc-navy-deep);
    color: #fafafa;
}

/* ===== Tailwind palette compatibility layer
   tailwind.generated.css is prebuilt in this repo. These overrides keep
   existing template utility classes aligned with the VolkCell website
   palette without requiring a Node/Tailwind rebuild. */
.bg-brand-50 { background-color: #eef8fc !important; }
.bg-brand-100 { background-color: #d8f3ff !important; }
.bg-brand-200 { background-color: #bfe9ff !important; }
.bg-brand-300 { background-color: #9fdaf4 !important; }
.bg-brand-400 { background-color: #75bde0 !important; }
.bg-brand-500 { background-color: #4f6f95 !important; }
.bg-brand-600 { background-color: #2d607f !important; }
.bg-brand-700 { background-color: #1f4e68 !important; }
.bg-brand-800 { background-color: #143b56 !important; }
.bg-brand-900 { background-color: #102a3a !important; }
.bg-brand-950 { background-color: #091e2b !important; }
.bg-brand-700\/60 { background-color: rgb(31 78 104 / 0.60) !important; }
.bg-brand-800\/85 { background-color: rgb(20 59 86 / 0.85) !important; }
.bg-brand-950\/70 { background-color: rgb(9 30 43 / 0.70) !important; }
.text-brand-50 { color: #eef8fc !important; }
.text-brand-100 { color: #d8f3ff !important; }
.text-brand-200 { color: #bfe9ff !important; }
.text-brand-300 { color: #9fdaf4 !important; }
.text-brand-400 { color: #75bde0 !important; }
.text-brand-500 { color: #4f6f95 !important; }
.text-brand-600 { color: #2d607f !important; }
.text-brand-700 { color: #1f4e68 !important; }
.text-brand-800 { color: #143b56 !important; }
.text-brand-900 { color: #102a3a !important; }
.border-brand-100 { border-color: #d8f3ff !important; }
.border-brand-200 { border-color: #bfe9ff !important; }
.border-brand-300 { border-color: #9fdaf4 !important; }
.border-brand-500 { border-color: #4f6f95 !important; }
.border-brand-600 { border-color: #2d607f !important; }
.ring-brand-200 { --tw-ring-color: #bfe9ff !important; }
.ring-brand-400 { --tw-ring-color: #75bde0 !important; }
.ring-brand-500 { --tw-ring-color: #4f6f95 !important; }
.ring-brand-600 { --tw-ring-color: #2d607f !important; }
.accent-brand-600 { accent-color: #2d607f !important; }
.hover\:bg-brand-50:hover { background-color: #eef8fc !important; }
.hover\:bg-brand-600:hover { background-color: #2d607f !important; }
.hover\:bg-brand-700:hover { background-color: #1f4e68 !important; }
.hover\:bg-brand-800:hover { background-color: #143b56 !important; }
.hover\:text-brand-600:hover { color: #2d607f !important; }
.hover\:text-brand-800:hover { color: #143b56 !important; }
.hover\:ring-brand-400:hover { --tw-ring-color: #75bde0 !important; }
.focus\:border-brand-500:focus { border-color: #4f6f95 !important; }
.focus\:ring-brand-500:focus { --tw-ring-color: #4f6f95 !important; }
.from-brand-900\/30 { --tw-gradient-from: rgb(16 42 58 / 0.30) var(--tw-gradient-from-position) !important; }

.bg-surface-50 { background-color: #f6f9fb !important; }
.bg-surface-100 { background-color: #eef8fc !important; }
.bg-surface-200 { background-color: #dbe7ee !important; }
.bg-surface-300 { background-color: #c9d8e1 !important; }
.bg-surface-800 { background-color: #142333 !important; }
.bg-surface-900 { background-color: #102a3a !important; }
.text-surface-300 { color: #c9d8e1 !important; }
.text-surface-400 { color: #8aa0ad !important; }
.text-surface-500 { color: #5b6a72 !important; }
.text-surface-600 { color: #42545e !important; }
.text-surface-700 { color: #2c3d48 !important; }
.text-surface-800 { color: #142333 !important; }
.text-surface-900 { color: #102a3a !important; }
.border-surface-100 { border-color: #eef8fc !important; }
.border-surface-200 { border-color: #dbe7ee !important; }
.border-surface-300 { border-color: #c9d8e1 !important; }
.ring-surface-100 { --tw-ring-color: #eef8fc !important; }
.ring-surface-200 { --tw-ring-color: #dbe7ee !important; }
.hover\:bg-surface-50:hover { background-color: #f6f9fb !important; }
.hover\:bg-surface-100:hover { background-color: #eef8fc !important; }
.hover\:bg-surface-800:hover { background-color: #142333 !important; }
.hover\:text-surface-600:hover { color: #42545e !important; }
.hover\:text-surface-700:hover { color: #2c3d48 !important; }
.hover\:text-surface-800:hover { color: #142333 !important; }
.active\:bg-surface-900:active { background-color: #102a3a !important; }
.text-white\/62 { color: rgb(255 255 255 / 0.72) !important; }

.vc-nav .bg-black {
    background: #ffffff !important;
    color: #11211e !important;
}
.vc-nav .bg-black:hover {
    background: rgba(255,255,255,0.88) !important;
}


/* ===== Premium VolkCell surface language ===== */
.vc-reveal { animation: vcReveal 0.75s cubic-bezier(.17,.84,.28,1) backwards; }
.vc-nav {
    border-bottom: 0;
    background: transparent !important;
    padding: 8px 0;
}
.vc-nav > div {
    border: 1px solid rgba(191, 233, 255, 0.30);
    border-radius: var(--vc-radius);
    background: rgba(16, 42, 58, 0.86);
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}
.vc-nav-frame {
    margin-inline: 0.75rem;
    padding-inline: clamp(0.85rem, 1.5vw, 1.35rem);
}
.vc-logo {
    letter-spacing: 0;
    position: relative;
}
.vc-logo::after { content: none; }
.vc-brand-lockup {
    gap: 0;
    color: inherit;
    min-width: max-content;
}
.vc-nav-row {
    column-gap: clamp(0.9rem, 1.4vw, 1.5rem);
    justify-content: flex-start;
    width: 100%;
    row-gap: 0.75rem;
    padding-block: 0.75rem !important;
    position: relative;
}
.vc-nav-links {
    column-gap: clamp(0.25rem, 0.8vw, 0.5rem);
    flex: 1 1 0;
    justify-content: flex-end;
    min-width: 0;
    row-gap: 0.35rem;
}
.vc-nav-account {
    column-gap: 1rem;
    min-width: max-content;
}
.vc-nav-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 233, 255, 0.28);
    border-radius: 6px;
    color: inherit;
    background: transparent;
}
.vc-nav-menu-toggle svg { width: 20px; height: 20px; }
.vc-ribbon-divider {
    color: rgba(191, 233, 255, 0.42);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}
.vc-product-wordmark {
    color: currentColor !important;
    font-family: var(--font-brand) !important;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1;
    text-transform: none;
}
.vc-brand-byline {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.50);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.vc-nav-link {
    position: relative;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 10px !important;
    border-radius: 6px;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.78) !important;
}
.vc-nav-link::after {
    content: none;
}
.vc-nav-link:hover,
.vc-nav-link:focus-visible,
.vc-nav-link[aria-current="page"],
.vc-nav-link.is-active {
    color: #fff !important;
    background: rgba(191, 233, 255, 0.14);
}
.vc-nav .text-black,
.vc-nav .text-surface-600,
.vc-nav .hover\:text-black:hover {
    color: inherit !important;
}

@media (max-width: 980px) {
    .vc-nav-links {
        display: none;
        position: absolute;
        z-index: 60;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.65rem;
        border: 1px solid var(--vc-line);
        border-radius: var(--vc-radius);
        background: var(--card, #10151c);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    }
    .vc-nav-links.is-open { display: flex; }
    .vc-nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding-inline: 0.85rem !important;
    }
    .vc-nav-account {
        margin-left: auto;
    }
    .vc-nav-menu-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
    .vc-nav-frame {
        margin-inline: 0.35rem;
        padding-inline: 0.35rem;
    }
    .vc-nav > div { padding-inline: 0.75rem !important; }
    .vc-nav-row { column-gap: 0.5rem; }
    .vc-nav .vc-product-wordmark { font-size: 1.05rem !important; }
    .vc-nav .vc-brand-byline { display: none; }
    .vc-nav-account button { padding-inline: 0.75rem !important; }
    .vc-auth-form-shell { align-items: flex-start !important; padding: 2.5rem 1.5rem !important; }
    .vc-auth-form-shell .grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
}

/* PR K — Identity chip + keyboard kbd hint.
   Sits on the right of the top bar, gives the profile-affordance a
   sidebar avatar normally provides — without the sidebar overhead.
   The square initials block deliberately mirrors the black VolkCell
   logo lockup so the chip reads as part of the wordmark system. */
.vc-identity-chip {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.vc-identity-square {
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
    line-height: 1;
    /* Subtle press response — under 4px so it never feels like a
       toy button. */
    transition: transform 160ms ease;
}
.vc-identity-chip:active .vc-identity-square { transform: translateY(1px); }
.vc-identity-menu {
    border-color: var(--vc-line) !important;
    border-radius: var(--vc-radius);
    color: var(--vc-ink);
    box-shadow: 0 18px 48px rgba(16,42,58,0.20);
    /* Fine top hairline overlaps the nav's bottom border for a single
       seam, not a doubled-up line. */
    margin-top: -1px;
}
/* PR L — 404 numeral. Big Syne mark beside a hairline rule. */
.vc-404-numeral {
    font-family: 'Syne', system-ui, sans-serif;
    /* Faint extruded shadow gives the digit weight without making it
       a colour-heavy block — keeps the grayscale discipline. */
    text-shadow: 1px 1px 0 rgba(35,40,47,0.04);
}

.vc-identity-menu kbd.vc-kbd,
.vc-kbd {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    background: var(--vc-white);
    border: 1px solid rgba(35,40,47,0.18);
    border-bottom-width: 2px;
    border-radius: 3px;
    font-family: 'Syne Mono', ui-monospace, monospace;
    font-size: 10px;
    color: var(--vc-ink);
    line-height: 1.4;
    vertical-align: baseline;
}

.vc-hero {
    background:
        linear-gradient(90deg, rgba(9,30,43,0.96) 0%, rgba(9,30,43,0.80) 44%, rgba(9,30,43,0.45) 100%),
        linear-gradient(0deg, rgba(9,30,43,0.92) 0%, rgba(9,30,43,0.35) 42%, rgba(9,30,43,0.60) 100%),
        var(--vc-navy) !important;
    isolation: isolate;
}
.vc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(191,233,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191,233,255,0.04) 1px, transparent 1px),
        radial-gradient(circle at center, transparent 0 35%, rgba(9,30,43,0.82) 100%);
    background-size: 52px 52px, 52px 52px, auto;
    opacity: 0.72;
}
.vc-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -30%;
    height: 28%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.11), transparent);
    animation: vcScanline 7s ease-in-out infinite;
}
.vc-hero > .relative { z-index: 3; }
.vc-hero-kicker { color: rgba(255,255,255,0.76) !important; text-shadow: none; }
.vc-hero-title {
    letter-spacing: 0.04em;
    text-wrap: balance;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.vc-hero-title em { font-style: normal; color: #fff; text-decoration: none; }
.vc-metric-card,
.vc-panel,
.vc-workflow-card {
    position: relative;
    border: 1px solid var(--vc-line) !important;
    border-radius: var(--vc-radius);
    background: var(--vc-white) !important;
    box-shadow: var(--vc-shadow);
}
.vc-panel::before,
.vc-workflow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(191,233,255,0.16), transparent 34%, rgba(20,59,86,0.025));
}
.vc-panel > *, .vc-workflow-card > * { position: relative; }
.vc-workflow-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.vc-workflow-card::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--vc-accent);
    transform: scaleY(0.22);
    transform-origin: top;
    transition: transform 0.22s ease;
}
.vc-workflow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 96, 127, 0.46) !important;
    box-shadow: var(--vc-shadow), var(--vc-shadow-hard);
}
.vc-workflow-card:hover::after { transform: scaleY(1); }
.vc-section-label { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--vc-muted) !important; }
.vc-section-label::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid var(--vc-accent);
    background: var(--vc-accent-tint);
    box-shadow: none;
}
.vc-btn-primary,
.vc-btn-secondary { position: relative; overflow: hidden; transform: translateZ(0); }
.vc-btn-primary::before,
.vc-btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
    transition: transform 0.55s ease;
}
.vc-btn-primary:hover::before,
.vc-btn-secondary:hover::before { transform: translateX(110%) skewX(-18deg); }
.vc-btn-primary {
    background: var(--vc-teal) !important;
    color: #111827 !important;
    border-color: var(--vc-teal) !important;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(20,35,51,0.10);
}
.vc-btn-primary:hover {
    background: var(--vc-teal-soft) !important;
    border-color: var(--vc-teal-soft) !important;
}
.vc-btn-secondary {
    border-color: rgba(255,255,255,0.34) !important;
    border-radius: 6px;
}
.vc-btn-primary > *, .vc-btn-secondary > * { position: relative; }
.vc-upload-card { box-shadow: var(--vc-shadow); }
.vc-dropzone {
    background:
        radial-gradient(circle at 28% 22%, rgba(191,233,255,0.22), transparent 11rem),
        linear-gradient(135deg, rgba(20,35,51,0.025) 0 1px, transparent 1px 20px),
        rgba(255,255,255,0.84) !important;
}
.vc-trust-strip { background: var(--vc-white) !important; backdrop-filter: blur(10px); }
.vc-trust-icon { background: var(--vc-accent-tint) !important; color: var(--vc-accent) !important; border-radius: 6px !important; }
.vc-footer {
    background: var(--vc-paper) !important;
    color: var(--vc-muted) !important;
    border-top: 1px solid var(--vc-line);
    position: relative;
    overflow: hidden;
}
.vc-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(191,233,255,0.22), transparent 24rem),
        linear-gradient(rgba(20,35,51,0.035) 1px, transparent 1px);
    background-size: auto, 100% 42px;
    pointer-events: none;
}
.vc-footer > * { position: relative; }
.vc-footer .vc-product-wordmark,
.vc-footer .vc-brand-byline,
.vc-footer a,
.vc-footer p {
    color: var(--vc-muted) !important;
}
.vc-footer .vc-product-wordmark {
    color: var(--vc-ink) !important;
}
.vc-footer .vc-brand-byline {
    border-left-color: var(--vc-line);
}
.vc-footer a:hover {
    color: var(--vc-accent) !important;
}
.vc-footer .border-white\/10 {
    border-color: var(--vc-line) !important;
}
.vc-footer-primary-links {
    flex-wrap: wrap;
    justify-content: center;
}
.vc-footer-legal { column-gap: 0; }

@media (max-width: 760px) {
    .vc-footer-primary-links {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1.5rem !important;
        text-align: center;
    }
    .vc-footer-primary-links a { min-height: 36px; display: grid; place-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===== VolkCell website palette pass ===== */
.vc-lab-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.vc-hero-copy { text-align: left; }
.vc-hero-rule { margin-left: 0 !important; }
.vc-hero-proof-grid { max-width: none !important; }
.vc-hero .vc-metric-card {
    background: rgba(16,42,58,0.68) !important;
    border-color: rgba(191,233,255,0.26) !important;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vc-hero .vc-metric-card p:first-child { color: rgba(255,255,255,0.72) !important; }
.vc-hero .vc-metric-card p:last-child { color: #fff !important; }
.vc-instrument-panel {
    position: relative;
    min-height: 28rem;
    border: 1px solid rgba(191,233,255,0.28);
    border-radius: var(--vc-radius);
    background:
        linear-gradient(135deg, rgba(191,233,255,0.18), rgba(255,255,255,0.06)),
        rgba(255,255,255,0.08);
    box-shadow: 0 38px 100px -48px rgba(0,0,0,0.9);
    overflow: hidden;
}
.vc-instrument-panel::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(191,233,255,0.14);
    pointer-events: none;
}
.vc-instrument-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(191,233,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191,233,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at 55% 42%, black, transparent 72%);
    pointer-events: none;
}
.vc-specimen-window {
    position: absolute;
    inset: 3.5rem 3rem 8.5rem 3rem;
    border: 1px solid rgba(191,233,255,0.24);
    border-radius: var(--vc-radius);
    background:
        radial-gradient(circle at 42% 42%, rgba(255,255,255,0.12) 0 0.28rem, transparent 0.32rem),
        radial-gradient(circle at 62% 58%, rgba(255,255,255,0.10) 0 0.22rem, transparent 0.28rem),
        radial-gradient(circle at 54% 46%, rgba(255,255,255,0.08) 0 0.18rem, transparent 0.25rem),
        rgba(255,255,255,0.045);
    background-size: 62px 62px, 84px 84px, 48px 48px, auto;
}
.vc-specimen-window > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: saturate(0.78) contrast(1.18) brightness(0.92);
    mix-blend-mode: screen;
}
.vc-reticle {
    position: absolute;
    inset: 22%;
    border: 1px solid rgba(255,255,255,0.40);
}
.vc-reticle::before,
.vc-reticle::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.36);
}
.vc-reticle::before { left: 50%; top: -22%; bottom: -22%; width: 1px; }
.vc-reticle::after { top: 50%; left: -22%; right: -22%; height: 1px; }
.vc-instrument-readout {
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.vc-readout-cell {
    border-top: 1px solid rgba(255,255,255,0.24);
    padding-top: 0.85rem;
}
.vc-readout-label {
    color: rgba(255,255,255,0.42);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.vc-readout-value {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.35rem);
    letter-spacing: -0.08em;
    line-height: 1;
}
.vc-page-band {
    margin-top: -1px;
    border-top: 1px solid var(--vc-line);
    border-bottom: 1px solid var(--vc-line);
    background:
        linear-gradient(90deg, rgba(20,35,51,0.03) 1px, transparent 1px),
        rgba(246,249,251,0.86);
    background-size: 42px 42px;
}
.vc-workflow-card {
    min-height: 12.5rem;
    padding: 1.6rem !important;
}
.vc-workflow-card h2,
.vc-workflow-card .font-semibold.text-surface-900 { letter-spacing: 0; }
.vc-panel { box-shadow: var(--vc-shadow); }
.vc-trust-strip { background: #FFFFFF !important; color: var(--vc-ink); }
.vc-trust-strip p { color: inherit; }
.vc-trust-strip .text-surface-900 { color: var(--vc-ink) !important; }
.vc-trust-strip .text-surface-500 { color: var(--vc-muted) !important; }
.vc-trust-icon { border: 1px solid rgba(45,96,127,0.24); background: var(--vc-accent-tint) !important; color: var(--vc-accent) !important; border-radius: 6px !important; }
.vc-upload-card { transform: none; }

@media (max-width: 900px) {
    .vc-lab-hero-grid { grid-template-columns: 1fr; }
    .vc-hero-copy { text-align: center; }
    .vc-hero-rule { margin-left: auto !important; }
    .vc-instrument-panel { min-height: 22rem; }
    .vc-specimen-window { inset: 2rem 2rem 7rem 2rem; }
    .vc-instrument-readout { left: 2rem; right: 2rem; bottom: 2rem; }
}

/* ============================================================
   PR J — Personalised welcome banner + quick-access deck.
   The first authenticated paint. Sits above the marketing hero
   so a returning user lands on their workspace, not a pitch.
   ============================================================ */

.vc-welcome {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid rgba(35,40,47,0.07);
    background:
        radial-gradient(circle at 6% 0%, rgba(35,40,47,0.06), transparent 38rem),
        radial-gradient(circle at 96% 18%, rgba(193,200,209,0.32), transparent 30rem),
        linear-gradient(180deg, #FFFFFF 0%, var(--vc-paper) 100%);
    overflow: hidden;
}

/* A near-invisible film grain texture for atmosphere — sub-1% perceptual
   noise. Avoids the flat-card-on-flat-page look without screaming SaaS
   gradient. Uses a fine SVG noise so no asset hop. */
.vc-welcome-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.09 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
.vc-welcome-inner { position: relative; z-index: 1; }

.vc-welcome-title { font-family: 'Syne', system-ui, sans-serif; }
.vc-welcome-name {
    /* A subtle handwritten-italic accent on the user's name, anchored by
       a 2px black underline that gives the greeting personality without
       relying on colour — keeps the brand grayscale honest. */
    font-style: italic;
    background-image: linear-gradient(0deg, var(--vc-black) 0 2px, transparent 2px);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 100%;
    padding-bottom: 2px;
}

.vc-welcome-readout {
    border: 1px solid rgba(35,40,47,0.12);
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vc-readout-stat dt { font-family: 'Syne Mono', ui-monospace, monospace; }
.vc-readout-stat dd { font-family: 'Syne Mono', ui-monospace, monospace; letter-spacing: -0.02em; }

/* Quick-access workflow cards — black hairline border, white surface,
   pull a 1px micro-grid on hover so the card feels like it's "wired in"
   to the lab grid background. The arrow nudges right on hover; the
   border darkens to true black. */
.vc-quick-card {
    border-radius: 0;
    transform: translateZ(0);
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
    background-image: linear-gradient(0deg, rgba(35,40,47,0.02) 0 1px, transparent 1px 64px);
    background-size: 100% 64px;
}
.vc-quick-card:hover {
    border-color: var(--vc-black);
    box-shadow: var(--vc-shadow-hard);
    transform: translateY(-2px);
}
.vc-quick-card .vc-quick-arrow { transition: transform 220ms ease, color 220ms ease; }
.vc-quick-card:hover .vc-quick-arrow { transform: translate(2px, -2px); }
.vc-quick-title { font-family: 'Syne', system-ui, sans-serif; }

/* Recent activity feed — clean rows, no card chrome, a thin underline on
   the top so it reads as a section, not a duplicate card. */
.vc-activity-list { box-shadow: var(--vc-shadow); }
.vc-activity-row a { font-family: 'Syne', system-ui, sans-serif; }
.vc-activity-row:first-child a { border-top: 0; }

@media (max-width: 720px) {
    .vc-welcome-readout { grid-template-columns: repeat(3, 1fr); width: 100%; }
    .vc-welcome-header { align-items: flex-start; }
}

/* ===== Guided tour (Driver.js) — themed to the vc- editorial aesthetic =====
   Square hairline popover, Syne display title, black/paper palette, square
   buttons. Overrides Driver.js defaults so the tour doesn't look like a
   generic third-party widget. */
.vc-tour-popover.driver-popover {
    background: var(--vc-paper);
    color: var(--vc-ink);
    border: 1px solid var(--vc-black);
    border-radius: 0;
    box-shadow: 6px 6px 0 rgba(14, 14, 14, 0.12);
    max-width: 320px;
    padding: 18px 18px 14px;
}
.vc-tour-popover .driver-popover-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--vc-black);
    letter-spacing: -0.01em;
}
.vc-tour-popover .driver-popover-description {
    color: var(--vc-accent-2);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 6px;
}
.vc-tour-popover .driver-popover-progress-text {
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    color: var(--vc-accent-2);
    letter-spacing: 0.04em;
}
.vc-tour-popover .driver-popover-navigation-btns button {
    background: var(--vc-black);
    color: #fff;
    border-radius: 0;
    border: 1px solid var(--vc-black);
    text-shadow: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 12px;
}
.vc-tour-popover .driver-popover-navigation-btns button:hover {
    background: var(--vc-ink);
}
.vc-tour-popover .driver-popover-prev-btn {
    background: transparent !important;
    color: var(--vc-ink) !important;
}
.vc-tour-popover .driver-popover-close-btn { color: var(--vc-accent-2); }
.vc-tour-popover .driver-popover-arrow { border-color: var(--vc-black); }

/* ===== Guided-tour opt-in invite (first-run, dismissible) ===== */
.vc-tour-invite {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--vc-paper);
    border: 1px solid var(--vc-black);
    box-shadow: 6px 6px 0 rgba(14, 14, 14, 0.12);
    padding: 16px 16px 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.vc-tour-invite.is-visible { opacity: 1; transform: translateY(0); }
.vc-tour-invite-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--vc-black);
}
.vc-tour-invite-body {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--vc-accent-2);
    margin-top: 4px;
}
.vc-tour-invite-actions { display: flex; gap: 8px; margin-top: 12px; }
.vc-tour-invite-yes {
    background: var(--vc-black);
    color: #fff;
    border: 1px solid var(--vc-black);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    cursor: pointer;
}
.vc-tour-invite-yes:hover { background: var(--vc-ink); }
.vc-tour-invite-no {
    background: transparent;
    color: var(--vc-accent-2);
    border: 1px solid var(--vc-line);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    cursor: pointer;
}
.vc-tour-invite-no:hover { color: var(--vc-black); border-color: var(--vc-black); }
@media (prefers-reduced-motion: reduce) {
    .vc-tour-invite { transition: none; }
}

/* ===== Sidebar Navigation (authenticated layout) ===== */
.vc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 215px;
    background: var(--vc-white);
    border-right: 1px solid var(--vc-line);
    display: flex;
    flex-direction: column;
    z-index: 40;
    overflow: visible;
}
.vc-sidebar-logo { padding: 20px 16px 8px; }
.vc-sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--vc-ink);
}
.vc-sidebar-logo-badge {
    width: 30px;
    height: 30px;
    background: #090c11;
    color: #34cfe6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px #222c38;
}
.vc-sidebar-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.vc-sidebar-section-label {
    padding: 18px 18px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--vc-muted);
}
.vc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.vc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--vc-radius);
    font-family: var(--font-body) !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--vc-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.vc-sidebar-link:hover {
    background: var(--vc-paper);
    color: var(--vc-ink);
}
.vc-sidebar-link.is-active {
    background: var(--vc-paper-2);
    color: var(--vc-accent);
    font-weight: 600;
}
.vc-sidebar-link svg { flex-shrink: 0; opacity: 0.7; }
.vc-sidebar-link.is-active svg { opacity: 1; }
.vc-sidebar-footer {
    position: relative;
    padding: 10px 10px 14px;
    border-top: 1px solid var(--vc-line);
    margin-top: auto;
}
.vc-sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border-radius: var(--vc-radius);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    text-align: left;
    font-family: var(--font-body);
}
.vc-sidebar-user:hover { background: var(--vc-paper); }
.vc-sidebar-avatar {
    width: 30px;
    height: 30px;
    background: var(--vc-accent);
    color: var(--vc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}
.vc-sidebar-user-info { flex: 1; min-width: 0; }
.vc-sidebar-user-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vc-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vc-sidebar-user-chevron {
    flex-shrink: 0;
    color: var(--vc-muted);
    transition: transform 0.2s;
}
.vc-sidebar-user-chevron.is-open { transform: rotate(180deg); }
/* Opens upwards over the sidebar: in the footer's flow it pushed "Sign out" below
   the bottom of a 722px-tall window, where it could not be reached (2026-10-13). */
.vc-sidebar-user-menu {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(100% - 6px);
    z-index: 40;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 4px 0;
    background: var(--vc-white);
    border: 1px solid var(--vc-line);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
}
.vc-sidebar-menu-item {
    display: block;
    width: 100%;
    padding: 7px 14px;
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--vc-muted);
    text-decoration: none;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.vc-sidebar-menu-item:hover {
    background: var(--vc-paper);
    color: var(--vc-ink);
}
.vc-sidebar-menu-item--danger { color: #b91c1c; }
.vc-sidebar-menu-item--danger:hover { background: #fef2f2; color: #991b1b; }
.vc-sidebar-menu-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--vc-line);
}
.vc-sidebar-theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 7px 8px;
    border-radius: var(--vc-radius);
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--vc-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.vc-sidebar-theme-toggle:hover {
    background: var(--vc-paper);
    color: var(--vc-ink);
}
.vc-sidebar-theme-toggle .vc-theme-icon-moon { display: none; }
[data-theme="dark"] .vc-sidebar-theme-toggle .vc-theme-icon-sun { display: none; }
[data-theme="dark"] .vc-sidebar-theme-toggle .vc-theme-icon-moon { display: block; }

/* ===== Topbar (authenticated) ===== */
.vc-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(246, 249, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vc-line);
}
.vc-topbar-left { display: flex; align-items: center; gap: 12px; }
.vc-topbar-right { display: flex; align-items: center; gap: 16px; }
.vc-topbar-breadcrumb {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--vc-muted);
}
.vc-topbar-sep { margin: 0 6px; color: var(--vc-line); }

/* ===== Sidebar collapse toggle ===== */
.vc-sidebar-collapse {
    position: absolute;
    top: 24px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vc-white);
    border: 1px solid var(--vc-line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--vc-muted);
    z-index: 41;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s, color 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 0;
}
.vc-sidebar:hover .vc-sidebar-collapse,
.vc-sidebar-collapse:focus-visible { opacity: 1; }
.vc-sidebar-collapse:hover { background: var(--vc-paper); color: var(--vc-ink); }
.vc-sidebar-collapse svg { transition: transform 0.25s; }
.sidebar-collapsed .vc-sidebar-collapse svg { transform: rotate(180deg); }
.sidebar-collapsed .vc-sidebar-collapse { opacity: 1; }

/* ===== Sidebar collapsed state ===== */
.vc-sidebar { transition: width 0.25s cubic-bezier(.4,0,.2,1); }
.sidebar-collapsed .vc-sidebar { width: 56px; }
.sidebar-collapsed .vc-sidebar-logo { padding: 20px 13px 8px; }
.sidebar-collapsed .vc-sidebar-logo-text,
.sidebar-collapsed .vc-sidebar-section-label { opacity: 0; width: 0; overflow: hidden; white-space: nowrap; }
.sidebar-collapsed .vc-sidebar-nav { padding: 4px 6px; }
.sidebar-collapsed .vc-sidebar-link {
    justify-content: center;
    padding: 9px;
    gap: 0;
}
.sidebar-collapsed .vc-sidebar-link span { display: none; }
.sidebar-collapsed .vc-sidebar-footer { padding: 10px 6px 14px; }
.sidebar-collapsed .vc-sidebar-user { padding: 8px; justify-content: center; }
.sidebar-collapsed .vc-sidebar-user-info,
.sidebar-collapsed .vc-sidebar-user-chevron { display: none; }
.sidebar-collapsed .vc-sidebar-theme-toggle {
    justify-content: center;
    padding: 7px;
}
.sidebar-collapsed .vc-sidebar-theme-toggle span { display: none; }
.sidebar-collapsed .vc-sidebar-user-menu {
    position: fixed;
    left: 56px;
    bottom: 48px;
    width: 180px;
}

/* Tooltip on hover for collapsed nav links */
.sidebar-collapsed .vc-sidebar-link {
    position: relative;
}
.sidebar-collapsed .vc-sidebar-link::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--vc-ink);
    color: var(--vc-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 50;
}
.sidebar-collapsed .vc-sidebar-link:hover::after { opacity: 1; }

/* ===== Layout: sidebar + main ===== */
body.vc-shell:not(.has-sidebar) {
    display: flex;
    flex-direction: column;
}
.has-sidebar .vc-main-area {
    margin-left: 215px;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(.4,0,.2,1);
}
.sidebar-collapsed .vc-main-area { margin-left: 56px; }
.vc-content { position: relative; }

/* ===== Sidebar mobile overlay ===== */
.vc-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 39;
    display: none;
    backdrop-filter: blur(2px);
}
.vc-sidebar-toggle { display: none; }
@media (max-width: 768px) {
    /* Closed drawer is off-canvas AND hidden, so it leaves the tab order and the
       accessibility tree. Visibility flips after the slide-out finishes. */
    .vc-sidebar {
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s cubic-bezier(.4,0,.2,1), visibility 0s linear 0.25s;
        box-shadow: none;
    }
    .vc-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
        box-shadow: 16px 0 48px rgba(0,0,0,0.15);
    }
    .vc-sidebar-overlay.is-open { display: block; }
    .has-sidebar .vc-main-area { margin-left: 0; }
    .vc-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        color: var(--vc-muted);
        cursor: pointer;
        border-radius: 6px;
    }
    .vc-sidebar-toggle:hover { background: var(--vc-paper); color: var(--vc-ink); }
    .vc-sidebar-collapse { display: none; }
    .sidebar-collapsed .vc-sidebar { width: 215px; }
    .sidebar-collapsed .vc-main-area { margin-left: 0; }
    .sidebar-collapsed .vc-sidebar-logo-text,
    .sidebar-collapsed .vc-sidebar-section-label { opacity: 1; width: auto; }
    .sidebar-collapsed .vc-sidebar-link span { display: inline; }
    .sidebar-collapsed .vc-sidebar-link { justify-content: flex-start; gap: 10px; padding: 9px 10px; }
    .sidebar-collapsed .vc-sidebar-user-info,
    .sidebar-collapsed .vc-sidebar-user-chevron { display: block; }
    .sidebar-collapsed .vc-sidebar-theme-toggle span { display: inline; }
}

/* ===== Dark mode: sidebar + topbar ===== */
[data-theme="dark"] .vc-sidebar {
    background: var(--vc-navy-deep);
    border-color: rgba(191,233,255,0.12);
}
[data-theme="dark"] .vc-sidebar-logo-text,
[data-theme="dark"] .vc-sidebar-user-name { color: #fff; }
[data-theme="dark"] .vc-sidebar-section-label { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .vc-sidebar-link { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .vc-sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
[data-theme="dark"] .vc-sidebar-link.is-active {
    background: rgba(191,233,255,0.10);
    color: var(--vc-teal);
}
[data-theme="dark"] .vc-sidebar-footer { border-color: rgba(191,233,255,0.12); }
[data-theme="dark"] .vc-sidebar-user:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .vc-sidebar-user-menu {
    background: var(--vc-navy);
    border-color: rgba(191,233,255,0.15);
}
[data-theme="dark"] .vc-sidebar-menu-item { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .vc-sidebar-menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
[data-theme="dark"] .vc-sidebar-theme-toggle { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .vc-sidebar-theme-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
[data-theme="dark"] .vc-sidebar-collapse {
    background: var(--vc-navy);
    border-color: rgba(191,233,255,0.15);
    color: rgba(255,255,255,0.45);
}
[data-theme="dark"] .vc-sidebar-collapse:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
[data-theme="dark"] .sidebar-collapsed .vc-sidebar-link::after {
    background: #fff;
    color: var(--vc-navy-deep);
}
[data-theme="dark"] .vc-topbar {
    background: rgba(9,30,43,0.85);
    border-color: rgba(191,233,255,0.12);
}
/* Readable in dark mode (it was white at 15% and nearly invisible). */
[data-theme="dark"] .vc-topbar-breadcrumb { color: var(--vc-muted, #b4b7c3); }
[data-theme="dark"] .vc-topbar-sep { color: rgba(255,255,255,0.3); }

/* ===== Cookie consent banner (base.html) ===== */
.vc-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10001; padding: 16px 24px;
    background: rgba(15,15,20,0.97); border-top: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); }
.vc-cookie-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vc-cookie-text { flex: 1; min-width: 240px; margin: 0; color: rgba(255,255,255,0.8); font-size: 13px; line-height: 1.5; }
.vc-cookie-text a { color: rgba(255,255,255,0.65); text-decoration: underline; }
.vc-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.vc-cookie-actions button { padding: 8px 16px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.vc-cookie-decline { border: 1px solid rgba(255,255,255,0.2); background: transparent; color: rgba(255,255,255,0.75); }
.vc-cookie-accept { border: 1px solid var(--accent-line); background: var(--accent); color: #04121f; font-weight: 700; }
.vc-cookie-actions button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* Phones: a compact floating card instead of a tall bar over the page (it covered the chat composer). */
@media (max-width: 640px) {
    .vc-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; }
    .vc-cookie-inner { gap: 8px; }
    .vc-cookie-text { min-width: 0; flex-basis: 100%; font-size: 12px; line-height: 1.4; }
    .vc-cookie-actions { width: 100%; }
    .vc-cookie-actions button { flex: 1; padding: 7px 10px; font-size: 12px; }
}

/* Software version + "How to cite" (partials/software_version.html). */
.vc-software-version { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:4px 12px; }
.vc-software-version code { font-family:inherit; }
.vc-cite summary { cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.vc-cite summary:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.vc-cite[open] { flex-basis:100%; }
.vc-cite-text { margin-top:6px; user-select:all; overflow-wrap:anywhere; }
.vc-sidebar-version { margin-top: 8px; padding: 0 4px; font-size: 11px; line-height: 1.4; color: var(--vc-muted, #6b7280); }
.vc-sidebar-version .vc-software-version { justify-content: flex-start; }
.sidebar-collapsed .vc-sidebar-version { display: none; }

/* Optional sign-up details (2026-10-16): only email and the terms are required. */
.vc-auth-optional { border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 12px; }
.vc-auth-optional > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.vc-auth-optional > summary::-webkit-details-marker { display: none; }
.vc-auth-optional > summary::after { content: "+"; margin-left: auto; font-size: 1rem; line-height: 1; }
.vc-auth-optional[open] > summary::after { content: "\2212"; }
.vc-auth-optional-tag { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.65; }

/* OAuth returns have a neutral first paint while the existing session exchange runs. */
.vc-auth-callback { max-width:40rem; margin:20vh auto; padding:2rem; text-align:center; }
.vc-auth-callback h1 { font-size:1.75rem; font-weight:600; margin-bottom:1rem; }
.vc-auth-callback a { text-decoration:underline; }
