/* /Components/Dialogs/StorageUpsellModal.razor.rz.scp.css */
.upsell-body[b-d2c1jq41yv] { max-width: 420px; }
.upsell-loading[b-d2c1jq41yv] { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0; min-height: 140px; }
.upsell-success[b-d2c1jq41yv] { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0; min-height: 140px; text-align: center; }
.storage-meter-bar[b-d2c1jq41yv] { height: 8px; border-radius: 4px; background: var(--mud-palette-background-grey, #e0e0e0); overflow: hidden; }
.storage-meter-fill[b-d2c1jq41yv] { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--mud-palette-warning, #ff9800) 0%, var(--mud-palette-error, #f44336) 100%); transition: width 300ms ease-out; }
.payment-info[b-d2c1jq41yv] { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: var(--mud-palette-background-grey, rgba(0, 0, 0, 0.04)); }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout scoped styles.
   The .app-shell, .sidebar, and .main visual systems live globally in
   wwwroot/css/webapp.css. Only layout-skeleton, error states, and the
   sidebar drawer / mobile shell tweaks belong here. */

/* App shell: when no sidebar (auth flow pages, anonymous landing), the
   main column expands edge-to-edge. */
[b-zw429bpra0] .app-shell--no-sidebar { display: block; }
[b-zw429bpra0] .app-shell--no-sidebar .main { padding-left: 0; padding-right: 0; }

/* Sidebar host: a wrapper that controls the off-canvas drawer behavior.
   On desktop it's invisible (display: contents) so the inner .sidebar
   drives layout. On mobile it acts as the slide-in container. */
[b-zw429bpra0] .sidebar-host {
    display: contents;
}

/* Mobile drawer behaviour */
@media (max-width: 768px) {
    [b-zw429bpra0] .sidebar-host {
        display: block;
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        max-width: 85vw;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform .26s cubic-bezier(.22, 1, .36, 1);
        padding-top: env(safe-area-inset-top, 0);
        /* Closed drawer must not intercept taps — content + tab bar extend underneath. */
        pointer-events: none;
    }
    [b-zw429bpra0] .sidebar-host--visible {
        transform: translateX(0);
        pointer-events: auto;
    }
    [b-zw429bpra0] .sidebar-host--animating {
        will-change: transform;
    }
    [b-zw429bpra0] .sidebar-host > .sidebar {
        height: 100%;
    }
    /* Reserve space at the bottom for the .mobile-tabbar (≈70px including
       safe-area padding). Applied to the .main column so the page content
       isn't covered by the tab bar. */
    [b-zw429bpra0] .main {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Page entrance — opacity-only fade. We deliberately avoid `transform` here
   because any non-`none` transform value (even mid-animation) turns this
   element into the containing block for `position: fixed` descendants, which
   would trap full-screen overlays (`.modal-scrim`, `.notif-panel`,
   `.help-menu`) inside the page area instead of the viewport. The slide-up
   was a nice touch but not worth breaking dropdowns/modals over. */
[b-zw429bpra0] .layout-content-reveal {
    animation: layout-content-fade-in-b-zw429bpra0 .35s ease-out;
}

@keyframes layout-content-fade-in-b-zw429bpra0 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    [b-zw429bpra0] .layout-content-reveal {
        animation: none;
    }
}

/* Loading skeleton */
[b-zw429bpra0] .layout-skeleton {
    padding: 1.25rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
[b-zw429bpra0] .layout-skeleton__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
[b-zw429bpra0] .layout-skeleton__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Error state */
[b-zw429bpra0] .layout-error {
    max-width: 460px;
    margin: 6rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
[b-zw429bpra0] .layout-error__icon { color: var(--color-warning); margin-bottom: .75rem; }
[b-zw429bpra0] .layout-error__title { margin-bottom: .5rem; }
[b-zw429bpra0] .layout-error__message { margin-bottom: 1.5rem; color: var(--color-text-secondary); }
[b-zw429bpra0] .layout-error__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
}
[b-zw429bpra0] .layout-error__signout {
    background: transparent;
    border: 0;
    color: var(--color-text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: .25rem .5rem;
}
[b-zw429bpra0] .layout-error__signout:hover { color: var(--color-text-primary); }

/* Article wrapper inside .main — content gets generous padding rhythm. */
[b-zw429bpra0] .content {
    flex: 1;
    min-width: 0;
}

/* Tighter padding on mobile */
@media (max-width: 768px) {
    [b-zw429bpra0] .main {
        padding: 1rem 1rem !important;
        gap: 1rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu scoped styles.
   The sidebar visual system (.sidebar, .sidebar__inner, .sidebar__group,
   .sidebar__user, .sidebar__footer, .nav-link, .nav-link--parent,
   .nav-sublist, .nav-sublink) lives globally in wwwroot/css/webapp.css
   and wwwroot/css/airy.css — no duplicates here. Only NavMenu-specific
   tweaks belong in this file. */

/* Force the second sidebar group to bottom in the column flex stack so
   the Settings group + user pill + footer are pinned even if the
   primary nav list is short. The kit uses an inline `style={{marginTop:'auto'}}`
   on the React component; we do the same via a modifier class. */
[b-k1o3mhyeza] .sidebar__group--bottom {
    margin-top: auto;
}
/* /Components/Layout/TopRow.razor.rz.scp.css */
/* TopRow scoped styles. The .topbar / .nav patterns are defined globally
   in webapp.css and auth-styles.css. This file only adjusts the topbar
   spacing rhythm and the legacy "user-pill" used inside the trimmed
   onboarding/incomplete header. */

[b-9990qu56qc] .user-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .85rem .25rem .25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-primary);
    font: 500 .85rem/1 var(--font-family-base);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

[b-9990qu56qc] .user-pill:hover {
    background: var(--color-surface-muted);
    border-color: var(--color-border-strong);
}

[b-9990qu56qc] .user-pill__avatar {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(120deg, #2563eb, #06b6d4);
    color: #fff;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .02em;
    flex: none;
}

[b-9990qu56qc] .user-pill__label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Topbar spacing tweak so the row breathes against the page hero. */
[b-9990qu56qc] .topbar {
    padding-top: .5rem;
}

@media (max-width: 768px) {
    [b-9990qu56qc] .user-pill { padding: .25rem .35rem; }
    [b-9990qu56qc] .user-pill__label { display: none !important; }
}
/* /Components/Shared/IngestionProgress.razor.rz.scp.css */
.ingestion-progress[b-q10ayza08f] {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ingestion-progress:hover[b-q10ayza08f] {
    border-color: var(--color-border-strong);
}

.ingestion-progress--error[b-q10ayza08f] {
    border-color: var(--color-progress-error);
    border-left: 4px solid var(--color-progress-error);
}

.ingestion-progress__header[b-q10ayza08f] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ingestion-progress__icon[b-q10ayza08f] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingestion-progress__info[b-q10ayza08f] {
    flex: 1;
    min-width: 0;
}

.ingestion-progress__bar-container[b-q10ayza08f] {
    margin-top: 1rem;
}

/* Progress bar height is set via inline Style on MudProgressLinear — ::deep
   into MudBlazor internals was unreliable (EVE-3650). */

.ingestion-progress__hub-status[b-q10ayza08f] {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-progress-warning);
}

.ingestion-progress__stats[b-q10ayza08f] {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.ingestion-progress__error-detail[b-q10ayza08f] {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 8px;
    font-size: 0.8125rem;
}

@media (max-width: 600px) {
    .ingestion-progress__header[b-q10ayza08f] {
        flex-wrap: wrap;
    }

    .ingestion-progress__stats[b-q10ayza08f] {
        flex-direction: column;
        gap: 0.25rem;
    }
}
/* /Components/Shared/PublicHeader.razor.rz.scp.css */
/* PublicHeader scoped styles — extends .nav from auth-styles.css with the
   marketing site's mobile hamburger sheet. The base .nav, .nav__brand,
   .nav__links, .nav__cta etc. are defined globally in auth-styles.css. */

[b-q4ek94znsg] .nav {
    position: relative; /* anchor for .nav__mobile-sheet */
}

[b-q4ek94znsg] .nav__mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--text-muted);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}

[b-q4ek94znsg] .nav__mobile-toggle:hover {
    color: var(--text-strong);
    border-color: var(--em-navy);
}

[b-q4ek94znsg] .nav__mobile-sheet {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--page-bg, var(--mkt-surface));
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 49;
    box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.15);
}

[b-q4ek94znsg] .nav__mobile-sheet.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

[b-q4ek94znsg] .nav__mobile-sheet a {
    display: block;
    padding: .85rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-strong);
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
}

[b-q4ek94znsg] .nav__mobile-sheet a:last-of-type {
    border-bottom: 0;
}

[b-q4ek94znsg] .nav__mobile-sheet .btn {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

[data-theme="dark"][b-q4ek94znsg]  .nav__mobile-sheet {
    background: var(--page-bg, var(--mkt-surface));
}

@media (max-width: 880px) {
    [b-q4ek94znsg] .nav__mobile-toggle {
        display: inline-flex;
    }

    /* Hide the desktop login + start CTAs in the bar — they live inside the sheet. */
    [b-q4ek94znsg] .nav__cta .nav__login,
    [b-q4ek94znsg] .nav__cta .nav__start {
        display: none;
    }
}
