/* ═══════════════════════════════════════════════════════════════
 * NEON — the redesign (owner, Nov 11 2026), stage 1: the palette and the
 * shell. Laid over Aurora and loaded after it, so the same selectors win by
 * order; Aurora's file is untouched and this one can be dropped to go back.
 *
 * The look: a deeper indigo night, violet edges, and the main action in
 * cyan → violet → magenta. The shell: a side menu on every page — a fixed
 * column from 1024px up, a drawer below — and, on a narrow screen, a bottom
 * bar of five places with the way to create in the middle.
 * ═══════════════════════════════════════════════════════════════ */

:root {
    /* THE TYPE (owner's pick "B", Nov 12 2026): Wix Madefor, self-hosted
       (assets/fonts/wix-madefor.css). Display for headings, Text for the
       rest — the small labels too: Aurora's monospace read as a terminal. */
    --font-sans: "Wix Madefor Text", Inter, "Inter Variable", system-ui, -apple-system, sans-serif;
    --au-head: "Wix Madefor Display", "Wix Madefor Text", Inter, system-ui, sans-serif;
    --au-mono: "Wix Madefor Text", Inter, system-ui, sans-serif;
    --au-grad: linear-gradient(100deg, #22D3EE 0%, #8B7CF6 55%, #D946EF 100%);
    --ox-side-w: 232px;
    --ox-tabbar-h: 64px;
    /* SOFT EDGES (owner's pick "B", Nov 12 2026): a block is told from the page
       by its tone, a hairline at 9% and a highlight along its top — no hard
       border. Fields and chips keep a faint line of their own; only a PICKED
       option keeps a clear (cyan) edge, because there the edge means something. */
    --nx-card: #0E1330;
    --nx-edge: rgba(139, 148, 220, .09);
    --nx-line: rgba(139, 148, 220, .12);
    --nx-divider: rgba(139, 148, 220, .08);
    --nx-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--nx-edge), 0 18px 40px -20px rgba(0, 0, 0, .85);
    /* A PICKED OPTION (owner's pick "B", Nov 12 2026): no edge, the "Create"
       button's own gradient at a fifth of its strength, a highlight on top.
       The small segments get a little more, or one word in a row of four
       reads too weakly. */
    --nx-picked: linear-gradient(110deg, rgba(34, 211, 238, .16), rgba(139, 124, 246, .20) 60%, rgba(217, 70, 239, .14));
    /* More contrast (owner's photo 1, Nov 17 2026): a picked option reads at a glance. */
    --nx-picked-seg: linear-gradient(110deg, rgba(56, 189, 248, .32), rgba(139, 92, 246, .62) 55%, rgba(217, 70, 239, .5));
    --nx-picked-lift: inset 0 1px 0 rgba(255, 255, 255, .08);
}
html:root {
    --bg-0: #070A1A;
    --bg-1: #0B1030;
    --line: rgba(139, 148, 220, .16);
    --line-hover: rgba(139, 148, 220, .30);
    --au-surface: rgba(14, 19, 48, .78);
    --au-surface-2: rgba(10, 14, 36, .92);
    --au-edge: rgba(139, 148, 220, .12);
    --au-edge-hover: rgba(139, 148, 220, .26);
    --au-price: #141A45;
}
html:root .studio-bg-layer {
    background-color: #070A1A !important;
    background-image:
        radial-gradient(900px 480px at 12% -5%, rgba(34, 211, 238, .12), transparent 65%),
        radial-gradient(1000px 560px at 92% 8%, rgba(217, 70, 239, .14), transparent 65%),
        radial-gradient(900px 600px at 50% 110%, rgba(139, 124, 246, .10), transparent 65%) !important;
    background-size: auto !important;
}

/* Headings in Wix Madefor Display read lighter than Geologica did at
   Aurora's 600: the headline takes 700, section headings 650 (one variable
   file carries every weight from 400 to 800). */
html body.studio-body h1,
html body.studio-body .ds-hero__title { font-weight: 700 !important; letter-spacing: -0.025em; }
html body.studio-body h2,
html body.studio-body h3 { font-weight: 650 !important; }

/* ── The side menu ────────────────────────────────────────────── */
.ox-side {
    position: fixed; inset: 0 auto 0 0; z-index: 1001; width: min(308px, 86vw);
    display: flex; flex-direction: column; gap: 4px; box-sizing: border-box;
    padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #0A0E24; border-right: 1px solid var(--au-edge);
    overflow-y: auto; overscroll-behavior: contain;
    animation: ox-side-in .18s ease-out;
}
.ox-side.hidden { display: none; }
@keyframes ox-side-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ox-side { animation: none; } }
.ox-side-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(3, 5, 15, .66); }
.ox-side-backdrop.hidden { display: none; }

.ox-side__brand { display: flex; align-items: center; min-height: 44px; padding: 0 10px 12px; text-decoration: none; }
.ox-side__brand img { max-height: 38px; width: auto; }
.ox-side__brand-text { font-family: var(--au-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.ox-side__nav { display: flex; flex-direction: column; gap: 4px; }
.ox-side__nav form { margin: 0; display: flex; flex-direction: column; }
.ox-side__link {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; box-sizing: border-box;
    padding: 0 14px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer;
    font: inherit; font-size: .95rem; text-align: start; text-decoration: none; color: var(--ink-2);
    transition: background .15s, color .15s, border-color .15s;
}
.ox-side__link svg { width: 20px; height: 20px; flex: none; }
/* A long name wraps to a second line rather than run out (Nov 22 2026: "Перенесення руху"). */
.ox-side__link span { line-height: 1.2; }
.ox-side__link:hover { color: var(--ink); background: rgba(139, 148, 220, .10); }
.ox-side__link.is-active {
    color: #fff; font-weight: 600; background: var(--nx-picked); border-color: transparent;
    box-shadow: var(--nx-picked-lift);
}
.ox-side__link.is-active svg { color: var(--accent); }
.ox-side__rule { height: 1px; margin: 8px 6px; background: var(--au-edge); }
.ox-side__badge {
    margin-inline-start: auto; min-width: 1.25rem; padding: 0 .4rem; border-radius: 999px;
    background: #F43F5E; color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.25rem; text-align: center;
}
.ox-side__badge.hidden { display: none; }
.ox-side__foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ox-side__balance {
    display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px;
    background: #141A45; box-shadow: var(--nx-lift);
}
.ox-side__balance-value { display: inline-flex; align-items: center; gap: 8px; font-family: var(--au-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.ox-side__balance-value svg { width: 18px; height: 18px; color: var(--accent); }
.ox-side__topup, .ox-side__signin {
    display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
    border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.ox-side__topup { color: var(--au-ink-on-grad); background: var(--au-grad); }
.ox-side__topup:hover { filter: brightness(1.08); }
.ox-side__signin { color: var(--ink); border: 1px solid var(--au-edge-hover); }
.ox-side__signin:hover { background: rgba(139, 148, 220, .10); }

/* ── The phone's bottom bar ───────────────────────────────────── */
.ox-tabbar {
    position: fixed; inset: auto 0 0 0; z-index: 950;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 36, .96); border-top: 1px solid var(--au-edge);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ox-tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; min-width: 0; text-decoration: none; color: var(--ink-3); font-size: .68rem;
}
.ox-tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ox-tabbar__item svg { width: 22px; height: 22px; }
.ox-tabbar__item.is-active { color: var(--accent); font-weight: 600; }
.ox-tabbar__item--main { justify-self: center; width: 54px; height: 54px; min-height: 0; border-radius: 50%; color: var(--au-ink-on-grad); background: var(--au-grad); box-shadow: 0 8px 24px -6px rgba(139, 124, 246, .7); }
.ox-tabbar__item--main.is-active { color: var(--au-ink-on-grad); }
.ox-tabbar__item--main svg { width: 26px; height: 26px; }
.ox-tabbar__item--main span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Narrow: the page clears the bar; the round support button sits over it ── */
@media (max-width: 1023.98px) {
    .ox-shell__page { padding-bottom: calc(var(--ox-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
    .support-fab { bottom: calc(var(--ox-tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); right: 16px; }
    /* The drawer carries the account on a narrow screen; the header keeps its own on 768+. */
}

/* ── Wide: the menu is a column, the page beside it ───────────── */
@media (min-width: 1024px) {
    aside.ox-side, aside.ox-side.hidden { display: flex; width: var(--ox-side-w); z-index: 300; animation: none; }
    .ox-side-backdrop, .ox-side-backdrop.hidden { display: none; }
    .ox-side__only-drawer { display: none !important; }
    .ox-tabbar { display: none; }
    .ox-burger { display: none !important; }
    .ox-shell__page { padding-inline-start: var(--ox-side-w); }
    /* The logo is in the menu; the header's own steps aside and its tools stay right. */
    .ox-head__brand { display: none !important; }
    .ox-head__brand + div { margin-inline-start: auto; }
}
[dir="rtl"] .ox-side { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--au-edge); }

/* ═══════════════════════════════════════════════════════════════
 * STAGE 3 — the home page (owner, Nov 11 2026).
 * THE HERO IS THE PAGE'S BACKGROUND AGAIN (owner, Nov 12 2026 — the rounded
 * card was stage 3's first try): a band flush under the header, edge to
 * edge of the page beside the side menu. A 100vw band slid under the menu,
 * so from 1024px it is 100vw less the menu's width, centred on the column
 * the way the column is centred on that space. The clip keeps the right of
 * the band and fades into the page's own colour on its left and foot, so
 * there is no edge to see. On a phone it is the band at the top
 * (design-system.css) — or, once the owner's vertical clip is there
 * (.ds-hero--tall, video/hero-tall.*), the whole hero, the words over its
 * foot. Then the six ways in, then the scene rails.
 * ═══════════════════════════════════════════════════════════════ */
html body.studio-body .ds-hero { background: #070A1A; border-radius: 0; border: 0; box-shadow: none; }
html body.studio-body .ds-hero__media { background-color: #070A1A; }
html body.studio-body .ds-hero__scrim {
    background:
        linear-gradient(to top, #070A1A 0%, rgba(7, 10, 26, .6) 22%, rgba(7, 10, 26, 0) 50%) !important;
}
@media (min-width: 1024px) {
    html body.studio-body .ds-hero {
        width: calc(100vw - var(--ox-side-w));
        margin-inline: calc(50% - (100vw - var(--ox-side-w)) / 2);
        min-height: clamp(420px, 64vh, 660px);
    }
    html body.studio-body .ds-hero__scrim {
        background:
            linear-gradient(to right, #070A1A 0%, rgba(7, 10, 26, .55) 18%, rgba(7, 10, 26, 0) 40%),
            linear-gradient(to top, #070A1A 0%, rgba(7, 10, 26, .3) 30%, rgba(7, 10, 26, 0) 60%),
            linear-gradient(110deg, transparent 55%, rgba(217, 70, 239, .12) 100%) !important;
    }
}
/* Only on an UPRIGHT narrow screen: a phone turned sideways or a tablet in
   landscape is wide, and a 9:16 clip there showed a strip of a face — those
   keep the wide clip as the band at the top. media-lazy.js asks the same. */
@media (max-width: 1023.98px) and (orientation: portrait) {
    /* The vertical clip fills the hero; the words sit on its darkened foot. */
    html body.studio-body .ds-hero--tall .ds-hero__media { bottom: 0; height: auto; background-image: var(--hero-poster-tall) !important; }
    html body.studio-body .ds-hero--tall .ds-hero__inner { padding-top: clamp(300px, 92vw, 520px); }
    html body.studio-body .ds-hero--tall .ds-hero__scrim {
        background: linear-gradient(to top, #070A1A 0%, rgba(7, 10, 26, .88) 38%, rgba(7, 10, 26, 0) 68%) !important;
    }
}

/* A phone: the main action is the card's full width. */
@media (max-width: 639px) {
    html body.studio-body .ds-hero__cta .ds-btn-primary { flex: 1 1 100%; justify-content: center; }
    html body.studio-body .ds-hero__cta .ds-btn-ghost { flex: 1 1 auto; justify-content: center; }
}

/* ── The six ways in ── the owner's pictures stay; the icon sits in a chip. */
html body.studio-body .ds-modes__card { border: 0; border-radius: 18px; background: var(--nx-card); box-shadow: var(--nx-lift); }
html body.studio-body .ds-modes__icon {
    width: 34px; height: 34px; padding: 7px; box-sizing: border-box; margin-bottom: 6px;
    border-radius: 10px; color: #67E8F9;
    background: rgba(10, 14, 36, .72); border: 1px solid rgba(139, 148, 220, .16);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* The label as the owner's design has it (Nov 22 2026): two cyan strokes before it. */
html body.studio-body .ds-modes__label::before { content: '//'; margin-inline-end: .4em; color: #67E8F9; letter-spacing: 0; }
/* A PHONE: two across, each a wide card (owner's design, Nov 22 2026) — the icon in
   its chip and the name on the left, the picture fading in from the right, an arrow
   in the corner, the edges in the brand's cyan and violet by turns. */
@media (max-width: 639px) {
    html body.studio-body .ds-modes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    html body.studio-body .ds-modes__card {
        /* A height, not a ratio: with a floor under it, a ratio widened the card past its column. */
        aspect-ratio: auto; height: 104px; border-radius: 16px;
        box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .34), 0 10px 24px -16px rgba(34, 211, 238, .55);
    }
    html body.studio-body .ds-modes__card:nth-child(even) {
        box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .4), 0 10px 24px -16px rgba(168, 85, 247, .6);
    }
    html body.studio-body .ds-modes__img {
        left: auto; width: 64%; filter: brightness(.88) saturate(1);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%);
    }
    html body.studio-body .ds-modes__shade { display: none; }
    html body.studio-body .ds-modes__body { top: 0; justify-content: flex-start; gap: 8px; padding: 10px 12px; }
    html body.studio-body .ds-modes__icon { width: 32px; height: 32px; padding: 6px; margin: 0; }
    html body.studio-body .ds-modes__title { max-width: 66%; font-size: .84rem; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); }
    html body.studio-body .ds-modes__arrow { right: 8px; bottom: 8px; width: 24px; height: 24px; padding: 5px; }
}

/* ── WHAT TO CREATE, ASKED FIRST (owner, Nov 22 2026; partials/create_sheet.php) ──
   "Create" and "+" open it: a sheet from the bottom on a phone, over the bottom
   bar, with a grip; a dialog in the middle on a computer. THE OWNER'S DESIGN
   (same day): "What to create?" under a spark, then two across — each card its
   icon in a coloured chip, its name in two lines, a line of what it does, the
   home page's picture fading in from the right, an arrow in a ring; edged and
   lit in cyan and violet by turns. */
html.ox-sheet-open, html.ox-sheet-open body { overflow: hidden; }
.ox-create-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.ox-create-sheet[hidden] { display: none; }
.ox-create-sheet__backdrop {
    position: absolute; inset: 0; background: rgba(3, 5, 15, .62);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease;
}
.ox-create-sheet__panel {
    position: relative; width: 100%; max-height: 90vh; overflow-y: auto; box-sizing: border-box;
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #141A3C 0%, #0B1027 46%);
    border: 1px solid rgba(139, 148, 220, .2); border-bottom: 0; border-radius: 26px 26px 0 0;
    box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .9);
    transform: translateY(100%); transition: transform .22s ease;
}
.ox-create-sheet__panel:focus { outline: none; }
.ox-create-sheet.is-open .ox-create-sheet__backdrop { opacity: 1; }
.ox-create-sheet.is-open .ox-create-sheet__panel { transform: none; }
.ox-create-sheet__grip { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(139, 148, 220, .4); }
.ox-create-sheet__head { display: flex; align-items: flex-start; gap: 12px; margin: 0 2px 16px; }
.ox-create-sheet__spark {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 13px; background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(59, 130, 246, .14));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .28); color: #67E8F9;
}
.ox-create-sheet__spark svg { width: 22px; height: 22px; }
.ox-create-sheet__heading { flex: 1; min-width: 0; }
.ox-create-sheet__title { margin: 1px 0 3px; font-family: var(--au-head); font-size: 1.35rem; font-weight: 700; line-height: 1.15; color: #fff; }
.ox-create-sheet__sub { margin: 0; font-size: .86rem; line-height: 1.3; color: #A9B0D6; }
.ox-create-sheet__close {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(139, 148, 220, .28); background: rgba(255, 255, 255, .04); color: #D5D9F2; cursor: pointer;
}
.ox-create-sheet__close:hover { color: #fff; border-color: rgba(139, 148, 220, .5); }
.ox-create-sheet__close svg { width: 18px; height: 18px; }
.ox-create-sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ox-create-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
    min-height: 146px; box-sizing: border-box; padding: 12px 12px 14px; border-radius: 18px; text-decoration: none; color: #fff;
    background: #0E1330;
    box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .5), 0 0 22px -8px rgba(34, 211, 238, .55);
    transition: box-shadow .18s ease, transform .18s ease;
}
.ox-create-card:nth-child(even) { box-shadow: inset 0 0 0 1.5px rgba(168, 85, 247, .55), 0 0 22px -8px rgba(168, 85, 247, .6); }
.ox-create-card:hover, .ox-create-card:focus-visible { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px rgba(103, 232, 249, .85), 0 0 26px -6px rgba(103, 232, 249, .6); }
.ox-create-card:focus-visible { outline: 2px solid #67E8F9; outline-offset: 2px; }
.ox-create-card__img {
    position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
    filter: brightness(.9);
}
.ox-create-card__icon, .ox-create-card__title, .ox-create-card__text { position: relative; }
.ox-create-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px;
    color: #fff; background: linear-gradient(135deg, rgba(34, 211, 238, .5), rgba(59, 130, 246, .38));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.ox-create-card:nth-child(even) .ox-create-card__icon { background: linear-gradient(135deg, rgba(168, 85, 247, .58), rgba(99, 102, 241, .4)); }
.ox-create-card__icon svg { width: 20px; height: 20px; }
.ox-create-card__title {
    max-width: 74%; font-family: var(--au-head); font-size: 1.02rem; font-weight: 700; line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
.ox-create-card__text {
    max-width: 74%; padding-inline-end: 6px; font-size: .74rem; line-height: 1.3; color: #C9CEEA;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}
.ox-create-card__go {
    position: absolute; inset-inline-end: 10px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(10, 14, 36, .55); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ox-create-card__go svg { width: 16px; height: 16px; }
@media (max-width: 359px) {
    .ox-create-sheet__grid { gap: 8px; }
    .ox-create-card { min-height: 136px; padding: 10px; }
    .ox-create-card__title { font-size: .92rem; }
    .ox-create-card__text { font-size: .7rem; }
}
@media (min-width: 768px) {
    .ox-create-sheet { align-items: center; padding: 24px; }
    .ox-create-sheet__panel {
        max-width: 640px; max-height: calc(100vh - 48px); padding: 22px;
        border-bottom: 1px solid rgba(139, 148, 220, .2); border-radius: 26px;
        transform: translateY(12px) scale(.98); opacity: 0; transition: transform .2s ease, opacity .2s ease;
    }
    .ox-create-sheet.is-open .ox-create-sheet__panel { transform: none; opacity: 1; }
    .ox-create-sheet__grip { display: none; }
    .ox-create-sheet__grid { gap: 14px; }
    .ox-create-card { min-height: 156px; padding: 16px; }
    .ox-create-card__title { font-size: 1.12rem; }
    .ox-create-card__text { font-size: .8rem; }
    .ox-create-card__go { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .ox-create-sheet__panel, .ox-create-sheet__backdrop, .ox-create-card { transition: none; }
}

/* ── The scene rails: a plain heading, "see all" as a link ── */
html body.studio-body .rail h2 { font-size: 1.6rem; }
html body.studio-body .rail h2 svg { color: var(--accent); }
html body.studio-body .rail-see-all,
html body.studio-body .rail-see-all:hover {
    background: none !important; border: 0 !important; padding-inline: 0;
    color: #67E8F9 !important; font-weight: 600;
}
html body.studio-body .rail-see-all:hover { color: #A5F3FC !important; }
html body.studio-body .rail-track { gap: 16px; }
html body.studio-body .rail-card-link { border: 0 !important; box-shadow: var(--nx-lift) !important; }
@media (max-width: 639px) {
    html body.studio-body .rail h2 { font-size: 1.25rem; }
    /* "See all" beside the heading, not alone on a line under it. */
    html body.studio-body .rail > div:first-child { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    html body.studio-body .rail-see-all { flex: none; min-height: 44px; margin-top: -10px; }
}

/* ═══════════════════════════════════════════════════════════════
 * STAGE 4 — the create pages and the result page (owner, Nov 12 2026).
 * The same forms, nothing moved out of them: the form and its settings
 * become two cards side by side, the section names read as headings, a
 * picked option is the night blue with a cyan edge, and on a phone the
 * button is pinned over the bottom bar so it never scrolls away.
 * ═══════════════════════════════════════════════════════════════ */

/* The modes are the side menu's on a computer; the tiles stay on a phone. */
@media (min-width: 1024px) {
    html body.studio-body .create-head .create-modes-block { display: none; }
    html body.studio-body .create-head { grid-template-columns: minmax(0, 1fr); }
}
html body.studio-body .create-head__title { font-family: var(--au-head); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; }

/* Two cards: the form, and the settings with the button. */
html body.studio-body .gen-workspace__form {
    gap: 20px; overflow: visible;
    background: none !important; border: 0 !important; border-radius: 0 !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
html body.studio-body .gen-workspace__form > .create-main,
html body.studio-body .gen-workspace__form > .gen-canvas,
html body.studio-body .gen-workspace__form > .gen-rail {
    background: var(--nx-card); border: 0; border-radius: 20px; box-shadow: var(--nx-lift);
}
html body.studio-body .gen-workspace__form > .gen-rail { overflow: hidden; }
html body.studio-body .gen-rail__head,
html body.studio-body .gen-rail__foot { border-color: var(--nx-divider); background: transparent; }
html body.studio-body .gen-rail__title { font-family: var(--au-head); font-size: 1.05rem; font-weight: 600; }
html body.studio-body .create-block + .create-block { border-top-color: var(--nx-divider); }
@media (max-width: 900px) {
    html body.studio-body .gen-workspace__form { gap: 16px; }
}

/* Section names: a heading in the form, a quiet label in the settings. */
html body.studio-body .create-main .gen-block__label,
html body.studio-body .create-main .ox-field__label {
    font-family: var(--au-head) !important; font-size: 1.05rem; font-weight: 600;
    letter-spacing: 0; text-transform: none; color: var(--ink);
}
html body.studio-body .gen-rail .gen-block__label {
    font-family: inherit !important; font-size: .82rem; font-weight: 500;
    letter-spacing: 0; text-transform: none; color: #A9B1D6;
}

/* Fields sit a step darker than their card. */
html body.studio-body .gen-workspace .gen-textarea,
html body.studio-body .gen-workspace .ox-input,
html body.studio-body .gen-workspace .ds-input { background-color: #070A1A; border-color: var(--nx-line); }
html body.studio-body .gen-workspace .gen-seg { background: #070A1A; border-color: var(--nx-line); }

/* A picked option: the soft brand gradient, white words, a cyan icon. */
html body.studio-body .gen-seg__opt.is-active,
html body.studio-body .ox-seg__opt input:checked ~ .ox-seg__face,
html body.studio-body .res-mode.is-active,
html body.studio-body .vchoice__opt.is-active,
html body.studio-body .vchoice__opt:has(input:checked),
html body.studio-body .ds-media-opt input:checked + span,
html body.studio-body .history-drop__opt.is-active,
html body.studio-body .gen-ratio__input:checked + .gen-ratio__tile,
html body.studio-body .song-format.is-active {
    background: var(--nx-picked-seg) !important; color: #fff !important;
    border-color: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .55), 0 6px 18px -10px rgba(168, 85, 247, .9) !important;
}
/* ONE SWITCH, ONE LOOK (owner, Nov 17 2026): the options not picked read clearly too,
   and the rail's other switches (the image qualities) take the video choice's shape. */
html body.studio-body .vchoice__opt,
html body.studio-body .gen-seg__opt,
html body.studio-body .ox-seg__face { color: #B9BFE0; }
html body.studio-body .vchoice__opt:hover,
html body.studio-body .gen-seg__opt:hover { color: #fff; }
html body.studio-body .gen-rail .gen-seg,
html body.studio-body .gen-workspace .gen-seg:not(.create-modes) { padding: 3px; gap: 3px; overflow: visible; }
html body.studio-body .gen-rail .gen-seg__opt,
html body.studio-body .gen-workspace .gen-seg:not(.create-modes) .gen-seg__opt { border-radius: calc(var(--radius-md) - 3px); }
html body.studio-body .song-chip.is-active,
html body.studio-body .create-style.is-active,
html body.studio-body .song-mode.is-active,
html body.studio-body .ox-editor-icon-btn.is-active {
    background: var(--nx-picked) !important; border-color: transparent !important; color: #fff !important;
    box-shadow: var(--nx-picked-lift) !important;
}
html body.studio-body .song-mode.is-active .song-mode__icon,
html body.studio-body .song-format.is-active svg,
html body.studio-body .gen-seg__opt.is-active svg,
html body.studio-body .ds-media-opt input:checked + span svg { color: #67E8F9; }
/* The video switches' own frame: a faint line, like every other field. */
html body.studio-body .vchoice__seg { background: #070A1A; border-color: var(--nx-line); }
html body.studio-body .song-chip,
html body.studio-body .create-style,
html body.studio-body .song-mode { background-color: #070A1A; border-color: var(--nx-line); }

/* THE SHAPES ARE A SWITCH TOO (owner, Nov 17 2026: "make the proportions the
   same"): the video choice's frame with the options inside it — the format
   buttons, the shape tiles, the outfit tiles — and the picked one in the
   switches' gradient (above). */
html body.studio-body .gen-ratios,
html body.studio-body .song-formats {
    gap: 3px; padding: 3px;
    background: #070A1A; border: 1px solid var(--nx-line); border-radius: var(--radius-md);
}
html body.studio-body .gen-ratio__tile,
html body.studio-body .song-format {
    background: transparent; border-color: transparent; border-radius: calc(var(--radius-md) - 3px); color: #B9BFE0;
}
html body.studio-body .gen-ratio__tile:hover,
html body.studio-body .song-format:hover { border-color: transparent; color: #fff; }
html body.studio-body .gen-ratio__name { color: #B9BFE0; }
html body.studio-body .gen-ratio__input:checked + .gen-ratio__tile .gen-ratio__name { color: #fff; }
html body.studio-body .gen-ratio__input:checked + .gen-ratio__tile .gen-ratio__shape,
html body.studio-body .gen-ratio__input:checked + .gen-ratio__tile .gen-ratio__icon { border-color: #67E8F9; color: #67E8F9; }

/* A phone: the three lyric choices side by side, the icon over the name. */
@media (max-width: 640px) {
    html body.studio-body .song-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    html body.studio-body .song-mode { flex-direction: column; justify-content: center; gap: .35rem; min-height: 64px; padding: .55rem .35rem; text-align: center; }
    html body.studio-body .song-mode__text { align-items: center; }
    html body.studio-body .song-mode__title { font-size: .78rem; line-height: 1.2; }
    html body.studio-body .song-mode__sub { display: none; }
}

/* THE BUTTON PINNED OVER THE BOTTOM BAR (a phone, the settings under the
   form): the rail's foot — the refusal, any notice, the button with its
   price — is fixed above the bar. THE BALANCE OVER THE BUTTON (owner, Nov 17
   2026: "much easier to keep an eye on"): one short line. */
@media (max-width: 900px) {
    html body.studio-body .gen-rail__foot {
        position: fixed; left: 0; right: 0; z-index: 940;
        bottom: calc(var(--ox-tabbar-h) + env(safe-area-inset-bottom, 0px));
        padding: 10px 16px; border-top: 1px solid var(--au-edge);
        background: rgba(10, 14, 36, .96) !important;
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    html body.studio-body .gen-rail__foot .gen-cost { display: block; margin: 0 0 6px; font-size: .78rem; line-height: 1.3; text-align: center; }
    body.studio-body:has(.gen-rail__foot) .ox-shell__page { padding-bottom: calc(var(--ox-tabbar-h) + 108px + env(safe-area-inset-bottom, 0px)); }
    body.studio-body:has(.gen-rail__foot) .support-fab { bottom: calc(var(--ox-tabbar-h) + 116px + env(safe-area-inset-bottom, 0px)); }
}
/* From 901px the settings stand beside the form and the tab bar is still
   there below 1024px; the foot stays in its card. */

html body.studio-body .gen-cost__topup { color: #67E8F9; }

/* ── The result page ── */
html body.studio-body .res-viewer { border: 0; border-radius: 20px; background: #070A1A; box-shadow: var(--nx-lift); }
html body.studio-body .res-dock {
    background: rgba(10, 14, 36, .82) !important; border: 1px solid rgba(139, 148, 220, .16) !important;
}
html body.studio-body .res-dock__btn--primary {
    background: var(--au-grad) !important; color: var(--au-ink-on-grad) !important;
}
html body.studio-body .res-dock__btn--primary:hover { filter: brightness(1.08); }
html body.studio-body .res-panel { background: var(--nx-card) !important; border: 0 !important; border-radius: 20px !important; box-shadow: var(--nx-lift) !important; }

/* ═══════════════════════════════════════════════════════════════
 * STAGE 5 — scenes, history, pricing, profile, notifications
 * (owner, Nov 12 2026). The pages keep their layout; their panels, fields
 * and chips take the Neon surfaces the create pages have.
 * ═══════════════════════════════════════════════════════════════ */
html body.studio-body .studio-panel,
html body.studio-body .rev-card,
html body.studio-body .ds-card-dark,
html body.studio-body .ds-panel {
    background: var(--nx-card) !important; border: 0 !important; border-radius: 20px !important;
    box-shadow: var(--nx-lift) !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
html body.studio-body .ds-input,
html body.studio-body .ox-input { background-color: #070A1A; border-color: var(--nx-line); }
html body.studio-body .ds-input:focus,
html body.studio-body .ox-input:focus { border-color: var(--accent); }

/* A picked chip (the scene categories): the same soft gradient. */
html body.studio-body .ds-btn-chip { background: var(--nx-card); border-color: var(--nx-line); }
html body.studio-body .ds-btn-chip.is-active {
    background: var(--nx-picked-seg); border-color: transparent; color: #fff;
    box-shadow: var(--nx-picked-lift);
}

/* Pricing: three packs side by side on a wide screen. */
@media (min-width: 1100px) {
    html body.studio-body .pricing-packs--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html body.studio-body .pricing-packs--n3 .studio-surface { padding: 1.75rem; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
    /* The buttons on one line, whatever the text above them takes. */
    html body.studio-body .pricing-packs--n3 .studio-surface > :last-child { margin-top: auto; padding-top: 2rem; }
    /* A third of the row: the price a size down, its saving free to wrap. */
    html body.studio-body .pricing-packs--n3 .pricing-price { flex-wrap: wrap; row-gap: .35rem; }
    html body.studio-body .pricing-packs--n3 .pricing-price > span:first-child { font-size: 2.5rem; }
}

/* A phone: the scene grid's own frame took 40px of a 390px screen. */
@media (max-width: 639px) {
    html body.studio-body .ds-card-dark:has(> .styles-grid) {
        padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
    }
}

/* The round support button sits at the bottom right of a computer screen,
   where the footer's last link ("Back to top") was under it. */
@media (min-width: 1024px) {
    html body.studio-body #support > div { padding-inline-end: 5.5rem; }
}

/* A surface inside a panel (the pricing cards) is the panel's own face:
   no second edge, no second shadow, the panel's colour. */
html body.studio-body .studio-panel > .studio-surface,
html body.studio-body .studio-panel > .studio-surface:hover {
    border: 0; background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* History tiles: the same soft edge as every other block. */
html body.studio-body .history-card { border: 0; box-shadow: var(--nx-lift); }

/* THE HERO'S LABEL (owner, Nov 12 2026: Aurora's mono "// AI-…" with a cyan
   frame stood out of the Neon look): a soft pill in the picked-option
   gradient, the page's own type, a glowing gradient dot instead of "//". */
html body.studio-body .ds-hero .ds-eyebrow {
    font-family: inherit !important; font-size: .8rem; font-weight: 500;
    letter-spacing: .01em; text-transform: none;
    padding: .4rem .9rem .4rem .75rem; gap: .5rem;
    color: #E6E9FF !important; background: var(--nx-picked) !important;
    border: 0 !important; box-shadow: var(--nx-picked-lift) !important;
}
html body.studio-body .ds-hero .ds-eyebrow::before {
    content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
    background: var(--au-grad); box-shadow: 0 0 10px rgba(139, 124, 246, .85);
}

/* ═══════════════════════════════════════════════════════════════
 * STAGE 6 — THE AI COMMAND BAR (owner, Nov 12 2026; assist.js,
 * AssistPlanner). A field in the header from 900px; below that a sparkle
 * button opens it as a panel at the top of the screen. Under the field:
 * examples, the answer, a link. On the page it leads to: the reply as a
 * note at the top (.ox-assist-note).
 * ═══════════════════════════════════════════════════════════════ */
.ox-assist { position: relative; flex: 1 1 auto; max-width: 560px; margin-inline-end: 16px; }
.ox-assist__field {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px;
    border-radius: 14px; background: var(--nx-card); box-shadow: inset 0 0 0 1px var(--nx-line);
    transition: box-shadow .15s;
}
.ox-assist__field:focus-within { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35), 0 0 24px -10px rgba(34, 211, 238, .6); }
.ox-assist__spark { width: 18px; height: 18px; flex: none; color: #67E8F9; }
.ox-assist__input {
    flex: 1 1 auto; min-width: 0; height: 42px; padding: 0; border: 0; outline: none; background: transparent;
    color: var(--ink); font: inherit; font-size: .92rem;
}
.ox-assist__input::placeholder { color: #8A93C2; }
.ox-assist__kbd {
    flex: none; padding: 2px 7px; border-radius: 6px; font: inherit; font-size: .68rem; font-weight: 600;
    color: #A9B1D6; background: rgba(139, 148, 220, .10); box-shadow: inset 0 0 0 1px var(--nx-line);
}
.ox-assist__field:focus-within .ox-assist__kbd { display: none; }
.ox-assist__go, .ox-assist__close {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
}
.ox-assist__go { display: none; color: var(--au-ink-on-grad); background: var(--au-grad); }
.ox-assist__field:focus-within .ox-assist__go, .ox-assist.is-busy .ox-assist__go, .ox-assist.is-open .ox-assist__go { display: grid; }
.ox-assist__go:disabled { opacity: .6; cursor: progress; }
.ox-assist__go svg, .ox-assist__close svg { width: 16px; height: 16px; }
.ox-assist__close { display: none; color: var(--ink-2); background: rgba(139, 148, 220, .10); }
.ox-assist.is-busy .ox-assist__spark { animation: ox-assist-pulse 1s ease-in-out infinite; }
@keyframes ox-assist-pulse { 50% { opacity: .35; transform: scale(.85); } }

.ox-assist__panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 400;
    display: flex; flex-direction: column; gap: 10px; padding: 14px;
    border-radius: 16px; background: #0E1330; box-shadow: var(--nx-lift), 0 24px 60px -20px rgba(0, 0, 0, .9);
}
.ox-assist__panel[hidden] { display: none; }
.ox-assist__status { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink); }
.ox-assist__status:empty { display: none; }
.ox-assist__status.is-busy { color: #A5F3FC; }
.ox-assist__status.is-error { color: #FDA4AF; }
.ox-assist__link {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
    font-size: .85rem; font-weight: 600; text-decoration: none; color: #fff; background: var(--nx-picked-seg); box-shadow: var(--nx-picked-lift);
}
.ox-assist__link[hidden] { display: none; }
.ox-assist__link svg { width: 14px; height: 14px; }
.ox-assist__examples { display: flex; flex-wrap: wrap; gap: 6px; }
.ox-assist__chip {
    padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer; text-align: start;
    font: inherit; font-size: .8rem; color: var(--ink-2); background: #070A1A; box-shadow: inset 0 0 0 1px var(--nx-line);
}
.ox-assist__chip:hover { color: #fff; background: var(--nx-picked); }
.ox-assist__hint { margin: 0; font-size: .74rem; line-height: 1.4; color: #8A93C2; }

.ox-assist-open {
    display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    color: #67E8F9; background: rgba(139, 148, 220, .10); box-shadow: inset 0 0 0 1px var(--nx-line);
}

/* A narrow screen: the button, and the bar as a panel at the top. */
@media (max-width: 899.98px) {
    .ox-assist { display: none; }
    .ox-assist-open { display: grid; }
    .ox-assist.is-open {
        display: block; position: fixed; inset: 0 0 auto 0; z-index: 1200; max-width: none; margin: 0;
        padding: 12px 16px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px));
        background: #0A0E24; box-shadow: 0 0 0 100vmax rgba(3, 5, 15, .66);
    }
    .ox-assist.is-open .ox-assist__close { display: grid; }
    .ox-assist.is-open .ox-assist__kbd { display: none; }
    .ox-assist.is-open .ox-assist__panel { position: static; margin-top: 10px; padding: 4px 0 0; background: none; box-shadow: none; }
    html.ox-assist-lock { overflow: hidden; }
}

/* The reply, on the page the bar led to. */
.ox-assist-note {
    position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 1150;
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(560px, calc(100vw - 32px));
    padding: 10px 10px 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.4; color: #fff;
    background: #141A45; background-image: var(--nx-picked); box-shadow: var(--nx-lift), 0 18px 48px -16px rgba(0, 0, 0, .9);
    animation: ox-assist-in .25s ease-out;
}
.ox-assist-note > svg { width: 18px; height: 18px; flex: none; color: #67E8F9; }
.ox-assist-note__close {
    flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; cursor: pointer;
    color: var(--ink-2); background: rgba(255, 255, 255, .06);
}
.ox-assist-note__close svg { width: 14px; height: 14px; }
.ox-assist-note.is-leaving { opacity: 0; transition: opacity .5s; }
@keyframes ox-assist-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 1024px) { .ox-assist-note { left: calc(50% + var(--ox-side-w) / 2); } }
@media (prefers-reduced-motion: reduce) {
    .ox-assist-note { animation: none; }
    .ox-assist.is-busy .ox-assist__spark { animation: none; }
}
