:root{--story-grad: conic-gradient(from 150deg, #f7a325, #ff5e87 28%, #c264ff 56%, #5b8cff 82%, #f7a325);--story-grad-linear: linear-gradient(135deg, #f7a325, #ff5e87 46%, #c264ff 72%, #5b8cff);--story-seen: color-mix(in oklab, var(--text-main, #1d1d1f) 20%, transparent)}.stories-tray{--st-ring-size: 62px;margin:2px 0 16px;min-height:100px}.stories-tray[hidden]{display:none}.st-track{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:6px 2px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.st-track::-webkit-scrollbar{display:none}.st-item{scroll-snap-align:start;flex:0 0 auto;width:74px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:2px 0;border:none;background:none;font:inherit;color:var(--text-main, #1d1d1f);cursor:pointer;-webkit-tap-highlight-color:transparent}.st-ring{position:relative;box-sizing:border-box;width:var(--st-ring-size, 62px);height:var(--st-ring-size, 62px);border-radius:50%;padding:2.5px;background:var(--story-grad);display:grid;place-items:center;transition:transform .14s var(--ease-out-expo, ease)}.st-ring.is-seen{background:var(--story-seen)}.st-ring.is-add{background:none;padding:0;border:2px dashed color-mix(in oklab,var(--text-main, #1d1d1f) 32%,transparent);color:var(--text-muted, #6b6b6b)}.st-item:active .st-ring,.st-main:active .st-ring{transform:scale(.93)}.st-ring-inner{box-sizing:border-box;width:100%;height:100%;border-radius:50%;padding:2.5px;background:var(--bg-card, var(--bg-surface, #fff));display:grid;place-items:center}.st-ring.is-add .st-ring-inner{background:transparent;padding:0}.st-avatar{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;background:var(--bg-surface-alt, #eee)}.st-item--me{position:relative}.st-main{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;padding:0;border:none;background:none;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.st-plus{position:absolute;top:calc(2px + var(--st-ring-size, 62px) - 19px);left:calc(50% + var(--st-ring-size, 62px) / 2 - 17px);width:21px;height:21px;padding:0;border-radius:50%;background:var(--accent-primary, #6c8cff);color:#fff;display:grid;place-items:center;border:2px solid var(--bg-card, var(--bg-surface, #fff));cursor:pointer}.st-plus svg{width:12px;height:12px;display:block}.st-name{max-width:70px;font-size:var(--text-xs, .72rem);line-height:1.15;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-secondary, var(--text-muted, #6b6b6b))}.st-item--me .st-name{color:var(--text-main, #1d1d1f);font-weight:650}.st-skel{flex:0 0 auto;width:74px;padding:2px 0;display:flex;flex-direction:column;align-items:center;gap:7px}.st-skel-ring{width:var(--st-ring-size, 62px);height:var(--st-ring-size, 62px);border-radius:50%;background:var(--bg-surface-alt, #eee)}.st-skel-name{width:46px;height:13px;border-radius:4px;background:var(--bg-surface-alt, #eee)}.stories-tray:not(.is-loaded) .st-skel{animation:st-pulse 1.2s ease-in-out infinite}@keyframes st-pulse{0%,to{opacity:.5}50%{opacity:1}}@media(max-width:600px){.stories-tray{--st-ring-size: 56px;min-height:94px}.st-item,.st-skel{width:66px}}.profile-hero-avatar-wrap.has-stories{--pg-ring: var(--story-grad)}.profile-hero-avatar-wrap.has-stories.is-seen{--pg-ring: var(--story-seen)}.profile-hero-avatar-wrap.story-clickable{cursor:pointer}.profile-hero-avatar-wrap.story-clickable:focus-visible{outline:2px solid var(--accent-primary, #6c8cff);outline-offset:6px;border-radius:var(--radius-squircle, 28%)}.story-add-cta{display:inline-flex;align-items:center;gap:7px;margin:12px auto 0;padding:9px 16px;border:none;border-radius:var(--radius-pill, 999px);background:var(--story-grad-linear);color:#fff;font:inherit;font-weight:650;font-size:var(--text-base, .9rem);line-height:1;cursor:pointer;box-shadow:0 3px 14px color-mix(in oklab,#c264ff 35%,transparent);transition:transform .12s var(--ease-out-expo, ease),filter .12s ease,box-shadow .12s ease}.story-add-cta:hover{transform:translateY(-1px);filter:brightness(1.05);box-shadow:0 6px 18px color-mix(in oklab,#c264ff 45%,transparent)}.story-add-cta:active{transform:translateY(0) scale(.98)}.story-add-cta svg{display:block}.author-avatar-small.has-story{border:2.5px solid transparent;padding:2px;box-sizing:border-box;background:linear-gradient(var(--bg-card, var(--bg-surface, #fff)),var(--bg-card, var(--bg-surface, #fff))) padding-box,var(--story-grad) border-box;cursor:pointer}.author-avatar-small.has-story:focus-visible{outline:2px solid var(--accent-primary, #6c8cff);outline-offset:2px}body.story-open{overflow:hidden}.story-viewer,.story-composer{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:#08080af0;animation:story-fade .2s ease}@keyframes story-fade{0%{opacity:0}to{opacity:1}}.story-viewer.is-closing{animation:story-fade-out .18s ease forwards}@keyframes story-fade-out{to{opacity:0}}@media(min-width:769px){.story-viewer,.story-composer{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}}.story-stage{position:relative;width:auto;height:min(92vh,860px);max-width:96vw;aspect-ratio:9 / 16;background:#000;border-radius:var(--radius-lg, 16px);overflow:hidden;box-shadow:0 24px 70px #0000008c;animation:story-pop .28s var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1));touch-action:pan-y}@keyframes story-pop{0%{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}.story-viewer.is-closing .story-stage{animation:story-pop-out .18s ease forwards}@keyframes story-pop-out{to{transform:scale(.95);opacity:0}}.story-bars{position:absolute;top:8px;left:8px;right:8px;display:flex;gap:4px;z-index:4;transition:opacity .2s ease}.story-viewer.is-paused .story-bars{opacity:.35}.story-bar{flex:1 1 0;height:3px;border-radius:2px;background:#ffffff52;overflow:hidden}.story-bar-fill{display:block;height:100%;width:100%;border-radius:2px;background:#fff;transform:scaleX(0);transform-origin:left center}.story-head{position:absolute;top:18px;left:8px;right:8px;display:flex;align-items:center;gap:9px;padding:4px;z-index:4;color:#fff}.story-head:before{content:"";position:absolute;inset:-18px -8px auto;height:96px;background:linear-gradient(rgba(0,0,0,.55),transparent);pointer-events:none;z-index:-1}.story-head-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#333;flex:0 0 auto}.story-head-who{display:flex;flex-direction:column;min-width:0}.story-head-name{font-weight:650;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-head-time{font-size:.72rem;opacity:.85}.story-head-spacer{flex:1 1 auto}.story-btn{flex:0 0 auto;width:36px;height:36px;border:none;border-radius:50%;background:transparent;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}.story-btn:hover{background:#ffffff2e}.story-media{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}.story-img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}.story-spinner{position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;z-index:2;animation:story-spin .8s linear infinite}.story-spinner[hidden]{display:none}@keyframes story-spin{to{transform:rotate(360deg)}}.story-nav{position:absolute;top:64px;bottom:0;border:none;background:transparent;cursor:pointer;z-index:3;-webkit-tap-highlight-color:transparent}.story-nav-prev{left:0;width:32%}.story-nav-next{right:0;width:68%}.story-nav,.story-nav:hover,.story-nav:focus,.story-nav:focus-visible,.story-nav:active{outline:none;background:transparent;box-shadow:none}.story-foot{position:absolute;left:10px;right:10px;bottom:12px;display:flex;align-items:center;justify-content:flex-end;gap:10px;z-index:5;pointer-events:none;padding-bottom:env(safe-area-inset-bottom,0)}.story-foot>*{pointer-events:auto}.story-like{width:46px;height:46px;border:none;border-radius:50%;background:#00000052;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .14s var(--ease-out-expo, ease),color .14s ease,background .14s ease}.story-like:hover{background:#00000075}.story-like:active{transform:scale(.9)}.story-like.is-liked{color:#ff3b5c}.story-like.story-like-pop{animation:story-like-pop .42s var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1))}@keyframes story-like-pop{0%{transform:scale(1)}35%{transform:scale(1.32)}to{transform:scale(1)}}.story-viewers{margin-right:auto;display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border:none;border-radius:var(--radius-pill, 999px);background:#00000052;color:#fff;font:inherit;font-size:.82rem;font-weight:650;line-height:1;cursor:pointer;transition:background .14s ease,transform .14s ease}.story-viewers:hover{background:#00000075}.story-viewers:active{transform:scale(.96)}.story-viewers svg{opacity:.92}.story-viewers-count:empty{display:none}.story-sheet{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;justify-content:flex-end;background:#08080a80;animation:story-fade .18s ease}.story-sheet-head,.story-sheet-body{background:var(--bg-card, var(--bg-surface, #fff));color:var(--text-main, #1d1d1f);animation:story-sheet-up .26s var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1))}.story-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 10px;border-radius:var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;border-bottom:1px solid var(--border-color, #d9d4ca);font-size:1rem}.story-sheet-head .story-sheet-close{color:var(--text-muted, #6b6b6b);width:34px;height:34px}.story-sheet-head .story-sheet-close:hover{background:var(--surface-hover, rgba(0, 0, 0, .06))}.story-sheet-body{max-height:62%;overflow-y:auto;padding:6px 14px max(16px,env(safe-area-inset-bottom))}@keyframes story-sheet-up{0%{transform:translateY(22px)}to{transform:translateY(0)}}.story-sheet-sec{padding:8px 0}.story-sheet-sec+.story-sheet-sec{border-top:1px solid var(--border-color, #d9d4ca)}.story-sheet-sec-head{display:flex;align-items:center;gap:7px;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted, #6b6b6b);margin-bottom:6px}.story-sheet-sec-head svg{opacity:.8}.story-sheet-list{display:flex;flex-direction:column;gap:2px}.story-sheet-row{display:flex;align-items:center;gap:10px;padding:6px 4px}.story-sheet-av{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--bg-surface-alt, #eee);flex:0 0 auto}.story-sheet-name{font-size:.9rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-sheet-anon{padding:8px 4px 2px;font-size:.82rem;color:var(--text-muted, #6b6b6b);font-weight:600}.story-sheet-empty{padding:14px 4px;font-size:.85rem;color:var(--text-muted, #6b6b6b);text-align:center}@media(prefers-reduced-motion:reduce){.story-sheet,.story-sheet-head,.story-sheet-body,.story-like.story-like-pop{animation:none}}.story-composer-panel{width:min(440px,94vw);max-height:92vh;overflow:auto;background:var(--bg-card, var(--bg-surface, #fff));color:var(--text-main, #1d1d1f);border:1px solid var(--border-color, #d9d4ca);border-radius:var(--radius-lg, 16px);padding:16px;box-shadow:0 24px 70px #00000073;animation:story-pop .26s var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1))}.story-composer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:1.05rem}.story-composer-head .story-btn{color:var(--text-muted, #6b6b6b);width:32px;height:32px}.story-composer-head .story-btn:hover{background:var(--surface-hover, rgba(0, 0, 0, .06))}.story-drop{display:block;border:2px dashed var(--border-color, #d9d4ca);border-radius:var(--radius-md, 12px);padding:18px;text-align:center;cursor:pointer;transition:border-color .15s ease,background .15s ease}.story-drop.drag{border-color:var(--accent-primary, #6c8cff);background:var(--surface-hover, rgba(108, 140, 255, .06))}.story-drop-empty{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--text-muted, #6b6b6b)}.story-drop-empty span{font-weight:600;color:var(--text-main, #1d1d1f)}.story-drop-empty small{font-size:.72rem}.story-drop-preview{display:flex;align-items:center;justify-content:center}.story-preview-media{max-width:100%;max-height:46vh;border-radius:var(--radius-xs, 10px);display:block}.story-composer-row{display:flex;gap:10px;margin-top:12px}.story-field{flex:1 1 0;display:flex;flex-direction:column;gap:4px;font-size:.8rem;color:var(--text-muted, #6b6b6b)}.story-field select{padding:8px 10px;border-radius:var(--radius-xs, 9px);border:1px solid var(--border-color, #d9d4ca);background:var(--bg-surface, #fff);color:var(--text-main, #1d1d1f);font:inherit}.story-composer-actions{margin-top:14px;display:flex;align-items:center;gap:8px}.story-publish{flex:1 1 auto;padding:11px;border:none;border-radius:var(--radius-xs, 10px);background:var(--accent-primary, #6c8cff);color:#fff;font-weight:650;cursor:pointer;transition:filter .15s ease,opacity .15s ease}.story-publish:hover:not(:disabled){filter:brightness(1.06)}.story-publish:disabled{opacity:.55;cursor:not-allowed}.story-composer-msg{margin-top:9px;min-height:1em;font-size:.82rem;color:var(--text-muted, #6b6b6b);text-align:center}.story-source-tabs{display:flex;gap:6px;margin-bottom:12px;padding:4px;border-radius:var(--radius-xs, 10px);background:var(--bg-surface-alt, #f1efe9)}.story-source-tabs[hidden]{display:none}.story-tab{flex:1 1 0;padding:7px;border:none;border-radius:var(--radius-2xs, 7px);background:transparent;color:var(--text-muted, #6b6b6b);font:inherit;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease}.story-tab.is-active{background:var(--bg-surface, #fff);color:var(--text-main, #1d1d1f);box-shadow:0 1px 3px #00000014}.story-cam[hidden]{display:none}.story-cam-frame{position:relative;background:#000;border-radius:var(--radius-md, 12px);overflow:hidden}.story-cam-video{width:100%;max-height:46vh;display:block;object-fit:cover;background:#000}.story-cam-video.cam-mirror{transform:scaleX(-1)}.story-cam-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:2}.story-cam-overlay[hidden]{display:none}.story-cam-timer{position:absolute;z-index:3;top:8px;left:50%;transform:translate(-50%);background:#e0533beb;color:#fff;font-size:.72rem;font-weight:700;padding:2px 9px;border-radius:var(--radius-pill, 999px)}.story-cam-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 4px 2px}.story-cam-spacer{width:40px}.story-cam-switch{width:40px;height:40px;color:var(--text-main, #1d1d1f);background:var(--surface-hover, rgba(0, 0, 0, .06))}.story-cam-switch:hover{background:var(--border-color, #d9d4ca)}.story-cam-shoot{width:64px;height:64px;padding:0;border:none;border-radius:50%;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 4px var(--border-color, #d9d4ca);transition:box-shadow .15s ease}.story-cam-shoot-inner{width:52px;height:52px;border-radius:50%;background:var(--accent-primary, #6c8cff);transition:width .15s ease,height .15s ease,border-radius .15s ease,background .15s ease}.story-cam-shoot.is-video .story-cam-shoot-inner{background:#e0533b}.story-cam-shoot.is-recording{box-shadow:0 0 0 4px #e0533b}.story-cam-shoot.is-recording .story-cam-shoot-inner{width:26px;height:26px;border-radius:7px;background:#e0533b}.story-cam-msg{margin-top:8px;min-height:1em;font-size:.78rem;color:var(--text-muted, #6b6b6b);text-align:center}.story-cam-stickers,.story-cam-filters{display:flex;gap:7px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:8px 2px 2px;scroll-snap-type:x proximity}.story-cam-stickers::-webkit-scrollbar,.story-cam-filters::-webkit-scrollbar{display:none}.story-cam-stickers{padding-top:10px}.story-sticker{flex:0 0 auto;width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;font-size:24px;line-height:1;border:2px solid var(--border-color, #d9d4ca);border-radius:50%;background:var(--bg-surface-alt, #f1efe9);cursor:pointer;scroll-snap-align:start;transition:border-color .12s ease,transform .12s ease,background .12s ease}.story-sticker:hover{border-color:var(--accent-primary, #6c8cff)}.story-sticker.is-active{border-color:var(--accent-primary, #6c8cff);background:var(--surface-hover, rgba(108, 140, 255, .12));transform:translateY(-1px)}.story-filter-chip{flex:0 0 auto;display:inline-flex;flex-direction:column;align-items:center;gap:4px;width:54px;padding:0;border:none;background:transparent;cursor:pointer;scroll-snap-align:start}.story-filter-chip .sfc-sw{width:46px;height:46px;border-radius:var(--radius-xs, 10px);border:2px solid transparent;background:linear-gradient(135deg,#ffd27d,#ff7eb3 38%,#7d83ff 72%,#4ad6c4);transition:border-color .12s ease,transform .12s ease}.story-filter-chip .sfc-lb{font-size:.68rem;color:var(--text-muted, #6b6b6b);max-width:54px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-filter-chip:hover .sfc-sw{border-color:var(--border-color, #d9d4ca)}.story-filter-chip.is-active .sfc-sw{border-color:var(--accent-primary, #6c8cff);transform:translateY(-1px)}.story-filter-chip.is-active .sfc-lb{color:var(--text-main, #1d1d1f);font-weight:600}.story-retake{flex:0 0 auto;padding:11px 14px;border:1px solid var(--border-color, #d9d4ca);border-radius:var(--radius-xs, 10px);background:var(--bg-surface, #fff);color:var(--text-main, #1d1d1f);font-weight:600;cursor:pointer}.story-retake[hidden]{display:none}@media(max-width:520px){.story-stage{height:100dvh;max-width:100vw;width:100vw;border-radius:0;aspect-ratio:auto}.story-viewer{background:#000}}@media(prefers-reduced-motion:reduce){.story-viewer,.story-composer,.story-stage,.story-composer-panel{animation:none}.story-spinner{animation-duration:1.4s}.st-item:active .st-ring,.st-main:active .st-ring{transform:none}}
