:root{--ink:#263d35;--muted:#758078;--green:#245c4a;--line:#e2e7df;--paper:#f5f6f1;--white:#fff;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 'Segoe UI',Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:10px;font-size:22px;letter-spacing:-1px;font-weight:650;text-decoration:none}.brand-symbol{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff35;border-radius:10px;font:italic 31px var(--serif)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;margin:0 0 14px}.muted{color:var(--muted);margin:0}.primary{border:0;background:var(--green);color:white;border-radius:9px;padding:13px 24px;display:flex;justify-content:space-between;align-items:center;gap:36px;font-weight:600}.primary:hover{background:#194334}.primary span{font-size:20px;font-weight:400}.secondary{background:white;border:1px solid var(--line);padding:9px 15px;border-radius:7px;color:var(--ink)}label{display:block;font-weight:600;font-size:12px;margin:20px 0 8px}input:not([type=checkbox]):not([type=file]),select{width:100%;border:1px solid #dce2da;border-radius:7px;padding:11px 12px;color:var(--ink);background:#fff;outline:none}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #91b7a3;outline-offset:3px}input::placeholder{color:#a0a99f;font-size:12px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{padding:52px 65px;background:radial-gradient(ellipse at 20% 65%,#426350 0,transparent 60%),linear-gradient(130deg,#123d32,#294b39);color:#edf0df;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.login-art:after{content:'';position:absolute;width:520px;height:520px;border:1px solid #ffffff12;border-radius:50%;right:-220px;bottom:-60px;box-shadow:0 0 0 70px #ffffff03,0 0 0 140px #ffffff03;pointer-events:none}.login-art h1{font:normal clamp(42px,5vw,72px)/1.1 var(--serif);letter-spacing:-2px;margin:18px 0 26px}.login-art p:not(.eyebrow){color:#bbcdbf;line-height:1.9}.login-art small{font-size:9px;letter-spacing:2px;color:#a6bcac}.login-panel{display:grid;place-items:center;padding:40px}.login-panel form{width:min(360px,100%)}.login-panel h2{font:normal 36px var(--serif);margin:10px 0 18px}.login-panel .primary{width:100%;margin-top:28px}.login-note{font-size:11px;color:#90998f;margin-top:24px}.studio{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;background:#183e33;color:#d5e1d4;padding:34px 22px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.sidebar .brand{margin:0 8px 48px}.nav-label{margin:0 16px 12px;font-size:9px;letter-spacing:2px;color:#8ca999}.sidebar nav{display:grid;gap:6px}.sidebar nav a{padding:12px 15px;border-radius:8px;font-size:12px;text-decoration:none;display:flex;align-items:center;gap:12px}.sidebar nav a span{font-size:19px}.nav-active{background:#315446;color:white}.sidebar nav a:hover{background:#315446}.sidebar-bottom{margin-top:auto}.studio-note{border:1px solid #ffffff19;border-radius:9px;padding:17px 15px;font-size:10px;color:#c8d5c7}.status-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#9fbea4;margin-right:6px}.studio-note p{font:normal 18px/1.5 var(--serif);color:#a8bdac;margin:13px 0 0}.account{display:flex;align-items:center;gap:9px;border-top:1px solid #ffffff18;margin-top:24px;padding-top:22px}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#d2dfc7;color:#2a4c38}.account strong{display:block;font-size:11px;max-width:105px;overflow:hidden;text-overflow:ellipsis}.account small{display:block;font-size:9px;color:#92af9e}.icon-button{background:none;color:#b9ccbb;border:0;margin-left:auto;font-size:20px}.workspace{margin-left:236px;width:calc(100% - 236px)}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:11px;color:#465b4d}.breadcrumb{color:#9aa296;margin-left:12px}.workspace-badge{font-size:9px;letter-spacing:2px;color:#8c978b}.page-content{padding:40px 44px 0;max-width:1450px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.page-heading .eyebrow{color:#7b8c77}.page-heading h1{font:normal 44px/1.2 var(--serif);letter-spacing:-1.8px;margin:0 0 12px}.page-heading h1 span{color:#9cae86}.page-heading .muted{font-size:12px}.format-pill{font-size:10px;color:#6e7d6b;border:1px solid var(--line);padding:7px 13px;border-radius:30px;white-space:nowrap}.format-pill span{padding:0 6px;color:#a5b19c}.production-layout{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:24px;align-items:start}.production{min-width:0;display:grid;gap:20px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:26px 28px}.section-title{display:flex;gap:13px;align-items:flex-start;margin-bottom:24px}.step{background:#eef2e9;color:#6c8064;font:11px var(--serif);border-radius:50%;width:29px;height:29px;display:grid;place-items:center;flex-shrink:0;margin-top:1px}.section-title h2{font-size:16px;font-weight:600;margin:0}.section-title p{font-size:11px;color:var(--muted);margin:3px 0 0}.input-with-icon{position:relative}.input-with-icon>span{position:absolute;top:8px;left:12px;color:#79966d;font-size:20px}.input-with-icon input{padding-left:40px!important}.field-note{font-size:10px;color:#8b9588;line-height:1.8;margin:9px 0 0}.field-note code{font-family:inherit;background:#f1f4ed;padding:1px 4px;border-radius:3px;color:#5c7554}.dropzone{border:1px dashed #cbd7c4;border-radius:9px;background:#fafbf7;min-height:186px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;padding:20px;cursor:pointer}.dropzone input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.dropzone:focus-within,.dropzone.drag{outline:2px solid #91b7a3;background:#eef4e8}.upload-symbol{width:35px;height:35px;border-radius:10px;border:1px solid #dde5d6;color:#6d8563;background:#f1f5eb;font-size:24px;margin-bottom:12px}.dropzone strong{font-size:12px;max-width:100%;overflow-wrap:anywhere}.dropzone>span:not(.upload-symbol){font-size:11px;color:#8b9784;margin-top:2px}.dropzone small{font-size:9px;color:#9ca693;margin-top:14px}.visual-preview{display:block;max-width:100%;max-height:180px;object-fit:contain;border-radius:8px;margin-top:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-grid label{margin-top:12px}fieldset{border:0;border-top:1px solid #edf0e9;padding:20px 0 0;margin:26px 0 0;min-width:0}legend{float:left;font-weight:600;font-size:12px;margin-bottom:12px}fieldset:after{content:'';display:block;clear:both}.effects{clear:both;display:flex;flex-wrap:wrap;gap:8px}.effects label{margin:0;padding:7px 10px;border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:400;display:flex;gap:6px;align-items:center}input[type=checkbox]{accent-color:var(--green);margin:0;width:13px;height:13px}fieldset>label{font-size:10px;margin-top:15px}fieldset>select{max-width:250px;font-size:11px}#music-controls{border-top:1px solid #edf0e9;margin-top:20px;padding-top:15px}.submit-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.submit-row p{font-size:10px;max-width:230px}.guide-card{background:#e8eddf;border:1px solid #dce4d2;border-radius:12px;padding:28px 24px;color:#40563a}.guide-card .eyebrow{font-size:8px;letter-spacing:1.6px;color:#849273}.guide-card h2{font:normal 28px/1.25 var(--serif);margin:18px 0 28px;letter-spacing:-.7px}.guide-card ol{padding:0;list-style:none;counter-reset:steps;display:grid;gap:23px}.guide-card li{counter-increment:steps;position:relative;padding-left:31px}.guide-card li:before{content:counter(steps);position:absolute;left:0;top:0;border:1px solid #becbb0;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-size:9px}.guide-card li strong{display:block;font-size:11px;font-weight:600;margin-bottom:4px}.guide-card li span{display:block;font-size:10px;color:#839076;line-height:1.8}.guide-foot{border-top:1px solid #d0dac3;margin:25px 0 0;padding-top:17px;font-size:9px;color:#829073;line-height:1.9}.tip-card{padding:25px 22px}.tip-card>span{font-size:24px;color:#879877}.tip-card h3{font:normal 19px/1.4 var(--serif);margin:10px 0}.tip-card p{font-size:11px;line-height:1.9;color:#8a9583}.history{margin-top:50px}.history-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.history-heading .eyebrow{font-size:8px;color:#849078;margin-bottom:6px}.history-heading h2{font:normal 25px var(--serif);margin:0}.empty-state{padding:36px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:12px;color:#8c9883}.jobs{display:grid;gap:10px}.job{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border:1px solid var(--line);padding:18px 20px;border-radius:9px}.job-info{min-width:0}.job-title{display:block;font-size:12px;font-weight:600}.job-meta{font-size:10px;color:#8b9686;margin:4px 0 7px}.job-message{font-size:11px;color:#74836b;margin:0;overflow-wrap:anywhere}.job-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;max-width:44%}.job-actions a,.job-actions button{border:1px solid var(--line);border-radius:6px;background:white;padding:6px 10px;text-decoration:none;font-size:10px;color:#406344}.job-status{display:inline-block;border-radius:30px;padding:3px 8px;font-size:9px;background:#eef3e8;color:#617453}.job-status.failed,.job-status.interrupted{background:#fff0e7;color:#a56d48}.job-status.complete{background:#e6f0e7;color:#396848}.job-status.rendering,.job-status.uploading,.job-status.preparing{background:#edf1fa;color:#647d9d}.setup-alert{border:1px solid #e3d8ad;color:#8a7543;background:#fffbeb;padding:13px 16px;margin-bottom:22px;border-radius:8px;font-size:11px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#234b3d;color:white;border:1px solid #ffffff30;border-radius:9px;padding:12px 22px;box-shadow:0 8px 30px #153b3520;z-index:10;max-width:calc(100vw - 32px);font-size:12px}footer{border-top:1px solid var(--line);margin-top:48px;padding:24px 0;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.3px;color:#98a08e}footer span{letter-spacing:0;font-size:9px}@media(min-width:1600px){.page-content{padding-top:55px}.production-layout{grid-template-columns:minmax(0,1fr) 310px;gap:32px}.card{padding:32px 36px}}@media(max-width:1150px){.sidebar{width:205px;padding:28px 15px}.workspace{margin-left:205px;width:calc(100% - 205px)}.page-content{padding:30px 26px 0}.topbar{padding:0 26px}.production-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.card{padding:22px}.guide-card{padding:24px 19px}.page-heading h1{font-size:37px}.format-pill{font-size:9px}.submit-row{flex-wrap:wrap}}@media(max-width:900px){.production-layout{grid-template-columns:minmax(0,1fr)}.right-column{display:none}.page-heading{gap:20px}.format-pill{display:none}.job{align-items:flex-start}.job-actions{max-width:40%}.login-art{padding:38px}.login-panel{padding:30px}}@media(max-width:640px){.sidebar{position:static;width:100%;height:auto;flex-direction:row;padding:15px 20px;align-items:center;justify-content:space-between}.sidebar .brand{margin:0;font-size:19px}.sidebar .brand-symbol{width:29px;height:29px;font-size:25px}.sidebar .nav-label,.sidebar nav,.studio-note,.account small,.avatar{display:none}.sidebar-bottom{margin:0}.account{border:0;margin:0;padding:0}.account strong{max-width:80px}.studio{display:block}.workspace{margin-left:0;width:100%}.topbar{height:51px;padding:0 20px;font-size:10px}.workspace-badge{font-size:7px}.page-content{padding:28px 18px 0}.page-heading h1{font-size:36px}.page-heading .eyebrow{font-size:8px}.page-heading{margin-bottom:24px}.card{padding:22px 18px}.form-grid{gap:0 13px}.form-grid select{font-size:11px;padding:10px 8px}.effects{gap:6px}.effects label{padding:6px 8px}.submit-row{align-items:stretch}.submit-row .primary{width:100%}.submit-row p{max-width:100%}.job{display:block}.job-actions{max-width:100%;justify-content:flex-start;margin-top:13px}.history{margin-top:36px}footer span{display:none}.login-screen{display:block}.login-art{min-height:260px;padding:24px 28px}.login-art .eyebrow,.login-art small,.login-art div>p:not(.eyebrow){display:none}.login-art h1{font-size:42px;margin:25px 0 8px}.login-panel{padding:35px 28px}.login-panel h2{font-size:31px}.login-art:after{width:240px;height:240px;right:-120px}}
.overlay-upload{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.overlay-upload summary{cursor:pointer;font-weight:600;font-size:12px}input[type=file]:not(#visual-file){width:100%;font-size:11px;color:var(--muted);padding:9px 0}input[type=file]::file-selector-button{border:1px solid var(--line);background:#f1f5eb;color:var(--green);border-radius:6px;padding:7px 10px;margin-right:8px;cursor:pointer}.password-dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(440px,calc(100vw - 32px));color:var(--ink)}.password-dialog::backdrop{background:#16372b99}.password-dialog h2{font:normal 27px var(--serif);margin:0}.password-dialog .muted{font-size:12px}.password-dialog .primary{margin-top:22px;width:100%}.password-dialog .history-heading{margin-bottom:15px}.account{gap:6px}.account .icon-button{padding:2px}.toast{z-index:100}
.plan-summary{background:#e8eddf;border:1px solid #d2ddc8;border-radius:8px;padding:13px 16px;margin-bottom:20px;font-size:12px;color:#406344}.result-video{display:block;width:100%;max-width:600px;max-height:350px;margin-top:14px;border-radius:8px;background:#132a21}#password-error{color:#a34838;font-size:12px}
.overlay-preview{clear:both;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.overlay-preview h3{font-size:13px;margin:0}.opacity-control{display:flex;align-items:center;gap:12px;margin:14px 0;font-size:11px}.opacity-control span{width:60px}.opacity-control input[type=range]{flex:1;width:auto;accent-color:var(--green);padding:0;border:0}.opacity-control output{width:42px;text-align:right;font-variant-numeric:tabular-nums}#overlay-canvas{width:100%;height:auto;margin-top:16px;border-radius:8px;background:#142c20}.admin-dialog{width:min(760px,calc(100vw - 32px));border:1px solid var(--line);border-radius:14px;padding:26px;color:var(--ink)}.admin-dialog::backdrop{background:#16372b99}.admin-user{padding:18px 0;border-bottom:1px solid var(--line)}.admin-user .muted{font-size:11px;margin:6px 0 10px}.admin-user select{display:inline-block;width:130px;margin-right:8px}.admin-user button{margin:4px}#admin-error{color:#a34838;font-size:12px}
.sidebar{overflow-y:auto}.admin-navigation{margin-top:28px;margin-bottom:24px}.admin-nav-toggle{width:100%;border:0;background:none;padding:8px 15px;color:#b8cdbb;text-align:left;font-size:11px;letter-spacing:.5px;display:flex;justify-content:space-between;align-items:center}.sidebar .admin-subnav{margin-top:7px;padding-left:10px;border-left:1px solid #ffffff20;display:grid}.sidebar .admin-subnav a{font-size:11px;padding:10px 13px}.admin-page{padding-bottom:18px}.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric-card{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.metric-card p{margin:0 0 10px;font-size:11px;color:var(--muted)}.metric-card strong{font:normal 31px var(--serif)}.admin-page .card h2{font-size:16px;margin:0 0 10px}.admin-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.admin-plan-grid .admin-user{padding:22px;border:1px solid var(--line)}.admin-plan-grid input{width:100%}.admin-create-card{max-width:560px}.admin-create-card .primary{margin-top:22px}.admin-management{margin-top:24px}.admin-page .admin-user{display:block}.admin-page .admin-user p{margin:8px 0 14px}.monitor-toolbar{display:flex;gap:18px;margin:14px 0 24px;align-items:end}.monitor-toolbar label{margin:0;flex:1}.monitor-toolbar input,.monitor-toolbar select{display:block;margin-top:8px}.monitor-table-wrap{overflow-x:auto}.monitor-table{width:100%;border-collapse:collapse;text-align:left;min-width:790px}.monitor-table th{font-size:10px;color:#7b8874;background:#f7f9f3;padding:12px 10px;font-weight:600}.monitor-table td{border-bottom:1px solid var(--line);padding:16px 10px;font-size:11px;vertical-align:top}.monitor-table small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.monitor-table strong{display:block;font-size:12px}.monitor-table progress{display:block;width:135px;height:7px;margin-top:9px;accent-color:var(--green)}.presence{display:inline-block;font-size:10px;border-radius:20px;padding:3px 7px;background:#f0f1ee;color:#7b8377}.presence.online{background:#e7f1e3;color:#487840}.monitor-table .expired-label{color:#ab7747}#admin-new-code{overflow-wrap:anywhere}.admin-page-title{margin:0}@media(max-width:1100px){.admin-plan-grid{grid-template-columns:1fr}.admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.sidebar{flex-wrap:wrap;overflow-y:visible}.sidebar>nav{display:flex;order:2;width:100%;margin-top:14px;gap:8px}.sidebar>nav a{font-size:11px;padding:8px 12px}.sidebar-bottom{margin-left:auto}.admin-navigation{order:3;width:100%;margin:14px 0 0}.admin-nav-toggle{padding:7px 0}.sidebar .admin-subnav{display:flex;flex-wrap:wrap;margin-top:6px;padding-left:0;border-left:0;gap:4px}.sidebar .admin-subnav a{padding:8px 9px;font-size:10px}.monitor-toolbar{display:block}.monitor-toolbar label{margin-bottom:12px}.admin-summary{gap:10px}.metric-card{padding:16px}.metric-card strong{font-size:25px}.admin-page .page-heading{align-items:flex-start}.admin-page .page-heading h1{font-size:30px}}
.brand-logo{display:block;width:40px;height:40px;flex-shrink:0;object-fit:contain}.sidebar .brand{font-size:23px;letter-spacing:-.8px}.sidebar{background:var(--brand-sidebar,#183e33)}.login-art{background:radial-gradient(ellipse at 20% 65%,#ffffff10 0,transparent 60%),var(--brand-sidebar,#183e33)}.login-art h1,.login-art #brand-login-description{white-space:pre-line}.page-heading h1 span{color:var(--brand-accent,#b9d48c)}.primary:hover{filter:brightness(.9);background:var(--green)}footer>[data-brand-name]{letter-spacing:1.3px;font-size:8px}@media(max-width:640px){.sidebar .brand-logo{width:32px;height:32px}.sidebar .brand{font-size:21px}footer>[data-brand-name]{display:inline}}
#duration{width:100%;padding:0;accent-color:var(--green);border:0;background:transparent;margin:10px 0;height:24px}#duration-display{float:right;font-variant-numeric:tabular-nums;color:var(--green);font-weight:700}.duration-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.duration-inputs label{font-size:10px;margin:0}.duration-inputs input{margin-top:4px;padding:7px!important;font-size:12px}.duration-inputs input:disabled{background:#f0f2ed;color:#a1aa9b}
.storage-card{margin-bottom:30px}.storage-card h2{margin:0;font-size:17px}.storage-card #results-plan{font-size:12px}.storage-card progress{width:100%;height:14px;accent-color:var(--green);display:block;margin:18px 0}.storage-breakdown{display:flex;flex-wrap:wrap;gap:12px 22px;font-size:11px;color:var(--muted);margin-bottom:16px}.storage-card .history-heading>strong{font-size:13px;font-variant-numeric:tabular-nums}.results-heading h2{font:normal 25px var(--serif);margin:0}.results-heading>span{font-size:11px}.results-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:24px}.results-pagination span{font-size:11px}.job-file{font-size:10px;color:#718366;overflow-wrap:anywhere;margin:5px 0 9px}@media(max-width:640px){.sidebar>nav{flex-wrap:wrap}.storage-card .history-heading{align-items:flex-start;gap:12px;flex-direction:column}.results-pagination{gap:8px}.results-pagination button{padding:8px 10px;font-size:11px}}
.text-button{border:0;background:none;color:var(--green);font:inherit;text-decoration:underline;padding:0;cursor:pointer}.overlay-intro{clear:both;padding-top:12px;margin-bottom:18px}.overlay-card{clear:both;border:1px solid var(--line);border-radius:9px;padding:16px;margin:12px 0}.overlay-card .overlay-toggle{display:flex;align-items:center;gap:9px;margin:0 0 8px}.overlay-card .overlay-toggle strong{font-size:13px}.overlay-card>label:not(.opacity-control):not(.overlay-toggle){margin:10px 0 3px;font-size:10px}.overlay-card input[type=file]{font-size:10px}.overlay-card .opacity-control{margin-bottom:0}.overlay-card .secondary{font-size:10px;margin-top:12px}#overlay-add{margin:12px 0}#results-queue{margin-bottom:28px}#results-queue h2{font-size:17px}

#weather-controls .overlay-preview{border-top:0;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--line)}
#audio-controls .opacity-control{clear:both}#audio-controls .opacity-control span{width:110px;flex-shrink:0}
.job-info{flex:1}.render-meter{display:block;width:100%;height:12px;margin:14px 0 2px;accent-color:var(--green)}
#results-queue{margin-bottom:28px}#results-queue>h2{font:normal 25px var(--serif)}

.production-subnav{display:grid;margin:0 0 12px 20px;padding-left:8px;border-left:1px solid #ffffff30}.sidebar .production-subnav a{font-size:11px;padding:8px 12px}@media(max-width:640px){.production-subnav{display:flex;flex-wrap:wrap;width:100%;margin:0;border:0;padding:0}.sidebar>nav{flex-wrap:wrap}}

.visualizer-example{grid-column:1/-1;min-width:0}.visualizer-example h3{font-size:14px;margin:0}.visualizer-example .history-heading{margin:0 0 12px}.visualizer-example .history-heading span{font-size:11px;color:var(--muted)}#visualizer-example-video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:10px;background:#101d26}.visualizer-example[hidden],#visualizer-example-video[hidden]{display:none}

.membership-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:26px;padding:17px 20px;background:#eaf1e6;border:1px solid var(--line);border-radius:10px}.membership-banner h2{font-size:18px;margin:0;font-weight:600}.membership-banner p{font-size:12px;margin:0;font-variant-numeric:tabular-nums;color:#52704a}.membership-banner .membership-expired{color:#a45438}@media(max-width:640px){.membership-banner{align-items:flex-start;flex-direction:column;padding:15px 17px}.membership-banner h2{font-size:17px}}

.membership-warning{margin:-10px 0 26px;padding:15px 20px;border:1px solid #e8d6a2;border-radius:9px;background:#fff8e5;color:#82632e}.membership-warning strong{font-size:12px}.membership-warning p{margin:6px 0 0;font-size:11px;line-height:1.7}

.library-picker{margin:18px 0 0;padding:15px;background:#f7f9f3;border:1px solid var(--line);border-radius:8px;font-size:12px}.library-picker a{font-size:11px;color:var(--green)}#library-audio-options{display:grid;gap:7px;margin:10px 0;max-height:210px;overflow:auto}#library-audio-options label{display:flex;gap:8px;align-items:center;margin:0;font-size:11px}.library-items{margin-top:28px}#library-upload-button{margin-top:18px}#library-list audio,#library-list video{max-width:100%;width:100%;margin-top:12px}.library-name{overflow-wrap:anywhere}

#youtube-dialog textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px;font:inherit;resize:vertical}#youtube-progress{width:100%;accent-color:var(--green);margin-top:16px}.youtube-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}#youtube-video-link{font-size:12px;color:var(--green)}#youtube-target{font-size:12px}

#media-preview-panel{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:9px}#media-preview-panel .overlay-preview{margin:0;padding:0;border:0}#media-preview-panel h3{font-size:12px}#media-preview-panel select{max-width:180px;display:inline-block;margin:6px 8px 6px 0;padding:6px}#media-preview-panel button{font-size:11px;padding:7px 10px}#overlay-canvas,#mix-preview-video{display:block;max-width:420px;width:100%;max-height:236px;object-fit:contain;margin:8px auto;background:#142c20;border-radius:8px}#overlay-canvas[hidden],#mix-preview-video[hidden]{display:none}#media-preview-panel .overlay-toggle{display:flex;align-items:center;gap:8px;font-size:11px;margin:10px 0}#builtin-overlay-list,#extra-overlay-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.overlay-card{padding:10px;margin:0;min-width:0}.overlay-card select{font-size:11px;padding:7px}.overlay-card .field-note{margin-top:3px}.overlay-intro{margin-bottom:10px}@media(max-width:640px){#builtin-overlay-list,#extra-overlay-list{grid-template-columns:1fr}}

#media-preview-panel #audio-controls{border:0;margin:0;padding:0}#media-preview-panel #audio-controls legend{margin-bottom:4px}#media-preview-panel #audio-controls .opacity-control{margin:9px 0}#media-preview-panel #audio-controls .field-note{margin-bottom:8px}#weather-controls .overlay-preview{position:sticky;top:8px;z-index:4;background:#fff;padding:10px 12px;margin:0 0 12px;border:1px solid var(--line);border-radius:9px;box-shadow:0 3px 12px #173f3610}#weather-controls .overlay-preview>label{display:inline-block;margin:6px 8px 6px 0}#weather-controls .overlay-preview select{display:inline-block;width:auto;max-width:180px;padding:6px;font-size:11px}#weather-controls .overlay-preview button{padding:7px 10px;font-size:11px}#weather-controls #overlay-canvas{max-width:340px;max-height:191px;margin:8px auto}#weather-controls .overlay-preview .field-note{line-height:1.4;margin-top:5px}#weather-controls .overlay-preview h3{font-size:12px}@media(max-width:640px){#weather-controls #overlay-canvas{max-height:150px}#weather-controls .overlay-preview{top:4px;padding:8px}#weather-controls .overlay-preview>p:first-of-type{display:none}}

#weather-controls .overlay-preview>label.opacity-control{display:flex;margin:8px 0 0}#weather-controls .overlay-preview>label.opacity-control[hidden]{display:none}

.mask-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.mask-editor .opacity-control{margin:7px 0}.mask-editor button[hidden]{display:none}#overlay-canvas.mask-editing{touch-action:none;cursor:crosshair;outline:2px solid #75bd9d}.mask-editor .field-note{font-size:10px}

#scene-controls{clear:both}.scene-sliders{clear:both;display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.scene-sliders .opacity-control{margin:8px 0}.scene-sliders .opacity-control span{width:100px;flex-shrink:0}.scene-sliders output{width:32px}#scene-preview{display:block;width:100%;max-width:420px;max-height:236px;margin:8px auto;border-radius:8px;background:#101d26}#scene-preview[hidden]{display:none}@media(max-width:640px){.scene-sliders{grid-template-columns:1fr}}

#media-preview-panel.studio-preview{position:sticky;top:8px;z-index:5;margin:0;padding:14px;background:#fff;box-shadow:0 4px 18px #173f3615}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.preview-heading h2{font-size:14px;margin:0}.preview-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);gap:14px;align-items:start}.preview-stage{min-width:0}#media-preview-panel #overlay-canvas{width:100%;max-width:none;max-height:260px;margin:0;aspect-ratio:16/9;object-fit:contain}.preview-tabs{display:flex;gap:5px;margin-bottom:8px}.preview-tabs button{flex:1;border:1px solid var(--line);border-radius:6px;background:#f6f8f3;color:var(--green)}.preview-tabs button[aria-selected=true]{background:var(--green);color:white}.preview-editors{max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding-right:5px}.preview-editors>fieldset{border:0;margin:0;padding:0}.preview-editors>fieldset[hidden]{display:none}.preview-editors legend{display:none}#media-preview-panel #weather-controls .overlay-preview{position:static;box-shadow:none;border:0;padding:0;margin:0 0 10px}#media-preview-panel .scene-sliders{grid-template-columns:1fr;gap:0}#media-preview-panel #builtin-overlay-list,#media-preview-panel #extra-overlay-list{grid-template-columns:1fr}#media-preview-panel .overlay-preview .opacity-control{margin:8px 0}#media-preview-panel .field-note{line-height:1.5}#visual-preview{display:none!important}@media(max-width:1150px){.preview-workspace{grid-template-columns:1fr}.preview-editors{max-height:230px}#media-preview-panel #overlay-canvas{max-height:200px}}@media(max-width:640px){#media-preview-panel.studio-preview{top:4px;padding:10px}.preview-workspace{gap:8px}#media-preview-panel #overlay-canvas{max-height:150px}.preview-editors{max-height:210px}.preview-stage>.field-note{font-size:9px;max-height:28px;overflow:auto}.preview-heading{margin-bottom:6px}}

.recipe-editor h2{font-size:13px;margin:0 0 6px}.recipe-editor>label{margin:12px 0 5px;font-size:11px}.recipe-editor .job-actions{max-width:none;justify-content:flex-start;margin:8px 0;gap:6px}.recipe-editor #recipe-save{margin-top:10px}.recipe-editor select,.recipe-editor input{font-size:11px;padding:8px 10px}.preview-tabs{flex-wrap:wrap}.preview-tabs button{min-width:55px}

/* Keep the editor beside the material form, in normal page flow. */
.production-layout{display:block}.production-layout>.right-column{display:none}.production{grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);align-items:start;gap:20px}.production>*{grid-column:1}.production>#media-preview-panel{grid-column:2;grid-row:1 / span 4;position:static;top:auto;align-self:start}#media-preview-panel .preview-workspace{grid-template-columns:1fr}#media-preview-panel #overlay-canvas{max-height:260px}.preview-editors{max-height:440px}#scene-controls>label[for=mode]{margin:0 0 6px}#scene-controls #mode{margin-bottom:12px}#scene-controls .scene-sliders[hidden],#scene-controls .mask-actions[hidden]{display:none}
@media(max-width:1150px){.production{grid-template-columns:minmax(0,1fr)}.production>#media-preview-panel{grid-column:1;grid-row:auto;position:static}.preview-editors{max-height:300px}}@media(max-width:640px){#media-preview-panel #overlay-canvas{max-height:190px}}
#overlay-canvas.overlay-moving{touch-action:none;cursor:grab;outline:2px dashed #75bd9d}
#overlay-canvas.overlay-moving:active{cursor:grabbing}

/* Keep preview tools scrollable inside the production grid. */
.preview-tools,.preview-editors{min-width:0;min-height:0}
#media-preview-panel .preview-editors{height:360px;max-height:50vh;overflow-y:scroll;overscroll-behavior-y:auto;scrollbar-gutter:stable;touch-action:pan-y}
#media-preview-panel #weather-controls{min-width:0}
#media-preview-panel .overlay-card{padding:9px 10px;margin:7px 0}
#media-preview-panel .overlay-card .overlay-toggle{margin:0 0 5px}
.overlay-files summary{cursor:pointer;font-size:11px;color:var(--green);padding:4px 0}
.overlay-files>label{display:block;font-size:10px;margin:6px 0 3px}
#media-preview-panel .overlay-card input[type=file],#media-preview-panel .overlay-card select{padding:6px;width:100%;min-width:0}
#media-preview-panel .overlay-intro{padding:0;margin:4px 0;font-size:10px}
#media-preview-panel #overlay-add{position:sticky;top:0;z-index:5;width:100%;margin:0 0 6px;background:var(--green);color:#fff}
@media(max-width:640px){#media-preview-panel .preview-editors{height:280px;max-height:45vh}}

.lyrics-controls{grid-column:1 / -1;border:1px solid var(--line);border-radius:9px;padding:12px}.lyrics-controls>.overlay-toggle{display:flex;align-items:center;gap:8px;margin:0}.lyrics-controls .field-note{margin:8px 0 0}.lyrics-controls .form-grid[hidden]{display:none}

.visualizer-placement{grid-column:1 / -1}.visualizer-placement .opacity-control{margin:10px 0}.visualizer-placement [hidden]{display:none}.visualizer-placement #visualizer-move{margin-top:10px}.visualizer-moving{cursor:move;touch-action:none}

#visualizer-example-canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:10px;background:#101d26}#visualizer-example-canvas[hidden]{display:none}#visualizer-example-video{display:none}#visualizer-example-canvas.visualizer-moving,#overlay-canvas.visualizer-moving{cursor:grab;touch-action:none;outline:2px dashed #75bd9d}#visualizer-example-canvas.visualizer-moving:active,#overlay-canvas.visualizer-moving:active{cursor:grabbing}

.lyrics-controls [hidden]{display:none!important}.lyrics-controls textarea{width:100%;resize:vertical;min-height:90px;font:inherit;padding:10px;border:1px solid var(--line);border-radius:7px}.lyrics-lines{max-height:280px;overflow:auto;overscroll-behavior:contain;margin:10px 0}.lyrics-line{display:grid;grid-template-columns:75px 75px minmax(90px,1fr) auto auto;gap:6px;align-items:end;padding:8px 0;border-bottom:1px solid var(--line)}.lyrics-line label{margin:0;font-size:10px}.lyrics-line input{padding:6px;width:100%;min-width:0}.lyrics-line button{padding:7px;font-size:10px}.lyrics-controls .job-actions{margin:10px 0}.lyrics-controls input[type=range]{accent-color:var(--green)}#lyrics-preview-time{width:100%}#overlay-canvas.lyrics-moving{cursor:grab;touch-action:none;outline:2px dashed #75bd9d}@media(max-width:640px){.lyrics-line{grid-template-columns:1fr 1fr auto auto}.lyrics-line label:nth-child(3){grid-column:1/-1;grid-row:2}.lyrics-lines{max-height:240px}}

.preview-text-tools{margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f6f8f3}.preview-text-tools[hidden],.preview-text-tools [hidden]{display:none!important}.preview-transport>label{display:flex;justify-content:space-between;margin:0;font-size:11px}#preview-seek{width:100%;accent-color:var(--green)}.preview-text-tools .job-actions{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.preview-text-tools button{font-size:11px}.preview-text-tools input{min-width:0}.preview-text-tools .form-grid{gap:8px}.preview-text-tools .form-grid label{margin:6px 0;font-size:10px}.preview-text-clips{display:flex;gap:6px;overflow-x:auto;padding:6px 0}.text-clip{flex:0 0 160px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;border:1px solid #9bb9a7;border-radius:6px;background:#e0eee5;color:var(--green);padding:9px}.text-clip[aria-pressed=true]{background:var(--green);color:white}#preview-text-input{width:100%;padding:8px}#preview-playhead{font-variant-numeric:tabular-nums}

#overlay-canvas.lyrics-selected{cursor:grab;touch-action:none}

/* Text track: clip lengths and gaps follow project time. */
.preview-text-clips{display:block;position:relative;height:58px;overflow-x:auto;overflow-y:hidden;isolation:isolate;background:repeating-linear-gradient(90deg,transparent 0,transparent 47px,#b9c9bd 48px);border-bottom:1px solid var(--line)}
.preview-text-clips::before{content:"";display:block;width:var(--track-width,560px);height:1px}
.text-clip-block{position:absolute;top:8px;height:36px;min-width:12px}
.text-clip-block .text-clip{width:100%;height:36px;margin:0;padding:8px 13px;border-radius:5px;font-size:10px}
.text-trim{position:absolute;top:2px;bottom:2px;width:9px;background:#b2d2bd;cursor:ew-resize;touch-action:none;border:1px solid #486b55;border-radius:3px}
.text-trim-start{left:0}.text-trim-end{right:0}
#preview-paste-input{width:100%;min-height:110px;resize:vertical;padding:9px;font:inherit}
.lyrics-advanced summary{cursor:pointer;padding:10px 0;font-weight:600}

/* A fixed monitor above independently scrollable text and effect controls. */
.production>#media-preview-panel.studio-preview{position:sticky;top:12px;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;padding:12px;gap:10px}
.preview-monitor{flex:0 0 auto;min-width:0;background:#fff;border-bottom:1px solid var(--line);padding-bottom:10px}
#media-preview-panel .preview-monitor #overlay-canvas{display:block;width:100%;max-height:min(30vh,260px);background:#101d26;border-radius:8px}
#media-preview-panel .preview-workspace{display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
#media-preview-panel .preview-stage,#media-preview-panel .preview-tools{width:100%;flex:0 0 auto}
#media-preview-panel .preview-editors{height:300px;max-height:40vh;overflow-y:auto}
.preview-text-tools{margin:0;background:#f7faf7;padding:12px;border-radius:10px}
.preview-text-tools label{margin:8px 0 5px}.preview-text-tools .job-actions{gap:6px}
.preview-text-tools .form-grid{grid-template-columns:1fr 1fr}
#text-edit-status{font-size:11px;color:var(--muted)}
#overlay-canvas.text-moving,#overlay-canvas.text-selected{cursor:grab;touch-action:none}
.playlist-controls{grid-column:1/-1;border:1px solid var(--line);border-radius:10px;padding:14px}
.playlist-controls h3{margin:0 0 10px}.playlist-controls>.overlay-toggle{display:flex;gap:8px;align-items:center;margin:8px 0}
@media(max-width:1150px){.production>#media-preview-panel.studio-preview{grid-row:auto;position:sticky;top:8px;max-height:calc(100dvh - 16px);z-index:5}}
@media(max-width:640px){.production>#media-preview-panel.studio-preview{top:4px;max-height:calc(100dvh - 8px);padding:10px}#media-preview-panel .preview-monitor #overlay-canvas{max-height:23vh}.preview-heading h2{font-size:13px}.preview-text-tools{padding:8px}#media-preview-panel .preview-editors{height:230px;max-height:32vh}}

@media(max-width:1150px){
 .production>#media-preview-panel.studio-preview{position:relative;top:auto;max-height:none;overflow:visible;display:block;z-index:auto}
 #media-preview-panel .preview-monitor{position:sticky;top:4px;z-index:8;padding:8px;background:#fff;box-shadow:0 5px 15px #173f3620;border-radius:8px}
 #media-preview-panel .preview-workspace{display:flex;overflow:visible;margin-top:10px}
}

.text-trim{width:6px}.text-trim-start{left:-2px}.text-trim-end{right:-2px}
@media(max-width:1150px){#media-preview-panel .preview-workspace :is(button,input,select,.text-trim){scroll-margin-top:calc(23vh + 90px)}}

.text-clip-block{min-width:16px}.text-trim-start{left:0}.text-trim-end{right:0}

.shorts-setup-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;align-items:start}
#shorts-page h2{font:600 18px 'Segoe UI',Arial,sans-serif;margin:0 0 12px}
#shorts-page textarea{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;resize:vertical;font:inherit}
#shorts-page .primary,#shorts-page form>.secondary{margin-top:14px}#shorts-page .form-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.shorts-cta-list{display:grid;gap:8px;margin-top:16px;max-height:420px;overflow-y:auto}
.shorts-cta{padding:10px;border:1px solid var(--line);border-radius:8px}.shorts-cta summary{cursor:pointer;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.shorts-cta video,.shorts-video-card video{display:block;width:100%;max-height:360px;background:#101d26;margin:10px 0;border-radius:8px}
.shorts-batch-edit{margin:20px 0}.shorts-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.shorts-video-card{min-width:0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:10px}
.shorts-card-title{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:13px;overflow-wrap:anywhere}.shorts-card-title input{margin-top:4px;flex-shrink:0}
.shorts-video-card .shorts-status{font-size:11px;color:var(--green)}.shorts-video-card .field-note{overflow-wrap:anywhere;font-size:11px}
.shorts-video-card progress{width:100%;accent-color:var(--green)}.shorts-video-card .job-actions{display:flex;gap:6px;flex-wrap:wrap}
.shorts-video-card .secondary{font-size:11px;padding:6px 9px;text-decoration:none}#shorts-page .history-heading{gap:12px;flex-wrap:wrap}
@media(max-width:1000px){.shorts-setup-grid{grid-template-columns:1fr}.shorts-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.shorts-video-grid{grid-template-columns:1fr}#shorts-page .form-grid{grid-template-columns:1fr}#shorts-page .page-heading h1{font-size:34px}}

.shorts-queue-section{margin:24px 0}.shorts-result-tabs{display:flex;gap:8px;margin:16px 0}.shorts-result-tabs button{flex:1;padding:12px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--green);font:inherit;font-weight:600;cursor:pointer}.shorts-result-tabs button[aria-selected="true"]{background:var(--green);color:#fff}.shorts-video-card[data-status="failed"] .shorts-status{color:#b42318}.shorts-video-card[data-status="processing"] .shorts-status{font-weight:700}
.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:26px 0 48px}.tool-card{display:flex;flex-direction:column;align-items:flex-start;padding:32px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 28px #173f3608}.tool-card h2{font:normal 34px var(--serif);margin:4px 0 14px}.tool-card>p:not(.eyebrow){color:var(--muted);line-height:1.8;max-width:360px;margin:0 0 24px}.tool-symbol{display:grid;place-items:center;width:56px;height:56px;background:#eaf1e6;color:var(--green);border-radius:16px;font-size:25px;margin-bottom:32px}.tool-card .primary{margin-top:auto;text-decoration:none;display:inline-block;padding:14px 20px}.tool-access{display:block;font-size:12px;color:var(--green);margin-bottom:18px}.tool-locked{background:#e6e9e3!important;color:#667062!important}.tools-package-summary{padding:13px 18px;border:1px solid var(--line);border-radius:9px;font-size:13px;background:#eaf1e6}.tool-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.tool-price-card{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}.tool-price-card h3{font-size:17px;margin:0 0 18px}.tool-price-card strong{display:block;font-size:18px}.tool-price-card p{font-size:12px;line-height:1.7;margin-top:14px}.tool-price-card.current-package{border-color:var(--green)}.tools-pricing>h2{font:normal 27px var(--serif)}#tools-home[hidden],#render-navigation[hidden]{display:none}@media(max-width:850px){.tools-grid{gap:16px}.tool-card{padding:24px}.tool-card h2{font-size:28px}.tool-price-grid{grid-template-columns:1fr}}@media(max-width:600px){.tools-grid{grid-template-columns:1fr}.tool-card{padding:25px}.tool-symbol{margin-bottom:20px}.tool-card .primary{width:100%;text-align:center}}

.membership-service{padding:1rem 0;border-bottom:1px solid #64748b40}.membership-service form{display:flex;gap:.5rem;flex-wrap:wrap}.membership-service pre{white-space:pre-wrap;overflow-wrap:anywhere}.membership-lifecycle{margin:1rem 0}

/* Dark emerald: reusable surfaces scoped to the results workspace. */
.results-welcome-eyebrow,.results-welcome-copy{display:none}
body.studio-theme{background:#031f20;color:#e8f7ef}
.studio-theme .workspace{background:radial-gradient(circle at 80% 0,#064238 0,transparent 38%),#031f20;min-height:100vh}
.studio-theme .sidebar{background:linear-gradient(180deg,#003b30,#052522 72%);color:#d8efe3;border-right:1px solid #27634e}
.studio-theme .sidebar nav a:hover,.studio-theme .sidebar .nav-active{background:linear-gradient(110deg,#008857,#075c40);color:#fff}
.studio-theme .topbar{background:#032522;border-color:#245348;color:#d5ede0}
.studio-theme .breadcrumb,.studio-theme .workspace-badge{color:#a4c4b4}
.studio-theme .membership-banner{position:relative;overflow:hidden;min-height:120px;padding:24px 28px;border:1px solid #1c735c;background:radial-gradient(ellipse at 82% 20%,#087e62 0,transparent 42%),linear-gradient(110deg,#063a35,#06312f 65%,#03503b);color:#fff;border-radius:14px}
.studio-theme .membership-banner:after{content:'▶';position:absolute;right:6%;top:-35px;font-size:145px;line-height:1;color:#7affad12;transform:rotate(-12deg);pointer-events:none}
.studio-theme .membership-banner h2{font-size:26px;line-height:1.2}.studio-theme .membership-banner p{color:#d0ebdd}.studio-theme .membership-banner .results-welcome-eyebrow{display:block;font-size:9px;letter-spacing:2px;color:#77eca9;margin:0 0 6px}.studio-theme .membership-banner .results-welcome-copy{display:block;margin:7px 0 0;font-size:12px}.studio-theme #membership-remaining{position:relative;z-index:1;white-space:nowrap}.studio-theme #membership-remaining.membership-expired{color:#ffc7a5}
.studio-theme .membership-lifecycle,.studio-theme #results-page .card{background:linear-gradient(115deg,#074537,#052d2b);border-color:#216b55;color:#effbf3;box-shadow:0 8px 24px #00191650}
.studio-theme .membership-lifecycle{margin-bottom:26px}.studio-theme .membership-lifecycle h2{font-size:18px}.studio-theme .membership-lifecycle .field-note,.studio-theme .membership-lifecycle p{color:#b7d8c7}.studio-theme .membership-lifecycle .membership-expired{color:#ffd0a8}
.studio-theme #results-page .page-heading{margin-bottom:20px}.studio-theme #results-page .page-heading h1{font:700 36px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:-1px}.studio-theme #results-page .page-heading h1 span{color:#69eb93}.studio-theme #results-page .eyebrow{color:#9fcbb4}.studio-theme #results-page .muted,.studio-theme #results-page .field-note{color:#a9cab9}
.results-heading-actions{display:flex;gap:10px;align-items:center}.studio-theme #results-page .primary{background:linear-gradient(105deg,#52e97c,#00bd68);color:#032d21;text-decoration:none;gap:8px;padding:10px 16px}.studio-theme #results-page .secondary,.studio-theme #results-page .job-actions a,.studio-theme #results-page .job-actions button{background:#103e39;color:#dff8e9;border:1px solid #337562}.studio-theme #results-page :is(button,a){transition:background .18s ease,filter .18s ease,transform .18s ease}.studio-theme #results-page :is(button,a):hover{filter:brightness(1.14)}
.results-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.results-stat{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #286759;border-radius:12px;background:linear-gradient(115deg,#103e3b,#07302f)}.results-stat-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:14px;background:#11664f;color:#79f1a2;font-size:21px}.results-stat:nth-child(2) .results-stat-icon{background:#08754c}.results-stat:nth-child(3) .results-stat-icon{background:#765019;color:#ffd68b}.results-stat:nth-child(4) .results-stat-icon{background:#345f60;color:#def5ed}.results-stat span:not(.results-stat-icon){display:block;font-size:11px;color:#c1dfcf}.results-stat strong{display:block;font-size:23px;line-height:1.25}.results-stats-note{color:#9cbead;font-size:10px;margin:8px 0 18px}
.studio-theme #results-queue>h2,.studio-theme .results-heading h2{font:600 21px 'Segoe UI',Arial,sans-serif}.studio-theme #results-queue{margin-top:20px}.studio-theme .storage-card{padding:20px 22px;margin-bottom:24px}.studio-theme .storage-card progress{accent-color:#42e77c}.studio-theme .storage-breakdown{color:#b6d8c5}.results-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 14px}.results-filters label{margin:0;flex:1 1 200px;color:#c8e5d4}.results-filters .field-note{flex:1 1 100%;margin:0}.studio-theme #results-page .results-filters :is(input,select){margin-top:5px;background:#0b3532;border:1px solid #377965;color:#e5f7ed}.studio-theme #results-page .results-filters input::placeholder{color:#9bbcad}
.studio-theme #results-page .job{background:#082e2c;border-color:#235b4e;color:#e8f8ed;gap:15px}.studio-theme #results-page .job-info{flex:1}.studio-theme #results-page .job-meta,.studio-theme #results-page .job-message,.studio-theme #results-page .job-file{color:#a7cbb8}.studio-theme #results-page .job-status{background:#145d3f;color:#baffc9}.studio-theme #results-page .job-status:is(.failed,.interrupted){background:#65402d;color:#ffdbbb}.studio-theme #results-page .job-status:is(.rendering,.uploading,.preparing){background:#5e491f;color:#ffe3a2}.studio-theme #results-page .empty-state{background:#082e2c;border-color:#235b4e;color:#b7d7c3}.result-thumbnail{position:relative;flex:0 0 125px;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:linear-gradient(135deg,#145c4a,#123437);display:grid;place-items:center}.result-thumbnail video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.result-thumbnail-fallback{position:relative;color:#b3f8cd;font-size:23px}.result-thumbnail.has-preview .result-thumbnail-fallback{display:none}.studio-theme footer{border-color:#245348;color:#9cbcab}
@media(max-width:900px){.results-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-theme #results-page .job-actions{max-width:40%}}
@media(max-width:640px){.studio-theme .sidebar{display:block;padding:14px 18px}.studio-theme .sidebar .brand{margin-bottom:12px}.studio-theme .sidebar>nav,.studio-theme .sidebar #render-navigation{display:flex;gap:5px;overflow-x:auto;flex-wrap:nowrap}.studio-theme .sidebar nav a{white-space:nowrap;padding:8px 10px}.studio-theme .production-subnav{display:none}.studio-theme .sidebar-bottom{margin-top:8px}.studio-theme .membership-banner{align-items:flex-start;padding:20px;min-height:0}.studio-theme .membership-banner h2{font-size:23px}.studio-theme #results-page .page-heading{align-items:flex-start;flex-direction:column}.results-heading-actions{width:100%;flex-wrap:wrap}.studio-theme #results-page .page-heading h1{font-size:30px}.results-stat{padding:12px;gap:8px}.results-stat-icon{flex-basis:35px;height:35px;font-size:17px}.results-stat strong{font-size:20px}.studio-theme #results-page .job{display:flex;flex-wrap:wrap}.result-thumbnail{flex-basis:100px}.studio-theme #results-page .job-info{min-width:calc(100% - 115px)}.studio-theme #results-page .job-actions{max-width:100%;margin-top:0;justify-content:flex-start}.studio-theme #results-page .results-filters label{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.studio-theme #results-page :is(button,a){transition:none}}

/* Results polish: compact surfaces and a single page scroll. */
.emerald-nav-icon,.results-welcome-art,.membership-status{display:none}
.studio-theme .emerald-nav-icon{display:block;width:18px;height:18px;flex:0 0 18px}
.studio-theme .sidebar .legacy-nav-icon{display:none}
.studio-theme .sidebar{padding:24px 14px;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
.studio-theme .sidebar::-webkit-scrollbar{display:none}
.studio-theme .sidebar .brand{margin:0 9px 26px}.studio-theme .sidebar nav{gap:3px}.studio-theme .sidebar nav a{padding:10px 12px;border:1px solid transparent;font-size:12px}
.studio-theme .sidebar nav a:hover{border-color:#277b5e}.studio-theme .sidebar nav a.nav-active{border-color:#25b975;box-shadow:inset 3px 0 #60f5a0,0 4px 16px #001c1790}
.studio-theme .page-content{padding-top:16px}.studio-theme .topbar{height:53px}
.studio-theme .membership-banner{min-height:88px;margin-bottom:12px;padding:15px 22px;background:radial-gradient(ellipse at 82% 32%,#086653 0,transparent 40%),linear-gradient(110deg,#052f2c,#063d34 70%,#034031)}
.studio-theme .membership-banner:after{display:none}.studio-theme .membership-banner h2{font-size:23px}.studio-theme .membership-banner .results-welcome-eyebrow{margin-bottom:3px}.studio-theme .membership-banner .results-welcome-copy{margin-top:4px}
.studio-theme .results-welcome-art{display:block;position:absolute;right:10%;top:0;width:36%;height:100%;pointer-events:none;opacity:.9}
.studio-theme #membership-remaining{margin-left:auto;padding:5px 10px;border:1px solid #4c9a78;border-radius:20px;background:#043d31c9;font-size:11px}
.studio-theme .membership-lifecycle{position:relative;margin:0 0 14px;padding:13px 20px 13px 65px;min-height:82px;border-radius:12px}
.studio-theme .membership-lifecycle:before{content:'\2726';position:absolute;left:18px;top:17px;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#9bffc1;background:#0c7853;font-size:19px}
.studio-theme .membership-lifecycle h2{font-size:16px;line-height:1.3;margin:0 0 4px}.studio-theme .membership-lifecycle p{margin:2px 0;font-size:11px;line-height:1.45}.studio-theme .membership-lifecycle .membership-service{padding:3px 0;border:0}.studio-theme .membership-lifecycle .membership-service strong{font-size:12px}.studio-theme .membership-lifecycle .membership-status{display:inline-block;margin-right:8px;padding:2px 8px;border-radius:20px;color:#073b27;background:#77efa0;font-size:10px;font-weight:700}.studio-theme .membership-lifecycle .membership-status.is-expired{background:#ffcaad;color:#733519}.studio-theme .membership-lifecycle .field-note{font-size:10px}
.studio-theme #results-page .page-heading{margin-bottom:12px}.studio-theme #results-page .page-heading h1{font-size:31px;margin-bottom:3px}.studio-theme #results-page .page-heading .eyebrow{margin-bottom:4px}
.studio-theme .results-stat{padding:11px 13px;border-color:#286659;background:linear-gradient(115deg,#124a43,#0a302f);box-shadow:inset 0 1px #ffffff0c}.studio-theme .results-stat:nth-child(2){background:linear-gradient(115deg,#07573d,#07372e)}.studio-theme .results-stat:nth-child(3){background:linear-gradient(115deg,#494528,#163a35)}.studio-theme .results-stat:nth-child(4){background:linear-gradient(115deg,#264b4b,#092f31)}
.studio-theme .results-stat-icon{flex-basis:40px;height:40px;border-radius:50%;box-shadow:0 0 0 5px #ffffff08,0 0 18px #36da7e1a;font-weight:700}.studio-theme .results-stat strong{font-size:22px;font-weight:700}.studio-theme .results-stats-note{margin:5px 0 10px}
.studio-theme #results-queue{margin:10px 0 14px}.studio-theme #results-queue>h2{font-size:17px;margin:0 0 8px}.studio-theme #results-page .storage-card{padding:13px 18px;margin-bottom:14px}.studio-theme .storage-card .history-heading{margin-bottom:3px}.studio-theme .storage-card progress{height:11px;margin:8px 0}.studio-theme .storage-breakdown{margin-bottom:4px;gap:4px 20px}.studio-theme .storage-card .field-note{margin-top:3px;line-height:1.45}.studio-theme .results-heading{margin-bottom:8px}.studio-theme .results-filters{margin-bottom:10px;gap:8px 12px}.studio-theme .results-filters input,.studio-theme .results-filters select{padding:8px 10px}.studio-theme .results-filters .field-note{line-height:1.3}.studio-theme #results-page .job{padding:11px 14px}.studio-theme .results-pagination{margin-top:14px}
@media(max-width:900px){.studio-theme .results-welcome-art{right:8%;width:34%;opacity:.6}.studio-theme #membership-remaining{white-space:normal;text-align:right;max-width:160px}}
@media(max-width:640px){.studio-theme .sidebar{overflow:visible;padding:10px 14px}.studio-theme .sidebar .brand{margin-bottom:7px}.studio-theme .sidebar>nav,.studio-theme .sidebar #render-navigation{overflow:visible;flex-wrap:wrap}.studio-theme .sidebar nav a{padding:6px 8px;font-size:11px}.studio-theme .sidebar-bottom{margin-top:4px}.studio-theme .topbar{height:44px}.studio-theme .page-content{padding:12px 14px 0}.studio-theme .membership-banner{min-height:0;padding:14px;margin-bottom:10px}.studio-theme .membership-banner h2{font-size:20px}.studio-theme .membership-banner .results-welcome-copy{max-width:75%;font-size:11px}.studio-theme .results-welcome-art{right:0;top:3px;width:35%;height:70px;opacity:.45}.studio-theme #membership-remaining{text-align:left;margin:6px 0 0;padding:3px 8px}.studio-theme .membership-lifecycle{padding:12px 14px 12px 56px}.studio-theme .membership-lifecycle:before{left:13px;top:13px}.studio-theme #results-page .page-heading{gap:8px}.studio-theme .results-stat{padding:9px}.studio-theme .results-stat-icon{flex-basis:34px;height:34px}.studio-theme #results-page .page-heading h1{font-size:27px}}

.studio-theme .results-stat-icon svg{width:22px;height:22px}.studio-theme .storage-card h2{font:600 16px "Segoe UI",Arial,sans-serif}.studio-theme .production-subnav .emerald-nav-icon{width:15px;height:15px;flex-basis:15px}

/* Emerald surfaces shared across the studio workspace. */
body.studio-theme{--ink:#e6f5ed;--muted:#a8c9b8;--green:#54e997;--line:#255b4e;--paper:#031f20;--white:#0a3431;color:#e6f5ed}
.studio-theme .workspace :is(.card,.tool-card,.tool-price-card,.metric-card,.shorts-video-card,.job,.empty-state,.guide-card,.library-picker,.overlay-card,.shorts-cta){background:#0a3431;border-color:#255b4e;color:#e6f5ed}
.studio-theme .workspace :is(.tool-card,.tool-price-card,.metric-card,.shorts-video-card){background:linear-gradient(135deg,#10463c,#082d2d);box-shadow:0 8px 24px #00191640}
.studio-theme .workspace :is(.page-heading h1,.history-heading h2,.tool-card h2,.tools-pricing h2,.admin-page h1){font-family:'Segoe UI',Arial,sans-serif;font-weight:700;letter-spacing:-.7px}
.studio-theme .workspace :is(.muted,.field-note,.job-meta,.job-file,.job-message,.tool-card>p:not(.eyebrow),.tool-price-card p,.guide-card p,.guide-card li span){color:#afcdbd}
.studio-theme .workspace :is(input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),select,textarea){background:#092e2b;color:#e8f8ef;border:1px solid #377965}
.studio-theme .workspace input::placeholder,.studio-theme .workspace textarea::placeholder{color:#9bbcad}
.studio-theme .workspace :is(.secondary,.job-actions a,.job-actions button){background:#103e39;color:#def8e9;border-color:#377965}
.studio-theme .workspace .primary{background:linear-gradient(105deg,#69ef97,#0dc575);color:#042d21}
.studio-theme .workspace :is(button,a){transition:filter .18s ease,background-color .18s ease}
.studio-theme .workspace :is(button,a):hover{filter:brightness(1.12)}
.studio-theme .workspace :is(.plan-summary,.tools-package-summary,.library-picker,.preview-text-tools,.tool-symbol,.step){background:#10483a;border-color:#286c56;color:#d6f4e3}
.studio-theme .workspace :is(.setup-alert){background:#463c22;border-color:#8e763a;color:#ffe4a3}
.studio-theme .workspace :is(.preview-monitor,#media-preview-panel.studio-preview,#weather-controls .overlay-preview,.preview-tabs button,.text-clip,.shorts-result-tabs button,.dropzone){background:#0b3833;color:#e0f6e8;border-color:#306e5c}
.studio-theme .workspace :is(.preview-tabs button[aria-selected=true],.shorts-result-tabs button[aria-selected=true],.text-clip[aria-pressed=true]){background:#08764d;color:white}
.studio-theme .workspace :is(.monitor-table th){background:#103e35;color:#cae6d4}.studio-theme .workspace :is(.monitor-table td,.admin-user,fieldset){border-color:#275b4e}
.studio-theme .workspace :is(.presence,.job-status){background:#225443;color:#d3f6dd}.studio-theme .workspace .job-status:is(.failed,.interrupted){background:#653d30;color:#ffe0cc}
.studio-theme .workspace :is(.tool-access,.text-button,.library-picker a){color:#75e8a0}.studio-theme .workspace .tool-locked{background:#29413b!important;color:#b8c9bf!important}
.studio-theme .workspace :is(.admin-dialog,.password-dialog){background:#0a3431;color:#e6f5ed;border-color:#377965}
.studio-theme .workspace :is(input[type=checkbox],input[type=range],progress){accent-color:#42de88}
@media(max-width:640px){.studio-theme .sidebar .production-subnav{display:flex;flex-wrap:wrap;width:100%;gap:4px}.studio-theme .sidebar .production-subnav a{padding:6px 8px}.studio-theme .admin-navigation{width:100%}}
@media(prefers-reduced-motion:reduce){.studio-theme .workspace :is(button,a){transition:none}}

/* Same-origin page navigation keeps the common workspace shell visually stable. */
@view-transition{navigation:auto}
body.returning-from-live{background:#031f20}
body.returning-from-live #login-screen{visibility:hidden}
.studio-theme .sidebar{view-transition-name:temuklip-sidebar}
.studio-theme .topbar{view-transition-name:temuklip-topbar}
::view-transition-group(root),::view-transition-group(temuklip-sidebar),::view-transition-group(temuklip-topbar){animation-duration:.18s;animation-timing-function:ease-out}
@media(prefers-reduced-motion:reduce){::view-transition-group(root),::view-transition-group(temuklip-sidebar),::view-transition-group(temuklip-topbar){animation-duration:.01ms}}
#vlog-page .card{max-width:900px}#vlog-page h2:not(:first-child){margin-top:28px}#vlog-page .overlay-toggle{display:flex;gap:8px;align-items:center}#vlog-playlist li{padding:6px}#vlog-playlist button{margin:0 3px}#vlog-page .job-actions{max-width:none;justify-content:flex-start;margin-top:20px}

/* Shorts navigation preserves the existing CTA route. */
.shorts-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;background:transparent;border:1px solid transparent;border-radius:8px;color:inherit;text-align:left;font:inherit;font-size:12px;cursor:pointer}.shorts-toggle>span:nth-last-child(2){flex:1}.shorts-chevron{font-size:11px;transition:transform .18s ease}.shorts-toggle[aria-expanded=true] .shorts-chevron{transform:rotate(180deg)}.shorts-subnav{display:grid;margin:3px 0 10px 20px;padding-left:8px;border-left:1px solid #ffffff30}.sidebar .shorts-subnav a,.shorts-planned{display:flex;align-items:center;gap:5px;font-size:11px;padding:8px 12px}.shorts-planned{color:#a2bcb0;opacity:.78}.shorts-planned small{margin-left:auto;font-size:9px}.studio-theme .sidebar .shorts-toggle:hover,.studio-theme .sidebar .shorts-toggle.nav-active{background:linear-gradient(110deg,#008857,#075c40);border-color:#25b975;color:#fff}.studio-theme .sidebar .shorts-toggle.nav-active{box-shadow:inset 3px 0 #60f5a0,0 4px 16px #001c1790}@media(max-width:640px){.shorts-nav{flex:1 0 100%;min-width:0}.shorts-toggle{width:auto;padding:6px 8px}.shorts-subnav{display:flex;flex-wrap:wrap;margin:0 0 4px 18px}.sidebar .shorts-subnav a,.shorts-planned{padding:6px 8px}.shorts-planned small{margin-left:3px}}@media(prefers-reduced-motion:reduce){.shorts-chevron{transition:none}}
.asmr-multi{margin-top:18px;padding:12px;border:1px solid var(--line);border-radius:10px}.asmr-multi h3{font-size:13px}.asmr-multi-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0}.asmr-multi-row>span{flex:1;min-width:140px;overflow-wrap:anywhere;font-size:11px}.asmr-multi-row button{padding:5px 8px;font-size:10px}.asmr-multi-thumb{width:86px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;background:#102c29}.asmr-multi .overlay-toggle{display:flex;align-items:center;gap:8px}

.asmr-multi-drop{padding:9px;border:1px dashed #377965;border-radius:8px}.asmr-multi-drop span{display:block;font-size:10px;color:var(--muted)}.asmr-multi-drop.drag{outline:2px solid #65e99a;background:#0b4435}

/* Vlog controls and a persistent visual preview. */
#vlog-page .vlog-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:20px;align-items:start}#vlog-page .vlog-editor>.vlog-preview-panel{grid-column:2;grid-row:1;position:sticky;top:72px;z-index:2;padding:16px;max-width:none}#vlog-page .vlog-editor>#vlog-form{grid-column:1;grid-row:1;min-width:0}#vlog-page .vlog-preview-panel h2{margin:0 0 12px}#vlog-page .vlog-preview-canvas{position:relative;aspect-ratio:16/9;background:#041614;overflow:hidden;border-radius:8px}#vlog-preview-source{width:100%;height:100%;object-fit:contain}#vlog-preview-music{position:absolute;max-width:none;object-fit:fill;pointer-events:none}#vlog-preview-placeholder{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:10px;color:#adcebf;pointer-events:none}#vlog-preview-placeholder[hidden]{display:none}#vlog-form input[type=range]{width:calc(100% - 64px);vertical-align:middle;accent-color:#50e99a}#vlog-form output{display:inline-block;width:56px;text-align:right;color:#a8e7be;font-variant-numeric:tabular-nums}@media(max-width:850px){#vlog-page .vlog-editor{display:flex;flex-direction:column}#vlog-page .vlog-editor>.vlog-preview-panel{position:sticky;top:0;width:100%;padding:8px;display:flex;gap:10px;align-items:center}#vlog-page .vlog-preview-panel h2{font-size:12px;margin:0}#vlog-page .vlog-preview-panel .vlog-preview-canvas{width:min(42vw,220px);flex:none}#vlog-page .vlog-preview-panel .field-note{font-size:10px;line-height:1.25;margin:0}#vlog-page .vlog-editor>#vlog-form{width:100%}}

.asmr-preview-frame{position:relative;overflow:hidden;line-height:0}.asmr-preview-frame #overlay-canvas{display:block;width:100%;height:auto}





.vlog-preview-canvas.vlog-drag-mode #vlog-preview-music:not([hidden]){pointer-events:auto;touch-action:none;cursor:grab;outline:2px solid #70f4b4;outline-offset:-2px}.vlog-preview-canvas.vlog-drag-mode #vlog-preview-music:active{cursor:grabbing}

/* Short Clipper: compact editable clip timings. */
#clipper-list{padding-left:24px}#clipper-list li{padding:8px 0;border-bottom:1px solid #235b4e}#clipper-list li>span{display:block;font-weight:600}#clipper-list li>label{display:inline-block;vertical-align:bottom;width:min(145px,45%);margin:8px 10px 8px 0}#clipper-list li>label input{display:block;margin-top:4px;padding:7px 9px}#clipper-list li>button{vertical-align:bottom;margin:0 5px 8px 0;padding:7px 10px}

#clipper-player{display:block;width:100%;max-width:560px;max-height:315px;object-fit:contain;background:#061b18;border-radius:10px}

.clipper-add-row,.clipper-render-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.clipper-add-row .field-note{margin:0;align-self:center}.clipper-render-row>div{width:min(220px,100%)}.clipper-render-row label{margin:0 0 6px}.clipper-add-row .primary,.clipper-render-row .primary{gap:8px;padding:10px 16px}

/* Keep the live workspace mounted while switching tools. */
#live-workspace-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:1000;background:#092e29}
#live-workspace-frame[hidden]{display:none}

.tool-nav{width:100%}.tool-nav #render-navigation{margin:3px 0 10px 20px;padding-left:8px;border-left:1px solid #ffffff30}.tool-nav #render-navigation .production-subnav{margin-left:0;border-left:0;padding-left:0}.tool-nav #render-navigation[hidden],.tool-nav .shorts-subnav[hidden]{display:none!important}@media(max-width:640px){.tool-nav{flex:1 0 100%}.tool-nav .shorts-toggle{width:auto}.tool-nav #render-navigation:not([hidden]){display:flex;flex-wrap:wrap;gap:4px}}

.auto-lyrics-status{display:inline-flex;margin-bottom:18px;padding:6px 10px;border:1px solid #58b98d;border-radius:999px;color:#c6f7dd;background:#145f49;font-size:11px;font-weight:600}.studio-theme #auto-lyrics-page .card{max-width:760px}.studio-theme #auto-lyrics-page .card p{line-height:1.7}

.auto-lyrics-music{grid-column:1/-1;margin:0 0 16px;padding:14px;border:1px solid #356b58;border-radius:10px}.auto-lyrics-music .field-note{margin:8px 0 0}.auto-lyrics-badge{margin-left:6px;color:#c6f7dd;font-size:11px}

.lyric-video-preview{position:relative;max-width:720px;background:#000;aspect-ratio:16/9;margin:16px 0;overflow:hidden}.lyric-video-preview video{width:100%;height:100%;object-fit:contain}.lyric-video-preview #auto-lyrics-overlay{position:absolute;left:50%;top:85%;transform:translate(-50%,-50%);color:#fff;text-align:center;font:48px Arial;text-shadow:1px 1px 3px #000,-1px -1px 3px #000;cursor:move;touch-action:none;white-space:pre-wrap;max-width:90%}.lyric-video-preview #auto-lyrics-overlay.template-box{background:#000b;padding:6px 12px;border-radius:6px}.lyric-video-preview #auto-lyrics-overlay.template-outline{text-shadow:2px 2px 1px #000,-2px -2px 1px #000,2px -2px 1px #000,-2px 2px 1px #000;font-weight:bold}.auto-lyrics-line{display:grid;grid-template-columns:100px 100px minmax(0,1fr);gap:8px;margin:8px 0}.auto-lyrics-line input{min-width:0}@media(max-width:600px){.auto-lyrics-line{grid-template-columns:1fr 1fr}.auto-lyrics-line input:last-child{grid-column:1/-1}}

.lyric-timeline-controls{display:flex;align-items:center;gap:12px;margin:18px 0 8px}.lyric-timeline-controls label{margin:0}.lyric-timeline-controls input{max-width:200px}.lyric-timeline-scroll{overflow:auto;max-width:100%;border:1px solid #3a8a78;border-radius:8px;background:#092f2b}.lyric-timeline{height:86px;position:relative;min-width:100%;background:repeating-linear-gradient(90deg,transparent 0,transparent 79px,#ffffff18 79px,#ffffff18 80px);touch-action:pan-x}.lyric-clip{position:absolute;top:22px;height:42px;min-width:1px;overflow:hidden;background:#16876b;border:1px solid #8df5c5;border-radius:4px;display:flex;align-items:center;cursor:grab;touch-action:none;user-select:none;box-sizing:border-box}.lyric-clip:active{cursor:grabbing}.lyric-clip-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#fff;font-size:13px;padding:0 5px;pointer-events:none}.lyric-handle{position:absolute;top:0;bottom:0;width:7px;z-index:2;cursor:ew-resize;background:#d5ffe6aa;touch-action:none}.lyric-handle-left{left:0}.lyric-handle-right{right:0}.lyric-playhead{position:absolute;top:0;bottom:0;width:2px;background:#ffc76a;z-index:3;pointer-events:none}

.lyric-editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 8px}.lyric-clip.selected{background:#30b98d;border:2px solid #fff;box-shadow:0 0 0 2px #ffc76a;z-index:2}.auto-lyrics-line.selected{outline:2px solid #70e5b6;border-radius:5px}.lyric-word-details{margin:12px 0}.lyric-word-details summary{cursor:pointer;color:#c4f8df}

.roadmap-section{margin:0 0 32px}.roadmap-heading{margin:0 0 14px}.roadmap-heading h2{margin:0 0 5px}.roadmap-heading p{margin:0}.roadmap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.roadmap-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0;min-height:190px}.roadmap-card h3,.roadmap-card p{margin:0}.roadmap-card p{line-height:1.55;color:var(--muted);flex:1}.roadmap-badge{display:inline-block;padding:5px 9px;border:1px solid #478878;border-radius:999px;color:#bfe8d9;font-size:11px;font-weight:600}.roadmap-badge.roadmap-available{color:#69e8a9;border-color:#43bd82}.roadmap-action{margin-top:auto}.roadmap-action:disabled{cursor:not-allowed;opacity:.65}#roadmap-page[hidden],.roadmap-section[hidden],#roadmap-navigation[hidden]{display:none!important}@media(max-width:640px){.roadmap-grid{grid-template-columns:1fr}.roadmap-card{min-height:0}.roadmap-action{width:100%;text-align:center}}

.music-navigation { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.music-navigation[hidden] { display: none; }
.music-navigation a { padding: .6rem .9rem; border: 1px solid currentColor; border-radius: .5rem; text-decoration: none; }
.music-navigation a.nav-active { background: #087f5b; color: #fff; border-color: #087f5b; }

#overlay-canvas.playlist-moving{cursor:move;touch-action:none}

/* YouTube upload dialog is outside the workspace container. */
.studio-theme #youtube-dialog{background:#0a3431;color:#e6f5ed;border:1px solid #377965}
.studio-theme #youtube-dialog :is(.muted,.field-note){color:#c0dfce}
.studio-theme #youtube-dialog :is(input:not([type=checkbox]),select,textarea){background:#092e2b;color:#f0fff5;border:1px solid #579984}
.studio-theme #youtube-dialog textarea{width:100%;border-radius:7px;padding:11px 12px;font:inherit}
.studio-theme #youtube-dialog .secondary{background:#103e39;color:#effff5;border-color:#579984}
.studio-theme #youtube-dialog .primary{background:linear-gradient(105deg,#69ef97,#0dc575);color:#042d21}
.studio-theme #youtube-dialog a{color:#8bf0b4}

/* Electric Blue + Violet: shared studio shell, stage 1. */
body.studio-theme {
  color-scheme: dark;
  --tk-background: #0B1020;
  --tk-surface: #171E32;
  --tk-primary: #3B82F6;
  --tk-accent: #8B5CF6;
  --tk-text: #F8FAFC;
  --tk-secondary: #94A3B8;
  --tk-border: #29334A;
  --tk-hover: #222C45;
  --tk-success: #22C55E;
  --tk-warning: #F59E0B;
  --tk-error: #EF4444;
  --ink: var(--tk-text); --muted: var(--tk-secondary);
  --green: #93C5FD; --line: var(--tk-border);
  --paper: var(--tk-background); --white: var(--tk-surface);
  color: var(--tk-text);
}
.studio-theme .workspace, body.returning-from-live { background: var(--tk-background); }
.studio-theme .sidebar { background: var(--tk-surface); color: var(--tk-secondary); border-color: var(--tk-border); }
.studio-theme .sidebar .brand { color: var(--tk-text); }
.studio-theme .sidebar :is(nav a, .shorts-toggle) { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.studio-theme .sidebar nav a:hover, .studio-theme .sidebar .shorts-toggle:hover { background: var(--tk-hover); border-color: var(--tk-border); color: var(--tk-text); }
.studio-theme .sidebar nav a.nav-active, .studio-theme .sidebar .shorts-toggle.nav-active { background: #1c3156; border-color: #315999; color: #dbeafe; box-shadow: inset 3px 0 var(--tk-primary); }
.studio-theme .sidebar .shorts-subnav, .studio-theme .tool-nav #render-navigation { border-color: var(--tk-border); }
.studio-theme .sidebar .shorts-planned { color: var(--tk-secondary); }
.studio-theme .topbar { background: var(--tk-surface); border-color: var(--tk-border); color: var(--tk-secondary); }
.studio-theme .topbar .breadcrumb { color: var(--tk-text); }
.studio-theme .workspace :is(.card,.tool-card,.tool-price-card,.metric-card,.shorts-video-card,.job,.empty-state,.guide-card,.library-picker,.overlay-card,.shorts-cta) { background: var(--tk-surface); border-color: var(--tk-border); color: var(--tk-text); box-shadow: 0 8px 24px #05091830; }
.studio-theme .workspace :is(.muted,.field-note,.job-meta,.job-file,.job-message,.tool-card>p:not(.eyebrow),.tool-price-card p,.guide-card p,.guide-card li span) { color: var(--tk-secondary); }
.studio-theme .workspace :is(input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),select,textarea) { background: #101728; color: var(--tk-text); border-color: #46536d; }
.studio-theme .workspace :is(input,textarea)::placeholder { color: #aab7ca; }
.studio-theme .workspace :is(.secondary,.job-actions a,.job-actions button) { background: var(--tk-hover); color: var(--tk-text); border-color: #46536d; }
.studio-theme .workspace .primary { background: var(--tk-primary); color: #0b1020; border-color: transparent; }
.studio-theme .workspace :is(.primary,.secondary):focus-visible, .studio-theme .sidebar :is(a,button):focus-visible { outline: 2px solid #bfdbfe; outline-offset: 3px; }
.studio-theme .workspace :is(.plan-summary,.tools-package-summary,.library-picker,.preview-text-tools,.tool-symbol,.step) { background: var(--tk-hover); border-color: var(--tk-border); color: #dbeafe; }
.studio-theme .workspace :is(.tool-access,.text-button,.library-picker a) { color: #93c5fd; }
.studio-theme .workspace :is(input[type=checkbox],input[type=range],progress) { accent-color: var(--tk-primary); }
.studio-theme .membership-banner { background: linear-gradient(115deg,#172b50,#28204b); border-color: #34466b; color: var(--tk-text); }
.studio-theme .results-welcome-art { opacity: .25; filter: hue-rotate(115deg) saturate(.7); }
.studio-theme .results-stat, .studio-theme .results-stat:nth-child(n) { background: var(--tk-surface); border-color: var(--tk-border); box-shadow: none; }
.studio-theme .results-stat-icon { box-shadow: none; }
.studio-theme .workspace .job-status:is(.failed,.interrupted) { background: #49232e; color: #fecaca; }
.studio-theme .workspace :is(.presence,.job-status) { background: #253349; color: #e2e8f0; }
.studio-theme .workspace .job-status:is(.failed,.interrupted) { background: #49232e; color: #fecaca; }
.studio-theme .workspace .tool-locked { background: #283043 !important; color: #c1cad8 !important; }
@media (prefers-reduced-motion: reduce) { .studio-theme .sidebar :is(nav a,.shorts-toggle) { transition: none; } }

/* Electric Blue + Violet: remaining production surfaces and dialogs. */
body.studio-theme { background:var(--tk-background); }
.studio-theme .sidebar :is(.nav-label,.admin-nav-toggle,.account small,.studio-note), .studio-theme .workspace-badge { color:var(--tk-secondary); }
.studio-theme .sidebar :is(.account,.studio-note) { border-color:var(--tk-border); }
.studio-theme .sidebar :is(.avatar,.status-dot) { background:var(--tk-hover); color:#dbeafe; }
.studio-theme .workspace :is(.preview-monitor,#media-preview-panel.studio-preview,#media-preview-panel .preview-monitor,#weather-controls .overlay-preview,.preview-tabs button,.text-clip,.shorts-result-tabs button,.dropzone,.asmr-multi,.auto-lyrics-music,.lyric-timeline-scroll) { background:var(--tk-surface); color:var(--tk-text); border-color:var(--tk-border); }
.studio-theme .workspace :is(.preview-tabs button[aria-selected=true],.shorts-result-tabs button[aria-selected=true],.text-clip[aria-pressed=true],.music-navigation a.nav-active) { background:#254a82; border-color:var(--tk-primary); color:#fff; }
.studio-theme .workspace :is(.monitor-table th,.playlist-row) { background:var(--tk-hover); color:var(--tk-text); }
.studio-theme .workspace :is(.monitor-table td,.admin-user,fieldset) { border-color:var(--tk-border); }
.studio-theme .workspace :is(.roadmap-badge,.auto-lyrics-status) { background:var(--tk-hover); border-color:#46536d; color:#dbeafe; }
.studio-theme .workspace .roadmap-available { color:#86efac; border-color:#22c55e; }
.studio-theme .workspace :is(.membership-lifecycle,.storage-card) { background:var(--tk-surface); border-color:var(--tk-border); color:var(--tk-text); }
.studio-theme .membership-lifecycle:before { background:var(--tk-hover); color:#93c5fd; }
.studio-theme #membership-remaining { background:#172640; border-color:#46536d; color:var(--tk-text); }
.studio-theme .membership-banner p, .studio-theme .membership-banner .results-welcome-copy { color:#cbd5e1; }
.studio-theme .membership-warning, .studio-theme .workspace .setup-alert { background:#43371f; border-color:#916b28; color:#fde4a9; }
.studio-theme .workspace .presence.online { background:#143b2a; color:#bbf7d0; }
.studio-theme .workspace .job-status:is(.completed,.success,.done) { background:#143b2a; color:#bbf7d0; }
.studio-theme .workspace .job-status:is(.running,.processing,.queued) { background:#1e3a5f; color:#dbeafe; }
.studio-theme :is(.admin-dialog,.password-dialog,#youtube-dialog) { background:var(--tk-surface); border-color:#46536d; color:var(--tk-text); color-scheme:dark; }
.studio-theme :is(.admin-dialog,.password-dialog,#youtube-dialog) :is(input:not([type=checkbox]),select,textarea) { background:#101728; border:1px solid #46536d; color:var(--tk-text); }
.studio-theme :is(.admin-dialog,.password-dialog,#youtube-dialog) :is(.muted,.field-note) { color:var(--tk-secondary); }
.studio-theme :is(.admin-dialog,.password-dialog,#youtube-dialog) .primary { background:var(--tk-primary); color:#0b1020; }
.studio-theme :is(.admin-dialog,.password-dialog,#youtube-dialog) .secondary { background:var(--tk-hover); color:var(--tk-text); border-color:#46536d; }
.studio-theme :is(.admin-dialog,.password-dialog,#youtube-dialog) a { color:#93c5fd; }

/* Result Manager SEO fields share one column on every screen size. */
.result-seo-dialog { box-sizing:border-box; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow-y:auto; }
.result-seo-dialog > label { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin:16px 0; }
.result-seo-dialog > label :is(input,textarea) { box-sizing:border-box; display:block; width:100%; min-width:0; margin:0; padding:11px 12px; border:1px solid var(--line); border-radius:7px; font:inherit; }
.result-seo-dialog textarea { min-height:8em; resize:vertical; }
.result-seo-dialog > button { margin:4px 8px 4px 0; }
@media (max-width:480px) { .result-seo-dialog { padding:18px; } }
.studio-theme input[type=file]::file-selector-button { background:var(--tk-hover); color:var(--tk-text); border-color:#46536d; }
#live-workspace-frame { background:#0b1020; }
.login-screen { background:#0b1020; color:#f8fafc; }
.login-art { background:linear-gradient(140deg,#172b50,#28204b); color:#f8fafc; }
.login-art :is(p:not(.eyebrow),small) { color:#cbd5e1; }
.login-panel { background:#171e32; color:#f8fafc; }
.login-panel :is(.muted,.login-note) { color:#aab7ca; }
.login-panel :is(input,select) { background:#101728; color:#f8fafc; border-color:#46536d; }
.login-panel .primary { background:#3b82f6; color:#0b1020; }
.login-panel .text-button { color:#93c5fd; }

/* Results and storage: override legacy emerald rules with matching specificity. */
.studio-theme .membership-banner .results-welcome-eyebrow { color:#bfdbfe; }
.studio-theme #results-page .results-stat-icon,
.studio-theme #results-page .results-stat:nth-child(n) .results-stat-icon { background:#253b62; color:#bfdbfe; }
.studio-theme #results-page .results-stat:nth-child(3) .results-stat-icon { background:#49391d; color:#fde4a9; }
.studio-theme #results-page .results-stat span:not(.results-stat-icon),
.studio-theme #results-page .results-stats-note,
.studio-theme #results-page .storage-breakdown,
.studio-theme #results-page .results-filters label { color:var(--tk-secondary); }
.studio-theme #results-page .storage-card progress { accent-color:var(--tk-primary); }
.studio-theme #results-page .results-filters :is(input,select) { background:#101728; border-color:#46536d; color:var(--tk-text); }
.studio-theme #results-page .results-filters input::placeholder { color:#aab7ca; }
/* Results page legacy rules use ID specificity, so override them explicitly. */
.studio-theme #results-page .card { background:var(--tk-surface); border-color:var(--tk-border); color:var(--tk-text); box-shadow:0 8px 24px #05091830; }
.studio-theme #results-page .page-heading h1 span { color:var(--tk-primary); }
.studio-theme #results-page .eyebrow { color:#93c5fd; }
.studio-theme #results-page :is(.muted,.field-note) { color:var(--tk-secondary); }
.studio-theme #results-page .primary { background:var(--tk-primary); color:#0b1020; }
.studio-theme #results-page :is(.secondary,.job-actions a,.job-actions button) { background:var(--tk-hover); border-color:#46536d; color:var(--tk-text); }
/* Saved video cards are inserted dynamically into the results list. */
.studio-theme #results-page .job, .studio-theme #results-page .empty-state { background:var(--tk-surface); border-color:var(--tk-border); color:var(--tk-text); }
.studio-theme #results-page :is(.job-meta,.job-message,.job-file) { color:var(--tk-secondary); }
.studio-theme #results-page .result-thumbnail { background:#222c45; }
.studio-theme #results-page .result-thumbnail-fallback { color:#bfdbfe; }
.studio-theme #results-page .job-status { background:#253b62; color:#dbeafe; }
.studio-theme #results-page .job-status:is(.failed,.interrupted) { background:#49232e; color:#fecaca; }
.studio-theme #results-page .job-status:is(.rendering,.uploading,.preparing) { background:#49391d; color:#fde4a9; }
.asmr-v2-mixer { background: #10152e; border: 1px solid #7440cb; border-radius: 14px; padding: 1rem; box-shadow: 0 0 18px #7943dd33; }
.asmr-v2-mixer label { border-radius: 8px; padding: .5rem; color: #ece5ff; }
.asmr-v2-mixer input[type=range] { accent-color: #ae78ff; }
