/* ═══════════════════════════════════════════════════════════════
 * AURORA — the site's look (owner, Oct 2026), laid over design-system.css.
 * It replaced Storybook after three skins were tried on the live pages
 * (Graphite, Cinema and an Aurora in Storybook's colours were dropped).
 *
 * Technological: deep night blue, a cyan-to-violet gradient on the main
 * action, glass panels,
 * Geologica headings and monospaced small labels. Dark only: the light theme
 * was removed with it (owner, Oct 2026). Surface only — no markup depends
 * on it.
 *
 * `html:root` (0,1,1), not `html`: the tokens must beat design-system.css's
 * own `:root` ones, as the dark-theme selector they replaced did.
 * ═══════════════════════════════════════════════════════════════ */

:root {
    /* Geologica, not Space Grotesk (owner, Oct 2026): Space Grotesk has no
       Cyrillic, so Ukrainian headings fell back to Inter and the two
       languages looked like two sites. Geologica has both. */
    --au-head: "Geologica", var(--font-sans);
    --au-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --au-grad: linear-gradient(100deg, #22D3EE 0%, #818CF8 55%, #A78BFA 100%);
}
html:root {
    --bg-0: #070B14;
    --bg-1: #0B1120;
    --ink: #E6EDF7;
    --ink-dim: #DCE4F0;
    --ink-2: #C3CEDF;
    --ink-3: #94A3B8;
    --muted: #94A3B8;
    --muted-2: #64748B;
    --line: rgba(148, 163, 184, .14);
    --line-hover: rgba(148, 163, 184, .26);
    --accent: #22D3EE;
    --accent-hover: #67E8F9;
    --accent-soft: rgba(34, 211, 238, .12);
    --accent-ring: rgba(34, 211, 238, .40);
    --accent-fg: #05101F;
    --primary: #22D3EE;
    --primary-hover: #67E8F9;
    --primary-fg: #05101F;
    --au-surface: rgba(14, 20, 34, .72);
    --au-surface-2: rgba(11, 17, 32, .9);
    --au-edge: #1E2A44;
    --au-edge-hover: #2E4066;
    --au-ink-on-grad: #05101F;
    --au-price: #0E1830;
    --au-price-ink: #A5F3FC;
}

/* ── Page, header ─────────────────────────────────────────────── */
html:root .studio-bg-layer {
    background-color: #070B14 !important;
    background-image:
        radial-gradient(900px 480px at 15% -5%, rgba(34, 211, 238, .13), transparent 65%),
        radial-gradient(900px 520px at 90% 10%, rgba(167, 139, 250, .14), transparent 65%),
        linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px) !important;
    background-size: auto, auto, 48px 48px, 48px 48px !important;
}
html:root .studio-header {
    background: rgba(7, 11, 20, .72) !important;
    border-bottom: 1px solid rgba(148, 163, 184, .12) !important;
}
html:root .ds-hero__scrim {
    background: linear-gradient(to top, #070B14 0%, rgba(7, 11, 20, .55) 45%, rgba(7, 11, 20, .15) 100%) !important;
}

/* ── Type ─────────────────────────────────────────────────────── */
html body.studio-body h1, html body.studio-body h2, html body.studio-body h3,
html body.studio-body .ds-hero__title {
    font-family: var(--au-head) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}
/* Lines of even length, not a full line and one word under it. */
html body.studio-body .ds-hero__title { text-wrap: balance; }
html body.studio-body h2.studio-gradient-text {
    background: none !important;
    color: var(--ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html body.studio-body .studio-gradient-text svg { color: var(--accent); }
/* Small labels in mono, the way a terminal says them. */
html body.studio-body .ds-eyebrow,
html body.studio-body .ds-modes__label,
html body.studio-body .gen-block__label,
html body.studio-body .ox-field__label {
    font-family: var(--au-mono) !important;
    letter-spacing: .04em;
}
html body.studio-body .ds-modes__label::before { content: "// "; color: var(--accent); }
html body.studio-body .create-flow { font-family: var(--au-mono); border-color: var(--au-edge); }
html body.studio-body .create-flow__arrow { color: var(--accent); }
html body.studio-body .ds-hero .ds-eyebrow {
    background: rgba(7, 11, 20, .55) !important;
    border: 1px solid rgba(34, 211, 238, .45) !important;
    color: #A5F3FC !important;
    box-shadow: 0 0 24px -8px rgba(34, 211, 238, .5) !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* The hero's label says what the site is, terminal-style (owner, Oct 2026). */
html body.studio-body .ds-hero .ds-eyebrow::before { content: "//"; color: var(--accent); }

/* ── Buttons: the gradient is the action ──────────────────────── */
html body.studio-body .ds-btn { border-radius: 999px; font-weight: 600; }
html body.studio-body .ds-btn-primary,
html body.studio-body .ds-btn-solid,
html body.studio-body .gen-submit,
html body.studio-body .studio-btn {
    background: var(--au-grad) !important;
    color: var(--au-ink-on-grad) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 28px -10px rgba(34, 211, 238, .55) !important;
    text-shadow: none !important;
}
html body.studio-body .ds-btn-primary:hover,
html body.studio-body .ds-btn-solid:hover,
html body.studio-body .gen-submit:hover,
html body.studio-body .studio-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
html body.studio-body .ds-btn-ghost,
html body.studio-body .studio-btn-ghost,
html body.studio-body .rail-see-all {
    background: rgba(148, 163, 184, .05) !important;
    border: 1px solid var(--au-edge) !important;
    color: var(--ink) !important;
    border-radius: 999px !important;
}
html body.studio-body .ds-btn-ghost:hover,
html body.studio-body .studio-btn-ghost:hover,
html body.studio-body .rail-see-all:hover { border-color: var(--accent) !important; }

html body.studio-body .ox-cta { border: 1px solid var(--au-edge) !important; border-radius: 999px !important; box-shadow: 0 8px 28px -12px rgba(34, 211, 238, .5) !important; }
html body.studio-body .ox-cta .ox-cta__do { background: var(--au-grad) !important; color: var(--au-ink-on-grad) !important; font-weight: 600; }
html body.studio-body .ox-cta:hover:not(:disabled) .ox-cta__do { filter: brightness(1.08); }
html body.studio-body .ox-cta .ox-cta__price { background: var(--au-price) !important; color: var(--au-price-ink) !important; font-family: var(--au-mono); }

/* ── Cards and panels: glass, a gradient edge under the pointer ─ */
html body.studio-body .rail-card-link {
    border: 1px solid var(--au-edge) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8) !important;
    transform: none !important;
}
/* No lift and no coloured edge under the pointer (owner, Oct 2026): a card
   stays where it is, in its own hairline. */
html body.studio-body .rail-card-link:hover,
html body.studio-body .rail-card-link:focus-visible,
html body.studio-body .ds-modes__card:hover,
html body.studio-body .ds-modes__card:focus-visible {
    transform: none !important;
    border-color: var(--au-edge) !important;
}
html body.studio-body .studio-panel,
html body.studio-body .gen-workspace__form,
html body.studio-body .res-panel,
html body.studio-body .rev-card {
    background: var(--au-surface) !important;
    border: 1px solid var(--au-edge) !important;
    border-radius: 18px !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: none !important;
}
html body.studio-body .gen-rail { background: var(--au-surface-2); border-color: var(--au-edge); }
html body.studio-body .ds-modes__card { border-color: var(--au-edge); border-radius: 16px; }
html body.studio-body .ds-credit-pill { border: 1px solid var(--au-edge); background: rgba(148, 163, 184, .05); font-family: var(--au-mono); }

/* ── Controls ─────────────────────────────────────────────────── */
html body.studio-body .gen-seg { border-color: var(--au-edge); border-radius: 12px; }
html body.studio-body .gen-seg__opt.is-active {
    background: rgba(34, 211, 238, .14) !important;
    color: var(--accent) !important;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45);
}
html body.studio-body .gen-ratio__input:checked + .gen-ratio__tile {
    border-color: var(--accent) !important;
    background: var(--accent-soft) !important;
    box-shadow: 0 0 18px -6px rgba(34, 211, 238, .55) !important;
}
html body.studio-body .gen-ratio__tile { border-radius: 12px; }
html body.studio-body .ox-tgl input:checked ~ .ox-tgl__track { background: var(--au-grad) !important; box-shadow: none !important; }
html body.studio-body .gen-strip__item.is-active { box-shadow: 0 0 0 2px var(--accent) !important; }
html body.studio-body .gen-textarea,
html body.studio-body .ox-input,
html body.studio-body .ds-input { border-radius: 12px; }
html body.studio-body .gen-textarea:focus,
html body.studio-body .ox-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Icons on a button take the button's text colour. */
html body.studio-body .ox-cta__do svg,
html body.studio-body .ds-btn-primary svg,
html body.studio-body .gen-submit svg { color: currentColor !important; }
html body.studio-body .create-helper__label svg,
html body.studio-body .ds-hero__note svg { color: var(--accent) !important; }

/* ── The result page's panels and the editor (owner, Oct 2026) ───
 * The panels' own violet (--ox-violet*) becomes Aurora's cyan, so sliders,
 * focus rings, numbers and the file chip follow without a rule each. Where
 * the violet was a FILL under white text — the chosen segment, the chosen
 * tab, the editor's chosen tool and its Done pill — cyan cannot carry white
 * text, so those take Aurora's own selection instead: a cyan tint, cyan text,
 * a cyan hairline; the one main action takes the gradient. */
html:root {
    --ox-violet:      #22D3EE;
    --ox-violet-soft: rgba(34, 211, 238, .12);
    --ox-violet-ring: rgba(34, 211, 238, .42);
    --ox-violet-glow: rgba(34, 211, 238, .32);
    --ox-violet-text: #67E8F9;
}
html body.studio-body .ox-seg__opt:hover .ox-seg__face { background: rgba(34, 211, 238, .06); }
html body.studio-body .ox-seg__opt input:checked ~ .ox-seg__face,
html body.studio-body .res-mode.is-active {
    color: var(--accent) !important;
    background: rgba(34, 211, 238, .14) !important;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45) !important;
}
html body.studio-body .res-mode.is-active svg { color: currentColor; }

/* The editor keeps its own copy of the token, scoped to it. */
html body.studio-body .ox-editor { --ox-violet: #22D3EE; }
html body.studio-body .ox-editor-icon-btn.is-active {
    background: rgba(34, 211, 238, .14) !important;
    border-color: rgba(34, 211, 238, .45) !important;
    color: var(--accent) !important;
}
html body.studio-body .ox-editor-done,
html body.studio-body .ox-editor-download {
    background: var(--au-grad) !important;
    color: var(--au-ink-on-grad) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 28px -10px rgba(34, 211, 238, .55) !important;
    transform: none;
}
html body.studio-body .ox-editor-done:hover:not(:disabled),
html body.studio-body .ox-editor-download:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
html body.studio-body .ox-editor-download:active:not(:disabled) { transform: translateY(0); }
html body.studio-body .ox-editor-download svg,
html body.studio-body .ox-editor-done svg { color: currentColor !important; }
html body.studio-body .ox-crop-handle { border-color: #070B14; }
