/* FILTNO v0.2 — direct feed, centered masthead, fixed circular story geometry. */
:root{--header:80px;--story-size:54px}
.expanded{--story-size:78px}
.topbar{display:grid;grid-template-columns:1fr auto 1fr;gap:0;padding:0 max(24px,calc((100vw - 1250px)/2));align-items:center}
.top-left{display:flex;align-items:center;justify-content:flex-start;gap:20px;min-width:0}
.header-create{width:44px;height:44px}
.header-create svg{width:30px;height:30px;stroke-width:1.65}
.topbar .brand{justify-self:center;margin:0;position:relative}
.topbar .wordmark{font-size:33px;letter-spacing:-1.8px}
.topbar .top-actions{justify-self:end;margin:0;gap:19px}
.notification-btn::after{content:'';position:absolute;right:6px;top:5px;width:5px;height:5px;border-radius:50%;background:var(--accent);outline:2px solid var(--bg)}
.stories-panel{padding-top:19px}

.story-list{align-items:center;gap:20px;padding:4px 2px 16px;overflow-x:hidden;overflow-y:auto;scroll-padding-block:8px}
.story-button{flex:0 0 auto;min-width:0;gap:9px;padding:0 0 3px;justify-content:flex-start;align-items:center}
.story-ring,.expanded .story-ring{position:relative;display:block;box-sizing:border-box;width:var(--story-size);height:var(--story-size);min-width:var(--story-size);min-height:var(--story-size);max-width:var(--story-size);max-height:var(--story-size);aspect-ratio:1 / 1;flex:0 0 var(--story-size);padding:0;border:2px solid #92a28d;border-radius:50%;overflow:visible;isolation:isolate;transition:width .22s,height .22s,min-width .22s,min-height .22s,max-width .22s,max-height .22s,flex-basis .22s}
.story-ring.own{border:2px solid #dce0d5}
.story-ring.live{border:2px solid var(--accent)}
.story-ring.seen:not(.live){border:2px solid #dce0d5}
.story-avatar{position:absolute;inset:3px;display:block;overflow:hidden;border-radius:50%;aspect-ratio:1 / 1;background:#eef0e8}
.story-ring .story-avatar img,.story-ring .story-avatar .my-avatar{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;max-width:none;min-height:0;aspect-ratio:1 / 1;border:0;outline:0;padding:0;margin:0;border-radius:50%;object-fit:cover;object-position:center;box-sizing:border-box}
.story-ring .story-avatar .my-avatar{display:grid;place-items:center;font-size:17px}
.story-plus{z-index:2;width:21px;height:21px;right:-1px;bottom:-1px;border:2px solid var(--bg);font-size:17px;line-height:1;border-radius:50%;display:grid;place-items:center;padding:0}
.live-pill{position:absolute;z-index:3;left:50%;right:auto;bottom:-6px;transform:translateX(-50%);width:max-content;max-width:100%;height:16px;line-height:12px;padding:0 5px;font-size:7px;border:2px solid var(--bg);border-radius:5px;white-space:nowrap}
.story-name{display:block;line-height:1.3;min-height:13px;max-width:100%;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
main{padding-top:0}

.post-header{padding-top:0;padding-bottom:13px}
.post-photo-wrap{border-radius:4px}
.bottom-nav{bottom:max(20px,env(safe-area-inset-bottom));width:440px;max-width:calc(100vw - 28px);height:68px;padding:7px;border:1px solid #dfe3d7;border-radius:999px;background:rgba(250,251,247,.94);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 4px 25px #2430201a,inset 0 0 0 2px #ffffffa8;gap:6px}
.nav-item{flex:1;min-width:0;width:auto;height:52px;gap:0;border-radius:999px;color:#687060;transition:background .18s,color .18s}
.nav-item svg{height:25px;width:25px;stroke-width:1.9}
.nav-item .nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.nav-item.active{background:#e5e9df;color:#222b1c}
.nav-item.active:after{display:none}
.nav-item.active[data-nav="home"] svg{fill:currentColor}
@media(max-width:900px){.topbar{padding:0 28px}.topbar .top-actions{gap:14px}.preview-label{display:none}}
@media(max-width:600px){
 :root{--header:66px;--rail:64px;--story-size:46px}
 .expanded{--rail:108px;--story-size:78px}
 .topbar{grid-template-columns:1fr auto 1fr;padding:0 12px;border-bottom:1px solid var(--line)}
 .topbar .wordmark{font-size:29px;letter-spacing:-1.6px}
 .topbar .brand-dot{right:-8px;bottom:3px}
 .top-left{gap:0}
 .header-create{height:44px;width:36px}
 .header-create svg{height:29px;width:29px}
 .topbar .top-actions{gap:5px}
 .topbar .top-actions .icon-btn{width:34px;height:40px}
 .topbar .top-actions .icon-btn svg{width:23px;height:23px}
 .topbar .my-avatar{height:30px;width:30px;border-width:2px}
 .notification-btn::after{right:5px;top:6px}
 .app-layout{padding:0;grid-template-columns:var(--rail) 8px minmax(0,1fr)}
 main{padding:0 0 calc(115px + env(safe-area-inset-bottom))}
 .stories-panel{padding:12px 6px calc(104px + env(safe-area-inset-bottom));border-right:1px solid var(--line)}
 .expanded .stories-panel{padding-left:7px;padding-right:7px}

 .story-list{width:100%;gap:22px;padding:4px 0 18px}
 .story-button{gap:8px}
 .story-ring .story-avatar{inset:2.5px}
 .story-ring .story-avatar .my-avatar{font-size:15px}
 .story-plus{height:18px;width:18px;font-size:14px;right:-2px;bottom:-1px}
 .live-pill{height:14px;line-height:10px;font-size:6px;bottom:-5px;padding:0 4px}
 .story-name{font-size:9px;max-width:100%;line-height:1.35}
 .expanded .story-name{font-size:11px;max-width:88px}
 .expanded .live-pill{font-size:7px;height:16px;line-height:12px;padding:0 5px;bottom:-6px}

 .post{padding-bottom:18px;margin-bottom:21px}
 .post-header{padding:0 10px 11px 7px;gap:8px}
 .post-header .avatar{height:31px;width:31px}
 .post-header .user-name{font-size:11.5px;letter-spacing:-.1px}
 .post-header .user-location{font-size:9px;line-height:1.4}
 .post-header .post-time{font-size:9px}
 .post-header .post-more{width:23px}
 .post-photo-wrap{border-radius:0;overflow:hidden}
 .post-photo{width:100%;height:auto;aspect-ratio:4/5;max-height:none;display:block}
 .post-actions{padding:13px 10px 10px 7px;gap:16px}
 .post-action svg{width:23px;height:23px;stroke-width:1.8}
 .post-action{font-size:11px;gap:5px}
 .post-caption{padding:0 10px 0 7px;font-size:12px;line-height:1.7}
 .comments-link{margin-left:7px;font-size:10px}
 .photo-tag{left:10px;bottom:10px}
 .bottom-nav{width:calc(100vw - 28px);max-width:420px;height:64px;bottom:calc(11px + env(safe-area-inset-bottom));padding:6px;gap:5px;border:1px solid #dfe3d7;border-radius:999px}
 .nav-item{height:50px;min-width:0;border-radius:999px}
 .nav-item svg{width:25px;height:25px}
 #main>.page-intro,#main>.search-field,#main>.filter-chips,#main>.profile-info,#main>.profile-cover,#main>.explore-grid,#main>.reels-list{margin-left:7px;margin-right:10px}
 #main>.page-intro{margin-top:23px}
 #main>.profile-cover{margin-top:6px}

 #main>.feed-tabs{margin-left:7px;margin-right:10px}
 #toast{bottom:calc(94px + env(safe-area-inset-bottom))}
}
@media(max-width:350px){.topbar{padding-left:8px;padding-right:8px}.topbar .top-actions{gap:2px}.topbar .wordmark{font-size:26px}.topbar .my-avatar{width:27px;height:27px}.post-actions{gap:11px}.expanded .post-actions{gap:8px}.expanded .post-action svg{width:19px;height:19px}}

/* No instruction row: the feed and stories start directly below the header. */
#feed-posts{padding-top:22px}
.swipe-gutter{cursor:default}
.stories-panel:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:600px){#feed-posts{padding-top:17px}.stories-panel{padding-top:12px}}
