/* Athena Reel — the AI film studio (public/js/reel). Always dark, like a cutting room; Athena gold is the one accent. */
body.ws-reel {
  --rl-bg: #0d0f13; --rl-bg2: #13161c; --rl-panel: #171a21; --rl-panel2: #1d2129; --rl-line: #262b35; --rl-line2: #323844;
  --rl-text: #e9ebef; --rl-muted: #8f97a6; --rl-gold: #d9a441; --rl-gold2: #f0c36a; --rl-gold-ink: #1a1307; --rl-red: #ef6b5e; --rl-green: #5fc98d;
  --rl-r: 12px; --rl-font: 'Geist', system-ui, sans-serif;
  background: var(--rl-bg); color: var(--rl-text); font-family: var(--rl-font); color-scheme: dark;
}
body.ws-reel #app { display: flex; background: var(--rl-bg); }
body.ws-reel #main { flex: 1; min-width: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--rl-bg); padding: 0; color: var(--rl-text); }
body.ws-reel .mob-nav { display: none; }
body.ws-reel ::selection { background: rgba(217, 164, 65, .35); }

/* Creator studio: plain-language workflows, with the detailed film editor one click away. */
.rl-studio-page { padding: 0 42px 64px; background: radial-gradient(ellipse at 85% 8%, #28201655, transparent 44%), var(--rl-bg); }
.rl-studio-nav { display: flex; align-items: center; gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--rl-line); margin-bottom: 30px; }
.rl-studio-wordmark { font-size: 23px; color: var(--rl-text); text-decoration: none; letter-spacing: -.05em; line-height: 1; }
.rl-studio-wordmark strong { color: var(--rl-gold2); font-weight: 500; }
.rl-studio-wordmark > span { display: block; font-size: 8px; letter-spacing: .24em; color: var(--rl-muted); margin-top: 9px; }
.rl-studio-nav > div { display: flex; flex: 1; gap: 22px; justify-content: center; }
.rl-studio-nav > div a { color: var(--rl-muted); text-decoration: none; font-size: 13px; padding: 10px 0; }
.rl-studio-nav > div a.on { color: var(--rl-gold2); box-shadow: 0 1px var(--rl-gold); }
.rl-studio-nav > div a:hover { color: white; }
.rl-studio-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 470px; padding: 48px 0 62px; max-width: 1450px; margin: auto; }
.rl-studio-hero h1 { font-size: clamp(42px, 4.8vw, 75px); line-height: 1.07; letter-spacing: -.065em; font-weight: 500; margin: 20px 0 24px; }
.rl-studio-hero h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; color: #edc57f; }
.rl-studio-hero p:not(.rl-kicker) { color: #a8acb6; font-size: 15px; max-width: 530px; line-height: 1.8; }
.rl-studio-hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.rl-studio-promises { display: flex; flex-wrap: wrap; gap: 15px; color: var(--rl-muted); font-size: 10px; margin-top: 25px; }
.rl-studio-promises span::before { content: '✦'; color: var(--rl-gold); padding-right: 6px; }
.rl-studio-orbit { position: relative; height: 370px; max-width: 580px; min-width: 260px; }
.rl-orbit-frame { position: absolute; width: 66%; height: 280px; border-radius: 15px; border: 1px solid #8e795d55; overflow: hidden; box-shadow: 0 25px 70px #0008; }
.rl-orbit-frame > span { font-size: 9px; letter-spacing: .14em; position: absolute; top: 20px; left: 22px; z-index: 2; }
.rl-orbit-back { top: 8px; left: 7%; transform: rotate(-10deg); background: linear-gradient(135deg, #332b25, #796247); }
.rl-orbit-back b { position: absolute; left: 20px; top: 80px; font-family: Georgia, serif; font-size: 45px; font-weight: 400; }
.rl-orbit-back i { position: absolute; bottom: 10px; right: 20px; font-size: 130px; line-height: 1; color: #d8b97b; }
.rl-orbit-front { left: 26%; top: 60px; transform: rotate(8deg); background: #ceb18a; }
.rl-orbit-front > span { color: #51432d; }
.rl-orbit-front > b { position: absolute; bottom: 23px; left: 22px; color: #fff8df; font-size: 22px; line-height: 1.1; font-family: Georgia, serif; font-weight: 400; text-shadow: 0 2px 14px #0005; }
.rl-orbit-sun { position: absolute; top: 50px; right: 30px; width: 95px; height: 95px; border-radius: 50%; background: #ffe4a6; }
.rl-orbit-hill { position: absolute; width: 130%; height: 180px; bottom: -20px; left: -25px; background: #637964; border-radius: 50% 50% 0 0; transform: rotate(-12deg); }
.rl-orbit-character { position: absolute; right: 28px; bottom: 40px; width: 112px; height: 130px; border-radius: 45% 45% 48% 48%; background: radial-gradient(at 20% 20%, #edac68, #bc4b2d); color: #241d17; font-size: 25px; font-weight: 900; padding-top: 39px; text-align: center; box-shadow: inset -10px -14px 20px #56291e55, 5px 10px 15px #0004; }
.rl-orbit-character::before { content: ''; width: 35px; height: 20px; position: absolute; top: -9px; left: 40px; border-radius: 100% 0; background: #4b663a; transform: rotate(20deg); }
.rl-orbit-character small { display: block; margin-top: -6px; font-size: 27px; }
.rl-orbit-caption { position: absolute; bottom: -2px; width: 100%; text-align: center; color: #7e7973; letter-spacing: .15em; font-size: 9px; }
.rl-studio-formats, .rl-studio-how { max-width: 1450px; margin: 0 auto; }
.rl-studio-formats .rl-section-h { align-items: flex-end; margin-bottom: 23px; }
.rl-studio-formats h2, .rl-studio-how h2 { font-size: 25px; font-weight: 500; letter-spacing: -.03em; margin: 10px 0 0; }
.rl-recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rl-recipe-card { display: block; background: #17191e; color: var(--rl-text); text-decoration: none; border: 1px solid #303036; border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s; }
.rl-recipe-card:hover { transform: translateY(-4px); border-color: var(--recipe-color); text-decoration: none; }
.rl-recipe-card[hidden] { display: none; }
.rl-recipe-art { height: 160px; position: relative; overflow: hidden; background: radial-gradient(at 80% 5%, color-mix(in srgb, var(--recipe-color) 65%, #13161c), transparent 85%), linear-gradient(135deg, #262626, #171a21); }
.rl-recipe-art::before { content: ''; position: absolute; width: 180px; height: 180px; border: 1px solid color-mix(in srgb, var(--recipe-color) 40%, transparent); border-radius: 50%; right: 8%; top: -25px; box-shadow: 0 0 0 24px #ffffff04, 0 0 0 48px #ffffff03; }
.rl-recipe-symbol { position: absolute; inset: 0; display: grid; place-items: center; color: var(--recipe-color); filter: drop-shadow(0 8px 20px #0007); }
.rl-recipe-number { position: absolute; left: 20px; top: 18px; font: 13px Georgia, serif; opacity: .5; }
.rl-recipe-type { position: absolute; left: 20px; bottom: 17px; font-size: 8px; letter-spacing: .18em; opacity: .65; }
.rl-recipe-copy { padding: 21px; }
.rl-recipe-copy small { color: var(--recipe-color); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.rl-recipe-copy h3 { font-size: 18px; letter-spacing: -.03em; font-weight: 500; margin: 10px 0; display: flex; justify-content: space-between; gap: 8px; }
.rl-recipe-copy h3 span { color: var(--rl-muted); }
.rl-recipe-copy p { color: #9da2ac; font-size: 13px; line-height: 1.6; margin: 0; }
.rl-studio-how { border-top: 1px solid var(--rl-line); margin-top: 65px; padding-top: 42px; }
.rl-studio-how > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; margin-top: 30px; }
.rl-studio-how article > span { color: var(--rl-gold); font: 32px Georgia, serif; }
.rl-studio-how h3 { font-size: 15px; font-weight: 500; }
.rl-studio-how p, .rl-studio-note { font-size: 12px; line-height: 1.7; color: var(--rl-muted); }
.rl-studio-note { margin: 55px auto 0; max-width: 1450px; border-top: 1px solid var(--rl-line); padding-top: 20px; }
.rl-creation-title { margin: 40px 0; max-width: 850px; }
.rl-creation-title h1, .rl-production-h h1 { font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -.045em; margin: 12px 0; }
.rl-creation-title > p:last-child, .rl-production-h p { color: var(--rl-muted); font-size: 14px; line-height: 1.7; }
.rl-create-form, .rl-production-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 25px; max-width: 1450px; margin: auto; }
.rl-create-fields, .rl-production-body { min-width: 0; }
.rl-work-card { background: #171a20; border: 1px solid var(--rl-line); border-radius: 14px; padding: 25px; margin-bottom: 23px; min-width: 0; }
.rl-work-card h2 { font-size: 19px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 12px; }
.rl-work-card h3 { font-size: 15px; font-weight: 500; }
.rl-work-card p { line-height: 1.7; font-size: 13px; }
.rl-work-card > header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.rl-work-card > header h2 { margin: 2px 0 3px; }
.rl-work-card > header p { margin: 0; color: var(--rl-muted); font-size: 12px; }
.rl-step-number { width: 29px; height: 29px; flex: none; border: 1px solid #d9a44155; color: var(--rl-gold2); border-radius: 50%; display: grid; place-items: center; font: 14px Georgia, serif; }
.rl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 18px; }
.rl-work-card input:not([type=checkbox]):not([type=color]), .rl-work-card textarea, .rl-work-card select { width: 100%; border: 1px solid var(--rl-line2); border-radius: 8px; background: #101318; color: var(--rl-text); font: 13px var(--rl-font); padding: 11px; outline: none; }
.rl-work-card input:focus, .rl-work-card textarea:focus, .rl-work-card select:focus { border-color: var(--rl-gold); box-shadow: 0 0 0 2px #d9a44112; }
.rl-work-card textarea { line-height: 1.65; resize: vertical; }
.rl-work-card input[type=color] { height: 38px; width: 100%; border: 1px solid var(--rl-line2); padding: 3px; border-radius: 7px; background: transparent; }
.rl-check { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0; font-size: 12px; line-height: 1.65; color: #b8bdc7; cursor: pointer; }
.rl-check input { accent-color: var(--rl-gold); flex: none; margin-top: 4px; width: 15px; height: 15px; }
.rl-check small { display: block; color: var(--rl-muted); }
.rl-create-summary > .rl-work-card { position: sticky; top: 20px; }
.rl-create-summary .rl-btn { width: 100%; justify-content: center; }
.rl-estimate-summary { padding: 20px 0; margin: 20px 0; border-block: 1px solid var(--rl-line); font-size: 12px; color: var(--rl-muted); }
.rl-estimate-summary b { display: block; font-size: 29px; font-weight: 500; color: var(--rl-gold2); margin: 10px 0; }
.rl-estimate-summary small { display: block; line-height: 1.7; }
.rl-reference-strip { display: flex; gap: 9px; margin: 15px 0; }
.rl-reference-strip button { position: relative; width: 70px; height: 70px; border: 1px solid var(--rl-line2); padding: 0; border-radius: 8px; overflow: hidden; }
.rl-reference-strip img { width: 100%; height: 100%; object-fit: cover; }
.rl-reference-strip span { position: absolute; right: 0; top: 0; background: #000a; color: white; padding: 0 5px; }
.rl-production-h { display: flex; gap: 25px; justify-content: space-between; align-items: center; margin: 35px auto; max-width: 1450px; }
.rl-production-h > div:first-child { max-width: 850px; }
.rl-settings-list { display: grid; grid-template-columns: 65px 1fr; gap: 10px; font-size: 12px; line-height: 1.5; }
.rl-settings-list dt { text-transform: capitalize; color: var(--rl-muted); }
.rl-settings-list dd { margin: 0; }
.rl-script-list article { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rl-line); }
.rl-script-list article > span { font: 21px Georgia, serif; color: var(--rl-gold); }
.rl-script-list article h3 { margin: 0 0 7px; }
.rl-script-list article small { color: var(--rl-muted); font-size: 11px; }
.rl-script-list article p { font-size: 12px; margin: 0; color: var(--rl-muted); }
.rl-script-list blockquote { margin: 12px 0 0; padding: 10px 14px; background: #22262f; border-left: 2px solid var(--rl-gold); font-size: 13px; line-height: 1.7; border-radius: 0 5px 5px 0; }
.rl-script-list blockquote b { color: var(--rl-gold2); margin-right: 8px; }
.rl-finished-output { display: grid; place-items: center; background: #08090c; border: 1px solid var(--rl-line); border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.rl-finished-output video, .rl-finished-output img { display: block; max-width: 100%; max-height: 550px; }
.rl-work-card details { margin: 22px 0 0; color: var(--rl-muted); font-size: 12px; }
.rl-work-card summary { cursor: pointer; padding: 10px 0; color: var(--rl-text); }
.rl-production-jobs > div { display: flex; align-items: center; gap: 10px; font-size: 11px; padding: 10px 0; border-top: 1px solid var(--rl-line); }
.rl-production-jobs > div > b { min-width: 100px; font-weight: 500; flex: 1; }
.rl-production-jobs > div > span:not(.rl-dot) { max-width: 50%; overflow-wrap: anywhere; }
.rl-review-problems { padding: 15px 20px 15px 30px; background: #d9a4410c; color: #ddba7a; font-size: 12px; line-height: 1.8; border: 1px solid #d9a44133; border-radius: 8px; }
.rl-revision { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; align-items: center; }
.rl-working { color: var(--rl-gold2); }
.rl-studio-empty { padding: 25px 0; color: var(--rl-muted); font-size: 13px; line-height: 1.7; }
.rl-cost-top { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.rl-cost-result h2 { font-size: 48px; color: var(--rl-gold2); letter-spacing: -.05em; margin: 35px 0 0; }
.rl-cost-result h2 small { display: block; color: var(--rl-muted); font-size: 14px; letter-spacing: 0; margin-top: 10px; }
.rl-cost-lines { margin: 25px 0; }
.rl-cost-lines > div { display: flex; gap: 10px; justify-content: space-between; font-size: 12px; padding: 12px 0; border-bottom: 1px solid var(--rl-line); }
.rl-cost-lines b { font-weight: 500; }
.rl-table-scroll { overflow: auto; }
.rl-cost-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rl-cost-table th { text-align: left; font-weight: 500; color: var(--rl-muted); padding: 15px; border-bottom: 1px solid var(--rl-line2); white-space: nowrap; }
.rl-cost-table td { padding: 15px; border-bottom: 1px solid var(--rl-line); line-height: 1.5; vertical-align: top; }
.rl-cost-table td b { font-weight: 500; }
.rl-cost-table td a, .rl-cost-table td small { display: block; margin-top: 5px; font-size: 10px; color: var(--rl-muted); }
.rl-cost-table td a { color: var(--rl-gold2); text-decoration: none; }
.rl-provider-form { display: flex; gap: 15px; align-items: center; max-width: 700px; }
.rl-provider-form .rl-field { flex: 1; margin: 0; }
.rl-provider-form .rl-btn, .rl-provider-form .rl-pill { margin-top: 16px; }
.rl-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rl-channel-grid .rl-work-card { margin-bottom: 0; }
.rl-channel-grid { margin-bottom: 25px; }
.rl-episode-list article { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--rl-line); }
.rl-episode-list article > div { flex: 1; min-width: 0; }
.rl-episode-list b { font-weight: 500; font-size: 13px; }
.rl-episode-list small { display: block; color: var(--rl-muted); font-size: 11px; margin-top: 5px; }
.rl-episode-list a:not(.rl-btn) { font-size: 12px; color: var(--rl-gold2); }
@media (min-width: 1600px) { .rl-recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rl-recipe-art { height: 200px; } }
@media (max-width: 1150px) { .rl-studio-page { padding: 0 24px 45px; } .rl-studio-nav { gap: 20px; } .rl-studio-nav > div { gap: 13px; } .rl-studio-hero h1 { font-size: 49px; } .rl-create-form, .rl-production-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; } .rl-cost-top { grid-template-columns: minmax(0, 1fr) 290px; } .rl-work-card { padding: 20px; } }
@media (max-width: 900px) { .rl-studio-nav { flex-wrap: wrap; gap: 15px; } .rl-studio-nav > div { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 20px; } .rl-studio-nav > .rl-btn { margin-left: auto; } .rl-studio-hero { grid-template-columns: 1fr; padding: 20px 0 45px; gap: 30px; } .rl-studio-hero h1 { font-size: 54px; } .rl-studio-orbit { height: 330px; max-width: 500px; width: 100%; justify-self: center; } .rl-studio-formats .rl-section-h { display: block; } .rl-studio-formats .rl-chips { margin-top: 20px; } .rl-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rl-create-form, .rl-production-grid, .rl-cost-top { grid-template-columns: 1fr; } .rl-create-summary { grid-row: 1; } .rl-create-summary .rl-work-card { position: static; } .rl-create-summary .rl-estimate-summary { margin: 5px 0; padding: 10px 0; } .rl-create-summary .rl-estimate-summary b { display: inline; font-size: 20px; margin-left: 12px; } .rl-production-h { display: block; } .rl-production-h > .rl-chips { margin-top: 20px; } .rl-studio-how > div { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .rl-studio-page { padding: 0 16px 40px; } .rl-studio-hero h1 { font-size: 43px; } .rl-studio-nav > div { gap: 16px; } .rl-studio-nav > div a { font-size: 11px; } .rl-recipe-grid, .rl-channel-grid { grid-template-columns: 1fr; } .rl-recipe-art { height: 150px; } .rl-form-grid { grid-template-columns: 1fr; } .rl-work-card > header { flex-wrap: wrap; } .rl-work-card { padding: 18px; } .rl-episode-list article { flex-wrap: wrap; gap: 10px; } .rl-episode-list article > div { flex-basis: 65%; } .rl-provider-form { flex-wrap: wrap; } .rl-provider-form .rl-field { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .rl-recipe-card { transition: none; } .rl-recipe-card:hover { transform: none; } }

/* ---------- rail ---------- */
.sidebar.rl-rail { width: 64px; min-width: 64px; background: #08090c; display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 4px; border: 0; border-right: 1px solid var(--rl-line); position: sticky; top: 0; height: 100vh; overflow: visible; z-index: 30; }
.rl-rail-logo { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; }
.rl-rail-i { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #8d94a2; background: transparent; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.rl-rail-i:hover { background: #171a21; color: #fff; }
.rl-rail-i.on { background: #1c2029; color: var(--rl-gold2); box-shadow: inset 3px 0 0 var(--rl-gold); }
.rl-rail-new { background: var(--rl-gold); color: var(--rl-gold-ink); }
.rl-rail-new:hover { background: var(--rl-gold2); color: var(--rl-gold-ink); }
.rl-rail-sep { width: 28px; height: 1px; background: var(--rl-line); margin: 6px 0; }
.rl-rail-nav { display: flex; flex-direction: column; gap: 4px; align-items: center; flex: 1; }
.rl-rail-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rl-rail-me { border: 0; background: transparent; padding: 4px; cursor: pointer; border-radius: 50%; }
.rl-rail [data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 52px; top: 50%; transform: translateY(-50%); background: #000; color: #fff; font: 500 12px var(--rl-font); padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 99; border: 1px solid var(--rl-line2); }

/* ---------- basics ---------- */
.rl-main { color: var(--rl-text); }
.rl-page { height: 100%; overflow-y: auto; padding: 28px 32px 60px; }
.rl-h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
.rl-muted { color: var(--rl-muted); }
.rl-small { font-size: 12px; }
.rl-pad { padding: 18px; }
.rl-warn { color: var(--rl-red); }
.rl-ok { color: var(--rl-green); }
.rl-grow { flex: 1; }
.rl-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--rl-line2); background: var(--rl-panel2); color: var(--rl-text); font: 500 13px var(--rl-font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.rl-btn:hover { background: #252a34; border-color: #3b4250; text-decoration: none; }
.rl-btn:active { transform: translateY(1px); }
.rl-btn:disabled { opacity: .45; cursor: not-allowed; }
.rl-btn-gold { background: linear-gradient(180deg, var(--rl-gold2), var(--rl-gold)); color: var(--rl-gold-ink); border-color: transparent; font-weight: 600; }
.rl-btn-gold:hover { background: linear-gradient(180deg, #f6d07f, #e2ad4b); }
.rl-btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.rl-btn-lg { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 11px; }
.rl-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--rl-muted); cursor: pointer; text-decoration: none; }
.rl-icon-btn:hover { background: var(--rl-panel2); color: var(--rl-text); }
.rl-icon-sm { width: 24px; height: 24px; border-radius: 6px; }
.rl-link { border: 0; background: none; color: var(--rl-gold2); font: 500 12px var(--rl-font); cursor: pointer; padding: 0; }
.rl-link:hover { text-decoration: underline; }
.rl-danger { color: var(--rl-red); }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rl-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--rl-line2); background: transparent; color: var(--rl-muted); font: 500 12px var(--rl-font); cursor: pointer; }
.rl-chip:hover { color: var(--rl-text); border-color: #444c5a; }
.rl-chip.on { background: rgba(217, 164, 65, .14); border-color: var(--rl-gold); color: var(--rl-gold2); }
.rl-chip input { display: none; }
.rl-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--rl-panel2); border: 1px solid var(--rl-line2); font-size: 11px; color: var(--rl-muted); }
.rl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #59606d; flex: none; }
.rl-dot-running, .rl-dot-making { background: var(--rl-gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .18); animation: rl-pulse 1.4s ease-in-out infinite; }
.rl-dot-done { background: var(--rl-green); }
.rl-dot-error, .rl-dot-skipped { background: var(--rl-red); }
.rl-dot-queued { background: #7c8597; }
@keyframes rl-pulse { 50% { box-shadow: 0 0 0 7px rgba(217, 164, 65, 0); } }
.rl-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.rl-field > span { font-size: 12px; color: var(--rl-muted); font-weight: 500; }
.rl-field small { color: var(--rl-muted); font-size: 11px; }
body.ws-reel input:not([type=checkbox]), body.ws-reel textarea, body.ws-reel select { background: #0f1116; color: var(--rl-text); border: 1px solid var(--rl-line2); border-radius: 9px; padding: 9px 11px; font: 13px/1.45 var(--rl-font); width: 100%; box-sizing: border-box; }
body.ws-reel textarea { resize: vertical; }
body.ws-reel input:focus, body.ws-reel textarea:focus, body.ws-reel select:focus { outline: none; border-color: var(--rl-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .15); }
.rl-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--rl-muted); cursor: pointer; }
.rl-check input { accent-color: var(--rl-gold); }
.rl-card { background: var(--rl-panel); border: 1px solid var(--rl-line); border-radius: var(--rl-r); padding: 16px; margin-bottom: 14px; }
.rl-card h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; margin: 0 0 8px; }
.rl-card h3 small { color: var(--rl-muted); font-weight: 400; }
.rl-empty { text-align: center; padding: 50px 20px; color: var(--rl-muted); }
.rl-empty-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--rl-panel2); color: var(--rl-gold2); margin-bottom: 12px; }
.rl-empty h3 { color: var(--rl-text); margin: 0 0 4px; font-size: 16px; }
.rl-section { margin-top: 34px; }
.rl-section-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.rl-section-h h2 { margin: 0; font-size: 18px; }
.rl-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.rl-table th, .rl-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rl-line); vertical-align: top; }
.rl-table th { color: var(--rl-muted); font-weight: 500; font-size: 12px; }

/* ---------- home ---------- */
.rl-hero { position: relative; max-width: 920px; margin: 26px auto 0; text-align: center; padding: 34px 0 10px; }
.rl-hero-glow { position: absolute; inset: -60px -10% auto; height: 320px; background: radial-gradient(60% 60% at 50% 30%, rgba(217, 164, 65, .18), transparent 70%); pointer-events: none; filter: blur(10px); }
.rl-kicker { position: relative; color: var(--rl-gold2); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.rl-hero h1 { position: relative; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 12px; font-weight: 600; }
.rl-hero-sub { position: relative; color: var(--rl-muted); font-size: 15px; max-width: 640px; margin: 0 auto 24px; line-height: 1.55; }
.rl-ask { position: relative; text-align: left; background: linear-gradient(180deg, #181b22, #13161b); border: 1px solid var(--rl-line2); border-radius: 18px; padding: 14px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(217, 164, 65, .06); }
.rl-ask textarea { background: transparent !important; border: 0 !important; box-shadow: none !important; font-size: 16px !important; padding: 6px 6px 10px !important; resize: none; }
.rl-ask-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rl-ideas { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.rl-idea { border: 1px solid var(--rl-line); background: rgba(255, 255, 255, .02); color: var(--rl-muted); border-radius: 99px; padding: 7px 13px; font: 12px var(--rl-font); cursor: pointer; }
.rl-idea:hover { color: var(--rl-text); border-color: var(--rl-line2); }
.rl-ready { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 20px; font-size: 12px; color: var(--rl-muted); }
.rl-ready-i { display: inline-flex; align-items: center; gap: 5px; }
.rl-ready-i.ok svg { color: var(--rl-green); }
.rl-ready-i.no svg { color: var(--rl-red); }
.rl-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rl-film { display: block; border-radius: var(--rl-r); overflow: hidden; background: var(--rl-panel); border: 1px solid var(--rl-line); color: var(--rl-text); text-decoration: none; transition: transform .18s, border-color .18s; }
.rl-film:hover { transform: translateY(-3px); border-color: #3b4250; text-decoration: none; }
.rl-film-media { aspect-ratio: 16 / 9; background: #0a0b0e; display: grid; place-items: center; overflow: hidden; }
.rl-film.rl-ratio-9x16 .rl-film-media { aspect-ratio: 4 / 5; }
.rl-film-media img, .rl-film-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-film-blank { color: #3b4250; }
.rl-film-meta { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px; }
.rl-film-meta span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rl-muted); }

/* ---------- tiles and grids ---------- */
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.rl-grid-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.rl-tile { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--rl-panel); border: 1px solid var(--rl-line); cursor: zoom-in; transition: border-color .15s, transform .15s; }
.rl-tile:hover { border-color: #444c5a; transform: translateY(-2px); }
.rl-tile-media { aspect-ratio: 16 / 10; background: #0a0b0e; display: grid; place-items: center; overflow: hidden; }
.rl-tile-media img, .rl-tile-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-tile-audio { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--rl-gold2); font-size: 11px; padding: 10px; text-align: center; }
.rl-tile-audio span { color: var(--rl-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-tile-play { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; }
.rl-tile figcaption { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px; font-size: 11.5px; color: var(--rl-muted); }
.rl-tile figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-tile figcaption em { font-style: normal; flex: none; }
.rl-tile-pick { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 7px; padding: 5px 9px; font: 600 11px var(--rl-font); background: rgba(0, 0, 0, .72); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.rl-tile:hover .rl-tile-pick { opacity: 1; }
.rl-tile-pick:hover { background: var(--rl-gold); color: var(--rl-gold-ink); }
.rl-skel { height: 120px; border-radius: 10px; background: linear-gradient(90deg, #15181e, #1d2129, #15181e); background-size: 200% 100%; animation: rl-skel 1.2s linear infinite; }
@keyframes rl-skel { to { background-position: -200% 0; } }

/* ---------- viewer and dialogs ---------- */
.rl-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 5, 7, .94); display: grid; grid-template-columns: 1fr 340px; backdrop-filter: blur(6px); }
.rl-viewer-stage { display: grid; place-items: center; padding: 40px; min-width: 0; }
.rl-viewer-stage img, .rl-viewer-stage video { max-width: 100%; max-height: calc(100vh - 80px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.rl-viewer-side { background: var(--rl-panel); border-left: 1px solid var(--rl-line); padding: 24px 20px; overflow-y: auto; color: var(--rl-text); }
.rl-viewer-side h3 { margin: 0 0 4px; font-size: 16px; }
.rl-viewer-prompt { font-size: 12.5px; line-height: 1.55; background: #0f1116; border: 1px solid var(--rl-line); border-radius: 9px; padding: 10px 12px; margin: 12px 0; max-height: 40vh; overflow-y: auto; color: #c8ccd4; white-space: pre-wrap; }
.rl-viewer-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.rl-viewer-x, .rl-viewer-prev, .rl-viewer-next { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rl-line2); background: rgba(20, 22, 28, .8); color: #fff; cursor: pointer; }
.rl-viewer-x { top: 16px; right: 356px; }
.rl-viewer-prev { left: 16px; top: 50%; }
.rl-viewer-next { right: 356px; top: 50%; }
.rl-modal-back { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 5, 7, .7); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.rl-modal { width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--rl-panel); border: 1px solid var(--rl-line2); border-radius: 16px; color: var(--rl-text); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); font-family: var(--rl-font); }
.rl-modal-wide { width: min(900px, 100%); }
.rl-modal header, .rl-modal footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.rl-modal header { border-bottom: 1px solid var(--rl-line); }
.rl-modal header h3 { margin: 0; font-size: 15px; }
.rl-modal footer { border-top: 1px solid var(--rl-line); justify-content: flex-end; }
.rl-modal-body { padding: 16px 18px; overflow-y: auto; }
.rl-choose-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

/* ---------- the film screen ---------- */
.rl-film-page { display: flex; flex-direction: column; height: 100%; }
.rl-film-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rl-line); background: var(--rl-bg2); flex-wrap: wrap; }
.rl-title { border: 0; background: none; color: var(--rl-text); font: 600 16px var(--rl-font); cursor: text; padding: 4px 6px; border-radius: 6px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-title:hover { background: var(--rl-panel2); }
.rl-film-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr) 330px; }
.rl-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rl-line); background: var(--rl-bg2); }
.rl-chat-h { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rl-line); }
.rl-chat-h div { display: flex; flex-direction: column; }
.rl-chat-h small { color: var(--rl-muted); font-size: 11.5px; }
.rl-chat-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--rl-gold2), #b9792a); color: var(--rl-gold-ink); }
.rl-chat-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rl-chat-hello { color: var(--rl-text); font-size: 13.5px; line-height: 1.55; padding: 4px; }
.rl-msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.rl-msg small { display: block; margin-top: 6px; font-size: 11px; }
.rl-msg-u { align-self: flex-end; background: #2a2f3a; border-bottom-right-radius: 4px; }
.rl-msg-a { align-self: flex-start; background: var(--rl-panel2); border: 1px solid var(--rl-line); border-bottom-left-radius: 4px; }
.rl-typing { display: flex; gap: 4px; padding: 14px; }
.rl-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--rl-muted); animation: rl-dot 1s infinite; }
.rl-typing span:nth-child(2) { animation-delay: .15s; } .rl-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rl-dot { 50% { opacity: .2; transform: translateY(-3px); } }
.rl-chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rl-line); align-items: flex-end; }
.rl-chat-in textarea { flex: 1; resize: none; }
.rl-chat-in .rl-btn { height: 40px; width: 44px; justify-content: center; padding: 0; }
.rl-plan { background: linear-gradient(180deg, rgba(217, 164, 65, .08), rgba(217, 164, 65, .02)); border: 1px solid rgba(217, 164, 65, .35); border-radius: 14px; padding: 13px 14px; font-size: 13px; }
.rl-plan-h { display: flex; align-items: center; gap: 7px; color: var(--rl-gold2); margin-bottom: 6px; }
.rl-plan p { margin: 4px 0 8px; line-height: 1.5; }
.rl-plan-cast { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.rl-plan-shots { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.rl-plan-shots em { color: var(--rl-muted); font-style: normal; font-size: 11.5px; }
.rl-plan-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rl-stage { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: radial-gradient(120% 60% at 50% 0%, #171a21, var(--rl-bg)); }
.rl-view { flex: 1; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 18px 8px; }
.rl-view-frame, .rl-view-blank { max-height: 100%; aspect-ratio: 16 / 9; height: 100%; max-width: 100%; border-radius: 12px; overflow: hidden; background: #050608; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); border: 1px solid var(--rl-line); }
.rl-view-frame.rl-ratio-9x16, .rl-view-blank.rl-ratio-9x16 { aspect-ratio: 9 / 16; }
.rl-view-frame.rl-ratio-1x1, .rl-view-blank.rl-ratio-1x1 { aspect-ratio: 1; }
.rl-view-frame.rl-ratio-4x5, .rl-view-blank.rl-ratio-4x5 { aspect-ratio: 4 / 5; }
.rl-view-frame img, .rl-view-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.rl-view-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #4a5160; text-align: center; padding: 20px; }
.rl-view-blank p { color: var(--rl-muted); font-size: 13px; max-width: 360px; margin: 0; }
.rl-view-cap { font-size: 12px; color: var(--rl-muted); margin-top: 8px; }
.rl-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--rl-line); }
.rl-tab { border: 0; background: none; color: var(--rl-muted); font: 500 13px var(--rl-font); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.rl-tab:hover { color: var(--rl-text); }
.rl-tab.on { color: var(--rl-gold2); border-bottom-color: var(--rl-gold); }
.rl-tabbody { height: 196px; overflow: auto; padding: 12px 16px; flex: none; }
.rl-tabbody .rl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rl-timeline { display: flex; gap: 10px; height: 100%; align-items: stretch; }
.rl-shot { position: relative; flex: none; width: 196px; border-radius: 11px; background: var(--rl-panel); border: 1px solid var(--rl-line); cursor: pointer; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, transform .15s; text-align: left; color: var(--rl-text); font-family: var(--rl-font); padding: 0; }
.rl-shot:hover { border-color: #444c5a; }
.rl-shot.on { border-color: var(--rl-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .18); }
.rl-shot.busy::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rl-gold), transparent); background-size: 50% 100%; animation: rl-bar 1.2s linear infinite; }
@keyframes rl-bar { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.rl-shot-n { position: absolute; top: 6px; left: 6px; z-index: 2; min-width: 20px; height: 20px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.rl-shot-frames { height: 110px; background: #0a0b0e; }
.rl-shot-pair { display: flex; align-items: center; height: 100%; }
.rl-shot-pair > img, .rl-shot-pair > .rl-th-blank { flex: 1; height: 100%; object-fit: cover; min-width: 0; }
.rl-shot-video { position: relative; height: 100%; }
.rl-shot-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-th-blank { display: grid; place-items: center; color: #4a5160; font-size: 11px; background: repeating-linear-gradient(45deg, #101217, #101217 6px, #13161c 6px, #13161c 12px); }
.rl-arrow { color: var(--rl-gold2); font-size: 13px; padding: 0 4px; flex: none; }
.rl-shot-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rl-shot-meta b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-shot-meta span { font-size: 11px; color: var(--rl-muted); }
.rl-shot-add { align-items: center; justify-content: center; gap: 6px; color: var(--rl-muted); border-style: dashed; width: 130px; background: transparent; }
.rl-shot-add:hover { color: var(--rl-gold2); border-color: var(--rl-gold); }
.rl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-step { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; background: var(--rl-panel); font-size: 12.5px; }
.rl-step b { font-weight: 500; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-step span { color: var(--rl-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-step-error span { color: var(--rl-red); }

/* the prompt bar */
.rl-composer { border-top: 1px solid var(--rl-line); background: var(--rl-bg2); padding: 10px 16px 14px; }
.rl-modes { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.rl-mode { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--rl-muted); font: 500 12px var(--rl-font); cursor: pointer; }
.rl-mode:hover { color: var(--rl-text); background: var(--rl-panel2); }
.rl-mode.on { color: var(--rl-gold2); background: rgba(217, 164, 65, .12); border-color: rgba(217, 164, 65, .35); }
.rl-cbar { display: flex; gap: 10px; align-items: stretch; background: #0f1116; border: 1px solid var(--rl-line2); border-radius: 14px; padding: 8px; }
.rl-cbar:focus-within { border-color: var(--rl-gold); }
.rl-cbar textarea { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent !important; resize: none; min-height: 48px; }
.rl-cslots { display: flex; align-items: center; gap: 6px; }
.rl-cslot { position: relative; flex: none; width: 58px; height: 58px; border-radius: 10px; border: 1px dashed var(--rl-line2); background: var(--rl-panel); color: var(--rl-muted); cursor: pointer; display: grid; place-items: center; font: 10px var(--rl-font); overflow: hidden; padding: 0; text-align: center; }
.rl-cslot span { display: block; margin-top: 2px; }
.rl-cslot:hover { border-color: var(--rl-gold); color: var(--rl-gold2); }
.rl-cslot.has { border-style: solid; }
.rl-cslot img { width: 100%; height: 100%; object-fit: cover; }
.rl-cslot i { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #fff; font-style: normal; }
.rl-cslot b { position: absolute; bottom: 2px; left: 0; right: 0; font-size: 9px; color: #fff; text-shadow: 0 1px 2px #000; }
.rl-copts { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.rl-copts select { width: auto; padding: 6px 8px; font-size: 12px; }

/* the right side */
.rl-side { border-left: 1px solid var(--rl-line); background: var(--rl-bg2); overflow-y: auto; padding: 14px; }
.rl-cast { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.rl-cast-i { display: flex; gap: 10px; }
.rl-cast-pic { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--rl-panel2); display: grid; place-items: center; color: #4a5160; }
.rl-cast-pic img { width: 100%; height: 100%; object-fit: cover; }
.rl-cast-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.rl-cast-t .rl-muted { font-size: 11.5px; line-height: 1.4; }
.rl-cast-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.rl-shot-ed .rl-ed-h { display: flex; gap: 6px; margin-bottom: 10px; }
.rl-shot-ed .rl-ed-h input { font-weight: 600; }
.rl-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: #0f1116; border: 1px solid var(--rl-line2); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.rl-seg button { border: 0; background: transparent; color: var(--rl-muted); font: 500 11px var(--rl-font); border-radius: 7px; padding: 6px 2px; cursor: pointer; }
.rl-seg button.on { background: var(--rl-panel2); color: var(--rl-gold2); }
.rl-ed-cast { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.rl-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rl-slot { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px dashed var(--rl-line2); background: #0f1116; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--rl-muted); font-size: 11px; }
.rl-slot.has { border-style: solid; }
.rl-slot.drop { border-color: var(--rl-gold); background: rgba(217, 164, 65, .08); }
.rl-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-slot-acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; padding: 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.rl-ed-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.rl-field-sm { margin: 0; width: 90px; }
.rl-ed-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rl-ed-vid { margin-top: 12px; }
.rl-audio { width: 100%; margin: -4px 0 12px; height: 34px; }

/* ---------- Spaces ---------- */
.rl-space-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rl-space-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--rl-r); background: var(--rl-panel); border: 1px solid var(--rl-line); color: var(--rl-text); text-decoration: none; }
.rl-space-card:hover { border-color: #444c5a; text-decoration: none; }
.rl-space-thumb { height: 100px; border-radius: 9px; display: grid; place-items: center; color: var(--rl-gold2); margin-bottom: 8px; background: radial-gradient(circle at 1px 1px, #2a2f39 1px, transparent 0) 0 0 / 14px 14px, #101217; }
.rl-sp { display: flex; flex-direction: column; height: 100%; }
.rl-sp-h { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--rl-line); background: var(--rl-bg2); flex-wrap: wrap; z-index: 5; }
.rl-sp-add { display: flex; gap: 5px; flex-wrap: wrap; }
.rl-sp-canvas { position: relative; flex: 1; overflow: hidden; cursor: default; background: radial-gradient(circle at 1px 1px, #232832 1px, transparent 0) 0 0 / 22px 22px, var(--rl-bg); touch-action: none; }
.rl-sp-canvas.grab { cursor: grabbing; }
.rl-sp-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rl-sp-wires { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.rl-wire { fill: none; stroke: var(--c, #8b93a7); stroke-width: 2.5; opacity: .75; cursor: pointer; pointer-events: stroke; }
.rl-wire:hover { opacity: 1; stroke-width: 4; stroke: var(--rl-red); }
.rl-wire-temp { stroke: var(--rl-gold); stroke-dasharray: 6 5; opacity: 1; pointer-events: none; }
.rl-sp-hint { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: var(--rl-muted); background: rgba(13, 15, 19, .8); border: 1px solid var(--rl-line); border-radius: 8px; padding: 7px 10px; pointer-events: none; }
.rl-node { position: absolute; background: var(--rl-panel); border: 1px solid var(--rl-line2); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); font-size: 12px; color: var(--rl-text); }
.rl-node.busy { border-color: var(--rl-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .16), 0 18px 40px -18px rgba(0, 0, 0, .7); }
.rl-node-h { display: flex; align-items: center; gap: 7px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--rl-line); cursor: grab; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.rl-node-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--c); color: #0b0c0f; flex: none; }
.rl-node-t { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 2px 4px !important; font-weight: 600 !important; font-size: 12.5px !important; }
.rl-node-ports-in { padding: 6px 0 0; }
.rl-port-in { position: relative; display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 16px; color: var(--rl-muted); font-size: 11px; }
.rl-port-in i, .rl-port-out i { width: 12px; height: 12px; border-radius: 50%; background: #0f1116; border: 2px solid var(--c, #8b93a7); display: block; }
.rl-port-in i { position: absolute; left: -7px; }
.rl-port-in.ok i { background: var(--rl-gold); border-color: var(--rl-gold2); transform: scale(1.35); }
.rl-port-out { position: absolute; right: -8px; top: 44px; cursor: crosshair; padding: 2px; }
.rl-port-out i { width: 14px; height: 14px; background: var(--c); border-color: var(--rl-bg); }
.rl-node-body { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.rl-node-body textarea, .rl-node-body input, .rl-node-body select { font-size: 12px !important; padding: 7px 9px !important; }
.rl-sp-row { display: flex; gap: 6px; }
.rl-sp-up { display: flex; gap: 6px; }
.rl-node-media img, .rl-node-media video { width: 100%; border-radius: 9px; display: block; cursor: zoom-in; background: #000; }
.rl-node-media audio { width: 100%; height: 32px; }
.rl-node-hist { display: flex; gap: 4px; flex-wrap: wrap; }
.rl-node-hist button { width: 38px; height: 28px; padding: 0; border-radius: 6px; border: 1px solid var(--rl-line2); background: #0f1116; overflow: hidden; cursor: pointer; color: var(--rl-muted); }
.rl-node-hist button.on { border-color: var(--rl-gold); }
.rl-node-hist img { width: 100%; height: 100%; object-fit: cover; }
.rl-node-run { justify-content: center; }

/* ---------- characters page ---------- */
.rl-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rl-char { background: var(--rl-panel); border: 1px solid var(--rl-line); border-radius: var(--rl-r); padding: 12px; }
.rl-char-pic { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--rl-panel2); display: grid; place-items: center; color: #4a5160; margin-bottom: 10px; }
.rl-char-pic img { width: 100%; height: 100%; object-fit: cover; }
.rl-char p { margin: 4px 0 8px; }

/* ---------- smaller screens: one column, the chat and side panels stack ---------- */
@media (max-width: 1180px) { .rl-film-cols { grid-template-columns: 300px minmax(0, 1fr); } .rl-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rl-line); max-height: 45vh; } .rl-film-cols { grid-template-rows: 1fr auto; } }
@media (max-width: 820px) {
  .sidebar.rl-rail { position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: 100%; height: 58px; flex-direction: row; justify-content: space-around; padding: 0 6px; border-right: 0; border-top: 1px solid var(--rl-line); }
  .rl-rail-nav, .rl-rail-foot { flex-direction: row; flex: none; }
  .rl-rail-logo, .rl-rail-sep { display: none; }
  body.ws-reel #main { height: calc(100dvh - 58px); }
  .rl-page { padding: 18px 16px 40px; }
  .rl-film-page { overflow-y: auto; }
  .rl-film-cols { display: flex; flex-direction: column; }
  .rl-chat { max-height: 60vh; border-right: 0; border-bottom: 1px solid var(--rl-line); }
  .rl-view { min-height: 220px; }
  .rl-side { max-height: none; }
  .rl-cbar { flex-wrap: wrap; }
  .rl-viewer { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .rl-viewer-side { max-height: 40vh; border-left: 0; border-top: 1px solid var(--rl-line); }
  .rl-viewer-x, .rl-viewer-next { right: 16px; }
}

/* ---------- Voices (ElevenLabs style) ---------- */
.rl-vc-cols { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.15fr); gap: 16px; align-items: start; }
.rl-tts textarea { min-height: 160px; font-size: 15px !important; line-height: 1.6 !important; }
.rl-tts-voice { display: flex; gap: 8px; margin: 6px 0 10px; }
.rl-tts-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.rl-mt { margin-top: 20px !important; }
.rl-thist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rl-thist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--rl-panel2); }
.rl-thist li div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rl-thist li b { font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-vlib-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rl-vlib-h h3 { margin: 0; }
.rl-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rl-vcard { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--rl-panel2); border: 1px solid var(--rl-line); transition: border-color .15s; }
.rl-vcard:hover { border-color: #444c5a; }
.rl-vcard.on { border-color: var(--rl-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .14); }
.rl-vcard-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rl-vcard-t b { font-size: 13px; }
.rl-vcard-t p { margin: 2px 0 0; line-height: 1.4; }
.rl-vcard-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rl-vplay { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--rl-gold2), #b9792a); color: var(--rl-gold-ink); }
.rl-vplay:hover { filter: brightness(1.08); }
.rl-vplay.on { background: var(--rl-green); color: #052b14; }
.rl-vplay.busy { animation: rl-pulse 1.2s infinite; }
.rl-vplay-sm { width: 30px; height: 30px; }
.rl-vkind { align-self: flex-start; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: #262b35; color: var(--rl-muted); }
.rl-vkind-designed { background: rgba(130, 179, 102, .16); color: #9ed07f; }
.rl-vkind-cloned { background: rgba(217, 164, 65, .16); color: var(--rl-gold2); }
.rl-vc-ex { margin: -4px 0 12px; }
.rl-vc-src { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rl-rec-on { background: #3a1513 !important; border-color: var(--rl-red) !important; color: #ffb3ab !important; }
.rl-vc-consent { align-items: flex-start; background: #0f1116; border: 1px solid var(--rl-line2); border-radius: 10px; padding: 10px 12px; line-height: 1.45; color: var(--rl-text); margin: 4px 0 8px; }
.rl-vc-acts { display: flex; gap: 8px; margin-top: 6px; }
.rl-cast-voice { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--rl-gold2); }
@media (max-width: 980px) { .rl-vc-cols { grid-template-columns: 1fr; } }
