*{box-sizing:border-box}body{margin:0;background:#f6f7fb;color:#202131;font:14px Arial,sans-serif}button,input,select{font:inherit}button,.button{border:1px solid #e0e1ea;background:white;color:#373848;border-radius:8px;padding:10px 13px;cursor:pointer;display:inline-block}button:hover,.button:hover{border-color:#8078f5;background:#f5f3ff}.primary{background:#5146ef;color:white;border-color:#5146ef}.primary:hover{background:#4438dd;color:white}header{height:76px;border-bottom:1px solid #e5e6ee;display:flex;align-items:center;padding:0 30px;gap:24px;background:white}.brand{font-size:24px;font-weight:800;text-decoration:none;color:#252537;display:flex;gap:10px;align-items:center}.purple{color:#5146ef}.tag,.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:700;color:#8b8a9d}.tag{background:#f1f0ff;color:#655bd9;padding:7px 10px;border-radius:5px}.topactions{margin-left:auto;display:flex;gap:10px}.app{display:flex}.rail{width:86px;flex-shrink:0;background:white;border-right:1px solid #e5e6ee;display:flex;align-items:center;flex-direction:column;gap:15px;padding:24px 8px;min-height:calc(100vh - 76px)}.railmark{color:#5146ef;font-weight:800;border:2px solid #5146ef;border-radius:6px;padding:5px;margin-bottom:15px}.rail button{font-size:24px;border:0;width:70px;padding:13px 4px}.rail small{display:block;font-size:12px;margin-top:7px}.rail .active{color:#5146ef;background:#efedff}.railbottom{margin-top:auto;background:#eeeaff;padding:12px;border-radius:50%;color:#5146ef}main{width:calc(100% - 86px);padding:28px 30px 16px;max-width:1900px}.titlebar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.titlebar input{display:block;border:0;background:transparent;font-size:28px;font-weight:700;margin:8px 0;width:100%;color:#232335}.titlebar p{margin:0;color:#888896;font-size:14px}.notice{display:flex;gap:13px;align-items:center;border:1px solid #dedaff;background:#efedff;padding:15px 18px;border-radius:11px;margin-bottom:24px;color:#51498d;line-height:1.7}.notice>span{font-size:25px;color:#655bee}.notice button{margin-left:auto;white-space:nowrap}.notice div span{color:#79708e}.workspace{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1.5fr) 285px;gap:22px}.panel{background:white;border:1px solid #e3e4ee;border-radius:13px;overflow:hidden}.panelhead{padding:17px 18px;border-bottom:1px solid #eeeef5;display:flex;align-items:center;justify-content:space-between}h2{font-size:16px;margin:0}h2 span{font-size:12px;background:#f0eff8;border-radius:5px;padding:4px 7px;color:#8c87a5;margin-left:5px}.panelhead .button{font-size:12px;padding:8px}.transcripttools{display:flex;gap:8px;padding:14px}.transcripttools input{width:100%;min-width:0;padding:10px;border:1px solid #e6e6ef;border-radius:7px}#rows{max-height:495px;overflow:auto;min-height:380px}.row{padding:14px 16px;border-bottom:1px solid #eeeef5}.row.current{background:#f2f0ff;border-left:3px solid #655bee}.rowtop{display:flex;gap:7px;align-items:center;margin-bottom:9px;color:#9694a5;font-size:12px}.rowtop input{width:65px;border:1px solid #e5e3ef;border-radius:4px;padding:4px;color:#655bee;background:#f9f8ff}.rowtop button{margin-left:auto;padding:2px 6px;color:#9895ad;border:0}.row textarea{width:100%;resize:vertical;min-height:42px;border:0;background:transparent;color:#363444;font:16px/1.5 Arial}.panelnote{padding:16px;color:#9693a4;font-size:12px;border-top:1px solid #eeeef5}.previewhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.previewhead select{padding:8px;border:1px solid #e1e0eb;border-radius:7px;background:white;color:#757183}.stagewrap{height:475px;background:#eaeaf0;border-radius:12px;display:flex;justify-content:center;align-items:center;padding:18px}#stage{aspect-ratio:9/16;height:100%;max-width:100%;position:relative;background:#181829;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px #21214024}video{width:100%;height:100%;object-fit:contain;background:#111}#empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at 20% 0%,#494174 0%,#1b1b30 65%);color:white;text-align:center;padding:20px}#empty h3{font-size:25px;line-height:1.3;letter-spacing:-.7px}#empty p{color:#bbb7d0;font-size:14px}.uploadicon{border:1px solid #8f86b5;border-radius:15px;padding:8px 18px;font-size:30px}#empty small{color:#aca6c8;margin-top:16px;font-size:12px}#overlay{position:absolute;left:7%;right:7%;bottom:12%;text-align:center;font-weight:800;font-size:36px;line-height:1.2;pointer-events:none;color:white;overflow-wrap:anywhere}#demolabel{position:absolute;top:13px;left:13px;font-size:10px;letter-spacing:1px;color:#d0cbea;background:#ffffff15;border-radius:4px;padding:5px;display:none}.transport{display:flex;align-items:center;gap:12px;margin:15px 0}.transport span{font-size:12px;color:#858193;white-space:nowrap}.transport input{width:100%;accent-color:#655bee}.transport button{border:0;padding:9px;background:white}#timeline{height:38px;display:flex;gap:3px;background:#ebe8f5;padding:5px;border-radius:7px;overflow:hidden}#timeline button{background:#c8c1ff;border:0;font-size:11px;padding:3px;color:#554a9d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:3px}.previewnote{color:#9b96a9;font-size:12px}.settingbody{padding:17px}.label{margin:0 0 12px;color:#848092}.presets{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:22px}.presets button{padding:0;overflow:hidden}.presets button>span{display:flex;align-items:center;justify-content:center;background:#222236;color:white;height:57px;font-size:12px;font-weight:bold;padding:8px}.presets button.selected{border:2px solid #655bee}.presets small{display:block;padding:8px;font-size:12px}.presets em{color:#f9e54a;font-style:normal;margin-left:3px}.presets .bubble{background:#655bee}.settingbody>label{display:block;margin:17px 0;color:#777286}.settingbody select{display:block;width:100%;padding:10px;background:white;border:1px solid #e4e1ed;border-radius:7px;margin-top:8px}.settingbody input[type=range]{width:100%;margin-top:10px;accent-color:#655bee}output{float:right;color:#353042}.colorrow{display:flex;gap:20px;color:#777286}.colorrow label{width:50%}.colorrow input{display:block;width:100%;margin-top:8px;border:1px solid #e5e2ec;border-radius:6px;height:32px;background:white}.settingbody .check{font-size:13px;line-height:1.5}.check input{accent-color:#655bee}.settingbody>button{width:100%;color:#8a829a}footer{display:flex;justify-content:space-between;color:#9791a7;font-size:12px;padding-top:21px}dialog{border:1px solid #ddd9ec;border-radius:15px;max-width:500px;padding:25px;color:#3e384f;line-height:1.7}dialog::backdrop{background:#17112880}dialog button{margin:7px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#292338;color:white;padding:14px 22px;border-radius:9px;display:none;z-index:20}@media(min-width:1600px){.stagewrap{height:590px}#rows{max-height:610px}}@media(max-width:1180px){.workspace{grid-template-columns:1fr 1.3fr}.settings{grid-column:1/-1}.settingbody{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.presets{grid-column:1/-1}.label{grid-column:1/-1}.settingbody>label{margin:5px}.tag{display:none}}@media(max-width:760px){header{padding:15px;height:auto;flex-wrap:wrap;gap:12px}.brand{font-size:21px}.topactions{gap:5px;width:100%;margin:0}.topactions button{flex:1;font-size:12px;padding:9px}.rail{display:none}main{width:100%;padding:20px 14px}.titlebar input{font-size:22px}.titlebar button{font-size:12px}.notice{align-items:flex-start;font-size:12px}.notice button{padding:8px}.workspace{display:flex;flex-direction:column}.previewarea{order:-1}.stagewrap{height:440px}.settingbody{display:block}#rows{min-height:200px;max-height:400px}footer{gap:12px;line-height:1.6}.eyebrow{font-size:10px}}
.notice select{border:1px solid #d2cbed;background:white;padding:10px;border-radius:8px;color:#51498d;max-width:165px}.notice #demo{margin-left:0}.notice button{margin-left:0}.notice div{flex:1}.notice #cancelai[hidden]{display:none}button:disabled{opacity:.55;cursor:wait}.keyfield{width:100%;padding:12px;border:1px solid #cbc5de;border-radius:8px;margin:10px 0}.aiprogress{font-size:14px;line-height:1.6;color:#51498d}.topactions{flex-wrap:wrap}@media(max-width:900px){.notice{flex-wrap:wrap}.notice div{flex-basis:80%}.notice #generate{margin-left:auto}.topactions button{flex:auto}}
.timingtools{padding:12px 14px;border-bottom:1px solid #eeeef5;background:#f8f7ff}.timingtools b{font-size:13px;display:block;margin-bottom:9px}.timingtools>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.timingtools input{width:67px;padding:7px;border:1px solid #d9d4ef;border-radius:6px}.timingtools button{font-size:12px;padding:7px}.timingtools span,.timingtools small{font-size:12px;color:#837996}.timingtools small{display:block;margin-top:9px}.rowtiming{display:flex;gap:6px;margin-bottom:8px}.rowtiming button{padding:5px 7px;font-size:12px;color:#6257a5;background:#f4f1ff}.settingbody #font{display:block;width:100%;padding:10px;border:1px solid #ddd7ec;border-radius:7px;margin-top:8px}#fontstatus{display:block;color:#837996;font-size:12px;line-height:1.5}.presets{max-height:350px;overflow:auto}.presets [data-style=glow]>span{color:#a8ffef;text-shadow:0 0 8px #32e8c4}.presets [data-style=comic]>span{color:#ffe234;font-style:italic}.presets [data-style=editorial]>span{font-family:Georgia;font-style:italic}.presets [data-style=pill]>span{background:#5146ef;border-radius:20px}.presets [data-style=underline]>span{text-decoration:underline;text-decoration-color:#ffe234;text-underline-offset:5px}.presets [data-style=karaoke]>span{color:#ffe234}.presets [data-style=typewriter]>span{font-family:monospace}
.fontheading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.fontheading b{font-size:14px}.fontheading button{font-size:12px;padding:7px}.fonthelp{display:block;color:#80768f;line-height:1.5;font-size:12px;margin-top:8px}.fontdialog{width:min(760px,95vw);max-width:760px}.fontsearch{display:flex;gap:10px}.fontsearch input{width:100%;min-width:0;padding:11px;border:1px solid #d7cfec;border-radius:7px}.fontsearch select{max-width:160px;border:1px solid #d7cfec;border-radius:7px;background:white}#fontresults{max-height:50vh;overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}#fontresults .fontchoice{margin:0;text-align:left;min-width:0;padding:12px;font-size:14px}#fontresults small{display:block;color:#8c8499;margin-top:5px;font-size:12px}#fontresultcount{font-size:12px;color:#8c8499}#morefonts[hidden]{display:none}@media(max-width:600px){#fontresults{grid-template-columns:repeat(2,1fr)}.fontsearch{flex-wrap:wrap}}
.lengthtools{padding:13px 14px;border-bottom:1px solid #e8e4f1;background:#faf9ff}.lengthtools b{font-size:13px}.lengthtools>div{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.lengthtools input[type=number]{width:55px;padding:7px;border:1px solid #d9d4ef;border-radius:6px}.lengthtools button{font-size:12px;padding:7px}.lengthtools label,.lengthtools small{display:block;color:#837996;font-size:12px;line-height:1.6}.lengthtools small{margin-top:6px}.rowtiming{flex-wrap:wrap}#wordchips{display:flex;flex-wrap:wrap;gap:5px;max-height:140px;overflow:auto}#wordchips button{margin:0;padding:6px 8px;font-size:14px}#wordchips .kept{color:white;background:#655bee}.splitpreview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.splitpreview>div{background:#f4f1ff;border-radius:8px;padding:12px}.splitpreview p{font-size:16px;line-height:1.6}.splitpreview small{color:#8b809c}.splitnote{display:block;font-size:12px;line-height:1.6;margin-top:10px;color:#897e9c}#spliterror{color:#b53d57;font-size:14px}
.captiontools{padding:14px;border-bottom:1px solid #e5e1ef;background:#fbfaff}.captiontools summary{cursor:pointer;font-weight:700;color:#5b50a3}.toolsection{font-size:11px;letter-spacing:1px;color:#90859f;margin:16px 0 8px}.toolgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.toolgrid label{font-size:12px;color:#837996}.toolgrid input,.toolgrid select{display:block;margin-top:7px;width:100%;border:1px solid #d9d3e9;border-radius:6px;padding:8px 5px;background:white}.toolaction{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5dfed;border-radius:9px;padding:11px;margin:9px 0}.toolaction b{font-size:13px}.toolaction small{display:block;font-size:12px;color:#90859f;margin-top:5px;line-height:1.5}.toolaction input{accent-color:#655bee}.toolhelp{display:block;font-size:12px;line-height:1.5;color:#90859f;margin-top:10px}.captiontools button{width:100%;margin-top:6px}
#overlay[data-reference-style="ref-motion"] .ref-top{display:flex;justify-content:space-between;gap:12px;font-size:.38em;font-style:italic;line-height:1.5}#overlay[data-reference-style="ref-motion"] .ref-main{display:block;color:var(--ref-accent);font-size:1.15em;letter-spacing:-.03em;font-stretch:condensed;line-height:1.05}#overlay[data-reference-style="ref-kathmandu"] .ref-line{display:block;line-height:1;letter-spacing:-.035em}#overlay[data-reference-style="ref-kathmandu"] .ref-accent{color:var(--ref-accent)}#overlay[data-reference-style="ref-glow"] .ref-small{display:block;font-size:.45em;text-align:left;line-height:1.35}#overlay[data-reference-style="ref-glow"] .ref-main{display:block;line-height:1.1;color:var(--ref-accent);text-shadow:0 0 7px var(--ref-accent),0 0 26px var(--ref-accent);font-size:1.1em}#overlay[data-reference-style="ref-glow"] .ref-right{text-align:right}#overlay[data-reference-style="ref-goa"] .ref-script{color:var(--ref-accent);font-style:italic;font-weight:400;font-size:1.18em;text-shadow:0 0 9px var(--ref-accent)}#overlay[data-reference-style="ref-goa"] .ref-dotted{border-bottom:2px dotted var(--ref-accent);padding-bottom:.08em}#overlay[data-reference-style="ref-mumbai"] .ref-heading{display:block;color:var(--ref-accent);font-size:.65em;letter-spacing:.1em;text-shadow:0 0 16px var(--ref-accent)}#overlay[data-reference-style="ref-mumbai"] .ref-bottom{display:block;font-style:italic;font-size:.9em;line-height:1.3}#overlay[data-reference-style="ref-mumbai"] .ref-bottom:empty{display:none}.presets .referencecard{white-space:normal;text-align:center;line-height:1.05}.referencecard[data-reference="ref-motion"]{color:#e22c22;font-size:19px}.referencecard[data-reference="ref-kathmandu"]{color:#eaff32}.referencecard[data-reference="ref-glow"]{color:#b3ee52;text-shadow:0 0 9px #b3ee52}.referencecard[data-reference="ref-goa"]{color:#79f2bf;font-style:italic;text-decoration:underline dotted}.referencecard[data-reference="ref-mumbai"]{color:#fff447;font-style:italic}
.settingbody #accentfont{display:block;width:100%;padding:10px;border:1px solid #ddd7ec;border-radius:7px;margin-top:8px}#overlay[data-reference-style="ref-goa"] .ref-script,#overlay[data-reference-style="ref-mumbai"] .ref-bottom{font-family:var(--ref-script-font);font-weight:400}

/* Uploaded video references */
#overlay[data-video-style] .video-word{display:inline-block;white-space:pre;transform-origin:center;vertical-align:baseline}
#overlay[data-video-style="video-mixed"]{line-height:1.15!important;filter:drop-shadow(0 2px 3px #000a)}
#overlay[data-video-style="video-mixed"] .video-emphasis{font-family:var(--video-accent-font),serif;font-style:italic;font-weight:700;color:var(--video-accent);font-size:1.12em}
#overlay[data-video-style="video-golden"] .video-headline{display:block;font-family:var(--video-accent-font),serif;font-style:italic;font-weight:700;color:var(--video-accent);text-shadow:0 0 4px var(--video-accent),0 0 14px var(--video-accent),0 0 28px var(--video-accent)}
#overlay[data-video-style="video-golden"] .video-subline{display:block;text-align:right;font-size:.48em;line-height:1.4;letter-spacing:-.02em;text-shadow:0 1px 3px #0008}
.video-style-card{display:block;padding:12px 4px;background:#24232c;color:white;border-radius:7px;font-size:14px}
.video-style-card em{font-family:Georgia,serif;color:#fff136;font-weight:bold}
.video-style-card.video-golden em{text-shadow:0 0 8px #fff136}
.video-style-card small{display:block;font-size:8px;text-align:right;color:white}
#videoStyleControls{padding:10px;border:1px solid #e4e2ee;border-radius:8px}
#videoStyleControls[hidden]{display:none}
