/* Walkthrough and live caption studio. */
.tour-chapters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #344237;border-bottom:1px solid #344237;padding:7px;gap:4px;background:#0f1712}
.tour-chapters button{min-height:44px;padding:8px 4px;border:1px solid transparent;border-radius:7px;background:transparent;color:#b8c8bc;font-size:13px;cursor:pointer}
.tour-chapters button span{color:#81978a;margin-right:5px;font-size:11px;font-variant-numeric:tabular-nums}
.tour-chapters button:hover{background:#1c2a21;color:#f0f6ed}
.tour-chapters button[aria-pressed=true]{background:#253b2b;border-color:#4e7051;color:#d4f2c2}
.tour-chapters button[aria-pressed=true] span{color:#c1e5af}
.hero-stage{border-color:#49634f;box-shadow:0 20px 60px #0003}
.film-top{background:#17241c}.intro-controls{padding:12px 15px;background:#131e17}.film-bottom{background:#101813;color:#b3c5b8}
.caption-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);border:1px solid #3a4b40;border-radius:18px;overflow:clip;background:#121a16;box-shadow:0 25px 70px #0002}
.lab-toolbar{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:20px 26px;border-bottom:1px solid #34463a;background:#17221b;gap:16px}
.lab-toolbar>div{display:flex;align-items:center;gap:14px}.lab-toolbar strong{display:block;font-size:17px;font-weight:600;color:#ecf3e9}.lab-toolbar div div>span{display:block;font-size:13px;color:#aec2b3;margin-top:4px}.lab-mark{width:42px;height:42px;border:1px solid #49604e;border-radius:10px;display:grid;place-items:center;background:#273a2b;color:#c4efb4;font-size:19px;font-weight:700}
.reset-look{border:1px solid #49604f;background:transparent;color:#d0dfd4;min-height:42px;border-radius:8px;padding:10px 14px;font-size:13px;cursor:pointer}.reset-look:hover{background:#293b2e;border-color:#92b499}
.studio-controls{padding:25px 28px;min-width:0}
.lab-tabs{display:flex;border-bottom:1px solid #394a3e;gap:22px;margin-bottom:25px}
.lab-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:0 0 13px;background:transparent;font-size:14px;color:#9eb2a5;min-height:42px;cursor:pointer}
.lab-tabs button[aria-selected=true]{color:#e8f2e5;border-bottom-color:#bbed97}.lab-tabs button:hover{color:#ebf4e6}
.lab-panel[hidden]{display:none}
.setting-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:#e0eae1;margin-bottom:13px}.setting-title>span:last-child{font-size:12px;color:#b6d8a6;border:1px solid #3b5441;border-radius:5px;padding:4px 8px}
.look-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:25px}
.look-card{min-width:0;padding:0;text-align:left;border:1px solid #3b4b40;border-radius:10px;background:#17231b;overflow:hidden;cursor:pointer;color:#edf3e8;transition:border-color .16s,background .16s}
.look-card:hover{border-color:#78947d;background:#1e2e23}.look-card[aria-pressed=true]{border-color:#bbed97;box-shadow:0 0 0 1px #bbed971f}
.look-sample{display:flex;justify-content:center;align-items:center;gap:4px;min-height:72px;font-size:clamp(14px,1.45vw,20px);font-weight:700;white-space:nowrap;background:#111a15;border-bottom:1px solid #344338;letter-spacing:-.4px}
.look-sample b{font-weight:inherit}.sample-creator b{color:#1c2c19;background:#bbed97;border-radius:4px;padding:2px 3px}.sample-minimal{font-weight:400}.sample-minimal b{border-bottom:1px solid #d4e6d7}.sample-classic b{color:#ffdc73;text-shadow:1px 1px 2px #000}.sample-glow b{color:#62eaff;text-shadow:0 0 7px #62eaffaa,0 0 16px #62eaff77}
.look-label{display:block;font-size:14px;padding:10px 12px}.look-label i{display:block;font-style:normal;font-size:12px;color:#a9bfae;margin-top:3px}
.studio-controls fieldset{margin:0 0 22px;padding:0;border:0;min-width:0}.studio-controls legend{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:14px;margin-bottom:14px;color:#e2ece3}.studio-controls legend span{font-size:12px;color:#b6cbbd}
.swatches{gap:10px;display:flex;flex-wrap:wrap}.swatch{width:35px;height:35px;border:5px solid #121a16;outline:1px solid #4b6353;border-radius:50%;background:var(--swatch);cursor:pointer}.swatch[aria-pressed=true]{outline:2px solid #d3efbf}.swatch:hover{outline-color:#e2f0da}
.swatch[data-color="#bbed97"]{--swatch:#bbed97}.swatch[data-color="#39ff88"]{--swatch:#39ff88}.swatch[data-color="#62eaff"]{--swatch:#62eaff}.swatch[data-color="#c8a4ff"]{--swatch:#c8a4ff}.swatch[data-color="#ff91ce"]{--swatch:#ff91ce}.swatch[data-color="#ffdc73"]{--swatch:#ffdc73}.swatch[data-color="#ffffff"]{--swatch:#ffffff}
.custom-color-row{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:13px;color:#b9cbbe}.custom-color-row label{cursor:pointer}.custom-color-row input[type=color]{width:30px;height:30px;min-width:30px;padding:2px;border:1px solid #637b6a;border-radius:5px;background:#17221b;cursor:pointer}.custom-color-row output{font-size:12px;font-variant-numeric:tabular-nums;color:#c5dccb}
.range-setting{margin-top:22px}.range-setting label{font-size:14px;color:#e2eae3;display:flex;justify-content:space-between;gap:15px;margin-bottom:9px}.range-setting output{font-variant-numeric:tabular-nums;color:#c5dfba;font-size:13px}.range-ends{display:flex;justify-content:space-between;font-size:12px;color:#9fb4a6;margin-top:5px}.range-setting input[type=range]{min-height:24px}
.field-label{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#e2ece3;margin:0 0 12px}.field-label span{font-size:12px;color:#a9bfae;font-variant-numeric:tabular-nums}
.studio-controls textarea,.studio-controls input[type=text]{width:100%;font:16px/1.6 Arial,sans-serif;background:#0d1611;color:#edf3e7;border:1px solid #496250;border-radius:8px;padding:13px;resize:vertical;min-height:48px;max-height:190px}.field-help{color:#a8bdaf;font-size:13px;line-height:1.7;margin:11px 0 25px}
.mark-field{margin-top:25px!important}.mark-positions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mark-positions button{padding:12px;border:1px solid #3d5344;border-radius:7px;background:#152119;color:#bacebd;font-size:13px;cursor:pointer}.mark-positions button[aria-pressed=true]{border-color:#a1c58e;color:#dbebd2;background:#293e2d}
.lab-tip{border-top:1px solid #344a3b;padding-top:22px;margin-top:24px;color:#d5e6d5;font-size:15px}.lab-tip p{font-size:14px;color:#aac0b0;line-height:1.7;margin:8px 0 0}
.studio-note{font-size:12px;line-height:1.7;color:#aabdaf;margin:23px 0 0;max-width:400px}
.preview-area{position:relative;padding:28px 35px;background:radial-gradient(ellipse at 45% 30%,#2a4230 0,#17261c 55%,#101b14 100%);border-left:1px solid #34483b;justify-content:center}
.preview-meta{width:min(100%,300px);font-size:12px;margin-bottom:15px;color:#c1d3c4;font-weight:500;letter-spacing:.04em}
.demo-phone{width:min(100%,300px);border:1px solid #819b80;border-radius:15px;background:#101813;box-shadow:0 25px 60px #0008;flex-shrink:0;--highlight:#bbed97;--highlight-ink:#162213}
.demo-phone video{filter:brightness(.52) saturate(.62);opacity:.9}.preview-shade{background:linear-gradient(180deg,#08130c24 10%,#0a171226 36%,#07110d77 75%,#08110dcc 100%)}
.clip-topline{top:35px;left:25px;font-size:11px;letter-spacing:2px;color:#d4e5d4;font-weight:500;line-height:1.5}.clip-topline strong{display:block;font-size:42px;font-weight:700;letter-spacing:-1.5px;margin-top:4px;color:#f1f7ea}
#preview-caption{top:66%;bottom:auto;transform:translateY(-50%);left:0;width:100%;padding:0 18px;gap:4px;font-size:32px;line-height:1.3;letter-spacing:-.7px;font-weight:800;text-shadow:0 2px 4px #000,0 0 2px #000;overflow-wrap:anywhere}
#preview-caption span{transition:color .12s,background-color .12s,transform .12s;padding:0 4px;border-radius:4px;min-width:0;max-width:100%}
.demo-phone[data-caption-high=true] .clip-topline{visibility:hidden}
.demo-phone[data-style=pop] .spoken{color:var(--highlight-ink);background:var(--highlight);text-shadow:none;transform:scale(1.035)}
.demo-phone[data-style=clean] #preview-caption{font-weight:400;letter-spacing:-.4px}.demo-phone[data-style=clean] .spoken{color:var(--highlight);text-decoration:none;border-bottom:1px solid currentColor}
.demo-phone[data-style=classic] #preview-caption{bottom:auto;font-weight:800;text-shadow:-1px -1px 1px #000,1px 2px 2px #000}.demo-phone[data-style=classic] .spoken{color:var(--highlight)}
.demo-phone[data-style=glow] #preview-caption{font-weight:700}.demo-phone[data-style=glow] .spoken{color:var(--highlight);text-shadow:0 0 9px var(--highlight),0 0 25px var(--highlight),0 2px 3px #000}
#preview-watermark{font-size:11px;bottom:26px;right:20px;max-width:80%;opacity:.9;line-height:1.4}.demo-phone[data-mark=top-left] #preview-watermark{top:18px;left:20px;right:auto;bottom:auto}.demo-phone[data-mark=top-right] #preview-watermark{top:18px;right:20px;bottom:auto}.demo-phone[data-mark=bottom-left] #preview-watermark{bottom:26px;left:20px;right:auto}.demo-phone[data-mark=bottom-right] #preview-watermark{bottom:26px;right:20px;left:auto}
.preview-safeline{position:absolute;width:70px;height:3px;border-radius:4px;background:#d0e2cf88;bottom:10px;left:calc(50% - 35px)}
.preview-transport{width:min(100%,360px);margin-top:4px}.preview-player{width:100%;gap:10px}.preview-player button{width:42px;height:42px;min-width:42px;border-color:#536e56;background:#253d2b;font-size:14px}.preview-player span{font-size:12px;color:#b5cbb8}.word-scrubber{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin-top:17px;min-height:30px}.word-scrubber button{border:1px solid #3d5945;border-radius:5px;background:#1a2b20;color:#b6cbbd;padding:5px 8px;min-height:30px;font-size:12px;cursor:pointer}.word-scrubber button[aria-current=true]{background:#c4e9ad;border-color:#c4e9ad;color:#1a2a1a}.word-scrubber button:hover{border-color:#b3d6a4}.preview-hint{font-size:12px;color:#b1c8b7;margin-top:10px}
@media(max-width:1000px){.studio-controls{padding:24px}.preview-area{padding:24px}.look-sample{font-size:16px}.look-label{padding:9px;font-size:13px}.look-label i{font-size:11px}.swatches{gap:9px}.swatch{width:32px;height:32px}.lab-tabs{gap:15px}.lab-tabs button{font-size:13px}.preview-player{gap:7px}.preview-player button{width:38px;height:38px;min-width:38px}}
@media(max-width:760px){.caption-workbench{display:flex;flex-direction:column;overflow:clip}.lab-toolbar{order:0;padding:16px 18px}.preview-area{order:1;border-left:0;border-bottom:1px solid #34483b;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 20px;padding:18px;align-items:center;position:sticky;top:0;z-index:2}.preview-meta{grid-column:1/-1;width:100%;margin:0}.demo-phone{width:150px;grid-column:1}.preview-transport{grid-column:2;width:100%;margin:0}.preview-player{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0}.preview-player #preview-seek{order:3;flex:1 0 100%;width:100%}.preview-player span{font-size:12px}.word-scrubber{gap:5px;max-height:132px;overflow:auto}.word-scrubber button{font-size:12px;padding:5px;min-height:32px}.preview-hint{line-height:1.5}.clip-topline{top:26px;left:13px;font-size:7px;letter-spacing:1px}.clip-topline strong{font-size:23px;letter-spacing:-.6px}#preview-watermark{font-size:8px!important;max-width:75%}.studio-controls{order:2;padding:22px}.look-sample{font-size:19px}.look-label{font-size:14px;padding:11px}.look-label i{font-size:12px}.studio-note{max-width:none}.tour-chapters button{font-size:12px}.tour-chapters button span{font-size:10px;margin-right:3px}.swatches{gap:12px}.swatch{width:35px;height:35px}}
@media(max-width:420px){.preview-area{grid-template-columns:126px minmax(0,1fr);gap:10px 14px;padding:15px}.demo-phone{width:126px}.preview-player{gap:6px}.preview-player button{min-width:32px;width:32px;height:32px}.preview-player span{font-size:11px}.word-scrubber{max-height:116px}.word-scrubber button{font-size:11px;min-height:28px}.preview-hint{font-size:11px}.lab-toolbar strong{font-size:15px}.lab-toolbar div div>span{font-size:12px}.lab-toolbar{gap:8px}.lab-mark{display:none}.reset-look{font-size:12px;padding:9px 11px}.studio-controls{padding:18px}.look-sample{font-size:17px}.look-label i{font-size:11px}.swatches{gap:9px}.swatch{width:32px;height:32px}.studio-heading>p{font-size:16px}}
@media(prefers-reduced-motion:reduce){#preview-caption span{transition:none;transform:none!important}}

/* Detail viewing and direct manipulation, with a restrained studio finish. */
.workspace-gallery{max-width:820px}
.workspace-image{position:relative;width:100%;border:0;border-radius:0;display:block;padding:18px 18px 0;text-align:left;cursor:zoom-in;color:#cee1d0;background:#171917;min-height:0}
.workspace-image img{max-height:570px;width:100%;object-fit:contain;transition:filter .2s}
.workspace-image:hover img{filter:brightness(1.05)}
.workspace-image:focus-visible{outline:2px solid #bbed97;outline-offset:-4px}
.image-open{display:flex;justify-content:center;align-items:center;gap:9px;margin:15px -18px 0;padding:12px 18px;background:#18231c;border-top:1px solid #35483b;font-size:14px;font-weight:500}
.image-open:before{content:'+';display:grid;place-items:center;width:20px;height:20px;border:1px solid #68856d;border-radius:50%;font-size:16px;line-height:1}
.workspace-image:hover .image-open{color:#ecf5e7;background:#223629}
.screen-dialog{width:min(1180px,94vw);max-width:94vw;padding:0;border:1px solid #58715f;border-radius:16px;background:#121a15;color:#e8f0e7;box-shadow:0 30px 100px #0009;max-height:94dvh;overflow:hidden}
.screen-dialog::backdrop{background:#060c09dd;backdrop-filter:blur(9px)}
.screen-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid #34493a}
.screen-dialog-bar span{font-size:11px;letter-spacing:.1em;color:#9dbda3}.screen-dialog-bar h2{font-size:22px;letter-spacing:-.5px;margin:5px 0 0}.screen-dialog-actions{display:flex;gap:8px}
.screen-dialog-actions button{border:1px solid #526c57;background:#23382a;border-radius:8px;padding:10px 16px;color:#e2f0db;font-size:14px;min-height:42px}
.screen-dialog-actions button:hover{background:#36523c}.screen-dialog-actions button[aria-pressed=true]{background:#bbed97;color:#142415;border-color:#bbed97}
.screen-image-scroll{max-height:calc(94dvh - 164px);overflow:auto;background:#141714;padding:18px;overscroll-behavior:contain;scrollbar-color:#5a7a63 #18211b}
.screen-image-scroll img{display:block;width:100%;height:auto;margin:0 auto;max-width:1040px}
.screen-dialog[data-zoomed=true] .screen-image-scroll img{width:var(--detail-width);min-width:0;max-width:none;margin:0}
#screen-detail-caption{font-size:13px;color:#b2c9b7;line-height:1.5;margin:0;padding:14px 24px;border-top:1px solid #34493a}
.film-bottom{display:grid;gap:7px;padding:16px 20px;min-height:104px}.film-bottom strong{font-weight:500;color:#dcebd6;font-size:15px;line-height:1.5}.film-bottom>span{font-size:11px;color:#a7bcae;line-height:1.5}
.tour-chapters button{position:relative;overflow:hidden}.tour-chapters button:after{content:'';position:absolute;left:10%;bottom:0;width:calc(var(--chapter-progress,0)*.8%);height:2px;background:#bbed97;max-width:80%}
.intro-controls svg,.preview-player svg{width:17px;height:17px;display:block;margin:auto;flex:none}
.intro-controls button,.preview-player button{display:grid;place-items:center;transition:background .18s,border-color .18s,transform .18s}
.intro-controls button:hover,.preview-player button:hover{background:#354e39;border-color:#99b88d;transform:translateY(-1px)}
.lab-toolbar{background:linear-gradient(110deg,#1d2e22,#152019)}.look-card{position:relative;transition:transform .18s,border-color .18s,background .18s}.look-card:hover{transform:translateY(-2px)}
.look-card[aria-pressed=true] .look-label{background:#263c2b}.look-card[aria-pressed=true] .look-label:after{content:'✓';position:absolute;right:13px;bottom:20px;color:#caedb7;font-size:16px}
.preview-area{background:radial-gradient(ellipse at 50% 28%,#314634 0,#18251d 48%,#101b14 100%);justify-content:flex-start;padding-top:32px}
.demo-phone{border-color:#6d896f;box-shadow:0 0 0 7px #0d181044,0 28px 64px #0008;--glow-near:9px;--glow-far:25px}
#preview-caption{cursor:grab;touch-action:none;user-select:none;outline:0;pointer-events:auto;border:1px solid transparent;border-radius:8px}
#preview-caption:hover{border-color:#c4e5b766;background:#0610091a}
#preview-caption:focus-visible{border-color:#d1ecc4;outline:1px solid #d1ecc4;outline-offset:3px}
.demo-phone[data-dragging=true] #preview-caption{cursor:grabbing;border-color:#c7edb8;background:#101c1633}
.demo-phone[data-dragging=true]:after{content:'';position:absolute;left:50%;top:12%;bottom:12%;border-left:1px dashed #e3f2d955;pointer-events:none}
.demo-phone[data-style=glow] .spoken{text-shadow:0 0 var(--glow-near) var(--highlight),0 0 var(--glow-far) var(--highlight),0 2px 3px #000}
.glow-setting{border:1px solid #3d5944;border-radius:9px;padding:13px 15px;background:#1a2a1f;margin-bottom:24px}.glow-setting[hidden]{display:none}
.timing-heading{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:11px;letter-spacing:.075em;color:#a7c1ad}.timing-heading span:last-child{letter-spacing:0;text-transform:none;color:#cee5c6;font-size:12px}
.word-scrubber{justify-content:flex-start;margin-top:9px;gap:6px}.word-scrubber button{flex:1 1 auto;min-width:28px;padding:8px 9px;text-align:center;font-size:13px;transition:border-color .16s,color .16s}
.word-scrubber button.is-done{color:#b5d5a7;border-color:#64855d}
.word-scrubber button[aria-current=true]{background:linear-gradient(90deg,#ceefb8 var(--word-progress,0%),#8cab79 var(--word-progress,0%));color:#152512;border-color:#ceefb8}
.preview-hint{font-size:13px;line-height:1.65;max-width:320px;margin:13px auto 0;text-align:center}
@media(max-width:760px){.workspace-image{padding:10px 10px 0}.image-open{margin:10px -10px 0;font-size:13px;padding:11px}.film-bottom{min-height:108px;padding:14px 16px}.film-bottom strong{font-size:14px}.preview-area{padding-top:18px;align-content:start}.timing-heading{font-size:10px;margin-top:12px}.word-scrubber{gap:4px;max-height:126px}.word-scrubber button{font-size:11px;padding:5px 6px;min-height:28px}.preview-hint{font-size:11px;line-height:1.5}.screen-dialog-bar{padding:15px;gap:10px}.screen-dialog-bar h2{font-size:18px}.screen-dialog-bar span{font-size:10px}.screen-dialog-actions button{font-size:12px;padding:8px 10px}.screen-image-scroll{padding:10px}#screen-detail-caption{font-size:12px;padding:12px 15px}.screen-dialog{max-width:96vw;width:96vw}}
@media(prefers-reduced-motion:reduce){.look-card,.workspace-image img,.intro-controls button,.preview-player button{transition:none;transform:none!important}}
