/* The header scrolls with the page, so it never cuts across a photo. */
.social-screen .topbar,[data-theme=light] .social-screen .topbar{position:relative;top:auto;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.social-screen .feed-tabs{top:0}
.photo-viewer[open]{animation:moment-in .16s ease-out}.photo-zoom-controls{display:none}
@media(hover:hover){.photo-zoom-controls{display:flex}}
#pullRefresh{--pull:0px;position:fixed;z-index:35;top:env(safe-area-inset-top);left:50%;transform:translate(-50%,calc(var(--pull) - 40px));display:flex;gap:9px;align-items:center;background:var(--panel);border:1px solid var(--line);padding:11px 17px;border-radius:30px;box-shadow:0 5px 20px #0003;pointer-events:none;color:var(--muted)}#pullRefresh span{width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;transform:rotate(0deg)}#pullRefresh.ready{color:var(--green)}#pullRefresh.refreshing span{animation:moment-spin .7s linear infinite}#pullRefresh small{white-space:nowrap;font-size:12px}
.stories-tray{display:flex;gap:16px;overflow-x:auto;padding:16px 2px 19px;scrollbar-width:none}.stories-tray::-webkit-scrollbar{display:none}.story-person{position:relative;width:66px;flex:0 0 66px;text-align:center}.story-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:8px;color:var(--muted)}.story-avatar{background:none;padding:4px;border-radius:50%;width:64px;height:64px;border:1px solid var(--line);display:grid;place-items:center}.story-avatar .profile-avatar{width:54px;height:54px;border:0}.story-avatar.has-story{border:2px solid var(--green)}.profile-avatar.has-story{outline:2px solid var(--green);outline-offset:3px;cursor:pointer}.story-add{position:absolute;right:-1px;top:43px;width:23px;height:23px;display:grid;place-items:center;background:var(--green);color:#14200b;border:2px solid #101410;border-radius:50%;font-size:20px;padding:0;line-height:1}.story-retry{background:none;color:var(--muted);font-size:12px;padding:8px 0}.person-message-action{margin:16px 0}.message-unread:not(:empty){position:absolute;right:12%;top:4px;min-width:17px;height:17px;border-radius:12px;font-size:10px;line-height:17px;background:var(--green);color:#12200c;padding:0 4px}
#modal.photo-composer{max-width:580px;width:100%;padding:20px;border-radius:24px;max-height:94dvh;overflow:auto}.photo-composer .modal-head{margin-bottom:12px}.photo-composer .modal-head h2{font-size:20px}.composer-modes{display:flex;gap:8px;justify-content:center;margin-bottom:12px}.composer-modes button{padding:9px 15px;border-radius:25px;background:none;color:var(--muted)}.composer-modes .selected{background:var(--glass);color:var(--green)}.composer-selected{background:#080b08;aspect-ratio:1;display:grid;place-items:center;border-radius:15px;overflow:hidden;color:#aebaaa;max-height:43dvh}.composer-selected img{width:100%;height:100%;object-fit:contain;min-height:0}.gallery-heading{display:flex;align-items:center;justify-content:space-between;margin:15px 0 10px;gap:8px}.gallery-heading h3{margin:0;font-size:15px}.gallery-heading>div{display:flex;gap:5px}.gallery-heading .btn{padding:8px 11px;font-size:12px}.composer-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;max-height:25dvh;overflow:auto}.gallery-tile{padding:0;aspect-ratio:1;background:var(--panel);position:relative;overflow:hidden;border:2px solid transparent;border-radius:5px;color:var(--muted)}.gallery-tile img{height:100%;width:100%;object-fit:cover;display:block}.gallery-tile.selected{border-color:var(--green)}.gallery-tile.selected:after{content:'✓';position:absolute;right:3px;top:3px;background:var(--green);color:#10200b;border-radius:50%;width:18px;height:18px;font-size:12px}.composer-step-actions{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.composer-caption-preview canvas{max-height:31dvh;width:auto;max-width:100%;margin:0 auto 18px;border-radius:12px;display:block}.composer-caption-preview canvas[hidden]{display:none}.photo-composer textarea{font-size:16px}.photo-composer #galleryStatus:empty,.photo-composer #postPhotoStatus:empty,.photo-composer #postPublishStatus:empty{display:none}.photo-composer [hidden]{display:none!important}
#modal.story-viewer{inset:0;margin:auto;width:min(100%,560px);height:100dvh;max-height:100dvh;max-width:100%;padding:max(12px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));border:0;border-radius:0;background:#080b08;color:#f1f5ed;overflow:hidden;display:flex;flex-direction:column;animation:moment-in .22s cubic-bezier(.16,1,.3,1)}.story-viewer .modal-head h2{color:#f1f5ed}.story-progress{display:flex;gap:4px;flex:none;margin:2px 0 12px}.story-progress>span{height:3px;background:#ffffff38;flex:1;border-radius:5px;overflow:hidden}.story-progress i{display:block;height:100%;background:#c2ff75}.story-header{display:flex;gap:8px;align-items:center;flex:none;padding-bottom:12px}.story-header .social-author-link{flex:1;color:#f1f5ed;min-width:0}.story-header .social-author-link small{color:#b4beb0}.story-header>small{font-size:11px;color:#b4beb0;white-space:nowrap}.story-header>button{background:none;color:#f1f5ed;padding:5px;width:36px;height:40px;font-size:26px}.story-stage{flex:1;min-height:0;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:14px;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.story-stage img{height:100%;width:100%;object-fit:contain;position:absolute;pointer-events:none}.story-stage>button{position:absolute;inset:0 auto 0 0;width:30%;background:transparent}.story-stage>.story-next{left:auto;right:0;width:70%}.story-loading{padding:30px;color:#b4beb0;text-align:center}.story-bottom{flex:none;padding:13px 1px 0;max-height:30dvh;overflow:auto}.story-bottom>p{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.story-bottom>small{display:block;font-size:11px;color:#b4beb0;padding-top:8px}.story-bottom form{display:flex;gap:8px}.story-bottom input{border:1px solid #ffffff40;background:#ffffff08;color:#f1f5ed;border-radius:28px;padding:13px 17px;font-size:16px;min-width:0}.story-bottom input::placeholder{color:#bdc5b9}.story-bottom .glass-round{border:1px solid #ffffff40;color:#c2ff75;flex:none;width:46px;height:46px}.story-bottom svg{width:24px;height:24px}.story-viewer .profile-avatar{width:36px;height:36px}.story-viewer .social-author-link strong{font-size:14px}.story-viewer #storyReplyStatus{font-size:12px;color:#c2ff75;margin-top:8px}
.inbox-heading{display:flex;justify-content:flex-end}.inbox-tabs{display:flex;margin:15px 0;border-bottom:1px solid var(--line)}.inbox-tabs button{flex:1;padding:15px;background:none;color:var(--muted);border-bottom:2px solid transparent}.inbox-tabs .selected{color:var(--text);border-color:var(--green)}.inbox-row{display:flex;align-items:center;gap:13px;width:100%;padding:19px 0;background:none;color:var(--text);border-bottom:1px solid var(--line);text-align:left}.inbox-row>.profile-avatar{width:49px;height:49px;flex-shrink:0}.inbox-row>span{min-width:0;flex:1}.inbox-row strong,.inbox-row small,.inbox-preview{display:block}.inbox-row small{font-size:12px;color:var(--muted);margin-top:3px}.inbox-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;margin-top:6px;color:var(--muted)}.message-count{background:var(--green);color:#14200b;font-size:11px;padding:3px 7px;border-radius:20px}.conversation-page{padding-top:12px}.conversation-page #messagePerson{padding-bottom:18px;border-bottom:1px solid var(--line)}.message-list{display:flex;flex-direction:column;gap:10px;min-height:35dvh;padding:22px 0}.message-bubble{max-width:85%;align-self:flex-start;padding:12px 15px 8px;border-radius:20px 20px 20px 5px;background:var(--panel);border:1px solid var(--line);overflow-wrap:anywhere}.message-bubble.mine{align-self:flex-end;border-radius:20px 20px 5px 20px;background:rgba(159,206,100,.13)}.message-bubble p{white-space:pre-wrap;margin:0;line-height:1.5}.message-bubble footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;color:var(--muted);font-size:10px;margin-top:6px}.message-bubble footer button{background:none;color:var(--muted);font-size:20px;min-width:32px;min-height:28px;padding:0}.message-story{display:block;border-left:2px solid var(--green);padding:5px 9px;margin-bottom:8px;color:var(--muted);font-size:12px}.message-compose{display:flex;align-items:flex-end;gap:8px;background:var(--glass);padding:7px;border:1px solid var(--glass-line);border-radius:26px}.message-compose textarea{min-width:0;font-size:16px;border:0;background:none;resize:none;padding:9px 10px;max-height:120px}.message-compose .glass-round{color:var(--green);flex:none}.message-compose svg{width:24px;height:24px}.message-request{padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:18px}.message-request .btn{margin-right:8px;margin-top:8px}#messageStatus{font-size:13px;color:var(--muted);margin:12px 0}
@keyframes moment-in{from{opacity:0;transform:translateY(14px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes moment-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){#modal.photo-composer{margin:0;inset:0;max-height:100dvh;height:100dvh;border-radius:0;padding:max(16px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));max-width:none}.composer-selected{max-height:42dvh}.composer-gallery{max-height:24dvh}}
@media(prefers-reduced-motion:reduce){#modal.story-viewer,.photo-viewer[open]{animation:none}#pullRefresh.refreshing span{animation-duration:2s}}

#messagePerson{display:flex;align-items:center;justify-content:space-between;gap:10px}#messagePerson>.social-author-link{flex:1;min-width:0}
