:root {
    --folosa-bg: #07101f;
    --folosa-bg-deep: #040a14;
    --folosa-surface: rgba(20, 29, 47, 0.82);
    --folosa-surface-strong: rgba(10, 16, 29, 0.9);
    --folosa-border: rgba(144, 165, 199, 0.18);
    --folosa-border-strong: rgba(137, 206, 255, 0.24);
    --folosa-text: #e6eefc;
    --folosa-text-soft: #b4c0d4;
    --folosa-title: #f7f1df;
    --folosa-primary: #d0bcff;
    --folosa-secondary: #89ceff;
    --folosa-accent: #ffb2b7;
    --folosa-shadow: 0 28px 80px rgba(2, 8, 23, 0.45);
}

html {
    background:
        radial-gradient(circle at top left, rgba(160, 120, 255, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(137, 206, 255, 0.1), transparent 28%),
        linear-gradient(180deg, var(--folosa-bg) 0%, var(--folosa-bg-deep) 100%);
    background-color: var(--folosa-bg-deep);
}

body.folosa-shell {
    background:
        radial-gradient(circle at 8% 10%, rgba(160, 120, 255, 0.12), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(137, 206, 255, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(7, 16, 31, 0.95) 0%, rgba(4, 10, 20, 1) 100%);
    color: var(--folosa-text);
    font-family: "Hanken Grotesk", sans-serif;
    position: relative;
}

body.folosa-shell::before,
body.folosa-shell::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.18;
    z-index: 0;
}

body.folosa-shell::before {
    top: -8rem;
    left: -10rem;
    background: rgba(160, 120, 255, 0.75);
}

body.folosa-shell::after {
    right: -10rem;
    bottom: -12rem;
    background: rgba(137, 206, 255, 0.55);
}

body.folosa-shell > * {
    z-index: 1;
}

.sr-only,
.folosa-shell .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-shell-nav {
    background: rgba(6, 11, 22, 0.82) !important;
    border-bottom: 1px solid rgba(137, 206, 255, 0.12);
    box-shadow: 0 22px 60px rgba(2, 8, 23, 0.34);
    backdrop-filter: blur(18px);
}

.site-shell-nav a,
.site-shell-nav button,
.site-shell-nav select {
    font-family: "Hanken Grotesk", sans-serif;
}

.stitch-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f3f0ff;
    text-decoration: none;
    filter: drop-shadow(0 0 10px rgba(208, 188, 255, 0.16));
    white-space: nowrap;
}

.stitch-brand-mark {
    width: 30px !important;
    height: 30px !important;
    display: grid;
    place-items: center;
    position: relative;
    color: #d8bcff;
    background: url("/assets/folosa-nav-mark.svg?v=20260608") center / contain no-repeat !important;
}

.stitch-brand-mark::before,
.stitch-brand-mark::after {
    content: none !important;
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -10px 0 currentColor, 0 10px 0 currentColor, -10px 0 0 currentColor, 10px 0 0 currentColor;
}

.stitch-brand-mark::after {
    inset: 5px;
    background: transparent;
    border: 2px solid currentColor;
    transform: rotate(45deg);
    box-shadow: none;
    opacity: 0.9;
}

.stitch-brand-word {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    transform: translateY(1px);
}

@media (max-width: 767px) {
    .stitch-brand {
        gap: 8px;
    }

    .stitch-brand-word {
        font-size: 24px;
    }

    .stitch-brand-mark {
        width: 24px !important;
        height: 24px !important;
    }
}

.folosa-shell--home .site-shell-nav {
    display: grid !important;
    grid-template-columns: minmax(250px, 1fr) minmax(420px, auto) minmax(330px, 1fr) !important;
    align-items: center !important;
    height: 64px !important;
    padding-left: clamp(36px, 3.2vw, 56px) !important;
    padding-right: clamp(36px, 3.2vw, 56px) !important;
}

.folosa-shell--home .site-shell-nav > div:first-child {
    display: contents !important;
}

.folosa-shell--home .site-shell-nav .stitch-brand {
    grid-column: 1 !important;
    justify-self: start !important;
    transform: translateX(8px);
}

.folosa-shell--home .desktop-nav-links {
    grid-column: 2 !important;
    justify-self: center !important;
    justify-content: center !important;
    gap: clamp(24px, 2.5vw, 40px) !important;
    transform: translateX(20px);
}

.folosa-shell--home .desktop-nav-links a {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    color: #d6d3e7 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
}

.folosa-shell--home .desktop-nav-links a:hover {
    color: #89ceff !important;
}

.folosa-shell--home .nav-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    gap: 16px !important;
}

.folosa-shell--home .nav-language-wrap {
    border: 1px solid rgba(144, 165, 199, 0.22) !important;
    border-radius: 4px !important;
    background: rgba(23, 31, 51, 0.58) !important;
    padding: 6px 10px !important;
}

.folosa-shell--home .nav-language-select {
    min-width: 44px !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 10px 0 0 !important;
    font-size: 12px !important;
}

.folosa-shell--home .nav-login-button,
.folosa-shell--home .nav-start-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    border-radius: 4px !important;
    padding: 0 18px !important;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease !important;
}

.folosa-shell--home .nav-login-button {
    border: 1px solid rgba(144, 165, 199, 0.28) !important;
    background: rgba(8, 14, 28, 0.68) !important;
    color: #dce6fb !important;
}

.folosa-shell--home .nav-start-button {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%) !important;
    color: #07101f !important;
    box-shadow: 0 0 18px rgba(137, 206, 255, 0.18) !important;
}

.folosa-shell--home .nav-login-button:hover,
.folosa-shell--home .nav-start-button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
}

.folosa-shell--home .nav-account-button {
    display: none !important;
}

@media (max-width: 1180px) {
    .folosa-shell--home .site-shell-nav {
        grid-template-columns: minmax(210px, 0.85fr) minmax(360px, auto) minmax(270px, 0.9fr) !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .folosa-shell--home .desktop-nav-links {
        gap: 22px !important;
        transform: translateX(10px);
    }

    .folosa-shell--home .nav-start-button {
        padding-inline: 14px !important;
    }
}

@media (max-width: 767px) {
    .folosa-shell--home .site-shell-nav {
        display: flex !important;
        justify-content: space-between !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .folosa-shell--home .site-shell-nav > div:first-child {
        display: flex !important;
    }

    .folosa-shell--home .site-shell-nav .stitch-brand {
        transform: none;
    }

    .folosa-shell--home .nav-actions {
        gap: 8px !important;
    }

    .folosa-shell--home .nav-language-wrap,
    .folosa-shell--home .nav-login-button,
    .folosa-shell--home .nav-start-button {
        display: none !important;
    }

    .folosa-shell--home .nav-account-button {
        display: none !important;
    }
}

.nav-symbol--language,
.nav-account-glyph,
.nav-menu-glyph,
.hero-icon {
    display: inline-block;
    flex: 0 0 auto;
}

.nav-symbol--language {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 999px;
    opacity: 0.9;
    position: relative;
}

.nav-symbol--language::before,
.nav-symbol--language::after {
    content: "";
    position: absolute;
    inset: 4px 0;
    left: 6px;
    right: 6px;
    border-left: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.nav-symbol--language::after {
    inset: 8px 2px auto;
    height: 1px;
    border: 0;
    background: currentColor;
}

.nav-account-glyph {
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 999px;
    position: relative;
}

.nav-account-glyph::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 7px;
    top: 4px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.nav-account-glyph::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 7px;
    left: 4px;
    bottom: 3px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
}

.nav-menu-glyph {
    width: 24px;
    height: 16px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
}

.nav-menu-glyph::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    border-top: 2px solid currentColor;
}

.hero-icon {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 22px;
    line-height: 1;
}

.site-shell-main {
    width: min(1440px, calc(100% - 32px));
    margin-inline: auto;
}

.site-shell-panel,
.site-surface-card,
.site-auth-card,
.site-sidebar {
    background: linear-gradient(180deg, rgba(22, 31, 50, 0.88) 0%, rgba(10, 16, 29, 0.9) 100%) !important;
    border: 1px solid var(--folosa-border) !important;
    box-shadow: var(--folosa-shadow);
    backdrop-filter: blur(18px);
}

.site-surface-card,
.site-auth-card {
    border-radius: 8px !important;
}

.site-sidebar {
    background: linear-gradient(180deg, rgba(14, 21, 37, 0.96) 0%, rgba(8, 13, 24, 0.96) 100%) !important;
}

.site-kicker,
.site-eyebrow,
.site-section-label {
    color: var(--folosa-secondary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
}

.site-title,
.site-title-serif,
.folosa-shell h1,
.folosa-shell h2[data-i18n],
.folosa-shell .font-headline-md,
.folosa-shell .font-headline-lg {
    font-family: "EB Garamond", serif;
    color: var(--folosa-title);
    letter-spacing: -0.02em;
}

.site-copy,
.folosa-shell p,
.folosa-shell li,
.folosa-shell label,
.folosa-shell div {
    color: inherit;
}

.site-shell-footer {
    border-top: 1px solid rgba(137, 206, 255, 0.08);
    background: rgba(5, 10, 18, 0.82);
    backdrop-filter: blur(16px);
}

.site-cta,
.folosa-shell .btn-primary,
.folosa-shell .btn-vip,
.folosa-shell .forge-run-button {
    background: linear-gradient(135deg, var(--folosa-primary) 0%, var(--folosa-secondary) 100%) !important;
    color: #06111f !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(137, 206, 255, 0.22);
}

.site-cta:hover,
.folosa-shell .btn-primary:hover,
.folosa-shell .btn-vip:hover,
.folosa-shell .forge-run-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(137, 206, 255, 0.28);
}

.site-cta-secondary,
.folosa-shell .btn-ghost {
    background: rgba(10, 17, 31, 0.5) !important;
    color: var(--folosa-text) !important;
    border: 1px solid var(--folosa-border) !important;
}

.site-cta-secondary:hover,
.folosa-shell .btn-ghost:hover {
    border-color: var(--folosa-border-strong) !important;
    background: rgba(17, 28, 49, 0.74) !important;
}

.folosa-shell input,
.folosa-shell textarea,
.folosa-shell select {
    background: rgba(5, 11, 22, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: var(--folosa-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.folosa-shell input:focus,
.folosa-shell textarea:focus,
.folosa-shell select:focus {
    border-color: rgba(137, 206, 255, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(137, 206, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.folosa-shell table thead {
    background: rgba(4, 10, 19, 0.82);
}

.folosa-shell table tbody tr:hover {
    background: rgba(137, 206, 255, 0.04);
}

.folosa-shell--home .home-hero-title {
    font-family: "EB Garamond", serif;
    font-size: clamp(3.1rem, 6vw, 5.7rem);
    line-height: 0.98;
    color: var(--folosa-title);
    letter-spacing: -0.04em;
}

.folosa-shell--home .home-hero-sub {
    max-width: 44rem;
    color: var(--folosa-text-soft);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 1.9;
}

.folosa-shell--home .glass-panel {
    background: linear-gradient(180deg, rgba(21, 29, 47, 0.8) 0%, rgba(10, 15, 27, 0.88) 100%) !important;
    border: 1px solid rgba(137, 206, 255, 0.12) !important;
    box-shadow: var(--folosa-shadow);
}

.folosa-shell--home .home-trial-banner {
    background: linear-gradient(90deg, rgba(137, 206, 255, 0.1), rgba(208, 188, 255, 0.08));
    border-color: rgba(137, 206, 255, 0.2);
}

.folosa-shell--home .nav-actions {
    top: 36px;
}

.folosa-shell--account aside nav a,
.folosa-shell--account aside nav button {
    border-radius: 8px;
}

.folosa-shell--account aside nav a:hover,
.folosa-shell--account aside nav button:hover {
    background: rgba(137, 206, 255, 0.08) !important;
}

.folosa-shell--account .vault-action-cell {
    background: rgba(10, 16, 29, 0.98);
}

.folosa-shell--support #ticket-tracking-container > *,
.folosa-shell--support .lg\:col-span-3,
.folosa-shell--support .lg\:col-span-2 {
    background: linear-gradient(180deg, rgba(20, 29, 47, 0.88) 0%, rgba(10, 16, 29, 0.9) 100%);
    border: 1px solid var(--folosa-border);
    border-radius: 8px;
    box-shadow: var(--folosa-shadow);
}

.folosa-shell--support .lg\:col-span-2 {
    padding: 1.5rem;
}

.folosa-shell--auth main {
    width: min(100%, 1440px);
    margin-inline: auto;
}

.folosa-shell--auth .site-auth-card {
    background:
        linear-gradient(180deg, rgba(20, 29, 47, 0.82) 0%, rgba(8, 14, 25, 0.94) 100%),
        radial-gradient(circle at top, rgba(208, 188, 255, 0.08), transparent 45%);
}

.folosa-shell--auth .login-card .stitch-brand {
    justify-content: center;
    align-items: center;
    gap: 0.62rem;
}

.folosa-shell--auth .login-card .stitch-brand-mark {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
}

.folosa-shell--auth .login-card .stitch-brand-word {
    font-size: 34px;
    line-height: 0.95;
    transform: translateY(1px);
}

.folosa-shell--auth .login-footer,
.folosa-shell--auth .site-shell-footer {
    background: rgba(5, 9, 18, 0.84);
}

/* Stitch parity pass: auth, support, and account utility pages. */
body.folosa-shell--auth {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(5, 11, 22, 0.84) 48%, rgba(8, 18, 33, 0.94) 100%),
        radial-gradient(circle at 24% 32%, rgba(192, 132, 252, 0.18), transparent 34%),
        radial-gradient(circle at 72% 36%, rgba(137, 206, 255, 0.14), transparent 30%),
        url("/assets/stitch-workflow-mist.jpg?v=20260611") left 12% center / min(54vw, 720px) auto no-repeat fixed,
        #020617 !important;
}

.folosa-shell--auth main {
    min-height: calc(100vh - var(--site-nav-height, 64px));
    padding-block: clamp(64px, 8vh, 104px) 72px !important;
}

.folosa-shell--auth .site-auth-card {
    width: min(430px, 100%) !important;
    border-radius: 12px !important;
    border-color: rgba(137, 206, 255, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(23, 31, 51, 0.86) 0%, rgba(8, 14, 25, 0.94) 100%),
        radial-gradient(circle at top, rgba(208, 188, 255, 0.1), transparent 46%) !important;
}

.folosa-shell--auth .login-card-body {
    padding: clamp(28px, 4vw, 42px) !important;
}

.folosa-shell--auth .login-card input {
    min-height: 52px;
    border-radius: 4px !important;
    font-size: 15px;
}

.folosa-shell--auth #btn-action {
    min-height: 52px;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%) !important;
    color: #06111f !important;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.12em;
    box-shadow: 0 18px 42px rgba(137, 206, 255, 0.24) !important;
}

.folosa-shell--auth .reset-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 42px) !important;
}

.folosa-shell--auth .reset-card-topline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d0bcff, #89ceff, transparent);
    background-size: 220% 100%;
    animation: flow-light 3.2s linear infinite;
}

.folosa-shell--auth .reset-kicker {
    margin-top: 18px;
    color: #89ceff !important;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px !important;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.folosa-shell--auth .reset-title {
    margin-top: 14px;
    color: var(--folosa-title) !important;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(34px, 4vw, 44px) !important;
    line-height: 1.04 !important;
    font-weight: 500 !important;
    letter-spacing: -0.03em;
}

.folosa-shell--auth .reset-lede {
    width: min(100%, 20rem);
    margin: 12px auto 0;
    color: #cbc3d7 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.folosa-shell--auth #reset-form label {
    color: #958ea0 !important;
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    font-size: 11px !important;
    letter-spacing: 0.13em !important;
}

.folosa-shell--auth #reset-form input {
    min-height: 52px;
    border-radius: 4px !important;
    font-size: 15px;
}

.folosa-shell--auth #reset-submit {
    min-height: 52px;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%) !important;
    color: #06111f !important;
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    font-size: 12px !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase;
    box-shadow: 0 18px 42px rgba(137, 206, 255, 0.24) !important;
}

.folosa-shell--auth .reset-back-link {
    color: #89ceff !important;
}

.folosa-shell--auth .login-footer {
    position: relative !important;
    margin-top: auto;
}

.folosa-shell--support .site-shell-main {
    width: min(1180px, calc(100% - 48px));
    padding-top: clamp(48px, 6vw, 72px) !important;
    padding-bottom: 72px !important;
}

.folosa-shell--support main > div > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 6px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(137, 206, 255, 0.14);
}

.folosa-shell--support main > div > header h1 {
    font-family: "EB Garamond", Georgia, serif !important;
    font-size: clamp(40px, 5vw, 64px) !important;
    line-height: 0.96 !important;
    font-weight: 500 !important;
    color: var(--folosa-title) !important;
    letter-spacing: -0.035em !important;
}

.folosa-shell--support main > div > header p {
    max-width: 34rem;
    margin-top: 14px !important;
    color: var(--folosa-text-soft) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

.folosa-shell--support .lg\:col-span-3,
.folosa-shell--support .lg\:col-span-2 {
    background:
        linear-gradient(180deg, rgba(20, 29, 47, 0.84) 0%, rgba(8, 14, 25, 0.92) 100%) !important;
    border-color: rgba(137, 206, 255, 0.16) !important;
    border-radius: 12px !important;
}

.folosa-shell--support .lg\:col-span-2 > h2,
.folosa-shell--support .lg\:col-span-3 > h2 {
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    color: #cbc3d7 !important;
    font-size: 12px !important;
    letter-spacing: 0.16em !important;
}

.folosa-shell--support label {
    font-family: "Hanken Grotesk", sans-serif !important;
    color: #a8b3c8 !important;
    font-size: 12px !important;
}

.folosa-shell--support input,
.folosa-shell--support select,
.folosa-shell--support textarea {
    border-radius: 5px !important;
    background: rgba(5, 11, 22, 0.88) !important;
}

.folosa-shell--support #submit-ticket-btn {
    min-height: 52px;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%) !important;
    color: #06111f !important;
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    font-size: 12px !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    box-shadow: 0 18px 42px rgba(137, 206, 255, 0.22) !important;
}

.folosa-shell--support #data-pull-list > * {
    border-radius: 5px !important;
}

.account-identity-list dd#user-id-display,
.account-identity-list dd#user-registered-display {
    color: var(--folosa-text);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

.account-avatar {
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: inset 0 0 32px rgba(208, 188, 255, 0.14), 0 0 22px rgba(192, 132, 252, 0.16);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.account-avatar:hover,
.account-avatar:focus-visible {
    outline: 0;
    border-color: rgba(137, 206, 255, 0.78);
    box-shadow: inset 0 0 32px rgba(208, 188, 255, 0.18), 0 0 28px rgba(137, 206, 255, 0.22);
    transform: translateY(-1px);
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-section,
.account-stitch-card {
    border-radius: 12px;
}

@media (max-width: 720px) {
    .folosa-shell--support .site-shell-main {
        width: min(100%, calc(100% - 24px));
    }

    .folosa-shell--support main > div > header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.folosa-shell--workspace .forge-topbar,
.folosa-shell--workspace .forge-panel,
.folosa-shell--workspace .workspace-forge-card {
    border-color: rgba(137, 206, 255, 0.12) !important;
    box-shadow: var(--folosa-shadow);
}

@media (max-width: 1023px) {
    .site-shell-main {
        width: min(100%, calc(100% - 24px));
    }

    .folosa-shell--account {
        display: block !important;
    }

    .folosa-shell--account aside {
        display: none !important;
    }

    .folosa-shell--account main {
        width: min(100%, calc(100% - 24px)) !important;
        margin-inline: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
}

@media (max-width: 767px) {
    body.folosa-shell::before,
    body.folosa-shell::after {
        width: 18rem;
        height: 18rem;
        filter: blur(60px);
    }

    .site-shell-nav {
        box-shadow: 0 14px 40px rgba(2, 8, 23, 0.24);
    }

    .site-surface-card,
    .site-auth-card,
    .site-sidebar {
        border-radius: 8px !important;
    }

    .folosa-shell--home .home-hero-title {
        font-size: clamp(2.5rem, 11vw, 4.1rem);
        line-height: 0.98;
    }
}

.folosa-shell--account main {
    width: auto !important;
    max-width: none !important;
    margin-inline: 0 !important;
    flex: 1 1 0 !important;
}

.folosa-shell--account header h1 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
}

.folosa-shell--account .bg-surface,
.folosa-shell--account .rounded-2xl,
.folosa-shell--account .rounded-xl {
    background: linear-gradient(180deg, rgba(20, 29, 47, 0.86) 0%, rgba(10, 16, 29, 0.92) 100%) !important;
    border-color: rgba(137, 206, 255, 0.14) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 48px rgba(2, 8, 23, 0.32) !important;
}

.folosa-shell--account aside {
    width: 220px !important;
    flex: 0 0 220px !important;
}

.folosa-shell--account aside nav {
    padding: 20px 12px !important;
}

.folosa-shell--account aside nav a,
.folosa-shell--account aside nav button {
    min-height: 44px;
}

.folosa-shell--account table {
    font-size: 13px;
}

.folosa-shell--account .vault-scroll {
    max-height: min(42vh, 420px) !important;
}

.folosa-shell--account #store-modal > div,
.folosa-shell--account #ledger-modal > div,
.folosa-shell--auth #tos-modal > div,
.folosa-shell--auth #trial-rules-modal > div {
    border-radius: 8px !important;
}

.folosa-shell--account {
    background:
        radial-gradient(circle at 14% 4%, rgba(160, 120, 255, 0.15), transparent 26rem),
        radial-gradient(circle at 86% 10%, rgba(137, 206, 255, 0.1), transparent 28rem),
        linear-gradient(180deg, #07101f 0%, #040a14 100%) !important;
}

.folosa-shell--account .account-stitch-dashboard {
    width: min(100%, 1440px) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
    padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 48px) 80px !important;
    display: grid !important;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.92fr);
    gap: 24px;
    align-items: start;
    flex: none !important;
}

.folosa-shell--account .account-stitch-dashboard > aside.account-stitch-column,
.folosa-shell--account .account-stitch-dashboard > section.account-stitch-column {
    display: flex !important;
    width: auto !important;
    flex: none !important;
    min-width: 0;
}

.account-stitch-column {
    flex-direction: column;
    gap: 24px;
}

.account-stitch-card,
.account-section,
.account-dashboard-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 28px 80px rgba(2, 8, 23, 0.32);
    backdrop-filter: blur(12px);
}

.account-stitch-card::before,
.account-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 13rem;
    height: 13rem;
    border-radius: 999px;
    background: rgba(208, 188, 255, 0.11);
    filter: blur(44px);
    pointer-events: none;
}

.account-stitch-card {
    padding: 24px;
}

.account-profile-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(208, 188, 255, 0.55);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 74%, rgba(192, 132, 252, 0.34), transparent 44%),
        linear-gradient(180deg, rgba(23, 31, 51, 0.95), rgba(8, 14, 25, 0.98));
}

.account-avatar .material-symbols-outlined {
    color: #d0bcff;
    font-size: 34px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.account-profile-head h2,
.account-section-heading h2,
.account-dashboard-hero h1 {
    font-family: "EB Garamond", serif;
    color: var(--folosa-title);
    font-weight: 500 !important;
    letter-spacing: -0.02em;
}

.account-profile-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.account-tier-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.account-tier-pill,
.account-plan-label,
.account-status-pill,
.account-section-heading a,
.account-section-heading button,
.account-module-card a,
.account-artifact-badge,
.account-artifact-copy,
.account-primary-action,
.account-secondary-action,
.account-outline-action {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-tier-pill {
    color: #89ceff;
    padding: 5px 8px;
    border: 1px solid rgba(137, 206, 255, 0.22);
    border-radius: 6px;
    background: rgba(137, 206, 255, 0.1);
}

.account-plan-label {
    color: #cbc3d7;
}

.account-divider {
    height: 1px;
    width: 100%;
    margin: 18px 0;
    background: rgba(51, 65, 85, 0.72);
}

.account-identity-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.account-identity-list dt {
    margin-bottom: 7px;
    color: #958ea0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-identity-list dd {
    margin: 0;
    color: #cbc3d7;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.account-identity-list dd#user-email-display {
    color: var(--folosa-text);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
}

.account-identity-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-identity-pair-grid dd {
    color: #f7f1df;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px;
    line-height: 1.5;
}

.account-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.account-outline-action,
.account-primary-action,
.account-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.account-outline-action {
    border: 1px solid rgba(51, 65, 85, 0.96);
    color: #89ceff;
    background: rgba(11, 19, 38, 0.54);
}

.account-admin-action[hidden] {
    display: none !important;
}

.account-admin-action {
    color: #d0bcff;
    border-color: rgba(208, 188, 255, 0.32);
}

.account-outline-action:hover,
.account-section-heading a:hover,
.account-section-heading button:hover,
.account-module-card a:hover {
    color: #d0bcff;
    border-color: rgba(208, 188, 255, 0.36);
    background: rgba(49, 57, 77, 0.54);
}

.account-outline-action .material-symbols-outlined,
.account-primary-action .material-symbols-outlined,
.account-secondary-action .material-symbols-outlined {
    font-size: 18px;
}

.account-card-title-row,
.account-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.account-card-title-row h3 {
    margin: 0;
    color: var(--folosa-title);
    font-family: "EB Garamond", serif;
    font-size: 24px;
    line-height: 1.24;
    font-weight: 500;
}

.account-card-title-row p,
.account-dashboard-hero p,
.account-module-card p,
.account-ledger-note p {
    margin: 0;
    color: #cbc3d7;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
}

.account-status-pill {
    color: #10b981;
    padding: 6px 9px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
}

.account-status-pill--planned {
    color: #89ceff;
    border-color: rgba(137, 206, 255, 0.24);
    background: rgba(137, 206, 255, 0.09);
}

.account-credit-number {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 22px;
}

.account-credit-number span {
    color: transparent;
    background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: "EB Garamond", serif;
    font-size: 44px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.account-credit-number small,
.account-credit-scale {
    color: #958ea0;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1.5;
}

.account-credit-track {
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #2d3449;
}

.account-credit-fill {
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #89ceff 0%, #c084fc 100%);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.38);
    transition: width 420ms ease;
}

.account-credit-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.account-ledger-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid rgba(51, 65, 85, 0.56);
    border-radius: 6px;
    background: rgba(23, 31, 51, 0.62);
}

.account-ledger-note .material-symbols-outlined {
    margin-top: 2px;
    color: #89ceff;
    font-size: 20px;
}

.account-credit-activity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.account-credit-activity-card strong {
    display: block;
    color: var(--folosa-title);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.account-ledger-note-action {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-top: 10px;
    border: 1px solid rgba(137, 206, 255, 0.24);
    border-radius: 8px;
    background: rgba(137, 206, 255, 0.08);
    color: #b7ddff;
    padding: 0 12px;
    font: 700 10px/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.account-ledger-note-action:hover {
    border-color: rgba(137, 206, 255, 0.48);
    background: rgba(137, 206, 255, 0.14);
    color: #fff;
}

.account-passkey-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.account-passkey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(51, 65, 85, 0.56);
    border-radius: 8px;
    background: rgba(23, 31, 51, 0.62);
}

.account-passkey-row strong,
.account-passkey-row span {
    display: block;
}

.account-passkey-row strong {
    color: var(--folosa-title);
    font-size: 14px;
    font-weight: 600;
}

.account-passkey-row span {
    margin-top: 3px;
    color: #958ea0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
}

.account-passkey-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 8px;
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.12);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.account-passkey-remove:hover {
    border-color: rgba(248, 113, 113, 0.52);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.24);
}

.account-passkey-remove .material-symbols-outlined {
    font-size: 18px;
}

.account-primary-action,
.account-secondary-action {
    border: 1px solid rgba(137, 206, 255, 0.18);
    color: #001e2f;
    background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%);
}

.account-primary-action {
    width: 100%;
    margin-top: 18px;
}

.account-primary-action:hover,
.account-secondary-action:hover {
    box-shadow: 0 0 18px rgba(192, 132, 252, 0.34);
}

.account-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 154px;
    padding: 28px;
}

.folosa-shell--account .account-dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 3vw, 3.35rem) !important;
    line-height: 1.06 !important;
}

.account-dashboard-hero p {
    max-width: 48rem;
    margin-top: 8px;
    font-size: 16px;
}

.account-secondary-action {
    min-width: 160px;
    padding-inline: 18px;
}

.account-section {
    padding: 22px;
}

.account-section-heading {
    align-items: flex-end;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.62);
}

.account-section-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}

.account-section-heading h2 .material-symbols-outlined {
    color: #d0bcff;
    font-size: 24px;
}

.account-section-heading a,
.account-section-heading button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    color: #89ceff;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.account-section-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.account-mini-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-mini-select-wrap::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #89ceff;
    border-bottom: 2px solid #89ceff;
    pointer-events: none;
    transform: translateY(-62%) rotate(45deg);
}

.account-mini-select {
    min-height: 30px;
    min-width: 112px;
    border: 1px solid rgba(137, 206, 255, 0.18);
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(8, 14, 28, 0.58);
    color: #b7ddff;
    padding: 0 28px 0 12px;
    font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.account-mini-select:focus {
    outline: 1px solid rgba(137, 206, 255, 0.42);
    outline-offset: 2px;
}

.account-section-heading .material-symbols-outlined {
    font-size: 16px;
}

.account-artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.account-artifact-card {
    position: relative;
    display: flex;
    min-height: 282px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 8px;
    background: #0b1326;
    cursor: default;
}

.account-artifact-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 158px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 10%, rgba(2, 6, 23, 0.22) 100%);
    pointer-events: none;
    z-index: 1;
}

.account-artifact-media {
    position: relative;
    z-index: 0;
    flex: 0 0 158px;
    height: 158px;
    overflow: hidden;
    border-bottom: 1px solid rgba(51, 65, 85, 0.72);
    background-image:
        linear-gradient(180deg, rgba(5, 10, 22, 0.10), rgba(5, 10, 22, 0.28)),
        var(--artifact-preview),
        url("/assets/folosa-real-workflow-token.png"),
        linear-gradient(135deg, rgba(137, 206, 255, 0.08) 25%, transparent 25%),
        linear-gradient(315deg, rgba(208, 188, 255, 0.07) 25%, transparent 25%),
        linear-gradient(135deg, #11182b, #050b16);
    background-position: center, center, center, 0 0, 0 0, center;
    background-size: cover, cover, cover, 18px 18px, 18px 18px, cover;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
}

.account-artifact-media video,
.account-artifact-media img {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease;
}

.account-artifact-media .account-artifact-static-preview {
    z-index: 1;
    opacity: 1;
    filter: saturate(0.96) brightness(0.88);
}

.account-artifact-card:hover .account-artifact-media video,
.account-artifact-card:hover .account-artifact-media img {
    transform: scale(1.06);
}

.account-artifact-card.is-preview-loaded .account-artifact-fallback {
    opacity: 0;
    visibility: hidden;
}

.account-artifact-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(208, 188, 255, 0.54);
    background:
        linear-gradient(180deg, rgba(5, 10, 22, 0.04), rgba(5, 10, 22, 0.38)),
        linear-gradient(135deg, rgba(137, 206, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(315deg, rgba(208, 188, 255, 0.07) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(135deg, #11182b, #050b16);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.account-artifact-fallback::before {
    display: none;
}

.account-artifact-fallback::after {
    content: attr(data-preview-label);
    position: absolute;
    top: 104px;
    right: 12px;
    left: 12px;
    color: rgba(208, 188, 255, 0.84);
    font: 500 10px/1.4 "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.account-artifact-fallback .material-symbols-outlined {
    display: none;
}

.account-artifact-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 13px 14px 14px;
}

.account-artifact-title {
    color: var(--folosa-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.account-artifact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.account-artifact-badge,
.account-artifact-copy {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid rgba(51, 65, 85, 0.88);
    border-radius: 5px;
    background: rgba(23, 31, 51, 0.84);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.account-artifact-badge {
    color: #89ceff;
    padding-inline: 7px;
}

.account-artifact-copy {
    color: #958ea0;
    padding-inline: 7px;
}

.account-artifact-download {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 7px;
    color: #dae2fd;
    background: rgba(15, 23, 42, 0.72);
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: opacity 180ms ease, color 180ms ease, border-color 180ms ease;
}

.account-artifact-card:hover .account-artifact-download,
.account-artifact-download:focus-visible {
    opacity: 1;
}

.account-artifact-download:hover {
    color: #d0bcff;
    border-color: rgba(208, 188, 255, 0.42);
}

.account-artifact-download .material-symbols-outlined {
    font-size: 19px;
}

.account-artifact-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

.account-artifact-download-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(137, 206, 255, 0.18);
    border-radius: 8px;
    background: rgba(137, 206, 255, 0.07);
    padding: 0 9px;
    color: #b7ddff;
    font: 700 10px/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.account-artifact-download-row a:hover {
    border-color: rgba(137, 206, 255, 0.42);
    background: rgba(137, 206, 255, 0.14);
    color: #fff;
}

.account-delivery-list {
    display: grid;
    gap: 0;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.42);
}

.account-delivery-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-delivery-row:last-child {
    border-bottom: 0;
}

.account-delivery-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(137, 206, 255, 0.22);
    border-radius: 8px;
    background: rgba(137, 206, 255, 0.08);
    color: #89ceff;
}

.account-delivery-icon .material-symbols-outlined {
    font-size: 24px;
}

.account-delivery-main {
    min-width: 0;
}

.account-delivery-title {
    color: var(--folosa-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-delivery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 5px;
    color: #958ea0;
    font: 600 11px/1.5 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
}

.account-delivery-prompt {
    margin: 8px 0 0;
    color: #cbc3d7;
    font-size: 13px;
    line-height: 1.55;
}

.account-delivery-prompt span {
    color: #89ceff;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-delivery-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 210px;
}

.account-delivery-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 1px solid rgba(137, 206, 255, 0.2);
    border-radius: 8px;
    background: rgba(137, 206, 255, 0.07);
    color: #b7ddff;
    padding: 0 10px;
    font: 700 10px/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.account-delivery-action:hover {
    border-color: rgba(137, 206, 255, 0.5);
    background: rgba(137, 206, 255, 0.14);
    color: #fff;
}

.account-delivery-action .material-symbols-outlined {
    font-size: 17px;
}

.account-delivery-delete {
    width: 34px;
    padding: 0;
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(127, 29, 29, 0.1);
}

.account-delivery-delete:hover {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.22);
}

.account-empty-state {
    grid-column: 1 / -1;
    min-height: 160px;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 1px dashed rgba(51, 65, 85, 0.92);
    border-radius: 8px;
    color: #958ea0;
    background: rgba(15, 23, 42, 0.42);
    text-align: center;
}

.account-empty-state p {
    margin: 0;
    font-size: 14px;
}

.account-ledger-list {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.account-ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-ledger-row:hover {
    background: rgba(137, 206, 255, 0.04);
}

.account-ledger-row-title {
    color: var(--folosa-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.account-ledger-row-meta,
.account-ledger-amount {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    line-height: 1.5;
}

.account-ledger-row-meta {
    color: #64748b;
    margin-top: 3px;
}

.account-ledger-amount {
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.account-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.account-artifact-modal-card {
    max-width: 1040px;
}

.account-artifact-modal-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    min-height: 0;
}

.account-artifact-modal-preview {
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 40%, rgba(137, 206, 255, 0.12), transparent 48%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.account-artifact-modal-preview img,
.account-artifact-modal-preview video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.account-preview-pixel-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(137, 206, 255, 0.08) 25%, transparent 25%) 0 0 / 22px 22px,
        linear-gradient(315deg, rgba(208, 188, 255, 0.07) 25%, transparent 25%) 0 0 / 22px 22px,
        radial-gradient(circle at 50% 38%, rgba(137, 206, 255, 0.14), transparent 42%),
        linear-gradient(135deg, #11182b, #050b16);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.account-preview-pixel-fallback::before {
    content: "";
    width: 64px;
    height: 64px;
    border: 1px solid rgba(208, 188, 255, 0.72);
    border-radius: 14px;
    background: rgba(37, 48, 76, 0.74);
    box-shadow:
        0 0 0 6px rgba(208, 188, 255, 0.08),
        0 24px 54px rgba(0, 0, 0, 0.32);
}

.account-preview-pixel-fallback::after {
    content: attr(data-preview-label);
    position: absolute;
    right: 22px;
    bottom: 118px;
    left: 22px;
    color: rgba(208, 188, 255, 0.9);
    font: 700 12px/1.4 "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

.account-preview-pixel-fallback .material-symbols-outlined {
    display: none;
}

.account-artifact-modal-preview.is-preview-loaded .account-preview-pixel-fallback {
    opacity: 0;
    visibility: hidden;
}

.account-artifact-preview-actions {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.account-artifact-modal-preview {
    position: relative;
}

.account-artifact-preview-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(137, 206, 255, 0.24);
    border-radius: 7px;
    background: rgba(2, 6, 23, 0.72);
    color: #b7ddff;
    font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.account-artifact-modal-list {
    display: grid;
    gap: 10px;
    max-height: 58vh;
    overflow: auto;
    padding-right: 4px;
}

.account-artifact-modal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.62);
    color: #dae2fd;
    text-align: left;
}

.account-artifact-modal-row.is-active {
    border-color: rgba(137, 206, 255, 0.55);
    background: rgba(137, 206, 255, 0.1);
}

.account-artifact-modal-row strong {
    display: block;
    color: var(--folosa-text);
    font-size: 14px;
    line-height: 1.35;
}

.account-artifact-modal-row span {
    color: #958ea0;
    font: 700 10px/1.5 "JetBrains Mono", ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 168px;
    padding: 16px 16px 16px 20px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
}

.account-module-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}

.account-module-accent--cyan {
    background: #10b981;
}

.account-module-accent--violet {
    background: #d0bcff;
}

.account-module-card h3 {
    margin: 0;
    color: var(--folosa-text);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.account-module-card a {
    width: max-content;
    margin-top: auto;
    padding: 7px 10px;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 6px;
    color: #89ceff;
    background: rgba(49, 57, 77, 0.3);
    text-decoration: none;
}

.account-usage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.account-usage-card {
    display: grid;
    gap: 10px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(23, 31, 51, 0.72), rgba(9, 15, 29, 0.72));
}

.account-usage-card span {
    color: #958ea0;
    font: 700 11px/1.2 "Hanken Grotesk", sans-serif;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.account-usage-card strong {
    color: var(--folosa-title);
    font-family: "EB Garamond", serif;
    font-size: 36px;
    line-height: 1;
    font-weight: 500;
}

.account-usage-meter {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(45, 52, 73, 0.8);
}

.account-usage-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #89ceff, #d0bcff);
}

.account-usage-meter--green i {
    background: linear-gradient(90deg, #10b981, #89ceff);
}

.account-usage-note {
    margin: 14px 0 0;
    color: #cbc3d7;
    font-size: 14px;
    line-height: 1.65;
}

.account-api-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 18px;
    margin-top: 16px;
}

.account-api-copy p {
    margin: 0;
    color: #cbc3d7;
    font-size: 14px;
    line-height: 1.65;
}

.account-api-scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.account-api-scope-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(137, 206, 255, 0.18);
    border-radius: 999px;
    color: #b7ddff;
    background: rgba(137, 206, 255, 0.07);
    font: 700 10px/1 "JetBrains Mono", monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-api-terminal {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.72);
}

.account-api-terminal code {
    display: block;
    color: #89ceff;
    font: 500 11px/1.7 "JetBrains Mono", monospace;
    overflow-wrap: anywhere;
}

.account-api-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.account-api-actions .account-outline-action:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

@media (max-width: 1120px) {
    .folosa-shell--account .account-stitch-dashboard {
        grid-template-columns: 1fr;
    }

    .account-stitch-column--left {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .folosa-shell--account .account-stitch-dashboard {
        width: min(100%, calc(100% - 24px)) !important;
        padding: 24px 0 56px !important;
        gap: 18px;
    }

    .account-stitch-column--left,
    .account-module-grid,
    .account-usage-grid,
    .account-api-layout,
    .account-api-actions {
        grid-template-columns: 1fr;
    }

    .account-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .folosa-shell--account .account-dashboard-hero h1 {
        font-size: 36px !important;
    }

    .account-dashboard-hero p {
        font-size: 15px;
    }

    .account-section,
    .account-stitch-card {
        padding: 18px;
    }

    .account-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-action-grid,
    .account-artifact-grid {
        grid-template-columns: 1fr;
    }

    .account-artifact-modal-layout {
        grid-template-columns: 1fr;
    }

    .account-artifact-modal-preview,
    .account-artifact-modal-preview img,
    .account-artifact-modal-preview video {
        min-height: 260px;
    }

    .account-artifact-card {
        min-height: 260px;
    }

    .account-delivery-row {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        padding: 16px;
    }

    .account-delivery-icon {
        width: 42px;
        height: 42px;
    }

    .account-delivery-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        min-width: 0;
    }

    .account-credit-number span {
        font-size: 38px;
    }
}

.folosa-shell--simple section,
.folosa-shell--simple article,
.folosa-shell--simple .glass-panel {
    border-radius: 8px !important;
}

.pricing-consumption-section {
    padding-left: clamp(22px, 3.2vw, 56px);
}

@media (max-width: 1023px) {
    .pricing-consumption-section {
        padding-left: 0;
    }
}

.folosa-shell--admin {
    background:
        radial-gradient(circle at 12% 0%, rgba(160, 120, 255, 0.12), transparent 26rem),
        linear-gradient(180deg, #07101f 0%, #040a14 100%) !important;
    color: var(--folosa-text) !important;
}

.folosa-shell--admin aside,
.folosa-shell--admin main,
.folosa-shell--admin .metric-card,
.folosa-shell--admin .bg-white,
.folosa-shell--admin .bg-\[\#111827\],
.folosa-shell--admin .bg-\[\#121a2f\],
.folosa-shell--admin .bg-\[\#0b111e\],
.folosa-shell--admin .bg-black\/10,
.folosa-shell--admin .bg-black\/20,
.folosa-shell--admin .bg-black\/40 {
    background: linear-gradient(180deg, rgba(20, 29, 47, 0.9) 0%, rgba(10, 16, 29, 0.94) 100%) !important;
    border-color: rgba(137, 206, 255, 0.14) !important;
}

.folosa-shell--admin aside {
    box-shadow: 16px 0 48px rgba(2, 8, 23, 0.28) !important;
}

.folosa-shell--admin .metric-card,
.folosa-shell--admin .rounded-xl,
.folosa-shell--admin .rounded-2xl,
.folosa-shell--admin .sidebar-btn {
    border-radius: 8px !important;
}

.folosa-shell--admin .text-slate-800,
.folosa-shell--admin .text-slate-900,
.folosa-shell--admin .text-slate-100,
.folosa-shell--admin .text-slate-200,
.folosa-shell--admin .text-slate-300,
.folosa-shell--admin .text-white {
    color: var(--folosa-text) !important;
}

.folosa-shell--admin .text-slate-400,
.folosa-shell--admin .text-slate-500,
.folosa-shell--admin .text-slate-600,
.folosa-shell--admin .text-slate-700 {
    color: var(--folosa-text-soft) !important;
}

.folosa-shell--admin input,
.folosa-shell--admin select,
.folosa-shell--admin textarea {
    background: rgba(5, 11, 22, 0.88) !important;
    color: var(--folosa-text) !important;
    border-color: rgba(137, 206, 255, 0.18) !important;
}

.folosa-shell--admin table thead tr {
    background: rgba(4, 10, 19, 0.82) !important;
}

.folosa-shell--admin tr:hover {
    background: rgba(137, 206, 255, 0.05) !important;
}
