﻿/* Qalyx Engine — Lull-aligned production UI */

:root {
    --qe-bg: #070b09;
    --qe-surface: #101816;
    --qe-card: #141f1b;
    --qe-border: rgba(245, 166, 35, 0.14);
    --qe-accent: #F5A623;
    --qe-accent-dim: #C4841A;
    --qe-text: #eef6f1;
    --qe-muted: #8fa89a;
    --qe-glow: rgba(245, 166, 35, 0.22);
    --qe-code-bg: rgba(255, 255, 255, 0.05);
    --qe-nav-height: 80px;
    --qe-mobile-bar: 3.35rem;
    --qe-safe-top: env(safe-area-inset-top, 0px);
    --qe-safe-bottom: env(safe-area-inset-bottom, 0px);
    --qe-safe-left: env(safe-area-inset-left, 0px);
    --qe-safe-right: env(safe-area-inset-right, 0px);
    --qe-plan-lock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcd34d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2'/%3E%3Crect x='5' y='10' width='14' height='11' rx='2.5'/%3E%3Ccircle cx='12' cy='15.5' r='1.25' fill='%23fcd34d' stroke='none'/%3E%3C/svg%3E");
}

body.qe-body {
    background-color: var(--qe-bg);
    color: var(--qe-text);
    cursor: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

html:has(body.qe-body) {
    overflow-x: clip;
    max-width: 100%;
}

body.qe-body .cursor-dot,
body.qe-body .cursor-outline {
    display: none;
}

body.qe-body #bg-canvas {
    opacity: 0;
}

.qe-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.qe-ambient::before,
.qe-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.qe-ambient::before {
    width: 55vw;
    height: 55vw;
    top: -18%;
    right: -12%;
    background: radial-gradient(circle, var(--qe-glow), transparent 68%);
}

.qe-ambient::after {
    width: 42vw;
    height: 42vw;
    bottom: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(22, 156, 70, 0.12), transparent 70%);
}

body.qe-body .navbar {
    background: rgba(7, 11, 9, 0.58);
    border-bottom: 1px solid var(--qe-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.qe-body .logo,
body.qe-body .nav-link {
    color: var(--qe-text);
}

body.qe-body .logo .highlight {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--qe-accent);
    opacity: 1;
    letter-spacing: -0.02em;
}

body.qe-body .qe-nav-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
    flex-shrink: 0;
}

body.qe-body .qe-nav-end .nav-links {
    gap: 1.5rem;
}

body.qe-body .qe-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--qe-text);
    text-decoration: none;
}

body.qe-body .qe-profile-pfp {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 197, 94, 0.45);
    flex-shrink: 0;
}

body.qe-body .qe-profile-link:hover {
    color: var(--qe-accent);
}

body.qe-body .qe-profile-link:hover .qe-profile-pfp {
    border-color: var(--qe-accent);
}

body.qe-body .qe-nav-end .qe-status-pill {
    flex-shrink: 0;
}

body.qe-body .nav-link:hover {
    color: var(--qe-accent);
}

body.qe-body .container {
    max-width: 100%;
    width: 100%;
}

body.qe-body .footer {
    background: var(--qe-surface);
    border-top: 1px solid var(--qe-border);
    color: var(--qe-muted);
    margin-top: auto;
    padding:
        1.25rem 0
        calc(1.25rem + var(--qe-safe-bottom));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

body.qe-body .footer .container {
    max-width: 1380px;
    margin: 0 auto;
    padding-left: calc(1.25rem + var(--qe-safe-left));
    padding-right: calc(1.25rem + var(--qe-safe-right));
    box-sizing: border-box;
}

body.qe-body .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

body.qe-body .footer-content p {
    margin: 0;
    color: var(--qe-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    min-width: 0;
}

body.qe-body .social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

body.qe-body .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    color: var(--qe-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

body.qe-body .social-links a:hover {
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.1);
}

body.qe-body .social-links svg {
    display: block;
    flex-shrink: 0;
}

.qe-wrap {
    flex: 1;
    max-width: 1380px;
    margin: 0 auto;
    padding:
        calc(var(--qe-nav-height) + var(--qe-safe-top) + 1.25rem)
        calc(1.25rem + var(--qe-safe-right))
        calc(2.5rem + var(--qe-safe-bottom))
        calc(1.25rem + var(--qe-safe-left));
    width: 100%;
    min-width: 0;
}

.qe-dashboard {
    display: grid;
    gap: 1rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1100px) {
    .qe-dashboard {
        grid-template-columns: 1fr 320px;
    }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .qe-dashboard {
        grid-template-columns: 1fr;
    }

    .qe-status-rail {
        position: static;
    }
}

.qe-dashboard-shell {
    background: linear-gradient(135deg, rgba(20, 31, 27, 0.95), rgba(16, 24, 22, 0.92));
    border: 1px solid var(--qe-border);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: clip;
    min-height: 560px;
    min-width: 0;
    max-width: 100%;
}

.qe-dashboard-form {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "nav main"
        "footer main";
    min-height: inherit;
    min-width: 0;
    max-width: 100%;
}

.qe-sidebar-nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0.65rem 0.5rem;
    border-right: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.55);
    min-width: 0;
    min-height: 0;
}

.qe-sidebar-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.qe-panel-area {
    grid-area: main;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 480px;
    max-width: 100%;
}

.qe-sidebar-footer {
    grid-area: footer;
    padding: 0.85rem;
    border-right: 1px solid var(--qe-border);
    border-top: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.55);
    min-width: 0;
}

.qe-builder-lock-notice {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.18);
}

.qe-builder-lock-notice[hidden] {
    display: none !important;
}

.qe-dashboard-form.is-building-locked .qe-sidebar-nav,
.qe-dashboard-form.is-building-locked .qe-panel-area {
    opacity: 0.72;
}

.qe-dashboard-form.is-building-locked .qe-sidebar-footer {
    opacity: 1;
}

@media (max-width: 899px) {
    .qe-dashboard-form {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "nav"
            "main"
            "footer";
    }

    .qe-sidebar-nav {
        position: sticky;
        top: calc(var(--qe-nav-height) + var(--qe-safe-top));
        z-index: 12;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.45rem;
        padding:
            0.55rem calc(0.75rem + var(--qe-safe-right))
            0.65rem calc(0.75rem + var(--qe-safe-left));
        border-right: none;
        border-bottom: 1px solid var(--qe-border);
        background: rgba(7, 11, 9, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .qe-sidebar-nav-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.45rem;
    }

    .qe-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .qe-panel-area {
        min-height: auto;
    }

    .qe-sidebar-footer {
        position: sticky;
        bottom: 0;
        z-index: 12;
        border-right: none;
        border-top: 1px solid var(--qe-border);
        background: rgba(7, 11, 9, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding:
            0.75rem calc(0.85rem + var(--qe-safe-right))
            calc(0.75rem + var(--qe-safe-bottom))
            calc(0.85rem + var(--qe-safe-left));
    }
}

.qe-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--qe-muted);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

@media (max-width: 899px) {
    .qe-nav-item {
        width: auto;
        flex-shrink: 0;
        min-height: 2.75rem;
        padding: 0.55rem 0.75rem;
        scroll-snap-align: center;
    }

    .qe-nav-text small {
        display: none;
    }
}

.qe-nav-item:hover {
    background: rgba(245, 166, 35, 0.06);
    color: var(--qe-text);
}

.qe-nav-item.is-active {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
    color: var(--qe-text);
}

.qe-nav-item.is-active .qe-nav-icon {
    color: var(--qe-accent);
}

.qe-nav-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.qe-nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.qe-nav-text strong {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
}

.qe-nav-text small {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--qe-muted);
    line-height: 1.3;
}

.qe-nav-item.is-active .qe-nav-text small {
    color: rgba(143, 168, 154, 0.95);
}

.qe-nav-item--link {
    margin-top: auto;
    text-decoration: none;
    color: inherit;
}

.qe-nav-item--link:hover {
    background: rgba(245, 166, 35, 0.06);
    color: var(--qe-text);
}

@media (max-width: 899px) {
    .qe-nav-item--link {
        margin-top: 0;
        flex-shrink: 0;
    }
}

.qe-sidebar-footer .qe-submit {
    margin-top: 0;
}

.qe-panel-header {
    padding: 1.15rem 1.35rem 0.85rem;
    border-bottom: 1px solid rgba(245, 166, 35, 0.08);
    min-width: 0;
}

.qe-panel-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 0.3rem;
}

.qe-panel-header p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--qe-muted);
    line-height: 1.5;
    max-width: 36rem;
    overflow-wrap: anywhere;
}

.qe-panels {
    flex: 1;
    position: relative;
    padding: 1.15rem 1.35rem 1.35rem;
    min-width: 0;
    max-width: 100%;
}

.qe-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: qe-panel-in 0.22s ease;
    min-width: 0;
    max-width: 100%;
}

.qe-panel.is-active {
    display: flex;
}

@keyframes qe-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qe-panel-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .qe-panel-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.qe-identity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
    margin-bottom: 1.15rem;
    padding: 1.1rem 1.15rem 0.85rem;
    border-radius: 16px;
    border: 1px solid var(--qe-border);
    background: linear-gradient(145deg, rgba(16, 24, 22, 0.65), rgba(10, 15, 13, 0.45));
}

.qe-identity-plan-note {
    grid-column: 1 / -1;
    margin: 0.15rem 0 0;
    padding: 0.55rem 0.65rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #e8c97a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qe-identity-plan-note[hidden] {
    display: none !important;
}

.qe-identity-plan-note::before {
    content: '';
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    margin-right: 0.35rem;
    vertical-align: -0.12rem;
    background: center / contain no-repeat var(--qe-plan-lock-icon);
    opacity: 0.9;
}

.qe-identity-icon-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 7.75rem;
    flex-shrink: 0;
}

.qe-identity-icon-label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--qe-text);
}

.qe-identity-icon-card {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1.35rem;
    border: 2px dashed rgba(245, 166, 35, 0.42);
    background: rgba(245, 166, 35, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.qe-identity-icon-card:hover,
.qe-identity-icon-card:focus-within {
    border-color: rgba(245, 166, 35, 0.75);
    background: rgba(245, 166, 35, 0.1);
    box-shadow: 0 12px 28px rgba(245, 166, 35, 0.12);
}

.qe-identity-icon-card.has-file {
    border-style: solid;
    border-color: rgba(245, 166, 35, 0.55);
    background: #0f1814;
}

.qe-identity-icon-card input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 0;
}

.qe-identity-icon-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qe-accent);
    pointer-events: none;
}

.qe-identity-icon-glyph {
    width: 1.65rem;
    height: 1.65rem;
    opacity: 0.9;
}

.qe-identity-icon-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.qe-identity-icon-img[hidden] {
    display: none !important;
}

.qe-identity-icon-name {
    margin: 0.45rem 0 0;
    max-width: 7.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qe-text);
    text-align: center;
    word-break: break-word;
    line-height: 1.25;
}

.qe-identity-icon-hint {
    margin: 0.4rem 0 0;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.35;
}

.qe-identity-icon-hint[hidden] {
    display: none !important;
}

.qe-identity-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.qe-identity-icon-block.is-plan-locked .qe-identity-icon-card {
    opacity: 0.72;
    cursor: not-allowed;
}

.qe-identity-icon-block.is-plan-locked .qe-identity-icon-card::after {
    content: '';
    position: absolute;
    top: 0.38rem;
    right: 0.38rem;
    z-index: 3;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background:
        center / 0.72rem no-repeat var(--qe-plan-lock-icon),
        rgba(8, 12, 10, 0.88);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.qe-identity-icon-block.is-plan-locked .qe-identity-icon-card:hover,
.qe-identity-icon-block.is-plan-locked .qe-identity-icon-card:focus-within {
    border-color: rgba(245, 166, 35, 0.42);
    background: rgba(245, 166, 35, 0.05);
    box-shadow: none;
}

.qe-identity-icon-block.is-plan-locked .qe-identity-icon-card input[type="file"] {
    pointer-events: none;
}

@media (max-width: 720px) {
    .qe-identity-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .qe-identity-icon-block {
        width: 100%;
    }
}

.qe-behavior-launch-row {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 519px) {
    .qe-behavior-launch-row {
        grid-template-columns: 1fr;
    }
}

.qe-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.35);
}

.qe-status-rail {
    position: sticky;
    top: 5.5rem;
    min-width: 0;
    max-width: 100%;
}

.qe-status-rail .qe-card {
    height: 100%;
}

.qe-mobile-build {
    display: none;
}

.qe-hero {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 920px) {
    .qe-hero {
        grid-template-columns: 1fr auto;
        gap: 3rem;
    }
}

.qe-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--qe-accent);
    margin-bottom: 1rem;
}

.qe-kicker::before {
    content: '';
    width: 1.5rem;
    height: 2px;
    background: var(--qe-accent);
    border-radius: 2px;
}

.qe-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.qe-title em {
    font-style: italic;
    color: var(--qe-accent);
}

.qe-lead {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.65;
    color: var(--qe-muted);
    max-width: 34rem;
    margin: 0 0 1.25rem;
}

.qe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qe-chip {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
    background: rgba(20, 31, 27, 0.7);
}

.qe-chip--accent {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.35);
    color: var(--qe-accent);
}

.qe-grid {
    display: grid;
    gap: 1.25rem;
}

.qe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qe-card {
    background: linear-gradient(135deg, rgba(20, 31, 27, 0.95), rgba(16, 24, 22, 0.9));
    border: 1px solid var(--qe-border);
    border-radius: 18px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.qe-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
}

.qe-file-drop-inner code {
    font-family: ui-monospace, monospace;
    font-size: 0.82em;
    color: var(--qe-accent);
}

.qe-field > label:not(.qe-checkbox) {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--qe-text);
}

.qe-field-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.qe-field-group-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fcd34d;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.28);
    line-height: 1.2;
}

.qe-field--soon-locked.is-plan-locked .qe-perm-grid {
    pointer-events: none;
}

label.qe-checkbox {
    display: flex;
    margin-bottom: 0;
    font-weight: 400;
    font-size: inherit;
}

.qe-optional {
    font-weight: 400;
    color: var(--qe-muted);
}

.qe-field input[type="text"],
.qe-field input[type="url"],
.qe-field input[type="email"],
.qe-field input[type="password"] {
    width: 100%;
    max-width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.6);
    color: var(--qe-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.qe-field input[type="text"]::placeholder,
.qe-field input[type="url"]::placeholder,
.qe-field input[type="email"]::placeholder,
.qe-field input[type="password"]::placeholder {
    color: var(--qe-muted);
    opacity: 0.85;
}

.qe-field input[type="text"]:focus,
.qe-field input[type="url"]:focus,
.qe-field input[type="email"]:focus,
.qe-field input[type="password"]:focus {
    outline: 2px solid rgba(245, 166, 35, 0.25);
    border-color: var(--qe-accent);
    background: rgba(12, 18, 15, 0.85);
}

.qe-source-toggle {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.qe-source-option {
    flex: 1 1 8rem;
    display: block;
    cursor: pointer;
}

.qe-source-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.qe-source-option span {
    display: block;
    text-align: center;
    padding: 0.62rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.45);
    color: var(--qe-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.qe-source-option input:checked + span {
    border-color: rgba(245, 166, 35, 0.55);
    background: rgba(245, 166, 35, 0.12);
    color: var(--qe-text);
}

.qe-source-option input:focus-visible + span {
    outline: 2px solid rgba(245, 166, 35, 0.25);
    outline-offset: 2px;
}

.qe-source-panel[hidden] {
    display: none !important;
}

.qe-url-preview {
    margin-top: 0.85rem;
}

.qe-url-preview[hidden] {
    display: none !important;
}

.qe-url-preview-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.45);
    color: var(--qe-muted);
    font-size: 0.82rem;
}

.qe-url-preview-status[hidden],
.qe-url-preview-message[hidden],
.qe-url-preview-card[hidden],
.qe-url-preview-image-wrap[hidden],
.qe-url-preview-favicon[hidden] {
    display: none !important;
}

.qe-url-preview-message {
    margin: 0.55rem 0 0;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.qe-url-preview-message.is-ok {
    border: 1px solid rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.08);
    color: #FFD699;
}

.qe-url-preview-message.is-warn {
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.08);
    color: #f5d98b;
}

.qe-url-preview-message.is-error {
    border: 1px solid rgba(255, 99, 99, 0.35);
    background: rgba(255, 99, 99, 0.08);
    color: #ffb3b3;
}

.qe-url-preview-card {
    display: flex;
    align-items: stretch;
    margin-top: 0.55rem;
    border-radius: 14px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.55);
    overflow: hidden;
}

.qe-url-preview-card--has-image .qe-url-preview-body {
    border-left: 1px solid var(--qe-border);
}

.qe-url-preview-image-wrap {
    display: none;
    flex: 0 0 7.5rem;
    width: 7.5rem;
    min-height: 5.5rem;
    background: rgba(0, 0, 0, 0.25);
}

.qe-url-preview-card--has-image .qe-url-preview-image-wrap {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    flex: 0 0 7.5rem;
    overflow: hidden;
}

.qe-url-preview-image-wrap img {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    object-fit: cover;
}

.qe-url-preview-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 0.85rem;
}

.qe-url-preview-site-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    min-width: 0;
}

.qe-url-preview-site-row[hidden] {
    display: none !important;
}

.qe-url-preview-favicon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
    background: transparent;
}

.qe-url-preview-favicon.is-loaded {
    background: rgba(255, 255, 255, 0.06);
}

.qe-url-preview-site {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--qe-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
}

.qe-url-preview-title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--qe-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.qe-url-preview-title[hidden],
.qe-url-preview-desc[hidden] {
    display: none !important;
}

.qe-url-preview-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--qe-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 520px) {
    .qe-url-preview-card--has-image {
        flex-direction: column;
    }

    .qe-url-preview-card--has-image .qe-url-preview-body {
        border-left: none;
        border-top: 1px solid var(--qe-border);
    }

    .qe-url-preview-card--has-image .qe-url-preview-image-wrap {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: 9rem;
        aspect-ratio: 16 / 9;
    }

    .qe-url-preview-card--has-image .qe-url-preview-image-wrap img {
        width: 100%;
        height: 100%;
        max-height: 9rem;
    }
}

.qe-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    color: var(--qe-muted);
}

.qe-field--toggle {
    margin-top: 0.15rem;
}

.qe-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.qe-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.qe-checkbox-box {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    border-radius: 0.35rem;
    border: 1.5px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.6);
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.qe-checkbox input:checked + .qe-checkbox-box {
    border-color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.18);
}

.qe-checkbox input:checked + .qe-checkbox-box::after {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.12rem;
    width: 0.28rem;
    height: 0.55rem;
    border: solid var(--qe-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.qe-checkbox input:focus-visible + .qe-checkbox-box {
    outline: 2px solid rgba(245, 166, 35, 0.35);
    outline-offset: 2px;
}

.qe-checkbox-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.qe-checkbox-copy strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.qe-checkbox-copy .qe-hint {
    margin-top: 0;
}

.qe-panel-grid .qe-field,
.qe-panel .qe-field {
    margin: 0;
}

.qe-options-row {
    display: grid;
    gap: 0.75rem;
}

.qe-options-row--split {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .qe-options-row--split {
        grid-template-columns: 1fr;
    }
}

.qe-field select,
.qe-field input[type="number"],
.qe-field input[type="color"],
.qe-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.6);
    color: var(--qe-text);
    font-size: 0.95rem;
    font-family: inherit;
}

/* Hide native number steppers (Chrome, Safari, Edge, Firefox) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Custom select — matches text inputs & dark green theme */
.qe-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.qe-select.is-disabled .qe-select-trigger,
.qe-select-trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.qe-select.is-open {
    z-index: 50;
}

.qe-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.qe-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.6);
    color: var(--qe-text);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.qe-select-trigger:hover {
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(12, 18, 15, 0.85);
}

.qe-select.is-open .qe-select-trigger,
.qe-select-trigger:focus-visible {
    outline: 2px solid rgba(245, 166, 35, 0.25);
    border-color: var(--qe-accent);
    background: rgba(12, 18, 15, 0.92);
}

.qe-select-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qe-select-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--qe-accent);
    transition: transform 0.2s ease;
}

.qe-select-chevron svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.qe-select.is-open .qe-select-chevron {
    transform: rotate(180deg);
}

.qe-select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: linear-gradient(180deg, #141f1b 0%, #101816 100%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    max-height: 16rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 166, 35, 0.35) transparent;
}

.qe-select-menu[hidden] {
    display: none !important;
}

.qe-select-option {
    padding: 0.62rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--qe-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.35;
}

.qe-select-option:hover,
.qe-select-option.is-highlighted {
    background: rgba(245, 166, 35, 0.1);
    color: var(--qe-text);
}

.qe-select-option.is-selected {
    background: rgba(245, 166, 35, 0.16);
    color: var(--qe-accent);
    font-weight: 600;
}

.qe-select-option.is-selected::after {
    content: "✓";
    float: right;
    font-size: 0.82rem;
    opacity: 0.9;
}

.qe-select-option.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
}

/* Native fallback when JS has not enhanced yet */
.qe-field select:not(.qe-select-native) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
}

.qe-field select:not(.qe-select-native) option {
    background: #141f1b;
    color: #eef6f1;
}

.qe-field input[type="color"] {
    height: 2.75rem;
    padding: 0.35rem;
    cursor: pointer;
}

.qe-field select:focus,
.qe-field input[type="number"]:focus,
.qe-field textarea:focus {
    outline: 2px solid rgba(245, 166, 35, 0.25);
    border-color: var(--qe-accent);
}

.qe-field textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.qe-perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.qe-checkbox--inline {
    align-items: center;
    gap: 0.55rem;
}

.qe-checkbox--inline .qe-checkbox-box {
    margin-top: 0;
}

.qe-checkbox-label {
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.2;
}

.qe-file-drop {
    position: relative;
    border: 1.5px dashed var(--qe-border);
    border-radius: 14px;
    min-height: 4.25rem;
    max-width: 100%;
    transition: border-color 0.2s, background 0.2s;
}

.qe-file-drop--compact {
    min-height: 3rem;
}

.qe-file-drop:hover,
.qe-file-drop:focus-within,
.qe-file-drop.has-file {
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.06);
}

.qe-file-drop.is-invalid {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(239, 68, 68, 0.08);
}

.qe-file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.qe-file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: inherit;
    padding: 0.85rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--qe-muted);
    pointer-events: none;
}

.qe-file-drop-inner svg {
    color: var(--qe-accent);
}

.qe-file-limit {
    font-size: 0.72rem;
    color: var(--qe-muted);
    opacity: 0.9;
}

.qe-file-meta {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.45);
    display: grid;
    gap: 0.4rem;
}

.qe-file-meta[hidden],
.qe-icon-preview[hidden] {
    display: none !important;
}

.qe-file-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
}

.qe-file-meta-key {
    color: var(--qe-muted);
    flex-shrink: 0;
}

.qe-file-meta-val {
    color: var(--qe-text);
    text-align: right;
    word-break: break-all;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.qe-icon-preview {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--qe-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qe-submit,
.qe-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--qe-accent);
    border-radius: 20px;
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    color: #041208;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 100%;
}

.qe-submit:hover:not(:disabled),
.qe-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(245, 166, 35, 0.25);
}

.qe-submit:disabled,
.qe-download:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qe-submit.is-quota-reached {
    opacity: 1;
    cursor: pointer;
}

.qe-submit.is-quota-reached:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(245, 166, 35, 0.25);
}

.qe-download:disabled:hover {
    transform: none;
    box-shadow: none;
}

.qe-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(4, 18, 8, 0.25);
    border-top-color: #041208;
    border-radius: 50%;
    animation: qe-spin 0.7s linear infinite;
}

@keyframes qe-spin {
    to { transform: rotate(360deg); }
}

.qe-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qe-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--qe-muted);
}

.qe-status-pill--ok {
    background: rgba(245, 166, 35, 0.15);
    color: var(--qe-accent);
}

.qe-status-pill--warn {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
}

.qe-status-empty {
    text-align: center;
    padding: 2rem 0.5rem;
    color: var(--qe-muted);
}

.qe-status-icon {
    margin-bottom: 0.75rem;
    color: var(--qe-accent);
    opacity: 0.85;
}

.qe-status-app {
    margin-bottom: 0.85rem;
}

.qe-status-app strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
}

.qe-status-row {
    margin-bottom: 0.85rem;
}

.qe-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--qe-muted);
    margin-bottom: 0.2rem;
}

.qe-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    text-transform: capitalize;
}

.qe-badge--running {
    background: rgba(245, 166, 35, 0.15);
    color: var(--qe-accent);
}

.qe-badge--completed {
    background: rgba(245, 166, 35, 0.22);
    color: var(--qe-accent);
}

.qe-badge--failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.qe-status-message {
    font-size: 0.92rem;
    margin: 0 0 1rem;
    line-height: 1.5;
    color: var(--qe-muted);
}

.qe-pipeline {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.qe-pipeline li {
    position: relative;
    padding: 0.45rem 0.65rem 0.45rem 1.75rem;
    font-size: 0.82rem;
    border-radius: 8px;
    color: var(--qe-muted);
}

.qe-pipeline li::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 2px solid var(--qe-border);
    background: transparent;
}

.qe-pipeline li.is-active {
    color: var(--qe-text);
    background: rgba(245, 166, 35, 0.08);
}

.qe-pipeline li.is-active::before {
    border-color: var(--qe-accent);
    background: var(--qe-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.qe-pipeline li.is-done {
    color: var(--qe-text);
}

.qe-pipeline li.is-done::before {
    border-color: var(--qe-accent);
    background: var(--qe-accent);
}

@media (max-width: 768px) {
    .qe-wrap {
        padding:
            calc(var(--qe-nav-height) + var(--qe-safe-top) + 0.75rem)
            calc(0.85rem + var(--qe-safe-right))
            calc(1.5rem + var(--qe-safe-bottom))
            calc(0.85rem + var(--qe-safe-left));
    }

    body.qe-body .container {
        padding-left: calc(1rem + var(--qe-safe-left));
        padding-right: calc(1rem + var(--qe-safe-right));
    }

    .qe-dashboard-shell {
        border-radius: 14px;
    }

    .qe-dashboard {
        gap: 0.85rem;
    }

    .qe-dashboard-shell {
        min-height: auto;
    }

    .qe-panel-area {
        min-height: auto;
    }

    .qe-panel-header {
        padding: 0.95rem 1rem 0.75rem;
    }

    .qe-panel-header h2 {
        font-size: 1.05rem;
    }

    .qe-panel-header p {
        font-size: 0.8rem;
    }

    .qe-panels {
        padding: 0.95rem 1rem 1rem;
    }

    .qe-panel-grid {
        grid-template-columns: 1fr;
    }

    .qe-status-rail {
        position: static;
    }

    .qe-card {
        padding: 1.1rem 1rem;
        border-radius: 14px;
    }

    .qe-field input[type="text"],
    .qe-field input[type="url"],
    .qe-field input[type="email"],
    .qe-field input[type="password"],
    .qe-field select,
    .qe-field input[type="number"],
    .qe-field textarea,
    .qe-select-trigger {
        font-size: 16px;
    }

    .qe-file-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .qe-file-meta-val {
        text-align: left;
        width: 100%;
    }

    .qe-file-drop-inner {
        padding: 0.75rem 0.65rem;
        font-size: 0.82rem;
    }

    .qe-toggle-list {
        padding: 0.75rem 0.85rem;
    }

    .qe-submit,
    .qe-download {
        min-height: 2.85rem;
        padding: 0.85rem 1.25rem;
    }

    .qe-pipeline li {
        font-size: 0.78rem;
        padding: 0.4rem 0.55rem 0.4rem 1.6rem;
    }

    .qe-select-menu {
        max-height: min(14rem, 45vh);
    }

    body.qe-body .nav-container {
        height: 64px;
        padding-left: calc(1rem + var(--qe-safe-left));
        padding-right: calc(1rem + var(--qe-safe-right));
    }

    body.qe-body {
        --qe-nav-height: 64px;
    }

    body.qe-body .footer {
        padding-top: 1rem;
        padding-bottom: calc(1rem + var(--qe-safe-bottom));
    }

    body.qe-body .footer .container {
        padding-left: calc(1rem + var(--qe-safe-left));
        padding-right: calc(1rem + var(--qe-safe-right));
    }

    body.qe-body .footer-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .qe-panel-grid {
        grid-template-columns: 1fr;
    }

    .qe-perm-grid {
        grid-template-columns: 1fr;
    }

    .qe-nav-text strong {
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .qe-nav-text {
        display: none;
    }

    .qe-nav-item {
        padding: 0.65rem;
        min-width: 2.75rem;
        justify-content: center;
    }

    .qe-nav-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qe-panel {
        animation: none;
    }

    .qe-select-chevron {
        transition: none;
    }
}

/* Landing page (/app) */

body.qe-landing {
    color-scheme: dark;
}

.qe-landing-grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(245, 166, 35, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 166, 35, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

.qe-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.qe-reveal--delay { transition-delay: 0.1s; }
.qe-reveal--delay-2 { transition-delay: 0.2s; }

.qe-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.qe-kicker--center {
    justify-content: center;
}

.qe-kicker--center::before {
    display: none;
}

.qe-cta-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.qe-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.qe-logo-img {
    display: block;
    width: auto;
    height: clamp(1.65rem, 4.5vw, 2.15rem);
    max-width: min(11rem, 42vw);
    object-fit: contain;
}

/* ── Floating glass navbar (landing) ───────────────────── */
body.qe-landing .navbar {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.85rem clamp(0.75rem, 3vw, 1.5rem) 0;
    transition: padding 0.25s ease;
}

body.qe-landing .qe-nav.qe-nav-scrolled {
    padding-top: 0.5rem;
}

.qe-nav-shell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

.qe-nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.6rem 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    background: rgba(10, 16, 14, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.qe-nav-scrolled .qe-nav-inner {
    background: rgba(7, 11, 9, 0.88);
    border-color: rgba(245, 166, 35, 0.22);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.qe-nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qe-nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--qe-muted);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.qe-nav-link:hover {
    color: var(--qe-text);
    background: rgba(255, 255, 255, 0.05);
}

.qe-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: auto;
}

body.qe-body .qe-nav-login {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--qe-text);
    padding: 0.45rem 0.5rem;
}

body.qe-body .qe-nav-login:hover {
    color: var(--qe-accent);
}

.qe-nav-start {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    color: #041208;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(245, 166, 35, 0.5);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qe-nav-start-icon {
    width: 0.95rem;
    height: 0.95rem;
    transition: transform 0.2s ease;
}

.qe-nav-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.3);
}

.qe-nav-start:hover .qe-nav-start-icon {
    transform: translateX(2px);
}

/* Landing nav: .qe-nav-start { display:inline-flex } overrides the [hidden] attribute */
body.qe-landing .qe-nav-authed-only {
    display: none !important;
}

body.qe-landing.qe-nav-is-authed .qe-nav-guest-only {
    display: none !important;
}

body.qe-landing.qe-nav-is-authed .qe-nav-actions .qe-nav-authed-only {
    display: inline-flex !important;
}

body.qe-landing.qe-nav-is-authed .qe-mobile-menu .qe-nav-authed-only {
    display: inline-flex !important;
}

/* Wordmark — QALYX.ENGINE (Space Grotesk + green italic .ENGINE) */
.qe-wordmark,
body.qe-body .qe-nav-inner .logo,
body.qe-body .nav-container .logo,
body.qe-login-page .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--qe-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    white-space: nowrap;
    gap: 0.4rem;
}

.qe-nav-beta {
    display: inline-block;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -0.12rem;
    margin-left: 0.05rem;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: var(--qe-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.95;
}

body.qe-body .qe-nav-scroll {
    text-decoration: none;
}

/* Mobile burger + menu */
.qe-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid var(--qe-border);
    border-radius: 50%;
    background: rgba(7, 11, 9, 0.5);
    cursor: pointer;
}

.qe-nav-burger span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--qe-text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.qe-nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.qe-nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.qe-nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.qe-mobile-menu {
    position: fixed;
    top: calc(var(--qe-nav-height) + var(--qe-safe-top));
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem calc(1rem + var(--qe-safe-right)) calc(1rem + var(--qe-safe-bottom)) calc(1rem + var(--qe-safe-left));
    background: rgba(7, 11, 9, 0.96);
    border-bottom: 1px solid var(--qe-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.qe-mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
}

.qe-mobile-menu a {
    padding: 0.85rem 0.75rem;
    border-radius: 0.6rem;
    color: var(--qe-text);
    font-weight: 500;
    text-decoration: none;
}

.qe-mobile-menu a:hover {
    background: rgba(245, 166, 35, 0.08);
    color: var(--qe-accent);
}

.qe-mobile-menu .qe-mobile-login {
    margin-top: 0.35rem;
    border-top: 1px solid var(--qe-border);
    border-radius: 0;
    font-weight: 600;
}

.qe-mobile-menu .qe-mobile-start {
    margin-top: 0.5rem;
    padding: 0.85rem;
    text-align: center;
    justify-content: center;
}

.qe-mobile-menu .qe-mobile-start:hover {
    color: #041208;
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
}

@media (max-width: 880px) {
    .qe-nav-links {
        display: none;
    }

    body.qe-landing .qe-nav-login {
        display: none;
    }

    body.qe-landing .qe-nav-burger {
        display: flex;
        flex-shrink: 0;
    }

    .qe-nav-inner {
        padding: 0.5rem 0.55rem 0.5rem 0.85rem;
    }

    .qe-nav-start {
        padding: 0.5rem 0.85rem;
        font-size: 0.84rem;
    }

    .qe-nav-inner .logo {
        font-size: 1.2rem;
    }

    .qe-nav-inner .logo .qe-nav-beta {
        font-size: 0.56rem;
        margin-top: -0.1rem;
    }
}

@media (max-width: 400px) {
    .qe-nav-start {
        padding: 0.48rem 0.7rem;
        font-size: 0.8rem;
    }

    .qe-nav-start-icon {
        display: none;
    }
}

@media (min-width: 881px) {
    .qe-mobile-menu {
        display: none !important;
    }
}

.qe-landing-wrap {
    max-width: 1180px;
}

.qe-landing-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: 1.25rem;
    overflow: visible;
    isolation: isolate;
}

.qe-hero-dots {
    position: absolute;
    inset: -5rem -2.5rem 0;
    z-index: -2;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.28) 1.5px, transparent 1.6px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 88% 72% at 50% 16%, black 12%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 16%, black 12%, transparent 74%);
    opacity: 0.55;
}

.qe-hero-aurora {
    position: absolute;
    top: -9rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 920px);
    height: 32rem;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.18), transparent 62%);
    filter: blur(36px);
    pointer-events: none;
    z-index: -1;
}

.qe-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.75rem;
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    background: rgba(20, 31, 27, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--qe-text);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.qe-hero-badge:hover {
    border-color: rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.08);
}

.qe-hero-badge-tag {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #F5A623, #C4841A);
    color: #041208;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qe-hero-badge-arrow {
    width: 0.85rem;
    height: 0.85rem;
    color: var(--qe-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.qe-hero-badge:hover .qe-hero-badge-arrow {
    transform: translateX(2px);
    color: var(--qe-accent);
}

.qe-hero-title {
    max-width: 18ch;
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    margin: 0 auto 1.35rem;
}

.qe-hero-lead {
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.qe-landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.qe-hero-actions {
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1.6rem;
}

.qe-landing-cta {
    width: auto;
    min-width: 11rem;
    margin-top: 0;
}

.qe-landing-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.qe-landing-ghost:hover {
    border-color: rgba(245, 166, 35, 0.45);
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.06);
}

.qe-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.65rem;
    margin: 0 0 3.5rem;
    padding: 0;
    list-style: none;
}

.qe-hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--qe-muted);
}

.qe-hero-trust svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--qe-accent);
}

/* Hero product showcase — builder mockup */
.qe-hero-showcase {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.qe-showcase-glow {
    position: absolute;
    inset: -12% 2% 4%;
    background: radial-gradient(ellipse at top, var(--qe-glow), transparent 64%);
    filter: blur(45px);
    pointer-events: none;
    z-index: -1;
}

.qe-hero-mock {
    position: relative;
}

.qe-hero-mock-frame {
    border-radius: 18px;
    border: 1px solid var(--qe-border);
    background: linear-gradient(160deg, rgba(20, 31, 27, 0.98), rgba(10, 16, 14, 0.96));
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 166, 35, 0.06) inset;
    overflow: hidden;
}

.qe-showcase-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(245, 166, 35, 0.1);
    background: rgba(0, 0, 0, 0.25);
    min-width: 0;
}

.qe-landing-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.qe-landing-dot:first-child { background: rgba(239, 68, 68, 0.6); }
.qe-landing-dot:nth-child(2) { background: rgba(234, 179, 8, 0.6); }
.qe-landing-dot:nth-child(3) { background: rgba(245, 166, 35, 0.6); }

.qe-showcase-url {
    flex: 1;
    min-width: 0;
    margin: 0 auto;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: rgba(7, 11, 9, 0.6);
    border: 1px solid var(--qe-border);
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--qe-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qe-hero-mock-app {
    background: var(--qe-bg);
}

.qe-hero-mock-topbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.94);
    min-width: 0;
}

.qe-hero-mock-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--qe-text);
    white-space: nowrap;
}

.qe-hero-mock-logo .highlight {
    color: var(--qe-accent);
    font-style: italic;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
}

.qe-hero-mock-logo .qe-nav-beta {
    font-size: 0.48rem;
    margin-top: -0.15rem;
}

.qe-hero-mock-toplinks {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--qe-muted);
    white-space: nowrap;
}

.qe-hero-mock-status {
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.1);
    color: var(--qe-accent);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.qe-hero-mock-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 0.65rem;
    padding: 0.65rem;
    min-width: 0;
}

.qe-hero-mock-shell {
    background: linear-gradient(135deg, rgba(20, 31, 27, 0.95), rgba(16, 24, 22, 0.92));
    border: 1px solid var(--qe-border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 21rem;
    min-width: 0;
}

.qe-hero-mock-form {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "nav main"
        "footer main";
    min-height: 21rem;
    min-width: 0;
}

.qe-hero-mock-sidebar {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.4rem 0.35rem;
    border-right: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.55);
    min-width: 0;
}

.qe-hero-mock-tab {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--qe-muted);
    text-align: left;
}

.qe-hero-mock-tab.is-active {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
    color: var(--qe-text);
}

.qe-hero-mock-tab-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    margin-top: 0.08rem;
    opacity: 0.85;
}

.qe-hero-mock-tab.is-active .qe-hero-mock-tab-icon {
    color: var(--qe-accent);
}

.qe-hero-mock-tab-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.qe-hero-mock-tab-copy strong {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
}

.qe-hero-mock-tab-copy small {
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--qe-muted);
    line-height: 1.25;
}

.qe-hero-mock-tab.is-active .qe-hero-mock-tab-copy small {
    color: rgba(143, 168, 154, 0.95);
}

.qe-hero-mock-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qe-hero-mock-panel-head {
    padding: 0.7rem 0.8rem 0.55rem;
    border-bottom: 1px solid rgba(245, 166, 35, 0.08);
    text-align: left;
}

.qe-hero-mock-panel-head h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    margin: 0 0 0.22rem;
}

.qe-hero-mock-panel-head p {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-hero-mock-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem 0.85rem;
    text-align: left;
    min-width: 0;
}

.qe-hero-mock-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem 0.75rem;
    align-items: start;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: linear-gradient(145deg, rgba(16, 24, 22, 0.65), rgba(10, 15, 13, 0.45));
}

.qe-hero-mock-icon-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4.5rem;
    flex-shrink: 0;
}

.qe-hero-mock-field-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--qe-text);
}

.qe-hero-mock-icon {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 0.85rem;
    border: 2px solid rgba(245, 166, 35, 0.55);
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.18);
}

.qe-hero-mock-icon-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #041208;
}

.qe-hero-mock-fields {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.qe-hero-mock-field {
    min-width: 0;
}

.qe-hero-mock-input {
    display: block;
    width: 100%;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.55);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--qe-text);
    box-sizing: border-box;
}

.qe-hero-mock-input.is-muted {
    color: var(--qe-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.58rem;
}

.qe-hero-mock-source {
    display: inline-flex;
    padding: 0.18rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.45);
    gap: 0.12rem;
}

.qe-hero-mock-source span {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-hero-mock-source span.is-active {
    background: rgba(245, 166, 35, 0.16);
    color: var(--qe-accent);
}

.qe-hero-mock-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1.5px dashed rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.05);
    text-align: center;
}

.qe-hero-mock-drop svg {
    width: 1rem;
    height: 1rem;
    color: var(--qe-accent);
}

.qe-hero-mock-drop span {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-hero-mock-drop small {
    font-size: 0.54rem;
    color: var(--qe-muted);
}

.qe-hero-mock-buildbar {
    grid-area: footer;
    padding: 0.55rem;
    border-right: 1px solid var(--qe-border);
    border-top: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.55);
}

.qe-hero-mock-build-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.48rem 0.55rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    color: #041208;
    font-size: 0.62rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.22);
}

.qe-hero-mock-rail {
    min-width: 0;
}

.qe-hero-mock-rail-card {
    height: 100%;
    padding: 0.7rem 0.65rem;
    border-radius: 14px;
    border: 1px solid var(--qe-border);
    background: linear-gradient(160deg, rgba(20, 31, 27, 0.92), rgba(10, 16, 14, 0.88));
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.qe-hero-mock-rail-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    margin: 0 0 0.55rem;
}

.qe-hero-mock-rail-app,
.qe-hero-mock-rail-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    font-size: 0.58rem;
    color: var(--qe-muted);
}

.qe-hero-mock-rail-app strong {
    color: var(--qe-text);
    font-size: 0.6rem;
    font-weight: 600;
}

.qe-hero-mock-badge {
    font-style: normal;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--qe-accent);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.qe-hero-mock-pipeline {
    list-style: none;
    margin: 0.55rem 0 0.65rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.qe-hero-mock-pipeline li {
    position: relative;
    padding-left: 0.9rem;
    font-size: 0.54rem;
    line-height: 1.35;
    color: var(--qe-muted);
}

.qe-hero-mock-pipeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.28rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 166, 35, 0.35);
    box-sizing: border-box;
}

.qe-hero-mock-pipeline li.is-done {
    color: rgba(143, 168, 154, 0.95);
}

.qe-hero-mock-pipeline li.is-done::before {
    background: var(--qe-accent);
    border-color: var(--qe-accent);
}

.qe-hero-mock-pipeline li.is-active {
    color: var(--qe-text);
    font-weight: 600;
}

.qe-hero-mock-pipeline li.is-active::before {
    background: rgba(245, 166, 35, 0.25);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.qe-hero-mock-download {
    display: block;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.1);
    color: var(--qe-accent);
    font-size: 0.58rem;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}

.qe-hero-mock-phone {
    position: absolute;
    right: -0.25rem;
    bottom: -1.5rem;
    width: 7.5rem;
    aspect-ratio: 9 / 18;
    border-radius: 1.35rem;
    border: 2px solid rgba(245, 166, 35, 0.45);
    background: linear-gradient(180deg, #0d1512 0%, #101f19 100%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    animation: qe-float-b 5s ease-in-out infinite;
    z-index: 3;
}

.qe-showcase-phone-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: calc(100% - 1.2rem);
    padding: 0.85rem;
    text-align: center;
}

.qe-landing-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(245, 166, 35, 0.4);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    color: #041208;
}

.qe-hero-mock-phone-icon span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.qe-landing-apk-badge {
    margin-top: 0.5rem;
    font-family: ui-monospace, monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--qe-accent);
}

.qe-landing-phone-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-showcase-chips {
    position: static;
}

.qe-showcase-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(16, 24, 22, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qe-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    z-index: 4;
}

.qe-showcase-chip svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--qe-accent);
}

.qe-showcase-chip--1 {
    top: 2.75rem;
    left: -1.35rem;
    animation: qe-float-a 4.5s ease-in-out infinite;
}

.qe-showcase-chip--2 {
    bottom: 2.25rem;
    left: -1.5rem;
    animation: qe-float-b 5s ease-in-out infinite 0.5s;
}

@keyframes qe-float-a {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes qe-float-b {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@media (max-width: 900px) {
    .qe-hero-showcase {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        padding-bottom: 1.25rem;
    }

    .qe-hero-mock {
        width: 100%;
        max-width: 100%;
    }

    .qe-hero-mock-frame {
        max-width: 100%;
    }

    .qe-showcase-bar {
        padding: 0.55rem 0.7rem;
    }

    .qe-showcase-url {
        font-size: 0.62rem;
        padding: 0.22rem 0.65rem;
    }

    .qe-hero-mock-topbar {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .qe-hero-mock-toplinks {
        order: 3;
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .qe-hero-mock-layout {
        grid-template-columns: 1fr;
        padding: 0.55rem;
    }

    .qe-hero-mock-rail {
        display: none;
    }

    .qe-hero-mock-shell {
        min-height: auto;
    }

    .qe-hero-mock-form {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "nav"
            "main"
            "footer";
        min-height: auto;
    }

    .qe-hero-mock-sidebar {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.25rem;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--qe-border);
        padding: 0.4rem;
    }

    .qe-hero-mock-tab {
        flex: unset;
        min-width: 0;
        justify-content: center;
        padding: 0.38rem 0.2rem;
    }

    .qe-hero-mock-tab-copy {
        display: none;
    }

    .qe-hero-mock-tab-icon {
        margin-top: 0;
    }

    .qe-hero-mock-panel-head p {
        display: none;
    }

    .qe-hero-mock-panel-body > .qe-hero-mock-field {
        display: none;
    }

    .qe-hero-mock-buildbar {
        border-right: none;
    }

    .qe-hero-mock-phone {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(42vw, 7.5rem);
        margin: 0.75rem auto 0;
    }

    .qe-showcase-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0 0.25rem;
    }

    .qe-showcase-chip {
        position: static;
        animation: none;
        font-size: 0.72rem;
        padding: 0.45rem 0.7rem;
        white-space: normal;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }

    .qe-showcase-chip svg {
        width: 0.9rem;
        height: 0.9rem;
    }

    .qe-landing-app-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .qe-hero-mock-phone-icon span {
        font-size: 0.85rem;
    }

    .qe-landing-phone-label {
        font-size: 0.76rem;
    }

    .qe-landing-apk-badge {
        font-size: 0.6rem;
    }

    .qe-hero-trust {
        gap: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .qe-hero-trust li {
        font-size: 0.8rem;
    }

    .qe-landing-hero {
        margin-bottom: 2rem;
    }

    .qe-showcase-glow {
        inset: -8% 0 0;
        filter: blur(30px);
    }
}

@media (max-width: 420px) {
    .qe-hero-mock-tab {
        padding: 0.32rem 0.15rem;
    }

    .qe-hero-mock-tab-icon {
        width: 0.85rem;
        height: 0.85rem;
    }

    .qe-hero-mock-identity {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 0.5rem;
    }

    .qe-hero-mock-fields {
        width: 100%;
    }

    .qe-hero-mock-phone {
        width: min(38vw, 6.5rem);
    }

    .qe-showcase-chips {
        flex-direction: row;
        align-items: stretch;
    }

    .qe-showcase-chip {
        justify-content: center;
        text-align: center;
    }

    .qe-hero-badge-text {
        font-size: 0.72rem;
    }

    .qe-hero-title {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }
}

.qe-landing-marquee {
    overflow: hidden;
    margin-bottom: 3.5rem;
    padding: 0.85rem 0;
    border-block: 1px solid rgba(245, 166, 35, 0.08);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.qe-landing-marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: qe-marquee 55s linear infinite;
}

.qe-landing-marquee-track span {
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--qe-muted);
    opacity: 0.7;
}

@keyframes qe-marquee {
    to { transform: translateX(-50%); }
}

.qe-landing-phone-notch {
    width: 2.5rem;
    height: 0.35rem;
    margin: 0.55rem auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.qe-landing-phone-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: calc(100% - 1.2rem);
    padding: 1rem;
    text-align: center;
}

.qe-landing-phone-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-landing-phone-sub {
    font-size: 0.75rem;
    color: var(--qe-muted);
}

.qe-landing-section {
    margin-bottom: 4rem;
}

.qe-landing-section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.qe-landing-section-desc {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--qe-muted);
}

.qe-landing-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

.qe-landing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.qe-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 960px) {
    .qe-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .qe-features-grid {
        grid-template-columns: 1fr;
    }
}

.qe-landing-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.qe-landing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.35);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.qe-landing-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.85rem;
    color: var(--qe-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 166, 35, 0.1);
    padding: 0.35rem;
}

.qe-landing-card-icon svg {
    width: 100%;
    height: 100%;
}

.qe-landing-card h3,
.qe-landing-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin: 0 0 0.45rem;
}

.qe-landing-card p,
.qe-landing-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--qe-muted);
}

.qe-landing-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    position: relative;
}

@media (min-width: 900px) {
    .qe-landing-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .qe-landing-steps::before {
        content: '';
        position: absolute;
        top: 2rem;
        left: 16.66%;
        right: 16.66%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.25) 15%, rgba(245, 166, 35, 0.25) 85%, transparent);
        pointer-events: none;
    }
}

.qe-landing-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.qe-landing-step:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 166, 35, 0.3);
}

.qe-landing-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.14);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--qe-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.qe-landing-step code {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    color: var(--qe-accent);
}

/* Pricing */
.qe-pricing-grid {
    display: grid;
    gap: 1.1rem;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 64rem;
    margin: 0 auto;
    padding-top: 0.85rem;
}

@media (min-width: 880px) {
    .qe-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.qe-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.4rem;
    isolation: isolate;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.qe-pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.28) 1.5px, transparent 1.6px);
    background-size: 24px 24px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 95% 88% at 50% 8%, black 10%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 95% 88% at 50% 8%, black 10%, transparent 76%);
}

.qe-pricing-card .qe-pricing-head,
.qe-pricing-card .qe-pricing-features,
.qe-pricing-card .qe-pricing-cta {
    position: relative;
    z-index: 1;
}

.qe-pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.35);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.qe-pricing-card--gold {
    border-color: rgba(245, 166, 35, 0.45);
    background: linear-gradient(160deg, rgba(245, 166, 35, 0.1), rgba(16, 24, 22, 0.92));
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 166, 35, 0.12) inset;
}

.qe-pricing-card--gold::before {
    opacity: 0.62;
    mask-image: radial-gradient(ellipse 95% 88% at 50% 8%, black 14%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 95% 88% at 50% 8%, black 14%, transparent 78%);
}

@media (min-width: 880px) {
    .qe-pricing-card--gold {
        transform: scale(1.04);
    }

    .qe-pricing-card--gold:hover {
        transform: scale(1.04) translateY(-4px);
    }
}

.qe-pricing-ribbon {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    color: #041208;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

.qe-pricing-current-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.qe-pricing-current-badge[hidden] {
    display: none !important;
}

.qe-pricing-card.is-current-plan {
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.2) inset, 0 22px 50px rgba(0, 0, 0, 0.4);
}

.qe-pricing-card.is-current-plan:hover {
    transform: none;
    cursor: default;
}

@media (min-width: 880px) {
    .qe-pricing-card--gold.is-current-plan {
        transform: scale(1.04);
    }

    .qe-pricing-card--gold.is-current-plan:hover {
        transform: scale(1.04);
    }
}

.qe-pricing-head {
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--qe-border);
}

.qe-pricing-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.qe-pricing-card--gold .qe-pricing-name {
    color: var(--qe-accent);
}

.qe-pricing-tagline {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--qe-muted);
}

.qe-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.qe-pricing-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--qe-text);
}

.qe-pricing-period {
    font-size: 0.8rem;
    color: var(--qe-muted);
    line-height: 1.35;
}

.qe-pricing-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.qe-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--qe-text);
}

.qe-pricing-features li.is-no {
    color: var(--qe-muted);
}

.qe-pricing-features .qe-pricing-group {
    display: block;
    padding: 0.5rem 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-accent);
}

.qe-pricing-features .qe-pricing-group:first-child {
    padding-top: 0;
}

.qe-pricing-tick,
.qe-pricing-cross {
    position: relative;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.05rem;
    border-radius: 50%;
}

.qe-pricing-tick {
    background: rgba(245, 166, 35, 0.15);
}

.qe-pricing-tick::after {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.2rem;
    width: 0.28rem;
    height: 0.5rem;
    border: solid var(--qe-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.qe-pricing-cross {
    background: rgba(255, 255, 255, 0.05);
}

.qe-pricing-cross::before,
.qe-pricing-cross::after {
    content: '';
    position: absolute;
    left: 0.32rem;
    top: 0.53rem;
    width: 0.5rem;
    height: 1.5px;
    background: var(--qe-muted);
    border-radius: 2px;
}

.qe-pricing-cross::before { transform: rotate(45deg); }
.qe-pricing-cross::after { transform: rotate(-45deg); }

.qe-pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qe-pricing-cta--solid {
    background: linear-gradient(135deg, #F5A623 0%, #C4841A 100%);
    color: #041208;
    border: 1px solid rgba(245, 166, 35, 0.5);
}

.qe-pricing-cta--solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(245, 166, 35, 0.3);
}

.qe-pricing-cta--ghost {
    background: rgba(7, 11, 9, 0.4);
    color: var(--qe-text);
    border: 1px solid var(--qe-border);
}

.qe-pricing-cta--ghost:hover {
    border-color: var(--qe-accent);
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.08);
}

.qe-pricing-cta--current,
.qe-pricing-cta--locked {
    background: rgba(255, 255, 255, 0.04);
    color: var(--qe-muted);
    border: 1px solid var(--qe-border);
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.qe-pricing-cta--current {
    color: var(--qe-accent);
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.08);
}

.qe-pricing-note {
    max-width: 40rem;
    margin: 1.75rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--qe-muted);
}

.qe-landing-compare {
    display: grid;
    gap: 1rem;
    max-width: 52rem;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .qe-landing-compare {
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
        gap: 1.25rem;
    }
}

.qe-landing-compare-col {
    padding: 1.35rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--qe-border);
    background: linear-gradient(135deg, rgba(20, 31, 27, 0.7), rgba(16, 24, 22, 0.65));
}

.qe-landing-compare-col h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin: 0 0 1rem;
}

.qe-landing-compare-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.qe-landing-compare-col li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-landing-compare-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
}

.qe-landing-compare-col--old li::before {
    background: rgba(239, 68, 68, 0.5);
}

.qe-landing-compare-col--new {
    border-color: rgba(245, 166, 35, 0.3);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(16, 24, 22, 0.85));
}

.qe-landing-compare-col--new h3 {
    color: var(--qe-accent);
}

.qe-landing-compare-col--new li {
    color: var(--qe-text);
}

.qe-landing-compare-col--new li::before {
    background: var(--qe-accent);
    box-shadow: 0 0 8px var(--qe-glow);
}

.qe-landing-compare-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qe-landing-compare-divider span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--qe-muted);
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    background: var(--qe-surface);
}

@media (max-width: 699px) {
    .qe-landing-compare-divider {
        padding: 0.25rem 0;
    }
}

.qe-landing-faq-list {
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.qe-landing-faq-item {
    border-radius: 14px;
    border: 1px solid var(--qe-border);
    background: rgba(16, 24, 22, 0.6);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.qe-landing-faq-item[open] {
    border-color: rgba(245, 166, 35, 0.3);
}

.qe-landing-faq-item summary {
    padding: 1rem 1.15rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
}

.qe-landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.qe-landing-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(245, 166, 35, 0.1);
    color: var(--qe-accent);
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.qe-landing-faq-item[open] summary::after {
    content: '−';
}

.qe-landing-faq-item p {
    margin: 0;
    padding: 0 1.15rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--qe-muted);
}

.qe-landing-faq-item code {
    font-family: ui-monospace, monospace;
    font-size: 0.88em;
    color: var(--qe-accent);
}

.qe-landing-cta-band {
    position: relative;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-color: rgba(245, 166, 35, 0.25);
    background: linear-gradient(135deg, rgba(20, 31, 27, 0.98), rgba(12, 22, 17, 0.95));
}

.qe-landing-cta-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--qe-glow), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.qe-landing-cta-band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.qe-landing-cta-lead {
    margin-bottom: 0;
    max-width: 28rem;
}

.qe-landing-cta--inline {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .qe-landing-actions,
    .qe-landing-cta-band-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .qe-landing-cta,
    .qe-landing-cta--inline,
    .qe-landing-ghost {
        width: 100%;
    }

    .qe-hero-actions {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qe-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .qe-hero-mock-phone,
    .qe-showcase-chip,
    .qe-landing-marquee-track {
        animation: none;
    }
}

/* Login page (/login) */

body.qe-login-page {
    color-scheme: dark;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.qe-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    padding:
        calc(1rem + var(--qe-safe-top))
        calc(1.25rem + var(--qe-safe-right))
        0
        calc(1.25rem + var(--qe-safe-left));
}

.qe-login-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    background: rgba(10, 16, 14, 0.55);
    color: var(--qe-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.qe-login-back svg {
    width: 1rem;
    height: 1rem;
}

.qe-login-back:hover {
    color: var(--qe-text);
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.06);
}

.qe-login-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        2rem
        calc(1.25rem + var(--qe-safe-right))
        calc(2rem + var(--qe-safe-bottom))
        calc(1.25rem + var(--qe-safe-left));
}

.qe-login-aurora {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 520px);
    height: 22rem;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.16), transparent 68%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.qe-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-color: rgba(245, 166, 35, 0.22);
}

.qe-login-card-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qe-login-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.85rem, 5vw, 2.35rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem;
}

.qe-login-title em {
    font-style: italic;
    color: var(--qe-accent);
}

.qe-verify-screen[hidden],
.qe-login-card[hidden] {
    display: none !important;
}

.qe-verify-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qe-otp-inputs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.qe-otp-digit {
    flex: 1 1 0;
    min-width: 0;
    width: 2.75rem;
    max-width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--qe-text);
    background: rgba(7, 11, 9, 0.55);
    border: 2px solid var(--qe-border);
    border-radius: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.qe-otp-digit:focus {
    border-color: var(--qe-accent);
    box-shadow: 0 0 0 3px var(--qe-glow);
    background: rgba(16, 24, 22, 0.9);
}

.qe-verify-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qe-verify-timer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.qe-verify-timer-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-verify-timer-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qe-accent);
}

.qe-verify-resend {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    background: rgba(20, 31, 27, 0.65);
    color: var(--qe-text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.qe-verify-resend:hover:not(:disabled) {
    border-color: rgba(245, 166, 35, 0.35);
    color: var(--qe-accent);
}

.qe-verify-resend:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    color: var(--qe-muted);
}

.qe-login-sub strong {
    color: var(--qe-text);
    font-weight: 600;
}

@media (prefers-color-scheme: light) {
    body.qe-login-page.qe-body {
        --qe-bg: #eef3ef;
        --qe-surface: #ffffff;
        --qe-card: #ffffff;
        --qe-border: rgba(22, 156, 70, 0.18);
        --qe-text: #0d1a14;
        --qe-muted: #4d6358;
        --qe-glow: rgba(245, 166, 35, 0.16);
        --qe-code-bg: rgba(13, 26, 20, 0.04);
        background-color: var(--qe-bg);
        color: var(--qe-text);
    }

    body.qe-login-page .qe-landing-grid-bg {
        opacity: 0.35;
    }

    body.qe-login-page .qe-login-google {
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(16, 40, 28, 0.06);
    }

    body.qe-login-page .qe-login-back {
        background: rgba(255, 255, 255, 0.85);
    }

    body.qe-login-page .qe-otp-digit {
        background: #f6faf7;
        border-color: rgba(22, 156, 70, 0.2);
    }

    body.qe-login-page .qe-otp-digit:focus {
        background: #ffffff;
    }

    body.qe-login-page .qe-verify-resend {
        background: #f4faf6;
    }
}

.qe-login-sub {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--qe-muted);
}

.qe-login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.82rem 1rem;
    border: 1px solid var(--qe-border);
    border-radius: 12px;
    background: rgba(7, 11, 9, 0.75);
    color: var(--qe-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.qe-login-google:hover {
    transform: translateY(-1px);
    background: rgba(16, 24, 22, 0.95);
    border-color: rgba(245, 166, 35, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.qe-login-google-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.qe-login-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.25rem 0;
    color: var(--qe-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.qe-login-divider::before,
.qe-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--qe-border);
}

.qe-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qe-login-form .qe-field {
    margin: 0;
}

.qe-login-form .qe-field input:-webkit-autofill,
.qe-login-form .qe-field input:-webkit-autofill:hover,
.qe-login-form .qe-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--qe-text);
    -webkit-box-shadow: 0 0 0 1000px rgba(12, 18, 15, 0.95) inset;
    box-shadow: 0 0 0 1000px rgba(12, 18, 15, 0.95) inset;
    border-color: var(--qe-accent);
    transition: background-color 9999s ease-out 0s;
}

.qe-login-error {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #ffb3b3;
    font-size: 0.84rem;
    line-height: 1.45;
}

.qe-login-info {
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.1);
    color: #b8f5cc;
}

.qe-login-hint {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--qe-muted);
    line-height: 1.45;
}

.qe-login-submit {
    margin-top: 0.25rem;
    width: 100%;
}

.qe-login-switch {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--qe-muted);
}

.qe-login-switch-btn {
    margin-left: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--qe-accent);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qe-login-switch-btn:hover {
    color: var(--qe-text);
}

.qe-login-footnote {
    position: relative;
    z-index: 1;
    max-width: 22rem;
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

@media (max-width: 480px) {
    .qe-login-card {
        padding: 1.5rem 1.15rem 1.25rem;
        border-radius: 16px;
    }

    .qe-login-header {
        padding-left: calc(1rem + var(--qe-safe-left));
        padding-right: calc(1rem + var(--qe-safe-right));
    }

    .qe-login-header .logo {
        font-size: 1.2rem;
    }
}

/* ——— Profile page ——— */
body.qe-profile-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.qe-profile-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding:
        1.25rem
        calc(1.25rem + var(--qe-safe-right))
        calc(2.5rem + var(--qe-safe-bottom))
        calc(1.25rem + var(--qe-safe-left));
}

.qe-profile-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 36rem);
    height: 14rem;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.14), transparent 70%);
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
}

.qe-profile-loading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 4rem 1rem;
    color: var(--qe-muted);
    font-size: 0.92rem;
}

.qe-profile-loading[hidden],
.qe-profile-layout[hidden],
.qe-profile-wallet-view[hidden],
.qe-profile-avatar[hidden],
.qe-profile-avatar-fallback[hidden],
.qe-profile-toast[hidden],
.qe-profile-error[hidden] {
    display: none !important;
}

.qe-spinner--inline {
    width: 1.1rem;
    height: 1.1rem;
    border-width: 2px;
}

.qe-profile-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qe-profile-card {
    padding: 1.35rem 1.25rem;
    border-color: rgba(245, 166, 35, 0.18);
    background: rgba(8, 12, 10, 0.72);
    backdrop-filter: blur(12px);
}

.qe-profile-card--hero {
    padding: 1.5rem 1.35rem;
    border-color: rgba(245, 166, 35, 0.28);
    background:
        linear-gradient(135deg, rgba(245, 166, 35, 0.07), transparent 55%),
        rgba(8, 12, 10, 0.78);
}

.qe-profile-hero {
    display: flex;
    gap: 1.35rem;
    align-items: center;
}

.qe-profile-avatar-block {
    flex-shrink: 0;
}

.qe-profile-avatar-wrap {
    position: relative;
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
}

.qe-profile-avatar-hit {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}

.qe-profile-avatar-hit:hover .qe-profile-avatar-camera {
    opacity: 1;
}

.qe-profile-avatar-camera {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.qe-profile-avatar-camera svg {
    width: 1.35rem;
    height: 1.35rem;
}

.qe-profile-avatar-trash {
    position: absolute;
    right: -0.15rem;
    bottom: -0.1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(18, 10, 10, 0.92);
    color: #ffb3b3;
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.qe-profile-avatar-trash svg {
    width: 0.95rem;
    height: 0.95rem;
}

.qe-profile-avatar-trash:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffc9c9;
    transform: scale(1.05);
}

.qe-profile-avatar-trash[hidden] {
    display: none !important;
}

.qe-profile-avatar,
.qe-profile-avatar-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.qe-profile-avatar {
    border: 3px solid rgba(245, 166, 35, 0.5);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.qe-profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(245, 166, 35, 0.28), rgba(8, 24, 16, 0.95));
    border: 3px solid rgba(245, 166, 35, 0.5);
    color: var(--qe-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}


.qe-profile-avatar-actions,
.qe-profile-avatar-btn {
    display: none;
}

.qe-profile-identity {
    min-width: 0;
    flex: 1;
}

.qe-profile-name {
    margin: 0.1rem 0 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--qe-text);
}

.qe-profile-email {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--qe-muted);
    word-break: break-all;
}

.qe-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.qe-profile-tier {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.qe-profile-tier--free {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.qe-profile-tier--gold {
    background: rgba(234, 179, 8, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.qe-profile-tier--pro {
    background: rgba(245, 166, 35, 0.12);
    color: var(--qe-accent);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.qe-profile-signin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--qe-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--qe-border);
}

.qe-profile-signin-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.qe-profile-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    color: #f0c96a;
    background: rgba(217, 164, 65, 0.1);
    border: 1px solid rgba(217, 164, 65, 0.32);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.qe-profile-wallet-chip:hover {
    background: rgba(217, 164, 65, 0.16);
    border-color: rgba(217, 164, 65, 0.48);
    transform: translateY(-1px);
}

.qe-profile-wallet-chip:focus-visible {
    outline: 2px solid rgba(217, 164, 65, 0.45);
    outline-offset: 2px;
}

.qe-profile-wallet-chip-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.qe-profile-wallet-view {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.qe-profile-wallet-view-head {
    display: grid;
    gap: 0.35rem;
}

.qe-profile-wallet-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0;
    border: none;
    background: none;
    color: var(--qe-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.qe-profile-wallet-back svg {
    width: 1rem;
    height: 1rem;
}

.qe-profile-wallet-back:hover {
    color: var(--qe-text);
}

.qe-profile-wallet-view-title {
    margin: 0.15rem 0 0;
    font-family: var(--qe-font-display);
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.qe-profile-wallet-view-sub {
    margin: 0;
    font-size: 0.88rem;
    color: var(--qe-muted);
    line-height: 1.5;
}

.qe-profile-card--wallet-history .qe-profile-wallet-tx {
    margin-top: 0;
}

.qe-wallet-hero {
    margin-bottom: 1rem;
    padding: 1.25rem 1.35rem;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(245, 166, 35, 0.12), transparent 55%),
        var(--qe-card-bg, rgba(12, 18, 15, 0.92));
    border: 1px solid rgba(245, 166, 35, 0.18);
}

.qe-wallet-hero-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qe-wallet-hero-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.22);
}

.qe-wallet-hero-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.qe-wallet-hero-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-wallet-hero-balance {
    margin: 0.2rem 0 0;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.85rem, 5vw, 2.35rem);
    font-style: italic;
    line-height: 1.05;
    color: var(--qe-text);
}

.qe-wallet-hero-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

.qe-wallet-cashout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #041208;
    background: linear-gradient(135deg, #F5A623, #C4841A);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.qe-wallet-cashout-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.qe-wallet-cashout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.qe-wallet-cashout-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.qe-wallet-pending-panel {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.06);
}

.qe-wallet-pending-panel[hidden] {
    display: none !important;
}

.qe-wallet-pending-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.qe-wallet-pending-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.qe-wallet-pending-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.qe-wallet-pending-title {
    margin: 0.15rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.qe-wallet-pending-lead {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--qe-muted);
}

.qe-wallet-pending-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin: 0;
}

.qe-wallet-pending-grid dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-wallet-pending-grid dd {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--qe-text);
}

.qe-profile-wallet-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.84rem;
}

.qe-profile-wallet-row + .qe-profile-wallet-row {
    margin-top: 0.45rem;
}

.qe-profile-wallet-row-main {
    min-width: 0;
}

.qe-profile-wallet-amount {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
}

.qe-profile-wallet-row.is-credit .qe-profile-wallet-amount {
    color: var(--qe-accent);
}

.qe-profile-wallet-row.is-debit .qe-profile-wallet-amount {
    color: #fca5a5;
}

.qe-wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.qe-wallet-modal[hidden] {
    display: none !important;
}

body.qe-wallet-modal-open {
    overflow: hidden;
}

.qe-wallet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 6, 0.72);
    backdrop-filter: blur(6px);
}

.qe-wallet-modal-panel {
    position: relative;
    width: min(100%, 32rem);
    max-height: min(92vh, 44rem);
    overflow: auto;
    padding: 1.35rem 1.35rem 1.5rem;
    margin: 0;
}

.qe-wallet-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    color: var(--qe-muted);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.qe-wallet-modal-close svg {
    width: 1rem;
    height: 1rem;
}

.qe-wallet-modal-title {
    margin: 0.35rem 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.qe-wallet-modal-lead {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

.qe-wallet-modal-amount {
    margin: 0 0 1.1rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--qe-accent);
}

.qe-wallet-cashout-form {
    margin-top: 0.5rem;
}

.qe-wallet-cashout-submit {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #041208;
    background: linear-gradient(135deg, #F5A623, #C4841A);
    cursor: pointer;
}

.qe-wallet-cashout-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .qe-wallet-pending-grid {
        grid-template-columns: 1fr;
    }
}

.qe-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.qe-profile-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qe-profile-card-top h2,
.qe-profile-card-top h3,
.qe-profile-details-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--qe-text);
}

.qe-profile-card-top--nested {
    margin-bottom: 0.85rem;
}

.qe-profile-quota-divider {
    height: 1px;
    margin: 1.15rem 0 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.qe-profile-quota-link {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
}

.qe-profile-quota-link a {
    color: var(--qe-accent);
    text-decoration: none;
    font-weight: 600;
}

.qe-profile-quota-link a:hover {
    text-decoration: underline;
}

.qe-profile-card-sub {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--qe-muted);
}

.qe-profile-status {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.28);
}

.qe-profile-status.is-expired {
    color: #ffb3b3;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
}

.qe-profile-status.is-pending {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

.qe-profile-payment {
    margin: 0 0 1.1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.05);
}

.qe-profile-payment[hidden] {
    display: none !important;
}

.qe-profile-payment-title {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qe-muted);
}

.qe-profile-stat-grid--payment {
    margin-bottom: 0;
}

.qe-profile-payment-status {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--qe-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qe-profile-payment-status.is-pending {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

.qe-profile-payment-status.is-approved {
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
}

.qe-profile-payment-status.is-rejected {
    color: #ffb3b3;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
}

.qe-profile-payment-note {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-profile-payment-note[hidden] {
    display: none !important;
}

.qe-profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 0 0 1.1rem;
}

.qe-profile-stat-grid dt {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--qe-muted);
    font-weight: 600;
}

.qe-profile-stat-grid dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-profile-upgrade {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
}

.qe-profile-quota-pill {
    flex-shrink: 0;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.qe-profile-quota-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.qe-profile-quota-ring {
    --qe-quota-pct: 0;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--qe-accent) calc(var(--qe-quota-pct) * 1%),
        rgba(255, 255, 255, 0.08) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qe-profile-quota-ring::before {
    content: '';
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    background: rgba(8, 12, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.qe-profile-quota-ring-inner {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--qe-text);
}

.qe-profile-quota-big {
    margin: 0 0 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qe-text);
}

.qe-profile-quota-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-profile-quota-bar {
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.qe-profile-quota-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #C4841A, var(--qe-accent));
    transition: width 0.5s ease;
}

.qe-profile-projects {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qe-profile-projects-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.qe-profile-projects-head h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-profile-projects-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qe-accent);
    text-decoration: none;
    white-space: nowrap;
}

.qe-profile-projects-all:hover {
    text-decoration: underline;
}

.qe-profile-projects-sub {
    margin: 0 0 0.75rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-profile-projects-all[hidden],
.qe-profile-projects-sub[hidden],
.qe-profile-projects-loading[hidden],
.qe-profile-projects-list[hidden],
.qe-profile-projects-empty[hidden] {
    display: none !important;
}

.qe-profile-projects-loading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--qe-muted);
}

.qe-profile-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.qe-profile-project-preview {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.qe-profile-project-preview:hover {
    border-color: rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.05);
}

.qe-profile-project-preview-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(245, 166, 35, 0.18);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(245, 166, 35, 0.06);
}

.qe-profile-project-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.qe-profile-project-preview-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--qe-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qe-profile-project-preview-meta {
    font-size: 0.72rem;
    color: var(--qe-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qe-profile-projects-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.qe-profile-projects-empty p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-profile-projects-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qe-accent);
    text-decoration: none;
}

.qe-profile-projects-cta:hover {
    text-decoration: underline;
}

.qe-profile-details-title {
    margin-bottom: 1rem;
}

.qe-profile-details {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.qe-profile-details div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.qe-profile-details div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.qe-profile-details dt {
    margin: 0;
    font-size: 0.82rem;
    color: var(--qe-muted);
    font-weight: 500;
}

.qe-profile-details dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--qe-text);
    text-align: right;
}

.qe-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.qe-profile-builder-btn {
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qe-profile-logout {
    width: 100%;
    padding: 0.82rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #ffb3b3;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qe-profile-logout:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffc9c9;
}

.qe-profile-logout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qe-profile-toast {
    position: fixed;
    bottom: calc(1.25rem + var(--qe-safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    margin: 0;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(12, 18, 15, 0.95);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--qe-text);
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.qe-profile-error {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .qe-profile-grid {
        grid-template-columns: 1fr;
    }

    .qe-profile-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .qe-profile-hero {
        flex-direction: column;
        text-align: center;
    }

    .qe-profile-badges {
        justify-content: center;
    }

    .qe-profile-stat-grid {
        grid-template-columns: 1fr;
    }

    .qe-profile-details div {
        flex-direction: column;
        gap: 0.2rem;
    }

    .qe-profile-details dd {
        text-align: left;
    }
}

/* ——— Subscribe / manual payment ——— */
body.qe-subscribe-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.qe-subscribe-page .qe-subscribe-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(920px, 100%);
    margin: 0 auto;
    padding:
        1rem
        calc(1.25rem + var(--qe-safe-right))
        calc(2rem + var(--qe-safe-bottom))
        calc(1.25rem + var(--qe-safe-left));
}

.qe-subscribe-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--qe-muted);
    font-size: 0.95rem;
}

.qe-subscribe-loading[hidden],
.qe-subscribe-layout[hidden],
.qe-subscribe-success[hidden],
.qe-subscribe-pending-panel[hidden],
.qe-subscribe-user[hidden],
.qe-pay-account[hidden],
.qe-subscribe-error[hidden] {
    display: none !important;
}

.qe-subscribe-user-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.qe-subscribe-user-avatar,
.qe-subscribe-user-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.qe-subscribe-user-avatar {
    display: none;
    object-fit: cover;
    z-index: 2;
    border: 2px solid rgba(245, 166, 35, 0.35);
}

.qe-subscribe-user-avatar-wrap.has-photo .qe-subscribe-user-avatar {
    display: block;
}

.qe-subscribe-user-fallback {
    display: grid;
    place-items: center;
    z-index: 1;
    background: rgba(245, 166, 35, 0.15);
    color: var(--qe-accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.qe-subscribe-user-avatar-wrap.has-photo .qe-subscribe-user-fallback {
    display: none;
}

.qe-subscribe-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.25rem;
    align-items: start;
}

.qe-subscribe-summary {
    padding: 1.5rem;
}

.qe-subscribe-title {
    margin: 0.35rem 0 0.5rem;
    font-family: var(--qe-font-display);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.qe-subscribe-sub {
    margin: 0 0 1.25rem;
    color: var(--qe-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.qe-subscribe-amount-block {
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.06);
    margin-bottom: 1.25rem;
}

.qe-subscribe-amount-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qe-muted);
    margin-bottom: 0.35rem;
}

.qe-subscribe-amount {
    margin: 0;
    font-family: var(--qe-font-display);
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 700;
    color: var(--qe-accent);
    letter-spacing: -0.02em;
}

.qe-subscribe-amount-before {
    margin: 0.15rem 0 0.2rem;
    font-family: var(--qe-font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    font-weight: 600;
    color: var(--qe-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.85;
}

.qe-subscribe-amount-before[hidden] {
    display: none !important;
}

.qe-subscribe-amount-full {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--qe-muted);
    text-decoration: line-through;
}

.qe-subscribe-proration {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--qe-muted);
    max-width: 28rem;
}

.qe-subscribe-promo-discount {
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--qe-accent);
}

.qe-subscribe-promo {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qe-subscribe-promo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(245, 166, 35, 0.14);
    border-radius: 12px;
    background: rgba(7, 11, 9, 0.4);
    color: var(--qe-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.qe-subscribe-promo-toggle:hover {
    border-color: rgba(245, 166, 35, 0.32);
    background: rgba(245, 166, 35, 0.06);
}

.qe-subscribe-promo-toggle-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.qe-subscribe-promo-toggle-hint {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--qe-muted);
    font-weight: 400;
}

.qe-subscribe-promo-toggle-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--qe-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.qe-subscribe-promo.is-open .qe-subscribe-promo-toggle {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(245, 166, 35, 0.08);
}

.qe-subscribe-promo.is-open .qe-subscribe-promo-toggle-icon {
    transform: rotate(180deg);
    color: var(--qe-accent);
}

.qe-subscribe-promo-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.95rem 0.15rem;
    border: 1px solid rgba(245, 166, 35, 0.14);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: rgba(7, 11, 9, 0.28);
}

.qe-subscribe-promo-body[hidden] {
    display: none !important;
}

.qe-subscribe-promo .qe-subscribe-section-title {
    margin: 0;
    font-size: 0.94rem;
}

.qe-subscribe-promo .qe-subscribe-form-note {
    margin: 0;
    line-height: 1.55;
}

.qe-subscribe-promo-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.qe-subscribe-promo-field {
    flex: 1;
    min-width: 0;
}

.qe-subscribe-promo-field > span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-subscribe-promo-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--qe-border);
    background: rgba(7, 11, 9, 0.6);
    color: var(--qe-text);
    font: inherit;
    font-size: 0.95rem;
}

.qe-subscribe-promo-field input[type="text"]:focus {
    outline: 2px solid rgba(245, 166, 35, 0.25);
    border-color: var(--qe-accent);
}

.qe-subscribe-promo .qe-subscribe-error {
    margin: 0;
}

.qe-subscribe-promo-apply,
.qe-subscribe-promo-clear {
    padding: 0.72rem 1rem;
    min-height: 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.12);
    color: var(--qe-accent);
    font: inherit;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.qe-subscribe-promo-clear {
    margin-top: 0.65rem;
    min-height: auto;
    padding: 0.55rem 0.85rem;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--qe-muted);
}

.qe-subscribe-promo-applied {
    margin-top: 0;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.06);
}

.qe-subscribe-promo-applied-title {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--qe-text);
    line-height: 1.45;
}

.qe-subscribe-promo-owner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.55rem;
}

.qe-subscribe-promo-owner[hidden] {
    display: none !important;
}

.qe-subscribe-promo-owner-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.qe-subscribe-promo-owner-avatar .qe-subscribe-user-avatar,
.qe-subscribe-promo-owner-avatar .qe-subscribe-user-fallback {
    width: 36px;
    height: 36px;
    font-size: 0.78rem;
}

.qe-subscribe-promo-owner-name {
    margin: 0;
    font-size: 0.8rem;
    color: var(--qe-muted);
    line-height: 1.45;
}

.qe-subscribe-promo-applied-meta {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    color: var(--qe-muted);
    line-height: 1.5;
}

.qe-subscribe-promo-applied-meta:last-of-type {
    margin-bottom: 0.65rem;
}

.qe-profile-wallet-tx {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qe-profile-wallet-ref {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.76rem;
    color: var(--qe-muted);
}

.qe-profile-wallet-date {
    font-size: 0.74rem;
    color: var(--qe-muted);
    white-space: nowrap;
}

.qe-profile-wallet-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--qe-muted);
}

.qe-subscribe-month {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--qe-muted);
}

.qe-subscribe-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qe-subscribe-user-name {
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
}

.qe-subscribe-user-email {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--qe-muted);
}

.qe-subscribe-checkout {
    padding: 1.5rem;
}

.qe-subscribe-section-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
}

.qe-pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.qe-pay-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--qe-text);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.qe-pay-method-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.qe-pay-method-name {
    line-height: 1.2;
    text-align: center;
}

.qe-pay-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qe-pay-method-badge-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.qe-pay-method-badge-icon[hidden] {
    display: none !important;
}

.qe-pay-method:hover {
    border-color: rgba(245, 166, 35, 0.35);
}

.qe-pay-method.is-active {
    border-color: rgba(245, 166, 35, 0.65);
    background: rgba(245, 166, 35, 0.1);
    color: var(--qe-accent);
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.2);
}

.qe-pay-account {
    margin-bottom: 1.35rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.15);
}

.qe-pay-account-label {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--qe-muted);
}

.qe-pay-account-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.qe-pay-account-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--qe-text);
}

.qe-pay-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--qe-text);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.qe-pay-copy svg {
    width: 14px;
    height: 14px;
}

.qe-pay-copy:hover {
    border-color: rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.08);
}

.qe-subscribe-form-note {
    margin: -0.35rem 0 1rem;
    font-size: 0.84rem;
    color: var(--qe-muted);
    line-height: 1.5;
}

.qe-subscribe-form .qe-field > label,
.qe-subscribe-form .qe-field > span:first-child {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-subscribe-form .qe-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.qe-subscribe-form .qe-file-drop {
    margin-top: 0.35rem;
}

.qe-screenshot-preview {
    margin-top: 0.75rem;
    padding: 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(7, 11, 9, 0.45);
}

.qe-screenshot-preview[hidden] {
    display: none !important;
}

.qe-screenshot-preview-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.qe-screenshot-preview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.55rem;
}

.qe-screenshot-preview-name {
    min-width: 0;
    font-size: 0.78rem;
    color: var(--qe-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qe-screenshot-preview-remove {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #ffb3b3;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.qe-screenshot-preview-remove:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.5);
}

.qe-field--optional em {
    font-style: normal;
    font-weight: 400;
    color: var(--qe-muted);
}

.qe-subscribe-error {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #ffb3b3;
    font-size: 0.86rem;
    line-height: 1.5;
}

.qe-subscribe-error--page {
    text-align: center;
    margin-top: 2rem;
}

.qe-subscribe-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--qe-accent) 0%, #12a84a 100%);
    color: #041208;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.qe-subscribe-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.qe-subscribe-submit:not(:disabled):hover {
    transform: translateY(-1px);
}

.qe-subscribe-success {
    max-width: 520px;
    margin: 2rem auto 0;
    padding: 2rem 1.5rem;
    text-align: center;
}

.qe-subscribe-success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(245, 166, 35, 0.15);
    color: var(--qe-accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.qe-subscribe-pending-icon {
    background: rgba(234, 179, 8, 0.14);
    color: #eab308;
    font-size: 1.75rem;
    line-height: 1;
}

.qe-subscribe-pending-panel {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 1.75rem 1.5rem;
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.07) 0%, rgba(7, 11, 9, 0.35) 100%);
}

.qe-subscribe-pending-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.qe-subscribe-pending-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #eab308;
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.28);
}

.qe-subscribe-pending-icon-wrap svg {
    width: 26px;
    height: 26px;
}

.qe-subscribe-pending-head-copy h2 {
    margin: 0.15rem 0 0.45rem;
    font-size: 1.35rem;
}

.qe-subscribe-pending-lead {
    margin: 0;
    color: var(--qe-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.qe-subscribe-pending-details {
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(0, 0, 0, 0.22);
}

.qe-subscribe-pending-details-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.qe-subscribe-pending-details-title {
    margin: 0;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qe-muted);
}

.qe-subscribe-pending-details-top .qe-profile-payment-status {
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: 100%;
}

.qe-subscribe-pending-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 0;
}

.qe-subscribe-pending-grid div {
    min-width: 0;
}

.qe-subscribe-pending-grid-wide {
    grid-column: 1 / -1;
}

.qe-subscribe-pending-grid dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-subscribe-pending-grid dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--qe-text);
    word-break: break-word;
}

.qe-subscribe-pending-note {
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--qe-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.qe-subscribe-success h2 {
    margin: 0 0 0.5rem;
}

.qe-subscribe-success p {
    margin: 0 0 1.25rem;
    color: var(--qe-muted);
    line-height: 1.55;
}

.qe-subscribe-success-meta {
    margin: 0 0 1.5rem;
    text-align: left;
    display: grid;
    gap: 0.55rem;
}

.qe-subscribe-success-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.qe-subscribe-success-meta dt {
    color: var(--qe-muted);
    font-weight: 500;
}

.qe-subscribe-success-meta dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.qe-subscribe-success-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.qe-subscribe-link {
    display: inline-flex;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--qe-accent);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.qe-subscribe-link--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--qe-text);
}

@media (max-width: 480px) {
    .qe-subscribe-promo-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qe-subscribe-promo-apply {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .qe-subscribe-layout {
        grid-template-columns: 1fr;
    }

    .qe-pay-methods {
        grid-template-columns: repeat(3, 1fr);
    }

    .qe-pay-method {
        padding: 0.55rem 0.35rem;
    }

    .qe-pay-method-icon {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 8px;
    }

    .qe-pay-method-name {
        font-size: 0.72rem;
    }

    .qe-subscribe-pending-head {
        flex-direction: column;
    }

    .qe-subscribe-pending-grid {
        grid-template-columns: 1fr;
    }

    .qe-subscribe-pending-details-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }
}

/* Plan tier locks (builder) */
.qe-plan-lock-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: center / contain no-repeat var(--qe-plan-lock-icon);
    opacity: 0.95;
}
.qe-plan-banner {
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.06);
}

.qe-plan-banner[hidden] {
    display: none !important;
}

.qe-plan-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.qe-plan-banner-tier {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--qe-accent);
}

.qe-plan-banner-tier--gold {
    color: #fcd34d;
}

.qe-plan-banner-tier--pro {
    color: #c4b5fd;
}

.qe-plan-banner-quota {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--qe-muted);
}

.qe-plan-banner-upgrade {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qe-accent);
    text-decoration: none;
}

.qe-plan-banner-upgrade:hover {
    text-decoration: underline;
}

.qe-plan-banner-upgrade[hidden] {
    display: none !important;
}

.qe-nav-item.is-plan-locked {
    opacity: 0.55;
    cursor: pointer;
}

.qe-nav-item.is-plan-locked::after {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.92;
    background: center / contain no-repeat var(--qe-plan-lock-icon);
}

.qe-source-option.is-plan-locked span::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 0.4rem;
    vertical-align: -2px;
    opacity: 0.9;
    background: center / contain no-repeat var(--qe-plan-lock-icon);
}

.qe-field.is-plan-locked,
.qe-source-option.is-plan-locked,
.qe-source-panel.is-plan-locked {
    opacity: 0.72;
}

.qe-plan-lock-note {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #fcd34d;
}

.qe-panel.is-plan-locked-panel .qe-field,
.qe-panel.is-plan-locked-panel .qe-panel-grid,
.qe-panel.is-plan-locked-panel .qe-perm-grid,
.qe-panel.is-plan-locked-panel .qe-toggle-list {
    opacity: 0.58;
    pointer-events: none;
}

.qe-panel.is-plan-locked-panel .qe-field[data-plan-exempt] {
    opacity: 1;
    pointer-events: auto;
}

.qe-panel.is-plan-locked-panel .qe-behavior-launch-row {
    opacity: 1;
    pointer-events: auto;
}

.qe-panel.is-plan-locked-panel .qe-behavior-launch-row .qe-field:not([data-plan-exempt]) {
    opacity: 0.58;
    pointer-events: none;
}

.qe-plan-panel-lock-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(252, 211, 77, 0.28);
    background: rgba(252, 211, 77, 0.08);
    font-size: 0.8rem;
    line-height: 1.4;
    color: #fcd34d;
}

.qe-plan-panel-lock-banner-icon {
    width: 18px;
    height: 18px;
}

.qe-plan-panel-lock-banner-msg {
    flex: 1 1 12rem;
}

.qe-plan-panel-lock-banner-link {
    font-weight: 700;
    color: var(--qe-accent);
    text-decoration: none;
    white-space: nowrap;
}

.qe-plan-panel-lock-banner-link:hover {
    text-decoration: underline;
}

.qe-pricing-legal {
    margin: 0.85rem auto 0;
    text-align: center;
}

.qe-pricing-legal-link {
    color: var(--qe-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    transition: color 0.2s ease;
}

.qe-pricing-legal-link:hover {
    color: var(--qe-accent);
}

/* Legal page (/app/privacy-and-payment) */

body.qe-legal-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.qe-legal-wrap {
    flex: 1;
    width: min(100%, 44rem);
    margin: 0 auto;
    padding:
        calc(var(--qe-nav-height) + var(--qe-safe-top) + 1.5rem)
        calc(1.25rem + var(--qe-safe-right))
        calc(2.5rem + var(--qe-safe-bottom))
        calc(1.25rem + var(--qe-safe-left));
}

.qe-legal-head {
    text-align: center;
    margin-bottom: 2rem;
}

.qe-legal-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.qe-legal-updated {
    margin: 0;
    font-size: 0.82rem;
    color: var(--qe-muted);
}

.qe-legal-section {
    margin-bottom: 1rem;
}

.qe-legal-section:last-child {
    margin-bottom: 0;
}

.qe-legal-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}

.qe-legal-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.35rem 0 0.55rem;
    color: var(--qe-text);
}

.qe-legal-section p,
.qe-legal-section li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--qe-muted);
}

.qe-legal-section p {
    margin: 0 0 0.85rem;
}

.qe-legal-section p:last-child {
    margin-bottom: 0;
}

.qe-legal-section ul {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
}

.qe-legal-section li + li {
    margin-top: 0.45rem;
}

.qe-legal-section a {
    color: var(--qe-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.qe-legal-section a:hover {
    color: var(--qe-text);
}

.qe-legal-section strong {
    color: var(--qe-text);
    font-weight: 600;
}

.qe-build-notify-hint {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.08);
    color: var(--qe-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.qe-build-notify-hint a {
    color: var(--qe-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.qe-build-notify-hint a:hover {
    color: var(--qe-text);
}

.qe-email-spam-note {
    display: block;
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
    color: #e8c97a;
}

.qe-email-spam-note--inline {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Projects + download pages (landing shell) */

body.qe-app-page {
    min-height: 100dvh;
}

.qe-app-page-main {
    max-width: 1120px;
    margin: 0 auto;
    padding:
        calc(6.5rem + var(--qe-safe-top))
        calc(1.25rem + var(--qe-safe-right))
        calc(3rem + var(--qe-safe-bottom))
        calc(1.25rem + var(--qe-safe-left));
}

.qe-app-page-head {
    margin-bottom: 2.5rem;
}

.qe-app-page-title {
    margin-bottom: 0.65rem;
}

.qe-nav-start.qe-app-profile-link {
    gap: 0.45rem;
}

.qe-nav-start.qe-app-profile-link .qe-profile-pfp {
    border-color: rgba(255, 255, 255, 0.35);
}

.qe-nav-profile-name {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qe-app-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qe-app-profile-link .qe-profile-pfp {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.qe-app-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--qe-muted);
}

.qe-app-loading[hidden],
.qe-app-empty[hidden],
.qe-app-upgrade[hidden],
.qe-app-projects-grid[hidden] {
    display: none !important;
}

.qe-app-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(245, 166, 35, 0.18);
    border-top-color: var(--qe-accent);
    animation: qe-spin 0.75s linear infinite;
}

@keyframes qe-spin {
    to { transform: rotate(360deg); }
}

.qe-app-window {
    width: 100%;
    border-radius: 1.1rem;
    border: 1px solid rgba(245, 166, 35, 0.18);
    background: rgba(10, 16, 14, 0.82);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.qe-app-upgrade {
    margin-bottom: 2rem;
}

.qe-app-upgrade-band {
    position: relative;
    overflow: hidden;
}

.qe-app-upgrade-inner {
    position: relative;
    z-index: 1;
}

.qe-app-empty-window {
    max-width: 36rem;
    margin: 0 auto;
}

.qe-app-empty-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1.75rem 2.25rem;
    text-align: center;
}

.qe-app-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.08);
    color: var(--qe-accent);
    margin-bottom: 0.35rem;
}

.qe-app-empty-icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.qe-app-empty-body h2 {
    margin: 0;
    font-family: var(--qe-display);
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--qe-text);
}

.qe-app-empty-body p {
    margin: 0;
    max-width: 28rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

.qe-app-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
    gap: 1.35rem;
}

.qe-app-project-body {
    padding: 1.35rem 1.35rem 1.25rem;
}

.qe-app-project-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.qe-app-project-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(245, 166, 35, 0.22);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(245, 166, 35, 0.06);
}

.qe-app-project-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.28);
    color: var(--qe-accent);
}

.qe-app-project-identity h2 {
    margin: 0 0 0.2rem;
    font-family: var(--qe-display);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--qe-text);
}

.qe-app-project-package {
    margin: 0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--qe-muted);
    word-break: break-all;
}

.qe-app-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.qe-app-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.14);
    background: rgba(245, 166, 35, 0.06);
    font-size: 0.78rem;
    color: var(--qe-text);
}

.qe-app-stat-chip strong {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-app-project-source,
.qe-app-project-expires {
    margin: 0 0 0.55rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-app-project-source strong,
.qe-app-project-expires strong {
    color: var(--qe-text);
    font-weight: 600;
}

.qe-app-project-source {
    word-break: break-all;
}

.qe-app-project-details {
    margin: 0.75rem 0 1rem;
}

.qe-app-project-details .qe-app-settings-grid {
    margin-top: 0;
    padding: 0 1.15rem 1rem;
}

.qe-app-settings-grid {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.qe-app-setting {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.qe-app-setting dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-app-setting dd {
    margin: 0;
    font-size: 0.86rem;
    color: var(--qe-text);
    word-break: break-word;
}

.qe-app-project-download {
    width: 100%;
}

.qe-app-footer {
    margin-top: auto;
    border-top: 1px solid rgba(245, 166, 35, 0.08);
    background: rgba(7, 11, 9, 0.65);
}

.qe-app-error-window {
    max-width: 32rem;
    margin: 0 auto;
}

/* Build download page */
.qe-build-dl-main {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100dvh - 8rem);
    padding-bottom: 2rem;
}

.qe-build-dl-content[hidden],
.qe-build-dl-error[hidden] {
    display: none !important;
}

.qe-build-dl-crumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--qe-muted);
}

.qe-build-dl-crumb a {
    color: var(--qe-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.qe-build-dl-crumb a:hover {
    color: var(--qe-accent);
}

.qe-build-dl-crumb svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    opacity: 0.55;
}

.qe-build-dl-crumb span {
    color: var(--qe-text);
}

.qe-build-dl-stack {
    width: 100%;
}

.qe-build-dl-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.35rem 1.2rem;
    border-radius: 18px;
}

.qe-build-dl-hero-glow {
    position: absolute;
    top: -35%;
    left: 50%;
    transform: translateX(-50%);
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.14), transparent 70%);
    pointer-events: none;
}

.qe-build-dl-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.qe-build-dl-icon {
    flex-shrink: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.15rem;
    border: 2px solid rgba(245, 166, 35, 0.28);
    object-fit: cover;
    background: rgba(245, 166, 35, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.qe-build-dl-hero-copy {
    min-width: 0;
}

.qe-build-dl-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.qe-build-dl-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--qe-accent);
}

.qe-build-dl-status svg {
    width: 0.9rem;
    height: 0.9rem;
}

.qe-build-dl-format {
    display: inline-flex;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-build-dl-hero-copy .qe-kicker {
    margin-bottom: 0.35rem;
}

.qe-build-dl-title {
    margin: 0 0 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.qe-build-dl-package {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    color: var(--qe-accent);
    word-break: break-all;
}

.qe-build-dl-divider {
    height: 1px;
    margin: 1.15rem 0;
    background: rgba(245, 166, 35, 0.1);
}

.qe-build-dl-details {
    position: relative;
}

.qe-build-dl-panel-title {
    margin: 0 0 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.qe-build-dl-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.qe-build-dl-metric {
    display: grid;
    gap: 0.18rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.1);
    background: rgba(7, 11, 9, 0.35);
}

.qe-build-dl-metric--wide {
    grid-column: 1 / -1;
}

.qe-build-dl-metric dt {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-build-dl-metric dd {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--qe-text);
}

.qe-build-dl-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.qe-build-dl-settings[hidden] {
    display: none !important;
}

.qe-build-dl-settings-title {
    margin: 0 0 0.65rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-build-dl-settings-grid {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.qe-build-dl-setting {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.qe-build-dl-setting dt {
    margin: 0;
    font-size: 0.78rem;
    color: var(--qe-muted);
}

.qe-build-dl-setting dd {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--qe-text);
    word-break: break-word;
}

.qe-build-dl-actions {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.qe-build-dl-btn {
    width: 100%;
    margin-top: 0;
}

.qe-build-dl-hint {
    margin: 0.85rem 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: center;
    color: var(--qe-muted);
}

.qe-build-dl-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: 1rem;
}

.qe-build-dl-error {
    max-width: 28rem;
    margin: 2rem auto 0;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: 18px;
}

.qe-build-dl-error-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.08);
    color: var(--qe-accent);
}

.qe-build-dl-error-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.qe-build-dl-error-title {
    margin: 0 0 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.qe-build-dl-error-msg {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

.qe-build-dl-error .qe-build-dl-links {
    flex-direction: column;
    align-items: center;
}

.qe-build-dl-error .qe-submit {
    width: 100%;
    max-width: 16rem;
    margin-top: 0;
}


@media (max-width: 620px) {
    .qe-build-dl-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .qe-build-dl-metrics {
        grid-template-columns: 1fr;
    }

    .qe-build-dl-metric--wide {
        grid-column: auto;
    }

    .qe-build-dl-setting {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qe-app-spinner {
        animation: none;
    }
}

/* Project dashboard & workspace context */
.qe-dashboard-footer {
    margin-top: auto;
}

.qe-dashboard-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1rem;
    padding-bottom: calc(1rem + var(--qe-safe-bottom));
}

.qe-footer-quota[hidden] {
    display: none !important;
}

.qe-footer-quota-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.qe-footer-quota-text {
    margin: 0;
    color: var(--qe-muted);
    font-size: 0.88rem;
}

.qe-footer-quota-upgrade {
    font-size: 0.82rem;
    white-space: nowrap;
}

.qe-dashboard-page .qe-app-page-main,
.qe-dashboard-main {
    max-width: 72rem;
    flex: 1;
}

.qe-dashboard-main #dashboardPage[hidden] {
    display: none !important;
}

.qe-dashboard-hero {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 166, 35, 0.12);
    background: rgba(8, 14, 11, 0.72);
    overflow: hidden;
}

.qe-dashboard-hero-glow {
    position: absolute;
    top: -45%;
    right: -8%;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.14), transparent 70%);
    pointer-events: none;
}

.qe-dashboard-hero-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.qe-dashboard-hero-copy {
    min-width: min(100%, 18rem);
}

.qe-dashboard-hero-title {
    margin: 0 0 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.qe-dashboard-hero-title em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--qe-accent);
}

.qe-dashboard-hero-desc {
    margin: 0;
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

.qe-dashboard-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qe-dashboard-stat {
    display: grid;
    gap: 0.15rem;
    min-width: 5.5rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.1);
    background: rgba(7, 11, 9, 0.45);
}

.qe-dashboard-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-dashboard-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.qe-dashboard-toolbar[hidden] {
    display: none !important;
}

.qe-dashboard-toolbar-label {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-dashboard-quota-card,
.qe-dashboard-create-card {
    padding: 1.25rem 1.35rem;
}

.qe-dashboard-create {
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.qe-dashboard-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    min-width: 10rem;
    margin-top: 0;
    padding: 0.72rem 1.15rem;
    font-size: 0.9rem;
}

.qe-create-form-shell {
    position: relative;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.qe-create-form-shell[hidden] {
    display: none !important;
}

.qe-create-form-shell.is-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    max-width: none;
    margin: 0;
    display: grid !important;
    place-items: center;
    padding: 1rem;
}

.qe-create-form-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 6, 0.78);
    backdrop-filter: blur(8px);
}

.qe-create-form-shell.is-modal .qe-dashboard-create {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    margin: 0;
}

.qe-create-form-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    color: var(--qe-muted);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.qe-create-form-close svg {
    width: 1rem;
    height: 1rem;
}

body.qe-create-form-modal-open {
    overflow: hidden;
}

.qe-dashboard-create-card {
    position: relative;
}

.qe-dashboard-create-title {
    margin: 0 0 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
}

.qe-dashboard-create-hint {
    margin: 0 0 1rem;
}

.qe-dashboard-create-form .qe-field {
    margin-bottom: 0.85rem;
}

.qe-form-error {
    margin: 0 0 0.75rem;
    color: #f87171;
    font-size: 0.88rem;
}

.qe-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
}

.qe-dashboard-grid[hidden] {
    display: none !important;
}

.qe-dashboard-empty {
    max-width: 28rem;
    margin: 2rem auto 0;
}

.qe-dashboard-empty-card {
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: 18px;
}

.qe-dashboard-empty-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.08);
    color: var(--qe-accent);
}

.qe-dashboard-empty-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.qe-dashboard-empty-card h2 {
    margin: 0 0 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.qe-dashboard-empty-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--qe-muted);
}

.qe-dashboard-empty-cta {
    width: 100%;
    max-width: 14rem;
    margin: 1rem auto 0;
}

.qe-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.qe-project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: radial-gradient(circle, rgba(245, 166, 35, 0.22) 1px, transparent 1.1px);
    background-size: 20px 20px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 8%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 8%, transparent 72%);
}

.qe-project-card > * {
    position: relative;
    z-index: 1;
}

.qe-project-card:hover {
    border-color: rgba(245, 166, 35, 0.32);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.qe-project-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.qe-project-card-mark {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qe-accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.qe-project-card-mark--icon {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(245, 166, 35, 0.18);
}

.qe-project-card-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qe-project-card-head {
    min-width: 0;
    flex: 1;
    padding-top: 0.1rem;
}

.qe-project-card-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--qe-text);
}

.qe-project-card-id {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--qe-muted);
    word-break: break-all;
}

.qe-project-card-id code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    color: var(--qe-accent);
}

.qe-project-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.qe-project-card-chip {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qe-muted);
}

.qe-project-card-chip.is-signed {
    border-color: rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.08);
    color: var(--qe-accent);
}

.qe-project-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.qe-project-card-open {
    width: 100%;
    margin-top: 0;
    font-size: 0.9rem;
}

.qe-project-card-info {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.86rem;
}

@media (max-width: 720px) {
    .qe-dashboard-hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .qe-dashboard-hero-stats {
        width: 100%;
    }

    .qe-dashboard-stat {
        flex: 1 1 auto;
    }

    .qe-dashboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .qe-dashboard-new-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .qe-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qe-project-card {
        transition: none;
    }

    .qe-project-card:hover {
        transform: none;
    }
}

.qe-dashboard-card-body {
    padding: 1.1rem 1.2rem 1.25rem;
}

.qe-dashboard-card-body h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.qe-dashboard-card-package {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--qe-muted);
    word-break: break-all;
}

.qe-dashboard-card-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.qe-dashboard-open {
    flex: 1 1 auto;
    min-width: 10rem;
}

.qe-project-context {
    max-width: 72rem;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}

.qe-project-context-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(8, 14, 11, 0.72);
}

.qe-project-context-main strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--qe-text);
    line-height: 1.3;
}

.qe-project-context-actions .qe-nav-link {
    color: var(--qe-muted);
    font-size: 0.88rem;
}

.qe-project-context-actions .qe-nav-link:hover {
    color: var(--qe-accent);
}

.qe-project-context-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-project-context-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: var(--qe-muted);
    word-break: break-all;
}

.qe-project-context-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qe-project-info-page .qe-app-page-main {
    max-width: 1180px;
}

.qe-project-info-crumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--qe-muted);
}

.qe-project-info-crumb a {
    color: var(--qe-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.qe-project-info-crumb a:hover {
    color: var(--qe-accent);
}

.qe-project-info-crumb svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    opacity: 0.55;
}

.qe-project-info-crumb span {
    color: var(--qe-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qe-project-info-hero {
    position: relative;
    margin-bottom: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--qe-border);
    background: linear-gradient(145deg, rgba(20, 31, 27, 0.92), rgba(10, 16, 14, 0.88));
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.qe-project-info-hero-glow {
    position: absolute;
    top: -35%;
    right: -8%;
    width: 42%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--qe-glow), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.qe-project-info-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    padding: 1.35rem 1.4rem;
}

.qe-project-info-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    min-width: 0;
    flex: 1 1 18rem;
}

.qe-project-info-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    border: 2px solid rgba(245, 166, 35, 0.35);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(245, 166, 35, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.qe-project-info-hero-copy {
    min-width: 0;
    text-align: left;
}

.qe-project-info-hero-copy .qe-kicker {
    margin-bottom: 0.55rem;
}

.qe-project-info-title {
    margin: 0 0 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--qe-text);
}

.qe-project-info-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    color: var(--qe-muted);
}

.qe-project-info-subtitle code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(245, 166, 35, 0.18);
    background: rgba(245, 166, 35, 0.06);
    color: var(--qe-accent);
    word-break: break-all;
}

.qe-project-info-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qe-project-info-stat {
    display: inline-flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 5.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.14);
    background: rgba(7, 11, 9, 0.45);
}

.qe-project-info-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-project-info-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-project-info-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    flex: 0 0 auto;
    min-width: 11rem;
}

.qe-project-info-cta {
    width: 100%;
    min-width: 0;
    margin-top: 0;
}

.qe-project-info-ghost {
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.86rem;
}

.qe-project-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.qe-project-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--qe-nav-height) + 1rem + var(--qe-safe-top));
}

.qe-project-info-panel {
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
}

.qe-project-info-panel-title {
    margin: 0 0 0.85rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.qe-project-info-panel-desc {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--qe-muted);
}

.qe-project-info-metrics {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.qe-project-info-metric {
    display: grid;
    gap: 0.18rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.1);
    background: rgba(7, 11, 9, 0.35);
}

.qe-project-info-metric dt {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-project-info-metric dd {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--qe-text);
    word-break: break-word;
}

.qe-project-info-metric dd code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    color: var(--qe-accent);
}

.qe-project-info-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.qe-project-info-actions .qe-submit {
    width: 100%;
    margin-top: 0;
}

/* Keystore link on project page */
a.qe-keystore-open-btn {
    text-decoration: none;
}

.qe-keystore-open-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(245, 166, 35, 0.14);
    border-radius: 12px;
    background: rgba(7, 11, 9, 0.4);
    color: var(--qe-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qe-keystore-open-btn:hover {
    border-color: rgba(245, 166, 35, 0.32);
    background: rgba(245, 166, 35, 0.06);
    color: var(--qe-text);
}

.qe-keystore-open-btn-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.qe-keystore-open-btn-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.qe-keystore-open-btn-hint {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--qe-muted);
}

.qe-keystore-open-btn-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--qe-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.qe-keystore-open-btn:hover .qe-keystore-open-btn-icon {
    color: var(--qe-accent);
    transform: translateX(2px);
}

/* Signing bundle page */
.qe-project-signing-main {
    max-width: 44rem;
}

.qe-project-signing-crumb {
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

.qe-project-signing-card {
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 18px;
}

.qe-project-signing-metrics {
    margin-bottom: 1.15rem;
}

.qe-project-signing-page .qe-project-info-metric {
    padding: 0.75rem 0.9rem;
}

.qe-project-signing-page .qe-project-info-metric dt {
    font-size: 0.68rem;
}

.qe-project-signing-page .qe-project-info-metric dd {
    font-size: 0.92rem;
    line-height: 1.5;
}

.qe-project-signing-page .qe-project-info-metric dd code {
    font-size: 0.84rem;
}

.qe-project-signing-back-wrap {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: 0.95rem;
}

.qe-keystore-detail-head {
    text-align: center;
    margin-bottom: 1.15rem;
}

.qe-keystore-detail-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.22);
    background: rgba(245, 166, 35, 0.1);
    color: var(--qe-accent);
}

.qe-keystore-detail-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.qe-keystore-detail-title {
    margin: 0 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.qe-keystore-detail-lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--qe-muted);
}

.qe-keystore-detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.qe-keystore-block {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.12);
    background: rgba(7, 11, 9, 0.4);
}

.qe-keystore-block h3 {
    margin: 0 0 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.qe-keystore-block p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--qe-muted);
}

.qe-keystore-block p strong {
    color: var(--qe-text);
}

.qe-keystore-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    color: var(--qe-accent);
}

.qe-keystore-block--warn {
    border-color: rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.06);
}

.qe-keystore-block--plan {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.qe-keystore-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--qe-muted);
}

.qe-keystore-list strong {
    color: var(--qe-text);
}

.qe-keystore-detail-foot {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

.qe-keystore-detail-download,
.qe-keystore-detail-upgrade {
    width: 100%;
    margin-top: 0;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
}

.qe-project-signing-card.is-locked .qe-keystore-detail-download[disabled],
.qe-project-signing-card.is-locked .qe-keystore-detail-download[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.qe-project-signing-card.is-pro .qe-keystore-detail-upgrade {
    display: none !important;
}

.qe-keystore-detail-upgrade[hidden] {
    display: none !important;
}

.qe-project-info-builds {
    min-width: 0;
}

.qe-project-info-builds-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.qe-project-info-builds-title {
    margin: 0 0 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.qe-project-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.qe-project-info-empty {
    padding: 0;
}

.qe-project-info-empty .qe-app-empty-body h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--qe-text);
}

.qe-project-info-empty .qe-app-empty-body p {
    max-width: 26rem;
}

.qe-project-info-empty .qe-submit {
    width: auto;
    min-width: 11rem;
    margin-top: 0.25rem;
}

.qe-project-info-page .qe-app-project-identity h3,
.qe-project-info-page .qe-app-project-identity .qe-app-name {
    margin: 0 0 0.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--qe-text);
}

@media (max-width: 960px) {
    .qe-project-info-layout {
        grid-template-columns: 1fr;
    }

    .qe-project-info-sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .qe-project-info-hero-inner {
        padding: 1.1rem;
    }

    .qe-project-info-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .qe-project-info-hero-copy {
        text-align: center;
    }

    .qe-project-info-hero-copy .qe-kicker {
        justify-content: center;
    }

    .qe-project-info-stats {
        justify-content: center;
    }

    .qe-project-info-hero-actions {
        width: 100%;
        min-width: 0;
    }
}

/* Legacy aliases */
.qe-project-info-card {
    max-width: 42rem;
    margin: 0 auto 2rem;
    padding: 1.35rem;
}

.qe-project-builds {
    max-width: 72rem;
    margin: 0 auto;
}

.qe-project-builds > h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 0.35rem;
}

html[data-theme="light"] .qe-project-context-inner {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Builder pages stay dark even when script-full.js sets data-theme=light globally */
body.qe-body .qe-project-context-inner {
    background: rgba(8, 14, 11, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

body.qe-body .qe-project-context-main strong {
    color: var(--qe-text);
}

body.qe-body .qe-project-context-label,
body.qe-body .qe-project-context-meta {
    color: var(--qe-muted);
}

body.qe-body .qe-project-context-actions .qe-nav-link {
    color: var(--qe-muted);
}

body.qe-body .qe-project-context-actions .qe-nav-link:hover {
    color: var(--qe-accent);
}

/* Project creation progress modal */
.qe-create-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.qe-create-modal[hidden] {
    display: none !important;
}

body.qe-create-modal-open {
    overflow: hidden;
}

.qe-create-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 6, 0.78);
    backdrop-filter: blur(8px);
    animation: qe-create-fade-in 0.25s ease;
}

.qe-create-modal-panel {
    position: relative;
    width: min(100%, 26rem);
    padding: 1.35rem 1.35rem 1.25rem;
    margin: 0;
    overflow: hidden;
    animation: qe-create-panel-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qe-create-modal-glow {
    position: absolute;
    inset: -40% auto auto 50%;
    width: 14rem;
    height: 14rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 70%);
    pointer-events: none;
}

.qe-create-modal-head {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
}

.qe-create-modal-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(245, 166, 35, 0.12);
    color: var(--qe-accent);
}

.qe-create-modal-icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.qe-create-modal-icon-spin {
    animation: qe-create-spin 1.1s linear infinite;
}

.qe-create-modal.is-complete .qe-create-modal-icon-spin {
    display: none;
}

.qe-create-modal.is-complete .qe-create-modal-icon-done {
    display: block !important;
}

.qe-create-modal.is-error .qe-create-modal-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.qe-create-modal.is-error .qe-create-modal-icon-spin {
    display: none;
}

.qe-create-modal-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.qe-create-modal-lead {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: var(--qe-muted);
    line-height: 1.45;
}

.qe-create-modal-project {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    text-align: center;
}

.qe-create-modal-project-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.qe-create-modal-project-id {
    display: block;
    font-size: 0.78rem;
    color: var(--qe-muted);
    word-break: break-all;
}

.qe-create-modal-progress {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.qe-create-modal-progress-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.qe-create-modal-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #C4841A, var(--qe-accent));
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.qe-create-modal-progress-label {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--qe-muted);
    min-width: 2.25rem;
    text-align: right;
}

.qe-create-modal-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.qe-create-modal-steps li {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: 0.15rem 0.65rem;
    align-items: start;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    color: var(--qe-muted);
    transition: background 0.25s ease, color 0.25s ease;
}

.qe-create-modal-steps li::before {
    content: '';
    grid-row: 1 / span 2;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    margin-left: 0.2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.qe-create-modal-steps li.is-active {
    color: var(--qe-text);
    background: rgba(245, 166, 35, 0.08);
}

.qe-create-modal-steps li.is-active::before {
    border-color: var(--qe-accent);
    background: var(--qe-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
    animation: qe-create-pulse 1.2s ease infinite;
}

.qe-create-modal-steps li.is-done {
    color: var(--qe-text);
}

.qe-create-modal-steps li.is-done::before {
    border-color: var(--qe-accent);
    background: var(--qe-accent);
}

.qe-create-modal-steps li.is-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
}

.qe-create-modal-steps li.is-error::before {
    border-color: #f87171;
    background: #f87171;
    box-shadow: none;
    animation: none;
}

.qe-create-modal-step-label {
    font-size: 0.84rem;
    font-weight: 600;
}

.qe-create-modal-step-detail {
    grid-column: 2;
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.5);
}

.qe-create-modal-steps li.is-active .qe-create-modal-step-detail,
.qe-create-modal-steps li.is-done .qe-create-modal-step-detail {
    color: rgba(255, 255, 255, 0.62);
}

.qe-create-modal-error {
    margin: 0.85rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #fca5a5;
    text-align: center;
}

.qe-create-modal-dismiss {
    width: 100%;
    margin-top: 0.85rem;
}

html[data-theme="light"] .qe-create-modal-project {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Modal panel is dark — keep step hints readable when script-full.js forces light theme */
body.qe-body .qe-create-modal-lead {
    color: rgba(255, 255, 255, 0.55);
}

body.qe-body .qe-create-modal-step-detail {
    color: rgba(255, 255, 255, 0.5);
}

body.qe-body .qe-create-modal-steps li.is-active .qe-create-modal-step-detail,
body.qe-body .qe-create-modal-steps li.is-done .qe-create-modal-step-detail {
    color: rgba(255, 255, 255, 0.62);
}

body.qe-body .qe-create-modal-project {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.08);
}

body.qe-body .qe-create-modal-project-id {
    color: var(--qe-muted);
}

@keyframes qe-create-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qe-create-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes qe-create-spin {
    to { transform: rotate(360deg); }
}

@keyframes qe-create-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
    .qe-create-modal-backdrop,
    .qe-create-modal-panel,
    .qe-create-modal-progress-fill,
    .qe-create-modal-icon-spin {
        animation: none;
        transition: none;
    }

    .qe-create-modal-steps li.is-active::before {
        animation: none;
    }
}
