﻿:root {
    --bg: #111318;
    --panel: rgba(25, 28, 34, 0.94);
    --panel-strong: rgba(30, 34, 42, 0.98);
    --panel-border: rgba(255, 255, 255, 0.08);
    --ink: #edf1f7;
    --muted: #98a2b3;
    --accent: #f28b3c;
    --accent-dark: #d66f22;
    --accent-soft: rgba(242, 139, 60, 0.16);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 22px 52px rgba(0, 0, 0, 0.36);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(77, 114, 255, 0.08), transparent 20%),
        linear-gradient(180deg, #111318 0%, #0b0d11 100%);
}

.page-shell {
    max-width: none;
    width: calc(100vw - 12px);
    margin: 0 auto;
    padding: 8px 6px 14px;
}

.page-shell.shell-mode {
    max-width: none;
    width: calc(100vw - 12px);
    padding: 8px 6px 18px;
}

.hero {
    padding: 16px 0 12px;
}

.hero.compact {
    padding-top: 6px;
    padding-bottom: 8px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.02;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.lede,
.muted {
    color: var(--muted);
}

.card-grid,
.two-column {
    display: grid;
    gap: 22px;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.two-column {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.demo-card,
.panel,
.thumb-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.demo-card {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 180ms ease;
}

.demo-card:hover {
    box-shadow: var(--shadow-hover);
}

.demo-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.55), rgba(18, 22, 29, 0.9));
}

.demo-card.compact {
    min-width: 0;
    max-width: none;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Static thumbnails and slider container — fixed height */
.demo-card.compact img,
.demo-card.compact .demo-card-placeholder,
.demo-card.compact .ba-slider {
    height: 198px;
    min-height: 198px;
    max-height: 198px;
}

/* Standalone video thumbnail (NOT inside a slider) — direct child only */
.demo-card.compact > video,
.demo-card-video {
    display: block;
    width: 100%;
    height: 198px;
    min-height: 198px;
    max-height: 198px;
    object-fit: cover;
}

/* Videos inside the BA slider are absolutely positioned — don't constrain them here */
.ba-slider video {
    height: 100%;
    min-height: 0;
    max-height: none;
}


/* ── Before / After slider ────────────────────────────────────────────── */
.ba-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    display: block;
    width: 100%;
    height: 132px;
}


/* Both layers sit at the same absolute position and size.
   Clipping is done via clip-path on the wrapper — no layout width tricks. */
.ba-after,
.ba-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ba-after {
    object-fit: cover;
    object-position: center center;
    background: #000;
    max-width: none;
    z-index: 0;
}

/* Videos often have non-matching aspect ratios — contain so nothing is cut off */
video.ba-after,
video.ba-before {
    object-fit: contain;
}

.ba-before-wrap {
    /* JS sets clip-path: inset(0 X% 0 0) to reveal the before layer */
    clip-path: inset(0 50% 0 0);   /* default: 50/50 split */
    z-index: 1;
    overflow: hidden;              /* belt-and-suspenders — nothing leaks past the clip */
}

.ba-before {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #000;
    max-width: none;
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;           /* wider hit area — centred on the 3px line */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    pointer-events: all;   /* handle is clickable/draggable */
    cursor: col-resize;
    z-index: 2;
}

.ba-handle::before {       /* the visible 3px white line */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
    pointer-events: none;
}

.ba-knob {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    font-size: 13px;
    letter-spacing: -1px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: none;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.demo-card.compact .card-copy {
    padding: 10px 12px 12px;
}

.demo-card.compact h2 {
    font-size: 0.95rem;
    line-height: 1.18;
    margin-bottom: 0;
}

.demo-card.is-active {
    border-color: rgba(242, 139, 60, 0.5);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(242, 139, 60, 0.14),
        inset 0 0 0 1px rgba(242, 139, 60, 0.12);
    transform: translateY(-2px);
}

.demo-card-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(242, 139, 60, 0.16), rgba(34, 40, 52, 0.3)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 50%);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.card-copy,
.panel {
    padding: 20px;
}

/* ── Step-flow state indicators ─────────────────────────── */
@keyframes step-blink {
    0%, 49% {
        border-color: rgba(56, 189, 116, 0.9);
        box-shadow: var(--shadow), 0 0 0 3px rgba(56, 189, 116, 0.4);
    }
    50%, 100% {
        border-color: rgba(56, 189, 116, 0.08);
        box-shadow: var(--shadow);
    }
}

.section-next {
    animation: step-blink 0.9s step-start infinite;
    transition: none;
}

.section-complete {
    border-color: rgba(56, 189, 116, 0.85) !important;
    box-shadow: var(--shadow), 0 0 0 2px rgba(56, 189, 116, 0.22);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: none;
}

.shell-header {
    position: sticky;
    top: 8px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    margin-bottom: 6px;
    padding: 10px 12px 10px;
    background:
        linear-gradient(180deg, rgba(24, 27, 33, 0.98), rgba(17, 20, 25, 0.98)),
        linear-gradient(135deg, rgba(242, 139, 60, 0.08), transparent 26%);
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shell-brandbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
}

/* Bottom-align carousel with copy so the row height (from the left blurb)
   does not leave a dead band above the workspace iframe. */
.shell-mainrow {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: end;
    gap: 12px;
}

.shell-copy {
    padding-top: 0;
    padding-bottom: 2px;
}

.shell-copy .eyebrow {
    margin-bottom: 2px;
    font-size: 0.72rem;
}

.shell-copy h1 {
    font-size: clamp(1.15rem, 1.6vw, 1.65rem);
    margin-bottom: 2px;
    line-height: 1.15;
}

.shell-copy .lede {
    margin-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.35;
    max-width: 36ch;
}

/* == Workflow carousel ================================================= */
.shell-demo-carousel {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shell-demo-strip {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.shell-demo-strip .demo-card.compact {
    flex: 0 0 auto;
    width: 170px;
}

.shell-carousel-btn {
    position: absolute;
    top: 99px;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(18,22,30,0.88);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: background 160ms, border-color 160ms, opacity 160ms;
    padding: 0;
}
.shell-carousel-btn svg { width: 14px; height: 14px; display: block; }
.shell-carousel-btn:hover:not([disabled]) {
    background: rgba(242,139,60,0.18);
    border-color: rgba(242,139,60,0.45);
    color: #f28b3c;
}
.shell-carousel-btn[disabled] { opacity: 0.3; cursor: default; }
.shell-carousel-btn--prev { left: -18px; }
.shell-carousel-btn--next { right: -18px; }

.shell-carousel-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shell-carousel-dots { display: flex; gap: 5px; align-items: center; }
.shell-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 200ms, transform 200ms;
    cursor: pointer;
}
.shell-carousel-dot.is-active {
    background: #f28b3c;
    transform: scale(1.3);
}

.shell-carousel-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.06em;
    line-height: 1;
}

/* ── Studio menu (shell-mode): reclaim vertical space for the iframe ─ */
.page-shell.shell-mode {
    padding: 6px 6px 10px;
}

.page-shell.shell-mode .shell-header {
    top: 4px;
    gap: 4px;
    margin-bottom: 4px;
    padding: 6px 10px 6px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-shell.shell-mode .shell-brandbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.page-shell.shell-mode .demo-effect-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.page-shell.shell-mode .shell-active-demo {
    margin-left: auto;
    min-width: 0;
}

.page-shell.shell-mode .shell-mainrow {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
}

.page-shell.shell-mode .shell-copy {
    display: none;
}

.page-shell.shell-mode .shell-demo-carousel {
    gap: 4px;
}

.page-shell.shell-mode .shell-demo-strip {
    gap: 8px;
}

.page-shell.shell-mode .shell-demo-strip .demo-card.compact {
    width: 132px;
}

.page-shell.shell-mode .demo-card.compact img,
.page-shell.shell-mode .demo-card.compact .demo-card-placeholder,
.page-shell.shell-mode .demo-card.compact .ba-slider {
    height: 112px;
    min-height: 112px;
    max-height: 112px;
}

.page-shell.shell-mode .demo-card.compact > video,
.page-shell.shell-mode .demo-card.compact .demo-card-video {
    height: 112px;
    min-height: 112px;
    max-height: 112px;
}

.page-shell.shell-mode .demo-card.compact .card-copy {
    padding: 3px 6px 5px;
}

.page-shell.shell-mode .demo-card.compact h2 {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.1;
}

.page-shell.shell-mode .shell-carousel-btn {
    top: 56px;
}

.page-shell.shell-mode .shell-carousel-footer {
    margin-top: 0;
    min-height: 0;
}

.page-shell.shell-mode .demo-card.is-active {
    transform: none;
}

.page-shell.shell-mode .workspace-grid {
    gap: 6px;
}

.page-shell.shell-mode .workspace-shell.panel {
    padding: 4px 6px;
}

.page-shell.shell-mode .workspace-rail {
    padding: 8px 8px;
    max-height: calc(100vh - 220px);
}

.page-shell.shell-mode .demo-frame {
    min-height: calc(100vh - 220px);
}

.shell-active-demo {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 170px;
}

.shell-active-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
}

.shell-active-demo strong {
    font-size: 0.96rem;
    line-height: 1.2;
}

/* ── Active renders bar ─────────────────────────────────────────── */

.shell-active-renders {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px 0 0;
    margin-top: 4px;
}

.active-renders-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.active-renders-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent, #f28b3c);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.8;
}

.active-renders-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-render-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 8px;
    border-radius: 20px;
    background: rgba(242, 139, 60, 0.12);
    border: 1px solid rgba(242, 139, 60, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.active-render-chip:hover {
    background: rgba(242, 139, 60, 0.22);
    border-color: rgba(242, 139, 60, 0.55);
}

.active-render-chip-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-render-kill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s ease, color 0.12s ease;
}

.active-render-kill:hover {
    background: rgba(255, 80, 80, 0.25);
    color: #ff6b6b;
}

.active-render-spinner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(242, 139, 60, 0.3);
    border-top-color: var(--accent, #f28b3c);
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ── Workspace shell ─────────────────────────────────────────────── */

.workspace-shell {
    padding: 4px 8px 10px;
    background:
        linear-gradient(180deg, rgba(18, 21, 26, 0.98), rgba(12, 14, 18, 0.98)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.06), transparent 26%);
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.workspace-rail {
    padding: 10px 10px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    align-self: stretch;
    max-height: calc(100vh - 126px);
    overflow: hidden;
}

/* Tab strip */
.workspace-rail-tabs {
    display: flex;
    gap: 2px;
    padding: 0 2px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 6px;
    flex-shrink: 0;
}
.workspace-rail-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 5px 4px;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.workspace-rail-tab:hover { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.06); }
.workspace-rail-tab.is-active { color: #fff; background: rgba(255,255,255,0.12); }
.workspace-rail-tab small {
    background: rgba(255,255,255,0.18);
    border-radius: 99px;
    font-size: 0.68rem;
    line-height: 1;
    min-width: 16px;
    padding: 2px 4px;
    text-align: center;
}
.workspace-rail-tab.is-active small { background: rgba(255,255,255,0.3); }

/* Panels */
.workspace-rail-panel {
    display: none;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.workspace-rail-panel.is-active {
    display: flex;
}

.workspace-rail-body {
    overflow: auto;
    padding-right: 4px;
    display: block;
    flex: 1;
    min-height: 0;
}
.workspace-rail-body-history {
    overflow-y: auto;
}

/* Render cards in renders rail mirror asset cards */
.workspace-rail-panel [data-renders-rail] .history-asset {
    cursor: grab;
}
.shell-render-card {
    position: relative;
}
.shell-render-dismiss {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    padding: 0;
}
.shell-render-card:hover .shell-render-dismiss {
    opacity: 1;
}
.shell-render-dismiss:hover {
    background: rgba(200,40,40,0.8);
    color: #fff;
}

/* ── Rail importer (left asset panel) ─────────────────────────── */
.rail-importer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease;
    outline: none;
    user-select: none;
    min-height: 90px;
}
.rail-importer:hover,
.rail-importer:focus {
    border-color: rgba(242, 139, 60, 0.5);
    background: rgba(242, 139, 60, 0.05);
}
.rail-importer.is-drop-target {
    border-color: rgba(242, 139, 60, 0.8);
    background: rgba(242, 139, 60, 0.1);
}
.rail-importer.is-loading {
    opacity: 0.7;
    pointer-events: none;
}
.rail-importer-icon {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.45);
}
.rail-importer:hover .rail-importer-icon,
.rail-importer:focus .rail-importer-icon {
    color: rgba(242, 139, 60, 0.8);
}
.rail-importer-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
.rail-importer-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    letter-spacing: 0.02em;
}
.rail-importer-status {
    font-size: 0.72rem;
    color: rgba(242, 139, 60, 0.9);
    min-height: 1em;
    margin-top: 2px;
}
.rail-importer-status.is-error {
    color: rgba(255, 100, 100, 0.9);
}

.rail-empty-state {
    padding: 10px 4px;
    font-size: 0.78rem;
    line-height: 1.5;
}
.rail-empty-state p { margin: 0 0 4px; }

.compact-head {
    margin-bottom: 2px;
}

.workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
    padding: 0 0 4px;
}

.workspace-head h2 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.demo-frame {
    width: 100%;
    min-height: calc(100vh - 156px);
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

html.embedded-workspace .page-shell {
    width: 100%;
    padding: 6px 8px 10px;
}

html.embedded-workspace .reference-strip,
html.embedded-workspace .result-history-rail {
    display: none;
}

html.embedded-workspace .result-shell {
    display: block;
}

html.embedded-workspace .back-link {
    display: none;
}

html.embedded-workspace .page-shell > p:first-child {
    display: none;
}

html.embedded-workspace .hero {
    display: none;
}

html.embedded-workspace h1 {
    font-size: clamp(1.15rem, 2vw, 1.9rem);
    margin-bottom: 4px;
}

html.embedded-workspace .eyebrow {
    margin-bottom: 4px;
    font-size: 0.7rem;
}

html.embedded-workspace .lede {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-bottom: 0;
}

html.embedded-workspace .panel,
html.embedded-workspace .card-copy {
    padding: 12px;
}


html.embedded-workspace .form-stack {
    gap: 14px;
}

.instructions p:last-child {
    margin-bottom: 0;
}

.warning {
    color: #8a2f27;
}

.form-stack {
    display: grid;
    gap: 24px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 600;
}

.quiz-shell {
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.quiz-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choice-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    cursor: pointer;
}

.choice-chip input {
    accent-color: var(--accent);
}

.effect-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.effect-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    overflow: hidden;
}

.effect-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.effect-card:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.44);
    box-shadow: inset 0 0 0 1px rgba(242, 139, 60, 0.14);
}

.effect-card-media {
    display: block;
    height: 72px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 46%),
        linear-gradient(135deg, rgba(19, 22, 28, 0.96), rgba(11, 13, 17, 0.96));
}

.effect-card-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.effect-electric .effect-card-media {
    background:
        radial-gradient(circle at 50% 45%, rgba(108, 198, 255, 0.7), transparent 24%),
        linear-gradient(120deg, transparent 34%, rgba(108, 198, 255, 0.9) 46%, transparent 58%),
        linear-gradient(135deg, #121822, #091018);
}

.effect-fire .effect-card-media {
    background:
        radial-gradient(circle at 38% 64%, rgba(255, 194, 77, 0.92), transparent 26%),
        linear-gradient(140deg, rgba(255, 94, 0, 0.84), rgba(93, 16, 0, 0.95));
}

.effect-water .effect-card-media {
    background:
        radial-gradient(circle at 34% 34%, rgba(163, 238, 255, 0.58), transparent 22%),
        linear-gradient(160deg, rgba(0, 143, 214, 0.9), rgba(5, 38, 87, 0.95));
}

.effect-frost .effect-card-media {
    background:
        linear-gradient(135deg, rgba(233, 245, 255, 0.92), rgba(113, 183, 255, 0.35)),
        linear-gradient(160deg, rgba(15, 35, 61, 0.94), rgba(8, 15, 25, 0.98));
}

.effect-heat .effect-card-media {
    background:
        radial-gradient(circle at 62% 40%, rgba(255, 155, 54, 0.75), transparent 22%),
        linear-gradient(145deg, rgba(255, 140, 0, 0.85), rgba(92, 23, 0, 0.96));
}

.effect-plasma .effect-card-media {
    background:
        radial-gradient(circle at 40% 48%, rgba(255, 105, 255, 0.72), transparent 20%),
        linear-gradient(135deg, rgba(135, 45, 255, 0.92), rgba(11, 17, 45, 0.97));
}

.effect-wireframe .effect-card-media {
    background:
        linear-gradient(90deg, rgba(76, 226, 255, 0.45) 1px, transparent 1px),
        linear-gradient(rgba(76, 226, 255, 0.45) 1px, transparent 1px),
        linear-gradient(135deg, rgba(13, 27, 37, 0.96), rgba(8, 11, 18, 0.98));
    background-size: 14px 14px, 14px 14px, auto;
}

.effect-neon .effect-card-media {
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 0, 180, 0.74), transparent 18%),
        linear-gradient(120deg, rgba(0, 255, 238, 0.82), rgba(142, 0, 255, 0.9));
}

.effect-xray .effect-card-media {
    background:
        radial-gradient(circle at 58% 50%, rgba(181, 255, 245, 0.65), transparent 20%),
        linear-gradient(150deg, rgba(26, 70, 91, 0.94), rgba(7, 16, 22, 0.98));
}

input[type="text"],
input[type="file"],
select,
textarea {
    width: 100%;
    font: inherit;
}

input[type="text"],
select,
textarea {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(17, 20, 25, 0.92);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.thumb-grid.is-disabled {
    opacity: 0.46;
    pointer-events: none;
}

.thumb-card {
    position: relative;
    display: block;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.thumb-card input[type="radio"],
.thumb-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}

.thumb-card:hover {
    border-color: rgba(242, 139, 60, 0.28);
}

.thumb-card:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.5);
    box-shadow: var(--shadow), 0 0 0 1px rgba(242, 139, 60, 0.18);
    background: rgba(242, 139, 60, 0.06);
}

.thumb-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    pointer-events: none;
}

.thumb-title {
    margin: 8px 0;
    font-size: 0.95rem;
}

.paste-box {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
    min-height: 150px;
}

.dropzone-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.dropzone-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.dropzone-art {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(103, 149, 255, 0.35);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 3px rgba(103, 149, 255, 0.18);
    min-height: 180px;
}

.dropzone-art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.image-panel.has-preview .dropzone-art {
    display: none;
}

.image-panel:focus {
    outline: none;
    border-color: rgba(242, 139, 60, 0.75);
    box-shadow: 0 0 0 4px rgba(242, 139, 60, 0.14);
}

.canvas-wrap {
    position: relative;
    display: inline-block;
    margin-top: 14px;
}

.preview-image {
    display: none;
    max-width: min(100%, 480px);
    max-height: 480px;
    border-radius: 14px;
    border: 1px solid rgba(39, 46, 60, 0.16);
}

.draw-canvas {
    display: none;
    position: absolute;
    inset: 0;
    cursor: crosshair;
}

.result-image {
    display: block;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(39, 46, 60, 0.16);
}

/* ── Direct-job result page ────────────────────────────── */
.direct-result-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0d0f14;
}

.direct-result-main {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hero: fills remaining space, image constrained so action bar is always visible */
.dr-result-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0d0f14;
    border-radius: 18px;
    overflow: hidden;
    gap: 8px;
    flex-wrap: wrap;
}

.dr-result-hero--compare {
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 10px 8px;
}

.dr-compare-figure {
    margin: 0;
    flex: 1 1 min(280px, 100%);
    max-width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dr-compare-caption {
    margin: 0;
    padding: 0 6px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(242, 139, 60, 0.92);
    max-width: 44ch;
}

/* calc: 100vh (iframe height = window - shell header) minus padding/gap/action bar */
/* Checkerboard wrapper — shown for transparent PNG results (e.g. backdrop-aifi-it) */
.dr-transparent-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #c8c8c8 25%, transparent 25%),
        linear-gradient(-45deg, #c8c8c8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #c8c8c8 75%),
        linear-gradient(-45deg, transparent 75%, #c8c8c8 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-height: calc(100vh - 230px);
}
.dr-transparent-preview .dr-fit-media {
    border-radius: 0;
    border: none;
    max-height: 100%;
}

/* (duplicate block removed — see first .dr-transparent-preview above) */

.dr-fit-media {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 230px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Action / share bar */
.dr-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #151821;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.dr-action-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.dr-run-id {
    font-size: 0.72rem;
}

.dr-action-right {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Share group */
.dr-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dr-share-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-right: 4px;
}

.dr-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}

.dr-share-btn:hover {
    background: rgba(255,255,255,0.13);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.dr-share-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.dr-share-download { border-color: rgba(80,200,120,0.35); color: #6edda0; }
.dr-share-download:hover { background: rgba(80,200,120,0.12); }

.dr-share-x       { border-color: rgba(255,255,255,0.18); }
.dr-share-linkedin { border-color: rgba(10,102,194,0.5); color: #5aa9e6; }
.dr-share-linkedin:hover { background: rgba(10,102,194,0.15); }
.dr-share-instagram { border-color: rgba(228,64,95,0.4); color: #f0738a; }
.dr-share-instagram:hover { background: rgba(228,64,95,0.12); }
.dr-share-facebook { border-color: rgba(24,119,242,0.5); color: #6aa0f5; }
.dr-share-facebook:hover { background: rgba(24,119,242,0.12); }

/* Status & error panels */
.dr-status-panel {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
}

/* Live step thumbnails (processing state) */
.dr-live-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 4px;
    min-height: 0;
}

.dr-live-thumbs:empty {
    display: none;
}

.dr-live-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 90px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.dr-live-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #0d0f14;
    display: block;
}

.dr-live-thumb span {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.3;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pop-in animation when a new thumb arrives via JS */
.dr-live-thumb {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dr-live-thumb-new {
    opacity: 0 !important;
    transform: scale(0.82) !important;
}

.dr-error-block {
    text-align: left;
    margin-top: 12px;
}

/* Build detail accordion */
.dr-detail-panel {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    background: #151821;
    padding: 0;
}

.dr-detail-panel summary {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    user-select: none;
}

.dr-detail-panel[open] summary {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 12px;
}

.dr-detail-panel > *:not(summary) {
    padding: 0 18px 16px;
}

.reference-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}

.prepared-frame-strip,
.current-swap-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.current-swap-strip-review {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: start;
}

.chromafy-prepared-strip {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.compact-panel {
    flex: 0 1 220px;
    padding: 16px;
}

.compact-panel h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.reference-image {
    display: block;
    width: 100%;
    max-width: 180px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Larger build-step tiles inside the direct job status detail panel */
.dr-detail-panel .reference-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.dr-detail-panel .compact-panel {
    flex: none;
    width: 100%;
}

.dr-detail-panel .reference-image {
    max-width: 100%;
    width: 100%;
    object-fit: contain;
    max-height: 340px;
    background: #111;
}

.chromafy-frame-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.prepared-frame-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-text);
    text-align: center;
    padding: 16px;
}

.chromafy-review-image {
    max-width: 100%;
    min-height: 180px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
}

.chromafy-warning-card {
    border-color: rgba(242, 139, 60, 0.35);
    background: linear-gradient(180deg, rgba(242, 139, 60, 0.12), rgba(255, 255, 255, 0.03));
}

.current-swap-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.current-swap-card .muted {
    margin-bottom: 0;
}

.current-swap-image {
    display: block;
    width: 100%;
    max-width: 200px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    object-fit: contain;
}

.result-image-scaled {
    max-width: 460px;
    max-height: 420px;
    margin-inline: auto;
    object-fit: contain;
}

.two-column-review {
    align-items: start;
}

.result-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.7fr);
    gap: 18px;
    align-items: start;
}

.result-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.result-history-rail {
    position: sticky;
    top: 8px;
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 20px);
    overflow: auto;
}

.result-history-head {
    display: grid;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-history-head h2 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.history-stack {
    display: grid;
    gap: 10px;
}

.history-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.history-card.is-active {
    box-shadow:
        inset 0 0 0 1px rgba(242, 139, 60, 0.24),
        0 0 0 1px rgba(242, 139, 60, 0.12);
    background: linear-gradient(180deg, rgba(242, 139, 60, 0.08), rgba(255, 255, 255, 0.025));
}

.history-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.history-card-head-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.history-card-summary-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    flex: 0 0 auto;
}

.history-card-summary-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-card-toggle {
    list-style: none;
    cursor: pointer;
}

.history-card-toggle::-webkit-details-marker {
    display: none;
}

.history-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-star-btn {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.history-star-btn.is-starred {
    color: #ffcf6d;
    background: rgba(255, 194, 95, 0.14);
}

.history-card-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.history-card[open] .history-card-chevron {
    transform: rotate(225deg);
}

.history-demo,
.history-prompt-id {
    margin: 0;
}

.history-demo {
    font-size: 0.95rem;
    font-weight: 700;
}

.history-prompt-id {
    color: var(--muted);
    font-size: 0.8rem;
}

.history-seed {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(242, 139, 60, 0.14);
    color: #ffc89e;
    font-size: 0.82rem;
    white-space: nowrap;
}

.history-preview {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.history-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 12px;
    align-items: start;
}

.history-column {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.history-column-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c6cfdb;
 }

.history-preview img,
.history-preview video {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #0b0d11;
}

.shell-history-draggable {
    cursor: grab;
}

.shell-history-draggable:active {
    cursor: grabbing;
}

.history-preview-placeholder {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px 14px;
    text-align: center;
    color: var(--muted);
}

.history-mini-spinner {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid rgba(242, 139, 60, 0.18);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
}

.history-prompts {
    display: grid;
    gap: 10px;
}

.history-prompt-field {
    display: grid;
    gap: 6px;
}

.history-prompt-field span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c6cfdb;
}

.history-prompt-field textarea {
    min-height: 82px;
    resize: vertical;
    font-size: 0.85rem;
    line-height: 1.35;
}

.history-assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
}

.shell-asset-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    justify-items: stretch;
    margin-top: 0;
}

.shell-asset-grid-top {
    align-items: start;
}

.history-derived-assets {
    margin-top: 2px;
}

.history-asset {
    display: grid;
    gap: 6px;
    min-width: 0;
    align-content: start;
}

.shell-shelf-asset {
    cursor: grab;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.shell-shelf-asset:active {
    cursor: grabbing;
}

.history-asset span {
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-asset-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.history-asset-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.history-nested-group {
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.history-nested-group summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-nested-group summary::-webkit-details-marker {
    display: none;
}

.history-nested-group[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-nested-group .shell-asset-grid {
    padding: 10px;
}

[data-image-panel].is-drop-target {
    box-shadow: 0 0 0 2px rgba(242, 139, 60, 0.5);
}

.history-empty {
    padding: 10px 0 4px;
}

.step-panel {
    padding: 0;
    overflow: hidden;
}

.step-panel-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.step-panel-summary::-webkit-details-marker {
    display: none;
}

.step-panel-summary h2 {
    margin: 0;
}

.step-panel-note {
    margin: 4px 0 0;
}

.step-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.step-panel-body {
    padding: 0 20px 20px;
}

.step-panel-nav {
    margin-top: 18px;
    justify-content: flex-end;
}

.step-next-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.step-panel.is-step-active {
    border-color: rgba(242, 139, 60, 0.5);
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.2), var(--shadow);
}

.step-panel.is-step-active .step-state-pill {
    color: #ffc89e;
    border-color: rgba(242, 139, 60, 0.3);
    background: rgba(242, 139, 60, 0.14);
}

.step-panel.is-step-complete .step-state-pill {
    color: #b8f1c1;
    border-color: rgba(53, 188, 108, 0.22);
    background: rgba(53, 188, 108, 0.12);
}

.step-panel.is-step-upcoming {
    opacity: 0.8;
}

.primary-btn,
.secondary-btn,
.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.primary-btn {
    border: 0;
    background: var(--accent);
    color: #fff;
}

.primary-btn:hover {
    background: var(--accent-dark);
}

.secondary-btn,
.link-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
}

.secondary-btn:hover,
.link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(242, 139, 60, 0.34);
    transform: translateY(-1px);
}

.secondary-btn:focus-visible,
.link-btn:focus-visible,
.primary-btn:focus-visible {
    outline: 2px solid rgba(242, 139, 60, 0.75);
    outline-offset: 2px;
}

/* Never put pointer-events:none on .secondary-btn:active — it kills the click gesture. */
.secondary-btn:active,
.link-btn:active {
    opacity: 0.9;
    transform: translateY(0);
}

.primary-btn:disabled,
.primary-btn[disabled] {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.primary-btn:active {
    transform: translateY(0);
}

/* ── Render Estimate Badge ──────────────────────────────────────────── */
.render-estimate-wrap {
    margin: 10px 0 4px;
}

.render-estimate-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 10px 14px 8px;
    font-size: 0.82rem;
    color: var(--text-secondary, #a0a0b0);
}

.re-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.re-icon { font-size: 0.95rem; }

.re-title {
    font-weight: 600;
    color: var(--text-primary, #e0e0f0);
    font-size: 0.83rem;
}

.re-confidence {
    margin-left: auto;
    font-size: 0.74rem;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    white-space: nowrap;
}
.re-conf-high   { color: #5de888; }
.re-conf-medium { color: #f5c542; }
.re-conf-low    { color: #f59442; }
.re-conf-none   { color: #888; }

.re-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #e8e8f8);
    line-height: 1.3;
}

.re-cost {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary, #a0a0b0);
}

.re-steps-detail {
    margin-top: 7px;
    font-size: 0.78rem;
}

.re-steps-detail summary {
    cursor: pointer;
    color: var(--text-secondary, #888);
    user-select: none;
    padding: 2px 0;
}

.re-steps-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.re-steps-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.re-step-label {
    flex: 1;
    color: var(--text-primary, #ccc);
}

.re-step-range {
    color: var(--text-secondary, #999);
    white-space: nowrap;
}

.re-step-n {
    font-size: 0.72rem;
    color: #666;
    min-width: 36px;
    text-align: right;
}
.re-step-est { color: #555; font-style: italic; }

/* ── Job Result Cost/Time row ───────────────────────────────────────── */
.result-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.result-stat-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary, #bbb);
}

.result-stat-chip strong {
    color: var(--text-primary, #eee);
    font-weight: 600;
}

.is-action-btn {
    min-width: 168px;
    font-weight: 700;
    background: rgba(242, 139, 60, 0.12);
    border-color: rgba(242, 139, 60, 0.26);
}

.is-next-step-glow {
    border-color: rgba(242, 139, 60, 0.8);
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.3), 0 0 24px rgba(242, 139, 60, 0.28);
    animation: next-step-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes next-step-pulse {
    from {
        transform: translateY(0);
        box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.22), 0 0 12px rgba(242, 139, 60, 0.18);
    }
    to {
        transform: translateY(-1px);
        box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.38), 0 0 28px rgba(242, 139, 60, 0.34);
    }
}

.button-row,
.full-row {
    display: flex;
    gap: 12px;
}

.wrap-row {
    flex-wrap: wrap;
}

.button-row form {
    margin: 0;
}

.thumb-grid-editor {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.thumb-card-editor {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(33, 36, 45, 0.96), rgba(21, 24, 31, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.thumb-card-editor input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.thumb-card-editor .thumb-media {
    aspect-ratio: 1.2 / 1;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.thumb-card-editor .thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-copy {
    padding: 14px 16px 16px;
    display: grid;
    gap: 6px;
}

.thumb-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f4f7fb;
}

.thumb-card-editor:hover {
    border-color: rgba(242, 139, 60, 0.28);
    transform: translateY(-1px);
}

.thumb-card-editor:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.85);
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.28), 0 18px 38px rgba(242, 139, 60, 0.18);
}

.thumb-grid.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.25);
}

.prompt-editor-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.94fr) minmax(480px, 1.06fr);
    gap: 22px;
    align-items: start;
}

.car360-v2-form {
    gap: 18px;
}

.car360-v2-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.car360-v2-readiness {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(242, 139, 60, 0.14);
    border: 1px solid rgba(242, 139, 60, 0.28);
    color: #ffd2a9;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.car360-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.car360-v2-slot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.car360-v2-slot-copy h3 {
    margin-bottom: 6px;
}

.car360-v2-slot-copy .muted {
    margin: 0;
}

.car360-v2-dropzone {
    min-height: 0;
    padding: 8px;
}

.car360-v2-upload-status,
.car360-v2-draw-status {
    margin-top: 10px;
}

.car360-v2-canvas-wrap {
    display: block;
    margin-top: 12px;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(242, 139, 60, 0.12), transparent 50%),
        linear-gradient(180deg, rgba(38, 42, 54, 0.92), rgba(24, 27, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.car360-v2-dropzone .preview-image {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.car360-v2-dropzone .draw-canvas {
    width: 100%;
    height: 100%;
}

.car360-v2-guide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.image-panel.has-preview .car360-v2-guide {
    display: none;
}

.car360-v2-guide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(242, 139, 60, 0.18);
    border: 1px solid rgba(242, 139, 60, 0.28);
    color: #ffd7b5;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.car360-v2-guide-image {
    width: min(90%, 300px);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    background: #f7f7f7;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.car360-v2-guide-text {
    margin: 0;
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.car360-v2-panel-actions {
    margin-top: 0;
}

.car360-v2-hidden-control {
    display: none;
}

@media (max-width: 980px) {
    .car360-v2-grid {
        grid-template-columns: 1fr;
    }
}

.prompt-editor-preview,
.prompt-editor-controls {
    min-width: 0;
}

.prompt-editor-preview {
    position: sticky;
    top: 10px;
    display: grid;
    gap: 16px;
    align-self: start;
}

.prompt-editor-preview-head,
.prompt-editor-preview-block,
.prompt-editor-section {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(27, 31, 40, 0.98), rgba(21, 24, 31, 0.96));
    padding: 18px 20px;
}

.prompt-editor-preview-head h3,
.prompt-editor-toolbar h3 {
    margin: 0;
}

.prompt-editor-preview-head p,
.prompt-editor-toolbar p {
    margin-bottom: 0;
}

.prompt-preview-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.preview-media-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.preview-media-label {
    padding: 12px 14px 0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.preview-media-card img {
    width: calc(100% - 24px);
    margin: 12px;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: none;
}

.preview-media-card img.is-visible {
    display: block;
}

.preview-media-empty {
    margin: auto 14px 14px;
}

.preview-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(242, 139, 60, 0.22);
    background: rgba(242, 139, 60, 0.1);
    color: #ffd6b7;
    font-size: 0.92rem;
    font-weight: 600;
}

.preview-chip.is-empty {
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.preview-meta-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.preview-meta-head h4 {
    margin: 0;
}

.prompt-editor-copy-preview {
    min-height: 220px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt-editor-controls {
    display: grid;
    gap: 16px;
}

.prompt-editor-section-hero {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    background:
        linear-gradient(180deg, rgba(34, 38, 48, 0.98), rgba(22, 25, 33, 0.96)),
        radial-gradient(circle at top right, rgba(242, 139, 60, 0.08), transparent 32%);
}

.compact-quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.prompt-editor-inline-status {
    min-height: 22px;
}

.prompt-editor-subhead {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.prompt-editor-subhead h4 {
    margin: 0;
}

.prompt-editor-toolbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.choice-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.option-pill-grid {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.option-card {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.option-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.option-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #edf1f8;
}

.option-card:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 139, 60, 0.24);
}

.option-card:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.9);
    background: linear-gradient(180deg, rgba(242, 139, 60, 0.16), rgba(242, 139, 60, 0.07));
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.22), 0 14px 30px rgba(242, 139, 60, 0.16);
}

.option-card-compact {
    min-height: 62px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.option-pill {
    min-height: 70px;
    padding: 14px 15px 12px;
    align-content: center;
}

.choice-chip-strong {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    min-height: 46px;
    padding-inline: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.choice-chip-strong:hover {
    border-color: rgba(242, 139, 60, 0.26);
    transform: translateY(-1px);
}

.choice-chip-strong:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.82);
    background: linear-gradient(180deg, rgba(242, 139, 60, 0.16), rgba(242, 139, 60, 0.08));
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.2), 0 10px 24px rgba(242, 139, 60, 0.14);
}

.prompt-editor-collapse {
    padding: 0;
    overflow: hidden;
}

.prompt-editor-collapse-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.prompt-editor-collapse-summary::-webkit-details-marker {
    display: none;
}

.prompt-editor-collapse-summary h4 {
    margin: 0;
}

.prompt-editor-collapse-body {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}

.full-row {
    grid-column: 1 / -1;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
}

.pre-block {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
}

.loading-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: 28px 20px;
}

.is-hidden {
    display: none !important;
}

.loading-spinner {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 4px solid rgba(182, 86, 51, 0.18);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
}

.loading-copy {
    margin: 0;
}

.loading-dots::after {
    content: "";
    display: inline-block;
    width: 1.4em;
    text-align: left;
    animation: dots 1.2s steps(4, end) infinite;
}

code {
    font-family: Consolas, "Courier New", monospace;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75% {
        content: "...";
    }
    100% {
        content: "";
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: calc(100vw - 16px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .shell-header {
        position: static;
    }

    .workspace-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-frame {
        min-height: 68vh;
    }

    .dropzone-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1260px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .workspace-rail {
        max-height: none;
    }

    .result-shell {
        grid-template-columns: 1fr;
    }

    .result-history-rail {
        position: static;
        max-height: none;
    }

    .prompt-editor-shell {
        grid-template-columns: 1fr;
    }

    .prompt-editor-preview {
        position: static;
    }
}

@media (max-width: 960px) {
    .prompt-preview-media-grid {
        grid-template-columns: 1fr;
    }

    .prompt-editor-toolbar {
        flex-direction: column;
    }

    .option-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .compact-quiz-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .history-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .shell-header {
        grid-template-columns: 1fr;
    }

    .shell-demo-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* ── Reveal browser layout ──────────────────────────── */
.reveal-browser-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.7fr);
    gap: 12px;
    align-items: start;
}

.reveal-browser-main {
    display: grid;
    gap: 12px;
    align-content: start;
}

.reveal-browser-review {
    display: grid;
    gap: 12px;
    align-content: start;
}

/* Bigger product image */
.demo-effect-screen-reveal .reveal-upload-panel .canvas-wrap {
    min-height: 280px;
}

.demo-effect-screen-reveal .reveal-upload-panel .preview-image {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

/* Look panel */
.reveal-look-panel {
    display: grid;
    gap: 14px;
}

/* Prompts accordion */
.reveal-prompts-details {
    display: grid;
}

.reveal-prompts-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.reveal-prompts-summary::-webkit-details-marker { display: none; }

.reveal-prompts-toggle-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
}

.reveal-prompt-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.reveal-render-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

.reveal-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.reveal-mode-grid {
    margin-bottom: 4px;
}

.reveal-color-control {
    display: grid;
    gap: 14px;
}

.reveal-color-field {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.reveal-color-field input[type="color"] {
    width: 72px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.reveal-color-field input[type="text"] {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.reveal-swatch-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reveal-swatch-chip {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
}

.reveal-swatch-row p {
    margin: 0;
    color: var(--muted);
}

.reveal-prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.reveal-prompts-details {
    padding: 0;
    overflow: hidden;
}

.reveal-prompts-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.reveal-prompts-summary::-webkit-details-marker {
    display: none;
}

.reveal-prompts-summary h2 {
    margin: 0 0 2px;
}

.reveal-prompts-summary .muted {
    margin: 0;
}

.reveal-prompts-toggle-label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reveal-prompts-details[open] .reveal-prompts-toggle-label {
    color: rgba(255, 255, 255, 0.3);
}

.reveal-prompts-details > .reveal-prompt-grid,
.reveal-prompts-details > .button-row {
    padding: 0 18px 14px;
}

.shell-copy-actions {
    margin-top: 12px;
}

.page-shell.ui-lab-shell {
    width: min(1920px, calc(100vw - 28px));
    padding: 18px 14px 32px;
}

.ui-lab-shell {
    font-family: Aptos, "Trebuchet MS", "Segoe UI", sans-serif;
}

.ui-lab-hero,
.ui-workroom-header,
.ui-launchpad-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.22), transparent 26%),
        radial-gradient(circle at top right, rgba(93, 165, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(26, 30, 37, 0.98), rgba(17, 20, 26, 0.98));
}

.ui-lab-hero,
.ui-launchpad-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 18px;
    margin-bottom: 18px;
    padding: 28px;
}

.ui-lab-hero-copy h1,
.ui-launchpad-copy h1,
.ui-workroom-header h1 {
    max-width: 14ch;
    margin-bottom: 10px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.ui-lab-hero-copy .lede,
.ui-launchpad-copy .lede,
.ui-workroom-header .lede {
    max-width: 72ch;
    font-size: 1.03rem;
    line-height: 1.6;
}

.ui-lab-hero-panel,
.ui-launchpad-glance {
    display: grid;
    gap: 12px;
    align-self: stretch;
}

.ui-launchpad-glance {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 22px;
}

.ui-mini-stat,
.ui-glance-stat {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.ui-mini-stat span,
.ui-glance-stat strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 800;
}

.ui-mini-stat p,
.ui-glance-stat p {
    margin-bottom: 0;
}

.ui-lab-section {
    margin-bottom: 20px;
}

.ui-lab-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.ui-lab-section-head h2 {
    margin-bottom: 0;
}

.ui-lab-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.ui-concept-card,
.ui-side-stack {
    padding: 22px;
}

.ui-feature-list {
    margin: 16px 0 18px;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.ui-pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ui-pattern-card {
    padding: 22px;
}

.ui-pattern-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ui-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ui-demo-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-demo-card {
    display: block;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 180ms ease;
}

.ui-demo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ui-demo-media {
    position: relative;
    background: linear-gradient(180deg, rgba(12, 15, 20, 0.3), rgba(16, 19, 24, 0.92));
}

.ui-demo-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: contain;
}

.ui-demo-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(17, 20, 26, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ui-demo-copy {
    padding: 16px 18px 18px;
}

.ui-demo-copy h3 {
    margin-bottom: 8px;
}

.ui-demo-cta {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 700;
}

.ui-job-stack,
.ui-asset-stack,
.ui-create-stack {
    display: grid;
    gap: 12px;
}

.ui-job-card,
.ui-asset-card,
.ui-create-card,
.ui-launchpad-asset {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.ui-job-card img,
.ui-asset-card img,
.ui-create-card img,
.ui-launchpad-asset img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.ui-job-copy,
.ui-asset-copy {
    min-width: 0;
}

.ui-job-topline,
.ui-asset-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.ui-job-state,
.ui-asset-topline span,
.ui-focus-pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-job-state.is-rendering {
    color: #ffd59f;
    border-color: rgba(242, 139, 60, 0.36);
    background: rgba(242, 139, 60, 0.12);
}

.ui-job-state.is-queued {
    color: #b3d4ff;
    border-color: rgba(93, 165, 255, 0.32);
    background: rgba(93, 165, 255, 0.1);
}

.ui-job-state.is-ready {
    color: #b9f6d3;
    border-color: rgba(56, 189, 114, 0.32);
    background: rgba(56, 189, 114, 0.1);
}

.ui-job-progress {
    height: 8px;
    margin: 10px 0 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.ui-job-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(242, 139, 60, 0.95), rgba(255, 190, 110, 0.95));
}

.ui-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ui-job-footer a,
.ui-lab-section-head a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.ui-job-footer small {
    color: var(--muted);
}

.ui-launchpad-shell,
.ui-workroom-shell {
    display: grid;
    gap: 18px;
}

.ui-launchpad-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 20px;
}

.ui-launchpad-search span {
    color: var(--muted);
    font-weight: 700;
}

.ui-launchpad-search button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 999px;
    font: inherit;
}

.ui-launchpad-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.ui-launchpad-main,
.ui-launchpad-side,
.ui-workroom-column,
.ui-workroom-canvas {
    padding: 22px;
}

.ui-side-group + .ui-side-group {
    margin-top: 18px;
}

.ui-workroom-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.3fr) minmax(320px, 0.86fr);
    gap: 18px;
    align-items: start;
}

.ui-create-card {
    text-decoration: none;
    color: inherit;
}

.ui-quick-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ui-focus-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 16px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.12), transparent 30%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ui-focus-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
}

.ui-focus-tags,
.ui-shared-language {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ui-focus-tags {
    margin: 16px 0 18px;
}

.ui-focus-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.ui-shared-language {
    margin-top: 18px;
}

.ui-language-card {
    flex: 1 1 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.ui-language-card h3 {
    margin-bottom: 8px;
}

.tight-top {
    margin-top: 18px;
}

@media (max-width: 1180px) {
    .ui-lab-hero,
    .ui-launchpad-hero,
    .ui-launchpad-grid,
    .ui-workroom-grid,
    .ui-lab-split,
    .ui-focus-card {
        grid-template-columns: 1fr;
    }

    .ui-demo-grid,
    .ui-demo-grid-large,
    .ui-pattern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-shell.ui-lab-shell {
        width: min(100vw, calc(100vw - 12px));
        padding: 10px 6px 20px;
    }

    .ui-lab-hero,
    .ui-launchpad-hero,
    .ui-workroom-header,
    .ui-concept-card,
    .ui-side-stack,
    .ui-launchpad-main,
    .ui-launchpad-side,
    .ui-workroom-column,
    .ui-workroom-canvas {
        padding: 18px;
    }

    .ui-demo-grid,
    .ui-demo-grid-large,
    .ui-pattern-grid {
        grid-template-columns: 1fr;
    }

    .ui-job-card,
    .ui-asset-card,
    .ui-create-card,
    .ui-launchpad-asset {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .ui-job-card img,
    .ui-asset-card img,
    .ui-create-card img,
    .ui-launchpad-asset img {
        width: 64px;
        height: 64px;
    }
}

.page-shell.ui-lab-shell.ui-lab-shell-wide {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0 0 28px;
}

.ui-launchpad-v2 {
    display: grid;
    gap: 0;
}

.ui-solid-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 0;
    padding: 14px 22px;
    border-radius: 0 0 26px 26px;
    background:
        linear-gradient(180deg, rgba(19, 22, 28, 0.99), rgba(15, 18, 24, 0.98)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.12), transparent 22%);
}

.ui-solid-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ui-solid-brand p {
    margin-bottom: 0;
}

.ui-solid-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-weight: 900;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(242, 139, 60, 0.98), rgba(255, 190, 110, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    box-shadow: 0 12px 24px rgba(242, 139, 60, 0.18);
}

.ui-solid-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ui-solid-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.ui-solid-nav a.is-active,
.ui-solid-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

.ui-solid-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: end;
}

.ui-launchpad-stage {
    display: grid;
    gap: 24px;
    padding: 18px 20px 0;
}

.ui-launchpad-band {
    display: grid;
    gap: 16px;
}

.ui-launchpad-band-hero {
    min-height: calc(100vh - 120px);
}

.ui-launchpad-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    padding: 38px 14px 10px;
}

.ui-home-glance-grid {
    display: grid;
    gap: 14px;
    align-content: start;
}

.ui-home-glance-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.14), transparent 30%);
    box-shadow: var(--shadow);
}

.ui-home-glance-card small {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ui-home-glance-card strong {
    display: block;
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    margin-bottom: 10px;
}

.ui-home-glance-card p {
    margin-bottom: 0;
}

.ui-launchpad-band-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 8px;
}

.ui-demo-grid-full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-grounding-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1.2fr) minmax(320px, 0.86fr);
    gap: 16px;
    padding: 16px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(18, 22, 28, 0.99), rgba(13, 16, 21, 0.98)),
        radial-gradient(circle at top left, rgba(93, 165, 255, 0.08), transparent 26%);
}

.ui-grounding-rail,
.ui-grounding-dock {
    display: grid;
    gap: 12px;
    align-content: start;
}

.ui-grounding-rail-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ui-grounding-rail-card.is-current {
    background: rgba(242, 139, 60, 0.12);
    border-color: rgba(242, 139, 60, 0.34);
}

.ui-grounding-rail-card p {
    margin: 6px 0 0;
}

.ui-grounding-browser {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ui-grounding-browser-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.ui-grounding-browser-top h3 {
    margin-bottom: 0;
}

.ui-grounding-browser-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ui-grounding-browser-tabs span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ui-grounding-browser-tabs span.is-active {
    color: var(--ink);
    background: rgba(242, 139, 60, 0.12);
    border-color: rgba(242, 139, 60, 0.28);
}

.ui-grounding-canvas {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.1), transparent 26%);
}

.ui-grounding-canvas-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
}

.ui-grounding-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.ui-grounding-dock-group {
    display: grid;
    gap: 12px;
}

.ui-grounding-dock .ui-job-card,
.ui-grounding-dock .ui-asset-card {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1380px) {
    .ui-solid-topbar,
    .ui-launchpad-band-inner,
    .ui-grounding-shell,
    .ui-grounding-canvas {
        grid-template-columns: 1fr;
    }

    .ui-solid-nav {
        justify-content: start;
    }

    .ui-solid-actions {
        justify-content: start;
    }

    .ui-demo-grid-full {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ui-launchpad-stage {
        padding: 14px 10px 0;
    }

    .ui-demo-grid-full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-grounding-browser-top {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ui-solid-topbar {
        padding: 14px;
        border-radius: 0 0 20px 20px;
    }

    .ui-demo-grid-full {
        grid-template-columns: 1fr;
    }

    .ui-launchpad-band-inner {
        padding: 24px 4px 4px;
    }

    .ui-home-glance-card,
    .ui-grounding-browser,
    .ui-grounding-shell {
        border-radius: 20px;
    }
}

.ui-workroom-hero {
    display: grid;
    grid-template-columns: minmax(320px, 24%) minmax(0, 76%);
    gap: 10px;
    margin: 0 20px;
    padding: 12px;
    align-items: start;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    background:
        linear-gradient(180deg, rgba(27, 24, 28, 0.9), rgba(21, 18, 22, 0.86)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.035), transparent 30%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.ui-workroom-hero-copy {
    width: 100%;
    max-width: none;
}

.ui-capture-card {
    display: grid;
    gap: 14px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.08), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ui-capture-card .button-row {
    margin-top: 2px;
}

.ui-capture-list {
    display: grid;
    gap: 8px;
}

.ui-capture-list div {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.ui-capture-list strong {
    font-size: 0.92rem;
    line-height: 1.2;
}

.ui-capture-list span {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.ui-template-filmstrip {
    position: sticky;
    top: 84px;
    z-index: 22;
    margin: 8px 20px 0;
    padding: 6px 8px 8px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.045);
    background:
        linear-gradient(180deg, rgba(20, 28, 31, 0.97), rgba(16, 22, 26, 0.95)),
        radial-gradient(circle at top left, rgba(108, 173, 167, 0.045), transparent 24%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 6px 16px rgba(0, 0, 0, 0.06);
}

.ui-template-filmstrip::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.ui-template-filmstrip-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.ui-template-filmstrip-head h2 {
    margin-bottom: 0;
    font-size: 1.02rem;
}

.ui-template-filmstrip-head p {
    margin-bottom: 0;
    max-width: 34ch;
    font-size: 0.68rem;
}

.ui-template-dock-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.ui-template-dock-shell::before,
.ui-template-dock-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 4px;
    width: 42px;
    pointer-events: none;
    z-index: 2;
}

.ui-template-dock-shell::before {
    left: 34px;
    background: linear-gradient(90deg, rgba(18, 26, 30, 0.98), rgba(18, 26, 30, 0));
}

.ui-template-dock-shell::after {
    right: 34px;
    background: linear-gradient(270deg, rgba(18, 26, 30, 0.98), rgba(18, 26, 30, 0));
}

.ui-template-filmstrip-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 2px 0 4px;
}

.ui-template-filmstrip-scroll::-webkit-scrollbar {
    display: none;
}

.ui-template-filmstrip-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(214px, 235px);
    gap: 5px;
    padding-bottom: 4px;
}

.ui-dock-scroll {
    position: relative;
    z-index: 3;
    width: 22px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(16, 20, 25, 0.92);
    color: #f0f4fa;
    font: inherit;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ui-dock-scroll:disabled {
    opacity: 0.32;
    cursor: default;
}

.ui-dock-scroll:not(:disabled):hover {
    border-color: rgba(242, 139, 60, 0.24);
    background:
        linear-gradient(180deg, rgba(242, 139, 60, 0.16), rgba(255, 255, 255, 0.03)),
        rgba(16, 20, 25, 0.96);
}

.ui-template-chip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
    min-width: 0;
    min-height: 132px;
    padding: 6px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid rgba(255, 255, 255, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ui-template-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 139, 60, 0.18);
    background: rgba(255, 255, 255, 0.038);
}

.ui-template-chip.is-featured {
    border-color: rgba(242, 139, 60, 0.18);
    background:
        linear-gradient(180deg, rgba(242, 139, 60, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.026);
}

.ui-template-chip-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
}

.ui-template-chip img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
}

.ui-template-chip-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ui-template-chip-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.ui-template-chip-copy strong {
    line-height: 1.2;
    font-size: 0.64rem;
}

.ui-template-chip-copy p {
    margin: 0;
    line-height: 1.3;
    font-size: 0.5rem;
}

.ui-template-chip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.ui-template-chip-footer span {
    color: var(--accent);
    font-size: 0.56rem;
    font-weight: 700;
}

.ui-template-chip-footer small {
    color: var(--muted);
    font-size: 0.56rem;
}

.ui-template-status-pill {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.ui-template-status-pill.is-rendering {
    color: #ffd59f;
    border-color: rgba(242, 139, 60, 0.36);
    background: rgba(242, 139, 60, 0.12);
}

.ui-template-status-pill.is-queued {
    color: #b3d4ff;
    border-color: rgba(93, 165, 255, 0.32);
    background: rgba(93, 165, 255, 0.1);
}

.ui-template-status-pill.is-ready {
    color: #b9f6d3;
    border-color: rgba(56, 189, 114, 0.32);
    background: rgba(56, 189, 114, 0.1);
}

.ui-workroom-hero-copy h1 {
    max-width: none;
    margin-bottom: 4px;
    font-size: clamp(2rem, 2.9vw, 3.2rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.ui-workroom-hero-copy .lede {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.4;
}

.ui-workroom-hero-visual {
    display: grid;
    gap: 8px;
    padding: 8px;
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.014)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.045), transparent 26%);
}

.ui-workroom-hero-visual-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.ui-workroom-hero-visual-head h2 {
    margin-bottom: 0;
    max-width: 22ch;
    font-size: clamp(0.74rem, 0.88vw, 0.88rem);
    line-height: 1.06;
}

.ui-workroom-hero-visual-head p {
    margin-bottom: 0;
    max-width: 28ch;
    font-size: 0.52rem;
    line-height: 1.16;
}

.ui-journey-flow {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.02fr) auto minmax(0, 1.02fr) auto minmax(0, 1.02fr) auto minmax(0, 1.02fr) auto minmax(0, 1.02fr);
    gap: 5px;
    align-items: stretch;
}

.ui-journey-step {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 7px 7px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
        rgba(10, 12, 17, 0.24);
}

.ui-journey-step img {
    width: 70%;
    justify-self: center;
    aspect-ratio: 1 / 1;
    max-height: 118px;
    border-radius: 7px;
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
}

.ui-journey-step strong {
    font-size: 0.56rem;
    line-height: 1.2;
}

.ui-journey-tool {
    justify-self: start;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7deea;
    font-size: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ui-journey-step p {
    margin-bottom: 0;
    font-size: 0.44rem;
    line-height: 1.1;
}

.ui-journey-state {
    justify-self: start;
    padding: 2px 4px;
    border-radius: 999px;
    background: rgba(242, 139, 60, 0.12);
    border: 1px solid rgba(242, 139, 60, 0.22);
    color: #f7c08f;
    font-size: 0.39rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ui-journey-arrow {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-width: 12px;
    color: var(--muted);
}

.ui-journey-arrow strong {
    font-size: 0.5rem;
    line-height: 1;
    color: var(--accent);
}

.ui-journey-arrow span {
    font-size: 0.32rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.ui-journey-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
    color: var(--muted);
    font-size: 0.5rem;
}

.ui-motion-strip {
    display: grid;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ui-motion-strip-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.ui-motion-strip-head p {
    margin-bottom: 0;
}

.ui-motion-strip-head .muted {
    max-width: 44ch;
    font-size: 0.56rem;
    line-height: 1.25;
}

.ui-motion-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.ui-motion-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        rgba(10, 12, 17, 0.18);
}

.ui-motion-frame {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    aspect-ratio: 16 / 10;
}

.ui-motion-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #090b0f;
}

.ui-motion-card strong {
    font-size: 0.58rem;
    line-height: 1.15;
}

.ui-workroom-hero-grid,
.ui-entry-explainer,
.ui-what-this-does {
    display: grid;
    gap: 14px;
}

.ui-workroom-hero-grid {
    align-content: start;
}

.ui-entry-explainer,
.ui-what-this-does {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 20px;
    padding: 10px 0 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ui-account-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
}

.ui-account-side,
.ui-account-main {
    padding: 22px;
}

.ui-account-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.ui-account-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.ui-account-nav a.is-active,
.ui-account-nav a:hover {
    color: var(--ink);
    border-color: rgba(242, 139, 60, 0.26);
    background: rgba(242, 139, 60, 0.1);
}

.ui-account-note {
    padding: 18px;
}

.ui-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ui-account-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ui-account-card h3 {
    margin-bottom: 10px;
}

.ui-account-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(242, 139, 60, 0.1);
    border: 1px solid rgba(242, 139, 60, 0.2);
    color: var(--ink);
}

.ui-billing-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ui-billing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1380px) {
    .ui-account-shell {
        grid-template-columns: 1fr;
    }

    .ui-workroom-hero-visual-head {
        flex-direction: column;
        align-items: start;
    }

    .ui-journey-flow {
        grid-template-columns: 1fr;
    }

    .ui-journey-arrow {
        grid-auto-flow: column;
        justify-content: start;
        min-width: 0;
        padding-left: 8px;
    }

    .ui-entry-explainer,
    .ui-what-this-does {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-template-filmstrip-head {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 900px) {
    .ui-billing-row {
        flex-direction: column;
        align-items: start;
    }

    .ui-template-filmstrip {
        top: 76px;
        margin: 12px 10px 0;
    }
}

@media (max-width: 640px) {
    .ui-entry-explainer,
    .ui-what-this-does {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .ui-account-shell {
        padding: 12px 10px;
    }

    .ui-account-card {
        border-radius: 18px;
    }

    .ui-template-filmstrip {
        top: 70px;
        padding: 12px;
    }

    .ui-template-filmstrip-row {
        grid-auto-columns: minmax(380px, 1fr);
    }

    .ui-template-chip {
        min-height: 288px;
    }
}

.recipe-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.recipe-panel-head h2,
.recipe-panel-head h3 {
    margin-bottom: 6px;
}

.recipe-panel-note {
    margin-bottom: 0;
    max-width: 72ch;
}

.recipe-state-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.recipe-state-pill.is-ready {
    border-color: rgba(117, 211, 161, 0.34);
    background: rgba(74, 156, 112, 0.16);
    color: #b8f1cf;
}

.recipe-state-pill.is-waiting {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    color: #c8cfdb;
}

.recipe-state-pill.is-optional {
    border-color: rgba(242, 139, 60, 0.24);
    background: rgba(242, 139, 60, 0.12);
    color: #ffd2ae;
}

.demo-recipe-page-shell {
    display: grid;
    gap: 16px;
}

.demo-recipe-dock {
    margin-top: 0;
}

.demo-visible-recipe {
    gap: 18px;
}

.demo-recipe-intro {
    display: grid;
    gap: 18px;
}

.demo-recipe-intro h2 {
    margin-bottom: 8px;
}

.demo-recipe-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.demo-recipe-map-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.025);
}

.demo-recipe-map-card strong {
    font-size: 0.86rem;
}

.demo-recipe-map-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.demo-recipe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    gap: 18px;
    align-items: start;
}

.demo-recipe-main {
    min-width: 0;
}

.demo-recipe-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 170px;
}

.demo-recipe-checklist {
    display: grid;
    gap: 10px;
}

.demo-recipe-checklist article {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.026);
}

.demo-recipe-checklist strong {
    font-size: 0.9rem;
}

.demo-recipe-checklist span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.demo-stage-panel {
    padding: 20px;
}

.demo-stage-subpanel {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.demo-scene-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.demo-scene-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.demo-scene-card input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.demo-scene-card:has(input[type="radio"]:checked) {
    border-color: rgba(242, 139, 60, 0.4);
    box-shadow:
        0 0 0 1px rgba(242, 139, 60, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    background: rgba(242, 139, 60, 0.08);
}

.demo-scene-card img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-scene-card .thumb-title {
    font-weight: 700;
}

.demo-review-panel textarea.is-disabled {
    opacity: 0.82;
}

.demo-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.demo-review-side {
    min-width: 0;
}

.demo-recipe-dock .ui-template-chip.is-current {
    border-color: rgba(242, 139, 60, 0.3);
    background:
        linear-gradient(180deg, rgba(242, 139, 60, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        0 0 0 1px rgba(242, 139, 60, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.demo-recipe-dock .ui-template-chip.is-current .ui-template-chip-footer span {
    color: #ffd2ae;
}

@media (max-width: 1180px) {
    .demo-recipe-map,
    .demo-review-grid,
    .demo-recipe-grid {
        grid-template-columns: 1fr;
    }

    .demo-recipe-side {
        position: static;
        top: auto;
    }
}

@media (max-width: 760px) {
    .recipe-panel-head {
        flex-direction: column;
        align-items: start;
    }

    .demo-recipe-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.demo-effect-shell {
    height: 100vh;
    overflow: hidden;
}

.demo-effect-screen {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    height: 100vh;
    padding: 8px 10px 10px;
    overflow: hidden;
}

.demo-effect-topbar {
    display: grid;
    gap: 2px;
    min-height: 56px;
    padding: 4px 10px;
    border-radius: 0 0 20px 20px;
    background:
        linear-gradient(180deg, rgba(18, 21, 28, 0.99), rgba(13, 16, 22, 0.98)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.1), transparent 22%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.demo-effect-topbar .back-link {
    margin-bottom: 2px;
}

.demo-effect-title-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.62fr) auto minmax(360px, 0.96fr);
    gap: 10px;
    align-items: center;
}

.demo-effect-title-row-compact {
    grid-template-columns: minmax(180px, 0.62fr) auto minmax(360px, 0.96fr);
    gap: 10px;
    align-items: center;
}

.demo-effect-branding {
    display: grid;
    gap: 1px;
    align-content: center;
}

.demo-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f7f0e7;
    text-decoration: none;
}

.demo-site-brand:hover {
    color: #fff7ef;
}

.demo-site-brand-logo {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(242, 139, 60, 0.12));
}

.demo-site-brand-word {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.demo-effect-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    align-self: center;
}

.demo-effect-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
}

.demo-effect-nav a:hover {
    color: #f5efe8;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.demo-effect-title-row h1 {
    margin-bottom: 0;
    font-size: clamp(1.12rem, 1.2vw, 1.46rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.demo-effect-title-render .demo-effect-render-note {
    display: none;
}

.demo-effect-topbar-note {
    display: none;
}

.demo-effect-screen .demo-recipe-dock {
    position: sticky;
    top: 8px;
    z-index: 21;
    margin: 0;
}

.demo-effect-screen .ui-template-filmstrip {
    padding: 4px 6px 6px;
}

.demo-effect-screen .ui-template-filmstrip-head {
    margin-bottom: 1px;
}

.demo-effect-screen .ui-template-filmstrip-head h2 {
    font-size: 0.8rem;
}

.demo-effect-screen .ui-template-filmstrip-head p {
    font-size: 0.58rem;
}

.demo-effect-screen .ui-template-filmstrip-row {
    grid-auto-columns: minmax(154px, 164px);
}

.demo-effect-screen .ui-template-chip {
    min-height: 84px;
    padding: 4px;
}

.demo-effect-screen .ui-template-chip img {
    aspect-ratio: 16 / 9;
}

.demo-effect-screen .ui-template-chip-copy {
    gap: 3px;
}

.demo-effect-screen .ui-template-chip-copy p,
.demo-effect-screen .ui-template-chip-footer small {
    display: none;
}

.demo-effect-screen .ui-template-chip strong,
.demo-effect-screen .ui-template-chip span,
.demo-effect-screen .ui-template-chip-footer span {
    font-size: 0.67rem;
}

.demo-effect-screen .ui-dock-scroll {
    height: 38px;
}

.demo-effect-browser-head {
    display: block;
    margin-bottom: 4px;
}

.demo-effect-browser-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.demo-effect-browser-title .eyebrow {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: inherit;
    opacity: 0.55;
    font-weight: 600;
}

.demo-effect-browser-title h1 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.demo-effect-browser-title h1 {
    margin-bottom: 0;
    font-size: clamp(1.06rem, 1.16vw, 1.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.demo-effect-inline-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.demo-effect-stagecard {
    display: grid;
    gap: 4px;
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.012)),
        rgba(22, 20, 26, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.demo-effect-stagecard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.demo-effect-stagecard .eyebrow {
    margin-bottom: 0;
}

.demo-effect-stagecard strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.demo-effect-stagecheck {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    flex: 0 0 auto;
}

.demo-effect-stagecard.is-ready {
    border-color: rgba(106, 197, 126, 0.28);
    background:
        linear-gradient(180deg, rgba(106, 197, 126, 0.08), rgba(106, 197, 126, 0.03)),
        rgba(19, 28, 22, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.018),
        0 0 0 1px rgba(106, 197, 126, 0.08);
}

.demo-effect-stagecard.is-ready strong {
    color: #f3fff5;
}

.demo-effect-stagecard.is-ready .eyebrow {
    color: rgba(133, 221, 152, 0.9);
}

.demo-effect-stagecard.is-ready .demo-effect-stagecheck {
    position: relative;
    border-color: rgba(106, 197, 126, 0.5);
    background: rgba(106, 197, 126, 0.16);
}

.demo-effect-stagecard.is-ready .demo-effect-stagecheck::before {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #a9f0ba;
    font-size: 0.78rem;
    font-weight: 800;
}

.workspace-shelf {
    display: grid;
    --workspace-shelf-card-height: 96px;
    --workspace-shelf-media-height: 74px;
    --workspace-shelf-body-height: calc(var(--workspace-shelf-card-height) + 6px);
}

.workspace-shelf-rail {
    display: grid;
    gap: 4px;
}

.workspace-shelf-body {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-height: var(--workspace-shelf-body-height);
    height: var(--workspace-shelf-body-height);
}

.workspace-shelf-rail {
    align-content: start;
    align-self: center;
}

.workspace-shelf-tabs {
    display: grid;
    gap: 4px;
    align-content: start;
}

.workspace-shelf-tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
    color: var(--muted);
    font: inherit;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.workspace-shelf-tab:hover {
    color: #f4efe9;
    border-color: rgba(255, 255, 255, 0.08);
}

.workspace-shelf-tab.is-active {
    background: rgba(242, 139, 60, 0.14);
    color: #fff6ec;
    box-shadow: inset 0 0 0 1px rgba(242, 139, 60, 0.18);
}

.workspace-shelf-tab small {
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.2;
}

.workspace-shelf-panels {
    min-height: var(--workspace-shelf-body-height);
    height: var(--workspace-shelf-body-height);
}

.workspace-shelf-panel {
    display: none;
    height: 100%;
}

.workspace-shelf-panel.is-active {
    display: block;
}

.workspace-shelf-scroll-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: var(--workspace-shelf-body-height);
    height: var(--workspace-shelf-body-height);
}

.workspace-shelf-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    min-height: var(--workspace-shelf-body-height);
    height: var(--workspace-shelf-body-height);
}

.workspace-shelf-scroll::-webkit-scrollbar {
    display: none;
}

.workspace-shelf-card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(166px, 176px);
    gap: 8px;
    align-items: stretch;
    min-height: var(--workspace-shelf-card-height);
}

.workspace-shelf-card {
    display: grid;
    grid-template-rows: var(--workspace-shelf-media-height) auto;
    gap: 3px;
    min-height: var(--workspace-shelf-card-height);
    height: var(--workspace-shelf-card-height);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.024);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.014);
    overflow: hidden;
}

.workspace-shelf-card.is-active {
    border-color: rgba(242, 139, 60, 0.22);
    box-shadow:
        0 0 0 1px rgba(242, 139, 60, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.workspace-shelf-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: var(--workspace-shelf-media-height);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.workspace-shelf-card-media img,
.workspace-shelf-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.workspace-shelf-asset-card .workspace-shelf-card-media,
.workspace-shelf-render-card .workspace-shelf-card-media {
    padding: 4px;
}

.workspace-shelf-asset-card .workspace-shelf-card-media img,
.workspace-shelf-render-card .workspace-shelf-card-media img,
.workspace-shelf-asset-card .workspace-shelf-card-media video,
.workspace-shelf-render-card .workspace-shelf-card-media video {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.workspace-shelf-asset-card,
.workspace-shelf-render-card {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.workspace-shelf-asset-card.is-dragging,
.workspace-shelf-render-card.is-dragging {
    opacity: 0.72;
}

.workspace-shelf-asset-card.is-selected,
.workspace-shelf-render-card.is-selected {
    border-color: rgba(242, 139, 60, 0.24);
    box-shadow:
        0 0 0 1px rgba(242, 139, 60, 0.12),
        inset 0 0 0 1px rgba(242, 139, 60, 0.08);
}

.workspace-shelf-asset-card *,
.workspace-shelf-render-card * {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.workspace-shelf-card-copy {
    display: grid;
    gap: 0;
}

.workspace-shelf-card-copy strong {
    font-size: 0.58rem;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shelf-card-copy span {
    color: var(--muted);
    font-size: 0.5rem;
    line-height: 1.02;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shelf-import-card {
    cursor: pointer;
}

.workspace-shelf-import-card.is-loading {
    opacity: 0.75;
}

.workspace-shelf-import-card.is-drop-target {
    border-color: rgba(242, 139, 60, 0.26);
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.12);
}

.workspace-shelf-import-media {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    background:
        linear-gradient(180deg, rgba(242, 139, 60, 0.06), rgba(242, 139, 60, 0.015)),
        rgba(0, 0, 0, 0.22);
}

.workspace-shelf-import-plus {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(242, 139, 60, 0.16);
    color: #fff4e8;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.workspace-shelf-import-media p {
    margin: 0;
    color: var(--muted);
    font-size: 0.5rem;
    line-height: 1.05;
    text-align: center;
}

.workspace-shelf-import-card .workspace-shelf-card-copy {
    display: grid;
    gap: 0;
}

.workspace-shelf-import-card .workspace-shelf-card-copy span {
    display: block;
    text-transform: none;
    letter-spacing: 0;
}

.workspace-shelf-asset-card .workspace-shelf-card-copy,
.workspace-shelf-render-card .workspace-shelf-card-copy {
    display: flex;
    align-items: center;
    min-height: 14px;
}

.workspace-shelf-asset-card .workspace-shelf-card-copy span,
.workspace-shelf-render-card .workspace-shelf-card-copy span {
    display: none;
}

/* ── History panel ─────────────────────────────────────────────────────── */

/* -- Renders panel - taller cards so outputs are legible ------------- */
.workspace-shelf-panel-renders {
    --workspace-shelf-renders-card-height: 148px;
    --workspace-shelf-renders-media-height: 118px;
}

.workspace-shelf-panel-renders.is-active {
    height: var(--workspace-shelf-renders-card-height);
}

.workspace-shelf-panels:has(.workspace-shelf-panel-renders.is-active) {
    height: var(--workspace-shelf-renders-card-height);
    min-height: var(--workspace-shelf-renders-card-height);
}

.workspace-shelf-body:has(.workspace-shelf-panel-renders.is-active) .workspace-shelf-rail {
    height: var(--workspace-shelf-renders-card-height);
    min-height: var(--workspace-shelf-renders-card-height);
}

.workspace-shelf-panel-renders .workspace-shelf-scroll-shell,
.workspace-shelf-panel-renders .workspace-shelf-scroll {
    height: var(--workspace-shelf-renders-card-height);
    min-height: var(--workspace-shelf-renders-card-height);
}

.workspace-shelf-panel-renders .workspace-shelf-render-card {
    height: var(--workspace-shelf-renders-card-height);
    grid-template-rows: var(--workspace-shelf-renders-media-height) auto;
}

.workspace-shelf-panel-renders .workspace-shelf-render-card .workspace-shelf-card-media {
    height: var(--workspace-shelf-renders-media-height);
}

.workspace-shelf-panel-renders .workspace-shelf-card-row {
    grid-auto-columns: minmax(192px, 210px);
}

.workspace-shelf-panel-history {
    --workspace-shelf-history-card-height: 190px;
}

.workspace-shelf-panel-history.is-active {
    height: var(--workspace-shelf-history-card-height);
}

.workspace-shelf-panels:has(.workspace-shelf-panel-history.is-active) {
    height: var(--workspace-shelf-history-card-height);
    min-height: var(--workspace-shelf-history-card-height);
}

.workspace-shelf-body:has(.workspace-shelf-panel-history.is-active) .workspace-shelf-rail {
    height: var(--workspace-shelf-history-card-height);
    min-height: var(--workspace-shelf-history-card-height);
}

.workspace-shelf-panel-history .workspace-shelf-scroll-shell,
.workspace-shelf-panel-history .workspace-shelf-scroll {
    height: var(--workspace-shelf-history-card-height);
    min-height: var(--workspace-shelf-history-card-height);
}

.workspace-shelf-history-card {
    height: var(--workspace-shelf-history-card-height);
    min-width: 140px;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: default;
}

.workspace-shelf-history-card .workspace-shelf-card-media {
    flex: 0 0 auto;
    height: 80px;
    padding: 4px;
}

.workspace-shelf-history-card .workspace-shelf-card-media img,
.workspace-shelf-history-card .workspace-shelf-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.workspace-shelf-history-card .workspace-shelf-card-copy {
    flex: 0 0 auto;
    padding: 0 8px;
}

.workspace-shelf-history-card.is-active {
    border-color: rgba(242, 139, 60, 0.35);
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.15), inset 0 0 12px rgba(242, 139, 60, 0.04);
}

.workspace-shelf-history-prompts {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.workspace-shelf-history-prompt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.workspace-shelf-history-prompt-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shelf-history-prompt-value {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shelf-history-relaunch {
    flex: 0 0 auto;
    margin: 2px 8px 6px;
    padding: 4px 8px;
    background: rgba(242, 139, 60, 0.15);
    border: 1px solid rgba(242, 139, 60, 0.25);
    border-radius: 6px;
    color: rgba(242, 139, 60, 0.9);
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background 0.15s, border-color 0.15s;
}

.workspace-shelf-history-relaunch:hover {
    background: rgba(242, 139, 60, 0.25);
    border-color: rgba(242, 139, 60, 0.45);
    color: rgba(242, 139, 60, 1);
}

.workspace-shelf-empty {
    display: flex;
    align-items: center;
    min-height: var(--workspace-shelf-card-height);
    height: var(--workspace-shelf-card-height);
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
}

.workspace-shelf-empty p {
    margin: 0;
    font-size: 0.74rem;
}

.workspace-shelf-placeholder {
    display: grid;
    place-items: center;
    min-height: 0;
    height: var(--workspace-shelf-media-height);
    width: 100%;
    color: var(--muted);
    font-size: 0.66rem;
    text-align: center;
    padding: 8px;
}

.demo-effect-workspace {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(28, 24, 28, 0.96), rgba(20, 19, 24, 0.96)),
        radial-gradient(circle at top left, rgba(242, 139, 60, 0.06), transparent 28%);
}

.demo-effect-stagebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.demo-effect-stagecard {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.026);
}

.demo-effect-stagecard .eyebrow {
    margin-bottom: 0;
    font-size: 0.62rem;
}

.demo-effect-stagecard strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.demo-effect-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.95fr) minmax(410px, 1.1fr) minmax(340px, 0.82fr);
    gap: 12px;
    min-height: 0;
}

.demo-effect-screen-magazine .demo-effect-grid-magazine {
    grid-template-columns: minmax(260px, 0.55fr) minmax(480px, 1.45fr);
    align-items: start;
}

/* Bigger product image drop area */
.demo-effect-screen-magazine .mag-product-panel .canvas-wrap {
    min-height: 280px;
}

.demo-effect-screen-magazine .mag-product-panel .preview-image {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

/* Reference panel: override the horizontal dock into a wrapping grid */
.demo-effect-screen-magazine .demo-effect-look-panel {
    display: grid;
    align-content: start;
    gap: 8px;
}

/* Lock steps: parent pointer-events does not block children; force subtree off. */
.demo-effect-screen-magazine .mag-step-locked {
    opacity: 0.48;
    pointer-events: none;
    user-select: none;
}

.demo-effect-screen-magazine .mag-step-locked * {
    pointer-events: none !important;
    user-select: none;
}

.demo-effect-screen-magazine .demo-effect-look-panel.mag-step-locked h2::after {
    content: " — add a product image and description first";
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(242, 139, 60, 0.85);
    margin-top: 6px;
}

.demo-effect-screen-magazine [data-mag-copy-panel].mag-step-locked h2::after {
    content: " — describe the product and pick a reference style first";
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(242, 139, 60, 0.85);
    margin-top: 6px;
}

.demo-effect-screen-magazine [data-mag-render-panel].mag-step-locked h2::after {
    content: " — generate or enter ad copy first";
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(242, 139, 60, 0.85);
    margin-top: 6px;
}

.demo-effect-screen-magazine .mag-describe-panel .d1-note {
    margin-bottom: 8px;
}

/* The choice-scroller is normally a 3-col dock — flatten it for magazine */
.demo-effect-screen-magazine .demo-effect-look-panel .demo-effect-choice-scroller {
    display: block;
}

/* The scene-scroll is normally overflow-x:auto / overflow-y:hidden — flip it */
.demo-effect-screen-magazine .demo-effect-look-panel .demo-effect-scene-scroll {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 300px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.demo-effect-screen-magazine .demo-effect-look-panel .demo-effect-scene-scroll::-webkit-scrollbar {
    width: 6px;
}
.demo-effect-screen-magazine .demo-effect-look-panel .demo-effect-scene-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
}

/* The scene-row is normally grid-auto-flow:column — override to wrapping rows */
.demo-effect-screen-magazine .demo-effect-look-panel .demo-effect-scene-row {
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 10px;
    padding: 4px 2px;
}

.demo-effect-screen-magazine .demo-effect-look-panel .demo-scene-card img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-effect-screen-magazine .demo-effect-look-panel .thumb-title {
    font-size: 0.62rem;
    line-height: 1.2;
}

.demo-effect-column {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.demo-effect-column::-webkit-scrollbar {
    width: 8px;
}

.demo-effect-column::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.demo-effect-column::-webkit-scrollbar-track {
    background: transparent;
}

.demo-effect-column .panel {
    margin: 0;
}

.demo-effect-screen .demo-stage-panel {
    padding: 14px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.016)),
        rgba(20, 18, 24, 0.44);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 8px 22px rgba(0, 0, 0, 0.08);
}

.demo-effect-screen .recipe-panel-head {
    margin-bottom: 10px;
}

.demo-effect-screen .recipe-panel-head h2 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.demo-effect-screen .recipe-panel-note {
    max-width: none;
    font-size: 0.84rem;
    line-height: 1.35;
}

.demo-effect-screen .image-panel {
    min-height: 0;
    padding: 14px;
}

.demo-effect-screen .dropzone-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.74fr);
    gap: 12px;
}

.demo-effect-screen .dropzone-layout.shelf-input-layout {
    grid-template-columns: minmax(0, 1fr);
}

.demo-effect-screen .dropzone-copy {
    gap: 8px;
}

.panel-file-browse-btn {
    display: inline-block;
    margin-top: 4px;
    cursor: pointer;
}

.demo-effect-screen .dropzone-copy p {
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.4;
}

.demo-effect-screen .dropzone-art {
    min-height: 152px;
}

.demo-effect-screen .dropzone-art img {
    min-height: 152px;
}

.demo-effect-screen .preview-image {
    max-width: min(100%, 360px);
    max-height: 220px;
}

.demo-effect-screen .canvas-wrap {
    margin-top: 10px;
}

.demo-effect-screen .panel-actions {
    margin-top: 10px;
}

.demo-effect-screen .panel-actions .secondary-btn,
.demo-effect-screen .panel-actions .primary-btn {
    min-height: 38px;
}

.demo-effect-copy-panel,
.demo-effect-result-panel,
.demo-effect-review-panel {
    display: grid;
    gap: 12px;
}

.demo-effect-help {
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.demo-effect-choice-frame {
    display: grid;
    gap: 10px;
}

.demo-effect-choice-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.demo-effect-choice-copy strong {
    font-size: 0.9rem;
}

.demo-effect-choice-copy p {
    margin-bottom: 0;
    max-width: 44ch;
    font-size: 0.8rem;
    line-height: 1.35;
}

.demo-effect-choice-scroller {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.demo-effect-scene-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding-bottom: 3px;
}

.demo-effect-scene-scroll::-webkit-scrollbar {
    display: none;
}

.demo-effect-scene-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 220px);
    gap: 10px;
}

.demo-effect-look-panel .ui-dock-scroll {
    height: 46px;
}

.demo-effect-look-panel .ui-dock-scroll span {
    transform: translateY(-1px);
}

.demo-scene-card {
    padding: 8px;
    gap: 6px;
    min-height: 0;
}

.demo-scene-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.demo-scene-card .thumb-title {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.15;
}

.demo-scene-caption {
    margin: 0;
    font-size: 0.72rem;
}

.demo-effect-summary-list {
    display: grid;
    gap: 10px;
}

.demo-effect-summary-list article {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-effect-summary-list strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.demo-effect-summary-list span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.demo-effect-review-panel textarea,
.demo-effect-copy-panel textarea {
    min-height: 108px;
}

.demo-effect-review-panel .field,
.demo-effect-copy-panel .field {
    gap: 7px;
}

.demo-effect-render-note {
    margin-bottom: 0;
    font-size: 0.74rem;
    line-height: 1.25;
}

.demo-effect-title-status {
    display: grid;
    gap: 0;
    align-content: center;
}

.demo-effect-title-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.demo-effect-mini-stage {
    display: grid;
    gap: 2px;
    min-height: 34px;
    padding: 4px 7px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.022);
}

.demo-effect-mini-stage .eyebrow {
    margin-bottom: 0;
    font-size: 0.5rem;
}

.demo-effect-mini-stage strong {
    font-size: 0.66rem;
    line-height: 1.05;
}

.demo-effect-title-render {
    display: none;
}

.demo-effect-workspace-demo1 {
    padding: 12px;
    gap: 10px;
}

.demo-effect-inline-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.demo-effect-inline-progress .demo-effect-stagecard {
    padding: 9px 10px;
}

.demo-effect-inline-progress .demo-effect-stagecard strong {
    font-size: 0.82rem;
}

.demo1-browser-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(360px, 1.4fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    align-items: stretch;
}

.demo1-browser-source,
.demo1-browser-prompt,
.demo1-browser-visual {
    min-height: 0;
}

.demo1-browser-source {
    display: flex;
    flex-direction: column;
}

.demo1-browser-prompt {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    align-content: start;
}

.demo1-description-panel {
    min-height: 0;
}

.demo1-review-panel {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 0;
}

.demo1-browser-visual {
    display: flex;
    flex-direction: column;
}

.demo1-summary-list {
    grid-template-columns: 1fr;
}

.demo1-look-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.demo1-description-panel .button-row {
    margin-top: 10px;
}

.demo1-description-panel [data-prompt-status-for] {
    min-height: 1.2em;
    margin-top: 4px;
}

.demo-effect-screen-demo1 .demo-stage-panel {
    padding: 12px;
    border-radius: 18px;
}

.demo-effect-screen-demo1 .recipe-panel-note {
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 4px 0 0;
}

.demo-effect-screen-demo1 .demo1-upload-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.demo-effect-screen-demo1 .image-panel {
    padding: 12px;
    flex: 1;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-auto-rows: auto;
    min-height: 0;
    overflow: hidden;
}

.demo-effect-screen-demo1 .dropzone-layout {
    grid-template-columns: 1fr;
    gap: 8px;
}

.demo-effect-screen-demo1 .dropzone-copy {
    gap: 6px;
}

.demo-effect-screen-demo1 .dropzone-copy p {
    font-size: 0.84rem;
    line-height: 1.3;
}

.demo-effect-screen-demo1 .dropzone-art {
    display: none;
}

.demo-effect-screen-demo1 .image-panel.has-preview .dropzone-layout {
    display: none;
}

.demo-effect-screen-demo1 .canvas-wrap {
    position: relative;
    min-height: 160px;
    overflow: hidden;
}

.demo-effect-screen-demo1 .preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.demo-effect-screen-demo1 .draw-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.demo-effect-screen-demo1 .panel-actions {
    margin-top: 8px;
}

.demo-effect-screen-demo1 .panel-actions .secondary-btn,
.demo-effect-screen-demo1 .panel-actions .primary-btn {
    min-height: 34px;
    padding: 0 12px;
}

.demo-effect-screen-demo1 .field {
    gap: 6px;
}

.demo-effect-screen-demo1 .field textarea,
.demo-effect-screen-demo1 .field input[type="text"] {
    font-size: 0.92rem;
}

.demo-effect-screen-demo1 .demo-effect-copy-panel textarea {
    min-height: 170px;
}

.demo-effect-screen-demo1 .demo-effect-help,
.demo-effect-screen-demo1 .demo-effect-render-note {
    font-size: 0.78rem;
    line-height: 1.3;
}

.demo-effect-screen-demo1 .demo-effect-choice-frame {
    gap: 0;
}

.demo-effect-screen-demo1 .demo-effect-scene-row {
    grid-auto-columns: minmax(144px, 168px);
    gap: 10px;
}

.demo-effect-screen-demo1 .demo-scene-card {
    padding: 8px;
    gap: 6px;
}

.demo-effect-screen-demo1 .demo-scene-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.demo-effect-screen-demo1 .demo-scene-card .thumb-title {
    font-size: 0.76rem;
}

.demo-effect-screen-demo1 .demo-scene-caption {
    font-size: 0.66rem;
}

.demo-effect-screen-demo1 .demo-effect-summary-list {
    gap: 8px;
}

.demo-effect-screen-demo1 .demo-effect-summary-list article {
    padding: 10px 11px;
}

.demo-effect-screen-demo1 .demo-effect-summary-list strong {
    font-size: 0.84rem;
}

.demo-effect-screen-demo1 .demo-effect-summary-list span {
    font-size: 0.75rem;
}

.demo-effect-screen-demo1 .button-row.wrap-row {
    gap: 8px;
}

.demo-effect-screen-demo1 .demo1-browser-visual .recipe-panel-head {
    margin-bottom: 10px;
}

.demo-effect-screen-demo1 .recipe-panel-head .recipe-state-pill {
    display: none;
}

.demo-effect-screen-demo1 .demo-stage-panel .recipe-state-pill,
.demo-effect-screen-demo1 .demo-stage-panel .step-state-pill,
.demo-effect-screen-demo1 [data-source-status],
.demo-effect-screen-demo1 [data-description-status],
.demo-effect-screen-demo1 [data-look-status],
.demo-effect-screen-demo1 [data-render-summary-status] {
    display: none !important;
}

.demo-effect-screen-demo1 .demo-effect-choice-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.demo-effect-screen-demo1 .demo-effect-choice-scroller {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.demo-effect-screen-demo1 .demo-effect-choice-scroller .ui-dock-scroll {
    display: none;
}

.demo-effect-screen-demo1 .demo-effect-scene-scroll {
    flex: 1;
    min-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.demo-effect-screen-demo1 .demo-effect-scene-row {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.demo-effect-screen-demo1 .button-row.wrap-row .primary-btn,
.demo-effect-screen-demo1 .button-row.wrap-row .secondary-btn {
    min-height: 36px;
}

.demo-effect-screen-demo1 .demo-scene-card {
    padding: 9px;
}

.demo-effect-screen-demo1 .demo-scene-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.demo-effect-screen-demo1 .demo1-review-panel .field {
    margin-top: 0;
}

.demo-effect-screen-demo1 .demo1-review-panel .button-row {
    margin-top: 2px;
}

.demo-effect-screen-demo1 .demo1-description-panel h2,
.demo-effect-screen-demo1 .demo1-review-panel h2,
.demo-effect-screen-demo1 .demo1-look-panel h2 {
    font-size: 1rem;
    margin: 0;
}

.demo-effect-screen-demo1 .demo1-review-panel .field span {
    font-size: 0.76rem;
}

.demo-effect-screen-demo2 .demo-stage-panel {
    padding: 12px;
    border-radius: 18px;
}

.demo-effect-workspace-demo2 {
    display: grid;
    gap: 12px;
}

.demo2-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 12px;
    align-items: start;
}

.demo2-browser-column,
.demo2-summary-column {
    display: grid;
    align-content: start;
    min-width: 0;
}

.demo2-summary-panel,
.demo2-render-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    height: 100%;
}

.demo2-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(340px, 1fr);
    gap: 12px;
    align-items: start;
}

.demo2-trace-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.demo2-trace-image {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
}

.demo-effect-screen-demo2 .recipe-panel-head {
    margin-bottom: 8px;
}

.demo-effect-screen-demo2 .recipe-panel-head h2 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.demo-effect-screen-demo2 .recipe-panel-note {
    font-size: 0.78rem;
    line-height: 1.3;
}

.demo-effect-screen-demo2 .image-panel {
    padding: 12px;
}

.demo-effect-screen-demo2 .dropzone-layout {
    grid-template-columns: 1fr;
    gap: 8px;
}

.demo-effect-screen-demo2 .dropzone-copy {
    gap: 6px;
}

.demo-effect-screen-demo2 .dropzone-copy p {
    font-size: 0.84rem;
    line-height: 1.3;
}

.demo-effect-screen-demo2 .dropzone-art {
    display: none;
}

.demo-effect-screen-demo2 .canvas-wrap {
    margin-top: 8px;
    min-height: 260px;
    display: grid;
    place-items: center;
}

.demo-effect-screen-demo2 .preview-image {
    max-width: 100%;
    max-height: 320px;
}

.demo-effect-screen-demo2 .draw-canvas {
    max-width: 100%;
}

.demo-effect-screen-demo2 .panel-actions {
    margin-top: 8px;
}

.demo-effect-screen-demo2 .panel-actions .secondary-btn,
.demo-effect-screen-demo2 .panel-actions .primary-btn {
    min-height: 34px;
    padding: 0 12px;
}

.demo-effect-screen-demo2 .field {
    gap: 6px;
}

.demo-effect-screen-demo2 .field textarea,
.demo-effect-screen-demo2 .field input[type="text"] {
    font-size: 0.92rem;
}

.demo-effect-screen-demo2 .demo-effect-summary-list {
    gap: 8px;
}

.demo-effect-screen-demo2 .demo-effect-summary-list article {
    padding: 10px 11px;
}

.demo-effect-screen-demo2 .demo-effect-summary-list strong {
    font-size: 0.84rem;
}

.demo-effect-screen-demo2 .demo-effect-summary-list span,
.demo-effect-screen-demo2 .demo-effect-help,
.demo-effect-screen-demo2 .demo-effect-render-note {
    font-size: 0.75rem;
    line-height: 1.3;
}

.demo-effect-screen-demo2 .button-row.wrap-row {
    gap: 8px;
}

.demo-effect-screen-demo2 .button-row.wrap-row .primary-btn,
.demo-effect-screen-demo2 .button-row.wrap-row .secondary-btn {
    min-height: 36px;
}

.demo-effect-workspace-texturize {
    padding: 12px;
    gap: 10px;
}

.texturize-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(260px, 0.6fr);
    gap: 12px;
    align-items: start;
}

.texturize-browser-main {
    display: grid;
    gap: 12px;
}

.texturize-browser-review {
    display: grid;
    gap: 12px;
    align-content: start;
}

/* Bigger logo image */
.demo-effect-screen-texturize .texturize-upload-panel .canvas-wrap {
    min-height: 260px;
}

.demo-effect-screen-texturize .texturize-upload-panel .preview-image {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

/* Texture thumbnail grid — square cards, tight */
.texturize-thumb-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 8px !important;
}

.texturize-thumb-grid .thumb-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.texturize-thumb-grid .thumb-title {
    font-size: 0.68rem;
    text-align: center;
    margin-top: 4px;
}

/* Three select fields in a row */
.texturize-selects-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

/* Custom texture as collapsible */
.texturize-custom-texture-panel > summary {
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
}

.texturize-custom-texture-panel > summary::-webkit-details-marker { display: none; }

.texturize-summary-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

.demo-effect-workspace-chromafy {
    padding: 12px;
    gap: 10px;
}

.chromafy-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.8fr);
    gap: 12px;
    align-items: start;
}

.chromafy-browser-main {
    display: grid;
    gap: 12px;
}

.chromafy-setup-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
    align-items: start;
}

.chromafy-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(320px, 0.78fr);
    gap: 12px;
    align-items: start;
}

.demo-effect-screen-chromafy .demo-stage-panel {
    padding: 12px;
    border-radius: 18px;
}

.demo-effect-screen-chromafy .recipe-panel-head {
    margin-bottom: 8px;
}

.demo-effect-screen-chromafy .recipe-panel-head h2 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.demo-effect-screen-chromafy .recipe-panel-note {
    font-size: 0.78rem;
    line-height: 1.3;
}

.demo-effect-screen-chromafy .image-panel {
    padding: 12px;
}

.demo-effect-screen-chromafy .dropzone-layout {
    grid-template-columns: 1fr;
    gap: 8px;
}

.demo-effect-screen-chromafy .dropzone-copy {
    gap: 6px;
}

.demo-effect-screen-chromafy .dropzone-copy p {
    font-size: 0.84rem;
    line-height: 1.3;
}

.demo-effect-screen-chromafy .dropzone-art {
    display: none;
}

.demo-effect-screen-chromafy .canvas-wrap {
    margin-top: 8px;
    min-height: 260px;
    display: grid;
    place-items: center;
}

.demo-effect-screen-chromafy .preview-image {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.demo-effect-screen-chromafy .draw-canvas {
    max-width: 100%;
}

.demo-effect-screen-chromafy .panel-actions {
    margin-top: 8px;
}

.demo-effect-screen-chromafy .panel-actions .secondary-btn,
.demo-effect-screen-chromafy .panel-actions .primary-btn {
    min-height: 34px;
    padding: 0 12px;
}

.demo-effect-screen-chromafy .field {
    gap: 6px;
}

.demo-effect-screen-chromafy .field textarea,
.demo-effect-screen-chromafy .field input[type="text"] {
    font-size: 0.92rem;
}

.demo-effect-screen-chromafy .demo-effect-summary-list {
    gap: 8px;
}

.demo-effect-screen-chromafy .demo-effect-summary-list article {
    padding: 10px 11px;
}

.demo-effect-screen-chromafy .demo-effect-summary-list strong {
    font-size: 0.84rem;
}

.demo-effect-screen-chromafy .demo-effect-summary-list span,
.demo-effect-screen-chromafy .demo-effect-render-note,
.demo-effect-screen-chromafy .demo-effect-help {
    font-size: 0.75rem;
    line-height: 1.3;
}

.demo-effect-screen-chromafy .button-row.wrap-row {
    gap: 8px;
}

.demo-effect-screen-chromafy .button-row.wrap-row .primary-btn,
.demo-effect-screen-chromafy .button-row.wrap-row .secondary-btn {
    min-height: 36px;
}

.chromafy-choice-grid,
.chromafy-choice-stack {
    display: grid;
    gap: 10px;
}

.chromafy-choice-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
}

.chromafy-choice-group {
    display: grid;
    gap: 8px;
}

.chromafy-choice-group strong {
    font-size: 0.84rem;
    color: #eef2f7;
}

.chromafy-effect-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.chromafy-effect-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.chromafy-effect-thumb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 10px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.chromafy-effect-thumb-card:hover {
    border-color: rgba(242, 139, 60, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.chromafy-effect-thumb-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.chromafy-effect-thumb-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #0a0b10;
    border-radius: 9px;
    display: block;
    pointer-events: none;
}

.chromafy-effect-thumb-card span {
    font-size: 0.76rem;
    font-weight: 700;
    color: #eef2f7;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

.chromafy-effect-thumb-card.is-selected,
.chromafy-effect-thumb-card:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.75);
    background: linear-gradient(180deg, rgba(242, 139, 60, 0.15), rgba(255, 255, 255, 0.02));
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.25), 0 4px 18px rgba(0, 0, 0, 0.3);
}

.chromafy-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.chromafy-extra-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 220px;
}

.chromafy-prepare-busy {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 9, 18, 0.72);
    backdrop-filter: blur(4px);
}

.chromafy-prepare-busy[hidden] {
    display: none !important;
}

.chromafy-prepare-busy-card {
    width: min(420px, 100%);
    padding: 24px 26px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(22, 28, 40, 0.98), rgba(12, 16, 26, 0.96));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.chromafy-prepare-busy-title {
    margin: 14px 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f4f6fb;
}

.chromafy-prepare-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(242, 139, 60, 0.95);
    animation: chromafy-spin 0.85s linear infinite;
}

@keyframes chromafy-spin {
    to {
        transform: rotate(360deg);
    }
}

.chromafy-mode-grid {
    display: grid;
    gap: 8px;
}

.chromafy-toggle-card,
.chromafy-mode-card {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chromafy-toggle-card:hover,
.chromafy-mode-card:hover {
    border-color: rgba(242, 139, 60, 0.28);
    transform: translateY(-1px);
}

.chromafy-toggle-card input,
.chromafy-mode-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.chromafy-toggle-card span,
.chromafy-mode-card span {
    font-weight: 700;
    font-size: 0.84rem;
    color: #f1f5fb;
}

.chromafy-mode-card small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.25;
}

.chromafy-toggle-card:has(input:checked),
.chromafy-mode-card:has(input:checked) {
    border-color: rgba(242, 139, 60, 0.68);
    background:
        linear-gradient(180deg, rgba(242, 139, 60, 0.12), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 1px rgba(242, 139, 60, 0.18);
}

.chromafy-mode-note {
    display: grid;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.chromafy-mode-note strong {
    font-size: 0.84rem;
}

.chromafy-note-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.28;
}

.chromafy-prepared-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}

.chromafy-frame-card {
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.chromafy-frame-card strong {
    font-size: 0.82rem;
}

.chromafy-frame-media {
    min-height: 118px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.chromafy-frame-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.chromafy-frame-placeholder {
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
    padding: 12px;
}

.chromafy-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.chromafy-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(242, 139, 60, 0.22);
    background: rgba(242, 139, 60, 0.1);
    color: #ffd1aa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.demo-effect-screen-chromafy .chromafy-prompt-panel textarea {
    min-height: 184px;
}

.demo-effect-screen-chromafy .chromafy-render-panel .field textarea,
.demo-effect-screen-chromafy .chromafy-render-panel .field input[type="text"] {
    min-height: 0;
}

.demo-effect-workspace-car360 {
    padding: 8px;
    gap: 6px;
}

.car360-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(250px, 0.56fr);
    gap: 8px;
    min-height: 0;
}

.car360-browser-main,
.car360-browser-review {
    min-height: 0;
}

.car360-browser-main {
    display: grid;
}

.car360-grid-panel {
    display: grid;
    align-content: start;
    gap: 6px;
}

.car360-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.car360-slot-card,
.car360-summary-panel {
    display: grid;
    align-content: start;
    gap: 4px;
}

.demo-effect-screen-car360 .demo-stage-panel {
    padding: 8px;
    border-radius: 16px;
}

.demo-effect-screen-car360 .recipe-panel-head {
    margin-bottom: 4px;
}

.demo-effect-screen-car360 .recipe-panel-head h2 {
    font-size: 0.84rem;
    margin-bottom: 2px;
    line-height: 1.08;
}

.demo-effect-screen-car360 .recipe-panel-note {
    font-size: 0.66rem;
    line-height: 1.12;
}

.car360-slot-card .recipe-panel-note {
    display: none;
}

/* Slot card header: eyebrow + title on one compact line */
.car360-slot-card > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.car360-slot-card > div .eyebrow {
    font-size: 0.6rem;
    opacity: 0.55;
    white-space: nowrap;
    flex-shrink: 0;
}

.car360-slot-card > div h2 {
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.1;
}

/* Hide drag instructions once image is loaded */
.demo-effect-screen-car360 .image-panel.has-preview .car360-dropzone-topline {
    display: none;
}

.demo-effect-screen-car360 .image-panel {
    min-height: 0;
    padding: 6px;
}

.demo-effect-screen-car360 .paste-box {
    min-height: 0;
    padding: 6px;
    border-radius: 14px;
}

.car360-dropzone {
    display: grid;
    gap: 4px;
}

.car360-dropzone-topline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.car360-dropzone-copy {
    display: grid;
    gap: 2px;
}

.car360-dropzone-copy strong {
    font-size: 0.68rem;
    line-height: 1.08;
}

.car360-dropzone-copy p {
    display: none;
}

.demo-effect-screen-car360 [data-file-input] {
    max-width: 180px;
    font-size: 0.72rem;
}

.demo-effect-screen-car360 .car360-guide-badge {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    font-size: 0.68rem;
}

.demo-effect-screen-car360 .car360-v2-upload-status,
.demo-effect-screen-car360 .car360-v2-draw-status {
    font-size: 0.62rem;
    line-height: 1.12;
}

.demo-effect-screen-car360 .car360-v2-upload-status {
    display: none;
}

.demo-effect-screen-car360 .car360-v2-draw-status {
    display: none;
}

.demo-effect-screen-car360 .car360-v2-canvas-wrap {
    margin: 0 auto;
    width: min(100%, 200px) !important;
    height: min(100%, 200px) !important;
    min-height: 0 !important;
    max-height: 200px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.embedded-only {
    display: none;
}

html.embedded-workspace .embedded-only {
    display: grid;
}

.demo-effect-screen-car360 .car360-v2-guide {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    display: grid;
    place-items: center;
}

.demo-effect-screen-car360 .car360-v2-guide-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.demo-effect-screen-car360 .car360-v2-guide-text {
    display: none;
}

.demo-effect-screen-car360 .preview-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.demo-effect-screen-car360 .draw-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.demo-effect-screen-car360 .panel-actions {
    display: none;
}

.demo-effect-screen-car360 .panel-actions .secondary-btn,
.demo-effect-screen-car360 .panel-actions .primary-btn {
    min-height: 34px;
    padding: 0 12px;
}

.car360-summary-list {
    gap: 4px;
}

.car360-summary-list article {
    padding: 6px 8px;
}

.car360-summary-list strong {
    font-size: 0.74rem;
}

.car360-summary-list span {
    font-size: 0.64rem;
    line-height: 1.16;
}

.car360-recipe-notes {
    display: grid;
    gap: 5px;
    padding: 7px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.024);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.car360-recipe-notes strong {
    font-size: 0.76rem;
}

.car360-note-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 4px;
    font-size: 0.64rem;
    line-height: 1.16;
}

html.embedded-workspace .demo-effect-topbar,
html.embedded-workspace .workspace-shelf,
html.embedded-workspace .demo-recipe-dock {
    display: none !important;
}

html.embedded-workspace .demo-effect-shell,
html.embedded-workspace .demo-effect-screen {
    height: auto;
    min-height: 100%;
}

html.embedded-workspace .demo-effect-screen {
    grid-template-rows: minmax(0, 1fr);
    padding: 0;
    gap: 0;
    overflow: visible;
}

html.embedded-workspace .demo-effect-workspace {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 6px;
}

/* ── Embedded iframe: one type rhythm (labels → titles → notes → controls) ─ */
html.embedded-workspace .demo-effect-browser-head {
    margin: 0 0 2px;
    padding: 0;
}

html.embedded-workspace .demo-effect-browser-title {
    align-items: center;
    gap: 10px;
}

html.embedded-workspace .demo-effect-browser-title .eyebrow {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.72;
}

html.embedded-workspace .demo-effect-browser-title h1 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

html.embedded-workspace .demo-effect-screen .demo-stage-panel {
    padding: 10px 12px;
}

html.embedded-workspace .demo-effect-workspace .recipe-panel-head {
    margin-bottom: 8px;
    gap: 10px;
    align-items: flex-start;
}

html.embedded-workspace .demo-effect-workspace .recipe-panel-head .eyebrow,
html.embedded-workspace .demo-effect-workspace .demo-stage-panel > .eyebrow {
    margin: 0 0 3px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

html.embedded-workspace .demo-effect-workspace .recipe-panel-head h2,
html.embedded-workspace .demo-effect-workspace .demo-stage-panel > h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.28;
}

html.embedded-workspace .demo-effect-workspace .recipe-panel-note,
html.embedded-workspace .demo-effect-workspace .demo-stage-panel > p.muted {
    margin: 0 0 8px;
    font-size: 0.8rem;
    line-height: 1.42;
    max-width: none;
}

html.embedded-workspace .demo-effect-workspace .demo-stage-panel > p.muted:last-child {
    margin-bottom: 0;
}

html.embedded-workspace .demo-effect-screen .image-panel {
    padding: 10px;
}

html.embedded-workspace .demo-effect-workspace .paste-box {
    padding: 10px 12px;
    min-height: 0;
}

html.embedded-workspace .demo-effect-workspace .paste-box--shelf-compact {
    padding: 8px 10px;
}

html.embedded-workspace .shelf-dropzone-compact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}

html.embedded-workspace .shelf-dropzone-compact-row--with-hint {
    margin-top: 2px;
}

html.embedded-workspace .shelf-dropzone-status {
    font-size: 0.78rem;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

html.embedded-workspace .shelf-dropzone-hint {
    margin: 0 0 2px;
    font-size: 0.78rem;
    line-height: 1.35;
}

html.embedded-workspace .panel-file-browse-btn--inline {
    margin-top: 0;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

html.embedded-workspace .dropzone-copy--embedded {
    gap: 0;
}

html.embedded-workspace .demo-effect-workspace .dropzone-copy {
    gap: 6px;
}

html.embedded-workspace .demo-effect-workspace .dropzone-copy p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.42;
}

html.embedded-workspace .demo-effect-workspace .dropzone-copy p strong {
    font-size: 0.84rem;
    font-weight: 600;
}

html.embedded-workspace .demo-effect-workspace .canvas-wrap {
    margin-top: 8px;
}

html.embedded-workspace .relite-ref-card .thumb-title {
    font-size: 0.7rem;
    margin-top: 3px;
}

html.embedded-workspace .relite-mode-card strong {
    font-size: 0.88rem;
    line-height: 1.2;
}

html.embedded-workspace .relite-mode-card small {
    font-size: 0.72rem;
    line-height: 1.32;
}

html.embedded-workspace .step-panel-summary {
    padding: 10px 12px;
    gap: 10px;
}

html.embedded-workspace .step-panel-summary .eyebrow {
    margin: 0 0 3px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

html.embedded-workspace .step-panel-summary h2 {
    font-size: 1.05rem;
    line-height: 1.28;
    font-weight: 700;
}

html.embedded-workspace .step-panel-note {
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.42;
}

html.embedded-workspace .step-panel-body {
    padding: 0 12px 12px;
}

html.embedded-workspace .step-state-pill {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

@media (max-width: 1380px) {
    .demo-effect-title-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .demo-effect-nav {
        justify-content: start;
    }

    .demo-effect-topbar-note {
        max-width: none;
    }

    .demo-effect-browser-head {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .demo-effect-browser-note {
        max-width: none;
        text-align: left;
    }

    .demo-effect-grid {
        grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1fr) minmax(300px, 0.78fr);
    }

    .demo-effect-screen-demo1 .demo-effect-title-row-compact,
    .demo-effect-screen-demo1 .demo1-browser-grid,
    .demo-effect-screen-chromafy .demo-effect-title-row-compact,
    .demo-effect-screen-chromafy .chromafy-browser-grid,
    .demo-effect-screen-chromafy .chromafy-setup-band,
    .demo-effect-screen-chromafy .chromafy-review-grid,
    .demo-effect-screen-chromafy .chromafy-choice-grid,
    .demo-effect-screen-car360 .demo-effect-title-row-compact,
    .demo-effect-screen-car360 .car360-browser-grid,
    .demo-effect-screen-car360 .car360-slot-grid,
    .demo-effect-screen-demo2 .demo2-browser-grid,
    .demo-effect-screen-demo2 .demo2-review-grid,
    .demo-effect-screen-texturize .texturize-browser-grid {
        grid-template-columns: 1fr;
    }

    .demo-effect-screen-demo1 .demo-effect-title-stages,
    .demo-effect-screen-chromafy .demo-effect-title-stages,
    .demo-effect-screen-car360 .demo-effect-title-stages,
    .demo-effect-screen-demo2 .demo-effect-title-stages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .demo1-browser-prompt {
        grid-template-rows: auto;
    }
}

@media (max-width: 1180px) {
    .demo-effect-shell,
    .demo-effect-screen {
        height: auto;
        overflow: visible;
    }

    .demo-effect-screen {
        grid-template-rows: auto;
    }

    .demo-effect-workspace {
        grid-template-rows: auto;
        overflow: visible;
    }

    .demo-effect-grid {
        grid-template-columns: 1fr;
    }

    .demo-effect-column {
        overflow: visible;
        padding-right: 0;
    }

    .demo-effect-stagebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demo-effect-screen-demo1 .demo-effect-inline-progress,
    .demo-effect-screen-chromafy .demo-effect-inline-progress,
    .demo-effect-screen-car360 .demo-effect-inline-progress,
    .demo-effect-screen-demo2 .demo-effect-inline-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .demo-effect-screen {
        padding: 8px 8px 14px;
    }

    .demo-effect-title-row h1 {
        font-size: 1.8rem;
    }

    .demo-effect-stagebar {
        grid-template-columns: 1fr;
    }

    .demo-effect-screen .dropzone-layout {
        grid-template-columns: 1fr;
    }

    .demo-effect-choice-copy {
        display: grid;
    }

    .demo-effect-screen-demo1 .demo-effect-title-stages,
    .demo-effect-screen-demo1 .demo-effect-inline-progress,
    .demo-effect-screen-chromafy .demo-effect-title-stages,
    .demo-effect-screen-chromafy .demo-effect-inline-progress,
    .demo-effect-screen-car360 .demo-effect-title-stages,
    .demo-effect-screen-car360 .demo-effect-inline-progress,
    .demo-effect-screen-demo2 .demo-effect-title-stages,
    .demo-effect-screen-demo2 .demo-effect-inline-progress {
        grid-template-columns: 1fr;
    }

    .demo-effect-screen-demo1 .demo-effect-title-render,
    .demo-effect-screen-chromafy .demo-effect-title-render,
    .demo-effect-screen-car360 .demo-effect-title-render,
    .demo-effect-screen-demo2 .demo-effect-title-render {
        display: grid;
    }
}

/* Demo 1-style green-ready states for mini stages */
.demo-effect-mini-stage.is-ready {
    border-color: rgba(88, 214, 141, 0.35);
    background: linear-gradient(180deg, rgba(88,214,141,0.14), rgba(255,255,255,0.02));
    box-shadow: inset 0 0 0 1px rgba(88,214,141,0.08);
}

.demo-effect-mini-stage.is-ready .eyebrow,
.demo-effect-mini-stage.is-ready strong {
    color: #c9f7dd;
}

.demo-effect-stagecard.is-ready .demo-effect-stagecheck::before {
    content: "✓";
}

.chromafy-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   DEMO 1 V2 — clean grid layout, d1- namespace
   All rules scoped to .d1-workspace or .d1-* to avoid old-rule conflicts.
═══════════════════════════════════════════════════════════════════════ */

/* Demo1 screen: grow with content so the iframe resizer can expand it */
.demo-effect-screen-demo1 {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto;
    overflow: visible;
}

/* Workspace root — all rows auto so content dictates height */
.d1-workspace {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 8px 12px;
    overflow: visible;
}

.d1-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 2px;
}
.d1-title .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.55;
    white-space: nowrap;
    flex-shrink: 0;
}
.d1-title h1 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

/* TOP ROW — Product (left) + Scenes wide (right) */
.d1-top-area {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3.5fr);
    gap: 10px;
    min-height: 220px;
    height: 34vh;
    max-height: 380px;
}

/* BOTTOM ROW — Description | Prompt | Render */
.d1-bottom-area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* Stack description textarea + new AI panel in first column */
.d1-bottom-col-desc {
    display: grid;
    gap: 12px;
    align-content: start;
    min-width: 0;
}

.d1-ai-describe-v2 h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.d1-ai-describe-v2-actions {
    flex-wrap: wrap;
}

.d1-ai-file-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.d1-ai-describe-v2-status {
    margin: 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    min-height: 1.2em;
}

/* Shared column base */
.d1-col {
    min-height: 0;
    overflow: hidden;
}

/* ── Column 1: Product image ─────────────────────────────────────── */

.d1-source-col {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 4px;
    padding: 10px;
    align-self: stretch;
}

.d1-note {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* The image well fills the 1fr row */
.d1-image-well {
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* The image zone fills the well completely */
.d1-image-zone {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px dashed rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease;
    outline: none;
}

.d1-image-zone:focus,
.d1-image-zone.is-drop-target {
    border-color: rgba(242, 139, 60, 0.55);
}

/* Drop prompt — centered placeholder text */
.d1-drop-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    pointer-events: none;
    line-height: 1.5;
}
.d1-image-zone.has-preview .d1-drop-prompt {
    display: none;
}

/* Preview image — fills zone, hidden until loaded */
.d1-preview {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    padding: 8px;
    box-sizing: border-box;
}
.d1-image-zone.has-preview .d1-preview {
    display: block;
}

/* Canvas — hidden for demo1 (drawing disabled) */
.d1-draw-canvas {
    display: none;
}

/* ── Bottom row panels ───────────────────────────────────────────── */

.d1-description-panel,
.d1-prompt-panel,
.d1-render-panel {
    padding: 8px 10px;
    display: grid;
    gap: 5px;
    align-content: start;
}

.d1-description-panel textarea,
.d1-prompt-panel textarea {
    resize: vertical;
    min-height: 48px;
    font-size: 0.84rem;
    line-height: 1.4;
}

.d1-accept-prompt-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.d1-prompt-panel textarea {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
}

/* ── Column 3: Scene chooser ────────────────────────────────────── */

.d1-scenes-col {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 4px;
    padding: 10px;
    align-self: stretch;
    overflow: hidden;
}

.d1-scenes-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    padding-right: 2px;
}

.d1-scenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 160px);
    gap: 8px;
    align-content: start;
}

.d1-scene-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.d1-scene-card .thumb-title {
    font-size: 0.65rem;
    font-weight: 600;
    margin: 3px 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── ReLite AI-Fy ─────────────────────────────────────────────── */
.relite-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.55fr);
    gap: 12px;
    align-items: start;
}

.relite-browser-main {
    display: grid;
    gap: 12px;
}

.relite-browser-review {
    display: grid;
    gap: 12px;
    align-content: start;
}

/* Larger product image drop area */
.demo-effect-screen-relite .relite-upload-panel .canvas-wrap {
    min-height: 280px;
}

.demo-effect-screen-relite .relite-upload-panel .preview-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* Embedded in menu iframe: keep step 1 usable but leave room for lighting refs + sidebar */
html.embedded-workspace .demo-effect-screen-relite .relite-upload-panel .canvas-wrap {
    min-height: 140px;
}

html.embedded-workspace .demo-effect-screen-relite .relite-upload-panel .preview-image {
    max-height: min(240px, 38vh);
}

html.embedded-workspace .demo-effect-screen-relite .relite-browser-grid {
    gap: 8px;
}

html.embedded-workspace .demo-effect-screen-relite .relite-browser-main {
    gap: 8px;
}

html.embedded-workspace .demo-effect-screen-relite .relite-browser-review {
    gap: 8px;
}

html.embedded-workspace .demo-effect-screen-relite .relite-summary-panel,
html.embedded-workspace .demo-effect-screen-relite .relite-mode-panel,
html.embedded-workspace .demo-effect-screen-relite .relite-pose-panel {
    gap: 8px;
}

/* Lighting reference thumbnail grid */
.relite-ref-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 8px !important;
}

.relite-ref-card {
    padding: 6px !important;
}

.relite-ref-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.relite-ref-card .thumb-title {
    font-size: 0.68rem;
    text-align: center;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Render sidebar panel */
.relite-summary-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

/* Background mode + pose mode cards */
.relite-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.relite-mode-grid--col1 {
    grid-template-columns: 1fr;
}

.relite-mode-card {
    display: grid;
    gap: 4px;
    padding: 10px 12px !important;
    cursor: pointer;
}

.relite-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.relite-mode-card strong {
    font-size: 0.82rem;
    display: block;
}

.quality-cost-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--accent, #7c6bef);
    opacity: 0.85;
    white-space: nowrap;
}


.relite-mode-card small {
    font-size: 0.71rem;
    color: var(--muted, #888);
    display: block;
    line-height: 1.4;
}

.relite-mode-card:has(input:checked) {
    border-color: var(--accent, #4ade80);
    background: rgba(74, 222, 128, 0.06);
}

.relite-mode-card:has(input:checked) strong {
    color: var(--accent, #4ade80);
}

/* ============================================================
   matrix-aifi-it
   ============================================================ */

.demo-effect-workspace-matrix {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.matrix-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.5fr);
    gap: 16px;
    align-items: start;
}

.matrix-browser-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matrix-browser-review {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.matrix-upload-panel .canvas-wrap {
    min-height: 260px;
}

.matrix-upload-panel .preview-image {
    max-height: 360px;
    object-fit: contain;
}

.matrix-pipeline-panel ol.matrix-pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    margin-top: 12px;
}

.matrix-pipeline-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 6px 10px;
    align-items: start;
}

.matrix-pipeline-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent, #4ade80);
    border: 1px solid rgba(74, 222, 128, 0.35);
    flex-shrink: 0;
    margin-top: 1px;
}

.matrix-pipeline-steps li strong {
    grid-column: 2;
    font-size: 13px;
    font-weight: 600;
}

.matrix-pipeline-steps li span {
    grid-column: 2;
    font-size: 12px;
    color: var(--text-muted, #888);
    line-height: 1.4;
}

.matrix-pipeline-note {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(74, 222, 128, 0.05);
    border-left: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 3px;
}

/* ============================================================
   dunk-aifi-it
   ============================================================ */

/* ── Dunk confirm page ─────────────────────────────── */

.dunk-confirm-workspace {
    padding: 20px 24px 32px;
}

.dunk-confirm-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
    max-width: 860px;
}

@media (max-width: 640px) {
    .dunk-confirm-layout {
        grid-template-columns: 1fr;
    }
}

.dunk-confirm-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dunk-confirm-img {
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
    background: #0d0f12;
    border: 1px solid rgba(255,255,255,0.08);
}

.dunk-confirm-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 4px 0 6px;
}

.dunk-confirm-lede {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 16px;
    line-height: 1.5;
}

.dunk-confirm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.dunk-confirm-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
}

.dunk-confirm-textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    padding: 10px 12px;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.dunk-confirm-textarea:focus {
    outline: none;
    border-color: rgba(242, 139, 60, 0.5);
}

.dunk-confirm-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.dunk-confirm-settings {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
}

.dunk-confirm-details {
    padding-top: 4px;
}

/* ── Dunk workspace ─────────────────────────────────── */

.demo-effect-workspace-dunk {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Dunk 3-column layout ──────────────────────────────────────────────── */
.dunk-3col-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.dunk-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dunk-col-settings {
    position: sticky;
    top: 16px;
}

/* Make the describe panel fill available height so textarea can stretch */
.dunk-col-prompt {
    align-self: stretch;
}

.dunk-col-fill {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dunk-detect-body-tall {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dunk-desc-textarea-tall {
    flex: 1;
    min-height: 160px;
    resize: none;
}

.dunk-upload-panel .canvas-wrap {
    min-height: 260px;
}

.dunk-upload-panel .preview-image {
    max-height: 420px;
    object-fit: contain;
}

.dunk-pipeline-panel ol.dunk-pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    margin-top: 12px;
}

.dunk-pipeline-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 6px 10px;
    align-items: start;
}

.dunk-pipeline-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
    margin-top: 1px;
}

.dunk-pipeline-steps li strong {
    grid-column: 2;
    font-size: 13px;
    font-weight: 600;
}

.dunk-pipeline-steps li span {
    grid-column: 2;
    font-size: 12px;
    color: var(--text-muted, #888);
    line-height: 1.4;
}

.dunk-pipeline-note {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(56, 189, 248, 0.05);
    border-left: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

/* ── Dunk inline UX ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .dunk-3col-grid {
        grid-template-columns: 1fr;
    }
    .dunk-col-settings {
        position: static;
    }
    .dunk-col-prompt {
        align-self: auto;
    }
    .dunk-desc-textarea-tall {
        min-height: 120px;
    }
}

.dunk-detect-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.dunk-detect-spinner-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted, #888);
}

.spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.dunk-detect-error {
    font-size: 12px;
    color: #f87171;
}

.dunk-desc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dunk-desc-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dunk-autodetect-btn {
    font-size: 12px;
    padding: 5px 12px;
    white-space: nowrap;
}

.dunk-desc-textarea {
    width: 100%;
    min-height: 90px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 10px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.dunk-desc-textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.04);
}

.dunk-desc-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recipe-state-pill-ok {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.dunk-render-panel ol.dunk-pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    margin-top: 12px;
}

/* ============================================================
   backdrop-aifi-it
   ============================================================ */

.demo-effect-workspace-backdrop {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.backdrop-browser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.5fr);
    gap: 16px;
    align-items: start;
}

.backdrop-browser-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.backdrop-browser-review {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.backdrop-upload-panel .canvas-wrap,
.backdrop-custombg-upload-panel .canvas-wrap {
    min-height: 240px;
}

.backdrop-upload-panel .preview-image,
.backdrop-custombg-upload-panel .preview-image {
    max-height: 320px;
    object-fit: contain;
}

/* Source toggle tabs */
.backdrop-source-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.backdrop-source-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    color: var(--text-muted, #888);
}

.backdrop-source-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.backdrop-source-tab.active,
.backdrop-source-tab:has(input:checked) {
    border-color: var(--accent, #4ade80);
    background: rgba(74, 222, 128, 0.08);
    color: var(--accent, #4ade80);
}

/* Background scene grid */
.backdrop-scenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.backdrop-scene-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 4px !important;
}

.backdrop-scene-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}

.backdrop-scene-card:has(input:checked) {
    border-color: var(--accent, #4ade80);
    background: rgba(74, 222, 128, 0.06);
}

.backdrop-scene-card:has(input:checked) .thumb-title {
    color: var(--accent, #4ade80);
}

.backdrop-pipeline-note {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(74, 222, 128, 0.05);
    border-left: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 3px;
}

/* ===========================================================================
   muzzleflash-aifi
   =========================================================================== */

/* Upload page */
.mf-browser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .mf-browser-grid { grid-template-columns: 1fr; }
}

.mf-file-drop {
    display: block;
    border: 2px dashed rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 12px;
}
.mf-file-drop:hover, .mf-file-drop.drag-over {
    border-color: rgba(249,115,22,0.7);
    background: rgba(249,115,22,0.06);
}
.mf-file-drop.has-file { border-color: rgba(74,222,128,0.5); background: rgba(74,222,128,0.04); }
.mf-drop-label { margin: 8px 0 4px; font-size: 0.95em; }
.mf-drop-meta  { font-size: 0.82em; margin-top: 4px; }
.mf-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

/* Review page */
.mf-review-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    padding: 16px;
    height: calc(100vh - 80px);
    overflow: hidden;
}
@media (max-width: 1000px) {
    .mf-review-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
}
.mf-review-player-col { overflow-y: auto; }
.mf-review-shots-col  { overflow: hidden; display: flex; flex-direction: column; }
.mf-review-shots-col .mf-shots-panel { flex: 1; }

.mf-player-panel { display: flex; flex-direction: column; gap: 10px; }
.mf-filename     { font-size: 0.9em; font-weight: 600; word-break: break-all; }
.mf-meta         { font-size: 0.8em; }

.mf-video-wrapper {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.mf-video-wrapper video {
    width: 100%; height: 100%; object-fit: contain; display: block;
}
#mf-frame-marker-overlay {
    position: absolute; inset: 0; pointer-events: none;
}

.mf-player-controls {
    display: flex; align-items: center; gap: 10px;
}
.mf-scrubber-wrap { flex: 1; }
.mf-scrubber { width: 100%; accent-color: #f97316; }
.mf-timecode { font-size: 0.82em; font-variant-numeric: tabular-nums; min-width: 90px; }
.mf-frame-nav { display: flex; align-items: center; gap: 8px; font-size: 0.85em; }

/* Shot list */
.mf-shots-panel { display: flex; flex-direction: column; gap: 0; height: 100%; overflow: hidden; }
.mf-shots-header { padding-bottom: 10px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.mf-shot-list   { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding-bottom: 4px; }
.mf-shots-footer {
    flex-shrink: 0;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mf-shot-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 8px 10px;
    transition: border-color 0.2s;
}
.mf-shot-row.approved { border-color: rgba(249,115,22,0.4); }
.mf-shot-row:hover    { border-color: rgba(255,255,255,0.2); }

.mf-shot-thumb { width: 60px; height: 40px; flex-shrink: 0; border-radius: 4px; overflow: hidden; cursor: pointer; }
.mf-shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mf-shot-thumb-placeholder {
    width: 100%; height: 100%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72em; color: rgba(255,255,255,0.4);
}
.mf-shot-info { flex: 1; font-size: 0.82em; display: flex; flex-direction: column; gap: 1px; cursor: pointer; }
.mf-shot-info strong { font-size: 0.95em; }
.mf-gun-tag {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    background: rgba(249,115,22,0.15); color: #f97316;
    font-size: 0.78em; font-weight: 600;
}
.mf-confidence { font-size: 0.75em; color: rgba(255,255,255,0.45); }

.mf-shot-actions { display: flex; gap: 4px; flex-shrink: 0; }
.mf-shot-actions button {
    width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7);
    cursor: pointer; font-size: 0.82em; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.mf-shot-actions button:hover { background: rgba(255,255,255,0.12); }
.mf-shot-approve-btn.active  { background: rgba(249,115,22,0.25); color: #f97316; border-color: #f97316; }

/* Setup page */
.mf-setup-header { margin: 16px; }
.mf-setup-footer { margin: 0 16px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mf-setup-footer .button-row { margin-left: auto; }

.mf-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 16px 16px;
}

.mf-setup-card { display: flex; flex-direction: column; gap: 10px; }
.mf-setup-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88em; }
.mf-setup-card-header strong { font-size: 1em; }

.mf-setup-frame-wrap { border-radius: 8px; overflow: hidden; position: relative; }
.mf-setup-frame-img  { width: 100%; display: block; border-radius: 8px; user-select: none; }
.mf-muzzle-overlay   { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.mf-muzzle-handle    { cursor: grab; }
.mf-muzzle-handle:active { cursor: grabbing; }
.mf-bbox             { pointer-events: none; }

.mf-setup-card-controls { display: flex; flex-direction: column; gap: 6px; font-size: 0.85em; }
.mf-slider-row { display: flex; align-items: center; gap: 8px; }
.mf-slider-row input[type=range] { flex: 1; accent-color: #f97316; }
.mf-intensity-val { min-width: 34px; font-size: 0.85em; font-variant-numeric: tabular-nums; }
.mf-barrel-angle  { font-size: 0.78em; }

/* ==========================================================================
   season-aifi-it
   ========================================================================== */

.demo-effect-workspace-season {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.season-browser-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr) minmax(200px, 1.2fr);
    gap: 12px;
    align-items: start;
}

@media (max-width: 900px) {
    .season-browser-grid {
        grid-template-columns: 1fr;
    }
}

/* Upload column */
.season-browser-main {}

.season-upload-panel {}

/* Season + message column */
.season-browser-options {}

.season-season-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.season-note {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

/* Season picker cards */
.season-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.season-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    text-align: center;
}

.season-card input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}

.season-card:hover {
    border-color: rgba(242,139,60,0.3);
    background: rgba(242,139,60,0.05);
}

.season-card:has(input:checked) {
    border-color: rgba(242,139,60,0.55);
    background: rgba(242,139,60,0.09);
    box-shadow: 0 0 0 1px rgba(242,139,60,0.2);
}

.season-card-emoji {
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
}

.season-card-label {
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
    color: var(--text);
}

/* Message input */
.season-message-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.season-message-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

.season-message-input:focus {
    border-color: rgba(242,139,60,0.5);
}

.season-message-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.season-char-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* Render column */
.season-browser-render {}

.season-render-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Pipeline note */
.season-pipeline-note {
    font-size: 0.8rem;
    line-height: 1.5;
}

.season-pipeline-steps {
    margin: 6px 0 4px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
}

/* Quality radio cards reuse relite-mode-card patterns */
.relite-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}

.relite-mode-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    font-size: 0.85rem;
}

.relite-mode-card strong {
    font-size: 0.9rem;
}

.relite-mode-card small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

/* ── Auth pages (login / signup) ─────────────────────────────────────────── */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.auth-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.auth-brand-word {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #f7f0e7;
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.auth-lede {
    margin: -10px 0 0;
    font-size: 0.88rem;
}

.auth-error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(220, 60, 60, 0.14);
    border: 1px solid rgba(220, 60, 60, 0.3);
    color: #ffb3b3;
    font-size: 0.88rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-field input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font: inherit;
    font-size: 0.94rem;
    transition: border-color 0.15s;
    outline: none;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.auth-field input:focus {
    border-color: rgba(242, 139, 60, 0.6);
    background: rgba(242, 139, 60, 0.04);
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
}

.auth-footer {
    margin: 0;
    font-size: 0.84rem;
    text-align: center;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}
