    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;
}

.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: 0;
}

.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: 6px;
    height: 100vh;
    padding: 4px 10px 6px;
    overflow: hidden;
}

.demo-effect-topbar {
    display: grid;
    gap: 2px;
    min-height: 44px;
    padding: 2px 10px;
    border-radius: 0 0 16px 16px;
    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: flex;
    align-items: center;
    position: relative;
    gap: 10px;
    min-height: 90px;
}

/* Nav left-anchored in both row variants */
.demo-effect-title-row > .demo-effect-nav,
.demo-effect-title-row-compact > .demo-effect-nav {
    flex-shrink: 0;
}

.demo-effect-title-row-compact {
    gap: 10px;
    align-items: center;
}

/* Brand block — absolutely centered in every topbar */
.topbar-brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 1;
    flex: 0 0 auto;
}

.demo-effect-branding {
    display: grid;
    gap: 1px;
    align-content: center;
}

.demo-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #f7f0e7;
    text-decoration: none;
}

.demo-site-brand:hover {
    color: #fff7ef;
}

.demo-site-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
}

.topbar-brand-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin: 0;
    white-space: nowrap;
}

/* ── Prominent slogan strip — pricing & workflows pages ── */
.brand-slogan-strip {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    padding: 1.6rem 1.5rem 0.4rem;
    line-height: 1.1;
}
.brand-slogan-strip strong {
    color: var(--accent);
    font-weight: 900;
}
.tagline-brand {
    color: var(--accent);
    font-weight: 800;
}

.demo-site-brand-word {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Logo in shared topbar (pricing, workflows) */
.topbar-logo {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Logo on auth pages (login / signup) */
.auth-brand-logo {
    display: block;
    height: 64px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* ── Shared site topbar (pricing, workflows, standalone pages) ────────────── */
.wf-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    min-height: 56px;
    background: rgba(17, 19, 24, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}
.wf-topbar > .topbar-brand-center {
    flex: 0 0 auto;
    margin-left: 12px;
}
.wf-topbar > .topbar-brand-center .topbar-brand-tagline {
    display: none;
}
.wf-topbar > .demo-effect-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
}

/* legacy inline brand anchor (pricing/workflows still use it in some places) */
.wf-topbar-brand {
    display: none;  /* hidden — use effect_shell_brand.html partial instead */
}

.demo-effect-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    align-self: center;
}

.demo-effect-nav a {
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.demo-effect-nav a:hover {
    color: #f5efe8;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.demo-effect-nav a.nav-admin-link,
.demo-effect-nav button.nav-admin-link {
    border: none;
    background: none;
    padding: 4px 5px;
    font-size: .65rem;
    opacity: .5;
}
.demo-effect-nav a.nav-admin-link:hover,
.demo-effect-nav button.nav-admin-link:hover {
    opacity: 1;
    background: none;
    border: none;
    color: var(--accent, #f28b3c);
}
.nav-show-splash-btn {
    display: none;
}

/* ── Nav user cluster (credits + name + logout) ─────────────────────── */
.nav-user-cluster {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.1);
}

.nav-credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

.nav-credits-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    flex-shrink: 0;
}

.nav-username {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    color: var(--ink, #edf1f7);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.nav-username:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
}

.nav-logout-btn {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.07);
    background: transparent;
    color: var(--muted, #98a2b3);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.nav-logout-btn:hover {
    color: #f5efe8;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}

.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: none;
}

.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: 80px;
    --workspace-shelf-media-height: 60px;
    --workspace-shelf-body-height: calc(var(--workspace-shelf-card-height) + 6px);
}

/* DISABLED — workspace-shelf fold was for /wf/ pages only; not needed (compound workspace uses .shell-carousel-fold in menu.html)
.workspace-shelf { position: relative; }
.workspace-shelf-fold { ... }
.workspace-shelf.is-collapsed .workspace-shelf-body { display: none; }
*/

.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;
}

/* Delete (×) button on Media shelf cards */
.shelf-asset-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.workspace-shelf-card:hover .shelf-asset-delete {
    opacity: 1;
}
.shelf-asset-delete:hover {
    background: rgba(200, 40, 40, 0.9);
}

/* "Example" badge on sample asset cards */
.shelf-example-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(242, 139, 60, 0.88);
    color: #fff;
    border-radius: 4px;
    padding: 2px 5px;
    pointer-events: none;
    line-height: 1.3;
}

.workspace-shelf-card-media {
    position: relative;
}

.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: 210px;
}

.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: 148px;
    max-width: 168px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.workspace-shelf-history-card[data-run-again-url]:hover {
    border-color: rgba(242,139,60,.35);
    box-shadow: 0 0 0 1px rgba(242,139,60,.15);
}

.workspace-shelf-history-card .workspace-shelf-card-media {
    flex: 0 0 auto;
    height: 100px;
    padding: 4px;
    position: relative;
}

.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;
}

/* ── Video play badge on shelf cards ─────────────────────────────────── */
.workspace-shelf-card-media {
    position: relative;
}
.shelf-play-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.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 {
    position: relative;
    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: 0; /* no void when empty */
}

.demo-effect-screen-texturize .texturize-upload-panel .paste-box.has-preview .canvas-wrap {
    min-height: 140px;
}

.demo-effect-screen-texturize .texturize-upload-panel .paste-box {
    overflow: hidden;
}

.demo-effect-screen-texturize .texturize-upload-panel .preview-image {
    max-width: 100%;
    max-height: 180px;
    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 form is taller than the 100vh shell once Duration is added.
       Allow internal vertical scroll so the Render bar remains reachable on
       short viewports. The parent .demo-effect-screen still owns the
       outer overflow:hidden lock, so only this panel scrolls. */
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.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: 0;
    min-height: 0;   /* no blank void when empty */
    display: grid;
    place-items: center;
}

/* Only give the canvas-wrap height once an image is loaded */
.demo-effect-screen-chromafy .paste-box.has-preview .canvas-wrap {
    margin-top: 8px;
    min-height: 140px;
}

.demo-effect-screen-chromafy .preview-image {
    max-width: 100%;
    max-height: 180px;
    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: 180px;
    height: 28vh;
    max-height: 320px;
}

/* 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(72, 200, 230, 0.28);
    background: rgba(72, 200, 230, 0.04);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease;
    outline: none;
}

.d1-image-zone:focus,
.d1-image-zone.is-drop-target {
    border-color: rgba(72, 199, 102, 0.7);
    background: rgba(72, 199, 102, 0.06);
}

/* 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: 14px 24px 16px;
}

.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 - 56px);
    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: 8px 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;
}

