.up-screen,.up-dialog,.up-viewer{box-sizing:border-box;color:#152320;font-family:system-ui,sans-serif;border:0;padding:0;background:#fff}.up-screen::backdrop,.up-dialog::backdrop,.up-viewer::backdrop{background:#091a22a6}.up-screen{width:min(780px,100vw);height:95dvh;max-width:100vw;max-height:100dvh;border-radius:20px;overflow:hidden}.up-screen[open]{display:flex;flex-direction:column}.up-header{display:flex;align-items:center;gap:16px;padding:20px 24px;border:0;height:auto;background:white}.up-header h1{flex:1;font-size:28px;letter-spacing:-.6px;margin:0;font-weight:600}.up-screen button,.up-dialog button,.up-viewer button{font:inherit;cursor:pointer;border:0}.up-header button{background:transparent;font-size:29px;width:40px;height:40px}.up-content{padding:0 24px 125px;overflow:auto;flex:1}.up-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0}.up-section-title h2{font:600 23px system-ui;margin:0}.up-section-title span{font-size:12px;color:#61736d}.up-section-title button,.up-create{background:#eff4f1;border-radius:28px;padding:12px 18px;font-weight:600}.up-stories{display:flex;gap:12px;overflow-x:auto;padding:8px 0 24px;min-height:205px}.up-story{flex:0 0 132px;height:202px;position:relative;border-radius:22px!important;overflow:hidden;text-align:left;color:white;background:#087e61;padding:12px!important;isolation:isolate}.up-story:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#0009);z-index:-1}.up-story img.cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.up-story .up-ring{display:grid;place-items:center;width:56px;height:56px;border:3px solid #39df7c;outline:2px solid #fff;border-radius:50%;background:#fff;color:#12543c;font-weight:700;font-size:22px}.up-story.seen .up-ring{border-color:#b9c6c0}.up-story .up-story-copy{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;margin-top:12px;line-height:1.4}.up-story strong{position:absolute;bottom:16px;left:12px;right:8px;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.up-channel-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #edf1ef}.up-channel-avatar{display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;border-radius:50%;background:#d9f7e2;color:#076143;font-size:25px;font-weight:700}.up-channel-open{flex:1;text-align:left;background:transparent;min-width:0;padding:0}.up-channel-open strong{display:block;font-size:18px}.up-channel-open small{display:block;color:#697973;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}.up-follow{background:#d9fbd8;color:#087e61;border-radius:22px;padding:10px 16px}.up-badge{border-radius:20px;background:#16a56c;color:#fff;font-size:12px;padding:5px 8px}.up-hint{font-size:13px;line-height:1.55;color:#687a72}.up-create{margin-top:24px;color:#087e61}.up-floating{position:absolute;bottom:100px;right:24px;display:grid;justify-items:end;gap:12px}.up-floating button{width:54px;height:54px;border-radius:18px;background:#eef3f0;color:#52665e;box-shadow:0 4px 12px #0001;font-size:26px}.up-floating button:last-child{width:64px;height:64px;background:#18a968;color:#fff;font-size:32px}.up-floating small{font-size:16px}.up-nav{display:flex;border-top:1px solid #edf1ef;background:white;padding:12px 8px calc(12px + env(safe-area-inset-bottom));justify-content:space-around}.up-nav button{display:grid;justify-items:center;gap:5px;background:transparent;font-size:25px;color:#33453c;padding:4px 12px;border-radius:20px}.up-nav span{font-size:12px;font-weight:600}.up-nav [aria-current]{background:#d8fcd4;color:#087e61}.up-dialog{width:min(580px,94vw);max-height:92dvh;border-radius:20px;padding:24px;overflow:auto}.up-dialog header{display:flex;align-items:center;justify-content:space-between;padding:0;height:auto;background:white}.up-dialog h2{font-size:21px;margin:0}.up-dialog header button{background:transparent;font-size:28px;padding:8px}.up-dialog label{display:grid;gap:8px;margin:18px 0;font-size:14px;font-weight:600}.up-dialog input,.up-dialog textarea,.up-dialog select,#up-search{box-sizing:border-box;width:100%;padding:13px;border:1px solid #d2ded7;border-radius:12px;background:white;color:#182d22;font:inherit}.up-primary{background:#087e61;color:white;padding:13px 20px;border-radius:12px;font-weight:600}.up-dialog img{max-width:100%;max-height:300px;object-fit:contain;border-radius:12px}.up-dialog button:disabled{opacity:.5;cursor:wait}.up-viewer{width:min(520px,100vw);height:90dvh;max-height:100dvh;border-radius:20px;color:white;background:#087e61;overflow:auto}.up-viewer header{display:flex;align-items:center;justify-content:space-between;padding:20px;background:transparent;height:auto}.up-viewer small{display:block;opacity:.8;font-size:12px;margin-top:5px}.up-viewer button{background:#0003;color:white;padding:10px;border-radius:12px}.up-view-body{min-height:55dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:15px}.up-view-body img{max-width:100%;max-height:50dvh;object-fit:contain}.up-view-body p{font-size:25px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center}.up-viewer footer{display:flex;justify-content:space-between;padding:16px;gap:6px}.up-progress{display:flex;gap:4px;padding:12px 12px 0}.up-progress span{flex:1;height:4px;border-radius:5px;background:#fff5}.up-progress .current{background:white}.up-post{padding:18px;background:#f0f6f2;border-radius:16px;margin:16px 0}.up-post p{white-space:pre-wrap;overflow-wrap:anywhere}.up-post small{color:#687a72}.up-post button{background:transparent;color:#a02525;margin-top:10px}.up-empty{padding:24px 12px;border:1px dashed #cddbd2;border-radius:16px;color:#67796f;text-align:center;line-height:1.6}.mm-bottom-nav{grid-template-columns:repeat(5,1fr)!important}.mm-bottom-nav span{font-size:10px!important}@media(max-width:600px){.up-screen{width:100vw;height:100dvh;border-radius:0;margin:0}.up-header{padding:18px 16px}.up-content{padding-left:16px;padding-right:16px}.up-viewer{width:100vw;height:100dvh;border-radius:0;margin:0}.up-floating{right:18px}.up-story{flex-basis:125px;height:195px}}
/* Status viewer and privacy controls, independent of the site's page chrome. */
.mm-app #up-viewer{position:fixed;inset:0;width:min(480px,100vw);height:var(--mm-height,100dvh);max-width:100vw;max-height:var(--mm-height,100dvh);margin:auto;padding:0;border:0;border-radius:0;overflow:hidden;color:#fff;box-sizing:border-box}
.mm-app #up-viewer[open]{display:flex;flex-direction:column}
.mm-app #up-viewer .up-progress{flex:none;padding:calc(8px + env(safe-area-inset-top,0px)) 8px 0;gap:3px}
.mm-app #up-viewer .up-progress span{height:3px;overflow:hidden;background:#ffffff55}
.mm-app #up-viewer .up-progress i{display:block;height:100%;background:#fff;border-radius:3px}
.mm-app #up-viewer>header{display:flex;align-items:center;justify-content:space-between;flex:none;width:100%;height:auto;min-height:60px;padding:10px 14px;gap:12px;border:0;background:transparent;color:white;box-sizing:border-box}
.mm-app #up-viewer>header strong{font-size:16px;line-height:1.3}
.mm-app #up-viewer>header small{font-size:12px;line-height:1.4;color:#fff;opacity:.8}
.mm-app #up-viewer>header button{width:44px;height:44px;font-size:30px;border-radius:50%;background:transparent;flex:none;padding:0}
.mm-app #up-viewer .up-view-body{position:relative;flex:1;min-height:0;padding:12px 20px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.mm-app #up-view-image{max-width:100%;max-height:80%;object-fit:contain;min-height:0;flex:1}
.mm-app #up-view-text{font-size:clamp(20px,5vw,32px);font-weight:500;line-height:1.4;max-height:100%;margin:10px 0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.mm-app #up-viewer .up-view-controls{display:flex;justify-content:space-between;gap:12px;padding:4px 12px;background:transparent;flex:none}
.mm-app #up-viewer .up-view-controls button{font-size:13px;min-height:40px;background:#0003;padding:8px 12px}
.mm-app #up-viewer .up-story-tools{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px));flex:none;background:#0002}
.mm-app #up-viewer .up-story-tools button{font-size:13px;min-height:44px;line-height:1.3}
.mm-app #up-viewer #up-reply-story{width:100%;border:1px solid #ffffff80;border-radius:28px;text-align:left;padding:12px 18px}
.mm-app #up-view-state{font-size:12px;text-align:center;margin:0;background:#0009;padding:0 10px;flex:none;color:white}
.mm-app #up-view-state:empty{display:none}
.mm-app #up-viewer [hidden],.mm-app .up-dialog [hidden]{display:none!important}
.mm-app .up-dialog header{position:sticky;top:0;background:#fff;color:#152320;border:0;min-height:56px;height:auto;gap:12px;z-index:1}
.mm-app .up-dialog .up-radio{display:flex;align-items:center;gap:15px;padding:12px 0;min-height:44px;font-weight:400}
.mm-app .up-dialog input[type=radio],.mm-app .up-dialog input[type=checkbox]{width:22px;height:22px;accent-color:#159b70;flex:none}
.mm-app .up-dialog .up-person{display:flex;align-items:center;gap:14px;padding:12px 0;margin:0;min-height:64px;border-bottom:1px solid #edf0ee;font-size:15px}
.mm-app .up-person>span:nth-child(2){flex:1}
.mm-app .up-person-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e1eee7;color:#24614b;flex:none;font-size:20px}
.mm-app .up-person small,.mm-app .up-mine-row small{display:block;color:#6e7b76;font-size:12px;line-height:1.5;margin-top:3px}
.mm-app .up-mine-row{display:flex;align-items:center;gap:14px;width:100%;padding:18px 0;background:transparent;border-bottom:1px solid #edf0ee;text-align:left;color:#172820}
.mm-app .up-mine-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.mm-app #up-privacy-save{position:sticky;bottom:0;width:100%;margin-top:14px;min-height:48px}
.mm-app #up-people{max-height:45dvh;overflow:auto}
.mm-app #up-privacy .up-radio input{order:2;margin-left:auto}
.mm-app #up-viewers{position:fixed;inset:auto 0 0;margin:0 auto;width:min(480px,100vw);max-height:65dvh;border-radius:20px 20px 0 0;padding:16px 20px calc(20px + env(safe-area-inset-bottom,0px))}
@media(max-width:600px){
 .mm-app #pb-updates,.mm-app #up-privacy,.mm-app #up-mine{width:100%;height:var(--mm-height,100dvh);max-height:var(--mm-height,100dvh);max-width:100%;margin:0;border-radius:0;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
 .mm-app #up-viewer{width:100%;margin:0;top:var(--mm-viewport-top,0px)}
 .mm-app #up-compose{width:100%;max-width:100%;max-height:var(--mm-height,100dvh);border-radius:0;margin:auto 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px))}
}
/* Compact story reactions: opaque fallback, small motion and comfortable touch targets. */
.mm-app #up-viewer .up-story-tools{position:relative;overflow:visible;padding-top:10px;background:linear-gradient(transparent,#0003)}
.mm-app #up-viewer .up-reply-actions{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.mm-app #up-viewer #up-reply-story{flex:1;width:auto;min-width:0;min-height:48px;border-color:#ffffff60;background:#071d2366;color:#fff;font-size:14px;padding:12px 18px}
.mm-app #up-viewer .up-react-story{display:grid;place-items:center;flex:none;width:48px;height:48px;padding:0;border-radius:50%;border:1px solid #ffffff60;background:#071d2366;color:#fff;transition:transform 160ms ease,background 160ms ease}
.mm-app :is(#up-reaction-heart,#up-reaction-smile){display:grid;place-items:center}
.mm-app :is(#up-react-story,#up-reaction-options) svg{width:23px;height:23px;display:block}
.mm-app #up-reaction-selected{font-size:25px;line-height:1}
.mm-app #up-viewer .up-react-story.has-reaction{background:#ffffff26;border-color:#ffffff9c}
.mm-app #up-viewer .up-react-story:active{transform:scale(.93)}
.mm-app #up-viewer .up-react-story[aria-busy=true]{opacity:.55;cursor:wait}
.mm-app #up-viewer .up-reaction-picker{position:absolute;bottom:calc(100% + 6px);right:12px;z-index:4;box-sizing:border-box;width:min(360px,calc(100% - 24px));padding:8px;border:1px solid #ffffff45;border-radius:26px;background:#182822;color:#f6fff9;box-shadow:0 8px 28px #0004;transform-origin:bottom right;animation:up-reactions-in 160ms ease-out;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.mm-app #up-viewer .up-reaction-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
.mm-app #up-viewer .up-reaction-choices button{display:grid;place-items:center;min-width:0;min-height:48px;height:48px;padding:0;border-radius:17px;background:transparent;border:1px solid transparent;font-size:28px;line-height:1;transition:transform 140ms ease,background 140ms ease}
.mm-app #up-viewer .up-reaction-choices button[aria-pressed=true]{background:#51bd8530;border-color:#a1efc9}
.mm-app #up-viewer .up-reaction-choices button:active{transform:scale(.88);background:#ffffff18}
.mm-app #up-viewer .up-reaction-caption{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:36px;padding:0 7px;color:#c0d0c6;font-size:11px}
.mm-app #up-viewer #up-reaction-remove{padding:0 8px;min-height:44px;border-radius:12px;font-size:12px;color:#b6f5d2;background:transparent}
.mm-app #up-viewer button:focus-visible{outline:2px solid #c0ffdf;outline-offset:2px}
.mm-app #up-viewer #up-view-state:not(:empty){padding:7px 12px;font-size:12px;line-height:1.4}
.mm-app #up-viewer .reaction-saved{animation:up-reaction-saved 400ms ease-out}
.mm-app #up-viewers .up-person-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.mm-app #up-viewers .up-viewer-reaction{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e9f5ed;font-size:25px}
.mm-app #up-viewers .up-viewers-summary{font-size:13px;color:#52685d;line-height:1.5;margin:12px 0}
.mm-app #up-viewers h2{font-size:18px;line-height:1.4}
@keyframes up-reactions-in{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}
@keyframes up-reaction-saved{0%,100%{transform:scale(1)}45%{transform:scale(1.14)}}
@media(prefers-reduced-motion:reduce){.mm-app #up-viewer .up-reaction-picker,.mm-app #up-viewer .reaction-saved{animation:none}.mm-app #up-viewer .up-react-story,.mm-app #up-viewer .up-reaction-choices button{transition:none}}

.mm-app #up-viewer #up-react-story.has-reaction svg{fill:#ff627d;stroke:#ff627d}

/* Activity stays opaque and scrolls independently while the story is paused. */
.mm-app #up-viewers{width:min(520px,100vw);max-width:100vw;max-height:90dvh;max-height:calc(var(--mm-height,100dvh) - 16px);padding:0 20px calc(20px + env(safe-area-inset-bottom,0px));background:var(--mm-surface,#fff);color:var(--mm-text,#152320);border:1px solid var(--mm-border,#e1e8e4);border-radius:28px 28px 0 0;overscroll-behavior:contain;scrollbar-gutter:stable}
.mm-app #up-viewers>header{background:var(--mm-surface,#fff);color:inherit;padding:16px 0 10px;gap:10px;align-items:center}
.mm-app #up-viewers>header>div{min-width:0}
.mm-app #up-viewers h2{font-size:20px;letter-spacing:-.4px}
.mm-app #up-viewers-private{font-size:12px;color:var(--mm-muted,#60736a);margin:4px 0 0;line-height:1.5}
.mm-app #up-viewers>header button{flex:none;min-width:44px;min-height:44px;border-radius:50%;color:inherit;background:var(--mm-bg,#f1f5f3);padding:0}
.mm-app #up-viewers .up-viewers-context{display:flex;align-items:center;gap:16px;padding:10px 0 18px}
.mm-app #up-viewers .up-viewers-preview{position:relative;display:grid;place-items:center;flex:none;width:64px;height:94px;border-radius:12px;overflow:hidden;color:#fff;border:1px solid #ffffff35}
.mm-app #up-viewers .up-viewers-preview img{width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0}
.mm-app #up-viewers .up-viewers-preview p{font-size:9px;line-height:1.3;text-align:center;margin:8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.mm-app #up-viewers .up-viewers-context-copy{min-width:0;flex:1}
.mm-app #up-viewers .up-viewers-context-copy strong{display:block;font-size:15px}
.mm-app #up-viewers .up-viewers-context-copy small{display:block;margin-top:4px;color:var(--mm-muted,#60736a);font-size:12px}
.mm-app #up-viewers-caption{font-size:13px;line-height:1.5;margin:7px 0 0;color:var(--mm-muted,#60736a);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mm-app #up-viewers .up-viewers-metrics{display:flex;align-items:center;gap:12px;padding:14px 0;border-block:1px solid var(--mm-border,#e1e8e4)}
.mm-app #up-viewers .up-viewers-metrics>div{flex:1;min-width:0;display:grid;gap:4px}
.mm-app #up-viewers .up-viewers-metrics strong{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums;color:var(--mm-green,#087e61)}
.mm-app #up-viewers .up-viewers-metrics span{font-size:11px;color:var(--mm-muted,#60736a)}
.mm-app #up-viewers-refresh{display:grid;place-items:center;gap:4px;flex:none;min-width:64px;min-height:44px;background:transparent;color:var(--mm-green,#087e61);border-radius:12px;padding:4px}
.mm-app #up-viewers svg{width:21px;height:21px;flex:none}
.mm-app #up-viewers .up-viewers-search{display:flex;align-items:center;gap:10px;border-radius:18px;background:var(--mm-bg,#f0f3f5);color:var(--mm-muted,#60736a);margin:16px 0 8px;padding:0 14px;font-weight:400}
.mm-app #up-viewers-search{min-width:0;flex:1;min-height:48px;padding:10px 0;border:0;background:transparent;color:var(--mm-text,#152320);font-size:16px;outline-offset:4px}
.mm-app #up-viewers-state{font-size:12px;line-height:1.5;color:var(--mm-muted,#60736a);margin:8px 0;overflow-wrap:anywhere}
.mm-app #up-viewers .up-person{border-color:var(--mm-border,#e1e8e4);min-height:68px;padding:10px 0;box-sizing:border-box;gap:12px}
.mm-app #up-viewers .up-person-avatar{position:relative;width:48px;height:48px;overflow:hidden;font-size:17px;background:var(--mm-bg,#e1eee7);color:var(--mm-green,#087e61)}
.mm-app #up-viewers .up-person-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.mm-app #up-viewers .up-person-copy strong{font-size:15px;line-height:1.4}
.mm-app #up-viewers .up-person-copy small{color:var(--mm-muted,#60736a);font-size:11px}
.mm-app #up-viewers .up-viewer-reaction{width:38px;height:38px;background:var(--mm-bg,#e9f5ed);font-size:24px}
.mm-app #up-viewers :is(#up-viewers-retry,#up-viewers-more){width:100%;min-height:46px;border-radius:16px;margin-top:12px;background:var(--mm-bg,#edf4f0);color:var(--mm-green,#087e61);font-weight:600}
.mm-app #up-viewers button:focus-visible{outline:2px solid var(--mm-green,#087e61);outline-offset:2px}

.mm-app #up-compose .up-audience-card{padding:16px;border:1px solid var(--mm-border,#d8ddea);border-radius:20px;background:var(--mm-surface,#f3f5fb);margin:4px 0 12px}.mm-app #up-compose .up-audience-card label{font-weight:700;margin:0 0 8px}.mm-app #up-compose .up-audience-card select{width:100%;min-height:48px}.mm-app #up-view-time{max-width:100%;line-height:1.4}

/* The viewer fills the screen; media keeps its full frame until the viewer explicitly chooses to crop. */
#up-viewer.up-viewer{--story-media-fit:contain;position:fixed;inset:var(--mm-viewport-top,0px) 0 auto;width:100%;height:var(--mm-height,100dvh);max-width:none;max-height:var(--mm-height,100dvh);margin:0;padding:0;border:0;border-radius:0;box-sizing:border-box;overflow:hidden;isolation:isolate}
#up-viewer.up-viewer[data-story-fit=cover]{--story-media-fit:cover}
#up-viewer.up-viewer[open]{display:block}
#up-viewer.up-viewer .up-view-body{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;isolation:isolate}
#up-viewer.up-viewer .up-view-body::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(#0008,transparent 23%,transparent 55%,#0009)}
#up-viewer.up-viewer #up-view-image{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;min-height:0;object-fit:var(--story-media-fit,contain);flex:none;margin:0;padding:0}
#up-viewer.up-viewer .up-progress{position:absolute;inset:0 0 auto;z-index:5;padding:calc(8px + env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));gap:3px}
#up-viewer.up-viewer>header{position:absolute;z-index:5;inset:calc(18px + env(safe-area-inset-top,0px)) 0 auto;display:flex;align-items:center;gap:12px;min-height:56px;width:100%;padding:8px max(14px,env(safe-area-inset-right,0px)) 8px max(14px,env(safe-area-inset-left,0px));background:transparent;color:#fff;box-sizing:border-box}
#up-viewer.up-viewer>header>div{flex:1;min-width:0}
#up-viewer.up-viewer>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
#up-viewer.up-viewer>header button{flex:none;width:44px;min-width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:50%;background:#14141d50;color:white}
#up-viewer.up-viewer #up-view-fit{font-size:14px}
#up-viewer.up-viewer #up-view-fit svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#up-viewer.up-viewer #up-view-text{position:relative;z-index:2;max-width:min(720px,calc(100% - 40px));max-height:calc(100% - 280px);overflow:auto;margin:0;padding:20px;font-size:clamp(22px,5vw,36px);line-height:1.4;text-shadow:0 2px 12px #0007}
#up-viewer.up-viewer .up-view-body:has(:is(#up-view-image,#up-view-video):not([hidden])) #up-view-text{position:absolute;inset:auto 20px calc(232px + env(safe-area-inset-bottom,0px));max-width:720px;max-height:35%;margin:0 auto;padding:12px 14px;font-size:clamp(16px,3.8vw,22px);border-radius:18px;background:#07071366;backdrop-filter:blur(8px)}
#up-viewer.up-viewer #up-view-text:empty{display:none}
#up-viewer.up-viewer .up-view-controls{position:absolute;z-index:5;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(120px + env(safe-area-inset-bottom,0px));width:auto;max-width:720px;margin:0 auto;padding:0;gap:10px;display:flex;justify-content:space-between;background:transparent}
#up-viewer.up-viewer .up-view-controls button{min-height:40px;font-size:13px;background:#14141d70;backdrop-filter:blur(8px)}
#up-viewer.up-viewer .up-story-tools{position:absolute;z-index:6;inset:auto 0 0;width:100%;max-height:42%;padding:10px max(12px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));display:flex;justify-content:center;gap:8px;flex-wrap:wrap;box-sizing:border-box;background:linear-gradient(transparent,#05050bbf)}
#up-viewer.up-viewer .up-reply-actions{max-width:720px;margin:0 auto}
#up-viewer.up-viewer #up-view-state{position:absolute;z-index:7;inset:auto 12px calc(174px + env(safe-area-inset-bottom,0px));margin:0 auto;width:max-content;max-width:min(600px,calc(100% - 24px));padding:8px 12px;border-radius:16px;background:#11101bd9;font-size:13px;line-height:1.4}
#up-viewer.up-viewer [hidden]{display:none!important}
@media(min-width:760px){#up-viewer.up-viewer>header{padding-left:24px;padding-right:24px}#up-viewer.up-viewer .up-story-tools{padding-left:max(24px,calc((100vw - 720px)/2));padding-right:max(24px,calc((100vw - 720px)/2))}}
@media(max-height:650px){#up-viewer.up-viewer .up-view-controls{bottom:calc(104px + env(safe-area-inset-bottom,0px))}#up-viewer.up-viewer .up-view-body:has(:is(#up-view-image,#up-view-video):not([hidden])) #up-view-text{bottom:calc(200px + env(safe-area-inset-bottom,0px));max-height:27%;padding:8px 12px}#up-viewer.up-viewer #up-view-text{max-height:calc(100% - 230px)}#up-viewer.up-viewer .up-story-tools{padding-top:6px;gap:6px}#up-viewer.up-viewer .up-story-tools button{min-height:40px}}
