/* Zenvy 5 — identidade independente, navegação social responsiva. */
:root{--bg:#fff;--soft:#f7f7f9;--fg:#171719;--muted:#73747b;--line:#e8e8ed;--accent:#5554db;--accent-soft:#eeedff;--surface:#fff;--shade:#f4f4f7;color-scheme:light}
html[data-theme=dark]{--bg:#0d0e13;--soft:#181920;--fg:#f7f7fa;--muted:#a1a2b0;--line:#2d2e37;--accent:#a4a0ff;--accent-soft:#25233f;--surface:#171820;--shade:#1f202a;color-scheme:dark}
html{scroll-behavior:smooth}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}button{transition:background .18s,color .18s,opacity .18s,transform .18s}button:hover{opacity:1}input,textarea,select{transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px var(--accent-soft)}a{color:var(--accent)}
.primary{background:var(--accent);color:#fff;border-radius:9px}.primary:hover{filter:brightness(1.07)}.secondary{background:var(--soft);border:1px solid var(--line);border-radius:9px}.secondary:hover{background:var(--accent-soft)}.icon-only{padding:9px!important;min-width:36px;min-height:36px}.icon-only .ico{width:20px;height:20px}
.brand{font:italic 750 35px/1.05 Georgia,"Times New Roman",serif;letter-spacing:-2.1px;white-space:nowrap;color:var(--fg)}.brand span{color:#8054e8;font:normal 17px/1 sans-serif;vertical-align:top;display:inline-block;margin-left:4px}
.sidebar{width:248px;padding:36px 13px 16px;background:var(--bg);border-color:var(--line);box-shadow:1px 0 0 rgba(0,0,0,.015)}.sidebar .brand{margin:0 15px 41px}.sidebar .nav{gap:7px;min-height:0;overflow-y:auto;scrollbar-width:none}.sidebar .nav::-webkit-scrollbar{display:none}
.nav-item{position:relative;font-size:15px;padding:13px 14px;gap:17px;min-height:49px;border-radius:10px;font-weight:450}.nav-item .ico{width:25px;height:25px}.nav-item:hover{background:var(--soft)}.nav-item.active{background:var(--soft);font-weight:710}.nav-item.active .ico{color:var(--fg);stroke-width:2.4}.nav-item.active:before{content:"";position:absolute;left:1px;top:16px;bottom:16px;width:3px;border-radius:4px;background:var(--accent)}.nav-item .avatar{width:27px;height:27px;border:2px solid transparent}.nav-item.active .avatar{outline:0;border:2px solid var(--accent)}.nav-create .ico{border:2px solid currentColor;padding:2px;border-radius:8px;width:25px;height:25px}
.sidebar-bottom{border-top:1px solid var(--line);padding-top:7px;margin-top:auto}.sidebar-bottom .more-toggle{font-weight:650}.secondary-links{display:none}.local-tag{margin:8px 13px 0;font-size:9px;letter-spacing:2px}.nav-unread{position:absolute;left:31px;top:6px;min-width:17px;line-height:15px;font-size:10px;margin:0;border:2px solid var(--bg);padding:0 4px}.mobile-dock{display:none}
.app-shell{margin-left:248px;padding:0 34px 0 34px;max-width:1380px;grid-template-columns:minmax(0,660px) minmax(225px,290px);gap:46px}.app-shell:not(.home){max-width:1500px;padding:0 38px}.rail{padding-top:43px}.rail .person.self{margin:0 0 24px}.rail .suggestions-head{margin-bottom:9px}.rail .person .avatar{width:34px;height:34px}.rail .person.self .avatar{width:44px;height:44px}.rail .person .who{gap:3px}.rail .person .who strong{font-size:13px}.rail .person{padding:8px 0}.rail .text-button{font-weight:750}.footer{margin-top:24px}.community-note{padding-top:15px;margin-top:17px}
.home-intro{padding:36px 2px 12px;display:flex;align-items:center;justify-content:space-between}.home-intro h1{font-size:23px;font-weight:730;letter-spacing:-.7px}.feed-new{font-size:12px;font-weight:720;color:var(--accent);gap:5px}.feed-new .ico{width:17px;height:17px}.stories{gap:18px;padding:14px 4px 19px;border-bottom:1px solid var(--line);margin:0 0 4px;max-width:none}.story{min-width:75px;max-width:80px;align-items:center;gap:7px}.story>span:last-child{max-width:78px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.story-ring{width:72px;height:72px;padding:3px;background:conic-gradient(from 30deg,#dc4b9f,#7d5cec,#4e7dee,#dd5bab)}.story-ring .avatar{width:66px;height:66px}.story.own .story-ring{background:var(--line)}.own b{background:#5255e8;right:0;bottom:0}
.home-tabs{height:54px;gap:22px;margin:0 0 17px;max-width:none;border:0}.home-tabs button{font-size:14px;font-weight:700;position:relative;align-self:stretch}.home-tabs button.active:after{content:"";height:2px;background:var(--fg);position:absolute;bottom:3px;left:0;right:0}.feed-state{font-size:11px;color:var(--muted);margin-left:auto}
.feed{max-width:510px;margin:0 auto}.post{padding:0 0 23px;margin-bottom:28px;border-bottom:1px solid var(--line)}.post-head{margin:0 0 11px;padding:0 1px}.post-head .avatar{width:37px;height:37px;box-shadow:0 0 0 2px var(--bg),0 0 0 3px #aaa2ef}.post-head strong{font-size:13px}.post-head .muted{color:var(--muted)}.post-head button[aria-label="Opções da publicação"]{font-size:19px;letter-spacing:2px;padding:7px}.media-frame{border-radius:4px;border:1px solid var(--line);background:var(--soft)}.post-media{width:100%;max-height:670px}.actions{gap:15px;padding:13px 0 8px}.actions .ico{width:25px;height:25px}.actions button:hover .ico,.comment-controls button:hover{color:var(--accent)}.actions .reaction-opener{font-size:20px!important}.like-count{font-weight:760}.caption{line-height:1.65;font-size:13px}.comment-link{font-size:13px}.inline-comment{margin-top:6px}.inline-comment input{background:transparent}.inline-comment button{font-weight:700}
/* Publicações e perfil */
.app-shell.profile .content,.app-shell.explore .content,.app-shell.search .content{max-width:1050px;margin:0 auto}.profile-header{grid-template-columns:230px minmax(0,1fr);padding:49px 20px 30px;gap:30px;align-items:start}.profile-avatar{padding:12px 0 0}.profile-avatar .avatar.large{width:160px;height:160px;box-shadow:0 0 0 5px var(--bg),0 0 0 7px var(--line);font-size:40px}.profile-title{gap:10px;align-items:center}.profile-title h1{font-size:21px;font-weight:450;margin:0 14px 0 0;letter-spacing:0}.profile-title button{font-weight:650;font-size:12px;padding:8px 15px;white-space:nowrap}.profile-title .icon-only{padding:8px!important}.profile-numbers{gap:30px;margin:28px 0 19px;font-size:14px}.profile-numbers button{padding:0}.profile-info>strong{font-size:14px}.profile-info .bio{font-size:13px;margin-top:6px}.profile-tabs{gap:48px}.profile-tabs button{font-size:11px;letter-spacing:1px;font-weight:650;gap:7px}.media-grid{gap:3px}.tile{aspect-ratio:3/4}.explore-grid .tile:nth-child(10n+3){grid-row:span 2}.tile:hover .tile-overlay{backdrop-filter:blur(1px)}.highlights-bar{margin:10px 8px 18px;padding:12px 8px 29px;gap:27px}.highlight-bubble{gap:9px}.highlight-bubble span{width:83px;height:83px;border:2px solid var(--line);background:var(--soft)}
.page-heading h1{font-size:25px}.page-heading{padding:35px 0 27px}.explore-search,.search-box{background:var(--soft);border-radius:14px;border:1px solid var(--line)}.topic-chips button{border-radius:100px;border:1px solid var(--line);font-size:12px}.topic-chips .active{border-color:var(--accent)}
/* Página de mensagens estilo duas colunas, preservando todas as ações */
.app-shell.messages{padding:0!important}.chat-layout{min-height:100dvh;border-left:1px solid var(--line);grid-template-columns:clamp(285px,31%,360px) minmax(0,1fr)}.chat-list{border-right:1px solid var(--line)}.chat-list-head{padding:35px 23px 19px}.chat-list-head h2{font-size:20px}.chat-person{margin:2px 10px;border-radius:12px;padding:12px 13px}.chat-person.active{background:var(--soft)}.chat-person .avatar{width:51px;height:51px}.chat-header{min-height:72px;border-bottom:1px solid var(--line);padding:12px 22px}.chat-header .avatar{width:38px;height:38px}.bubbles{padding:22px 25px}.bubble{border-radius:17px}#message-form{border:1px solid var(--line);border-radius:25px;max-width:95%;margin:12px auto 20px;background:var(--bg)}#message-form input{border:0;background:transparent}#message-form input:focus{box-shadow:none}
/* Área de configurações e edição mais uniforme */
.settings-layout{max-width:1110px;grid-template-columns:245px minmax(0,1fr);gap:25px;padding-top:39px}.settings-menu{border:0}.settings-menu h1{font-size:25px;font-weight:750}.settings-menu button{border-radius:12px;padding:13px 15px;font-size:13px;margin-bottom:4px}.settings-menu button.active{background:var(--accent-soft);color:var(--accent)}.settings-panel,.edit-card{border-radius:17px;box-shadow:none;background:var(--surface)}.settings-panel{padding:34px 38px}.setting-line{min-height:79px}.setting-line input[type=checkbox]{background:#b3b3ba}.setting-line input[type=checkbox]:checked{background:var(--accent)}.edit-page{max-width:875px}.edit-card .edit-avatar{background:var(--soft);border-radius:13px}.edit-card .edit-avatar .avatar{width:66px;height:66px}.edit-fields label{font-weight:650}.edit-page .edit-heading h1{font-size:27px}
/* Lives, cards, janelas */
.live-page{max-width:1060px}.live-start-card{background:var(--soft);border-radius:18px}.live-tile{background:var(--surface);transition:transform .15s,box-shadow .15s}.live-tile:hover{transform:translateY(-2px);box-shadow:0 12px 30px #0000000c}.live-room{max-width:1250px}.live-stage{border-radius:16px}.live-pill{border-radius:8px}.collections-grid{gap:13px}.collection-folder{background:var(--surface)}.modal-body{background:var(--bg)}dialog{border-radius:18px!important}dialog::backdrop{background:#111321b3;backdrop-filter:blur(3px)}
.create-dialog{max-width:480px!important}.create-sheet{padding:10px 3px 12px}.create-sheet h2{font-size:23px;margin:2px 0 7px}.create-sheet>p{font-size:13px;color:var(--muted);margin-bottom:23px}.create-options{display:grid;gap:9px}.create-options>button{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;background:var(--soft);border:1px solid var(--line);border-radius:13px;padding:18px 15px;gap:15px}.create-options>button:hover{background:var(--accent-soft);border-color:var(--accent)}.create-options>button>.ico:first-child{width:27px;height:27px;color:var(--accent)}.create-options>button>.ico:last-child{width:17px;height:17px}.create-options span{display:grid;gap:4px;flex:1}.create-options small{font-size:12px}.create-options b{font-size:14px}
.mobile-header{display:none}.mobile-unread{position:absolute;font-size:9px;right:1px;top:2px;color:white;background:#dc416f;border-radius:50%;min-width:16px;padding:2px}.mobile-actions{display:flex;align-items:center;gap:4px}.mobile-actions button{position:relative;padding:8px}.mobile-actions .ico{width:23px;height:23px}
/* Compactar navegação em tablets */
@media(min-width:701px) and (max-width:1260px){.sidebar{width:77px;padding:34px 10px}.sidebar .brand{font-size:24px;margin:0 0 36px 2px;letter-spacing:-1.2px}.sidebar .brand span{display:none}.sidebar .nav-item{justify-content:center;padding:13px 9px}.sidebar .nav-item>span:not(.avatar),.sidebar-bottom .nav-item>span:not(.avatar){display:none}.nav-item.active:before{left:0}.app-shell{margin-left:77px;gap:25px;padding:0 28px;grid-template-columns:minmax(0,650px) minmax(195px,245px)}.app-shell:not(.home){padding:0 25px}.local-tag{display:none}.rail{padding-top:43px}.sidebar-bottom{padding-top:15px}}
@media(max-width:1100px){.rail{display:none}.app-shell{display:block;max-width:880px;margin-left:77px;padding:0 36px}.app-shell:not(.home){padding:0 30px}.home-intro,.stories,.home-tabs{max-width:650px;margin-left:auto;margin-right:auto}.profile-header{grid-template-columns:170px 1fr;gap:22px}.profile-avatar .avatar.large{width:135px;height:135px}.profile-numbers{gap:19px}}
/* Mobile: 5 abas sempre disponíveis, demais ações no cabeçalho e em Mais. */
@media(max-width:700px){
 body{font-size:13px}h1{font-size:23px}
 .sidebar{display:none!important}.mobile-header{display:flex!important;position:sticky;top:0;height:59px;background:var(--bg);z-index:18;border-bottom:1px solid var(--line);padding:0 14px;align-items:center;justify-content:space-between}.mobile-header .brand{font-size:30px}.mobile-header .brand span{font-size:13px}
 .app-shell,.app-shell:not(.home),.app-shell.settings,.app-shell.edit,.app-shell.live,.app-shell.messages,.app-shell.profile,.app-shell.collections{display:block;max-width:none;margin:0;padding:0 0 67px!important;width:100%;min-height:100dvh}.content{width:100%}
 .mobile-dock{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;height:62px;background:var(--bg);border-top:1px solid var(--line);z-index:19;padding:3px 6px env(safe-area-inset-bottom)}.mobile-dock .nav-item{min-width:48px;width:auto;display:flex;flex-direction:column;gap:2px;font-size:9px;padding:6px 8px;align-items:center;min-height:52px}.mobile-dock .nav-item>span:not(.avatar){display:block!important}.mobile-dock .nav-item .ico{width:23px;height:23px}.mobile-dock .nav-item .avatar{width:24px;height:24px}.mobile-dock .nav-item.active{background:transparent;color:var(--fg)}.mobile-dock .nav-item.active:before{display:none}.mobile-dock .nav-item.active .ico{color:var(--accent)}
 .home-intro{padding:16px 15px 4px}.home-intro h1{font-size:18px}.feed-new{font-size:12px}.stories{border-bottom:1px solid var(--line);padding:12px 12px 15px;gap:12px}.story{min-width:67px}.story-ring{width:65px;height:65px}.story-ring .avatar{width:59px;height:59px}.home-tabs{height:50px;padding:0 16px;margin-bottom:9px;max-width:none;gap:18px}.home-tabs button{font-size:13px}.feed-state{display:none}.feed{max-width:none}.post{padding-bottom:17px;margin-bottom:17px}.post-head{padding:0 12px}.media-frame{border-radius:0;border-left:0;border-right:0}.actions,.like-count,.caption,.comment-link,.inline-comment{margin-left:12px;margin-right:12px}
 .profile-header{grid-template-columns:86px minmax(0,1fr);gap:17px;padding:21px 14px 19px;align-items:start}.profile-avatar{padding:5px 0 0}.profile-avatar .avatar.large{width:86px;height:86px;font-size:24px;box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--line)}.profile-info{min-width:0}.profile-title{gap:6px}.profile-title h1{font-size:17px;width:100%;margin:0 0 2px}.profile-title button{padding:7px 11px;font-size:11px}.profile-title .icon-only{padding:7px!important}.profile-numbers{display:flex;justify-content:space-between;gap:6px;margin:17px 0 11px;font-size:10px}.profile-numbers span,.profile-numbers button{display:grid;gap:2px;text-align:center}.profile-info .bio{font-size:12px}.profile-tabs{gap:0;justify-content:space-around}.profile-tabs button{flex:1;font-size:9px;padding:14px 2px}.highlights-bar{margin:0 0 9px;gap:10px;padding:12px 12px 21px}.highlight-bubble{min-width:74px}.highlight-bubble span{width:64px;height:64px}.tile{aspect-ratio:3/4}
 .page-heading{padding:20px 16px 20px}.explore-search{margin:0 12px}.topic-chips{padding:14px 12px}.explore-grid{gap:2px}.search-page{padding:15px}.settings-layout{padding:0 10px 75px;display:block}.settings-menu{padding:7px 0 14px;margin-bottom:5px;border:0;display:flex;overflow-x:auto;flex-wrap:nowrap;gap:8px;position:static}.settings-menu h1{min-width:100%;font-size:21px;margin:9px 0}.settings-menu button{flex-shrink:0;border:1px solid var(--line);width:auto;margin:0;padding:10px}.settings-panel{padding:20px 16px}.setting-line{gap:8px}.settings-panel h2{font-size:20px}.edit-page{padding:20px 12px 80px}.edit-card{padding:17px}.edit-fields{display:block}.edit-card .edit-avatar .avatar{width:57px;height:57px}
 .chat-layout{display:grid;grid-template-columns:95px minmax(0,1fr);min-height:calc(100dvh - 125px);height:calc(100dvh - 125px)}.chat-list-head{padding:12px 7px}.chat-list-head h2{font-size:11px;max-width:80px;overflow:hidden;text-overflow:ellipsis}.chat-list-head p{font-size:10px}.chat-person{padding:8px 5px;flex-direction:column;margin:2px 4px;gap:4px}.chat-person .avatar{width:38px;height:38px}.chat-person span{max-width:70px;text-align:center}.chat-person strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-person small{display:none}.chat-header{min-height:53px;padding:7px 10px}.chat-header .avatar{width:29px;height:29px}.bubbles{padding:10px}#message-form{margin:5px;width:calc(100% - 10px);padding:0 4px}#message-form button{padding:5px}.dm-actions button{font-size:9px}
 .live-page{padding:18px 13px 70px}.live-room{grid-template-columns:1fr}.live-start-card{padding:18px}.live-stage{min-height:340px}.live-side{min-height:280px}.collections-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.footer{display:none}dialog{max-width:95vw!important}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Organizador de grade persistente no servidor. */
.profile-grid-toolbar{min-height:42px;margin:0 0 12px;padding:7px 3px;display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-grid-toolbar span{font-size:12px;color:var(--muted)}.profile-grid-toolbar button{font-size:12px;padding:8px 13px;white-space:nowrap}.sort-tile{position:relative;min-width:0;aspect-ratio:3/4}.sort-tile>.tile{height:100%}.sort-controls{position:absolute;bottom:10px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:14px;pointer-events:none}.sort-controls button{pointer-events:auto;background:#fff;color:#111;border:1px solid #eee;border-radius:50%;width:38px;height:38px;font-size:23px;box-shadow:0 3px 14px #0006}.sort-controls button:hover{background:#ebeaff}.sort-tile .tile-overlay{pointer-events:none;opacity:0}.sort-tile:after{content:"";position:absolute;inset:0;border:2px dashed var(--accent);pointer-events:none;z-index:1}.sort-tile .sort-controls{z-index:2}
@media(max-width:700px){.profile-grid-toolbar{padding:8px 13px}.profile-grid-toolbar span{max-width:46%;font-size:10px}.profile-grid-toolbar button{font-size:11px}.sort-controls{gap:8px}.sort-controls button{width:30px;height:30px;font-size:18px}}
