:root{color-scheme:dark;--bg:#08070d;--surface:#15121e;--surface-soft:#1b1727;--line:#30273e;--text:#faf7ff;--muted:#b8afc8;--purple:#8843ff;--pink:#f300a1;--brand:linear-gradient(110deg,#7632f8 0%,#b11ccc 53%,#df007d 100%)}
body{background:radial-gradient(ellipse at 85% 0%,#5c249b25,transparent 34%),radial-gradient(ellipse at 0% 50%,#d0007f0c,transparent 35%),var(--bg);color:var(--text);line-height:1.45}header{max-width:1500px;margin:0 auto;border-bottom:1px solid #b879ff1b;padding-bottom:20px;background:transparent;gap:14px}header small{color:var(--muted);font-size:13px}.logo{color:#fff;font-size:28px;font-weight:800;letter-spacing:-1.3px}.logo span{background:var(--brand);background-clip:text;-webkit-background-clip:text;color:transparent}.brand-credit{display:block;font-size:10px;color:#b9a7cf;letter-spacing:2.8px;font-weight:400;margin-top:2px;text-align:left}.intro{max-width:1500px;margin:0 auto;padding-top:28px;padding-bottom:22px}h1{font-size:30px;letter-spacing:-.7px;color:#fff;margin-bottom:8px}h2{color:#f5efff;letter-spacing:-.2px}p{color:var(--muted)}.badge{border-color:#8444b84d;background:#9a35e50b;color:#d6b8fa;font-size:12px}.layout{max-width:1500px;margin:0 auto;gap:22px;padding-bottom:38px}.panel{background:linear-gradient(150deg,#1b1625,#131019);border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 35px #0002;padding:22px}.tabs{border-bottom:1px solid #aa77da1e;margin-bottom:20px;padding-bottom:15px}.tabs span{background:#773acf18;color:#d8b1ff;border:1px solid #9b50f327;border-radius:8px;font-size:11px;letter-spacing:.2px}.script h2{font-size:20px}.script-toolbar label{font-size:12px;color:#c4b4d8}.hint{color:#b2a4bf;font-size:12px;line-height:1.8}label{color:#e1d6ec;font-size:13px}label b{color:#e99bff}textarea{background:#0d0b12;color:#f9f3ff;border-color:#3c2e4a;border-radius:14px;line-height:1.9;padding:16px;box-shadow:inset 0 2px 8px #0002}textarea::placeholder{color:#897c9a}#script:focus{outline:2px solid #a458ed;outline-offset:2px}select,input[type=number]{background:#110e19;color:#e9ddf5;border-color:#3b2e4b;border-radius:10px;padding:11px;min-height:43px}input[type=range]{accent-color:#d637e7}input[type=checkbox]{accent-color:#c330eb}input[type=range]:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #ef91ff;outline-offset:4px}.btn{background:#221b2e;border-color:#453253;color:#efdefc;border-radius:11px;font-weight:500;transition:background .15s,border-color .15s}.btn:hover{border-color:#a65be5;background:#2a2039}.btn.primary,.download-only{background:var(--brand);border:1px solid #f794ff25;color:#fff;box-shadow:0 4px 20px #a214da22;font-weight:600}.btn.primary:hover{background:linear-gradient(110deg,#8641ef,#b421ce,#dc067b);border-color:#f2afff60}.install-app{background:linear-gradient(110deg,#792df21a,#ec139c16);border:1px solid #9e46dc70;font-size:12px;color:#f0d5ff;padding:10px 14px}.divider{background:linear-gradient(90deg,transparent,#a25ae133,transparent);margin:21px 0}.viewport{border:2px solid transparent;background:linear-gradient(#0b0911,#0b0911) padding-box,linear-gradient(150deg,#7c2eff,#cb20d9,#fa0087) border-box;box-shadow:0 15px 55px #0007,0 0 22px #a828e515;border-radius:25px}.empty{background:radial-gradient(ellipse at 80% 10%,#61268d50,transparent 55%),radial-gradient(ellipse at 0% 100%,#e0006c25,transparent 65%),#100c19;color:#fff}.empty p{color:#c2b2d1;line-height:1.8;max-width:265px}.empty h2{font-size:24px;letter-spacing:-.5px}.empty .launch-record{background:var(--brand);color:#fff;border:5px solid #fff;box-shadow:0 0 0 7px #c72bde15,0 8px 30px #8c1eb74d}.empty .btn.primary{background:#ffffff0c;border:1px solid #bb81e158;color:#dec4ee;box-shadow:none;font-size:12px;padding:10px 14px}.viewport .controls{background:linear-gradient(transparent,#07040d80)}.record{background:linear-gradient(145deg,#ed17c2,#ff1c71);outline-color:#e59fff5c;border:5px solid white;color:white}.record.is-recording{background:#ff245d}.viewport .controls .btn{background:#24162d66;border-color:#d9a2f94d;color:white}.edit-script{background:#180e2466;color:#f6e2ff;border-color:#ca93f143;font-size:11px}.pill{background:#130c205e;color:#fff}.count-overlay{color:#fff;text-shadow:0 3px 20px #da1caa80}.look-controls{background:linear-gradient(155deg,#21172d,#120e1a);padding:18px;border-color:#61377865}.look-title{margin-bottom:17px}.look-title h2{font-size:18px}.look-title span{color:#bfa1d1}.look-controls label{color:#e9d6f4}.look-controls .hint{color:#b7a4c2}.swatches{gap:8px}.swatches button{background:#191022;border:1px solid #51345c;color:#ccbbdc;padding:10px 5px;border-radius:11px;font-size:12px}.swatches button.active{background:linear-gradient(110deg,#8533dc38,#eb18b52b);border-color:#c65ce2;color:#fff;box-shadow:0 3px 12px #af36da17}.smooth-plus{background:var(--brand);color:white;box-shadow:0 4px 15px #be28e42b;width:35px;height:35px}.makeup-button{background:#3e163b50;color:#f2b8e9;border-color:#b343935c;padding:12px}.makeup-button.selected{background:var(--brand);color:white;border-color:#ff92d460}.effects-status{color:#d4a6e1;background:#b440da0b;border-radius:9px;padding:8px 10px;font-size:11px}.prompt-adjust{background:#0d0a14;border:1px solid #392446;border-radius:14px}.prompt-adjust .hint{color:#a68eb9}.status{color:#d69be5;font-size:12px}.lenshint{color:#a991bb;font-size:11px}.capture-zoom{background:#160a225c;border-color:#d2a3e645;backdrop-filter:blur(9px);border-radius:16px}.capture-zoom .lens-controls{background:#ffffff10}.capture-zoom .lens{color:#efdbff}.capture-zoom .lens.selected{color:#fff;background:linear-gradient(110deg,#8b35dfb3,#d92cb4b3);box-shadow:0 0 10px #cd3fd425}.capture-zoom .zoom-row button{background:#b664d222;color:#f4ddff}.capture-zoom input[type=range]{accent-color:#ee92ff}.capture-zoom output{color:#fff}.preview{background:linear-gradient(145deg,#1c1425,#110d18);border:1px solid #543163;border-radius:22px;max-width:1000px;margin:20px auto;padding:24px}.preview h2{font-size:22px}.download-only.success{background:#236749;border-color:#50be8647;box-shadow:0 4px 20px #135d3925}dialog{background:radial-gradient(ellipse at 100% 0%,#52216850,transparent 60%),#150f1e;border:1px solid #83529a65;color:white;border-radius:22px}dialog h2{color:white}dialog .btn{color:#f4dcff}dialog img{box-shadow:0 4px 20px #b127e622}dialog p{color:#c6afd5}.viewport.is-floating{border:2px solid #d05dff8c;box-shadow:0 8px 40px #0008,0 0 18px #e01cb825}.brand-footer{background:linear-gradient(180deg,transparent,#030205 25%);border-top:1px solid #5b286032;text-align:center;margin-top:20px;padding:32px 16px max(28px,env(safe-area-inset-bottom));color:#8f7d9f}.brand-footer .powered{font-size:10px;letter-spacing:2px;color:#9e89ad;margin:0 0 11px;direction:ltr}.brand-link{display:block!important;width:min(290px,80vw);margin:0 auto!important;border-radius:14px;transition:filter .2s,transform .2s}.brand-link img{display:block;width:100%;height:auto;border-radius:12px}.brand-link:hover{filter:brightness(1.15);transform:translateY(-2px)}.brand-footer .brand-website{font-size:12px;color:#d4a0e3;letter-spacing:.5px;margin:9px 0 18px;direction:ltr}.brand-footer .privacy-link{font-size:11px;color:#a68cb9;margin-top:0}.brand-footer .brand-note{font-size:11px;color:#9d86ad;margin:8px 0 0}@media(min-width:1051px){.layout{grid-template-columns:300px minmax(300px,1fr) 265px}.panel{padding:21px}}@media(max-width:650px){header{padding-top:max(17px,env(safe-area-inset-top));padding-bottom:16px}.logo{font-size:25px}.brand-credit{font-size:8px;letter-spacing:2px}.install-app{font-size:11px;padding:9px 11px}.intro{padding-top:20px;padding-bottom:15px}h1,.intro h1{font-size:24px;line-height:1.35}.intro p{font-size:12px;line-height:1.7}.layout{gap:18px}.panel{padding:19px}.look-controls{padding:17px}.empty h2{font-size:21px}.empty p{font-size:12px}.preview{margin:18px 12px;padding:19px}.brand-footer{margin-top:12px;padding-top:26px}.brand-link{width:250px;max-width:82vw}.viewport{border-radius:23px}}
/* Compact capture controls stay below the face. */
.viewport .capture-zoom{left:50%;right:auto;transform:translateX(-50%);width:146px;height:30px;bottom:calc(max(16px,env(safe-area-inset-bottom)) + 86px);padding:0 8px;display:flex;align-items:center;justify-content:center;border:0;border-radius:18px;background:#10071645;box-shadow:none;backdrop-filter:blur(4px)}.viewport .capture-zoom[hidden]{display:none}.viewport .capture-zoom input[type=range]{width:100%;min-height:28px;margin:0;accent-color:#e765ee;touch-action:pan-y}.screen-toggle{position:absolute;z-index:12;right:12px;bottom:calc(max(16px,env(safe-area-inset-bottom)) + 10px);width:40px;height:40px;display:grid;place-items:center;border:1px solid #d3b2e538;border-radius:10px;background:#12091e52;color:white;backdrop-filter:blur(5px);padding:0;cursor:pointer;touch-action:manipulation}.screen-toggle:hover{background:#722aa26b}.screen-toggle:focus-visible{outline:2px solid #eea0ff;outline-offset:3px}.viewport.is-floating .capture-zoom{width:180px;height:40px;bottom:116px;padding:0 10px}.viewport.is-floating .capture-zoom input{min-height:38px}.viewport.is-floating .screen-toggle{width:72px;height:72px;bottom:14px;right:10px;border-radius:15px}.viewport.is-floating .screen-toggle svg{width:36px;height:36px}.viewport.is-floating .controls{justify-content:flex-start;left:14px;right:92px;gap:16px}.viewport.is-floating .controls #pause{display:none}.viewport.is-expanded,.viewport:fullscreen{position:fixed!important;inset:0!important;left:0!important;top:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;transform:none!important;z-index:10000!important;margin:0!important;border:0!important;border-radius:0!important;background:#050308!important;box-shadow:none!important}.viewport.is-expanded canvas,.viewport:fullscreen canvas{object-fit:contain}.viewport.is-expanded .controls{bottom:max(18px,env(safe-area-inset-bottom));justify-content:center;left:12px;right:12px;gap:25px}.viewport.is-expanded .controls #pause{display:block}.viewport.is-expanded .screen-toggle{right:max(14px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + 10px);width:42px;height:42px}.viewport.is-expanded .capture-zoom{width:150px;height:30px;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 86px)}.viewport.is-expanded .topbar{top:max(18px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}.viewport.is-expanded .edit-script{top:calc(max(18px,env(safe-area-inset-top)) + 42px)}html.camera-expanded,html.camera-expanded body{overflow:hidden;overscroll-behavior:none}.viewport.is-expanded .empty{padding-bottom:130px}.viewport.is-expanded .prompt{font-size:inherit}

/* Compact recording controls: zoom sits directly below the record circle. */
.viewport .controls,.viewport.is-expanded .controls{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 29px)}
.viewport .capture-zoom,.viewport.is-expanded .capture-zoom{bottom:max(5px,env(safe-area-inset-bottom));width:128px;height:24px;padding:0 7px}
.viewport .capture-zoom input[type=range]{min-height:24px}
.viewport .controls #pause{width:44px;height:44px;padding:10px;display:grid;place-items:center;flex-shrink:0}
.viewport .controls #pause svg{display:block;width:22px;height:22px}
.viewport .screen-toggle,.viewport.is-expanded .screen-toggle{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 40px)}
.viewport .edit-script,.viewport.is-expanded .edit-script{left:max(12px,env(safe-area-inset-left));right:auto;top:max(12px,env(safe-area-inset-top))}
.viewport .topbar,.viewport.is-expanded .topbar{left:auto;right:max(12px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));gap:8px}
.viewport.is-floating .controls{bottom:54px}
.viewport.is-floating .capture-zoom{bottom:8px;width:150px;height:36px}
.viewport.is-floating .capture-zoom input{min-height:36px}
.viewport.is-floating .screen-toggle{bottom:58px}
.viewport.is-floating .controls #pause{display:none}

.viewport.is-floating{transform:scale(.6)}
.viewport.is-floating .controls{left:14px;right:14px;justify-content:center}
.viewport.is-floating .controls #flip{position:absolute;left:0}

.close-floating{display:none}.viewport.is-floating .close-floating{position:absolute;display:grid;place-items:center;z-index:20;top:8px;right:8px;width:48px;height:48px;padding:11px;border:1px solid #ffffff40;border-radius:50%;background:#12091e99;color:white;cursor:pointer}.close-floating svg{width:24px;height:24px}.viewport.is-floating .topbar{right:66px}

.lip-control label{display:flex;align-items:center;gap:7px}.lip-control label svg{color:#ef9cde;flex:none}.lip-control label span{margin-inline-start:auto;color:#d7b6e9}

.back-to-top{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));z-index:90;width:44px;height:44px;border:1px solid #df9cff66;border-radius:50%;background:linear-gradient(135deg,#7935d9,#c01489);color:white;display:grid;place-items:center;box-shadow:0 4px 18px #0006;cursor:pointer}.back-to-top[hidden],.camera-expanded .back-to-top{display:none}

.viewport .prompt{top:var(--prompt-top,15%)}
.text-position{position:absolute;right:5px;top:30%;z-index:13;display:flex;flex-direction:column;align-items:center;gap:3px;width:28px;padding:3px 0 7px;border-radius:15px;background:#12091e42;backdrop-filter:blur(3px)}
.viewport .text-position #editScript{position:static;display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;font-size:18px;font-family:Georgia,serif;font-weight:bold;color:white;border-radius:50%}
.text-position input[type=range]{writing-mode:vertical-lr;direction:rtl;width:22px;height:105px;min-height:0;margin:0;accent-color:#e765ee;touch-action:none;cursor:ns-resize}
.viewport.is-floating .text-position{right:6px;width:38px;top:29%}
.viewport.is-floating .text-position #editScript{width:38px;height:38px;font-size:26px}
.viewport.is-floating .text-position input{width:32px;height:140px}

.empty h2{line-height:1.5}.welcome-subtitle{font-size:.78em;font-weight:400;color:#eadcf5}.viewport #prompttext{font-weight:700;color:#fff;text-shadow:0 2px 3px #000,0 0 8px #000,1px 0 2px #000,-1px 0 2px #000;-webkit-text-stroke:.35px #0008}.viewport .prompt{background:linear-gradient(180deg,transparent,#08050d38 15%,#08050d38 85%,transparent);border-radius:12px}

.torch-button{position:absolute;z-index:14;top:max(12px,env(safe-area-inset-top));left:12px;width:42px;height:42px;display:grid;place-items:center;padding:8px;border:1px solid #ffffff3b;border-radius:12px;color:white;background:#12091e65;cursor:pointer}.torch-button.is-on{color:#ffe7a0;background:#72581ab0;border-color:#ffe599}.viewport.is-floating .torch-button{width:56px;height:56px}.viewport.is-floating .torch-button svg{width:30px;height:30px}

.viewport .prompt{height:var(--prompt-height,35%)}

#script{pointer-events:auto;-webkit-user-select:text;user-select:text;touch-action:manipulation;position:relative;z-index:1}

.page-screen-light,.camera-screen-light{display:none;pointer-events:none}.screen-light-on .page-screen-light{display:block;position:fixed;inset:0;z-index:9998;box-shadow:inset 0 0 0 18px #fff,inset 0 0 36px 20px #fff9}.screen-light-on .viewport.is-expanded .camera-screen-light,.screen-light-on .viewport:fullscreen .camera-screen-light{display:block;position:absolute;inset:0;z-index:11;box-shadow:inset 0 0 0 18px white,inset 0 0 36px 20px #fff9}.camera-expanded .page-screen-light{display:none}.torch-button.screen-mode::after{content:"מסך";position:absolute;top:100%;font:10px Arial,sans-serif;color:#fff;background:#0009;padding:2px 4px;border-radius:4px;white-space:nowrap}

.tabs h2{margin:0;font-size:18px;font-weight:700}.look-title h2{font-size:18px}

.reading-tip{margin:6px 0 14px}.viewport .prompt{left:14px;right:43px;width:auto;padding-inline:7px;border:1px solid #ffffff24;border-radius:12px}.viewport.is-floating .prompt{left:16px;right:56px;padding-inline:8px}

.viewport .prompt{--prompt-controls-space:calc(118px + env(safe-area-inset-bottom));height:min(var(--prompt-height,35%),calc(100% - var(--prompt-top,15%) - var(--prompt-controls-space)))}.viewport.is-floating .prompt{--prompt-controls-space:160px}

.text-position{top:24%}.text-position #textPosition{height:85px}.text-position .speed-icon{margin-top:7px;color:white;flex:none}.text-position #captureSpeed{height:75px}.viewport.is-floating .text-position{top:23%}.viewport.is-floating .text-position #textPosition{height:105px}.viewport.is-floating .text-position #captureSpeed{height:90px}.viewport.is-floating .speed-icon{width:29px;height:29px}

.viewport.is-floating .text-position #editScript{height:32px;width:32px;font-size:23px}.viewport.is-floating .text-position #textPosition{height:85px}.viewport.is-floating .text-position #captureSpeed{height:75px}.viewport.is-floating .speed-icon{width:24px;height:24px}

.text-position .speed-shortcut{display:grid;place-items:center;flex:none;width:28px;height:30px;margin-top:19px;padding:3px;border:0;border-radius:8px;background:transparent;color:white;cursor:pointer}.text-position .speed-shortcut .speed-icon{margin:0}.viewport.is-floating .speed-shortcut{width:32px;height:34px;margin-top:23px}

.text-position .speed-shortcut{width:30px;min-width:30px;height:32px;min-height:32px;padding:4px;overflow:visible}.speed-icon{display:block;flex-shrink:0;overflow:visible}.text-position .speed-shortcut .speed-icon{width:22px;height:22px;max-width:none}.viewport.is-floating .speed-shortcut{width:34px;height:36px;padding:5px}.viewport.is-floating .speed-shortcut .speed-icon{width:24px;height:24px}.speed-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.speed-label .speed-icon{color:#e765ee;width:22px;height:22px}

/* Screen fill light: white UI around the live camera, black controls and text. */
html.screen-light-on{--bg:#fff;--surface:#fff;--line:#d6d6d6;--text:#111;--muted:#333;--brand:#fff;background:#fff}
.screen-light-on body,.screen-light-on header,.screen-light-on .intro,.screen-light-on .panel,.screen-light-on .look-controls,.screen-light-on .prompt-adjust,.screen-light-on .preview,.screen-light-on footer,.screen-light-on dialog{background:#fff;color:#111;box-shadow:none;border-color:#ccc}
.screen-light-on h1,.screen-light-on h2,.screen-light-on p,.screen-light-on label,.screen-light-on label b,.screen-light-on .hint,.screen-light-on .status,.screen-light-on .effects-status,.screen-light-on .look-title span,.screen-light-on .brand-credit,.screen-light-on .brand-website,.screen-light-on .privacy-link,.screen-light-on .logo,.screen-light-on .logo span,.screen-light-on .welcome-subtitle,.screen-light-on header small{color:#111;background:none;-webkit-text-fill-color:currentColor}
.screen-light-on .btn,.screen-light-on .btn.primary,.screen-light-on .swatches button,.screen-light-on .makeup-button,.screen-light-on .smooth-plus,.screen-light-on .badge,.screen-light-on .install-app,.screen-light-on .download-only,.screen-light-on .back-to-top,.screen-light-on textarea,.screen-light-on select,.screen-light-on input[type=number]{background:#fff;color:#111;border-color:#999;box-shadow:none}
.screen-light-on .swatches button.active,.screen-light-on .makeup-button.selected{background:#ededed;color:#000;border-color:#111}
.screen-light-on input[type=range],.screen-light-on input[type=checkbox]{accent-color:#111}
.screen-light-on textarea::placeholder{color:#555}
.screen-light-on .tabs,.screen-light-on .divider{border-color:#ddd;background:none}
.screen-light-on .viewport{background:#fff;border-color:#ddd;box-shadow:none}
.screen-light-on .empty{background:#fff;color:#111}
.screen-light-on .viewport .prompt{background:rgba(255,255,255,.08);border-color:#ffffff30;mask-image:none;-webkit-mask-image:none}
.screen-light-on .viewport #prompttext{color:#111;font-weight:700;text-shadow:0 0 3px #fff,1px 1px 1px #fff,-1px -1px 1px #fff;-webkit-text-stroke:.3px #ffffffb3;paint-order:stroke fill}
.screen-light-on .text-position,.screen-light-on .capture-zoom,.screen-light-on .viewport .controls,.screen-light-on .torch-button,.screen-light-on .torch-button.is-on,.screen-light-on .pill,.screen-light-on .screen-toggle,.screen-light-on .close-floating{background:#fff;color:#111;border-color:#aaa;backdrop-filter:none}
.screen-light-on .viewport .text-position #editScript,.screen-light-on .text-position .speed-shortcut,.screen-light-on .speed-icon,.screen-light-on .lip-control label svg,.screen-light-on .lip-control label span{color:#111}
.screen-light-on .viewport .controls .btn{background:#fff;color:#111;border-color:#999}
.screen-light-on .record,.screen-light-on .record.is-recording{background:#111;color:white;border-color:white;outline-color:#111;animation:none}
.screen-light-on .count-overlay{background:#fff;color:#111;text-shadow:none}
.screen-light-on .torch-button.screen-mode::after{background:#fff;color:#111}
.screen-light-on .brand-link img{display:none}.screen-light-on .brand-link::after{content:'AGILI';display:block;padding:24px;font:800 34px Arial,sans-serif;color:#111;background:#fff}
.screen-light-on .viewport.is-expanded,.screen-light-on .viewport:fullscreen{background:#fff!important}

.screen-light-on .viewport input[type=range]{accent-color:#111}

.viewport{touch-action:manipulation}
@media(min-width:1100px){
 header,.intro{max-width:1580px;padding-inline:32px}.intro{padding-top:22px;padding-bottom:22px}
 .layout{direction:ltr;display:grid;grid-template-columns:minmax(260px,310px) minmax(340px,1fr) minmax(270px,330px);grid-template-areas:"script camera look" "script camera frame" ". status .";align-items:start;gap:22px;max-width:1580px;padding:8px 32px 40px}
 .layout>*{direction:rtl}.stage{display:contents}.layout .script{grid-area:script;position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow:auto;scrollbar-width:thin}.layout .beauty{grid-area:frame}.layout .viewport-anchor{grid-area:camera;position:sticky;top:20px;align-self:start;direction:rtl}.layout .look-controls{grid-area:look;max-width:none;margin:0;width:100%;padding:21px}.layout #status{grid-area:status;direction:rtl;margin:0}
 .layout .viewport:not(.is-expanded):not(.is-floating){max-width:min(470px,calc(var(--preview-max-height,660px)*var(--frame-ratio,.5625)))}
 .script #script{height:clamp(230px,32vh,380px)}.beauty select{width:100%}.beauty label:first-of-type{margin-top:0}.look-title{align-items:flex-start;gap:8px;flex-wrap:wrap}.look-title h2{margin-bottom:0}.look-title span{font-size:11px}.look-controls .rangegroup{width:100%;display:block;margin:0}.script .prompt-adjust{margin-top:18px}.panel .tabs h2{font-size:18px}
}
@media(min-width:768px) and (max-width:1099px){
 .layout{direction:ltr;display:grid;grid-template-columns:minmax(320px,1.1fr) minmax(270px,1fr);grid-template-areas:"camera script" "status script" "look frame";gap:20px;padding:10px 24px 30px}.layout>*{direction:rtl}.stage{display:contents}.layout .script{grid-area:script}.layout .viewport-anchor{grid-area:camera;align-self:start;direction:rtl}.layout #status{grid-area:status;direction:rtl}.layout .look-controls{grid-area:look;max-width:none;margin:0}.layout .beauty{grid-area:frame}.beauty select{width:100%}.beauty .rangegroup{display:block;width:100%}
}
@media(min-width:651px) and (max-width:767px){.layout{display:flex;flex-direction:column;gap:18px;padding:10px 20px 30px}.stage{display:flex;order:0;width:100%}.layout .script{order:1;width:100%}.layout .beauty{order:2;width:100%}}

.screen-light-on .viewport .controls{background:rgba(255,255,255,.12)}.screen-light-on .viewport .controls .btn,.screen-light-on .viewport .screen-toggle,.screen-light-on .viewport .capture-zoom{background:rgba(255,255,255,.12);border-color:#ffffff38}.screen-light-on .viewport #prompttext{text-shadow:0 0 5px rgba(255,255,255,.65);-webkit-text-stroke:0;paint-order:normal}

.viewport .prompt{--prompt-actual-top:max(calc(env(safe-area-inset-top) + 6px),var(--prompt-top,4%));top:var(--prompt-actual-top);height:min(var(--prompt-height,35%),calc(100% - var(--prompt-actual-top) - var(--prompt-controls-space)))}

.text-position .prompt-hold{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:5px;margin-top:5px;border:1px solid #ffffff38;border-radius:8px;background:#12091e60;color:white;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.text-position .prompt-hold.is-paused{background:#bb37d9b3;border-color:#f1b2ff}.screen-light-on .text-position .prompt-hold{background:#ffffff60;color:#111;border-color:#3336}.screen-light-on .text-position .prompt-hold.is-paused{background:#e0e0e0}.viewport.is-floating .prompt-hold{width:32px;height:32px}
