:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#1b1d21;background:#fff;font-size:15px;line-height:1.45;letter-spacing:0;--ink:#1b1d21;--muted:#858a93;--line:#e9ebef;--soft:#f5f6f8;--blue:#1869d9}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,textarea{font:inherit;letter-spacing:0}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.app-shell{display:grid;grid-template-columns:238px minmax(0,640px) 290px;column-gap:34px;max-width:1260px;min-height:100vh;margin:auto}
.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:31px 18px 24px 20px;border-right:1px solid var(--line)}
.brand,.mobile-brand{display:flex;align-items:center;gap:11px;width:fit-content;font-size:24px;font-weight:700;color:#111;letter-spacing:0}
.brand img,.mobile-brand img,.account-link img,.suggestions-head img,.mobile-nav img{border-radius:8px;background:#000}
.desktop-nav{display:grid;gap:5px;margin-top:52px}
.nav-item,.account-link{display:flex;align-items:center;gap:17px;width:100%;border:0;background:transparent;color:var(--ink);text-align:left}
.nav-item{height:51px;padding:0 13px;border-radius:8px;font-size:15px}
.nav-item svg{width:23px;height:23px;stroke-width:1.8}
.nav-item:hover,.nav-item.is-active,.account-link:hover{background:var(--soft)}
.nav-item.is-active{font-weight:650}
.sidebar-bottom{margin-top:auto}
.account-link{padding:8px;border-radius:8px}
.account-link span,.suggestions-head div{display:grid;line-height:1.25}
.account-link small,.suggestions-head span{margin-top:4px;font-size:12px;color:var(--muted)}
.local-tag{display:block;margin:15px 8px 0;color:#9a9da5;font-size:11px}
.main-area{min-width:0;padding:31px 0 90px}
#view{max-width:600px;margin:0 auto;outline:none}
.mobile-header,.mobile-nav{display:none}
.suggestions{padding:46px 8px 20px 0}
.suggestions-head{display:flex;align-items:center;gap:11px}
.suggestions-label{margin:33px 0 17px;font-size:13px;font-weight:650;color:#858a93}
.suggestion-row{display:flex;align-items:center;gap:10px;margin:0 0 15px}
.suggestion-row .avatar{width:36px;height:36px}
.suggestion-row .person-label{flex:1;min-width:0;display:grid;text-align:left;line-height:1.25}
.suggestion-row .person-label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.suggestion-row .person-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;color:var(--muted);font-size:11px}
.follow-mini,.text-command{border:0;background:transparent;color:var(--blue);font-size:13px;font-weight:650}
.follow-mini.is-following{color:var(--muted)}
.suggestions-foot{margin-top:38px;color:#a6aab1;font-size:11px}
.loading-state,.empty-state{display:grid;justify-items:center;align-content:center;min-height:240px;color:var(--muted);text-align:center}
.empty-state svg{width:36px;height:36px;margin-bottom:14px;stroke-width:1.3}
.empty-state h2{margin:0 0 6px;color:var(--ink);font-size:18px;font-weight:650}
.empty-state p{max-width:280px;margin:0 0 18px;font-size:13px}
.empty-state button,.solid-button{border:0;border-radius:7px;background:#1e2227;color:#fff;padding:9px 16px;font-size:13px;font-weight:600}
.view-heading{display:flex;align-items:center;justify-content:space-between;margin:2px 0 24px;padding:0 4px}
.view-heading h1{margin:0;font-size:22px;line-height:1.2;font-weight:700}
.view-heading small{color:var(--muted);font-size:12px}
.stories{display:flex;gap:15px;overflow-x:auto;padding:3px 2px 22px;margin-bottom:8px;scrollbar-width:none;border-bottom:1px solid var(--line)}
.stories::-webkit-scrollbar{display:none}
.story{display:grid;justify-items:center;gap:7px;flex:0 0 70px;width:70px;border:0;background:transparent;padding:0;color:var(--ink)}
.story .story-ring{display:grid;place-items:center;width:65px;height:65px;border:2px solid #2e7edf;border-radius:50%;padding:3px}
.story img{width:55px;height:55px;border-radius:50%;object-fit:cover}
.story span:last-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70px;font-size:11px}
.feed{max-width:560px;margin:0 auto}
.post{padding:21px 0 25px;border-bottom:1px solid var(--line)}
.post-head,.author-line{display:flex;align-items:center;gap:10px}
.post-head{margin:0 0 12px}
.avatar{width:37px;height:37px;flex:none;border-radius:50%;object-fit:cover;background:#000}
.author-meta{display:grid;flex:1;min-width:0;line-height:1.3}
.author-button{width:fit-content;max-width:100%;border:0;background:transparent;padding:0;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:13px;font-weight:650}
.author-meta span{color:var(--muted);font-size:11px}
.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;flex:none;border:0;border-radius:50%;background:transparent;color:var(--ink)}
.icon-button:hover{background:var(--soft)}
.icon-button svg{width:22px;height:22px;stroke-width:1.8}
.post-photo{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;background:#f0f2f4;border-radius:4px}
.post-actions{display:flex;align-items:center;gap:3px;margin:9px -9px 0}
.post-actions .spacer{flex:1}
.post-actions .icon-button{width:40px;height:40px}
.post-actions .is-liked{color:#ed435a}
.post-actions .is-liked svg{fill:currentColor}
.post-actions .is-saved svg{fill:#1b1d21}
.post-text{padding:0 2px;font-size:13px}
.post-text strong{display:block;margin:1px 0 5px;font-weight:700}
.post-text p{margin:0 0 5px;white-space:pre-wrap;overflow-wrap:anywhere}
.post-text p button{border:0;background:transparent;padding:0;font-weight:650}
.comment-preview,.post-date{display:block;border:0;background:transparent;padding:0;color:var(--muted);font-size:12px;text-align:left}
.post-date{margin-top:8px;font-size:10px;text-transform:uppercase}
.explore-head{margin-bottom:23px}
.search-field{display:flex;align-items:center;gap:9px;height:44px;padding:0 13px;border:1px solid var(--line);border-radius:7px;background:var(--soft)}
.search-field svg{width:19px;height:19px;color:#9da2aa}
.search-field input{flex:1;width:100%;border:0;outline:0;background:transparent;color:var(--ink)}
.search-field input::placeholder{color:#a2a6ad}
.clear-search{border:0;background:transparent;color:#8b9097;padding:4px}
.explore-label{margin:30px 0 14px;font-size:14px;font-weight:650}
.profile-results{display:grid;gap:12px;margin-bottom:22px}
.profile-result{display:flex;align-items:center;gap:12px;width:100%;padding:5px 0;border:0;background:transparent;text-align:left}
.profile-result strong,.profile-result small{display:block}
.profile-result small{margin-top:2px;color:var(--muted)}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.grid-item{position:relative;display:block;width:100%;aspect-ratio:1;border:0;background:#e8e9ea;padding:0;overflow:hidden}
.grid-item img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.grid-item:hover img{transform:scale(1.035)}
.profile-head{display:flex;align-items:center;gap:31px;padding:12px 8px 28px;border-bottom:1px solid var(--line)}
.profile-head .avatar{width:92px;height:92px}
.profile-avatar-button{position:relative;display:block;flex:none;width:92px;height:92px;border:0;border-radius:50%;padding:0;background:transparent;cursor:pointer}
.profile-avatar-button .avatar{width:100%;height:100%}
.profile-avatar-button span{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:29px;height:29px;border:2px solid #fff;border-radius:50%;background:#1e2227;color:#fff}
.profile-avatar-button span svg{width:15px;height:15px}
.avatar-remove{margin-top:9px;color:var(--blue)}
.account-link img,.suggestions-head img,.mobile-nav [data-nav="profile"] img{border-radius:50%}
.profile-main{flex:1;min-width:0}
.profile-message-button{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:13px;font-weight:600}
.profile-message-button svg{width:16px;height:16px}
.budget-link{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:13px;font-weight:600;text-decoration:none}
.budget-link:hover{background:#f5f6f7}
.budget-link svg{width:16px;height:16px}
.profile-title{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.profile-title h1{margin:0;font-size:21px;font-weight:600}
.profile-main p{margin:10px 0 0;font-size:13px}
.profile-main .display-name{font-weight:650}
.profile-stats{display:flex;gap:24px;margin:13px 0 0;font-size:13px}
.profile-stats strong{font-weight:700}
.profile-tabs{display:flex;justify-content:center;gap:34px;height:49px;border-bottom:1px solid var(--line)}
.profile-tabs button{display:flex;align-items:center;gap:7px;height:100%;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;font-weight:650;text-transform:uppercase}
.profile-tabs button.is-active{border-bottom-color:var(--ink);color:var(--ink)}
.profile-tabs svg{width:15px;height:15px}
.chats-layout{display:grid;grid-template-columns:225px minmax(0,1fr);height:min(720px,calc(100dvh - 90px));min-height:500px;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.chats-list{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line)}
.chats-list-head{display:flex;align-items:center;height:63px;padding:0 16px}
.chats-list-head h1{margin:0;font-size:19px}
.chat-search{display:flex;align-items:center;gap:8px;height:39px;margin:0 10px 12px;padding:0 10px;border-radius:7px;background:var(--soft);color:var(--muted)}
.chat-search svg{width:17px;height:17px;flex:none}
.chat-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px}
.chat-list-items{flex:1;overflow:auto}
.chat-row{display:flex;align-items:center;gap:10px;width:100%;min-height:66px;padding:9px 11px;border:0;background:#fff;text-align:left}
.chat-row:hover,.chat-row.is-selected{background:var(--soft)}
.chat-row .avatar,.chat-header .avatar{flex:none;width:39px;height:39px;border-radius:50%;object-fit:cover}
.chat-row-text{display:grid;min-width:0;flex:1;gap:3px}
.chat-row-text strong,.chat-row-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-row-text strong{font-size:13px}.chat-row-text small{color:var(--muted);font-size:12px}
.chat-unread{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:50%;background:var(--blue);color:#fff;font-size:11px;font-weight:700}
.chat-list-empty{margin:16px 13px;color:var(--muted);font-size:13px}
.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}
.chat-header{display:flex;align-items:center;gap:10px;flex:none;height:63px;padding:0 14px;border-bottom:1px solid var(--line)}
.chat-peer-name{border:0;background:transparent;padding:5px 0;color:var(--ink);font-weight:650}
.chat-back{display:none}
.chat-scroll{display:flex;flex:1;flex-direction:column;gap:10px;min-height:0;overflow:auto;padding:16px}
.chat-bubble{display:grid;gap:5px;align-self:flex-start;max-width:86%;padding:9px 11px;border-radius:8px;background:var(--soft);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bubble.outgoing{align-self:flex-end;background:#e7f0ff}
.chat-bubble time{justify-self:end;color:var(--muted);font-size:10px}
.chat-empty,.chat-placeholder{display:grid;place-content:center;flex:1;color:var(--muted);font-size:13px;text-align:center}
.chat-placeholder svg{width:34px;height:34px;margin:0 auto 10px}
.chat-older{align-self:center;border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:600}
.chat-compose{display:flex;align-items:end;gap:8px;flex:none;padding:10px 12px;border-top:1px solid var(--line)}
.chat-compose textarea{flex:1;min-width:0;max-height:110px;resize:vertical;border:1px solid var(--line);border-radius:7px;padding:9px 11px;outline:0;font-size:13px}
.chat-compose textarea:focus{border-color:var(--blue)}
.chat-compose button{display:grid;place-items:center;flex:none;width:37px;height:37px;border:0;border-radius:7px;background:var(--ink);color:#fff}
.chat-compose button svg{width:18px;height:18px}
.section-title{margin:0 0 16px;font-size:22px}
.dialog{width:min(90vw,810px);max-height:min(90vh,800px);border:0;border-radius:8px;padding:0;box-shadow:0 24px 80px #0003;color:var(--ink)}
.dialog::backdrop{background:#141820a8}
.dialog-head{display:flex;align-items:center;justify-content:space-between;height:55px;padding:0 12px;border-bottom:1px solid var(--line)}
.dialog-head h2{margin:0;font-size:15px;font-weight:650}
.dialog-head .text-command{padding:7px 8px}
.create-modes{display:flex;gap:5px;padding:9px 12px;border-bottom:1px solid var(--line)}
.create-modes button{display:flex;align-items:center;gap:7px;border:0;border-radius:5px;background:transparent;padding:8px 11px;font-size:12px;font-weight:650;color:var(--muted)}
.create-modes button.is-active{background:#f0f2f5;color:var(--ink)}
.create-modes svg{width:16px;height:16px}
.create-body{display:grid;grid-template-columns:1fr 310px;min-height:420px}
.create-dialog.video-mode .create-body{display:block;min-height:260px}
.create-dialog.video-mode .upload-zone{display:none}
.create-dialog.video-mode .create-fields{border-left:0}
.upload-zone{position:relative;display:grid;place-items:center;min-height:420px;background:#f4f5f7;overflow:hidden;cursor:pointer}
.upload-zone input{position:absolute;width:1px;height:1px;opacity:0}
.upload-zone:focus-within{outline:2px solid var(--blue);outline-offset:-3px}
.upload-zone>img{width:100%;height:100%;max-height:65vh;object-fit:contain}
.upload-zone>img[hidden]{display:none}
#upload-placeholder{display:grid;justify-items:center;gap:11px;color:#656b73}
#upload-placeholder[hidden]{display:none}
#upload-placeholder svg{width:43px;height:43px;stroke-width:1.3}
#upload-placeholder strong{font-size:13px;font-weight:600}
.create-fields{padding:20px;border-left:1px solid var(--line)}
.create-fields .author-line{margin-bottom:24px;font-size:13px}
.author-line img{border-radius:50%}
.create-fields label:not(.upload-zone){display:block;margin:15px 0 6px;font-size:12px;font-weight:650}
.create-fields textarea,.create-fields input{width:100%;border:1px solid var(--line);border-radius:5px;padding:10px;background:#fff;outline:0;resize:vertical}
.create-fields textarea:focus,.create-fields input:focus{border-color:var(--blue)}
.create-fields [hidden]{display:none!important}
.post-video{display:block;width:100%;aspect-ratio:16/9;border:0;background:#111}
.detail-video{width:100%;height:100%;min-height:400px;border:0;background:#111}
.post-video.is-short{width:min(100%,420px,40.5dvh);aspect-ratio:9/16;margin-inline:auto}
.detail-video.is-short{width:min(100%,calc(78vh * 9 / 16));height:auto;min-height:0;aspect-ratio:9/16;justify-self:center;align-self:center}
.video-poster{position:relative;overflow:hidden;background:#24282d;color:#fff;text-align:center}
.video-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.82}
.video-poster .video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#fff;color:#111;box-shadow:0 5px 25px #0006}
.video-poster .video-play svg{width:29px;height:29px;fill:#111;margin-left:3px}
.video-poster .video-title{position:absolute;bottom:0;left:0;right:0;padding:35px 15px 16px;background:linear-gradient(transparent,#000b);font-size:14px;font-weight:650;overflow-wrap:anywhere}
.grid-item .video-badge{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#000b;color:#fff}
.grid-item .video-badge svg{width:17px;height:17px;fill:#fff}
.form-error{margin-top:14px;color:#bb2441;font-size:12px}
.post-dialog{width:min(92vw,930px)}
.detail{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:400px}
.detail-photo{width:100%;height:100%;max-height:78vh;object-fit:contain;background:#15171a}
.detail-side{display:flex;flex-direction:column;min-height:400px;max-height:78vh}
.detail-side .post-head{margin:0;padding:11px 13px;border-bottom:1px solid var(--line)}
.detail-comments{flex:1;overflow-y:auto;padding:14px;font-size:13px}
.detail-caption{margin-bottom:17px;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-comment{display:flex;gap:9px;margin:0 0 13px;overflow-wrap:anywhere}
.detail-comment strong{white-space:nowrap}
.detail-footer{border-top:1px solid var(--line);padding:0 13px 12px}
.detail-footer .post-actions{margin-top:3px}
.video-format-action{margin-top:12px;color:var(--blue)}
.comment-form{display:flex;gap:7px;margin-top:9px;border-top:1px solid var(--line);padding-top:12px}
.comment-form input{flex:1;min-width:0;border:0;outline:0}
.comment-form button{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:650}
.story-dialog{width:min(95vw,440px);height:min(95vh,800px);max-height:800px;border:0;border-radius:7px;padding:0;background:#090a0c;color:#fff;overflow:hidden}
.story-dialog::backdrop{background:#000e}
#story-content,.story-frame{position:relative;width:100%;height:100%}
.story-frame>img{width:100%;height:100%;object-fit:cover}
.story-shade{position:absolute;inset:0 0 auto;height:130px;background:linear-gradient(#0009,#0000);pointer-events:none}
.story-top{position:absolute;top:0;left:0;right:0;padding:13px}
.story-progress{display:flex;gap:4px}
.story-progress span{height:3px;flex:1;border-radius:3px;background:#ffffff70}
.story-progress span.done{background:#fff}
.story-progress span.current{background:#fff;opacity:.8}
.story-byline{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;font-weight:600}
.story-byline img{width:29px;height:29px;border-radius:50%;object-fit:cover}
.story-close{margin-left:auto;color:#fff}
.story-close:hover{background:#ffffff26}
.story-step{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:#ffffffcf;color:#222}
.story-step.prev{left:12px}.story-step.next{right:12px}
.story-step svg{width:19px;height:19px}
.toast{position:fixed;z-index:50;bottom:26px;left:50%;transform:translateX(-50%);max-width:min(90vw,420px);border-radius:7px;background:#20242a;color:#fff;padding:10px 16px;text-align:center;font-size:13px;box-shadow:0 10px 30px #0003}
.auth-dialog{width:min(92vw,410px)}
.auth-form{display:grid;gap:7px;padding:24px}
.auth-form>img{justify-self:center;border-radius:8px;margin:2px 0 14px}
.auth-form label{font-size:12px;font-weight:650;margin-top:8px}
.auth-form input{width:100%;height:42px;border:1px solid var(--line);border-radius:5px;padding:0 11px;outline:0}
.auth-form input:focus{border-color:var(--blue)}
.auth-form [hidden]{display:none}
.auth-form .solid-button{height:42px;margin-top:13px}
.auth-form .auth-warning{margin:0 0 5px;color:#a63242;font-size:12px;line-height:1.5}
.auth-switch{border:0;background:transparent;color:var(--blue);padding:11px;font-size:13px;font-weight:600}
@media(max-width:1190px){.app-shell{grid-template-columns:220px minmax(0,640px);gap:35px;max-width:960px}.suggestions{display:none}}
@media(max-width:760px){.app-shell{display:block;min-height:100vh}.sidebar{display:none}.main-area{padding:0 0 calc(82px + env(safe-area-inset-bottom))}.mobile-header{position:sticky;z-index:10;top:0;display:flex;align-items:center;justify-content:space-between;height:58px;padding:0 17px;border-bottom:1px solid var(--line);background:#fffc;backdrop-filter:blur(16px)}.mobile-brand{gap:8px;font-size:20px}.mobile-nav{position:fixed;z-index:20;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:space-around;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:#fff}.mobile-nav button{display:grid;place-items:center;width:48px;height:44px;border:0;background:transparent;color:var(--ink)}.mobile-nav svg{width:24px;height:24px;stroke-width:1.8}.mobile-nav button.is-active svg{stroke-width:2.5}.mobile-nav button.is-active img{outline:2px solid var(--ink);outline-offset:2px}.view-heading{padding:20px 16px 0;margin:0 0 18px}.feed{max-width:none}.stories{margin:0 0 0 14px;padding-bottom:17px}.post{padding:14px 0 22px}.post-head{padding:0 12px}.post-photo{border-radius:0}.post-actions{margin-left:3px;margin-right:3px}.post-text{padding:0 14px}.explore-wrap,.profile-wrap,.saved-wrap{padding:20px 14px}.explore-head{margin-bottom:18px}.profile-head{gap:20px;padding:0 0 21px}.profile-head .avatar{width:78px;height:78px}.profile-title h1{font-size:18px}.profile-stats{gap:12px;flex-wrap:wrap;font-size:12px}.toast{bottom:calc(73px + env(safe-area-inset-bottom))}}
@media(max-width:760px){.chats-layout{display:block;height:calc(100dvh - 130px);min-height:360px;border:0;border-radius:0}.chats-list{height:100%;border-right:0}.chat-conversation{display:none}.chats-layout.has-peer .chats-list{display:none}.chats-layout.has-peer .chat-conversation{display:flex;height:100%}.chat-back{display:grid;place-items:center}.chat-row{padding:10px 16px}.chat-search{margin:0 16px 10px}.chat-compose{padding-bottom:12px}}
@media(max-width:570px){.dialog.create-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.create-body{display:block;overflow:auto;height:calc(100dvh - 55px)}.upload-zone{min-height:230px;max-height:42vh}.upload-zone>img{max-height:42vh}.create-fields{border:0;padding:17px}.dialog.post-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.detail{display:flex;flex-direction:column;height:100%}.detail-photo{height:min(52vh,500px);flex:none}.detail-side{flex:1;min-height:0;max-height:none}.detail-comments{min-height:50px}.story-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}
@media(prefers-reduced-motion:reduce){.grid-item img{transition:none}}
@media(max-width:760px){.profile-avatar-button{width:78px;height:78px}.profile-avatar-button .avatar{width:100%;height:100%}}
