.flow-photo-open{display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;line-height:0;color:inherit;-webkit-tap-highlight-color:transparent}
.flow-photo-open:focus-visible{outline:3px solid var(--accent,#3164ef);outline-offset:-4px}
html:has(.profile-photo-viewer){scrollbar-gutter:auto}
.profile-photo-viewer{position:fixed;inset:0;right:auto;width:100vw;box-sizing:border-box;z-index:500;background:rgba(12,16,24,.97);color:#fff;font-family:inherit;opacity:0;transition:opacity .28s ease;overscroll-behavior:contain;--photo-width:0px;--photo-height:0px}
.profile-photo-viewer.is-visible{opacity:1}
.profile-photo-viewer[hidden],.profile-photo-viewer [hidden]{display:none!important}
.profile-photo-viewer button{font-family:inherit;color:inherit;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.09);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.profile-photo-viewer button:focus-visible{outline:3px solid #a8bdff;outline-offset:3px}
.profile-photo-viewer button:hover{background:rgba(255,255,255,.17)}
.profile-photo-viewer button:disabled{opacity:.45;cursor:default}
.profile-photo-viewer-toolbar{position:absolute;z-index:3;top:0;left:0;right:0;display:flex;align-items:center;gap:12px;min-height:64px;box-sizing:border-box;padding:12px max(20px,env(safe-area-inset-right)) 12px max(24px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));background:linear-gradient(#0c1018,rgba(12,16,24,.75))}
.profile-photo-viewer-caption{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px;font-weight:600;line-height:1.5}
.profile-photo-viewer-zoom{flex-shrink:0;min-height:40px;border-radius:22px;padding:8px 16px;font-size:12px;font-weight:600;line-height:1.5}
.profile-photo-viewer-close{flex-shrink:0;width:44px;height:44px;border-radius:50%;font:300 31px/1 sans-serif!important;display:grid;place-items:center;padding:0 0 3px}
.profile-photo-viewer-stage{position:absolute;top:calc(76px + env(safe-area-inset-top));bottom:calc(62px + env(safe-area-inset-bottom));left:76px;right:76px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;scrollbar-width:thin;scrollbar-color:#677086 transparent}
.profile-photo-viewer-canvas{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.profile-photo-viewer-image{display:block;flex:0 0 auto;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center;cursor:zoom-in;user-select:none;-webkit-user-drag:none;opacity:0;transition:opacity .2s ease}
.profile-photo-viewer.is-loaded .profile-photo-viewer-image{opacity:1}
.profile-photo-viewer.is-original .profile-photo-viewer-stage{touch-action:pan-x pan-y pinch-zoom}
.profile-photo-viewer.is-original .profile-photo-viewer-canvas{width:max(100%,var(--photo-width));height:max(100%,var(--photo-height))}
.profile-photo-viewer.is-original .profile-photo-viewer-image{width:var(--photo-width);height:var(--photo-height);max-width:none;max-height:none;cursor:grab}
.profile-photo-viewer.is-panning .profile-photo-viewer-image{cursor:grabbing}
.profile-photo-viewer-previous,.profile-photo-viewer-next{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:48px;height:56px;border-radius:14px;font:300 40px/1 sans-serif!important;padding:0 0 4px;display:grid;place-items:center}
.profile-photo-viewer-previous{left:max(16px,env(safe-area-inset-left))}
.profile-photo-viewer-next{right:max(16px,env(safe-area-inset-right))}
.profile-photo-viewer-footer{position:absolute;bottom:0;left:0;right:0;box-sizing:border-box;min-height:54px;padding:10px 20px max(14px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:14px;font-size:12px;line-height:1.5;background:linear-gradient(transparent,rgba(12,16,24,.9))}
.profile-photo-viewer-counter{font-variant-numeric:tabular-nums;white-space:nowrap}
.profile-photo-viewer-hint{color:#aeb8c9;font-size:11px}
.profile-photo-viewer-status{position:absolute;left:24px;right:24px;top:46%;margin:0;text-align:center;color:#dce2ed;font-size:13px;line-height:1.7;pointer-events:none}
.profile-photo-viewer-retry{position:absolute;left:50%;top:55%;transform:translateX(-50%);min-height:44px;padding:9px 18px;border-radius:10px;font-size:12px}
@media(max-width:600px){.profile-photo-viewer-toolbar{gap:8px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.profile-photo-viewer-caption{font-size:12px}.profile-photo-viewer-zoom{padding:8px 12px;font-size:11px}.profile-photo-viewer-stage{left:0;right:0;top:calc(72px + env(safe-area-inset-top));bottom:calc(92px + env(safe-area-inset-bottom))}.profile-photo-viewer-previous,.profile-photo-viewer-next{top:auto;bottom:calc(18px + env(safe-area-inset-bottom));transform:none;width:44px;height:44px;font-size:32px!important;border-radius:50%}.profile-photo-viewer-previous{left:max(20px,env(safe-area-inset-left))}.profile-photo-viewer-next{right:max(20px,env(safe-area-inset-right))}.profile-photo-viewer-footer{height:80px;min-height:0;padding-bottom:max(16px,env(safe-area-inset-bottom));flex-direction:column;gap:2px;pointer-events:none}.profile-photo-viewer-hint{font-size:10px}.profile-photo-viewer-status{font-size:12px}}
@media(prefers-reduced-motion:reduce){.profile-photo-viewer,.profile-photo-viewer-image{transition:none!important}}
