.qm-next-host-shell {
    --qm-accent: #9b5de5;
    --qm-accent-2: #f15bb5;
    --qm-bg: #f9f4ff;
    --qm-bg-2: #fff4fb;
    --qm-card: #ffffff;
    --qm-border: #e8d9fb;
    --qm-text: #2e1e4f;
    --qm-muted: #766892;
    --qm-shadow: 0 22px 48px rgba(106, 58, 168, 0.16);
    width: 100%;
    margin: 0;
    padding: clamp(12px, 2vw, 24px);
    border-radius: 24px;
    border: 1px solid var(--qm-border);
    background:
        radial-gradient(circle at 12% -6%, rgba(155, 93, 229, 0.18), transparent 50%),
        radial-gradient(circle at 92% 16%, rgba(241, 91, 181, 0.14), transparent 52%),
        linear-gradient(180deg, var(--qm-bg) 0%, var(--qm-bg-2) 100%);
    box-shadow: var(--qm-shadow);
    font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
}

.qm-next-host-shell[data-qm-accent="ocean"],
.qm-next-host-shell[data-qm-accent="emerald"],
.qm-next-host-shell[data-qm-accent="sunset"],
.qm-next-host-shell[data-qm-accent="slate"] {
    --qm-accent: #9b5de5;
    --qm-accent-2: #f15bb5;
}

.qm-next-host-shell.is-dark {
    --qm-bg: #100f1b;
    --qm-bg-2: #171428;
    --qm-card: #1a1629;
    --qm-border: #41305f;
    --qm-text: #f0eaff;
    --qm-muted: #beaee0;
    --qm-shadow: 0 22px 44px rgba(3, 2, 10, 0.52);
    background:
        radial-gradient(circle at 12% -6%, rgba(155, 93, 229, 0.2), transparent 50%),
        radial-gradient(circle at 92% 16%, rgba(241, 91, 181, 0.16), transparent 52%),
        linear-gradient(180deg, var(--qm-bg) 0%, var(--qm-bg-2) 100%);
}

.qm-next-host-shell.is-dark .qm-next-host-header {
    background: #1d1830;
    border-color: #49386b;
    box-shadow: 0 12px 28px rgba(4, 3, 11, 0.5);
}

.qm-next-host-shell.is-dark .qm-next-branding .qm-next-kicker {
    background: rgba(167, 115, 239, 0.18);
    color: #eadcff;
}

.qm-next-host-shell.is-dark .qm-next-branding h2 {
    color: #f2ecff;
}

.qm-next-host-shell.is-dark .qm-next-branding p {
    color: #c1b4dd;
}

.qm-next-host-shell.is-dark .qm-next-stat-card {
    border-color: #4e3b72;
    background: linear-gradient(160deg, #231b37 0%, #1f182f 100%);
}

.qm-next-host-shell.is-dark .qm-next-stat-card span {
    color: #b9a9dd;
}

.qm-next-host-shell.is-dark .qm-next-stat-card strong {
    color: #f2ebff;
}

.qm-next-host-shell.is-dark .qm-next-controls button {
    border-color: #4b396f;
    background: #251d3a;
    color: #efe9ff;
}

.qm-next-host-shell.is-dark .qm-next-controls button:hover {
    border-color: #60488f;
    box-shadow: 0 8px 16px rgba(8, 6, 17, 0.42);
}

.qm-next-host-shell.is-dark .qm-next-controls button[aria-pressed="true"] {
    border-color: #7353ab;
    background: #342851;
}

.qm-next-host-shell.is-dark .qm-next-controls .qm-next-cta {
    border-color: transparent;
    background: linear-gradient(130deg, var(--qm-accent) 0%, var(--qm-accent-2) 100%);
    color: #fff;
}

.qm-next-host-shell.is-dark .qm-next-host-iframe {
    background: #131125;
    box-shadow: 0 16px 34px rgba(3, 2, 9, 0.5);
}

.qm-next-host-shell[data-qm-density="compact"] .qm-next-host-header {
    padding: 14px;
}

.qm-next-host-shell[data-qm-density="compact"] .qm-next-controls {
    margin: 10px 0 12px;
    gap: 6px;
}

.qm-next-host-shell[data-qm-density="spacious"] .qm-next-host-header {
    padding: 24px;
}

.qm-next-host-shell[data-qm-density="spacious"] .qm-next-controls {
    margin: 18px 0 20px;
    gap: 10px;
}

.qm-next-host-shell.is-focus .qm-next-host-header,
.qm-next-host-shell.is-header-collapsed .qm-next-host-header {
    display: none;
}

.qm-next-host-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    background: var(--qm-card);
    border: 1px solid var(--qm-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(126, 76, 186, 0.1);
}

.qm-next-branding .qm-next-kicker {
    display: inline-flex;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--qm-accent);
    background: rgba(155, 93, 229, 0.1);
    border-radius: 999px;
    padding: 5px 10px;
}

.qm-next-branding h2 {
    margin: 10px 0 8px;
    color: var(--qm-text);
    font-size: clamp(21px, 2.3vw, 30px);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.qm-next-branding p {
    margin: 0;
    color: var(--qm-muted);
    max-width: 52ch;
    line-height: 1.55;
}

.qm-next-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qm-next-stat-card {
    border: 1px solid #eadffa;
    background: linear-gradient(160deg, #ffffff 0%, #fcf7ff 100%);
    border-radius: 14px;
    padding: 12px;
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 2px;
}

.qm-next-stat-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a79ab;
    font-weight: 700;
}

.qm-next-stat-card strong {
    color: #452a73;
    font-size: 24px;
    line-height: 1;
}

.qm-next-controls {
    margin: 14px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-next-controls button {
    appearance: none;
    border: 1px solid #ddcbf4;
    background: #ffffff;
    color: #50347f;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.qm-next-controls button:hover {
    transform: translateY(-1px);
    border-color: #cdaef0;
    box-shadow: 0 8px 16px rgba(145, 89, 204, 0.16);
}

.qm-next-controls button[aria-pressed="true"] {
    border-color: #c596ef;
    background: #f7edff;
}

.qm-next-controls .qm-next-cta {
    border-color: transparent;
    background: linear-gradient(130deg, var(--qm-accent) 0%, var(--qm-accent-2) 100%);
    color: #fff;
}

.qm-next-stage {
    position: relative;
}

.qm-next-host-iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    display: block;
    box-shadow: 0 16px 34px rgba(112, 67, 176, 0.18);
}

.qm-next-host-shell[data-qm-motion="0"] .qm-next-controls button,
.qm-next-host-shell[data-qm-motion="0"] .qm-next-host-iframe {
    transition: none !important;
}

html.qm-next-scroll-lock,
body.qm-next-scroll-lock {
    overflow: hidden !important;
}

.qm-next-host-shell.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    border-radius: 0;
    border: 0;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow: auto;
    overscroll-behavior: contain;
    height: 100dvh;
    max-height: 100dvh;
}

.qm-next-host-shell.is-fullscreen .qm-next-controls {
    position: sticky;
    top: 8px;
    z-index: 6;
    backdrop-filter: blur(10px);
    background: rgba(249, 240, 255, 0.72);
    border: 1px solid #e5d2fb;
    border-radius: 12px;
    padding: 8px;
}

.qm-next-host-shell.is-dark.is-fullscreen .qm-next-controls {
    background: rgba(24, 19, 37, 0.84);
    border-color: #4a396c;
}

.qm-next-host-shell.is-fullscreen .qm-next-host-iframe {
    min-height: 420px;
    height: calc(100dvh - var(--qm-fullscreen-offset, 180px));
}

@media (max-width: 1024px) {
    .qm-next-host-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .qm-next-host-shell {
        border-radius: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .qm-next-controls {
        gap: 6px;
        margin: 8px 0 10px;
        padding: 0 4px;
    }

    .qm-next-controls button {
        font-size: 11px;
        padding: 8px 11px;
    }

    .qm-next-host-iframe {
        min-height: 280px;
        border-radius: 0;
        box-shadow: none;
    }

    .qm-next-host-shell.is-fullscreen .qm-next-host-iframe {
        min-height: 360px;
    }
}
