/* Camera-first stories. The composer stays inside the existing publish pipeline. */
#up-compose.up-story-camera{--sc-blue:#3e7cff;--sc-violet:#8c4bff;position:fixed;inset:0;width:100%;max-width:100vw;height:var(--mm-height,100dvh);max-height:var(--mm-height,100dvh);margin:0;top:var(--mm-viewport-top,0px);padding:0;border:0;border-radius:0;overflow:hidden;background:#050508;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 20px 90px #0009}
#up-compose.up-story-camera::backdrop{background:#050508ed}
#up-compose.up-story-camera *,#up-compose.up-story-camera *::before,#up-compose.up-story-camera *::after{box-sizing:border-box}
#up-compose.up-story-camera [hidden]{display:none!important}
#up-compose.up-story-camera #up-publish-form{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0;padding:0}
#up-compose.up-story-camera button{font:inherit;border:0;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#up-compose.up-story-camera button:focus-visible,#up-compose.up-story-camera select:focus-visible,#up-compose.up-story-camera textarea:focus-visible{outline:3px solid #abc3ff;outline-offset:3px}
#up-compose.up-story-camera button:disabled{opacity:.4;cursor:default}
#up-compose.up-story-camera svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#up-compose.up-story-camera .sc-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:0 0 28px 28px;background:#0c0c15;isolation:isolate}
#up-compose.up-story-camera .sc-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(#0006,transparent 23%,transparent 62%,#0007)}
#up-compose.up-story-camera #up-camera-live,#up-compose.up-story-camera #up-preview,#up-compose.up-story-camera #up-video-preview{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;max-width:none;object-fit:cover;border-radius:0;margin:0;z-index:0;background:#0c0c15}
#up-compose.up-story-camera #up-camera-live.is-front{transform:scaleX(-1)}
#up-compose.up-story-camera #up-preview,#up-compose.up-story-camera #up-video-preview{object-fit:contain;background:#08080e}
#up-compose.up-story-camera .sc-topbar{position:absolute;inset:0 0 auto;z-index:5;display:flex;align-items:center;gap:12px;min-height:64px;width:100%;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px;background:transparent;color:#fff;border:0}
#up-compose.up-story-camera .sc-topbar h2{flex:1;margin:0;text-align:center;font-size:16px;font-weight:650;line-height:1.35;letter-spacing:.1px;text-shadow:0 1px 8px #0008}
#up-compose.up-story-camera .sc-icon{display:grid;place-items:center;width:48px;min-width:48px;height:48px;padding:10px;border-radius:50%;background:transparent;color:#fff}
#up-compose.up-story-camera .sc-topbar .sc-icon{background:#14141d36;backdrop-filter:blur(12px)}
#up-compose.up-story-camera #up-camera-flash[aria-pressed=true]{background:#fff;color:#28203d}
#up-compose.up-story-camera .sc-tools{position:absolute;top:35%;left:12px;z-index:5;display:grid;gap:16px;justify-items:start}
#up-compose.up-story-camera .sc-tool{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 8px;background:transparent;text-shadow:0 1px 6px #000a;font-size:14px;font-weight:600}
#up-compose.up-story-camera .sc-tool>span:last-child{opacity:0;max-width:0;overflow:hidden;transition:opacity .15s ease,max-width .15s ease;white-space:nowrap}
#up-compose.up-story-camera .sc-tool:hover>span:last-child,#up-compose.up-story-camera .sc-tool:focus-visible>span:last-child{opacity:1;max-width:120px}
#up-compose.up-story-camera .sc-aa{display:block;font-size:30px;font-weight:450;width:30px;line-height:1}
#up-compose.up-story-camera .up-story-music-actions{display:grid;gap:8px;margin:0;max-width:min(280px,75vw);align-items:start;justify-items:start}
#up-compose.up-story-camera #up-music-open{border:0;border-radius:0;background:transparent;color:white;padding:6px 8px;font-size:14px;min-height:48px}
#up-compose.up-story-camera #up-music-open svg{width:27px;height:27px}
#up-compose.up-story-camera #up-music-remove{border:1px solid #fff5;border-radius:20px;padding:8px 12px;min-height:40px;font-size:14px;background:#14141dbb;color:white}
#up-compose.up-story-camera #up-music-summary{font-size:14px;line-height:1.35;color:white;padding:8px 12px;max-width:230px;border-radius:14px;background:#14141dbb;overflow-wrap:anywhere}
#up-compose.up-story-camera #up-music-summary:empty{display:none}
#up-compose.up-story-camera .sc-camera-placeholder{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:100px 38px 200px;background:radial-gradient(ellipse at 30% 25%,#23357c55,transparent 65%),radial-gradient(ellipse at 80% 75%,#50277833,transparent 60%),#0c0c15;pointer-events:none}
#up-compose.up-story-camera .sc-lens{display:grid;place-items:center;width:76px;height:76px;border:1px solid #b0baff33;border-radius:24px;color:#bac8ff;margin-bottom:22px;background:linear-gradient(145deg,#7897ff22,#8c4bff10)}
#up-compose.up-story-camera .sc-lens svg{width:34px;height:34px}
#up-compose.up-story-camera .sc-camera-placeholder strong{font-size:21px;font-weight:650;line-height:1.3;letter-spacing:-.4px}
#up-compose.up-story-camera #up-camera-state{font-size:14px;line-height:1.5;max-width:300px;margin:12px 0 0;color:#c0c4d3;white-space:pre-wrap}
#up-compose.up-story-camera #up-camera-fallback{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px;pointer-events:auto;max-width:320px}
#up-compose.up-story-camera #up-camera-fallback button{background:#ffffff12;border:1px solid #ffffff25;border-radius:24px;padding:12px 16px;font-size:14px;min-height:44px}
#up-compose.up-story-camera #up-camera-fallback-gallery{background:linear-gradient(105deg,#326deb,#7840e5)!important;border:0!important}
#up-compose.up-story-camera .sc-capture{position:absolute;bottom:20px;left:0;right:0;z-index:4;display:flex;flex-direction:column;align-items:center;gap:10px}
#up-compose.up-story-camera .sc-capture-modes{display:flex;gap:4px;padding:3px;border-radius:24px;background:#0005;backdrop-filter:blur(12px)}
#up-compose.up-story-camera .sc-capture-modes button{background:transparent;border-radius:22px;padding:8px 16px;min-height:40px;font-size:14px;font-weight:650;color:#d9d9e3}
#up-compose.up-story-camera .sc-capture-modes button[aria-pressed=true]{background:#fff;color:#252334}
#up-compose.up-story-camera #up-camera-shutter{display:grid;place-items:center;width:82px;height:82px;padding:5px;border:3px solid #fff;border-radius:50%;background:#ffffff10;transition:transform .15s ease;touch-action:manipulation}
#up-compose.up-story-camera #up-camera-shutter>span{display:block;width:100%;height:100%;background:#fff;border-radius:50%;transition:width .16s,height .16s,border-radius .16s,background .16s}
#up-compose.up-story-camera #up-camera-shutter:active{transform:scale(.94)}
#up-compose.up-story-camera[data-capture-mode=video] #up-camera-shutter>span{background:#f15266}
#up-compose.up-story-camera.is-recording #up-camera-shutter{border-color:#ff7a8b}
#up-compose.up-story-camera.is-recording #up-camera-shutter>span{width:30px;height:30px;border-radius:7px;background:#f15266}
#up-compose.up-story-camera #up-camera-hint{font-size:14px;color:#f5f5fb;margin:0;line-height:1.4;text-shadow:0 1px 7px #000}
#up-compose.up-story-camera #up-camera-recording{margin:0;border-radius:20px;padding:7px 12px;background:#db294bdd;color:white;font-size:14px;font-variant-numeric:tabular-nums;font-weight:650}
#up-compose.up-story-camera .sc-camera-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:88px;padding:12px 22px calc(12px + env(safe-area-inset-bottom,0px));background:#050508}
#up-compose.up-story-camera .sc-camera-bottom>span{font-size:16px;font-weight:750;letter-spacing:3px}
#up-compose.up-story-camera #up-camera-gallery{border:1px solid #fff9;border-radius:14px;background:linear-gradient(145deg,#4363b52b,#a660e52b)}
#up-compose.up-story-camera .sc-text-label,#up-compose.up-story-camera .sc-color-label,#up-compose.up-story-camera .sc-review,#up-compose.up-story-camera .sc-publish-panel,#up-compose.up-story-camera .sc-file-label{display:none}
#up-compose.up-story-camera .sc-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#up-compose.up-story-camera .sc-done{padding:10px 14px;background:#ffffff22;border-radius:24px;font-size:14px;font-weight:650;min-height:44px}
/* The editor exposes the audience only after creating a moment. */
#up-compose.up-story-camera[data-story-mode=editor] .sc-capture,#up-compose.up-story-camera[data-story-mode=editor] .sc-camera-bottom,#up-compose.up-story-camera[data-story-mode=text] .sc-capture,#up-compose.up-story-camera[data-story-mode=text] .sc-camera-bottom{display:none}
#up-compose.up-story-camera[data-story-mode=editor] .sc-tools,#up-compose.up-story-camera[data-story-mode=text] .sc-tools{top:calc(80px + env(safe-area-inset-top,0px));right:14px;left:auto;display:flex;align-items:flex-start;gap:8px}
#up-compose.up-story-camera[data-story-mode=editor] .sc-tool,#up-compose.up-story-camera[data-story-mode=text] .sc-tool{border-radius:50%;background:#171720a6;width:46px;height:46px;min-height:46px;justify-content:center;padding:8px;backdrop-filter:blur(12px)}
#up-compose.up-story-camera[data-story-mode=editor] .sc-tool>span:last-child,#up-compose.up-story-camera[data-story-mode=text] .sc-tool>span:last-child{display:none}
#up-compose.up-story-camera[data-story-mode=editor] #up-music-open,#up-compose.up-story-camera[data-story-mode=text] #up-music-open{width:46px;min-height:46px;border-radius:50%;background:#171720a6;padding:10px}
#up-compose.up-story-camera[data-story-mode=editor] .up-story-music-actions,#up-compose.up-story-camera[data-story-mode=text] .up-story-music-actions{position:relative}
#up-compose.up-story-camera[data-story-mode=editor] #up-music-summary,#up-compose.up-story-camera[data-story-mode=text] #up-music-summary{position:absolute;right:0;top:54px;width:220px}
#up-compose.up-story-camera[data-story-mode=editor] #up-music-remove,#up-compose.up-story-camera[data-story-mode=text] #up-music-remove{position:absolute;right:0;top:112px;white-space:nowrap}
#up-compose.up-story-camera[data-story-mode=editor] .sc-review{position:absolute;bottom:16px;left:16px;z-index:4;display:block}
#up-compose.up-story-camera #up-clear-photo{display:flex;align-items:center;gap:8px;min-height:44px;background:#191921aa;border:1px solid #ffffff33;border-radius:24px;padding:10px 14px;font-size:14px;backdrop-filter:blur(12px)}
#up-compose.up-story-camera #up-clear-photo svg{width:20px;height:20px}
#up-compose.up-story-camera[data-story-mode=editor] .sc-publish-panel,#up-compose.up-story-camera[data-story-mode=text] .sc-publish-panel{display:block;flex:none;padding:14px 16px calc(16px + env(safe-area-inset-bottom,0px));max-height:42%;overflow:auto;background:#0d0d14}
#up-compose.up-story-camera .up-audience-card{display:flex;align-items:center;gap:12px;padding:0;margin:0;border:0;border-radius:0;background:transparent}
#up-compose.up-story-camera .up-audience-card label{flex:none;margin:0;font-size:14px;color:#d1d0df;font-weight:500}
#up-compose.up-story-camera .up-audience-card select{flex:1;min-width:0;width:auto;min-height:46px;border:1px solid #ffffff26;border-radius:24px;background:#ffffff0b;color:#fff;padding:10px 32px 10px 14px;font-size:14px;font-weight:600;appearance:auto}
#up-compose.up-story-camera select option{background:#20202a;color:#fff}
#up-compose.up-story-camera #up-compose-note{font-size:13px;color:#a3a2b7;line-height:1.45;margin:8px 0 12px}
#up-compose.up-story-camera #up-publish-state{font-size:14px;line-height:1.45;margin:8px 0 12px;color:#f2e6ff;overflow-wrap:anywhere}
#up-compose.up-story-camera #up-publish-state:empty{display:none}
#up-compose.up-story-camera #up-submit{width:100%;min-height:50px;border-radius:28px;background:linear-gradient(105deg,#3478f6,#8147ee);font-size:16px;font-weight:700;padding:13px 18px;color:white;box-shadow:0 6px 24px #4e47df25}
#up-compose.up-story-camera[data-story-mode=text] .sc-stage{background:var(--sc-story-color,#4f46e5)}
#up-compose.up-story-camera[data-story-mode=text] .sc-text-label{position:absolute;inset:28% 24px 20%;display:flex;align-items:center;margin:0;z-index:3}
#up-compose.up-story-camera #up-text{width:100%;max-height:100%;min-height:100px;resize:none;border:0;border-radius:14px;background:transparent;color:#fff;font-size:clamp(24px,5.6vw,34px);font-weight:650;line-height:1.3;text-align:center;padding:12px;box-shadow:none;font-family:inherit}
#up-compose.up-story-camera #up-text::placeholder{color:#ffffffa8;font-weight:500}
#up-compose.up-story-camera[data-story-mode=text] .sc-color-label{display:block;position:absolute;bottom:18px;left:18px;z-index:4;margin:0}
#up-compose.up-story-camera #up-color{font-size:14px;width:auto;max-width:220px;min-height:44px;color:#fff;background:#14141d55;border:1px solid #ffffff55;border-radius:24px;padding:10px 32px 10px 14px}
#up-compose.up-story-camera[data-story-mode=editor] .sc-text-label{position:absolute;bottom:74px;left:18px;right:18px;z-index:3;margin:0;display:block}
#up-compose.up-story-camera[data-story-mode=editor] #up-text{min-height:44px;max-height:110px;font-size:16px;font-weight:500;line-height:1.45;background:#11111b80;backdrop-filter:blur(16px);padding:12px 16px;text-align:left}
#up-compose.up-story-camera[data-story-mode=editor] #up-text:placeholder-shown:not(:focus){background:transparent;min-height:44px;max-height:44px;color:#fff;backdrop-filter:none}
#up-compose.up-story-camera[data-story-mode=editor] #up-text::placeholder{color:#fffe;text-shadow:0 1px 6px #000}
#up-compose.up-story-camera.is-editing-text .sc-tools{display:none}
/* Channel publishing keeps its established form and data contract. */
#up-compose.up-story-camera[data-story-mode=channel]{height:auto;max-height:90dvh;width:min(580px,94vw);border-radius:24px;background:var(--mm-surface,#fff);color:var(--mm-text,#1e2436);padding:20px;overflow:auto}
#up-compose.up-story-camera[data-story-mode=channel] #up-publish-form{height:auto;overflow:visible}
#up-compose.up-story-camera[data-story-mode=channel] .sc-stage{flex:none;min-height:280px;background:transparent;border-radius:0;overflow:visible}
#up-compose.up-story-camera[data-story-mode=channel] .sc-stage::after,#up-compose.up-story-camera[data-story-mode=channel] .sc-camera-bottom,#up-compose.up-story-camera[data-story-mode=channel] .sc-capture,#up-compose.up-story-camera[data-story-mode=channel] .sc-tools,#up-compose.up-story-camera[data-story-mode=channel] .sc-camera-placeholder,#up-compose.up-story-camera[data-story-mode=channel] #up-camera-live{display:none}
#up-compose.up-story-camera[data-story-mode=channel] .sc-topbar{position:static;padding:0;margin-bottom:12px;color:inherit}
#up-compose.up-story-camera[data-story-mode=channel] .sc-topbar h2{color:inherit;text-shadow:none}
#up-compose.up-story-camera[data-story-mode=channel] .sc-topbar .sc-icon{color:inherit;background:transparent}
#up-compose.up-story-camera[data-story-mode=channel] .sc-text-label{display:block;margin:0;position:static}
#up-compose.up-story-camera[data-story-mode=channel] #up-text{color:inherit;background:var(--mm-bg,#f3f4fa);font-size:16px;line-height:1.5;text-align:left;min-height:150px;max-height:240px;font-weight:400}
#up-compose.up-story-camera[data-story-mode=channel] #up-text::placeholder{color:var(--mm-muted,#6c6f7d)}
#up-compose.up-story-camera[data-story-mode=channel] .sc-file-label{display:grid;font-size:14px;margin:14px 0}
#up-compose.up-story-camera[data-story-mode=channel] .sc-publish-panel{display:block;padding:0;background:transparent}
#up-compose.up-story-camera[data-story-mode=channel] #up-compose-note,#up-compose.up-story-camera[data-story-mode=channel] #up-publish-state{color:var(--mm-muted,#6c6f7d)}
#up-compose.up-story-camera[data-story-mode=channel] #up-preview{position:static;height:auto;max-height:280px;margin:12px auto;object-fit:contain;border-radius:14px}
#up-compose.up-story-camera[data-story-mode=channel] .sc-review{display:block;position:static}
#up-compose.up-story-camera[data-story-mode=channel] #up-clear-photo{color:inherit;background:var(--mm-bg,#f3f4fa)}
@media(max-width:600px){#up-compose.up-story-camera{width:100%;margin:0;top:var(--mm-viewport-top,0px)}#up-compose.up-story-camera .sc-stage{border-radius:0 0 24px 24px}}
@media(max-height:650px){#up-compose.up-story-camera .sc-capture{bottom:10px;gap:6px}#up-compose.up-story-camera #up-camera-shutter{width:68px;height:68px}#up-compose.up-story-camera .sc-camera-bottom{min-height:68px;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}#up-compose.up-story-camera .sc-capture-modes button{min-height:36px;padding:6px 14px}#up-compose.up-story-camera .sc-camera-placeholder{padding-top:70px;padding-bottom:170px}#up-compose.up-story-camera .sc-lens{display:none}#up-compose.up-story-camera[data-story-mode=editor] .sc-publish-panel,#up-compose.up-story-camera[data-story-mode=text] .sc-publish-panel{max-height:46%;padding-top:10px}}
@media(prefers-reduced-motion:reduce){#up-compose.up-story-camera *{transition:none!important}}
#up-compose.up-story-camera #up-camera-feedback{position:absolute;z-index:6;top:calc(80px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);font-size:14px;line-height:1.4;color:#fff;background:#141420dc;border:1px solid #ffffff20;border-radius:16px;padding:10px 14px;margin:0;pointer-events:none;box-shadow:0 4px 18px #0003;text-align:center}
#up-compose.up-story-camera #up-camera-feedback:empty{display:none}
#up-compose.up-story-camera[data-story-mode=channel] #up-camera-feedback{display:none}

/* Isolate camera chrome from the shared messenger and social dialog headers. */
:is(.mm-app,.cs-app) #up-compose.up-story-camera .sc-topbar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-self:stretch;flex-wrap:nowrap;gap:12px;min-height:64px;height:auto;background:transparent;color:#fff}
:is(.mm-app,.cs-app) #up-compose.up-story-camera .sc-topbar h2{display:block;flex:1;align-self:center;min-width:0;margin:0;color:#fff;font-size:16px;text-align:center;line-height:1.35}
:is(.mm-app,.cs-app) #up-compose.up-story-camera .sc-topbar>.sc-icon{align-self:center;flex:0 0 48px;margin:0}
:is(.mm-app,.cs-app) #up-compose.up-story-camera[data-story-mode=channel] .sc-topbar,:is(.mm-app,.cs-app) #up-compose.up-story-camera[data-story-mode=channel] .sc-topbar h2{color:inherit}
#up-compose.up-story-camera[data-camera-fallback=true] .sc-capture{display:none}
#up-compose.up-story-camera[data-camera-fallback=true] .sc-camera-placeholder{justify-content:center;padding:calc(90px + env(safe-area-inset-top,0px)) 30px 30px;overflow:auto}
@media(max-height:650px){#up-compose.up-story-camera[data-camera-fallback=true] .sc-camera-placeholder{justify-content:flex-start;padding:calc(88px + env(safe-area-inset-top,0px)) 24px 22px}#up-compose.up-story-camera[data-camera-fallback=true] #up-camera-fallback{margin-top:14px}#up-compose.up-story-camera[data-camera-fallback=true] #up-camera-state{margin-top:10px}}

/* Stories use the available screen; tools float above the media rather than shrinking it. */
#up-compose.up-story-camera:not([data-story-mode=channel]){--story-media-fit:contain;--story-compose-footer:190px;left:0;right:0;bottom:auto;width:100%;max-width:none;box-shadow:none}
#up-compose.up-story-camera[data-story-fit=cover]{--story-media-fit:cover}
#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-stage{position:absolute;inset:0;min-height:100%;width:100%;border-radius:0}
#up-compose.up-story-camera:not([data-story-mode=channel]) :is(#up-preview,#up-video-preview){object-fit:var(--story-media-fit,contain);background:#08080e}
#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-topbar{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));background:linear-gradient(#0007,transparent)}
#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-camera-bottom{position:absolute;z-index:5;inset:auto 0 0;min-height:88px;padding-left:max(22px,env(safe-area-inset-left,0px));padding-right:max(22px,env(safe-area-inset-right,0px));background:linear-gradient(transparent,#050508c9)}
#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-capture{bottom:calc(94px + env(safe-area-inset-bottom,0px))}
#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) .sc-publish-panel{position:absolute;inset:auto 0 0;z-index:7;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px;width:100%;max-height:48%;overflow:hidden;padding:18px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:linear-gradient(#0b0a15d9,#0b0a15f7);border-top:1px solid #ffffff1c;border-radius:24px 24px 0 0;overscroll-behavior:contain}
#up-compose.up-story-camera[data-story-mode=editor] .sc-review{bottom:calc(var(--story-compose-footer) + env(safe-area-inset-bottom,0px));left:max(16px,env(safe-area-inset-left,0px))}
#up-compose.up-story-camera[data-story-mode=editor] .sc-text-label{bottom:calc(var(--story-compose-footer) + 58px + env(safe-area-inset-bottom,0px));left:max(18px,env(safe-area-inset-left,0px));right:max(18px,env(safe-area-inset-right,0px))}
#up-compose.up-story-camera[data-story-mode=text] .sc-color-label{bottom:calc(var(--story-compose-footer) + env(safe-area-inset-bottom,0px))}
#up-compose.up-story-camera.se-panel-open .sc-publish-panel{visibility:hidden;pointer-events:none}
#up-compose.up-story-camera #up-media-fit{display:none;flex:none;width:44px;min-width:44px;height:44px;padding:10px;border-radius:50%;background:#14141d66;color:#fff}
#up-compose.up-story-camera[data-story-mode=editor] #up-media-fit{display:grid;place-items:center}
#up-compose.up-story-camera #up-media-fit svg{width:23px;height:23px}
#up-compose.up-story-camera[data-story-mode=channel]{inset:0;margin:auto}
@media(min-width:760px){#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-publish-panel{padding-left:max(24px,calc((100vw - 720px)/2));padding-right:max(24px,calc((100vw - 720px)/2))}#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-camera-bottom{padding-left:32px;padding-right:32px}}
@media(max-height:650px){#up-compose.up-story-camera:not([data-story-mode=channel]){--story-compose-footer:150px}#up-compose.up-story-camera:not([data-story-mode=channel]) .sc-capture{bottom:calc(76px + env(safe-area-inset-bottom,0px));gap:5px}#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) .sc-publish-panel{max-height:55%;padding-top:12px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}#up-compose.up-story-camera #up-compose-note{margin:6px 0 8px}#up-compose.up-story-camera .up-audience-card select{min-height:42px}#up-compose.up-story-camera #up-submit{min-height:46px}#up-compose.up-story-camera[data-story-mode=editor] .sc-text-label{bottom:calc(var(--story-compose-footer) + 48px + env(safe-area-inset-bottom,0px))}}

/* Keep the action in its own row, including short screens and long errors. */
#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) #up-compose-note{margin:0;font-size:13px}
#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) #up-publish-state{min-height:0;max-height:72px;overflow:auto;margin:0;overscroll-behavior:contain}
#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) #up-submit{grid-row:4;flex:none;position:relative;margin:0;min-height:50px}
#up-compose.up-story-camera .up-audience-card select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-size:18px;background-position:right 12px center;background-repeat:no-repeat}
@media(max-height:500px){#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) .sc-publish-panel{max-height:65%;gap:6px}#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) #up-compose-note{font-size:12px}#up-compose.up-story-camera:is([data-story-mode=editor],[data-story-mode=text]) #up-submit{min-height:46px}}

#up-compose.up-story-camera[data-camera-module=false]:not([data-story-mode=channel]) .sc-file-label{display:block;position:absolute;z-index:6;top:calc(78px + env(safe-area-inset-top,0px));left:16px;right:16px;padding:12px;border:1px solid #ffffff40;border-radius:16px;background:#151426;color:white;font-size:14px}
#up-compose.up-story-camera[data-camera-module=false] #up-file{display:block;width:100%;max-width:100%;font:inherit;margin-top:8px;color:white}

#up-compose.up-story-camera #up-audience-retry{flex:1;min-height:46px;padding:8px 14px;border:1px solid #ffffff40;border-radius:24px;background:#292b45;color:#fff;font-weight:600}
