:root {
    --bg: #0a0a0f;
    --bg-2: #11111a;
    --panel: rgba(20, 20, 30, 0.6);
    --panel-solid: #15151f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5fa;
    --muted: #8a8aa0;
    --lime: #d4ff3a;
    --accent: #d4ff3a;
    --pink: #ff3ea5;
    --violet: #8b5cf6;
    --cyan: #38e1ff;
    --error: #ff5c7a;
    --warn: #ffc83a;
    --ok: #5be0a0;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.01em;
}

/* Animated gradient mesh background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 800px 600px at 10% -10%, rgba(139, 92, 246, 0.25), transparent 60%),
        radial-gradient(ellipse 700px 500px at 95% 0%, rgba(255, 62, 165, 0.18), transparent 60%),
        radial-gradient(ellipse 900px 700px at 50% 110%, rgba(56, 225, 255, 0.12), transparent 60%),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
    pointer-events: none;
}

/* Headings use Space Grotesk for chunky display feel */
h1, h2, h3, .brand, .display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* default: hide decorative layers */
.topbar-bg { display: none; }
.topbar-inner { display: none; }
.topbar-tagline { display: none; }

/* ── LANDING PAGE CINEMATIC TOPBAR ───────────────────────────── */
.landing-page .topbar {
    height: 160px;
    padding: 0;
    background: #0a0a0f;
    border-bottom: none;
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-page .topbar-bg {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ambient colour glows */
.landing-page .topbar-glow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 520px;
    height: 200px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}
.landing-page .topbar-glow-l {
    left: -80px;
    background: radial-gradient(ellipse, rgba(212,255,58,0.18) 0%, transparent 70%);
}
.landing-page .topbar-glow-r {
    right: -80px;
    background: radial-gradient(ellipse, rgba(56,225,255,0.14) 0%, transparent 70%);
}

/* ── film strip image fills the full header ── */
.landing-page .topbar-film-img {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/film-strip-header.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: var(--film-opacity, 0.40);
    filter: brightness(0.95);
}

.landing-page .topbar-tint-l { display: none; }
.landing-page .topbar-tint-r { display: none; }

/* darkened zone behind the logo so text stays legible */
.landing-page .topbar-logo-shield {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 480px;
    background: linear-gradient(90deg, rgba(10,10,15,0.72) 0%, rgba(10,10,15,0.40) 60%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

/* bottom gradient — header dissolves into page */
.landing-page .topbar-fade-b {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(0deg, #0a0a0f 0%, transparent 100%);
    pointer-events: none;
    z-index: 4;
}

/* legacy topbar-inner / topbar-nav: hidden — superseded by topbar-main */
.landing-page .topbar-inner { display: none !important; }
.landing-page .topbar-tagline { display: none !important; }
.landing-page .topbar-nav { display: none !important; }
/* landing page: restyle .topbar-main to use same cinematic overlay layout */
.landing-page .topbar-main {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    padding: 0 40px;
    z-index: 10;
    box-sizing: border-box;
}
.landing-page .topbar-mobile {
    position: absolute;
    top: 160px;
    left: 0; right: 0;
    z-index: 10;
}
.landing-page .tnl { color: rgba(255,255,255,0.75); }
.landing-page .tnl:hover { color: #ffe200; background: rgba(255,255,255,0.08); }

.brand {
    font-size: 22px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    background: conic-gradient(from 180deg, var(--lime), var(--cyan), var(--violet), var(--pink), var(--lime));
    box-shadow: 0 0 24px rgba(212, 255, 58, 0.35);
}
/* When a custom logo image is present, hide the decorative gradient square */
.brand--has-logo::before {
    display: none;
}
/* .brand-sub and .brand-name colors are now driven by inline styles from the CMS.
   We only reset browser overrides so the inline color takes full effect. */
.brand span,
.brand-sub {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}
.brand-name {
    -webkit-text-fill-color: unset;
}

.topbar nav { display: flex; gap: 6px; align-items: center; }
.topbar nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
}
.topbar nav a:hover { color: #ffe200; background: rgba(255,255,255,0.05); }

main { display: block; }

/* HERO */
.hero { margin-bottom: 40px; }
.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.02;
    margin: 0 0 16px;
    background: linear-gradient(180deg, #ffffff 0%, #b8b8d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 50%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: italic;
}
.hero p {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 17px;
    max-width: 620px;
}
.hero .actions { margin-top: 18px; }

/* Eyebrow / pill */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(212, 255, 58, 0.12);
    border: 1px solid rgba(212, 255, 58, 0.3);
    color: var(--lime);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px var(--lime);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.back-link:hover { color: #ffe200; border-color: var(--border-strong); }

/* CARD */
.card {
    background: var(--panel);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 30px 60px -20px rgba(0,0,0,0.5);
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-strong); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    gap: 16px;
}
.card-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

/* FORM */
.row {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.row label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.row small {
    color: var(--muted);
    margin-top: 6px;
    font-size: 12px;
}

input[type="text"], input[type="file"], input[type="email"], input[type="password"],
select, textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 13px 16px;
    font: inherit;
    font-size: 15px;
    width: 100%;
    transition: all 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--lime);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.12);
}
textarea {
    resize: vertical;
    min-height: 160px;
    font-family: inherit;
    line-height: 1.6;
}
input[type="file"] {
    padding: 11px 14px;
    cursor: pointer;
}
input[type="file"]::file-selector-button {
    background: rgba(212, 255, 58, 0.1);
    border: 1px solid rgba(212, 255, 58, 0.3);
    color: var(--lime);
    padding: 6px 14px;
    margin-right: 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
input[type="file"]::file-selector-button:hover {
    background: rgba(212, 255, 58, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238a8aa0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--lime) 0%, #b8ff00 100%);
    color: #0a0a0f;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    box-shadow:
        0 4px 0 rgba(0,0,0,0.4),
        0 12px 32px -6px rgba(212, 255, 58, 0.5);
    letter-spacing: -0.01em;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 rgba(0,0,0,0.4),
        0 18px 40px -6px rgba(212, 255, 58, 0.6);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.btn-primary::after {
    content: "→";
    font-weight: 800;
    transition: transform 0.15s;
}
.btn-primary:hover::after { transform: translateX(3px); }

.btn-danger {
    background: rgba(255, 92, 122, 0.12);
    color: #ff5c7a;
    border: 1px solid rgba(255, 92, 122, 0.4);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.btn-danger:hover { background: rgba(255, 92, 122, 0.25); }
.btn-danger:active { transform: translateY(1px); }

/* MUTED + WARN */
.muted { color: var(--muted); font-size: 13px; }
.label-hint { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.warning {
    background: linear-gradient(135deg, rgba(255, 200, 58, 0.1), rgba(255, 92, 122, 0.08));
    border: 1px solid rgba(255, 200, 58, 0.3);
    color: var(--warn);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* FLASH */
.flash-stack {
    max-width: 980px;
    margin: 20px auto 0;
    padding: 0 28px;
}
.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px);
}
.flash-error {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.3);
    color: var(--error);
}
.flash-success {
    background: rgba(91, 224, 160, 0.1);
    border: 1px solid rgba(91, 224, 160, 0.3);
    color: var(--ok);
}

/* PROJECTS */
.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li {
    border-bottom: 1px solid var(--border);
}
.project-list li:last-child { border-bottom: 0; }
.project-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -8px;
}
.project-list a:hover {
    background: rgba(255,255,255,0.03);
    transform: translateX(4px);
}
.project-list strong {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}
.project-list .meta {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}
.empty-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* KV */
.kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px 24px;
    margin: 0;
}
.kv dt {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    padding-top: 2px;
}
.kv dd { margin: 0; font-size: 15px; }

/* SHOTS */
.shot-list { list-style: none; padding: 0; margin: 0; }
.shot {
    padding: 24px;
    margin-bottom: 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.shot:hover {
    border-color: var(--border-strong);
    background: rgba(0,0,0,0.35);
}

.shot-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.shot-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, var(--lime), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.shot-time {
    color: var(--muted);
    font-size: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: rgba(255,255,255,0.04);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}
.shot-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-weight: 700;
}
.shot-tag:nth-child(even) {
    background: rgba(255, 62, 165, 0.12);
    color: #ff8ec4;
    border-color: rgba(255, 62, 165, 0.25);
}
.shot-meaning {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.55;
}
.shot-prompt {
    color: var(--muted);
    font-size: 13px;
    background: rgba(0,0,0,0.4);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    line-height: 1.6;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin-top: 8px;
}
details summary {
    cursor: pointer;
    color: var(--cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 10px 0 4px;
    user-select: none;
}
details summary:hover { color: #ffe200; }
.shot-style {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: 12px;
}
.shot-style strong {
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    margin-right: 4px;
}

/* ── SITE FOOTER ────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 40px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
}
.footer-brand-link { text-decoration: none; }
.footer-tagline {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 16px 0 0;
    max-width: 280px;
}
.footer-links {
    display: flex;
    gap: 56px;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 4px;
}
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.footer-col a:hover { color: #ffe200; }
.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
@media (max-width: 680px) {
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 28px; }
    .footer-links { gap: 32px; }
    .footer-bottom { padding: 16px 24px; }
}

/* ── SITE MAIN (default, authenticated) ─────────────────────────── */
.site-main {
    max-width: 980px;
    margin: 56px auto 80px;
    padding: 0 28px;
}

/* ROW GRID for paired form fields */
.row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* STATUS PILL (live) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
}
.status-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--muted);
}
.status-pill.status-queued .dot,
.status-pill.status-running .dot {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 1.6s ease-in-out infinite;
}
.status-pill.status-running { color: var(--cyan); border-color: rgba(56,225,255,0.3); background: rgba(56,225,255,0.08); }
.status-pill.status-complete { color: var(--ok); border-color: rgba(91,224,160,0.3); background: rgba(91,224,160,0.08); }
.status-pill.status-complete .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-pill.status-failed { color: var(--error); border-color: rgba(255,92,122,0.3); background: rgba(255,92,122,0.08); }
.status-pill.status-failed .dot { background: var(--error); box-shadow: 0 0 8px var(--error); }

/* REFERENCE GRID */
.ref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ref-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ref-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.ref-frame {
    aspect-ratio: 16 / 11;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.ref-placeholder {
    color: var(--muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.ref-placeholder.spin { color: var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
.ref-placeholder.failed { color: var(--error); }
.ref-meta { color: var(--muted); font-size: 12px; min-height: 16px; }

/* GHOST BUTTON */
.btn-ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    font-family: inherit;
    transition: all 0.15s;
}
.btn-ghost:hover { border-color: #ffe200; color: #ffe200; }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* SHOT BODY (image + text) */
.shot-body {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 18px;
    align-items: start;
}
.shot-still {
    aspect-ratio: 16 / 9;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shot-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-info { display: flex; flex-direction: column; gap: 8px; }

.shot-asset-status {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
}
.shot-asset-status.status-rendering { color: var(--cyan); border-color: rgba(56,225,255,0.3); background: rgba(56,225,255,0.08); }
.shot-asset-status.status-ready { color: var(--ok); border-color: rgba(91,224,160,0.3); background: rgba(91,224,160,0.08); }
.shot-asset-status.status-failed { color: var(--error); border-color: rgba(255,92,122,0.3); background: rgba(255,92,122,0.08); }

@media (max-width: 720px) {
    .row-grid, .ref-grid { grid-template-columns: 1fr; }
    .shot-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    main { margin: 32px auto 60px; padding: 0 20px; }
    .hero h1 { font-size: 40px; }
    .card { padding: 22px; }
    .kv { grid-template-columns: 1fr; gap: 4px 0; }
    .kv dt { padding-top: 12px; }
}

/* --- auth ----------------------------------------------------------- */
.auth-card { max-width: 440px; margin: 64px auto; }
.auth-card h1 { margin: 0 0 8px; }
.nav-user {
  color: var(--muted, #9aa0a6);
  font-size: 13px;
  margin-left: 12px;
}
.nav-form { display: inline; margin: 0; }
.nav-link-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
}

/* --- entity cards -------------------------------------------------------- */
.entity-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .entity-cols { grid-template-columns: 1fr; } }

.entity-group-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #9aa0a6);
  margin: 0 0 12px;
}

.entity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-card {
  background: var(--surface-alt, rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.entity-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entity-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 4px;
}

.entity-badge-char { background: rgba(139,92,246,.25); color: #c4b5fd; }
.entity-badge-loc  { background: rgba(16,185,129,.2);  color: #6ee7b7; }

.entity-sub {
  font-size: 12px;
  color: var(--muted, #9aa0a6);
  margin-top: 4px;
}

.entity-notes {
  font-size: 12px;
  color: var(--muted, #9aa0a6);
  margin-top: 4px;
  font-style: italic;
}

/* ───────────────────────────────────────────────────────────────────────
   3.0 WORKSPACE — sticky header + stage rail + 7-panel layout
   ─────────────────────────────────────────────────────────────────────── */

.workspace-header {
    position: sticky;
    top: 70px;
    z-index: 30;
    margin-bottom: 28px;
    padding: 22px 26px 18px;
    background: linear-gradient(180deg, rgba(20,20,30,0.92) 0%, rgba(15,15,22,0.78) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 36px rgba(0,0,0,0.35);
}

.ws-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ws-crumb .back-link {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
}
.ws-crumb .back-link:hover { text-decoration: underline; }
.ws-sep { opacity: 0.4; }
.ws-genre { color: var(--text); font-weight: 600; }

.ws-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ws-title {
    margin: 0 0 4px;
    font-size: 32px;
    line-height: 1.1;
}
.ws-meta { margin: 0; font-size: 14px; }
.ws-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Stage rail — 4 numbered steps with arrow connectors */
.stage-rail {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: 14px;
    padding: 12px;
    background: rgba(0,0,0,0.32);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow-x: auto;
}
.stage-step {
    flex: 1 1 0;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.stage-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255,255,255,0.06);
    color: var(--muted);
    flex-shrink: 0;
}
.stage-info { display: flex; flex-direction: column; min-width: 0; }
.stage-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
}
.stage-status {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1px;
}
.stage-step.pending { opacity: 0.55; }
.stage-step.active {
    background: linear-gradient(135deg, rgba(212,255,58,0.12), rgba(56,225,255,0.08));
    border-color: rgba(212,255,58,0.4);
}
.stage-step.active .stage-num {
    background: var(--lime);
    color: #0a0a0f;
    box-shadow: 0 0 16px rgba(212,255,58,0.45);
    animation: stage-pulse 1.6s ease-in-out infinite;
}
.stage-step.active .stage-status { color: var(--lime); font-weight: 600; }
.stage-step.done {
    background: rgba(91,224,160,0.06);
    border-color: rgba(91,224,160,0.25);
}
.stage-step.done .stage-num {
    background: var(--ok);
    color: #0a0a0f;
}
.stage-step.done .stage-status { color: var(--ok); }
.stage-step.failed {
    background: rgba(255,92,122,0.08);
    border-color: rgba(255,92,122,0.4);
}
.stage-step.failed .stage-num {
    background: var(--error);
    color: var(--text);
}
.stage-arrow {
    align-self: center;
    color: rgba(255,255,255,0.18);
    font-size: 18px;
    user-select: none;
}
@keyframes stage-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(212,255,58,0.35); }
    50% { box-shadow: 0 0 24px rgba(212,255,58,0.65); }
}

.next-step {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(56,225,255,0.06);
    border-left: 3px solid var(--cyan);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
}

/* Numbered panel headers */
.panel { margin-bottom: 22px; }
.panel-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.panel-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--lime);
    background: rgba(212,255,58,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}
.panel-head h2 { margin: 0; font-size: 22px; }
.panel-sub { font-size: 13px; }

/* Brief panel — chips for motifs */
.brief-kv dd .chip {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    background: rgba(139,92,246,0.14);
    border: 1px solid rgba(139,92,246,0.32);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--text);
}

/* Scenes panel */
.scene-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.scene-card {
    padding: 14px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.scene-card:hover {
    border-color: rgba(212,255,58,0.32);
    transform: translateY(-1px);
}
.scene-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.scene-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--lime);
    font-size: 14px;
}
.scene-mode {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--cyan);
    letter-spacing: 0.06em;
}
.scene-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}
.scene-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pill {
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
}
.pill-char {
    background: rgba(255,62,165,0.1);
    border-color: rgba(255,62,165,0.3);
    color: var(--pink);
}
.pill-loc {
    background: rgba(56,225,255,0.1);
    border-color: rgba(56,225,255,0.3);
    color: var(--cyan);
}
.pill-count {
    background: rgba(255,255,255,0.05);
    color: var(--muted);
}
.scene-meaning {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Scene thumbnail strip */
.scene-thumbs {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.scene-thumbs::-webkit-scrollbar { height: 3px; }
.scene-thumbs::-webkit-scrollbar-track { background: transparent; }
.scene-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.scene-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 34px;
    padding: 0;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
    font: inherit;
    color: inherit;
}
.scene-thumb:hover,
.scene-thumb:focus-visible { border-color: var(--lime); transform: scale(1.05); outline: none; }
.scene-thumb--active { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-thumb-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* Prompts panel */
.prompt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prompt-card {
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.prompt-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--lime);
    font-size: 13px;
    margin-bottom: 8px;
}
.prompt-section {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.prompt-section:first-of-type { border-top: 0; }
.prompt-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--violet);
    letter-spacing: 0.06em;
    align-self: start;
    padding-top: 2px;
}
.prompt-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
    word-break: break-word;
}

/* Production panel */
.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.production-step {
    padding: 18px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.production-step.active  { border-color: var(--accent);        background: rgba(125,200,255,0.08); }
.production-step.done    { border-color: rgba(80,220,140,0.6); background: rgba(80,220,140,0.08); }
.production-step.failed  { border-color: rgba(255,90,90,0.7);  background: rgba(255,90,90,0.08);  }
.prod-foot {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
}
.pill-temp.temp-hot  { background: rgba(255,120,90,0.18);  color: #ffb29a; }
.pill-temp.temp-mid  { background: rgba(255,200,90,0.18);  color: #ffd58a; }
.pill-temp.temp-cool { background: rgba(120,180,255,0.18); color: #a8caff; }
.scene-lyric-label {
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.scene-lyric {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    font-style: italic;
}
.cost-estimate {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    background: rgba(255,255,255,0.02);
}
.cost-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.cost-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}
.cost-note {
    font-size: 11px;
    flex-basis: 100%;
}
.entity-foot {
    margin-top: 10px;
    font-size: 11px;
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}
.shot-video {
    display: block;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    background: #000;
    border: 1px solid var(--border);
}
.btn-secondary {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
    background: var(--accent);
    color: #000;
}
.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.prod-icon {
    font-size: 24px;
    color: var(--cyan);
    margin-bottom: 8px;
    line-height: 1;
}
.prod-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.prod-detail {
    font-size: 12px;
    color: var(--muted);
}

/* Auth hero (login/signup landing) */
.auth-hero {
    text-align: center;
    margin: 40px auto 24px;
    max-width: 640px;
}
.auth-hero .eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 4px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--lime);
    background: rgba(212,255,58,0.06);
    margin-bottom: 20px;
}
.auth-headline {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.05;
}
.auth-headline .accent {
    background: linear-gradient(135deg, var(--lime), var(--cyan), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-tagline {
    color: var(--muted);
    font-size: 16px;
    margin: 0 auto;
    max-width: 480px;
}
.auth-card {
    max-width: 440px;
    margin: 0 auto 60px;
}
.auth-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

/* Workspace responsive tweaks */
@media (max-width: 720px) {
    .workspace-header { padding: 16px; top: 64px; }
    .ws-title { font-size: 26px; }
    .stage-rail { padding: 8px; }
    .stage-step { padding: 8px 10px; min-width: 110px; }
    .stage-arrow { display: none; }
    .prompt-section { grid-template-columns: 1fr; gap: 4px; }
    .auth-headline { font-size: 32px; }
}

/* ── Workspace TOC sidebar ─────────────────────────────────────────────── */
.ws-toc {
    display: none;
}

@media (min-width: 1100px) {
    .ws-toc {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: fixed;
        top: 50%;
        left: max(12px, calc(50vw - 530px));
        transform: translateY(-50%);
        z-index: 40;
        background: rgba(15, 15, 22, 0.72);
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 10px 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

.ws-toc-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.ws-toc-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.ws-toc-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: inherit;
    opacity: 0.7;
    min-width: 20px;
    transition: opacity 0.15s;
}

.ws-toc-name {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.ws-toc-item.ws-toc-active {
    color: var(--lime);
    background: rgba(212, 255, 58, 0.08);
}

.ws-toc-item.ws-toc-active .ws-toc-num {
    opacity: 1;
}

.ws-toc-item.ws-toc-active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 22px;
    background: var(--lime);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(212, 255, 58, 0.5);
}

/* ── Mobile TOC: floating button + bottom sheet ────────────────────────── */
.mob-toc-fab-wrap {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 200;
    align-items: center;
    gap: 8px;
}
.mob-toc-fab {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 15, 22, 0.88);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mob-toc-label {
    display: block;
    background: rgba(15, 15, 22, 0.88);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid var(--border);
    color: var(--text-muted, rgba(255,255,255,0.65));
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.08s ease, transform 0.11s ease;
    transform: translateY(0);
}
.mob-toc-label:empty {
    display: none;
}
.mob-toc-fab-wrap.is-open .mob-toc-label {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 360px) {
    .mob-toc-label {
        display: none;
    }
}
.mob-toc-fab:hover {
    background: rgba(30, 30, 42, 0.95);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
}
.mob-toc-fab.is-open {
    background: var(--lime);
    color: #0f0f16;
    border-color: var(--lime);
    box-shadow: 0 0 16px rgba(212, 255, 58, 0.4);
}

.mob-toc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: mob-toc-fade-in 0.2s ease-out;
}

.mob-toc-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 199;
    background: rgba(15, 15, 22, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 24px);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    pointer-events: none;
}
.mob-toc-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}
.mob-toc-sheet.is-dragging {
    transition: none;
}

@media (max-width: 1099px) {
    .mob-toc-backdrop.is-visible {
        display: block;
    }
}

.mob-toc-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.mob-toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.mob-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
}
.mob-toc-item:hover,
.mob-toc-item:active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}
.mob-toc-item.mob-toc-active {
    color: var(--lime);
    background: rgba(212, 255, 58, 0.08);
}

.mob-toc-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 0.7;
    min-width: 22px;
}
.mob-toc-active .mob-toc-num {
    opacity: 1;
}

.mob-toc-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 1099px) {
    .mob-toc-fab-wrap {
        display: flex;
    }
}

@keyframes mob-toc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scene thumbnail lightbox */
.scene-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.scene-lightbox[hidden] { display: none; }
.scene-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: zoom-out;
    animation: scene-lightbox-fade 0.15s ease-out;
}
.scene-lightbox-panel {
    position: relative;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-width: min(720px, 100%);
    width: 100%;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scene-lightbox-pop 0.15s ease-out;
}
@keyframes scene-lightbox-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scene-lightbox-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.scene-lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.scene-lightbox-close:hover,
.scene-lightbox-close:focus-visible {
    border-color: var(--lime);
    color: var(--lime);
    outline: none;
}
.scene-lightbox-image-wrap {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 70vh;
    overflow: hidden;
    touch-action: pan-y;
}
.scene-lightbox-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
@keyframes lightbox-slide-from-right {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes lightbox-slide-from-left {
    from { transform: translateX(-60px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes lightbox-img-open {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: none; }
}
@keyframes scene-lightbox-pop-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(6px) scale(0.97); }
}
@keyframes scene-lightbox-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
.scene-lightbox-image-wrap img.slide-from-right {
    animation: lightbox-slide-from-right 250ms ease-out both;
}
.scene-lightbox-image-wrap img.slide-from-left {
    animation: lightbox-slide-from-left 250ms ease-out both;
}
.scene-lightbox-image-wrap img.open-from-center {
    animation: lightbox-img-open 200ms ease-out both;
}
.scene-lightbox--closing .scene-lightbox-panel {
    animation: scene-lightbox-pop-out 180ms ease-in both;
    pointer-events: none;
}
.scene-lightbox--closing .scene-lightbox-backdrop {
    animation: scene-lightbox-fade-out 180ms ease-in both;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .scene-lightbox-backdrop,
    .scene-lightbox-panel,
    .scene-lightbox-image-wrap img.slide-from-right,
    .scene-lightbox-image-wrap img.slide-from-left,
    .scene-lightbox-image-wrap img.open-from-center,
    .scene-lightbox--closing .scene-lightbox-panel,
    .scene-lightbox--closing .scene-lightbox-backdrop {
        animation: none !important;
    }
}
.scene-lightbox-empty {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    padding: 40px 20px;
    text-align: center;
}
.scene-lightbox-meta {
    padding: 14px 18px 16px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}
.scene-lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.scene-lightbox-num {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}
.scene-lightbox-goto {
    font-size: 13px;
    color: var(--lime);
    text-decoration: none;
    white-space: nowrap;
}
.scene-lightbox-goto:hover { text-decoration: underline; }
.scene-lightbox-meaning {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}
body.scene-lightbox-open { overflow: hidden; }
.scene-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.scene-lightbox-prev { left: 10px; }
.scene-lightbox-next { right: 10px; }
.scene-lightbox-arrow:hover,
.scene-lightbox-arrow:focus-visible {
    border-color: var(--lime);
    color: var(--lime);
    background: rgba(0, 0, 0, 0.75);
    outline: none;
}
.scene-lightbox-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.scene-lightbox-handle { display: none; }

@media (max-width: 640px) {
    .scene-lightbox { padding: 0; align-items: flex-end; }
    .scene-lightbox-panel {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
        border-bottom: none;
        padding-top: 18px;
    }
    .scene-lightbox-image-wrap { max-height: 55vh; }
    .scene-lightbox-image-wrap img { max-height: 55vh; }
    .scene-lightbox-head { flex-wrap: wrap; }
    .scene-lightbox-handle {
        display: block;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.28);
        pointer-events: none;
    }
}

/* --- admin panel --- */
.admin-wrap { max-width: 1200px; margin: 32px auto; padding: 0 24px; }
.admin-head h1 { margin: 0 0 4px; font-family: 'Space Grotesk', sans-serif; font-size: 32px; }
.admin-head .muted { color: #888; margin: 0 0 24px; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.stat-card { background: #15151a; border: 1px solid #26262e; border-radius: 12px; padding: 14px 18px; min-width: 110px; }
.stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8a8a96; }
.stat-value { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; margin-top: 4px; }
.admin-wrap h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin: 28px 0 12px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #26262e; border-radius: 12px; background: #101015; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #1d1d24; }
.admin-table th { background: #16161c; font-weight: 600; color: #b8b8c4; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: #6cb3ff; text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #2a2a35; color: #ccc; }
.status-pill.status-ready, .status-pill.status-completed { background: #1d3a26; color: #6ee7a3; }
.status-pill.status-running, .status-pill.status-processing { background: #3a3522; color: #ffd47a; }
.status-pill.status-failed, .status-pill.status-error { background: #3a1d22; color: #ff8a96; }

/* --- admin actions --- */
.admin-actions { white-space: nowrap; }
.admin-actions .inline { display: inline-block; margin: 0 2px; }
.btn-mini { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 600;
    background: #22222a; color: #ccc; border: 1px solid #2e2e38; border-radius: 6px;
    cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.btn-mini:hover { background: #2c2c36; color: #ffe200; }
.btn-danger { background: #3a1d22; color: #ff8a96; border-color: #4a2830; }
.btn-danger:hover { background: #4a2830; color: #ffb0b8; }
.stat-card.ok { border-color: #1d3a26; }
.stat-card.ok .stat-value { color: #6ee7a3; }
.stat-card.bad { border-color: #3a1d22; }
.stat-card.bad .stat-value { color: #ff8a96; }
.stat-card.warn { border-color: #3a3018; }
.stat-card.warn .stat-value { color: #f5c842; }
.stat-card.mid { border-color: #1e3040; }
.stat-card.mid .stat-value { color: #60b8f5; }
.err-cell { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #ff8a96; max-width: 400px; overflow: hidden; text-overflow: ellipsis; }
.muted { color: #888; }

/* ── Admin: image mode controls ──────────────────────────────────────────── */
.admin-notice { padding: 10px 16px; border-radius: 8px; font-size: 13px;
    margin-bottom: 16px; border: 1px solid #3a3018; background: #1e1c0f; color: #f5c842; }
.admin-notice.warn { border-color: #3a3018; background: #1e1c0f; color: #f5c842; }
.admin-notice.info { border-color: #1e3040; background: #0e1c28; color: #60b8f5; }
.admin-notice.mid  { border-color: #1e3040; background: #0e1c28; color: #60b8f5; }
.image-mode-form { background: #111118; border: 1px solid #26262e;
    border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; }
.mode-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.mode-row:last-of-type { margin-bottom: 24px; }
.mode-label { font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #888; }
.mode-options { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-radio { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    border-radius: 8px; border: 1px solid #26262e; background: #17171e;
    font-size: 13px; color: #ccc; cursor: pointer; transition: border-color .15s, background .15s; }
.mode-radio:has(input:checked) { border-color: #5a6fd6; background: #1a1c2e; color: #fff; }
.mode-radio input[type=radio] { accent-color: #5a6fd6; }
/* tier label pills inside each radio option */
.mode-tier { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.mode-tier.quality { background: #1d3a26; color: #6ee7a3; }
.mode-tier.mid     { background: #1e3040; color: #60b8f5; }
.mode-tier.cheap   { background: #3a3018; color: #f5c842; }

/* ── STAGED PIPELINE TEMPLATES ───────────────────────────────────────────── */

/* ── STUDIO LAYOUT (sidebar + content grid) ── */
.stage-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 64px);
    max-width: none;
    margin: 0;
    padding: 0;
    align-items: start;
}
.stage-wrap > *:not(.studio-sidebar) { grid-column: 2; }

.studio-sidebar {
    grid-column: 1;
    grid-row: 1 / 999;
    background: #0c0c12;
    border-right: 1px solid rgba(255,255,255,0.06);
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}
.ss-top {
    padding: 18px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ss-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .15s;
}
.ss-back:hover { color: #ffe200; }
.ss-project-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.ss-review-note { font-size: 11px; color: #ffb04a; margin-top: 6px; }
.ss-review-link { color: #ffb04a; text-decoration: underline; }

.ss-nav {
    flex: 1;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ss-nav-item { display: block; }
.ss-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #666;
    text-decoration: none;
    cursor: default;
    transition: background .15s, color .15s;
    position: relative;
}
a.ss-nav-link { cursor: pointer; color: #aaa; }
a.ss-nav-link:hover { background: rgba(255,255,255,0.05); color: #ffe200; }
.ss-nav-item.ss-done a.ss-nav-link { color: #8fc; }
.ss-nav-item.ss-done a.ss-nav-link:hover { background: rgba(100,255,160,0.07); }
.ss-nav-item.ss-active .ss-nav-link,
.ss-link-active {
    background: rgba(212,255,58,0.10) !important;
    color: #d4ff3a !important;
    cursor: default;
}
.ss-icon { font-size: 14px; flex-shrink: 0; }
.ss-label { flex: 1; font-weight: 500; }
.ss-check { font-size: 10px; color: #5da; margin-left: auto; }
.ss-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4ff3a;
    flex-shrink: 0;
}

.ss-bottom {
    padding: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.ss-error-badge {
    background: rgba(255,80,80,0.12);
    border: 1px solid rgba(255,80,80,0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    color: #ff9090;
    margin-bottom: 8px;
}
.ss-error-detail summary { cursor: pointer; font-size: 11px; color: #ff9090; }
.ss-error-detail pre { font-size: 10px; white-space: pre-wrap; margin-top: 6px; color: #ff9090; }
.ss-admin-badge {
    background: rgba(255,140,80,0.10);
    border: 1px solid rgba(255,140,80,0.25);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    color: #ffb088;
}
.ss-admin-link { color: #ffb088; text-decoration: underline; display: block; margin-top: 4px; }

@media (max-width: 860px) {
    .stage-wrap {
        grid-template-columns: 180px 1fr;
    }
    .studio-sidebar { font-size: 12px; }
}
@media (max-width: 640px) {
    .stage-wrap {
        grid-template-columns: 1fr;
    }
    .studio-sidebar {
        grid-row: auto;
        position: static;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .stage-wrap > *:not(.studio-sidebar) { grid-column: 1; }
    .ss-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 8px; gap: 4px; }
    .ss-nav-item { flex-shrink: 0; }
    .ss-label { display: none; }
    .ss-nav-link { padding: 6px 8px; }
}

/* legacy wizard stubs (kept so old refs don't break) */
.stage-wizard { display: none; }
.stage-wizard-steps { display: none; }
.swiz-step { display: none; }
.swiz-sep { display: none; }

/* stage card */
.stage-card { background: #101015; border: 1px solid #22222c; border-radius: 18px;
    padding: 36px 40px; }
.stage-wrap > .stage-card { margin: 24px 24px 40px; }
@media(max-width:640px){ .stage-card { padding: 24px 18px; } }
@media(max-width:640px){ .stage-wrap > .stage-card { margin: 16px; } }

.stage-header { margin-bottom: 28px; }
.stage-badge { display: inline-block; padding: 3px 14px; border-radius: 999px;
    background: #1e1e30; border: 1px solid #3535aa; color: #a8a8ff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 12px; }
.stage-header h1 { margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 30px; }
.stage-sub { color: #999; margin: 0; font-size: 14px; line-height: 1.6; }

/* spinner card */
.stage-spinner-card { background: #101015; border: 1px solid #22222c; border-radius: 18px;
    padding: 60px 40px; text-align: center; max-width: 540px; margin: 60px auto; }
.stage-spinner-card h2 { margin: 0 0 24px; font-size: 20px; color: #ddd; }
.stage-spinner { width: 48px; height: 48px; border: 3px solid #2a2a3a;
    border-top-color: #6666ee; border-radius: 50%; animation: spin .8s linear infinite;
    margin: 0 auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-hint { color: #666; font-size: 13px; }
.stage-error-block { text-align: left; }
.stage-error-title { color: #ff8a96; font-weight: 700; margin: 0 0 8px; }
.stage-error-pre { background: #1a1010; border: 1px solid #3a1d22; border-radius: 8px;
    padding: 14px; font-size: 12px; white-space: pre-wrap; word-break: break-all;
    color: #ffaaaa; overflow: auto; max-height: 280px; }

/* action buttons */
.stage-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid #1e1e28; }
.btn-stage-primary { padding: 12px 28px; background: #4444cc; color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-stage-primary:hover { background: #5555dd; }
.btn-stage { padding: 10px 20px; background: #1e1e2a; color: #bbb; border: 1px solid #2e2e40;
    border-radius: 10px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-stage:hover { background: #28283a; color: #ffe200; }
.btn-stage-danger { padding: 10px 20px; background: rgba(255,80,96,0.1); color: #ff8a96;
    border: 1px solid rgba(255,100,100,0.35); border-radius: 10px; font-size: 14px; cursor: pointer; }
.btn-stage-danger:hover { background: rgba(255,80,96,0.22); color: #ffb0b8; border-color: rgba(255,100,100,0.6); }

/* audit grid (stage 0) */
.audit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.audit-cell { background: #15151c; border: 1px solid #22222e; border-radius: 12px; padding: 14px 16px; }
.audit-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #777; margin-bottom: 6px; }
.audit-val { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.audit-section { margin-top: 20px; }
.audit-section h3 { font-size: 14px; color: #aaa; margin: 0 0 10px; }
.audit-transcript { background: #13131a; border: 1px solid #22222e; border-radius: 10px;
    padding: 16px; font-size: 13px; white-space: pre-wrap; line-height: 1.7; color: #ccc;
    max-height: 260px; overflow-y: auto; }

/* context packet (stage 1) */
.ctx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ctx-block { background: #13131c; border: 1px solid #22222e; border-radius: 12px; padding: 18px 20px; }
.ctx-full { grid-column: 1 / -1; }
.ctx-block h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
    letter-spacing: .08em; color: #7777aa; }
.ctx-kv { display: flex; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.ctx-k { color: #777; min-width: 140px; }
.ctx-v { color: #ddd; }
.ctx-tag { display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: #202030; border: 1px solid #303050; color: #aaa; font-size: 12px; margin: 2px; }
.ctx-flag { color: #ffcc88; font-size: 13px; margin-bottom: 4px; }
.ctx-line-preview { margin-bottom: 24px; }
.ctx-line-preview h3 { font-size: 13px; color: #aaa; margin: 0 0 10px; }
.ctx-lm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ctx-lm-table th, .ctx-lm-table td { padding: 8px 10px; border-bottom: 1px solid #1c1c28; text-align: left; }
.ctx-lm-table th { color: #777; font-weight: 600; text-transform: uppercase; font-size: 11px; }
.ctx-override-form h3 { font-size: 14px; color: #aaa; margin: 0 0 14px; }
.ctx-override-hint { font-weight: 400; color: #666; font-size: 12px; }
.ctx-override-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ctx-override-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #aaa; }
.ctx-override-grid input, .ctx-override-grid select { background: #15151e; border: 1px solid #2a2a3e;
    border-radius: 8px; padding: 8px 12px; color: #eee; font-size: 13px; }
.ctx-override-grid input::placeholder { color: #555; }

/* storyboard table */
.sb-table-wrap { overflow-x: auto; border: 1px solid #1e1e28; border-radius: 12px;
    background: #0d0d12; margin-bottom: 24px; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sb-table th, .sb-table td { padding: 9px 12px; border-bottom: 1px solid #1a1a24; text-align: left; }
.sb-table th { background: #14141c; color: #888; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.sb-table tr:last-child td { border-bottom: none; }
.sb-meaning { color: #bbb; max-width: 220px; }
.sb-prompt { color: #888; max-width: 240px; font-size: 11px; font-family: 'JetBrains Mono', monospace; }

/* --- Storyboard card list (replaces dense table) --- */
.sb-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.sb-card { background: #14141c; border: 1px solid #1e1e28; border-radius: 12px;
           padding: 16px 18px; transition: border-color .15s, background .15s; }
.sb-card:hover { border-color: #2a2a38; background: #16161f; }
.sb-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sb-card-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
               color: #d4f47c; background: rgba(212,244,124,.08); padding: 4px 10px;
               border-radius: 6px; min-width: 48px; text-align: center; }
.sb-card-time { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: #cfd6dd; flex: 1; }
.sb-card-time strong { color: #fff; font-variant-numeric: tabular-nums; }
.sb-card-time .muted { color: #6b7280; font-size: 12px; font-variant-numeric: tabular-nums; }
.sb-card-beat { color: #8a93a0 !important; }
.sb-card-int { display: flex; align-items: center; gap: 8px; min-width: 130px; font-size: 12px;
               font-variant-numeric: tabular-nums; color: #cfd6dd; }
.sb-int-bar { width: 80px; height: 6px; background: #1e1e28; border-radius: 3px; overflow: hidden; }
.sb-int-fill { height: 100%; background: linear-gradient(90deg, #4a90e2, #d4f47c); border-radius: 3px; }
.sb-card-meaning { color: #e6e8ec; font-size: 14px; line-height: 1.55;
                   padding: 8px 12px; background: rgba(255,255,255,.02);
                   border-left: 2px solid rgba(212,244,124,.35); border-radius: 0 6px 6px 0;
                   margin-bottom: 10px; }
.sb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sb-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
          color: #cfd6dd; background: #1a1a24; border: 1px solid #232330;
          padding: 3px 9px; border-radius: 999px; line-height: 1.4; }
.sb-tag-k { color: #6b7280; text-transform: uppercase; font-size: 9px; letter-spacing: .06em; font-weight: 600; }
.sb-tag-repeat { background: rgba(255,180,80,.10); border-color: rgba(255,180,80,.30); color: #ffc88a; }
.sb-card-details { margin-top: 12px; border-top: 1px solid #1e1e28; padding-top: 10px; }
.sb-card-details summary { cursor: pointer; color: #8a93a0; font-size: 12px;
                            list-style: none; user-select: none; }
.sb-card-details summary::-webkit-details-marker { display: none; }
.sb-card-details summary::before { content: '▸ '; color: #6b7280; }
.sb-card-details[open] summary::before { content: '▾ '; }
.sb-card-details summary:hover { color: #ffe200; }
.sb-detail-block { margin-top: 10px; }
.sb-detail-label { color: #6b7280; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
                   font-weight: 600; margin-bottom: 4px; }
.sb-detail-prompt { color: #b8c0c8; font-size: 12px; line-height: 1.6;
                    font-family: 'JetBrains Mono', monospace; background: #0e0e16;
                    padding: 8px 10px; border-radius: 6px; border: 1px solid #1a1a24; }
.sb-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sb-kv { display: inline-flex; align-items: baseline; gap: 6px; font-size: 11px; color: #cfd6dd;
         background: #0e0e16; border: 1px solid #1a1a24; padding: 3px 8px; border-radius: 5px; }
.sb-kv b { color: #6b7280; font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.sb-card-cues { margin: 6px 0 10px; display: flex; flex-direction: column; gap: 5px; }
.sb-cue-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; }
.sb-cue-label { flex-shrink: 0; min-width: 72px; color: #6b7280; font-size: 10px;
                text-transform: uppercase; letter-spacing: .07em; font-weight: 600;
                padding-top: 2px; }
.sb-cue-value { color: #c5cdd6; line-height: 1.5; }
.sb-cue-motion { align-items: flex-start; }
.sb-motion-edit { display: inline-flex; flex-direction: column; gap: 4px; flex: 1; }
.sb-motion-display { color: #c5cdd6; line-height: 1.5; }
.sb-motion-btn-edit { background: none; border: none; cursor: pointer; color: #6b7280;
                      font-size: 12px; padding: 0 0 0 6px; vertical-align: middle;
                      line-height: 1; }
.sb-motion-btn-edit:hover { color: #ffe200; }
.sb-motion-edit-area { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.sb-motion-textarea { width: 100%; background: #0e0e16; color: #d4d8de;
                      border: 1px solid #2e2e3e; border-radius: 6px; padding: 6px 8px;
                      font-size: 12px; font-family: inherit; line-height: 1.5;
                      resize: vertical; min-height: 48px; }
.sb-motion-textarea:focus { outline: none; border-color: #4a7c3f; }
.sb-motion-actions { display: flex; gap: 6px; align-items: center; }
.sb-motion-status { font-size: 11px; color: #6b7280; }
.sb-motion-status.ok { color: #6ee7a3; }
.sb-motion-status.err { color: #f87171; }
.btn-xs { font-size: 11px; padding: 2px 10px; border-radius: 5px; cursor: pointer;
          border: 1px solid #2e2e3e; background: #1c1c28; color: #d4d8de; }
.btn-xs:hover { background: #252530; border-color: #3a3a4e; }
.btn-xs-muted { background: transparent; color: #6b7280; }
.btn-xs-muted:hover { background: #1e1e2c; color: #ffe200; }
.mode-pill { display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; background: #202028; color: #aaa; }
.mode-pill.mode-face, .mode-pill.mode-body { background: #1d2d3a; color: #88c8ff; }
.mode-pill.mode-environment { background: #1d3228; color: #6ee7a3; }
.ref-upload-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.ref-upload-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #aaa; }
.ref-upload-label input[type=file] { font-size: 12px; color: #888; }

/* stills grid */
.stills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px; margin-bottom: 24px; }
.still-card { background: #13131c; border: 1px solid #22222e; border-radius: 12px; overflow: hidden; }
.still-img-wrap { aspect-ratio: 16/9; background: #0d0d14; overflow: hidden; }
.still-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.still-placeholder { width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: #555; font-size: 12px; aspect-ratio: 16/9; }
.still-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.still-num { font-weight: 700; font-size: 12px; }
.still-time { color: #777; font-size: 11px; }
.still-err { color: #ff8a96; font-size: 11px; }
.ref-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ref-mini { display: flex; flex-direction: column; gap: 6px; }
.ref-mini-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .06em; }
.ref-mini img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px;
    border: 1px solid #2a2a3a; }

/* videos grid */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 24px; }
.vid-card { background: #13131c; border: 1px solid #22222e; border-radius: 12px; overflow: hidden; }
.vid-media-wrap { aspect-ratio: 16/9; background: #0a0a10; overflow: hidden; }
.vid-player { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-still { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .6; }
.vid-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.assembly-note { background: #1a1a28; border: 1px solid #2e2e50; border-radius: 10px;
    padding: 14px 18px; font-size: 13px; color: #aaa; }

/* ======================== TOPBAR (SaaS navbar) ======================== */
.topbar {
    height: 64px;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-main {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    gap: 24px;
}
body.is-admin .topbar { border-bottom: 1px solid rgba(255,140,80,.35); }

/* ── top-level nav links ── */
.tnl-nav { display: flex; align-items: center; gap: 4px; }
.tnl {
    padding: 6px 12px;
    border-radius: 8px;
    color: #8898a8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.tnl:hover { color: #ffe200; background: rgba(255,255,255,0.05); }
.tnl-active { color: #d4ff3a !important; background: rgba(212,255,58,0.08) !important; }

/* ── right-side action area ── */
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.topbar-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #d4ff3a;
    color: #0a0a0a !important;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, box-shadow .15s, transform .1s;
}
.topbar-new-btn:hover,
.topbar-new-btn:focus {
    background: #38e1ff !important;
    color: #0a0a0f !important;
    box-shadow: 0 0 16px rgba(56,225,255,0.35);
    transform: translateY(-1px);
}

.topbar-signin-btn {
    padding: 7px 14px;
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
.topbar-signin-btn:hover { color: #ffe200; }
.topbar-signup-btn {
    padding: 7px 16px;
    border-radius: 8px;
    background: #d4ff3a;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.topbar-signup-btn:hover { background: #e0ff5a; }

/* ── user avatar / dropdown ── */
.ta-user-wrap { position: relative; }
.ta-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    color: #e0e8f0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.ta-user-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.ta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4ff3a, #38e1ff);
    color: #0a0a0f;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ta-username { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-chevron { color: #666; font-size: 11px; }

.ta-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #15151e;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 200;
}
.ta-dropdown.ta-open { display: block; }

.ta-dropdown-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ta-dh-name { font-weight: 700; color: #e8edf2; font-size: 14px; }
.ta-dh-email { font-size: 12px; color: #7a8898; margin-top: 2px; }
.ta-dh-plan { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.ta-plan-pro { background: rgba(212,255,58,0.15); color: #d4ff3a; }
.ta-plan-studio { background: rgba(56,225,255,0.15); color: #38e1ff; }

.ta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    color: #b0bbc8;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background .12s, color .12s;
}
.ta-item:hover { background: rgba(255,255,255,0.05); color: #ffe200; }
.ta-item-admin { color: #ffb088; }
.ta-item-admin:hover { background: rgba(255,140,80,0.08); color: #ffc8a8; }
.ta-item-signout { color: #ff8a96; }
.ta-item-signout:hover { background: rgba(255,80,96,0.08); color: #ffaab8; }
.ta-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }

/* ── mobile hamburger ── */
.topbar-mobile-btn {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #ccc;
    font-size: 18px;
    padding: 5px 10px;
    cursor: pointer;
    line-height: 1;
}
.topbar-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(10,10,15,0.98);
}
.topbar-mobile.mob-open { display: flex; }
.mob-link {
    display: block;
    padding: 10px 8px;
    color: #b0bbc8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: color .12s;
}
.mob-link:hover { color: #ffe200; background: rgba(255,255,255,0.04); }
.mob-link-cta { color: #d4ff3a; font-weight: 700; }
.mob-link-cta:hover { color: #ffe200; }
.mob-link-signout { color: #ff8a96; }
.mob-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 0; }

/* ── legacy .nav-link compat ── */
.nav-link { padding: 6px 12px; border-radius: 8px; color: #cfd6dd; text-decoration: none;
    font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #ffe200; }
.nav-link.active { background: rgba(180,240,100,.12); color: #d4f47c; }
.nav-link-btn { background: none; border: none; padding: 6px 12px; border-radius: 8px; color: #cfd6dd;
    font-size: 14px; font-weight: 500; cursor: pointer; }
.nav-link-btn:hover { background: rgba(255,255,255,.06); color: #ffe200; }
.nav-admin-pill { display: inline-block; background: #ff8c50; color: #0a0a0a; font-size: 9px;
    font-weight: 700; padding: 2px 5px; border-radius: 3px; letter-spacing: .5px; margin-left: 4px; }
.nav-plan-pill { display: inline-block; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; margin-left: 4px; }
.nav-plan-pro { background: rgba(212,255,58,.15); color: #d4ff3a; }
.nav-plan-studio { background: rgba(56,225,255,.15); color: #38e1ff; }

@media (max-width: 768px) {
    .tnl-nav { display: none; }
    .topbar-new-btn { display: none; }
    .topbar-mobile-btn { display: flex; align-items: center; }
}

/* ======================== projects page ======================== */
.proj-page { max-width: 1100px; margin: 32px auto; padding: 0 24px; }
.proj-page-header { display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 24px; gap: 24px; flex-wrap: wrap; }
.proj-page-header h1 { margin: 0 0 4px 0; font-size: 32px; }
.proj-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px; }
.proj-card { background: #14141f; border: 1px solid #25253a; border-radius: 12px;
    padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s; }
.proj-card:hover { border-color: #3a3a55; }
.proj-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.proj-card-title { color: #fff; text-decoration: none; font-size: 16px; line-height: 1.3; }
.proj-card-title:hover { color: #ffe200; }
.proj-card-stage { font-size: 11px; padding: 3px 8px; border-radius: 6px;
    background: #1f1f30; color: #aab2bd; white-space: nowrap; }
.proj-stage-context_review, .proj-stage-storyboard_review { background: rgba(180,240,100,.12); color: #d4f47c; }
.proj-stage-stills_review, .proj-stage-videos_review { background: rgba(120,180,255,.12); color: #88c0ff; }
.proj-stage-complete { background: rgba(120,255,180,.15); color: #88ffb0; }
.proj-status-failed .proj-card-stage { background: rgba(255,100,100,.15); color: #ff8888; }
.proj-card-meta { font-size: 12px; color: #8a929c; display: flex; gap: 4px; flex-wrap: wrap; }
.proj-progress-bar { height: 4px; background: #1f1f30; border-radius: 2px; overflow: hidden; }
.proj-progress-fill { height: 100%; background: linear-gradient(90deg, #d4f47c, #88c0ff); transition: width .3s; }
.proj-card-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn-stage-danger { background: rgba(255,80,96,0.1); color: #ff8888; border: 1px solid rgba(255,100,100,.35); }
.btn-stage-danger:hover { background: rgba(255,80,96,0.22); color: #ffb0b8; border-color: rgba(255,100,100,0.6); }

/* ======================== new project page ======================== */
.np-page { max-width: 760px; margin: 32px auto; padding: 0 24px; }
.np-page-header { margin-bottom: 24px; }
.np-page-header h1 { margin: 8px 0 6px 0; font-size: 28px; }
.back-link { color: #9aa6b2; font-size: 13px; text-decoration: none; }
.back-link:hover { color: #ffe200; }

/* ======================== breadcrumb + admin banner + clickable wizard ============= */
.proj-breadcrumb { display: flex; align-items: center; gap: 14px; padding: 0 4px 12px;
    font-size: 13px; flex-wrap: wrap; }
.proj-breadcrumb-name { color: #cfd6dd; font-weight: 600; }
.proj-review-badge { color: #ffc88a; background: rgba(255,180,100,.10);
    padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.proj-review-badge a { color: #ffd4a0; text-decoration: underline; }
.admin-banner { background: rgba(255,140,80,.10); border: 1px solid rgba(255,140,80,.30);
    border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: #ffc8a8;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-banner-link { color: #ffd4b8; text-decoration: underline; margin-left: auto; font-weight: 500; }
.recovery-banner { background: rgba(255,90,90,.10); border: 1px solid rgba(255,90,90,.35);
                   color: #ffb8b8; padding: 12px 16px; border-radius: 10px; margin: 0 4px 16px;
                   font-size: 14px; line-height: 1.5; }
.recovery-banner pre { background: rgba(0,0,0,.25); padding: 10px; border-radius: 6px;
                       color: #ffcfcf; max-height: 200px; overflow: auto; }
.alert-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
                padding: 12px 16px; border-radius: 10px; margin: 0 0 16px;
                font-size: 14px; line-height: 1.5; }
.alert-banner--warning { background: rgba(255,195,30,.10); border: 1px solid rgba(255,195,30,.35);
                         color: #ffe08a; }
.alert-banner__icon { font-size: 16px; flex-shrink: 0; }
.alert-banner__text { flex: 1; }
.alert-banner__dismiss { margin-left: auto; background: none; border: none; color: inherit;
                         font-size: 18px; line-height: 1; cursor: pointer; opacity: .7;
                         padding: 0 2px; flex-shrink: 0; }
.alert-banner__dismiss:hover { opacity: 1; }
a.swiz-step { text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
a.swiz-step:hover { color: #ffe200; background: rgba(255,226,0,.08); }
a.swiz-step.done:hover { color: #ffe200; }

/* ─────────────────────────────────────────────────────────────────────────
   3-COLUMN WORKSPACE DASHBOARD
   ───────────────────────────────────────────────────────────────────────── */

/* When the page hosts a 3-column dashboard, let <main> use the full viewport
   instead of the global 980px text-document max-width. */
main:has(> .ws-grid) {
    max-width: none;
    margin: 24px auto 60px;
    padding: 0;
}

.ws-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: 24px;
    max-width: 1680px;
    margin: 0 auto;
    padding: 18px 28px 60px;
    align-items: start;
}

/* Center column should not let wide internal grids (shot rows etc.) push the
   layout — anything oversized scrolls horizontally inside its own panel. */
.ws-col-main > .panel,
.ws-col-main > .card {
    overflow-x: auto;
}

.ws-col-left, .ws-col-right {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.ws-col-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-col-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.ws-col-main > .panel,
.ws-col-main > .card {
    margin: 0;
}

.ws-main-head {
    padding: 6px 4px 0;
}

.ws-main-head .ws-title {
    margin: 0 0 6px;
    font-size: 2rem;
    line-height: 1.15;
}

.ws-main-head .ws-meta {
    margin: 0;
    font-size: 0.95rem;
}

/* ── Left column: section nav ─────────────────────────────────────────── */
.ws-side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
}

.ws-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #b8bdc7;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background .15s, color .15s;
    border-left: 2px solid transparent;
}

.ws-side-item:hover {
    background: rgba(212, 244, 124, .07);
    color: #fff;
}

.ws-side-item.ws-side-active {
    background: rgba(212, 244, 124, .12);
    color: #d4f47c;
    border-left-color: #d4f47c;
}

.ws-side-num {
    font-family: ui-monospace, "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.ws-side-item.ws-side-active .ws-side-num {
    color: #d4f47c;
}

.ws-side-name {
    font-weight: 500;
}

/* ── Right column: side cards ─────────────────────────────────────────── */
.ws-side-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-side-card-title {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b92a0;
    font-weight: 600;
}

.ws-side-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-side-actions form,
.ws-side-actions #export-actions {
    display: flex;
}

.ws-side-actions .btn-primary,
.ws-side-actions .btn-danger {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.ws-side-card .next-step {
    margin: 0;
    font-size: 0.88rem;
    color: #c9cfd9;
    line-height: 1.4;
}

.ws-side-card .warning {
    margin: 0;
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.ws-side-card .status-pill {
    align-self: flex-start;
}

/* ── Vertical pipeline rail (right column) ────────────────────────────── */
.stage-rail-vertical {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: none;
}

.stage-rail-vertical .stage-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.05);
}

.stage-rail-vertical .stage-num {
    flex: 0 0 auto;
}

.stage-rail-vertical .stage-info {
    min-width: 0;
}

.stage-rail-vertical .stage-name {
    font-size: 0.92rem;
}

.stage-rail-vertical .stage-status {
    font-size: 0.78rem;
}

/* ── Hide left column crumb on smaller widths (we keep mobile FAB) ────── */
@media (max-width: 1280px) {
    .ws-grid {
        grid-template-columns: 200px minmax(0, 1fr) 290px;
        gap: 18px;
        padding: 16px 20px 60px;
    }
}

@media (max-width: 1080px) {
    .ws-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
        gap: 18px;
    }
    .ws-col-left, .ws-col-right {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .ws-col-left { display: none; } /* mobile FAB handles nav */
}

/* ─────────────────────────────────────────────────────────────────────────
   SHOTS PANEL — bulk action bar + per-shot prompt dropdown + actions
   ───────────────────────────────────────────────────────────────────────── */
.shots-bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 6px 0 16px;
    background: rgba(212, 244, 124, .04);
    border: 1px solid rgba(212, 244, 124, .14);
    border-radius: 12px;
    flex-wrap: wrap;
}

.shots-bulk-bar .btn-primary,
.shots-bulk-bar .btn-ghost {
    padding: 8px 14px;
    font-size: 0.92rem;
}

.shots-bulk-status {
    font-size: 0.85rem;
}

.shot-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.shot-actions .btn-secondary,
.shot-actions .btn-ghost {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.shot-action-status {
    font-size: 0.8rem;
    color: #b8bdc7;
}

.shot-prompt-wrap {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shot-prompt-wrap[hidden] {
    display: none;
}

.shot-prompt-text {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: rgba(0,0,0,.35);
    color: #e7eaf0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 96px;
}

.shot-prompt-text:focus {
    outline: none;
    border-color: rgba(212, 244, 124, .4);
    box-shadow: 0 0 0 2px rgba(212, 244, 124, .12);
}

.shot-prompt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shot-prompt-actions .btn-ghost {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.shot-prompt-status {
    font-size: 0.8rem;
    color: #b8bdc7;
}


/* ── LANDING PAGE SECTIONS ── */

/* Reset for landing main wrapper */
.landing-main {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
    overflow-x: hidden;
}

/* ── SHARED SECTION SCAFFOLDING ──────────────────────────────── */
.lp-section { padding: 100px 0; }
.lp-section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}
.lp-section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lime);
    margin-bottom: 16px;
}
.lp-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text);
    margin: 0 0 20px;
}
.lp-title-accent {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-section-sub {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 0 60px;
}

/* ── EYEBROW / MONOSPACE helpers ─────────────────────────────── */
.lp-eyebrow {
    color: var(--cyan);
    margin-bottom: 20px;
}
.lp-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text);
}
.lp-mono-muted {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* ── HERO */ 
/* ── CINEMATIC MASTHEAD ──────────────────────────────────────── */
.lp-masthead {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #07070c;
    border-bottom: 1px solid rgba(212,255,58,0.12);
}
.lp-masthead-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.lp-masthead-glow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}
.lp-masthead-glow-l {
    left: -80px;
    background: radial-gradient(ellipse, rgba(212,255,58,0.5) 0%, transparent 70%);
}
.lp-masthead-glow-r {
    right: -80px;
    background: radial-gradient(ellipse, rgba(56,225,255,0.4) 0%, transparent 70%);
}
.lp-masthead-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.012) 3px,
        rgba(255,255,255,0.012) 4px
    );
}
.lp-masthead-strip {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
}
.lp-masthead-strip-top {
    top: 12px;
    background: linear-gradient(90deg, transparent 0%, rgba(212,255,58,0.4) 20%, rgba(56,225,255,0.4) 50%, rgba(212,255,58,0.4) 80%, transparent 100%);
}
.lp-masthead-strip-bot {
    bottom: 12px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,225,255,0.2) 20%, rgba(212,255,58,0.2) 50%, rgba(56,225,255,0.2) 80%, transparent 100%);
}
.lp-masthead-frames {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0.08;
}
.lp-mf {
    flex: 1;
    height: 70%;
    border-left: 1px solid rgba(255,255,255,0.6);
    border-right: 1px solid rgba(255,255,255,0.6);
}
.lp-masthead-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-masthead-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.lp-masthead-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--lime) 0%, #b8f000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}
.lp-masthead-sep {
    font-size: 22px;
    color: rgba(255,255,255,0.2);
    font-weight: 300;
}
.lp-masthead-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: -0.3px;
}
.lp-masthead-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.lp-masthead-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
}
.lp-masthead-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-hero {
    position: relative;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 0;
    overflow: hidden;
}
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(56,225,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 30% 70%, rgba(212,255,58,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(139,92,246,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.lp-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Left: text */
.lp-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--lime);
    margin: 0 0 8px;
    text-align: left;
}
.lp-headline-white { color: #fff !important; }
.lp-headline-accent {
    background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 100%;
    text-align: left;
}
.lp-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.landing-main .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lime);
    color: #0a0a0f;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.2s;
    letter-spacing: 0.01em;
    box-shadow: none;
}
.landing-main .btn-primary::after { content: none; }
.landing-main .btn-primary:hover { background: #c8f535; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(212,255,58,0.28); }
.landing-main .btn-primary-lg { padding: 16px 32px; font-size: 15px; border-radius: 12px; }
.landing-main .btn-primary-block { display: block; width: 100%; text-align: center; justify-content: center; padding: 14px 24px; }
.landing-main .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.2s;
    align-self: auto;
}
.landing-main .btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #ffe200; }
.landing-main .btn-ghost-lg { padding: 16px 32px; font-size: 15px; border-radius: 12px; }
.landing-main .btn-ghost-block { display: block; width: 100%; text-align: center; justify-content: center; padding: 14px 24px; }

.lp-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.lp-trust-icon { font-size: 16px; }

/* Right: mock storyboard visual */
.lp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.lp-mock-scene-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
}
.lp-mock-card {
    background: rgba(22,22,30,0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(30px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.lp-mock-card-back {
    position: absolute;
    border-radius: 20px;
    background: rgba(22,22,30,0.5);
    border: 1px solid rgba(255,255,255,0.06);
}
.lp-mock-card-back-2 {
    bottom: -22px;
    left: 20px;
    right: 20px;
    height: 80%;
    transform: rotate(3deg);
    z-index: 0;
}
.lp-mock-card-back-1 {
    bottom: -11px;
    left: 10px;
    right: 10px;
    height: 90%;
    transform: rotate(1.5deg);
    z-index: 1;
}
.lp-mock-card-front { position: relative; z-index: 2; }

.lp-mock-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.lp-mock-shot-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.lp-mock-time {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}
.lp-mock-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    padding: 3px 8px;
}
.lp-mock-badge-shot { background: rgba(56,225,255,0.12); color: var(--cyan); border: 1px solid rgba(56,225,255,0.2); }
.lp-mock-badge-ok { background: rgba(212,255,58,0.12); color: var(--lime); border: 1px solid rgba(212,255,58,0.2); }

.lp-mock-still {
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
    position: relative;
    background: rgba(10,10,20,0.8);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
}
.lp-mock-still-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-mock-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.4) 0%, rgba(255,62,165,0.25) 50%, rgba(56,225,255,0.2) 100%);
}
.lp-mock-face-indicator {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-mock-face-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(212,255,58,0.7);
    border-radius: 50%;
    animation: facering-pulse 2s ease-in-out infinite;
}
.lp-mock-face-dot {
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--lime);
}
@keyframes facering-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
.lp-mock-still-label {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
}
.lp-mock-lyric {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.4;
}
.lp-mock-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lp-mock-meta-row {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.lp-mock-meta-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    min-width: 50px;
    padding-top: 1px;
}
.lp-mock-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-mock-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 5px;
    padding: 3px 8px;
}
.lp-mock-tag-violet { background: rgba(139,92,246,0.15); color: #b79fff; border: 1px solid rgba(139,92,246,0.25); }
.lp-mock-tag-pink { background: rgba(255,62,165,0.12); color: #ff7ec4; border: 1px solid rgba(255,62,165,0.2); }
.lp-mock-tag-cyan { background: rgba(56,225,255,0.10); color: var(--cyan); border: 1px solid rgba(56,225,255,0.18); }

.lp-hero-fade {
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    margin-top: 80px;
}

/* ── FORMATS BAR */ 
.lp-formats {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.012);
}
.lp-formats .lp-section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.lp-formats-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-align: center;
}
.lp-formats-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.lp-format-pill {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 7px 16px;
    cursor: default;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lp-format-pill:hover {
    border-color: rgba(212,255,58,0.35);
    color: var(--lime);
    background: rgba(212,255,58,0.06);
}

/* ── HOW IT WORKS */ 
.lp-how { background: rgba(255,255,255,0.015); }
.lp-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 60px;
}
.lp-step {
    flex: 1;
    background: rgba(22,22,30,0.7);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
}
.lp-step:hover { border-color: rgba(255,255,255,0.15); background: rgba(30,30,42,0.8); }
.lp-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--lime);
    margin-bottom: 16px;
}
.lp-step-icon { font-size: 36px; margin-bottom: 18px; }
.lp-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}
.lp-step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}
.lp-step-connector {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.lp-step-connector::after {
    content: '→';
    color: var(--muted);
    font-size: 20px;
    opacity: 0.5;
}

/* ── FEATURE GRID */ 
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.lp-feature-card {
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.lp-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    border-radius: inherit;
}
.lp-feature-lime::before { background: var(--lime); }
.lp-feature-cyan::before { background: var(--cyan); }
.lp-feature-violet::before { background: var(--violet); }
.lp-feature-pink::before { background: var(--pink); }
.lp-feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.15); }

.lp-feature-glyph { font-size: 36px; margin-bottom: 20px; display: block; }
.lp-feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}
.lp-feature-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px;
}
.lp-feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
}

/* ── EXAMPLE OUTPUT STORYBOARD */ 
.lp-output { background: rgba(255,255,255,0.015); }
.lp-output-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    align-items: start;
}
.lp-output-card {
    background: rgba(22,22,30,0.85);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    transition: border-color 0.2s;
}
.lp-output-card:hover { border-color: rgba(255,255,255,0.15); }
.lp-output-card-featured {
    border-color: rgba(212,255,58,0.25);
    background: rgba(22,22,30,0.95);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,255,58,0.15);
}

.lp-oc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.lp-oc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.1em;
    min-width: 24px;
}
.lp-oc-time {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}
.lp-oc-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(56,225,255,0.1);
    color: var(--cyan);
    border: 1px solid rgba(56,225,255,0.18);
    border-radius: 5px;
    padding: 2px 7px;
}
.lp-oc-type-ecu {
    background: rgba(212,255,58,0.1);
    color: var(--lime);
    border-color: rgba(212,255,58,0.2);
}

.lp-oc-still {
    border-radius: 10px;
    height: 120px;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
}
.lp-oc-still-ecu { height: 150px; }
.lp-oc-still-medium { height: 120px; }

.lp-oc-gradient { position: absolute; inset: 0; }
.lp-oc-g1 { background: linear-gradient(135deg, rgba(56,225,255,0.25) 0%, rgba(139,92,246,0.35) 100%); }
.lp-oc-g2 { background: linear-gradient(135deg, rgba(212,255,58,0.15) 0%, rgba(255,62,165,0.4) 50%, rgba(139,92,246,0.35) 100%); }
.lp-oc-g3 { background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(56,225,255,0.2) 100%); }
.lp-oc-face-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(212,255,58,0.6);
    border-radius: 50%;
    animation: facering-pulse 2s ease-in-out infinite;
}
.lp-oc-label {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    padding: 8px 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.lp-oc-label-alt {
    position: absolute;
    bottom: 8px;
    left: 10px;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lp-oc-lyric {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}
.lp-oc-detail {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}
.lp-oc-dt {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    min-width: 44px;
    padding-top: 1px;
    flex-shrink: 0;
}
.lp-oc-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--lime);
    background: rgba(212,255,58,0.1);
    border: 1px solid rgba(212,255,58,0.2);
    border-radius: 6px;
    padding: 3px 9px;
}

/* ── PRICING TEASER */ 
.lp-credit-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
}
.lp-credit-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
}
.lp-plan-credits {
    font-size: 12px;
    font-weight: 700;
    color: var(--lime);
    margin: -6px 0 14px;
    letter-spacing: 0.01em;
}
.lp-plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    align-items: start;
}
.lp-plan-cards-4 { grid-template-columns: repeat(4, 1fr); }
.lp-plan-card {
    background: rgba(22,22,30,0.8);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: border-color 0.2s;
}
.lp-plan-card:hover { border-color: rgba(255,255,255,0.18); }
.lp-plan-card-pro {
    border-color: rgba(212,255,58,0.3);
    background: rgba(22,22,30,0.95);
    box-shadow: 0 0 0 1px rgba(212,255,58,0.1), 0 24px 64px rgba(0,0,0,0.35);
}
.lp-plan-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime);
    color: #0a0a0f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    padding: 4px 14px;
    white-space: nowrap;
}
.lp-plan-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.lp-plan-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1;
}
.lp-plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
}
.lp-plan-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 48px;
}
.lp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lp-plan-features li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}
.lp-plan-features .lp-plan-no { opacity: 0.45; }
.lp-plan-features li:not(.lp-plan-no) { color: var(--text); }

/* ── GLASSMORPHISM HERO CARD ─────────────────────────────────── */
.lp-hero-bg { pointer-events: none; z-index: 0; }
.lp-radial { position: absolute; border-radius: 50%; pointer-events: none; }
.lp-radial-left {
    width: 700px; height: 700px;
    top: -10%; left: -5%;
    background: radial-gradient(ellipse at center, rgba(212,255,58,0.10) 0%, transparent 65%);
}
.lp-radial-right {
    width: 600px; height: 600px;
    top: -5%; right: -5%;
    background: radial-gradient(ellipse at center, rgba(56,225,255,0.09) 0%, transparent 60%);
}
.lp-radial-bottom {
    width: 800px; height: 400px;
    bottom: 0; left: 20%;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.07) 0%, transparent 70%);
}
.lp-radial-feat-left {
    width: 500px; height: 500px;
    top: 0; left: -100px;
    background: radial-gradient(ellipse at center, rgba(212,255,58,0.05) 0%, transparent 70%);
}
.lp-radial-feat-right {
    width: 400px; height: 400px;
    bottom: 0; right: -80px;
    background: radial-gradient(ellipse at center, rgba(56,225,255,0.05) 0%, transparent 70%);
}

.lp-hero-inner {
    grid-template-columns: 3fr 2fr !important;
}

.lp-hero-glass {
    position: relative;
    border-radius: 28px;
    padding: 44px 48px;
    background: linear-gradient(135deg,
        rgba(212,255,58,0.04) 0%,
        rgba(22,22,30,0.7) 40%,
        rgba(56,225,255,0.04) 100%);
    border: 1px solid rgba(212,255,58,0.1);
    z-index: 1;
}
.lp-hero-glass-glow {
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(212,255,58,0.06), rgba(56,225,255,0.04));
    filter: blur(20px);
    z-index: -1;
}

.lp-eyebrow-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(212,255,58,0.07);
    border: 1px solid rgba(212,255,58,0.2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--lime);
    text-transform: uppercase;
}
.lp-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 6px var(--lime);
    animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--lime); }
    50% { opacity: 0.5; box-shadow: 0 0 12px var(--lime); }
}
.lp-headline-italic {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(15px, 1.6vw, 21px);
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 24px;
}
.lp-sub { text-align: left; max-width: 100%; }
.lp-ctas { justify-content: flex-start; }
.lp-trust { justify-content: flex-start; }
.lp-btn-icon { font-size: 12px; opacity: 0.8; }

/* ── HERO IMAGE (right side) */
.lp-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
}
.lp-hero-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(212,255,58,0.15);
    box-shadow: 0 0 60px rgba(212,255,58,0.08), 0 40px 80px rgba(0,0,0,0.5);
    flex: 1;
    min-height: 0;
}
.lp-hero-img-glow {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(212,255,58,0.15), rgba(56,225,255,0.1));
    filter: blur(16px);
    z-index: 0;
    pointer-events: none;
}
.lp-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.08);
    transform-origin: center center;
}
.lp-hero-img-badges {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}
.lp-vbadge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lime);
    background: rgba(10,10,15,0.75);
    border: 1px solid rgba(212,255,58,0.3);
    border-radius: 100px;
    padding: 4px 12px;
    backdrop-filter: blur(6px);
}

/* ── HOW IT WORKS — 5-STEP GRID ──────────────────────────────── */
.lp-how-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-top: 64px;
}
.lp-how-step { text-align: center; }
.lp-how-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212,255,58,0.07);
    border: 1px solid rgba(212,255,58,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: background 0.2s, border-color 0.2s;
}
.lp-how-step:hover .lp-how-icon-wrap {
    background: rgba(212,255,58,0.13);
    border-color: rgba(212,255,58,0.3);
}
.lp-how-icon { font-size: 28px; }
.lp-how-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 10px;
}
.lp-how-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}
.lp-how-step p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

/* ── FEATURE GRID 3-COL ──────────────────────────────────────── */
.lp-feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}
.lp-feat3-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 28px 24px;
    background: rgba(255,255,255,0.025);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.lp-feat3-card:hover {
    border-color: rgba(212,255,58,0.2);
    background: rgba(212,255,58,0.025);
    transform: translateY(-3px);
}
.lp-feat3-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.lp-feat3-lime { background: rgba(212,255,58,0.1); border-color: rgba(212,255,58,0.2); }
.lp-feat3-cyan { background: rgba(56,225,255,0.1); border-color: rgba(56,225,255,0.2); }
.lp-feat3-violet { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.2); }
.lp-feat3-pink { background: rgba(255,62,165,0.1); border-color: rgba(255,62,165,0.2); }
.lp-feat3-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}
.lp-feat3-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 16px;
}

/* ── FINAL CTA BANNER */ 
.lp-cta-banner { padding: 120px 0; position: relative; overflow: hidden; }
.lp-cta-radial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(212,255,58,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.lp-cta-banner-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.lp-cta-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin: 0 0 20px;
}
.lp-cta-banner-sub {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}
.lp-cta-btn {
    background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%) !important;
    color: #0a0a0f !important;
    box-shadow: 0 8px 40px rgba(212,255,58,0.25), 0 0 0 1px rgba(212,255,58,0.15) !important;
}
.lp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(212,255,58,0.35), 0 0 0 1px rgba(212,255,58,0.25) !important;
}

/* ── LANDING PAGE RESPONSIVE */ 
@media (max-width: 1300px) {
    .lp-how-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 1100px) {
    .lp-how-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .lp-feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .lp-hero-inner { grid-template-columns: 1fr !important; gap: 48px; }
    .lp-hero-glass { padding: 36px 32px; }
    .lp-hero-visual { order: -1; }
    .lp-mock-scene-stack { max-width: 380px; margin: 0 auto; }
    .lp-feature-grid { grid-template-columns: 1fr; }
    .lp-feature-grid-3 { grid-template-columns: 1fr; }
    .lp-output-cards { grid-template-columns: 1fr; }
    .lp-output-card-featured { transform: none; }
    .lp-plan-cards { grid-template-columns: 1fr; }
    .lp-plan-cards-4 { grid-template-columns: 1fr; }
    .lp-steps { flex-direction: column; }
    .lp-step-connector { width: auto; height: 20px; }
    .lp-step-connector::after { content: '↓'; }
    .lp-how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .lp-section { padding: 72px 0; }
    .lp-section-inner { padding: 0 24px; }
    .lp-hero { padding: 80px 0 0; }
    .lp-hero-inner { padding: 0 24px !important; }
    .lp-hero-glass { padding: 28px 24px; border-radius: 20px; }
    .lp-section-title { font-size: 28px; }
    .lp-headline { font-size: 36px; }
    .lp-sub { font-size: 15px; }
    .lp-ctas { flex-direction: column; align-items: stretch; text-align: center; }
    .lp-trust { gap: 16px; }
    .lp-formats .lp-section-inner { flex-direction: column; align-items: center; gap: 16px; }
    .lp-how-grid { grid-template-columns: 1fr; }
}

.lp-pricing-full-link {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: opacity 0.15s;
}
.lp-pricing-full-link:hover { opacity: 0.75; }

/* ── NAV PLAN BADGE ── */
.nav-plan-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    border-radius: 4px;
    padding: 2px 6px;
    vertical-align: middle;
    margin-left: 4px;
}
.nav-plan-pro {
    background: rgba(212,255,58,0.15);
    color: var(--lime);
    border: 1px solid rgba(212,255,58,0.3);
}
.nav-plan-studio {
    background: rgba(139,92,246,0.15);
    color: #b79fff;
    border: 1px solid rgba(139,92,246,0.3);
}

/* ── PRICING PAGE ── */
.pricing-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 28px 100px;
}
.pricing-hero {
    text-align: center;
    margin-bottom: 60px;
}
.pricing-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin: 16px 0 14px;
}
.pricing-hero-accent {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 80px;
}
.pricing-card {
    background: rgba(22,22,30,0.85);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}
.pricing-card-pro {
    border-color: rgba(212,255,58,0.3);
    background: rgba(22,22,30,0.98);
    box-shadow: 0 0 0 1px rgba(212,255,58,0.1), 0 24px 64px rgba(0,0,0,0.35);
    transform: translateY(-6px);
}
.pricing-card-current {
    border-color: rgba(56,225,255,0.35);
}
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime);
    color: #0a0a0f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    padding: 4px 14px;
    white-space: nowrap;
}
.pricing-current-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: #0a0a0f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    padding: 4px 14px;
    white-space: nowrap;
}
.pricing-plan-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.pricing-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1;
}
.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
}
.pricing-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 44px;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-features li { font-size: 14px; color: var(--text); line-height: 1.4; }
.pricing-feature-no { color: var(--muted) !important; opacity: 0.55; }
.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.pricing-cta-placeholder {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.pricing-coming-soon {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

/* ── PRICING FAQ ── */
.pricing-faq { margin-top: 20px; }
.pricing-faq h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 32px;
}
.pricing-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.pricing-faq-item {
    background: rgba(22,22,30,0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.pricing-faq-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}
.pricing-faq-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.pricing-faq-item a { color: var(--cyan); text-decoration: underline; }

/* ── PRICING: CREDIT PILLS + INTERVAL TOGGLE ── */
.pricing-page { max-width: 1200px; }
.pricing-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pricing-credit-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 28px;
}
.pricing-credit-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 16px;
}
.pricing-credit-pill-icon { font-size: 15px; }
.pricing-interval-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    gap: 4px;
}
.pit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pit-btn-active {
    background: var(--lime);
    color: #0a0a0f;
}
.pit-save-badge {
    background: rgba(56,225,255,0.15);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(56,225,255,0.2);
}
.pit-btn-active .pit-save-badge {
    background: rgba(0,0,0,0.2);
    color: rgba(10,10,15,0.8);
    border-color: rgba(0,0,0,0.15);
}
.pricing-plan-icon {
    font-size: 24px;
    margin-bottom: 10px;
}
.pricing-credits-line {
    font-size: 13px;
    font-weight: 700;
    color: var(--lime);
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}
.pricing-price-wrap { margin-bottom: 4px; }
.pricing-price-alt {
    font-size: 12px;
    color: var(--muted);
    margin: -8px 0 14px;
}
.pricing-yearly-sub {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
}
.pricing-save-tag {
    background: rgba(212,255,58,0.12);
    color: var(--lime);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(212,255,58,0.2);
}

/* ── PRICING: CREDIT EXPLAINER ── */
.pricing-credit-explainer {
    text-align: center;
    margin: 0 0 60px;
}
.pricing-credit-explainer h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
}
.pricing-credit-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.pricing-credit-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
}
.pricing-credit-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.pricing-credit-box p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.pricing-credit-note {
    font-size: 12px;
    color: var(--muted);
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 960px) {
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing-credit-boxes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .pricing-grid-4 { grid-template-columns: 1fr; }
    .pricing-credit-boxes { grid-template-columns: 1fr; }
    .pricing-credit-pills { gap: 6px; }
}

/* ── BILLING SUCCESS ── */
.billing-success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
.billing-success-card {
    text-align: center;
    max-width: 480px;
    padding: 56px 40px;
    background: rgba(22,22,30,0.85);
    border: 1px solid rgba(212,255,58,0.25);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(212,255,58,0.08), 0 32px 80px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.billing-success-icon { font-size: 48px; }
.billing-success-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.billing-success-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 720px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card-pro { transform: none; }
    .pricing-faq-grid { grid-template-columns: 1fr; }
}

/* ── Account page ─────────────────────────────────────────── */
.account-page {
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
}
.account-card {
    width: 100%;
    max-width: 560px;
    background: rgba(22,22,30,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.account-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.account-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}
.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.account-row:last-child { border-bottom: none; }
.account-label { color: var(--muted); font-size: 14px; }
.account-value { color: var(--text); font-size: 14px; font-weight: 500; }
.plan-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.plan-free  { background: rgba(255,255,255,0.08); color: var(--muted); }
.plan-pro   { background: rgba(0,212,255,0.15); color: #00d4ff; }
.plan-studio { background: rgba(212,255,58,0.15); color: var(--lime); }

/* ── Account page additions ───────────────────────────────── */
.account-plan-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 16px; }

.account-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.account-form-row { display: flex; flex-direction: column; gap: 6px; }
.account-form-row label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.account-hint { color: var(--muted); font-size: 12px; }

.account-danger-section { border: 1px solid rgba(255,92,122,0.2); border-radius: var(--radius-sm); padding: 20px; }
.account-danger-section h2 { color: var(--error); }
.account-danger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.account-danger-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.account-danger-desc { color: var(--muted); font-size: 13px; }

/* Delete confirmation modal */
.delete-modal {
    background: var(--bg-2);
    border: 1px solid rgba(255,92,122,0.35);
    border-radius: 20px;
    padding: 0;
    max-width: 480px;
    width: calc(100% - 32px);
    color: var(--text);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.delete-modal::backdrop {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.delete-modal-inner { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.delete-modal-inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--error);
}
.delete-modal-inner p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.delete-modal-inner form { display: flex; flex-direction: column; gap: 16px; }
.delete-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.btn-ghost-sm { padding: 10px 18px; font-size: 13px; }

@media (max-width: 600px) {
    .account-card { padding: 24px 18px; }
    .account-danger-row { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   Advanced Admin Panel  (.adm-*)
═══════════════════════════════════════════════════════════ */
.adm-wrap { max-width: 1280px; margin: 32px auto; padding: 0 28px 60px; }

/* Header */
.adm-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.adm-title { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 800; margin: 0 0 4px; }
.adm-subtitle { color: var(--muted); margin: 0; font-size: 14px; }
.adm-header-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 6px; }

/* Badges */
.adm-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.adm-badge-ok   { background: rgba(91,224,160,0.12); color: var(--ok); border: 1px solid rgba(91,224,160,0.25); }
.adm-badge-bad  { background: rgba(255,92,122,0.12); color: var(--error); border: 1px solid rgba(255,92,122,0.25); }
.adm-badge-warn { background: rgba(255,200,58,0.12); color: var(--warn); border: 1px solid rgba(255,200,58,0.25); }
.adm-badge-dim  { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--border); }

/* Tabs */
.adm-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.adm-tab {
    background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
    padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; border-radius: 8px 8px 0 0; transition: all 0.15s; display: flex; align-items: center; gap: 8px;
}
.adm-tab:hover { color: #ffe200; background: rgba(255,255,255,0.04); }
.adm-tab.active { color: var(--lime); border-bottom-color: var(--lime); }
.adm-tab-count { background: rgba(255,255,255,0.08); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; }

/* Panels */
.adm-panel { display: none; }
.adm-panel.active { display: block; }

/* KPI grid */
.adm-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.adm-kpi {
    background: rgba(20,20,30,0.7); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px; display: flex; flex-direction: column; gap: 4px; transition: border-color 0.2s;
}
.adm-kpi:hover { border-color: var(--border-strong); }
.adm-kpi-accent { border-color: rgba(212,255,58,0.3); background: rgba(212,255,58,0.05); }
.adm-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.adm-kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.1; }
.adm-kpi-accent .adm-kpi-value { color: var(--lime); }
.adm-kpi-sub { font-size: 12px; color: var(--muted); }

/* Section titles */
.adm-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }

/* Plan bar */
.adm-plan-bar-wrap { margin-bottom: 28px; }
.adm-plan-bar { display: flex; border-radius: 8px; overflow: hidden; height: 36px; }
.adm-plan-seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; min-width: 4px; transition: opacity 0.2s; }
.adm-plan-seg:hover { opacity: 0.85; }
.adm-plan-free   { background: rgba(255,255,255,0.1); color: var(--muted); }
.adm-plan-pro    { background: rgba(0,212,255,0.35); color: #00d4ff; }
.adm-plan-studio { background: rgba(212,255,58,0.35); color: var(--lime); }

/* Status chips */
.adm-status-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.adm-status-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; }
.adm-status-chip-count { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }

/* Activity feed */
.adm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.adm-activity-list { display: flex; flex-direction: column; gap: 0; }
.adm-activity-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; flex-wrap: wrap; }
.adm-activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.adm-dot-user    { background: var(--cyan); }
.adm-dot-project { background: var(--lime); }
.adm-activity-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-activity-when { color: var(--muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.adm-empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

/* Toolbar */
.adm-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.adm-search {
    flex: 1; max-width: 400px; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); padding: 10px 16px; font: inherit; font-size: 14px;
    transition: border-color 0.15s;
}
.adm-search:focus { outline: none; border-color: var(--lime); }
.adm-toolbar-count { color: var(--muted); font-size: 13px; margin-left: auto; }

/* Table */
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: rgba(12,12,18,0.8); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th, .adm-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.adm-table th { background: rgba(255,255,255,0.03); font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: rgba(255,255,255,0.02); }
.adm-link { color: var(--cyan); text-decoration: none; }
.adm-link:hover { text-decoration: underline; }
.adm-mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.adm-muted { color: var(--muted); }
.adm-email { font-weight: 500; }
.adm-you { background: rgba(212,255,58,0.12); color: var(--lime); border-radius: 999px; padding: 1px 7px; font-size: 10px; font-weight: 700; margin-left: 6px; }

/* Role pill */
.adm-role-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; background: rgba(255,255,255,0.07); color: var(--muted); }
.adm-role-admin { background: rgba(212,255,58,0.12); color: var(--lime); }

/* Plan select */
.adm-inline-form { display: inline; }
.adm-plan-select {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: var(--text); padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600;
    cursor: pointer; appearance: none; transition: border-color 0.15s;
}
.adm-plan-select:focus { outline: none; border-color: var(--lime); }
.adm-plan-select.adm-plan-pro   { border-color: rgba(0,212,255,0.4); color: #00d4ff; }
.adm-plan-select.adm-plan-studio { border-color: rgba(212,255,58,0.4); color: var(--lime); }

/* Action buttons */
.adm-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; white-space: nowrap; }
.adm-form-inline { display: inline; }
.adm-btn { padding: 5px 12px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid; transition: all 0.15s; text-decoration: none; display: inline-block; }
.adm-btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: var(--text); }
.adm-btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.adm-btn-danger { background: rgba(255,92,122,0.1); border-color: rgba(255,92,122,0.3); color: var(--error); }
.adm-btn-danger:hover { background: rgba(255,92,122,0.32); color: #ffb0b8; border-color: rgba(255,92,122,0.55); }
.adm-btn-credit-reset { background: rgba(212,255,58,0.08); border-color: rgba(212,255,58,0.25); color: #d4ff3a; }
.adm-btn-credit-reset:hover { background: rgba(212,255,58,0.18); border-color: rgba(212,255,58,0.5); }
.adm-btn-credit-set { background: rgba(56,225,255,0.08); border-color: rgba(56,225,255,0.25); color: #38e1ff; }
.adm-btn-credit-set:hover { background: rgba(56,225,255,0.18); border-color: rgba(56,225,255,0.5); }
.adm-credits-cell { min-width: 140px; }
.adm-credits-val { font-weight: 700; font-size: 13px; color: #d4ff3a; display: block; margin-bottom: 6px; font-family: monospace; }
.adm-credits-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.adm-credits-set-form { display: flex; gap: 4px; align-items: center; }
.adm-credits-input { width: 72px; padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: var(--text); font-size: 12px; font-family: monospace; }
.adm-credits-input:focus { outline: none; border-color: rgba(56,225,255,0.5); }

/* System tab */
.adm-sys-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.adm-sys-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.adm-sys-row:last-child { border-bottom: none; }
.adm-sys-label { font-size: 14px; font-weight: 500; }

/* Mode form */
.adm-mode-form { display: flex; flex-direction: column; gap: 24px; background: rgba(12,12,18,0.8); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.adm-mode-row { display: flex; flex-direction: column; gap: 12px; }
.adm-mode-label { font-weight: 600; font-size: 14px; }
.adm-mode-options { display: flex; flex-direction: column; gap: 8px; }
.adm-mode-radio { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; padding: 8px 12px; border-radius: 10px; transition: background 0.15s; }
.adm-mode-radio:hover { background: rgba(255,255,255,0.03); }
.adm-mode-radio input { accent-color: var(--lime); }
.adm-mode-tier { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin-right: 4px; }
.adm-tier-quality    { background: rgba(91,224,160,0.15); color: var(--ok); }
.adm-tier-standard   { background: rgba(56,225,255,0.12); color: var(--cyan); }
.adm-tier-cheap      { background: rgba(255,200,58,0.12); color: var(--warn); }
.adm-tier-gpt-high   { background: rgba(91,224,160,0.15); color: var(--ok); }
.adm-tier-gpt-medium { background: rgba(56,225,255,0.12); color: var(--cyan); }

/* Notices */
.adm-notice { padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 16px; border: 1px solid; }
.adm-notice-warn { border-color: rgba(255,200,58,0.3); background: rgba(255,200,58,0.06); color: var(--warn); }
.adm-notice-info { border-color: rgba(56,225,255,0.25); background: rgba(56,225,255,0.05); color: var(--cyan); }

/* Impersonation bar */
.impersonation-bar {
    background: rgba(255,140,0,0.12);
    border-bottom: 1px solid rgba(255,140,0,0.3);
    color: #ffb84d;
    padding: 10px 32px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 16px;
}
.impersonation-exit {
    background: rgba(255,140,0,0.2);
    border: 1px solid rgba(255,140,0,0.4);
    color: #ffb84d;
    border-radius: 999px;
    padding: 4px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.impersonation-exit:hover { background: rgba(255,140,0,0.35); }

@media (max-width: 860px) {
    .adm-two-col { grid-template-columns: 1fr; }
    .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .adm-tabs { overflow-x: auto; }
}

/* ── Legal pages ──────────────────────────────────────────────────── */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.legal-inner {}
.legal-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #d4ff3a;
    margin-bottom: 36px;
    font-family: 'Space Grotesk', sans-serif;
}
.legal-body h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 8px;
    font-family: 'Space Grotesk', sans-serif;
}
.legal-body p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin: 0 0 10px;
}
.legal-body p.legal-bullet {
    padding-left: 16px;
    position: relative;
}
.legal-body p.legal-bullet::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #d4ff3a;
}
.legal-updated {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 32px;
}

/* ── Announcement Banner ──────────────────────────────────────────── */
.site-announcement-banner {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 9px 20px;
    line-height: 1.4;
    z-index: 200;
    position: relative;
}

/* ── Admin: Site CMS tab ──────────────────────────────────────────── */
.cms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.cms-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
}
.cms-card-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d4ff3a;
    margin-bottom: 14px;
}
.cms-field {
    margin-bottom: 12px;
}
.cms-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cms-field input[type="text"],
.cms-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    padding: 8px 10px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s;
}
.cms-field input[type="text"]:focus,
.cms-field textarea:focus {
    outline: none;
    border-color: #d4ff3a;
}
.cms-field input[type="range"] {
    width: 100%;
    accent-color: #d4ff3a;
}
.cms-field .cms-range-val {
    font-size: 12px;
    color: #d4ff3a;
    font-weight: 700;
    margin-left: 8px;
}
.cms-field .cms-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cms-toggle {
    appearance: none;
    width: 38px; height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.cms-toggle:checked { background: #d4ff3a; }
.cms-toggle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #0a0a0f;
    transition: left 0.2s;
}
.cms-toggle:checked::after { left: 21px; }
.cms-toggle-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.cms-save-row {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.cms-save-btn {
    background: #d4ff3a;
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.cms-save-btn:hover { opacity: 0.85; }
.cms-save-btn:disabled { opacity: 0.5; cursor: default; }
.cms-toast {
    font-size: 12px;
    font-weight: 600;
    color: #d4ff3a;
    opacity: 0;
    transition: opacity 0.3s;
}
.cms-toast.show { opacity: 1; }

/* ── Share button states ─────────────────────────────────────────────── */
.btn-share-active {
    background: rgba(212,255,58,0.12);
    color: #d4ff3a;
    border-color: rgba(212,255,58,0.4);
}
.btn-share-active:hover {
    background: rgba(212,255,58,0.2);
    color: #d4ff3a;
}

/* Postprod share buttons */
.pp-btn-share {
    background: rgba(56,225,255,0.08);
    color: #38e1ff;
    border: 1px solid rgba(56,225,255,0.3);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.pp-btn-share:hover { background: rgba(56,225,255,0.18); }
.pp-btn-shared {
    background: rgba(212,255,58,0.12);
    color: #d4ff3a;
    border: 1px solid rgba(212,255,58,0.35);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}
.pp-btn-shared:hover { background: rgba(212,255,58,0.22); }

/* ── Landing page showcase section ──────────────────────────────────── */
.lp-showcase { padding: 100px 0; }
.lp-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.lp-showcase-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.lp-showcase-card:hover {
    border-color: rgba(56,225,255,0.3);
    transform: translateY(-3px);
}
.lp-showcase-video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #060609;
    overflow: hidden;
}
.lp-showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lp-showcase-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: opacity 0.2s;
    pointer-events: none;
}
.lp-showcase-video-wrap:hover .lp-showcase-overlay { opacity: 0; }
.lp-showcase-play {
    font-size: 28px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.lp-showcase-meta {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.lp-showcase-name {
    font-size: 13px;
    font-weight: 600;
    color: #e8e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-showcase-genre {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38e1ff;
    background: rgba(56,225,255,0.1);
    border-radius: 4px;
    padding: 2px 7px;
    flex-shrink: 0;
}
.lp-showcase-cta-hint {
    text-align: center;
    margin-top: 32px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.lp-showcase-cta-hint strong { color: #d4ff3a; }

/* ── Redo Pipeline Panel ───────────────────────────────────────── */
.redo-panel {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.25rem;
}
.redo-toggle {
    background: none;
    border: 1px solid rgba(212,255,58,.25);
    color: rgba(212,255,58,.7);
    border-radius: 6px;
    padding: .45rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    transition: border-color .18s, color .18s, background .18s;
}
.redo-toggle:hover {
    border-color: rgba(212,255,58,.55);
    color: #d4ff3a;
    background: rgba(212,255,58,.06);
}
.redo-dropdown {
    margin-top: .85rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    max-width: 560px;
}
.redo-warn {
    font-size: .82rem;
    color: #ffb142;
    line-height: 1.45;
    margin: 0 0 .9rem;
}
.redo-warn strong { color: #ff9940; }
.redo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.redo-form { margin: 0; }
.redo-btn {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    padding: .55rem .85rem;
    color: var(--text, #e5e5e5);
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .18rem;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.redo-btn:hover {
    border-color: rgba(212,255,58,.4);
    background: rgba(212,255,58,.05);
}
.redo-btn-name {
    font-size: .88rem;
    font-weight: 600;
    color: #d4ff3a;
}
.redo-btn-sub {
    font-size: .76rem;
    color: rgba(255,255,255,.45);
    line-height: 1.35;
}
.redo-panel--disabled { opacity: .55; }
.redo-toggle--disabled {
    cursor: not-allowed;
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.35);
}
.redo-toggle--disabled:hover {
    background: none;
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.35);
}
