
:root{--zentic-black:#0f1419;--zentic-black-hover:#272c30;--zentic-muted:#536471;--zentic-border:#eff3f4;--zentic-soft:#f7f9f9;--zentic-bg:#f5f7f9}
.o-btn,.bg-zent-ic-primary,#fab-compose,.zentic-cookie-accept,.zentic-cookie-save{background:var(--zentic-black)!important;background-image:none!important;color:#fff!important;border-color:var(--zentic-black)!important;box-shadow:none!important}
.o-btn:hover,.bg-zent-ic-primary:hover,#fab-compose:hover,.zentic-cookie-accept:hover,.zentic-cookie-save:hover{background:var(--zentic-black-hover)!important}
.o-btn-outline{color:var(--zentic-black)!important;border-color:#cfd9de!important;background:#fff!important}.o-btn-outline:hover{background:var(--zentic-soft)!important;border-color:#aab8c2!important}
.text-zent-ic-primary,.text-blue-600,.text-blue-700,.text-blue-800,.text-blue-900,.text-indigo-700,.text-indigo-800{color:var(--zentic-black)!important}
.bg-blue-50,.bg-indigo-50{background:var(--zentic-soft)!important}.bg-blue-600,.bg-blue-700,.bg-indigo-600{background:var(--zentic-black)!important}
.border-blue-100,.border-blue-200,.border-blue-300,.border-indigo-100,.border-indigo-200{border-color:#d8e0e5!important}
.from-blue-500,.from-blue-600,.to-indigo-500,.to-indigo-600,.via-indigo-500{--tw-gradient-from:var(--zentic-black)!important;--tw-gradient-to:var(--zentic-black)!important;--tw-gradient-stops:var(--zentic-black),var(--zentic-black)!important}.shadow-glow{box-shadow:none!important}
#main-workspace{background:var(--zentic-bg)!important}.mobile-feed-container{background:#fff}#messages-container{background:#fff!important;border-left:1px solid var(--zentic-border);border-right:1px solid var(--zentic-border);padding-top:0!important}
.z-post-card{border-radius:0!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--zentic-border)!important;margin:0!important;padding:14px 16px!important;background:#fff!important;transition:background-color .15s ease!important}.z-post-card:hover{background:#f8fafb!important}
.zentic-x-post .w-12.h-12{width:44px!important;height:44px!important}.zentic-post-score{display:none!important}.zentic-post-text{font-size:15.5px!important;line-height:1.42!important;color:#0f1419!important}
.media-image{display:block;width:100%!important;max-height:620px!important;object-fit:cover!important;border-radius:16px!important;border:1px solid #cfd9de!important;box-shadow:none!important;margin-top:10px!important}
.zentic-link-preview{border:1px solid #cfd9de!important;border-radius:16px!important;overflow:hidden!important;box-shadow:none!important}
.zentic-post-action{color:#536471!important;padding:0 7px!important;border-radius:999px!important;cursor:pointer}.zentic-post-action .zentic-action-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px}.zentic-post-action:hover{color:var(--zentic-black)!important}.zentic-post-action:hover .zentic-action-icon{background:#eff3f4!important}.zentic-action-like:hover{color:#f91880!important}.zentic-action-like:hover .zentic-action-icon{background:rgba(249,24,128,.10)!important}.zentic-action-report{margin-left:auto!important}
.zentic-single-post-card,.zentic-single-comments{border:0!important;border-bottom:1px solid var(--zentic-border)!important;border-radius:0!important;box-shadow:none!important}.zentic-single-post-card .text-lg{font-size:19px!important;line-height:1.45!important;color:#0f1419!important}
.zentic-post-context{border:1px solid var(--zentic-border);border-radius:14px;background:#fafafa;overflow:hidden}.zentic-post-context summary{cursor:pointer;padding:11px 13px;font-size:12px;font-weight:800;color:#536471}.zentic-post-context-body{padding:0 13px 13px}.zentic-tag-pill{padding:4px 9px;border:1px solid #d8e0e5;border-radius:999px;background:#fff;color:#536471;font-size:11px;font-weight:700}
#fab-compose{width:56px!important;height:56px!important;border-radius:999px!important;color:#fff!important;box-shadow:0 4px 14px rgba(15,20,25,.18)!important}#fab-compose svg,#fab-compose i{color:#fff!important}
.zentic-people-hero{background:#fff!important;background-image:none!important;color:var(--zentic-black)!important;border:1px solid var(--zentic-border)!important;box-shadow:none!important}.zentic-people-hero .text-white,.zentic-people-hero .text-white\/80{color:var(--zentic-black)!important}.zentic-people-hero button{color:var(--zentic-black)!important;background:#eff3f4!important}
.zentic-people-search-wrap{background:#fff!important}.zentic-people-search{background:#eff3f4!important;border:1px solid transparent!important;border-radius:999px!important;color:var(--zentic-black)!important}.zentic-people-search:focus{background:#fff!important;border-color:#536471!important;box-shadow:none!important}
.zentic-people-filters{margin-top:10px;padding:10px;border:1px solid var(--zentic-border);border-radius:14px;background:#fff;box-shadow:none}.zentic-filter-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.zentic-filter-row label{display:flex;flex-direction:column;gap:5px;min-width:0}.zentic-filter-row label>span{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#536471}.zentic-filter-row select,.zentic-filter-row input{width:100%;min-height:40px;border:1px solid #cfd9de;border-radius:10px;background:#fff;padding:0 9px;font-size:12px;font-weight:700;color:#0f1419;outline:none}.zentic-filter-row select:focus,.zentic-filter-row input:focus{border-color:#536471;box-shadow:0 0 0 2px rgba(83,100,113,.08)}.zentic-filter-actions{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.zentic-check{font-size:12px;font-weight:700;color:#536471;display:flex;gap:7px;align-items:center}.zentic-filter-actions button{border:0;background:transparent;color:#0f1419;font-size:12px;font-weight:800;cursor:pointer}
.zentic-people-shell{background:#fff!important}.zentic-people-list{border-top:1px solid var(--zentic-border)}.zentic-person-row{display:flex;gap:11px;padding:12px 15px;background:#fff;border-bottom:1px solid var(--zentic-border);transition:background .15s ease}.zentic-person-row:hover{background:#f7f9f9}.zentic-person-row-avatar{width:48px;height:48px;border-radius:10px;overflow:hidden;flex:0 0 48px;background:#cfd9de;display:flex;align-items:center;justify-content:center;font-weight:900;color:#0f1419}.zentic-person-row-avatar img{width:100%;height:100%;object-fit:cover}.zentic-person-row-main{flex:1;min-width:0}.zentic-person-row-top{display:flex;align-items:flex-start;gap:10px}.zentic-person-identity{min-width:0;display:flex;flex-direction:column;text-align:left;flex:1}.zentic-person-name{font-size:15px;font-weight:800;color:#0f1419;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zentic-person-handle{font-size:13px;color:#536471;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zentic-person-bio{margin-top:4px;font-size:14px;line-height:1.35;color:#0f1419;white-space:pre-wrap}.zentic-follow-btn{min-width:78px;height:34px;padding:0 15px;border:1px solid var(--zentic-black);border-radius:999px;background:var(--zentic-black);color:#fff;font-size:13px;font-weight:800}.zentic-follow-btn:hover{background:#272c30}.zentic-follow-btn.zentic-following{background:#fff;color:#0f1419;border-color:#cfd9de}.zentic-more-info-btn{margin-top:7px;border:0;background:transparent;padding:0;color:#536471;font-size:12px;font-weight:800;cursor:pointer}.zentic-more-info-btn:hover{text-decoration:underline;color:#0f1419}.zentic-person-expanded{margin-top:9px;padding:10px 0 0;border-top:1px solid var(--zentic-border);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.zentic-person-expanded span{font-size:11px;color:#536471}.zentic-person-expanded b{display:block;color:#0f1419;font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}
.zentic-directory-summary{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;color:#536471;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--zentic-border)}.zentic-directory-empty{margin:16px;padding:52px 22px;text-align:center;border:1px dashed #cfd9de;border-radius:16px;background:#fff;color:#536471}.zentic-directory-empty i{font-size:28px;color:#0f1419;margin-bottom:13px}.zentic-directory-empty h4{font-size:17px;font-weight:900;color:#0f1419}.zentic-directory-empty p{font-size:13px;font-weight:600;max-width:500px;margin:5px auto 0}.zentic-mini-spinner{width:27px;height:27px;margin:0 auto 13px;border:3px solid #e6ecf0;border-top-color:#0f1419;border-radius:50%;animation:zenticMiniSpin .7s linear infinite}@keyframes zenticMiniSpin{to{transform:rotate(360deg)}}
.zentic-feed-ad{display:none!important}body.zentic-adsterra-consent .zentic-feed-ad{display:block!important;background:#fff!important;min-height:90px}.zentic-ad-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px}.zentic-adsterra-frame{width:100%;border:0;min-height:120px;background:#fff}.ad-label{border:1px solid #cfd9de!important;color:#536471!important;background:#fff!important;border-radius:4px!important;font-size:9px!important;font-weight:800!important}.ad-header-text{color:#536471!important;font-size:11px!important;font-weight:700!important}
.zentic-cookie-icon{background:#0f1419!important;color:#fff!important}.zentic-cookie-manage,.zentic-cookie-decline{color:#0f1419!important;border-color:#cfd9de!important}.zentic-cookie-switch input:checked+span{background:#0f1419!important}.verified-badge{background:#1d9bf0!important}
@media(max-width:800px){.zentic-filter-row{grid-template-columns:1fr 1fr}.zentic-person-expanded{grid-template-columns:1fr 1fr}#messages-container{border-left:0;border-right:0}}
@media(max-width:480px){.zentic-filter-row{grid-template-columns:1fr}.zentic-filter-actions{align-items:flex-start;gap:8px;flex-direction:column}.zentic-person-row{padding:11px 12px}.zentic-person-row-avatar{width:44px;height:44px;flex-basis:44px}.zentic-follow-btn{min-width:72px;padding:0 12px}.zentic-post-action{padding:0 3px!important}}
/* ============================================================
   Zent-ic Social UI v2
   X/Twitter-inspired directory + professional responsive DMs
   ============================================================ */

:root{
  --z-social-bg:#ffffff;
  --z-social-soft:#f7f9f9;
  --z-social-border:#eff3f4;
  --z-social-text:#0f1419;
  --z-social-muted:#536471;
}

/* ---------- PEOPLE DIRECTORY ---------- */
#user-search-modal{background:rgba(15,20,25,.28)!important}
#user-search-modal>div{
  max-width:720px!important;
  background:#fff!important;
  border:1px solid var(--z-social-border)!important;
  border-radius:20px!important;
  box-shadow:0 24px 70px rgba(15,20,25,.18)!important;
}
.zentic-people-hero{
  margin:0!important;
  min-height:72px;
  padding:14px 16px!important;
  border:0!important;
  border-bottom:1px solid var(--z-social-border)!important;
  border-radius:0!important;
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  position:relative;
  z-index:5;
}
.zentic-people-hero .w-14{
  width:42px!important;height:42px!important;border-radius:999px!important;
  background:var(--z-social-text)!important;color:#fff!important;border:0!important;
  font-size:16px!important;box-shadow:none!important;
}
.zentic-people-hero h3{font-size:20px!important;line-height:1.2!important}
.zentic-people-hero p{font-size:12px!important;color:var(--z-social-muted)!important;font-weight:600!important}
.zentic-people-hero>button{width:38px!important;height:38px!important;background:var(--z-social-soft)!important}
.zentic-people-search-wrap{margin:10px 14px 8px!important}
.zentic-people-search{
  min-height:46px!important;
  border-radius:999px!important;
  background:#eff3f4!important;
  padding-left:44px!important;
  font-size:14px!important;
  font-weight:600!important;
  box-shadow:none!important;
}
.zentic-people-search:focus{border-color:#cfd9de!important;background:#fff!important}
.zentic-people-filters{
  margin:0 14px 10px!important;padding:8px!important;border-radius:14px!important;
  background:#fff!important;border:1px solid var(--z-social-border)!important;
}
.zentic-filter-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.zentic-filter-row select,.zentic-filter-row input{
  min-height:38px!important;border-radius:10px!important;font-size:11px!important;
  background:var(--z-social-soft)!important;border-color:#e1e8ed!important;
}
.zentic-filter-actions{margin-top:7px!important}
.zentic-people-shell{padding:0!important;max-width:none!important;background:#fff!important}
.zentic-directory-summary{padding:8px 16px!important;background:#fff!important}
.zentic-people-list{border-top:1px solid var(--z-social-border)!important}
.zentic-person-row{
  display:flex!important;gap:11px!important;padding:12px 16px!important;
  border-bottom:1px solid var(--z-social-border)!important;background:#fff!important;
  width:100%!important;min-width:0!important;
}
.zentic-person-row:hover{background:var(--z-social-soft)!important}
.zentic-person-row-avatar{
  width:48px!important;height:48px!important;flex:0 0 48px!important;
  border-radius:999px!important;background:#cfd9de!important;border:0!important;
}
.zentic-person-row-main{min-width:0!important}
.zentic-person-row-top{align-items:flex-start!important}
.zentic-person-name{font-size:15px!important;line-height:1.25!important}
.zentic-person-handle{font-size:13px!important}
.zentic-person-bio{
  font-size:14px!important;line-height:1.38!important;margin-top:5px!important;
  overflow-wrap:anywhere!important;
}
.zentic-follow-btn{
  flex:0 0 auto!important;min-width:76px!important;height:34px!important;padding:0 14px!important;
  font-size:13px!important;
}
.zentic-person-inline-meta{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:6px;
  color:var(--z-social-muted);font-size:11px;font-weight:600;
}
.zentic-person-inline-meta span{display:inline-flex;align-items:center;gap:5px}
.zentic-person-row-actions{display:flex;align-items:center;gap:14px;margin-top:8px}
.zentic-more-info-btn,.zentic-person-message-btn{
  border:0;background:transparent;padding:0;color:var(--z-social-muted);
  font-size:12px;font-weight:800;cursor:pointer;
}
.zentic-person-message-btn{color:var(--z-social-text)}
.zentic-person-message-btn i{margin-right:4px}
.zentic-person-expanded{
  margin-top:10px!important;padding:12px!important;border:1px solid var(--z-social-border)!important;
  border-radius:14px!important;background:var(--z-social-soft)!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#user-search-pagination{
  border-top:1px solid var(--z-social-border)!important;background:rgba(255,255,255,.97)!important;
}

/* ---------- MESSAGES HUB ---------- */
.zentic-messages-hub{
  width:min(720px,100%);margin:0 auto;min-height:100%;background:#fff;
  border-left:1px solid var(--z-social-border);border-right:1px solid var(--z-social-border);
}
.zentic-messages-hub-header{
  position:sticky;top:0;z-index:10;background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--z-social-border);padding:12px 16px;
}
.zentic-messages-title-row{display:flex;align-items:center;gap:11px}
.zentic-hub-icon-btn{
  width:38px;height:38px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background:#fff;color:var(--z-social-text);border:0;
}
.zentic-hub-icon-btn:hover{background:var(--z-social-soft)}
.zentic-messages-title-row h1{font-size:20px;font-weight:900;color:var(--z-social-text);line-height:1.15}
.zentic-messages-title-row p{font-size:12px;font-weight:600;color:var(--z-social-muted);margin-top:2px}
.zentic-new-message-btn{
  margin-left:auto;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;
  border-radius:999px;background:var(--z-social-text);color:#fff;font-size:12px;font-weight:800;
}
.zentic-messages-search{
  display:flex;align-items:center;gap:9px;margin-top:10px;background:#eff3f4;
  min-height:44px;border-radius:999px;padding:0 14px;color:var(--z-social-muted);
}
.zentic-messages-search input{
  flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--z-social-text);
  font-size:14px;font-weight:600;
}
.zentic-messages-list{background:#fff}
.messenger-person-card{
  border:0!important;border-bottom:1px solid var(--z-social-border)!important;border-radius:0!important;
  box-shadow:none!important;padding:12px 16px!important;gap:11px!important;background:#fff!important;
  transform:none!important;
}
.messenger-person-card:hover{background:var(--z-social-soft)!important;border-color:var(--z-social-border)!important}
.messenger-avatar{
  width:48px!important;height:48px!important;flex:0 0 48px!important;border-radius:999px!important;
  box-shadow:none!important;
}
.messenger-row-body{min-width:0;flex:1;text-align:left}
.messenger-row-title{display:flex;align-items:center;gap:10px}
.messenger-row-name{
  flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:15px;font-weight:900;color:var(--z-social-text)
}
.messenger-row-time{font-size:11px;font-weight:600;color:var(--z-social-muted);flex:0 0 auto}
.messenger-row-preview{
  margin-top:3px;font-size:13px;font-weight:600;color:var(--z-social-muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.messenger-row-status{
  margin-top:3px;font-size:11px;font-weight:600;color:#687684;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.messenger-row-chevron{font-size:11px;color:#aab8c2;flex:0 0 auto}
.zentic-messages-empty{text-align:center;padding:70px 24px;color:var(--z-social-muted)}
.zentic-messages-empty h2{font-size:20px;font-weight:900;color:var(--z-social-text);margin-top:14px}
.zentic-messages-empty p{font-size:13px;font-weight:600;margin:5px auto 16px;max-width:330px}
.zentic-empty-icon{
  width:58px;height:58px;margin:0 auto;border-radius:999px;background:var(--z-social-soft);
  display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--z-social-text)
}

/* ---------- LIVE CHAT ---------- */
#messages-container:has(.zentic-chat-row){
  padding:18px 18px 12px!important;background:#fff!important;
}
.zentic-chat-row{
  width:100%;display:flex;align-items:flex-end;min-width:0;
  max-width:820px;margin-left:auto;margin-right:auto;
}
.zentic-chat-row-new{margin-top:12px}
.zentic-chat-row-grouped{margin-top:3px}
.zentic-chat-row-me{justify-content:flex-end}
.zentic-chat-row-other{justify-content:flex-start}
.zentic-chat-avatar{
  width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:999px!important;
  overflow:hidden;margin-right:8px!important;border:0!important;box-shadow:none!important;
}
.zentic-chat-avatar-spacer{width:34px!important;flex:0 0 34px!important;margin-right:8px!important}
.zentic-chat-message-wrap{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;
  max-width:min(72%,620px);min-width:0;
}
.zentic-chat-message-wrap-me{align-items:flex-end}
.zentic-chat-sender{
  border:0;background:transparent;padding:0 4px 4px;color:var(--z-social-text);
  font-size:11px;font-weight:800;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.zentic-chat-sender-me{display:none}
.zentic-chat-bubble{
  min-width:46px;max-width:100%;padding:10px 14px!important;border-radius:18px!important;
  font-size:14.5px!important;line-height:1.4!important;font-weight:500!important;
  box-shadow:none!important;overflow-wrap:anywhere;
}
.chat-bubble-me{
  background:var(--z-social-text)!important;color:#fff!important;
  border:0!important;border-bottom-right-radius:5px!important;
}
.chat-bubble-other{
  background:#eff3f4!important;color:var(--z-social-text)!important;
  border:0!important;border-bottom-left-radius:5px!important;
}
.zentic-chat-message-meta{
  min-height:16px;padding:3px 4px 0;font-size:10px;font-weight:600;color:#8b98a5;
}
.zentic-chat-message-wrap-me .zentic-chat-message-meta{text-align:right}
.msg-image{border-radius:14px!important;max-width:min(360px,65vw)!important}
.zentic-audio-player{max-width:min(330px,64vw)!important}
.msg-actions{border-radius:999px!important;box-shadow:0 4px 16px rgba(15,20,25,.08)!important}
.zentic-chat-composer{
  border-top:1px solid var(--z-social-border)!important;background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:none!important;
  border-radius:0!important;position:sticky!important;bottom:0!important;z-index:60!important;
}
.zentic-chat-composer form{max-width:820px;margin:0 auto}
.zentic-chat-composer-row{gap:8px!important}
.zentic-chat-tool-btn{
  width:42px!important;height:42px!important;border:0!important;background:transparent!important;
  box-shadow:none!important;color:var(--z-social-text)!important;
}
.zentic-chat-tool-btn:hover{background:var(--z-social-soft)!important}
.zentic-chat-input-shell{
  min-height:46px;border-radius:24px!important;background:#eff3f4!important;box-shadow:none!important;
  border:1px solid transparent!important;
}
.zentic-chat-input-shell:focus-within{background:#fff!important;border-color:#cfd9de!important}
#chat-input{font-size:15px!important;padding-top:12px!important;padding-bottom:12px!important}
.zentic-chat-send{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  right:5px!important;bottom:5px!important;background:var(--z-social-text)!important;box-shadow:none!important;
}
#chat-media-staging-container{max-width:820px;margin:0 auto;border-color:var(--z-social-border)!important}

/* ---------- RESPONSIVE ---------- */
@media(max-width:700px){
  #user-search-modal{padding:0!important;align-items:stretch!important}
  #user-search-modal>div{
    width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  .zentic-people-hero{
    position:sticky!important;top:0!important;
    padding:calc(8px + env(safe-area-inset-top)) 12px 9px!important;min-height:62px!important;
  }
  .zentic-people-hero .w-14{display:none!important}
  .zentic-people-hero p{display:none!important}
  .zentic-people-search-wrap{margin:8px 10px 7px!important}
  .zentic-people-filters{
    margin:0 0 7px!important;border-left:0!important;border-right:0!important;border-radius:0!important;
    padding:7px 10px!important;overflow:hidden;
  }
  .zentic-filter-row{
    display:flex!important;overflow-x:auto!important;gap:7px!important;padding-bottom:2px!important;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .zentic-filter-row::-webkit-scrollbar{display:none}
  .zentic-filter-row label{flex:0 0 auto!important;min-width:142px!important}
  .zentic-filter-row label>span{display:none!important}
  .zentic-filter-row select,.zentic-filter-row input{
    min-height:38px!important;border-radius:999px!important;padding:0 12px!important;background:#f7f9f9!important;
  }
  .zentic-filter-actions{padding:0 3px!important}
  .zentic-person-row{padding:11px 12px!important;gap:10px!important}
  .zentic-person-row-avatar{width:44px!important;height:44px!important;flex-basis:44px!important}
  .zentic-person-name{font-size:14px!important}
  .zentic-person-handle{font-size:12px!important}
  .zentic-person-bio{font-size:13px!important;line-height:1.36!important;padding-right:2px}
  .zentic-follow-btn{min-width:68px!important;height:32px!important;padding:0 11px!important;font-size:12px!important}
  .zentic-person-inline-meta{gap:9px!important;font-size:10px!important}
  .zentic-person-expanded{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:10px!important;
  }
  #user-search-pagination{
    position:sticky!important;bottom:0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;
  }

  .zentic-messages-hub{
    width:100%!important;border-left:0!important;border-right:0!important;
  }
  .zentic-messages-hub-header{
    padding:calc(8px + env(safe-area-inset-top)) 10px 10px!important;
  }
  .zentic-new-message-btn{width:38px!important;padding:0!important;justify-content:center!important}
  .zentic-new-message-btn span{display:none!important}
  .zentic-messages-search{margin-top:8px!important;min-height:42px!important}
  .messenger-person-card{padding:11px 12px!important}
  .messenger-avatar{width:46px!important;height:46px!important;flex-basis:46px!important}

  #messages-container:has(.zentic-chat-row){
    padding:10px 8px 8px!important;
  }
  .zentic-chat-message-wrap{max-width:84%!important}
  .zentic-chat-avatar,.zentic-chat-avatar-spacer{
    width:30px!important;height:30px!important;flex-basis:30px!important;margin-right:6px!important;
  }
  .zentic-chat-bubble{
    font-size:14px!important;padding:9px 12px!important;border-radius:17px!important;
  }
  .zentic-chat-composer{
    padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;
    margin:0!important;
  }
  .zentic-chat-composer-row{gap:4px!important}
  .zentic-chat-tool-btn{width:38px!important;height:38px!important}
  .zentic-chat-input-shell{min-height:44px!important}
  #chat-input{font-size:16px!important;padding-left:13px!important;padding-right:46px!important}
  .zentic-chat-send{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  .msg-image{max-width:72vw!important}
  .zentic-audio-player{max-width:72vw!important}
}

@media(min-width:1200px){
  .zentic-messages-hub{margin-top:10px;margin-bottom:24px}
  .zentic-chat-row{max-width:760px}
  .zentic-chat-composer form{max-width:760px}
}

/* ============================================================
   Zent-ic Pro Social v3
   Profiles, Messages, Chat, Post View, Touch Stability
   ============================================================ */

:root{
  --z-x-text:#0f1419;
  --z-x-muted:#536471;
  --z-x-border:#eff3f4;
  --z-x-soft:#f7f9f9;
  --z-x-hover:#f7f9f9;
  --z-x-green:#25d366;
}

button,[role="button"],.zentic-post-action,.zentic-x-action{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
button:disabled{cursor:not-allowed}
.zentic-post-action,.zentic-x-action{user-select:none;-webkit-user-select:none}
.zentic-post-action.is-liked,.zentic-x-action.is-liked{color:#f91880!important}
.zentic-post-action.is-disliked,.zentic-x-action.is-disliked{color:#0f1419!important}

#profile-modal{
  padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important;
}
.zentic-profile-shell{
  width:min(640px,100%);
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#fff;
  color:var(--z-x-text);
  border:1px solid var(--z-x-border);
  border-radius:22px;
  box-shadow:0 24px 80px rgba(15,20,25,.18);
  text-align:left;
}
.zentic-profile-topbar{
  min-height:58px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  position:sticky;
  top:0;
  z-index:12;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(239,243,244,.9);
}
.zentic-profile-topbar strong{font-size:19px;font-weight:900;text-align:left}
.zentic-profile-circle-btn{
  width:38px;height:38px;border:0;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:var(--z-x-text);
}
.zentic-profile-circle-btn:hover{background:var(--z-x-soft)}
.zentic-profile-cover{
  height:150px;
  background:radial-gradient(circle at 18% 10%,rgba(255,255,255,.20),transparent 28%),linear-gradient(135deg,#111827 0%,#0f1419 50%,#334155 100%);
}
.zentic-profile-body{padding:0 20px 22px}
.zentic-profile-avatar-actions{
  min-height:76px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
}
.zentic-profile-avatar{
  width:112px;height:112px;margin-top:-56px;flex:0 0 112px;
  border:4px solid #fff;border-radius:999px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:#d9e0e5;color:#0f1419;font-size:34px;font-weight:900;box-shadow:none;
}
.zentic-profile-avatar img{width:100%;height:100%;object-fit:cover}
.zentic-profile-actions{
  margin-top:12px;margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;
}
.zentic-profile-follow,.zentic-profile-edit-btn{
  min-height:38px;padding:0 18px;border-radius:999px;border:1px solid var(--z-x-text);
  background:var(--z-x-text);color:#fff;font-size:13px;font-weight:900;
}
.zentic-profile-follow.following,.zentic-profile-edit-btn{
  background:#fff;color:var(--z-x-text);border-color:#cfd9de;
}
.zentic-profile-follow:hover{background:#272c30}
.zentic-profile-follow.following:hover,.zentic-profile-edit-btn:hover{background:var(--z-x-soft)}
.zentic-profile-icon-action{
  width:38px;height:38px;border:1px solid #cfd9de;border-radius:999px;background:#fff;color:var(--z-x-text);
  display:inline-flex;align-items:center;justify-content:center;font-size:14px;
}
.zentic-profile-icon-action:hover{background:var(--z-x-soft)}
.zentic-profile-icon-action.danger{color:#dc2626}
.zentic-profile-identity{margin-top:5px}
.zentic-profile-identity h3{
  margin:0;display:flex;align-items:center;gap:5px;font-size:23px;font-weight:900;line-height:1.2;color:var(--z-x-text);
}
.zentic-profile-identity p{margin:2px 0 0;color:var(--z-x-muted);font-size:14px;font-weight:500}
.zentic-profile-bio{
  margin-top:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.42;color:var(--z-x-text);
}
.zentic-profile-meta{
  margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;color:var(--z-x-muted);font-size:13px;font-weight:500;
}
.zentic-profile-meta span,.zentic-profile-meta a{display:inline-flex;align-items:center;gap:6px;color:inherit}
.zentic-profile-meta a{color:#1d9bf0;text-decoration:none}
.zentic-profile-meta a:hover{text-decoration:underline}
.zentic-profile-network{margin-top:13px;display:flex;align-items:center;gap:20px;color:var(--z-x-muted);font-size:14px}
.zentic-profile-network strong{color:var(--z-x-text);font-weight:900}
.zentic-profile-role{
  display:inline-flex;margin-top:10px;padding:4px 9px;border-radius:999px;background:var(--z-x-soft);
  color:var(--z-x-muted);font-size:10px;font-weight:800;
}
.zentic-profile-details{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.zentic-profile-details>div{padding:11px 12px;border:1px solid var(--z-x-border);border-radius:13px;background:#fff;min-width:0}
.zentic-profile-details b{
  display:block;margin-bottom:3px;color:var(--z-x-muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em
}
.zentic-profile-details span{display:block;color:var(--z-x-text);font-size:12px;font-weight:650;overflow-wrap:anywhere}
.zentic-profile-tabs{
  margin:18px -20px -22px;border-top:1px solid var(--z-x-border);display:grid;grid-template-columns:repeat(3,1fr)
}
.zentic-profile-tabs button{
  position:relative;min-height:52px;background:#fff;color:var(--z-x-muted);border:0;font-size:13px;font-weight:750
}
.zentic-profile-tabs button:hover{background:var(--z-x-soft)}
.zentic-profile-tabs button.active{color:var(--z-x-text);font-weight:900}
.zentic-profile-tabs button.active::after{
  content:'';position:absolute;left:24%;right:24%;bottom:0;height:4px;border-radius:999px;background:#0f1419
}

.zentic-messages-hub,.zentic-new-dm{
  width:min(760px,100%);min-height:100%;margin:0 auto;background:#fff;
  border-left:1px solid var(--z-x-border);border-right:1px solid var(--z-x-border)
}
.zentic-messages-hub-header,.zentic-new-dm-header{
  position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--z-x-border)
}
.zentic-messages-hub-header{padding:12px 16px}
.zentic-new-dm-header{
  min-height:64px;padding:10px 16px;display:flex;align-items:center;gap:12px
}
.zentic-new-dm-header h1,.zentic-messages-title-row h1{
  margin:0;font-size:20px;line-height:1.15;font-weight:900;color:var(--z-x-text)
}
.zentic-new-dm-header p,.zentic-messages-title-row p{
  margin:2px 0 0;font-size:12px;color:var(--z-x-muted);font-weight:600
}
.zentic-new-message-plus{
  margin-left:auto;width:40px;height:40px;border:0;border-radius:999px;background:var(--z-x-text);color:#fff;
  display:flex;align-items:center;justify-content:center
}
.zentic-new-message-plus:hover{background:#272c30}
.zentic-messages-search{
  min-height:44px;margin-top:10px;padding:0 14px;border-radius:999px;
  display:flex;align-items:center;gap:9px;background:#eff3f4;color:var(--z-x-muted)
}
.zentic-messages-search input{
  flex:1;min-width:0;height:42px;border:0;outline:0;background:transparent;color:var(--z-x-text);font-size:14px
}
.zentic-new-dm-search{margin:12px 16px;position:sticky;top:65px;z-index:20}
.zentic-messages-list,.zentic-new-dm-results{background:#fff}
.messenger-person-card,.zentic-new-dm-person{
  width:100%;min-height:74px;padding:11px 16px!important;display:flex;align-items:center;gap:11px;
  border:0!important;border-bottom:1px solid var(--z-x-border)!important;border-radius:0!important;
  background:#fff!important;box-shadow:none!important;text-align:left
}
.messenger-person-card:hover,.zentic-new-dm-person:hover{background:var(--z-x-soft)!important;transform:none!important}
.messenger-avatar,.zentic-new-dm-avatar{
  width:50px!important;height:50px!important;flex:0 0 50px!important;border-radius:999px!important;overflow:hidden;
  background:#d9e0e5!important;display:flex;align-items:center;justify-content:center;color:var(--z-x-text);font-size:17px;font-weight:900
}
.messenger-avatar img,.zentic-new-dm-avatar img{width:100%;height:100%;object-fit:cover}
.messenger-row-body,.zentic-new-dm-copy{min-width:0;flex:1}
.messenger-row-title{display:flex;align-items:baseline;gap:10px}
.messenger-row-name,.zentic-new-dm-copy strong{
  display:block;color:var(--z-x-text);font-size:15px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.messenger-row-time{margin-left:auto;color:var(--z-x-muted);font-size:11px;white-space:nowrap}
.messenger-row-preview{
  margin:3px 0 0;color:var(--z-x-muted);font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.zentic-new-dm-copy small{display:block;margin-top:1px;color:var(--z-x-muted);font-size:12px}
.zentic-new-dm-copy>span{
  display:block;margin-top:3px;color:#334155;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.zentic-new-dm-chat{
  width:36px;height:36px;flex:0 0 36px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background:var(--z-x-text);color:#fff
}

.zentic-dm-header-name{
  max-width:220px;border:0;background:transparent;padding:0;color:var(--z-x-text);font:inherit;font-weight:900;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.zentic-dm-header-status{color:var(--z-x-muted);font-weight:600}
.zentic-dm-header-call{
  display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-left:8px;
  border:1px solid #cfd9de;border-radius:999px;background:#fff;color:var(--z-x-text)
}
.zentic-dm-header-call:hover{background:var(--z-x-soft)}
#messages-container:has(.zentic-chat-row){background:#f5f7f8!important;padding:16px 16px 10px!important}
.zentic-chat-row{max-width:780px!important}
.zentic-chat-message-wrap{max-width:min(74%,610px)!important}
.zentic-chat-bubble{
  padding:8px 11px!important;border-radius:10px!important;font-size:14px!important;line-height:1.38!important
}
.chat-bubble-me{
  background:#d9fdd3!important;color:#111b21!important;border-radius:10px 3px 10px 10px!important
}
.chat-bubble-other{
  background:#fff!important;color:#111b21!important;border-radius:3px 10px 10px 10px!important;
  box-shadow:0 1px 1px rgba(11,20,26,.07)!important
}
.zentic-chat-sender{color:#667781!important}
.zentic-chat-message-meta{color:#8696a0!important;padding-top:2px!important;font-size:9px!important}
.zentic-chat-composer{background:#f0f2f5!important;border-top:1px solid #e4e6e9!important}
.zentic-chat-input-shell{background:#fff!important;border:0!important;box-shadow:none!important}
.zentic-chat-send{background:var(--z-x-text)!important;color:#fff!important}

#single-post-modal>div{
  max-width:660px!important;border-radius:18px!important;box-shadow:0 24px 80px rgba(15,20,25,.18)!important
}
#single-post-content{padding:0!important;background:#fff!important}
.zentic-x-single-post{padding:18px 18px 0;background:#fff}
.zentic-x-single-author{display:flex;align-items:center;gap:10px}
.zentic-x-single-avatar{
  width:44px;height:44px;flex:0 0 44px;padding:0;border:0;border-radius:999px;overflow:hidden;background:#d9e0e5
}
.zentic-x-single-avatar>*{width:44px!important;height:44px!important;border-radius:999px!important;border:0!important}
.zentic-x-single-author-copy{
  min-width:0;display:flex;flex-direction:column;align-items:flex-start;border:0;background:transparent;padding:0;text-align:left
}
.zentic-x-single-author-copy strong{
  display:flex;align-items:center;gap:4px;max-width:100%;color:var(--z-x-text);font-size:15px;font-weight:900
}
.zentic-x-single-author-copy span{color:var(--z-x-muted);font-size:13px}
.zentic-x-single-text{
  margin-top:14px;color:var(--z-x-text);font-size:19px;line-height:1.46;white-space:pre-wrap;overflow-wrap:anywhere
}
.zentic-x-single-media{margin-top:12px}
.zentic-x-single-media .media-image{
  width:100%!important;max-height:680px!important;margin:0!important;border:1px solid #cfd9de!important;
  border-radius:16px!important;object-fit:contain!important;background:#fff
}
.zentic-x-single-embed{margin-top:12px}
.zentic-x-single-meta{
  margin-top:14px;padding-bottom:13px;display:flex;align-items:center;flex-wrap:wrap;gap:4px;
  border-bottom:1px solid var(--z-x-border);color:var(--z-x-muted);font-size:12px
}
.zentic-x-single-meta strong{color:#334155}
.zentic-x-single-actions{
  min-height:52px;border-bottom:1px solid var(--z-x-border);
  display:grid;grid-template-columns:repeat(5,1fr);align-items:center
}
.zentic-x-action{
  min-width:0;min-height:48px;border:0;background:transparent;color:var(--z-x-muted);
  display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px
}
button.zentic-x-action:hover{color:var(--z-x-text)}
.zentic-x-action-icon{
  width:30px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center
}
button.zentic-x-action:hover .zentic-x-action-icon{background:var(--z-x-soft)}
.zentic-x-action.is-liked{color:#f91880!important}
.zentic-x-action.is-liked:hover .zentic-x-action-icon{background:rgba(249,24,128,.10)}
.zentic-x-action-views{cursor:default}
.zentic-post-context{
  margin-top:12px!important;border:0!important;border-bottom:1px solid var(--z-x-border)!important;border-radius:0!important;background:#fff!important
}
.zentic-post-context summary{padding:10px 0!important}
.zentic-post-context-body{padding:0 0 12px!important}
.zentic-x-replies{background:#fff}
.zentic-x-replies-heading{
  min-height:48px;padding:0 18px;border-bottom:1px solid var(--z-x-border);display:flex;align-items:center;gap:7px
}
.zentic-x-replies-heading h3{margin:0;font-size:15px;font-weight:900}
.zentic-x-replies-heading span{color:var(--z-x-muted);font-size:12px}
.zentic-x-reply-composer{
  padding:12px 18px;display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--z-x-border)
}
.zentic-x-reply-avatar{
  width:38px;height:38px;flex:0 0 38px;border-radius:999px;overflow:hidden;background:#d9e0e5;
  display:flex;align-items:center;justify-content:center;font-weight:900
}
.zentic-x-reply-avatar img{width:100%;height:100%;object-fit:cover}
.zentic-x-reply-input{min-width:0;flex:1}
.zentic-x-reply-input textarea{
  width:100%;min-height:64px;resize:vertical;border:0;outline:0;padding:7px 0;color:var(--z-x-text);background:#fff;font-size:15px
}
.zentic-x-reply-input .o-btn{min-height:34px!important;padding:0 15px!important;float:right}
.zentic-x-reply{
  padding:12px 18px;display:flex;gap:10px;border-bottom:1px solid var(--z-x-border)
}
.zentic-x-reply-avatar{border:0}
button.zentic-x-reply-avatar{padding:0}
.zentic-x-reply-body{min-width:0;flex:1}
.zentic-x-reply-name{
  border:0;background:transparent;padding:0;color:var(--z-x-text);font-size:13px;font-weight:900
}
.zentic-x-reply-body p{margin:3px 0 0;color:#334155;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.zentic-x-no-replies,.zentic-x-signin-reply{padding:18px;color:var(--z-x-muted);font-size:13px}

#settings-modal-list #edit-profile-name,
#settings-modal-list #edit-profile-bio,
#settings-modal-list [id^="edit-profile-"]{
  border-color:#d8e0e5!important;background:#fff!important;box-shadow:none!important
}
#settings-modal-list [id^="edit-profile-"]:focus{
  border-color:#0f1419!important;box-shadow:0 0 0 2px rgba(15,20,25,.06)!important
}

@media(max-width:700px){
  #profile-modal{padding:0!important;align-items:flex-end!important}
  .zentic-profile-shell{
    width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    border:0!important;border-radius:0!important;box-shadow:none!important
  }
  .zentic-profile-topbar{padding-top:calc(8px + env(safe-area-inset-top))}
  .zentic-profile-cover{height:118px}
  .zentic-profile-body{padding:0 14px 18px}
  .zentic-profile-avatar{width:92px;height:92px;flex-basis:92px;margin-top:-46px;font-size:28px}
  .zentic-profile-actions{margin-top:9px;gap:6px}
  .zentic-profile-follow,.zentic-profile-edit-btn{min-height:34px;padding:0 14px;font-size:12px}
  .zentic-profile-icon-action{width:34px;height:34px}
  .zentic-profile-identity h3{font-size:20px}
  .zentic-profile-bio{font-size:14px}
  .zentic-profile-meta{font-size:12px;gap:7px 11px}
  .zentic-profile-details{grid-template-columns:1fr}
  .zentic-profile-tabs{margin-left:-14px;margin-right:-14px}

  .zentic-messages-hub,.zentic-new-dm{width:100%!important;border:0!important}
  .zentic-messages-hub-header{padding:calc(8px + env(safe-area-inset-top)) 10px 9px!important}
  .zentic-new-dm-header{padding:calc(7px + env(safe-area-inset-top)) 10px 7px!important}
  .zentic-new-dm-search{margin:9px 10px;top:calc(58px + env(safe-area-inset-top))}
  .messenger-person-card,.zentic-new-dm-person{min-height:70px;padding:10px 12px!important}
  .messenger-avatar,.zentic-new-dm-avatar{width:46px!important;height:46px!important;flex-basis:46px!important}

  #messages-container:has(.zentic-chat-row){padding:9px 7px 7px!important}
  .zentic-chat-message-wrap{max-width:86%!important}
  .zentic-chat-bubble{max-width:100%;font-size:14px!important}
  .zentic-chat-composer{padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important}
  .zentic-chat-tool-btn{width:36px!important;height:36px!important}
  #chat-input{font-size:16px!important}

  #single-post-modal{padding:0!important;align-items:stretch!important}
  #single-post-modal>div{
    width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    border:0!important;border-radius:0!important;box-shadow:none!important
  }
  #single-post-modal>div>div:first-child{padding:calc(8px + env(safe-area-inset-top)) 10px 8px!important}
  .zentic-single-post-legal{display:none!important}
  .zentic-x-single-post{padding:14px 12px 0}
  .zentic-x-single-text{font-size:17px;line-height:1.45}
  .zentic-x-single-actions{grid-template-columns:repeat(5,1fr)}
  .zentic-x-action{gap:3px;font-size:11px}
  .zentic-x-reply-composer,.zentic-x-reply{padding-left:12px;padding-right:12px}
  .zentic-x-replies-heading{padding-left:12px;padding-right:12px}
}

@media(min-width:1100px){
  #single-post-modal>div{max-width:680px!important}
  .zentic-profile-shell{width:620px}
}

/* Final action sizing overrides against legacy profile modal rules */
#profile-modal-actions{
  padding-bottom:0!important;
  width:auto!important;
  flex:0 1 auto!important;
}
#profile-modal-actions button{
  width:auto!important;
  flex:0 0 auto!important;
}
#profile-modal-actions .zentic-profile-follow,
#profile-modal-actions .zentic-profile-edit-btn{
  min-width:88px!important;
}
#profile-modal-actions .zentic-profile-icon-action{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
}
.messenger-person-card,
.zentic-new-dm-person{
  box-sizing:border-box!important;
  height:auto!important;
  position:relative;
}
@media(max-width:700px){
  #profile-modal-actions{
    padding-bottom:0!important;
    width:auto!important;
  }
  #profile-modal-actions button{
    min-height:34px!important;
    font-size:12px!important;
  }
  #profile-modal-actions .zentic-profile-follow,
  #profile-modal-actions .zentic-profile-edit-btn{
    min-width:82px!important;
    padding:0 13px!important;
  }
  #profile-modal-actions .zentic-profile-icon-action{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
  }
}

/* Keep profile actions in one X-style row beside the avatar */
.zentic-profile-avatar-actions{position:relative}
.zentic-profile-actions{
  position:absolute!important;
  right:0;
  top:12px;
  margin:0!important;
  display:flex!important;
  flex-wrap:nowrap!important;
}
@media(max-width:700px){
  .zentic-profile-actions{top:9px}
}
/* ============================================================
   Zent-ic Pro Social v4
   Profile posts, unlimited people search, full-screen posts
   ============================================================ */

/* ---------- PROFILE: follower count + top 10 posts ---------- */
.zentic-profile-shell{
  width:min(760px,calc(100vw - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
}
.zentic-profile-network{
  margin-top:14px!important;
}
.zentic-profile-network span{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:4px!important;
}
.zentic-profile-post-section{
  margin:18px -20px -22px;
  border-top:1px solid var(--z-x-border);
  background:#fff;
}
.zentic-profile-post-heading-row{
  min-height:50px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--z-x-border);
}
.zentic-profile-post-heading-row h4{
  margin:0;
  color:var(--z-x-text);
  font-size:15px;
  font-weight:900;
}
.zentic-profile-post-heading-row span{
  color:var(--z-x-muted);
  font-size:11px;
  font-weight:700;
}
.zentic-profile-post-list{
  display:flex;
  flex-direction:column;
}
.zentic-profile-post-card{
  display:block;
  width:100%;
  padding:14px 20px;
  border:0;
  border-bottom:1px solid var(--z-x-border);
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.zentic-profile-post-card:hover{background:var(--z-x-soft)}
.zentic-profile-post-card:last-child{border-bottom:0}
.zentic-profile-post-topline{
  min-height:20px;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.zentic-profile-post-topline time{
  margin-left:auto;
  color:var(--z-x-muted);
  font-size:11px;
  font-weight:600;
}
.zentic-profile-post-community{
  color:var(--z-x-muted);
  font-size:11px;
  font-weight:800;
}
.zentic-profile-post-card p{
  margin:0;
  color:var(--z-x-text);
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.zentic-profile-post-image{
  display:block;
  width:100%;
  max-height:320px;
  margin-top:10px;
  border:1px solid #cfd9de;
  border-radius:14px;
  object-fit:cover;
  background:#f7f9f9;
}
.zentic-profile-post-empty{
  min-height:170px;
  padding:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--z-x-muted);
}
.zentic-profile-post-empty i{font-size:25px;margin-bottom:10px;color:#8899a6}
.zentic-profile-post-empty strong{color:var(--z-x-text);font-size:15px}
.zentic-profile-post-empty span{margin-top:4px;font-size:12px}

/* Old profile tabs are intentionally removed. */
.zentic-profile-tabs{display:none!important}

/* ---------- POST VIEW: true full-screen page on desktop and mobile ---------- */
#single-post-modal{
  padding:0!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  background:#fff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#single-post-modal>div{
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  max-height:100dvh!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
#single-post-modal>div>div:first-child{
  width:100%;
  max-width:760px;
  min-height:60px;
  margin:0 auto;
  padding:8px 12px!important;
  position:relative;
  z-index:5;
  border-left:1px solid var(--z-x-border);
  border-right:1px solid var(--z-x-border);
}
#single-post-content{
  width:100%!important;
  max-width:760px!important;
  margin:0 auto!important;
  padding:0!important;
  background:#fff!important;
  border-left:1px solid var(--z-x-border);
  border-right:1px solid var(--z-x-border);
}
.zentic-x-single-post{padding:18px 18px 0!important}
.zentic-x-single-meta{
  gap:5px!important;
  color:var(--z-x-muted)!important;
}
.zentic-x-single-actions{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.zentic-x-action-views{display:none!important}

/* ---------- SETTINGS: stable scrolling and responsive sizing ---------- */
#settings-modal{
  padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important;
}
#settings-modal>div{
  width:min(620px,100%)!important;
  max-width:620px!important;
  max-height:calc(100dvh - 24px)!important;
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:0 24px 80px rgba(15,20,25,.18)!important;
}
#settings-modal>div>div:first-child{
  min-height:62px;
  padding:10px 16px!important;
  position:sticky;
  top:0;
  z-index:15;
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid var(--z-x-border);
}
#settings-modal-list{
  padding:14px!important;
  background:#fff!important;
  overscroll-behavior:contain;
}
#delete-account-section{
  border-radius:0!important;
}

/* ---------- PEOPLE DIRECTORY: large result sets remain usable ---------- */
.zentic-directory-summary{
  position:sticky;
  top:0;
  z-index:3;
  background:rgba(255,255,255,.97)!important;
}
.zentic-people-list{
  contain:layout style;
}

/* ---------- MOBILE ---------- */
@media(max-width:700px){
  #profile-modal{
    padding:0!important;
    align-items:stretch!important;
  }
  .zentic-profile-shell{
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    border:0!important;
  }
  .zentic-profile-post-section{
    margin-left:-14px!important;
    margin-right:-14px!important;
    margin-bottom:-18px!important;
  }
  .zentic-profile-post-heading-row{padding:0 14px!important}
  .zentic-profile-post-card{padding:13px 14px!important}
  .zentic-profile-post-image{max-height:54dvh!important}

  #single-post-modal>div>div:first-child{
    max-width:none!important;
    padding:calc(7px + env(safe-area-inset-top)) 8px 7px!important;
    border-left:0!important;
    border-right:0!important;
  }
  #single-post-content{
    max-width:none!important;
    border-left:0!important;
    border-right:0!important;
  }
  .zentic-x-single-post{padding:14px 12px 0!important}
  .zentic-x-single-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .zentic-x-single-text{font-size:17px!important;line-height:1.45!important}

  #settings-modal{
    padding:0!important;
    align-items:stretch!important;
  }
  #settings-modal>div{
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  #settings-modal>div>div:first-child{
    min-height:calc(58px + env(safe-area-inset-top));
    padding:calc(8px + env(safe-area-inset-top)) 12px 8px!important;
  }
  #settings-modal-list{
    padding:10px!important;
    padding-bottom:calc(16px + env(safe-area-inset-bottom))!important;
  }
}

/* ---------- DESKTOP ---------- */
@media(min-width:1100px){
  .zentic-profile-shell{width:720px!important}
  #single-post-modal>div{max-width:none!important}
  #single-post-content{max-width:760px!important}
}
/* ============================================================
   Zent-ic Pro Social v5
   Instant startup shell + true full-screen profile pages
   ============================================================ */

#zentic-boot-screen{display:none!important}
body.zentic-booting #main-workspace,
body.zentic-booting nav,
body.zentic-booting aside{visibility:visible!important}

.zentic-initial-feed-skeleton{
  width:100%;
  max-width:100%;
  margin:0;
  background:#fff;
}
.zentic-start-card{
  min-height:118px;
  display:flex;
  gap:12px;
  padding:16px;
  border-bottom:1px solid #eff3f4;
  background:#fff;
}
.zentic-start-avatar{
  width:44px;height:44px;flex:0 0 44px;border-radius:999px;
  background:#eef1f4;overflow:hidden;
}
.zentic-start-lines{flex:1;min-width:0;padding-top:3px}
.zentic-start-lines span,
.zentic-start-nav-skeleton span{
  display:block;height:11px;margin-bottom:11px;border-radius:999px;
  background:linear-gradient(90deg,#eef1f4 20%,#f8fafb 50%,#eef1f4 80%);
  background-size:220% 100%;
  animation:zenticSkeletonMove 1.1s linear infinite;
}
.zentic-start-lines span:nth-child(1){width:34%}
.zentic-start-lines span:nth-child(2){width:88%}
.zentic-start-lines span:nth-child(3){width:64%}
.zentic-start-nav-skeleton{padding:8px 4px 14px}
.zentic-start-nav-skeleton span{height:38px;margin-bottom:8px}
.zentic-start-nav-skeleton span:nth-child(1){width:82%}
.zentic-start-nav-skeleton span:nth-child(2){width:68%}
.zentic-start-nav-skeleton span:nth-child(3){width:76%}
@keyframes zenticSkeletonMove{
  0%{background-position:100% 0}
  100%{background-position:-120% 0}
}
@media(prefers-reduced-motion:reduce){
  .zentic-start-lines span,.zentic-start-nav-skeleton span{animation:none}
}

/* Full-screen profile page */
#profile-modal{
  padding:0!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  background:#f5f7f9!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#profile-modal .zentic-profile-shell{
  width:100vw!important;
  max-width:100vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#f5f7f9!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
#profile-modal .zentic-profile-topbar,
#profile-modal .zentic-profile-cover,
#profile-modal .zentic-profile-body{
  width:min(820px,100%)!important;
  max-width:820px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
#profile-modal .zentic-profile-topbar{
  min-height:62px!important;
  border-left:1px solid #eff3f4;
  border-right:1px solid #eff3f4;
  background:rgba(255,255,255,.97)!important;
}
#profile-modal .zentic-profile-cover{
  height:220px!important;
  border-left:1px solid #eff3f4;
  border-right:1px solid #eff3f4;
}
#profile-modal .zentic-profile-body{
  min-height:calc(100dvh - 282px);
  padding:0 24px 40px!important;
  background:#fff!important;
  border-left:1px solid #eff3f4;
  border-right:1px solid #eff3f4;
}
#profile-modal .zentic-profile-avatar{
  width:128px!important;height:128px!important;flex-basis:128px!important;
  margin-top:-64px!important;
}
#profile-modal .zentic-profile-identity h3{font-size:25px!important}
#profile-modal .zentic-profile-post-section{
  margin-left:-24px!important;
  margin-right:-24px!important;
  margin-bottom:-40px!important;
}
#profile-modal .zentic-profile-post-card{padding:16px 24px!important}

@media(max-width:700px){
  #profile-modal{background:#fff!important}
  #profile-modal .zentic-profile-shell{background:#fff!important}
  #profile-modal .zentic-profile-topbar,
  #profile-modal .zentic-profile-cover,
  #profile-modal .zentic-profile-body{
    width:100%!important;
    max-width:none!important;
    border-left:0!important;
    border-right:0!important;
  }
  #profile-modal .zentic-profile-topbar{
    min-height:calc(56px + env(safe-area-inset-top))!important;
    padding:calc(7px + env(safe-area-inset-top)) 10px 7px!important;
  }
  #profile-modal .zentic-profile-cover{height:132px!important}
  #profile-modal .zentic-profile-body{
    min-height:calc(100dvh - 188px);
    padding:0 14px calc(24px + env(safe-area-inset-bottom))!important;
  }
  #profile-modal .zentic-profile-avatar{
    width:96px!important;height:96px!important;flex-basis:96px!important;
    margin-top:-48px!important;
  }
  #profile-modal .zentic-profile-actions{margin-top:9px!important;gap:6px!important}
  #profile-modal .zentic-profile-follow,
  #profile-modal .zentic-profile-edit-btn{
    min-height:36px!important;padding:0 14px!important;font-size:12px!important;
  }
  #profile-modal .zentic-profile-icon-action{width:36px!important;height:36px!important}
  #profile-modal .zentic-profile-identity h3{font-size:22px!important}
  #profile-modal .zentic-profile-details{grid-template-columns:1fr!important}
  #profile-modal .zentic-profile-post-section{
    margin-left:-14px!important;
    margin-right:-14px!important;
    margin-bottom:calc(-24px - env(safe-area-inset-bottom))!important;
  }
  #profile-modal .zentic-profile-post-card{padding:14px!important}
}
