:root{
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;
 color:#101a2c;background:#f5f7fb;--blue:#0969ff;--muted:#66758d;--line:#e2e8f1;
 --surface:#fff;--stage:#141f30;--radius:18px;
}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;background:transparent;color:inherit}
button:disabled{cursor:default;opacity:.5}button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,.photo-frame:focus-visible{outline:3px solid #82b4ff;outline-offset:4px}
button{transition:background .16s,box-shadow .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner,.shelf-inner{max-width:1400px;margin:auto}
.header-inner{height:76px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.wordmark{display:inline-flex;align-items:center;gap:11px;color:#101a2c;text-decoration:none;font-size:23px;font-weight:750;letter-spacing:-.8px;line-height:1.15}
.wordmark small{font-size:11px;font-weight:450;letter-spacing:0;color:var(--muted);display:inline-block;margin-left:10px}
.duo-mark{width:35px;height:35px;padding:3px;fill:var(--blue);stroke:white;stroke-width:1.7;background:var(--blue);border-radius:10px;box-shadow:0 3px 8px #0969ff22;flex-shrink:0}
.all-apps{min-height:44px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:13px;font-weight:600;color:var(--blue)}
.all-apps svg,.shelf-arrow{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-shelf{background:#f7f9fd;border-top:1px solid #edf1f6}
.shelf-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:14px 42px}
.shelf-app{display:flex;align-items:center;gap:13px;padding:11px 15px;min-width:0;text-align:left;color:inherit;text-decoration:none;background:#fff;border:1px solid #e6ecf5;border-radius:15px;box-shadow:0 3px 7px #1c305305;transition:transform .16s,box-shadow .16s,border-color .16s}
.shelf-app:hover{transform:translateY(-2px);border-color:#b7cdf3;box-shadow:0 6px 16px #1c30530a}
.shelf-app img,.empty-app-icon{width:46px;height:46px;border-radius:12px;flex-shrink:0}
.shelf-app img{object-fit:cover}.shelf-copy{min-width:0;line-height:1.3}.shelf-copy strong{display:block;font-size:13px;font-weight:650;letter-spacing:-.15px}.shelf-copy small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.shelf-arrow{margin-left:auto;width:13px;color:#7c8aa2;flex-shrink:0}
.empty-app-icon{display:grid;place-items:center;background:#eef3fc;color:#7487a6}
.empty-app-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.shelf-available{border:1px dashed #b9c9e2;box-shadow:none;background:transparent}
main{max-width:1400px;margin:auto;padding:30px 42px max(55px,env(safe-area-inset-bottom))}
h1{font-size:clamp(34px,4.1vw,58px);font-weight:760;line-height:1.08;letter-spacing:-2.4px;margin:0 0 10px}
.intro{font-size:20px;line-height:1.5;color:var(--muted);letter-spacing:-.4px;margin:0 0 24px}
.workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(350px,1fr);gap:22px;align-items:start}
h2{font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.7px;margin:0}
.preview-column{min-width:0}#preview-section{scroll-margin-top:20px}#preview-section:focus{outline:none}#preview-section:focus-visible{outline:3px solid #82b4ff;outline-offset:5px;border-radius:var(--radius)}
.preview-stage{padding:20px;background:linear-gradient(145deg,#1d293a,#101b2b);border:1px solid #263346;border-radius:var(--radius);box-shadow:0 14px 35px #182b4610}
.stage-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;color:#fff}.stage-heading h2{font-size:22px;letter-spacing:-.5px}.stage-heading>span{font-size:12px;color:#c0ccdc}
.video-frame{aspect-ratio:16/9;border-radius:11px;overflow:hidden;position:relative;background:#edf0f4;isolation:isolate}
video{display:block;width:100%;height:100%;object-fit:contain}
.render-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#152134ed;color:#f4f7ff;font-size:14px;text-align:center;padding:15px}.render-state[hidden]{display:none}
.spinner{width:28px;height:28px;border:2px solid #52627c;border-top-color:#70b4ff;border-radius:50%;animation:spin 1s linear infinite}progress{width:160px;max-width:80%;height:5px;accent-color:#65aaff}
.transport{height:46px;margin-top:14px;display:flex;align-items:center;gap:13px;color:#edf2fb}
.transport button{width:44px;height:44px;flex-shrink:0;padding:0;border-radius:50%}.transport button:hover:not(:disabled){background:#31415a}.transport #play{background:#2a394f}
.transport svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}#play-icon{fill:currentColor;stroke:none}.transport span{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.transport input{margin:0;flex:1;min-width:15px;accent-color:#b9d9ff}
input[type=range]{height:24px;width:100%;accent-color:var(--blue);cursor:pointer;margin:9px 0 0}.transport input[type=range]{margin:0;accent-color:#b9d9ff}
.privacy{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;color:var(--muted);margin:17px 3px 0}.privacy>svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;margin-top:1px}.note-separator{padding:0 5px}
.status{font-size:13px;line-height:1.6;color:#526782;overflow-wrap:anywhere;margin:10px 3px 0}.status:empty{display:none}.status.error{background:#fff0ef;border:1px solid #ffd6d2;color:#a82f32;padding:12px;border-radius:10px}
.editor-panel{min-width:0;padding:24px;background:#fff;border:1px solid #e5ebf3;border-radius:var(--radius);box-shadow:0 10px 30px #213c6710}
.editor-panel h2{margin-bottom:15px}.mode-toggle{display:flex;border:1px solid #dce4ef;border-radius:10px;padding:3px;background:#f4f7fc;margin-bottom:15px;gap:3px}
.mode-toggle button{flex:1;min-width:0;min-height:40px;border-radius:7px;font-size:13px;font-weight:550;color:#52627c}.mode-toggle .selected{background:var(--blue);color:white;box-shadow:0 2px 6px #0969ff24}
.control-label{font-size:12px;font-weight:550;color:#38475e;margin:0 0 8px}.media-label{margin-top:17px}
.screen-tabs{display:flex;gap:10px}.screen-tabs button{min-width:0;flex:1;min-height:65px;border:1px solid #e0e7f1;background:#fff;border-radius:10px;padding:8px 5px;color:#63718a;font-size:12px;flex-direction:column;gap:5px}.screen-tabs .selected{background:#f0f6ff;border-color:var(--blue);box-shadow:inset 0 0 0 .5px var(--blue);color:#145cc5}
.screen-tabs svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}.screen-label{display:block;min-width:0;max-width:100%}.screen-label small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px;font-size:10px;font-weight:400;line-height:1.4;margin-top:3px;color:#697c99}
.multi-source-help{font-size:12px;line-height:1.6;color:#4d6590;background:#f1f6ff;border-radius:10px;padding:11px 12px;margin:0 0 14px}.multi-source-help strong{color:#2259b6;font-weight:650}
.dropzone{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:88px;padding:13px 8px;border:1px dashed #8cb9ff;border-radius:11px;background:#f0f6ff;cursor:pointer;transition:background .15s,border-color .15s;text-align:center}
.dropzone:hover,.dropzone.dragging{background:#e3efff;border-color:var(--blue)}.dropzone:focus-within{outline:3px solid #82b4ff;outline-offset:3px}.dropzone svg{width:24px;height:24px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.dropzone strong{font-size:13px;font-weight:600;color:#0961e3}.dropzone span{font-size:10px;line-height:1.4;color:#657895}#photo{position:absolute;opacity:0;width:1px;height:1px}
.photo-frame{position:relative;overflow:hidden;border-radius:10px;margin-top:13px;aspect-ratio:2.8;background:#edf0f5;touch-action:none;cursor:crosshair}.photo-frame img{display:block;width:100%;height:100%;object-fit:contain}
#crop-box{position:absolute;top:5%;height:90%;left:35%;width:30%;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 999px #050b1738;pointer-events:none}#crop-box:before,#crop-box:after{content:"";position:absolute;height:5px;width:23px;background:#fff;border-radius:3px;left:calc(50% - 12px);top:-3px}#crop-box:after{top:auto;bottom:-3px}
.crop-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.hint{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0 0}.crop-tools .hint{flex:1}.crop-tools button{font-size:11px;font-weight:600;color:#0961e3;min-height:44px;padding:0;white-space:nowrap}
.crop-label{font-size:12px;font-weight:550;display:block;margin-top:15px}.source-note{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:var(--muted);margin:10px 0 17px}
.actions{display:flex;gap:10px}.actions button{min-height:48px;border-radius:10px;font-size:13px;font-weight:600;white-space:nowrap;padding:0 10px}.actions svg,.show-preview svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.secondary{background:#edf1f7;flex:.8}.secondary:hover:not(:disabled){background:#e1e8f2}.primary{background:var(--blue);color:#fff;flex:1.2;box-shadow:0 3px 8px #0969ff20}.primary:hover:not(:disabled){background:#0058df;box-shadow:0 5px 14px #0969ff30}
.show-preview{display:flex;width:100%;min-height:44px;color:#657895;font-size:12px;font-weight:550;margin-top:10px;border-radius:9px}.show-preview:hover{background:#f2f6fc;color:#0961e3}.show-preview svg{width:16px;height:16px}
.crop-tools button[hidden],.multi-source-help[hidden],.screen-label small[hidden]{display:none}
@keyframes spin{to{transform:rotate(360deg)}}
/* Application dialog. Its styles are scoped away from the media editor. */
.promotion-dialog{border:1px solid #e7ecf7;border-radius:26px;width:calc(100% - 32px);max-width:530px;max-height:calc(100dvh - 40px);padding:32px;margin:auto;overflow:auto;color:#17233c;box-shadow:0 28px 100px #0b183d40;overscroll-behavior:contain;scrollbar-gutter:stable}
.promotion-dialog::backdrop{background:#101b35a6;backdrop-filter:blur(5px)}
body.promotion-open{overflow:hidden}
.promotion-close{position:absolute;right:14px;top:14px;width:44px;height:44px;border-radius:50%;color:#77849c;background:#f5f7fb}
.promotion-close:hover{background:#eaf0fb;color:#17233c}
.promotion-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.promotion-heading>.empty-app-icon{height:48px;width:48px;border-radius:13px;margin:0 0 22px}
.promotion-heading h2{font-size:27px;font-weight:650;letter-spacing:-.9px;line-height:1.15;margin:0 0 9px;max-width:350px}
.promotion-heading>p{font-size:14px;line-height:1.5;color:#66758e;margin:0 0 20px}
.placement-price{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-radius:14px;background:#f1f5ff;margin:0 0 13px}
.placement-price strong{font-size:26px;letter-spacing:-.7px;color:#174fae}
.placement-price strong span{font-size:11px;letter-spacing:.1px;font-weight:500}
.placement-price>span{font-size:13px;color:#4c6490}
.promotion-heading .placement-process{font-size:12px;line-height:1.6;margin-bottom:22px}
#promotion-fields{padding:0;margin:0;border:0;min-width:0}
.promotion-dialog label{display:block;font-size:12px;font-weight:600;line-height:1.4;margin-bottom:15px;color:#3c4b64}
.promotion-dialog input:not([type=checkbox]),.promotion-dialog textarea{display:block;width:100%;border:1px solid #dbe2ed;border-radius:10px;background:#fff;min-height:46px;font:inherit;font-size:16px;font-weight:400;color:#17233c;padding:11px 12px;margin:6px 0 0;transition:border-color .15s,box-shadow .15s}
.promotion-dialog input::placeholder,.promotion-dialog textarea::placeholder{color:#929cad}
.promotion-dialog textarea{resize:vertical;min-height:88px;line-height:1.4}
.promotion-dialog input:focus-visible,.promotion-dialog textarea:focus-visible{outline:2px solid #a4c2ff;outline-offset:1px;border-color:#6299fa}
.promotion-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-optional{font-weight:400;color:#8b94a5}
.promotion-dialog .promotion-acknowledgment{display:flex;gap:10px;align-items:flex-start;font-size:12px;font-weight:400;line-height:1.6;margin:6px 0 18px;cursor:pointer}
.promotion-acknowledgment input{width:18px;height:18px;margin:1px 0 0;flex-shrink:0;accent-color:#0866ff}
.promotion-submit{width:100%;min-height:49px;border-radius:11px;background:#0866ff;color:#fff;font-size:15px;font-weight:600;gap:10px;transition:background .15s}
.promotion-submit:hover:not(:disabled){background:#0054dd}
.promotion-submit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.promotion-privacy{font-size:11px;line-height:1.6;text-align:center;color:#8993a6;margin:14px 2px 0}
.promotion-error{background:#fff1f0;color:#aa332e;border-radius:8px;padding:12px;font-size:13px;line-height:1.5;margin:0 0 14px}
.promotion-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.promotion-success{text-align:center;padding:16px 0 0}
.promotion-success>svg{width:56px;height:56px;fill:#ecf8f1;stroke:#3c9d6e;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.promotion-success h3{font-size:23px;letter-spacing:-.6px;margin:16px 0 10px}
.promotion-success p{font-size:14px;color:#66758e;line-height:1.6;margin:0 0 24px}
.promotion-dialog [hidden]{display:none!important}
@media(min-width:1000px){.preview-column{position:sticky;top:24px}}
@media(max-width:1100px){
 .header-inner{padding:0 26px}.shelf-inner{padding:12px 26px;gap:9px}.shelf-app{gap:9px;padding:10px}.shelf-arrow{display:none}.shelf-copy small{font-size:9px}main{padding:30px 26px 45px}.workspace{grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:18px}.editor-panel{padding:20px}.preview-stage{padding:16px}.transport{gap:7px}.transport span{font-size:11px}
}
@media(max-width:850px){
 .workspace{display:flex;flex-direction:column;gap:24px}.preview-column,.editor-panel{width:100%}.preview-column{position:static}.editor-panel{padding:24px}.photo-frame{aspect-ratio:2.5;max-height:240px}.screen-tabs button{flex-direction:row;min-height:58px;font-size:14px;gap:12px}.screen-label small{max-width:200px}.dropzone{min-height:110px}.dropzone strong{font-size:15px}.dropzone span{font-size:12px}.actions button{font-size:15px;min-height:52px}.mode-toggle button{min-height:44px;font-size:14px}.hint,.source-note{font-size:12px}
}
@media(max-width:600px){
 .header-inner{height:64px;padding:0 max(18px,env(safe-area-inset-left))}.wordmark{font-size:20px;gap:9px;letter-spacing:-.6px}.wordmark small{display:block;margin:3px 0 0;font-size:10px}.duo-mark{width:33px;height:33px}.all-apps{font-size:12px}
 .shelf-inner{padding:12px max(10px,env(safe-area-inset-left));gap:4px}.shelf-app{border:0;box-shadow:none;background:transparent;padding:0 2px;flex-direction:column;gap:7px;text-align:center;border-radius:10px}.shelf-app:hover{transform:none;background:#eaf1fc}.shelf-app img,.shelf-app .empty-app-icon{width:44px;height:44px;border-radius:12px}.shelf-copy strong{font-size:10px;letter-spacing:-.2px}.shelf-copy small{display:none}.shelf-available .shelf-copy small{display:block;font-size:9px;margin-top:3px}.shelf-available .empty-app-icon{border:1px dashed #aabbd6;background:#f0f4fb}.store-unavailable .shelf-copy small{display:block;font-size:9px}
 main{padding:26px max(16px,env(safe-area-inset-left)) max(32px,env(safe-area-inset-bottom))}h1{font-size:35px;letter-spacing:-1.5px;max-width:400px}.intro{font-size:15px;line-height:1.5;letter-spacing:-.1px;margin:10px 0 22px;max-width:350px}
 .preview-stage{padding:12px;border-radius:16px}.stage-heading{margin-bottom:12px}.stage-heading h2{font-size:17px;letter-spacing:-.4px}.stage-heading>span{font-size:10px}.video-frame{border-radius:8px}.transport{gap:3px;margin-top:10px;height:44px}.transport button{width:44px}.transport svg{width:19px;height:19px}.transport span{font-size:10px}.privacy{font-size:10px;gap:7px;margin-top:12px;line-height:1.7}.privacy>svg{width:16px;height:16px}.note-separator{padding:0 2px}.workspace{gap:22px}
 .editor-panel{padding:20px;border-radius:16px}.editor-panel h2{font-size:23px;margin-bottom:16px}.screen-tabs button{font-size:13px;gap:8px}.screen-label small{max-width:117px;font-size:9px}.control-label{font-size:12px}.dropzone strong{font-size:14px}.dropzone span{font-size:10px}.photo-frame{aspect-ratio:2.1}.crop-tools button{font-size:11px}.hint{font-size:11px}.show-preview{font-size:13px}.actions{gap:8px}.actions button{font-size:13px;padding:0 8px}
 .promotion-dialog{width:calc(100% - 20px);padding:25px 21px;border-radius:22px;max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - env(safe-area-inset-bottom))}.promotion-heading h2{font-size:26px;max-width:270px}.promotion-heading>.empty-app-icon{margin-bottom:18px}.promotion-field-row{grid-template-columns:1fr;gap:0}.promotion-close{right:10px;top:10px}
}
@media(max-width:359px){
 h1{font-size:30px}.intro{font-size:14px}.shelf-copy strong{font-size:9px}.shelf-app img,.shelf-app .empty-app-icon{width:41px;height:41px}.preview-stage{padding:9px}.transport{gap:1px}.transport span{font-size:9px}.transport button{width:44px}.editor-panel{padding:16px}.screen-tabs{gap:7px}.screen-label small{max-width:95px}.screen-tabs button{gap:5px}.actions button{font-size:12px}.actions svg{width:18px}.placement-price{padding:13px 12px;gap:7px}.placement-price>span{font-size:11px}.promotion-heading h2{font-size:24px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.shelf-app:hover{transform:none}}

/* Matched track and thumb treatment for both crop and playback controls. */
input[type=range]{appearance:none;-webkit-appearance:none;background:transparent}
input[type=range]::-webkit-slider-runnable-track{height:5px;background:#e2e8f2;border-radius:5px}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;border:3px solid white;border-radius:50%;background:var(--blue);margin-top:-6px;box-shadow:0 1px 5px #17396140}
input[type=range]::-moz-range-track{height:5px;background:#e2e8f2;border-radius:5px}
input[type=range]::-moz-range-thumb{width:12px;height:12px;border:3px solid white;border-radius:50%;background:var(--blue);box-shadow:0 1px 5px #17396140}
.transport input[type=range]::-webkit-slider-runnable-track{background:#53627a}.transport input[type=range]::-webkit-slider-thumb{background:#f4f8ff;border-color:#f4f8ff;box-shadow:none}
.transport input[type=range]::-moz-range-track{background:#53627a}.transport input[type=range]::-moz-range-thumb{background:#f4f8ff;border-color:#f4f8ff;box-shadow:none}
