.esm-upload-dialog{box-sizing:border-box;width:100%;max-width:none;height:100dvh;max-height:none;inset:0;overflow:auto;color:#fbf8fe;background:#1c1723;border:0;padding:max(16px,env(safe-area-inset-top)) max(18px,calc((100vw - 44rem)/2)) max(18px,env(safe-area-inset-bottom));margin:0;font:inherit}
.esm-upload-dialog::backdrop{background:rgb(9 7 13 / .77)}
.esm-upload-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.esm-upload-dialog h2{margin:0;font-size:1.15rem}
.esm-upload-dialog label{display:grid;gap:5px;margin:10px 0;color:#ded6e1;font-size:.87rem}
.esm-upload-dialog :is(button,input,select){box-sizing:border-box;font:inherit;border:1px solid #705f78;border-radius:10px;background:#302837;color:#faf6ff;padding:8px 10px;min-height:42px}
.esm-upload-dialog [hidden]{display:none!important}
.esm-upload-dialog .esm-final-primary,.esm-upload-dialog>button{width:100%;margin-top:8px}
.esm-upload-dialog .esm-final-primary{background:#ebc6f6;color:#28162e;font-weight:700}
.esm-upload-dialog button:disabled{opacity:.55}
.esm-upload-dialog .esm-upload-preview :is(img,video){display:block;width:100%;max-height:35dvh;object-fit:contain;border-radius:10px;background:#100c14;margin-top:12px}
.esm-upload-dialog [role=status]{font-size:.88rem;line-height:1.5;margin:10px 0}
.esm-direct-upload-entry{margin:4px 6px 4px 0}
.esm-upload-dialog textarea{box-sizing:border-box;width:100%;min-height:3.8rem;padding:8px 10px;resize:vertical;font:inherit;line-height:1.5;color:#faf6ff;background:#302837;border:1px solid #705f78;border-radius:10px}
.esm-upload-preview:has(video){display:grid;place-items:center;margin:10px 0;background:#100c14;border-radius:10px;overflow:hidden}
.esm-upload-dialog .esm-upload-preview video{width:auto;max-width:100%;max-height:34dvh;margin:0;background:#000;object-fit:contain}
.esm-upload-preview[data-frame="portrait"] video{aspect-ratio:9/16;height:34dvh}
.esm-upload-preview[data-frame="landscape"] video{aspect-ratio:16/9;width:min(100%,60.44dvh)}
.esm-camera-panel{display:none}
#esmCreateSourceChooser.esm-camera-installed[data-kind=video]{inset:0;overflow:hidden;background:#080810}
#esmCreateSourceChooser.esm-camera-installed[data-kind=video] .esm-source-choices{display:none}
body:has([data-esm-view=create]:not([hidden]) #esmCreateSourceChooser.esm-camera-installed[data-kind=video]:not([hidden])) .esm-bottom-nav{display:none!important}
#esmCreateSourceChooser.esm-camera-installed[data-kind=video] .esm-chooser-inner{
  position:relative;max-width:72rem;height:100%;min-height:0;padding:0;overflow:hidden;
  --camera-top:max(8px,env(safe-area-inset-top));--camera-bottom:max(5px,env(safe-area-inset-bottom));
}
#esmCreateSourceChooser.esm-camera-installed[data-kind=video] .esm-chooser-heading{
  position:absolute;z-index:2;top:var(--camera-top);left:max(10px,env(safe-area-inset-left));margin:0;gap:8px;
}
#esmCreateSourceChooser.esm-camera-installed[data-kind=video] .esm-chooser-heading h1{
  color:#fff;font-size:15px;line-height:1.25;text-shadow:0 1px 4px #111;
}
#esmCreateSourceChooser.esm-camera-installed[data-kind=video] [data-esm-create-back]{background:#17141dba;border:0}
#esmCreateSourceChooser[data-kind=video] .esm-camera-panel{display:block;position:relative;width:100%;height:100%;isolation:isolate;color:white}
.esm-camera-monitor{position:absolute;inset:0;overflow:hidden;background:radial-gradient(ellipse at 65% 34%,#242037,transparent 70%),#111019}
.esm-camera-monitor::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,#0b091268,transparent 17%,transparent 68%,#0b0912c9 96%)}
.esm-camera-monitor video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.esm-camera-monitor video[data-live]{opacity:1}
.esm-camera-monitor .esm-front-camera{transform:scaleX(-1)}
.esm-camera-status,.esm-camera-clock{position:absolute;z-index:1;margin:0;color:#fff;background:#18141ee8;font:500 12px/1.5 system-ui,sans-serif}
.esm-camera-status{bottom:calc(var(--camera-bottom) + 148px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(86%,30rem);padding:6px 12px;border-radius:12px;text-align:center}
.esm-camera-clock{top:calc(var(--camera-top) + 4px);left:50%;transform:translateX(-50%);padding:5px 10px;border-radius:16px;font-variant-numeric:tabular-nums}
.esm-camera-clock::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#ff799b;margin-right:6px}
.esm-camera-status:empty,.esm-camera-clock:empty,.esm-camera-panel button[hidden]{display:none}
#esmCreateSourceChooser .esm-camera-panel :is(button,select){
  box-sizing:border-box;min-height:44px;margin:0;padding:0 12px;border:0;border-radius:24px;color:#fff;background:#18141ede;font:600 12px/1.2 system-ui,sans-serif;white-space:nowrap;
}
.esm-camera-panel :is(button,select):focus-visible{outline:2px solid #d5b6fc;outline-offset:-2px}
.esm-camera-controls{display:contents}
.esm-camera-recovery{display:contents}
.esm-camera-recovery[data-album-first]{position:absolute;z-index:1;top:50%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;width:max-content;max-width:100%}
#esmCreateSourceChooser .esm-camera-recovery[data-album-first] .esm-camera-album-primary{background:#f5edf8;color:#21192a}
#esmCreateSourceChooser .esm-camera-recovery[data-album-first] .esm-camera-retry{position:static;transform:none;background:transparent}
.esm-camera-duration,.esm-camera-retry,.esm-camera-flip,.esm-camera-record,.esm-camera-files{position:absolute;z-index:1}
.esm-camera-duration{top:var(--camera-top);right:max(10px,env(safe-area-inset-right));display:flex;align-items:center;gap:3px;padding-left:12px;border-radius:24px;background:#18141ed9;font:600 11px system-ui,sans-serif;white-space:nowrap}
#esmCreateSourceChooser .esm-camera-duration select{min-width:57px;padding:0 6px;background:transparent;color-scheme:dark}
.esm-camera-flip{right:max(10px,env(safe-area-inset-right));bottom:calc(var(--camera-bottom) + 68px)}
.esm-camera-retry{left:50%;transform:translateX(-50%);bottom:calc(var(--camera-bottom) + 170px)}
#esmCreateSourceChooser .esm-camera-panel .esm-camera-record{
  left:50%;bottom:calc(var(--camera-bottom) + 58px);transform:translateX(-50%);display:grid;place-items:center;width:64px;height:64px;min-width:0;padding:0;border:3px solid white;border-radius:50%;background:#1410186b;font-size:0;box-shadow:0 1px 5px #0005;
}
.esm-camera-record::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 7px);height:calc(100% - 7px);border-radius:50%;background:#fff}
.esm-camera-record[aria-pressed=true]::before{width:23px;height:23px;border-radius:6px;background:#ff87a4}
.esm-camera-panel [disabled]{opacity:.5}
#esmCreateSourceChooser .esm-camera-files{
  bottom:var(--camera-bottom);left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:safe center;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;scroll-padding:8px;padding:2px;
}
.esm-camera-files::-webkit-scrollbar{display:none}
#esmCreateSourceChooser .esm-camera-files button{flex:0 0 auto;padding:0 13px;background:#211c28ce;touch-action:pan-x}
#esmCreateSourceChooser .esm-camera-files button[aria-pressed=true]{background:#f5edf8;color:#21192a}
.esm-camera-panel[data-camera-fallback] .esm-camera-status{top:48%;bottom:auto;transform:translate(-50%,-100%);max-width:min(80%,25rem);background:none;text-wrap:pretty;font-size:13px}
.esm-camera-panel[data-camera-fallback] .esm-camera-retry{top:50%;bottom:auto;background:#373044}
.esm-camera-panel[data-camera-fallback] .esm-camera-flip,.esm-camera-panel[data-camera-fallback] .esm-camera-duration{visibility:hidden}
@media (max-height:450px){
  #esmCreateSourceChooser .esm-camera-panel .esm-camera-record{width:52px;height:52px;bottom:calc(var(--camera-bottom) + 50px)}
  .esm-camera-flip{bottom:calc(var(--camera-bottom) + 52px)}
}

.esm-upload-preparation{display:grid;gap:4px;margin:4px 0 12px}
.esm-upload-preparation progress{display:block;width:100%;height:6px;accent-color:#cfa2ec}
.esm-upload-preparation small{font-size:.8rem;line-height:1.5;font-variant-numeric:tabular-nums}
.esm-upload-preparation small:empty{display:none}
#esmResumeUpload,.esm-upload-local-saving{
  position:fixed;z-index:920;inset-inline-end:max(12px,env(safe-area-inset-right));
  bottom:calc(82px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);
  padding:10px 16px;margin:0;border:1px solid #786782;border-radius:22px;
  background:#29212f;color:#fff;font:inherit;font-size:.875rem;box-shadow:0 2px 14px #0006
}
.esm-upload-dialog .esm-local-upload-status{display:block;margin:6px 0;color:#cec6d3}
.esm-upload-dialog .esm-local-upload-status[data-warning]{color:#f3cfa9}
.esm-upload-dialog .esm-local-upload-status[hidden],.esm-upload-dialog .esm-upload-discard[hidden]{display:none}
.esm-upload-dialog .esm-upload-discard{display:block;min-height:42px;margin:6px auto 0;background:transparent;color:inherit;border:0}
.esm-saved-upload-cover{width:46px;height:38px;object-fit:contain}
