/*
Theme Name: ChatBook
Author: ChatBook Studio
Description: A modern social-network WordPress theme with responsive desktop and mobile layouts, presentation layer for the first-party ChatBook Core social-network plugin, with responsive desktop/mobile navigation, profiles, feeds, messaging, groups, stories, reels, marketplace and account views.
Version: 18.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatbook
Tags: blog, community, custom-logo, custom-colors, one-column, two-columns, three-columns, responsive-layout, threaded-comments, translation-ready
*/

:root{
  --cb-primary:#0866ff;
  --cb-primary-dark:#064bc4;
  --cb-accent:#22c55e;
  --cb-bg:#f0f2f5;
  --cb-card:#ffffff;
  --cb-border:#dce2ea;
  --cb-text:#111827;
  --cb-muted:#667085;
  --cb-soft:#e7f0ff;
  --cb-shadow:0 10px 30px rgba(16,24,40,.08);
  --cb-radius:16px;
  --cb-topbar:64px;
  --cb-left:292px;
  --cb-right:320px;
  --cb-content:680px;
  --cb-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--cb-text);
  background:var(--cb-bg);
  font-family:var(--cb-font);
  font-size:15px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--cb-primary)}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}

/* WordPress alignment helpers */
.alignwide,.alignfull{max-width:100%}.wp-caption{max-width:100%}.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute!important;height:1px;width:1px;overflow:hidden}.sticky,.gallery-caption,.bypostauthor{}

.cb-topbar{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  height:var(--cb-topbar);
  display:grid;grid-template-columns:var(--cb-left) minmax(280px,1fr) var(--cb-right);
  gap:18px;align-items:center;
  padding:0 18px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(220,226,234,.9);
}
.admin-bar .cb-topbar{top:32px}
.cb-brand{display:flex;align-items:center;gap:10px;min-width:0}
.cb-brand svg{width:42px;height:42px;flex:0 0 42px}.cb-brand-word{font-weight:900;font-size:25px;letter-spacing:-.04em}.cb-brand-word span:first-child{color:#102a56}.cb-brand-word span:last-child{color:var(--cb-primary)}
.cb-search{position:relative;max-width:390px;width:100%}
.cb-search input{width:100%;border:0;background:#f0f2f5;border-radius:999px;height:42px;padding:0 18px 0 44px;color:#111827;outline:none}
.cb-search:before{content:"⌕";position:absolute;left:17px;top:50%;transform:translateY(-52%);color:#697386;font-size:20px;font-weight:700}
.cb-topnav{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.cb-navicon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#526070;position:relative;transition:.2s;background:transparent}
.cb-navicon:hover,.cb-navicon.active{background:var(--cb-soft);color:var(--cb-primary)}
.cb-navicon svg{width:23px;height:23px;display:block;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.cb-navicon .badge{position:absolute;top:5px;right:5px;background:#ef4444;color:#fff;font-weight:800;font-size:10px;min-width:17px;height:17px;border-radius:20px;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.cb-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.cb-circle{width:42px;height:42px;border-radius:999px;background:#eef2f7;display:flex;align-items:center;justify-content:center;color:#344054;position:relative}.cb-circle:hover{background:var(--cb-soft);color:var(--cb-primary)}.cb-circle svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2.2}.cb-avatar{width:42px;height:42px;border-radius:999px;background:linear-gradient(135deg,#0866ff,#22c55e);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;box-shadow:inset 0 0 0 3px #fff}

.cb-shell{min-height:100vh;padding-top:var(--cb-topbar);display:grid;grid-template-columns:var(--cb-left) minmax(0,1fr) var(--cb-right);gap:18px;max-width:1440px;margin:0 auto}
.cb-left-rail,.cb-right-rail{position:sticky;top:calc(var(--cb-topbar) + 14px);height:calc(100vh - var(--cb-topbar) - 20px);overflow:auto;padding:14px 10px 24px;scrollbar-width:thin}
.admin-bar .cb-left-rail,.admin-bar .cb-right-rail{top:calc(var(--cb-topbar) + 46px)}
.cb-left-rail{padding-left:18px}.cb-right-rail{padding-right:18px}
.cb-main{min-width:0;padding:16px 0 34px;display:flex;justify-content:center}
.cb-main-inner{width:100%;max-width:var(--cb-content)}
.cb-main-inner.cb-wide{max-width:980px}
.cb-main-inner.cb-full{max-width:1100px}

.cb-side-section{background:transparent;margin-bottom:14px}.cb-side-title{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#7b8794;font-weight:800;margin:16px 12px 8px}.cb-side-link{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;color:#344054;font-weight:700;transition:.15s}.cb-side-link:hover,.cb-side-link.active{background:#fff;color:var(--cb-primary);box-shadow:0 3px 14px rgba(16,24,40,.04)}.cb-side-link .ico{width:35px;height:35px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--cb-primary);box-shadow:0 3px 12px rgba(16,24,40,.05)}.cb-side-link.active .ico{background:var(--cb-primary);color:#fff}.cb-side-link svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.1}.cb-side-count{margin-left:auto;background:#f97316;color:#fff;border-radius:999px;font-size:11px;font-weight:900;padding:2px 7px}.cb-mini-profile{display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(16,24,40,.05);margin-bottom:10px}.cb-mini-profile .cb-avatar{width:48px;height:48px}.cb-mini-profile strong{display:block}.cb-mini-profile span{display:block;color:var(--cb-muted);font-size:13px}

.cb-card{background:var(--cb-card);border:1px solid rgba(220,226,234,.8);border-radius:var(--cb-radius);box-shadow:0 1px 2px rgba(16,24,40,.03);overflow:hidden;margin-bottom:14px}.cb-card-pad{padding:16px}.cb-card-title{font-size:20px;font-weight:900;letter-spacing:-.03em;margin:0 0 10px}.cb-card-subtitle{color:var(--cb-muted);font-size:14px;margin:0 0 14px}
.cb-ad-slot{border:1px dashed #bfd3f6;background:#f7fbff;color:#45617f;border-radius:14px;padding:18px;text-align:center;font-weight:700;margin:14px 0}.cb-muted{color:var(--cb-muted)}

.cb-stories-wrap{overflow:hidden}.cb-stories{display:flex;gap:10px;overflow:auto;padding:12px;scroll-snap-type:x mandatory;scrollbar-width:none}.cb-stories::-webkit-scrollbar{display:none}.cb-story{min-width:116px;height:190px;border-radius:16px;overflow:hidden;position:relative;background:linear-gradient(135deg,#0866ff,#76b7ff);scroll-snap-align:start;color:#fff;box-shadow:0 10px 22px rgba(8,102,255,.12)}.cb-story:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.05),rgba(0,0,0,.55))}.cb-story .cb-avatar{position:absolute;z-index:2;top:10px;left:10px;width:34px;height:34px;border:3px solid var(--cb-primary);font-size:12px}.cb-story strong{position:absolute;z-index:2;bottom:12px;left:10px;right:8px;color:#fff;font-size:13px;line-height:1.2}.cb-story-add{background:#fff;color:var(--cb-text);box-shadow:none;border:1px solid var(--cb-border)}.cb-story-add:after{display:none}.cb-story-add .plus{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:999px;background:var(--cb-primary);color:#fff;font-size:28px;display:flex;align-items:center;justify-content:center;border:4px solid #fff}.cb-story-add strong{color:var(--cb-text);text-align:center;bottom:18px}

.cb-composer-top{display:flex;gap:10px;align-items:center}.cb-composer-input{height:44px;border:0;background:#f0f2f5;border-radius:999px;padding:0 18px;flex:1;color:#667085;text-align:left}.cb-composer-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid var(--cb-border);margin-top:12px;padding-top:10px}.cb-composer-actions a{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:10px;font-weight:800;color:#475467}.cb-composer-actions a:hover{background:#f6f7f9}.cb-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.cb-dot.red{background:#ef4444}.cb-dot.green{background:#22c55e}.cb-dot.yellow{background:#f59e0b}.cb-dot.blue{background:#0866ff}

.cb-post-head{display:flex;gap:10px;align-items:center;padding:14px 16px 8px}.cb-post-author{font-weight:900}.cb-post-time{font-size:13px;color:var(--cb-muted)}.cb-post-more{margin-left:auto;color:#667085;font-size:22px}.cb-post-body{padding:0 16px 12px}.cb-post-body p{margin:8px 0}.cb-post-media{height:330px;margin:0;background:linear-gradient(135deg,#c7d2fe,#a7f3d0);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:34px;text-shadow:0 2px 20px rgba(0,0,0,.25)}.cb-post-media.small{height:230px}.cb-post-stats{display:flex;justify-content:space-between;gap:10px;padding:10px 16px;color:var(--cb-muted);font-size:14px}.cb-reactions{display:flex;align-items:center}.cb-react-bubble{width:22px;height:22px;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;border:2px solid #fff;margin-left:-5px}.cb-react-bubble:first-child{margin-left:0;background:#0866ff}.cb-react-bubble:nth-child(2){background:#ef4444}.cb-react-bubble:nth-child(3){background:#f59e0b}.cb-post-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border-top:1px solid var(--cb-border);padding:4px 8px 8px}.cb-post-actions a{display:flex;align-items:center;justify-content:center;gap:8px;color:#536070;font-weight:800;padding:10px;border-radius:10px}.cb-post-actions a:hover{background:#f3f4f6;color:var(--cb-primary)}

.cb-right-card{background:#fff;border-radius:16px;border:1px solid rgba(220,226,234,.85);padding:14px;margin-bottom:14px}.cb-right-card h3{font-size:17px;margin:0 0 12px;letter-spacing:-.02em}.cb-request,.cb-contact,.cb-trend{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #f0f2f5}.cb-request:first-of-type,.cb-contact:first-of-type,.cb-trend:first-of-type{border-top:0}.cb-contact .status{width:10px;height:10px;border-radius:999px;background:#22c55e;margin-left:auto;border:2px solid #fff;box-shadow:0 0 0 1px #d1fadf}.cb-btn{border:0;border-radius:10px;padding:9px 13px;background:var(--cb-primary);color:#fff;font-weight:900;display:inline-flex;align-items:center;gap:8px;justify-content:center;cursor:pointer}.cb-btn:hover{background:var(--cb-primary-dark);color:#fff}.cb-btn.secondary{background:#eef2f7;color:#344054}.cb-btn.success{background:#22c55e}.cb-btn.dark{background:#252f3f}.cb-button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

.cb-profile-cover{height:300px;border-radius:0 0 16px 16px;background:linear-gradient(135deg,#dbeafe,#fecdd3);position:relative;overflow:hidden}.cb-profile-cover:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.55),transparent 26%),radial-gradient(circle at 80% 30%,rgba(8,102,255,.15),transparent 30%)}.cb-profile-header{background:#fff;border-radius:0 0 18px 18px;margin-bottom:14px;border:1px solid rgba(220,226,234,.8);border-top:0}.cb-profile-info{display:flex;align-items:flex-end;gap:18px;padding:0 24px 18px;margin-top:-68px;position:relative;z-index:2}.cb-profile-avatar{width:150px;height:150px;border-radius:999px;background:linear-gradient(135deg,#0866ff,#22c55e);border:5px solid #fff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:44px;font-weight:900;box-shadow:var(--cb-shadow)}.cb-profile-name{flex:1;min-width:0}.cb-profile-name h1{font-size:32px;line-height:1.05;margin:0 0 6px;letter-spacing:-.05em}.cb-profile-name p{margin:0;color:#667085}.cb-profile-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.cb-profile-tabs{display:flex;gap:4px;border-top:1px solid var(--cb-border);padding:0 18px;overflow:auto}.cb-profile-tabs a{padding:15px 12px;border-bottom:3px solid transparent;color:#536070;font-weight:800;white-space:nowrap}.cb-profile-tabs a.active{color:var(--cb-primary);border-bottom-color:var(--cb-primary)}.cb-profile-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:14px}.cb-info-list{display:grid;gap:10px}.cb-info-item{display:flex;gap:10px;align-items:flex-start;color:#344054}.cb-info-item span:first-child{width:24px;flex:0 0 24px}.cb-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.cb-photo-tile{height:88px;border-radius:10px;background:linear-gradient(135deg,#93c5fd,#fbcfe8)}

.cb-grid{display:grid;gap:14px}.cb-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cb-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cb-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cb-member-card,.cb-group-card,.cb-product-card{background:#fff;border:1px solid rgba(220,226,234,.85);border-radius:18px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}.cb-card-cover{height:116px;background:linear-gradient(135deg,#bfdbfe,#fbcfe8);position:relative}.cb-member-card .cb-avatar{width:84px;height:84px;margin:-42px auto 10px;border:5px solid #fff;font-size:26px;position:relative;z-index:2}.cb-member-card{text-align:center}.cb-member-card .inner{padding:0 14px 16px}.cb-member-card h3,.cb-group-card h3,.cb-product-card h3{margin:0 0 3px;font-size:17px}.cb-member-stats{display:flex;justify-content:center;gap:18px;color:#667085;font-size:13px;margin:10px 0}.cb-member-stats strong{display:block;color:#111827;font-size:16px}.cb-page-hero{background:#fff;border:1px solid rgba(220,226,234,.8);border-radius:18px;padding:24px;margin-bottom:14px;display:flex;justify-content:space-between;gap:12px;align-items:center}.cb-page-hero h1{margin:0;font-size:30px;letter-spacing:-.05em}.cb-page-hero p{margin:4px 0 0;color:#667085}.cb-filterbar{display:flex;gap:10px;align-items:center;background:#fff;border-radius:16px;border:1px solid var(--cb-border);padding:12px;margin-bottom:14px}.cb-filterbar input,.cb-field input,.cb-field textarea,.cb-field select{width:100%;height:44px;border:1px solid var(--cb-border);background:#fff;border-radius:10px;padding:0 12px;outline:none}.cb-field textarea{height:120px;padding:12px;resize:vertical}.cb-filterbar input{background:#f5f7fa;border:0}.cb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cb-field label{display:block;font-size:13px;font-weight:800;color:#475467;margin-bottom:6px}

.cb-message-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px}.cb-thread-list,.cb-chat-window{background:#fff;border-radius:18px;border:1px solid rgba(220,226,234,.85);overflow:hidden}.cb-thread{display:flex;gap:10px;padding:13px;border-bottom:1px solid #f0f2f5}.cb-thread.active,.cb-thread:hover{background:#eef5ff}.cb-thread strong{display:block}.cb-thread span{display:block;color:#667085;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.cb-chat-head{padding:14px;border-bottom:1px solid #f0f2f5;display:flex;align-items:center;gap:10px}.cb-chat-body{height:420px;overflow:auto;padding:16px;background:#f8fafc}.cb-bubble{max-width:74%;padding:10px 13px;border-radius:18px;background:#e9eef5;margin-bottom:10px}.cb-bubble.me{background:var(--cb-primary);color:#fff;margin-left:auto;border-bottom-right-radius:6px}.cb-chat-send{display:flex;gap:8px;padding:12px;border-top:1px solid #f0f2f5}.cb-chat-send input{flex:1;border:0;background:#f0f2f5;border-radius:999px;padding:0 16px}

.cb-settings-list{background:#fff;border:1px solid rgba(220,226,234,.85);border-radius:18px;overflow:hidden}.cb-settings-row{display:flex;align-items:center;gap:12px;padding:15px;border-bottom:1px solid #eef2f7}.cb-settings-row:last-child{border-bottom:0}.cb-settings-row .ico{width:40px;height:40px;border-radius:13px;background:var(--cb-soft);display:flex;align-items:center;justify-content:center;color:var(--cb-primary)}.cb-settings-row strong{display:block}.cb-settings-row span{display:block;color:#667085;font-size:13px}.cb-settings-row:after{content:"›";font-size:26px;color:#98a2b3;margin-left:auto}

.cb-product-img{height:210px;background:linear-gradient(135deg,#e0f2fe,#dbeafe);display:flex;align-items:center;justify-content:center;font-size:58px}.cb-product-card .inner{padding:15px}.cb-price{font-size:24px;font-weight:900;color:var(--cb-primary)}.cb-shopbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.cb-checkout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px}.cb-order-list{background:#f8fafc;border-radius:14px;padding:14px}.cb-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e4e7ec}.cb-row:last-child{border-bottom:0}.cb-map{height:360px;border-radius:18px;background:linear-gradient(135deg,#dbeafe,#e0f2fe);position:relative;overflow:hidden}.cb-map:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.75) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.75) 1px,transparent 1px);background-size:48px 48px}.cb-pin{position:absolute;width:26px;height:26px;border-radius:999px 999px 999px 4px;background:#ff4d1d;transform:rotate(-45deg);box-shadow:0 8px 18px rgba(255,77,29,.25)}.cb-pin:after{content:"";position:absolute;inset:7px;background:#fff;border-radius:999px}.cb-pin.p1{left:58%;top:32%}.cb-pin.p2{left:70%;top:48%}.cb-pin.p3{left:42%;top:60%}.cb-pin.p4{left:22%;top:36%}.cb-job-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid var(--cb-border);border-radius:16px;padding:15px;margin-bottom:10px}.cb-tags{display:flex;gap:6px;flex-wrap:wrap}.cb-tag{background:#eef5ff;color:#075bd8;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.cb-tag.green{background:#dcfce7;color:#15803d}.cb-tag.orange{background:#ffedd5;color:#c2410c}.cb-kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cb-kanban-col{background:#fff;border:1px solid var(--cb-border);border-radius:18px;padding:14px}.cb-task{background:#f8fbff;border:1px solid #e7eefb;border-radius:14px;padding:13px;margin:10px 0}.cb-task h4{margin:0 0 6px}.cb-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.cb-metric{background:#fff;border-radius:16px;border:1px solid var(--cb-border);padding:16px}.cb-metric strong{display:block;font-size:26px;color:var(--cb-primary);letter-spacing:-.04em}.cb-auth-wrap{min-height:calc(100vh - var(--cb-topbar));display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:22px;overflow:hidden;border:1px solid var(--cb-border)}.cb-auth-art{background:linear-gradient(135deg,#dbeafe,#eff6ff);display:flex;align-items:center;justify-content:center;padding:28px;font-size:110px}.cb-auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.cb-auth-form .box{width:100%;max-width:360px}.cb-auth-form h1{font-size:34px;margin:0 0 18px;letter-spacing:-.05em}.cb-auth-form .cb-field{margin-bottom:12px}.cb-404{text-align:center;background:#fff;border-radius:22px;padding:56px 24px;border:1px solid var(--cb-border)}.cb-404 h1{font-size:66px;margin:0;color:var(--cb-primary)}

.cb-mobile-header-title{display:none}.cb-section-spacer{height:8px}.cb-hide-desktop{display:none}

@media (max-width:1200px){
  :root{--cb-left:250px;--cb-right:280px;--cb-content:650px}
  .cb-topbar{grid-template-columns:250px 1fr 280px}.cb-grid.cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1024px){
  :root{--cb-left:84px;--cb-right:0px;--cb-content:720px}.cb-topbar{grid-template-columns:84px 1fr auto}.cb-brand-word,.cb-side-link span.txt,.cb-side-title,.cb-mini-profile div,.cb-side-count,.cb-right-rail{display:none}.cb-shell{grid-template-columns:84px minmax(0,1fr);max-width:980px}.cb-left-rail{padding-left:10px}.cb-side-link{justify-content:center}.cb-side-link .ico{width:44px;height:44px}.cb-topnav{justify-content:center}.cb-profile-grid{grid-template-columns:1fr}.cb-checkout{grid-template-columns:1fr}.cb-grid.cols-3,.cb-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  :root{--cb-topbar:104px;--cb-content:100%}
  body{font-size:14px;padding-bottom:12px}
  .admin-bar .cb-topbar{top:46px}
  .cb-topbar{height:104px;display:grid;grid-template-columns:1fr auto;grid-template-rows:54px 50px;gap:0;padding:0 10px;border-bottom:1px solid #e5e7eb}
  .cb-brand{grid-column:1/2}.cb-brand svg{width:38px;height:38px}.cb-brand-word{display:block;font-size:23px}.cb-search{display:none}.cb-actions{grid-column:2/3;grid-row:1/2;gap:6px}.cb-actions .cb-circle{width:38px;height:38px}.cb-actions .cb-avatar{width:38px;height:38px}.cb-topnav{grid-column:1/3;grid-row:2/3;justify-content:space-between;overflow-x:auto;gap:2px;padding-bottom:4px}.cb-navicon{width:46px;height:44px;border-radius:12px;flex:1;min-width:44px}.cb-navicon.active{background:transparent;color:var(--cb-primary);border-bottom:3px solid var(--cb-primary);border-radius:0}
  .cb-shell{display:block;padding-top:var(--cb-topbar);max-width:100%}.cb-left-rail,.cb-right-rail{display:none}.cb-main{display:block;padding:8px 8px 12px}.cb-main-inner,.cb-main-inner.cb-wide,.cb-main-inner.cb-full{max-width:none;width:100%}.cb-card{border-radius:12px;margin-bottom:8px;border-left:0;border-right:0}.cb-card-pad{padding:14px}.cb-story{min-width:104px;height:174px}.cb-stories{padding:8px}.cb-post-media{height:300px}.cb-composer-actions a{font-size:13px;gap:5px}.cb-page-hero{border-radius:12px;padding:16px;align-items:flex-start;flex-direction:column}.cb-page-hero h1{font-size:25px}.cb-grid.cols-2,.cb-grid.cols-3,.cb-grid.cols-4{grid-template-columns:1fr}.cb-filterbar{border-radius:12px;margin-bottom:8px}.cb-profile-cover{height:210px;border-radius:0}.cb-profile-header{border-radius:0 0 12px 12px;margin-left:-8px;margin-right:-8px}.cb-profile-info{display:block;text-align:center;padding:0 14px 12px;margin-top:-72px}.cb-profile-avatar{width:136px;height:136px;font-size:40px;margin:0 auto 8px}.cb-profile-name h1{font-size:28px}.cb-profile-actions{justify-content:center;margin-top:12px}.cb-profile-tabs{padding:0 8px}.cb-profile-tabs a{padding:13px 10px}.cb-form-grid,.cb-message-layout,.cb-auth-wrap,.cb-kanban,.cb-metric-grid{grid-template-columns:1fr}.cb-thread-list{display:none}.cb-chat-body{height:calc(100vh - 290px)}.cb-map{height:310px}.cb-auth-art{min-height:180px;font-size:72px}.cb-auth-form{padding:28px 18px}.cb-shopbar{align-items:flex-start;flex-direction:column}.cb-hide-mobile{display:none!important}.cb-hide-desktop{display:block}.cb-mobile-header-title{display:block;font-size:13px;color:#667085;font-weight:800;text-transform:uppercase;margin:6px 4px}.cb-post-actions a span{display:none}.cb-post-actions a{font-size:17px}.cb-product-img{height:180px}.cb-photo-grid{grid-template-columns:repeat(3,1fr)}.cb-photo-tile{height:78px}
}
@media (max-width:420px){.cb-brand-word{font-size:21px}.cb-actions .cb-circle:nth-child(1){display:none}.cb-post-media{height:250px}.cb-story{min-width:96px;height:164px}.cb-profile-cover{height:180px}.cb-profile-avatar{width:120px;height:120px}.cb-btn{padding:8px 10px}.cb-card-title{font-size:18px}}

/* ChatBook v3 interactive UI */
.cb-circle .badge{position:absolute;top:3px;right:1px;background:#ef4444;color:#fff;font-weight:900;font-size:10px;min-width:18px;height:18px;border-radius:20px;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.cb-composer-actions button,.cb-post-actions button,.cb-post-stats button,.cb-profile-tabs button,.cb-thread{font:inherit;background:transparent;border:0;color:inherit;cursor:pointer}
.cb-composer-actions button{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:10px;font-weight:800;color:#475467}
.cb-composer-actions button:hover{background:#f6f7f9}.cb-post-more{border:0;background:transparent;cursor:pointer}.cb-post-stats button{color:var(--cb-muted)}
.cb-post-actions button{display:flex;align-items:center;justify-content:center;gap:8px;color:#536070;font-weight:800;padding:10px;border-radius:10px}.cb-post-actions button:hover,.cb-post-actions button.active{background:#f3f4f6;color:var(--cb-primary)}.cb-post-actions button.active{font-weight:900}
.cb-comments{display:none;border-top:1px solid var(--cb-border);padding:10px 14px 14px;background:#fff}.cb-post.comments-open .cb-comments{display:block}.cb-comment{background:#f0f2f5;border-radius:14px;padding:9px 12px;margin:8px 0;max-width:92%}.cb-comment strong{display:block;font-size:13px}.cb-comment p{margin:3px 0 0}.cb-comment-form{display:flex;align-items:center;gap:8px;margin-top:10px}.cb-comment-form .cb-avatar{width:34px;height:34px;font-size:12px}.cb-comment-form input{flex:1;border:0;background:#f0f2f5;border-radius:999px;height:40px;padding:0 14px;outline:none}.cb-comment-form button{border:0;background:var(--cb-primary);color:#fff;border-radius:999px;height:38px;padding:0 13px;font-weight:900;cursor:pointer}.cb-reactions{border:0;background:transparent;cursor:pointer}.cb-like-count{margin-left:8px}
.cb-profile-tabs button{padding:15px 12px;border-bottom:3px solid transparent;color:#536070;font-weight:800;white-space:nowrap}.cb-profile-tabs button.active{color:var(--cb-primary);border-bottom-color:var(--cb-primary)}.cb-profile-tabs button:hover{background:#f8fafc}.cb-profile-tab-panel{display:none}.cb-profile-tab-panel.active{display:block}.cb-member-mini{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#f8fafc;border:1px solid var(--cb-border);border-radius:15px;padding:16px}.cb-member-mini .cb-avatar{width:56px;height:56px}.cb-member-mini span{font-size:12px;color:var(--cb-muted)}.cb-photo-grid.large{grid-template-columns:repeat(4,1fr)}.cb-photo-grid.large .cb-photo-tile{height:128px}.cb-photo-tile{border:0;cursor:pointer}.cb-photo-tile:hover{transform:scale(.98);filter:saturate(1.1)}
.cb-modal{position:fixed;inset:0;background:rgba(15,23,42,.48);display:none;align-items:center;justify-content:center;padding:18px;z-index:2000}.cb-modal.open{display:flex}.cb-modal-panel{width:100%;max-width:520px;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.28);overflow:hidden}.cb-modal-panel header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--cb-border)}.cb-modal-panel h3{margin:0;font-size:20px}.cb-modal-close{border:0;background:#eef2f7;border-radius:999px;width:34px;height:34px;font-size:24px;line-height:1;cursor:pointer}.cb-modal-author{padding:14px 18px}.cb-modal-panel textarea{width:calc(100% - 36px);margin:0 18px 14px;border:1px solid var(--cb-border);border-radius:14px;padding:12px;resize:vertical}.cb-modal-panel .cb-button-row{padding:0 18px 18px}.cb-toast{position:fixed;left:50%;bottom:82px;transform:translate(-50%,20px);opacity:0;background:#111827;color:#fff;padding:12px 16px;border-radius:999px;font-weight:800;z-index:2200;box-shadow:0 14px 36px rgba(15,23,42,.25);transition:.22s}.cb-toast.show{opacity:1;transform:translate(-50%,0)}
.cb-photo-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:30px;z-index:2100}.cb-photo-lightbox button{position:absolute;right:20px;top:20px;width:44px;height:44px;border:0;border-radius:999px;background:#fff;font-size:28px;cursor:pointer}.cb-photo-lightbox-image{width:min(760px,90vw);height:min(640px,70vh);border-radius:20px;background-size:cover;background-position:center;box-shadow:0 30px 90px rgba(0,0,0,.4)}
.cb-notice{padding:11px 13px;border-radius:12px;margin-bottom:12px;font-weight:800}.cb-notice.success{background:#dcfce7;color:#166534}.cb-notice.error{background:#fee2e2;color:#991b1b}.cb-check{display:flex;gap:8px;align-items:center;color:#475467;font-size:14px;margin:0 0 14px}.login-username,.login-password,.login-remember{margin:0 0 12px}.login-username label,.login-password label{font-weight:800;font-size:13px;display:block;margin-bottom:6px}.login-username input,.login-password input{width:100%;height:44px;border:1px solid var(--cb-border);border-radius:10px;padding:0 12px}.login-submit input{width:100%;border:0;background:#111827;color:#fff;border-radius:10px;height:44px;font-weight:900;cursor:pointer}
.cb-money-grid .cb-metric:nth-child(1){background:linear-gradient(135deg,#0866ff,#22c55e);color:#fff}.cb-money-grid .cb-metric:nth-child(1) strong,.cb-money-grid .cb-metric:nth-child(1) span{color:#fff}.cb-money-card{background:#f8fafc;border:1px solid var(--cb-border);border-radius:16px;padding:16px}.cb-money-card span{font-size:34px}.cb-money-card h3{margin:8px 0}.cb-money-card p{color:var(--cb-muted)}.cb-settings-list.compact .cb-settings-row:after{content:""}.cb-btn.success,[data-cb-toggle-money].success{background:#22c55e;color:#fff;border-color:#22c55e}.cb-new-post{animation:cb-pop .25s ease-out}@keyframes cb-pop{from{transform:translateY(-8px);opacity:.5}to{transform:none;opacity:1}}
@media (max-width:760px){.cb-profile-tabs button{padding:13px 10px}.cb-post-actions button span{display:none}.cb-post-actions button{font-size:17px}.cb-photo-grid.large{grid-template-columns:repeat(3,1fr)}.cb-photo-grid.large .cb-photo-tile{height:90px}.cb-toast{bottom:76px;width:max-content;max-width:90vw}.cb-modal-panel{max-width:100%}}

/* ChatBook v5 theme additions */
.cb-navicon svg,.cb-side-link svg{stroke:currentColor;fill:none;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.cb-ad-slot{background:#fff;border:1px solid var(--cb-border);border-radius:14px;padding:12px;color:#667085;text-align:center;font-weight:800}.cb-topnav{gap:6px}.cb-navicon{position:relative}.cb-navicon:hover{background:#eef5ff;color:var(--cb-primary)}@media(max-width:760px){.cb-topnav{gap:0}.cb-navicon{min-width:42px}}


/* ChatBook v6 interaction refinements */
.cb-avatar.has-image,.cb-core-avatar.has-image{overflow:hidden;background:#e9eef7;color:transparent}.cb-avatar img,.cb-core-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}.cb-avatar-link{display:inline-flex;text-decoration:none;border-radius:999px;flex-shrink:0}.cb-comment{display:flex;align-items:flex-start;gap:8px}.cb-comment>div{min-width:0}.cb-comment a{color:inherit;text-decoration:none}.cb-comment a:hover{text-decoration:underline}.cb-profile-avatar-wrap{position:relative;width:136px;height:136px;border-radius:999px;margin-top:-78px;flex:0 0 auto;border:5px solid #fff;box-shadow:0 10px 24px rgba(15,23,42,.18);background:#fff}.cb-profile-avatar-wrap .cb-avatar{width:100%!important;height:100%!important;font-size:40px}.cb-avatar-edit,.cb-cover-edit{position:absolute;right:6px;bottom:8px;background:#111827;color:#fff!important;text-decoration:none;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;box-shadow:0 8px 20px rgba(15,23,42,.25)}.cb-cover-edit{right:16px;bottom:16px}.cb-profile-cover{position:relative;background-size:cover!important;background-position:center!important}.cb-profile-cover.mini{height:160px;border-radius:18px}.cb-settings-preview{position:relative;margin-bottom:52px}.cb-settings-avatar{position:absolute;left:22px;bottom:-44px;border:4px solid #fff;border-radius:999px;box-shadow:0 10px 25px rgba(15,23,42,.2)}.cb-preference-list label.cb-settings-row{cursor:pointer}.cb-preference-list input[type=checkbox]{margin-left:auto;width:22px;height:22px;accent-color:var(--cb-primary,#0866ff)}.cb-inline-check{border-style:solid!important}.cb-inline-check input{display:inline-block!important;width:auto!important}.cb-core-reaction-menu-wrap{min-width:0}.cb-core-reaction-menu{max-width:min(94vw,360px);overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none}.cb-core-reaction-menu::-webkit-scrollbar{display:none}.cb-core-reaction-menu button{flex:0 0 36px}.cb-core-post-actions{overflow:visible}.cb-post{overflow:visible}.cb-blue-player{position:relative;background:linear-gradient(180deg,#06152e,#0866ff)!important}.cb-blue-player video{accent-color:var(--cb-primary,#0866ff);border-radius:inherit}.cb-video-download{position:absolute;right:12px;bottom:12px;background:rgba(8,102,255,.92);color:#fff!important;text-decoration:none;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;backdrop-filter:blur(8px)}.cb-search-page-form{display:flex;gap:10px}.cb-search-page-form input{flex:1;border:1px solid var(--cb-border,#d0d5dd);border-radius:999px;padding:0 16px;height:44px;font-weight:800}.cb-create-group-panel.cb-more-menu{position:static;display:none;margin-bottom:16px}.cb-create-group-panel.cb-more-menu.is-open{display:block}.cb-group-invite-form select{height:42px;border:1px solid var(--cb-border,#d0d5dd);border-radius:12px;padding:0 10px;background:#fff}.cb-notification-link{text-decoration:none;color:inherit}.cb-core-notification-list .cb-notification-link.unread{background:#eef5ff;border-left:4px solid var(--cb-primary,#0866ff)}.cb-action-wrap{position:relative;display:inline-flex}.cb-desk-popup{position:absolute;right:0;top:calc(100% + 12px);width:360px;max-width:calc(100vw - 28px);background:#fff;border:1px solid var(--cb-border,#d0d5dd);box-shadow:0 22px 60px rgba(15,23,42,.22);border-radius:18px;padding:10px;display:none;z-index:1200}.cb-action-wrap.is-open .cb-desk-popup{display:block}.cb-desk-popup header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 10px}.cb-desk-popup header a{font-size:13px;font-weight:900;color:var(--cb-primary,#0866ff);text-decoration:none}.cb-popup-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;text-decoration:none;color:#111827}.cb-popup-item:hover,.cb-popup-item.unread{background:#eef5ff}.cb-popup-item span{min-width:0;display:block}.cb-popup-item strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-popup-item em{display:block;font-size:12px;color:var(--cb-muted,#667085);font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-popup-item .cb-avatar{flex-shrink:0}.cb-profile-settings-form input[type=file]{background:#fff;border:1px dashed var(--cb-border,#d0d5dd);border-radius:12px;padding:10px;width:100%}
@media(max-width:760px){.cb-profile-avatar-wrap{margin:0 auto 8px;width:136px;height:136px}.cb-core-reaction-menu{position:fixed!important;left:50%!important;bottom:18px!important;transform:translateX(-50%) translateY(8px)!important}.cb-core-reaction-menu-wrap:hover .cb-core-reaction-menu,.cb-core-reaction-menu:focus-within{transform:translateX(-50%) translateY(0)!important}.cb-post-actions{grid-template-columns:1fr 1fr 1fr}.cb-search-page-form{position:sticky;top:66px;z-index:50}.cb-desk-popup{display:none!important}}


/* ChatBook v7 Messenger, verification, insights and monetization updates */
.cb-verified-badge{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:5px;border-radius:999px;background:#0866ff;color:#fff;font-size:12px;font-weight:1000;vertical-align:middle;box-shadow:0 0 0 2px #fff}.cb-circle .badge[data-friends]{background:#22c55e}.cb-chat-dock{position:fixed;right:18px;bottom:12px;display:flex;gap:12px;align-items:flex-end;z-index:2300;pointer-events:none}.cb-floating-chat{width:350px;max-width:calc(100vw - 28px);height:460px;background:#fff;border:1px solid var(--cb-border,#d0d5dd);border-radius:18px;box-shadow:0 28px 80px rgba(15,23,42,.28);display:flex;flex-direction:column;overflow:hidden;pointer-events:auto}.cb-floating-chat header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#f8fafc;border-bottom:1px solid var(--cb-border,#d0d5dd)}.cb-floating-chat header .who{display:flex;align-items:center;gap:8px;min-width:0}.cb-floating-chat header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-chat-close{border:0;background:#eef2f7;border-radius:999px;width:32px;height:32px;font-size:20px;cursor:pointer}.cb-floating-chat .cb-chat-body{flex:1;overflow:auto;padding:12px;background:#fff}.cb-floating-chat .cb-chat-form{border-top:1px solid var(--cb-border,#d0d5dd);padding:8px;gap:7px;display:flex;align-items:center}.cb-msg-attach{width:38px;height:38px;border-radius:999px;background:#eef5ff;color:#0866ff;font-weight:900;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}.cb-msg-attach input{display:none}.cb-message-image{max-width:210px;border-radius:16px;display:block;margin-bottom:5px}.cb-bubble span{display:block}.cb-focused-chat .cb-chat-head>div{display:flex;align-items:center;gap:9px}.cb-messenger-v7 .cb-thread{cursor:pointer}.cb-status-pill{display:inline-flex;border-radius:999px;background:#eef5ff;color:#0754d6;padding:6px 10px;font-size:12px;margin:4px 0 10px}.cb-real-friends-panel .cb-request{align-items:flex-start}.cb-live-media{background:linear-gradient(135deg,#0f172a,#0866ff)!important;color:#fff}.cb-live-media em{display:block;font-size:13px;opacity:.86}.cb-core-video-media:after,.cb-reel-media:after{content:attr(data-views);position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,.5);color:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.cb-core-reaction-menu{z-index:30;left:0}.cb-core-reaction-menu-wrap:hover .cb-core-reaction-menu,.cb-core-reaction-menu:focus-within{display:flex;opacity:1;pointer-events:auto;transform:translateY(-8px)}.cb-core-reaction-menu button{min-width:40px}
@media(max-width:900px){.cb-chat-dock{right:8px;left:8px;bottom:12px;justify-content:center}.cb-floating-chat{width:100%;height:min(72vh,520px)}.cb-msg-attach{flex:0 0 38px}.cb-chat-form-v7 input[name="message"]{min-width:0}.cb-core-reaction-menu{max-width:calc(100vw - 24px)!important;justify-content:center}.cb-core-post-actions{overflow:visible!important}}


/* ChatBook v8 optional page title and profile image fixes */
.cb-theme-page-title{margin:0 0 14px;padding:14px 16px;background:#fff;border:1px solid var(--cb-border);border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.cb-theme-page-title h1{margin:0;font-size:26px;letter-spacing:-.04em}.cb-avatar.has-image{overflow:hidden;background:#eef2f7;color:transparent}.cb-avatar.has-image img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.cb-brand-logo-img{height:42px;width:auto;display:block}


/* ChatBook v10 profile and mobile messaging layout guard */
.cb-profile-v9 .cb-profile-cover{background-size:cover!important;background-position:center!important}.cb-profile-v9 .cb-profile-avatar-wrap{overflow:hidden}.cb-messenger-v10 .cb-thread-list-v10{display:block!important}
@media(max-width:900px){.cb-messenger-v10 .cb-focused-chat-v10{display:none!important}.cb-profile-v9 .cb-profile-cover{height:165px!important}.cb-profile-v9 .cb-profile-avatar-wrap{width:104px!important;height:104px!important;margin-top:0!important}.cb-profile-v9 .cb-profile-info{margin-top:-52px!important}.cb-profile-v9 .cb-profile-name h1{font-size:24px!important}}


/* ChatBook v11 mobile profile and toolbar cleanup */
html{margin-top:0!important}
#wpadminbar{display:none!important}
body.admin-bar{padding-top:0!important}
body.admin-bar .cb-topbar{top:0!important}
body.admin-bar .cb-left-rail,body.admin-bar .cb-right-rail{top:calc(var(--cb-topbar) + 14px)!important}
.cb-profile-v11,.cb-profile-header.cb-profile-v9{max-width:980px;margin:0 auto 14px;border-radius:0 0 18px 18px;overflow:hidden;background:#fff;border:1px solid rgba(220,226,234,.9);box-shadow:0 1px 2px rgba(16,24,40,.03)}
.cb-profile-v11 .cb-profile-cover,.cb-profile-header.cb-profile-v9 .cb-profile-cover{display:block;width:100%;height:315px!important;border-radius:0!important;background-size:cover!important;background-position:center!important;position:relative}
.cb-profile-v11 .cb-profile-info,.cb-profile-header.cb-profile-v9 .cb-profile-info{display:flex!important;align-items:flex-end!important;gap:18px!important;padding:0 24px 18px!important;margin-top:-72px!important;text-align:left!important;background:#fff;position:relative;z-index:2}
.cb-profile-v11 .cb-profile-avatar-wrap,.cb-profile-header.cb-profile-v9 .cb-profile-avatar-wrap{width:148px!important;height:148px!important;min-width:148px!important;flex:0 0 148px!important;margin:0!important;border:5px solid #fff;border-radius:999px;background:#fff;overflow:hidden;box-shadow:0 4px 20px rgba(15,23,42,.18)}
.cb-profile-v11 .cb-profile-avatar-wrap .cb-avatar,.cb-profile-header.cb-profile-v9 .cb-profile-avatar-wrap .cb-avatar{width:100%!important;height:100%!important;border-radius:999px!important;font-size:40px!important;display:flex!important;object-fit:cover!important}
.cb-profile-v11 .cb-profile-avatar-wrap img,.cb-profile-header.cb-profile-v9 .cb-profile-avatar-wrap img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:999px!important;display:block!important}
.cb-profile-v11 .cb-profile-name,.cb-profile-header.cb-profile-v9 .cb-profile-name{min-width:0;flex:1}
.cb-profile-v11 .cb-profile-name h1,.cb-profile-header.cb-profile-v9 .cb-profile-name h1{font-size:32px!important;line-height:1.05!important;margin:0 0 4px!important;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.cb-profile-v11 .cb-profile-name p,.cb-profile-header.cb-profile-v9 .cb-profile-name p{margin:3px 0;color:var(--cb-muted,#667085)}
.cb-profile-v11 .cb-profile-actions,.cb-profile-header.cb-profile-v9 .cb-profile-actions{margin-left:auto;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap}
.cb-profile-v11 .cb-profile-tabs,.cb-profile-header.cb-profile-v9 .cb-profile-tabs{display:flex;gap:4px;overflow-x:auto;padding:0 20px!important;background:#fff;border-top:1px solid rgba(220,226,234,.9);scrollbar-width:none}.cb-profile-v11 .cb-profile-tabs::-webkit-scrollbar,.cb-profile-header.cb-profile-v9 .cb-profile-tabs::-webkit-scrollbar{display:none}
.cb-profile-v11 .cb-profile-tabs button,.cb-profile-header.cb-profile-v9 .cb-profile-tabs button{white-space:nowrap;min-width:max-content}
.cb-create-group-page-v11{max-width:900px;margin:0 auto}.cb-create-group-page-v11 .cb-field input,.cb-create-group-page-v11 .cb-field textarea,.cb-create-group-page-v11 .cb-field select{width:100%}
@media(max-width:900px){
  body{padding-bottom:76px!important}
  .cb-profile-v11,.cb-profile-header.cb-profile-v9{margin:0 -8px 14px!important;border-radius:0 0 14px 14px!important;border-left:0;border-right:0}
  .cb-profile-v11 .cb-profile-cover,.cb-profile-header.cb-profile-v9 .cb-profile-cover{height:174px!important;min-height:174px!important;max-height:174px!important;background-size:cover!important;background-position:center!important}
  .cb-profile-v11 .cb-profile-info,.cb-profile-header.cb-profile-v9 .cb-profile-info{display:block!important;text-align:center!important;margin-top:-54px!important;padding:0 12px 12px!important;background:#fff!important}
  .cb-profile-v11 .cb-profile-avatar-wrap,.cb-profile-header.cb-profile-v9 .cb-profile-avatar-wrap{width:108px!important;height:108px!important;min-width:108px!important;max-width:108px!important;max-height:108px!important;margin:0 auto 8px!important;display:block!important;float:none!important;transform:none!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;border-width:4px!important}
  .cb-profile-v11 .cb-profile-name h1,.cb-profile-header.cb-profile-v9 .cb-profile-name h1{font-size:25px!important;line-height:1.08!important;margin:0!important;justify-content:center!important;text-align:center!important}
  .cb-profile-v11 .cb-profile-name p,.cb-profile-header.cb-profile-v9 .cb-profile-name p{font-size:13px!important;line-height:1.25!important;text-align:center!important;margin:3px auto!important;max-width:94vw!important}
  .cb-profile-v11 .cb-profile-actions,.cb-profile-header.cb-profile-v9 .cb-profile-actions{margin:10px auto 0!important;justify-content:center!important;gap:6px!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:2px!important;max-width:100%!important;scrollbar-width:none!important}
  .cb-profile-v11 .cb-profile-actions::-webkit-scrollbar,.cb-profile-header.cb-profile-v9 .cb-profile-actions::-webkit-scrollbar{display:none!important}
  .cb-profile-v11 .cb-profile-actions .cb-btn,.cb-profile-header.cb-profile-v9 .cb-profile-actions .cb-btn{height:39px!important;padding:0 14px!important;font-size:13px!important;border-radius:10px!important;white-space:nowrap!important;flex:0 0 auto!important}
  .cb-profile-v11 .cb-profile-tabs,.cb-profile-header.cb-profile-v9 .cb-profile-tabs{padding:0 8px!important;gap:0!important;border-top:1px solid var(--cb-border,#d0d5dd)!important}
  .cb-profile-v11 .cb-profile-tabs button,.cb-profile-header.cb-profile-v9 .cb-profile-tabs button{font-size:14px!important;padding:13px 12px!important;min-width:max-content!important}
  .cb-profile-grid{display:block!important}.cb-profile-grid aside{display:none!important}.cb-profile-panels{max-width:none!important;margin:0!important}.cb-create-group-page-v11 .cb-form-grid{grid-template-columns:1fr!important}
}
@media(max-width:420px){.cb-profile-v11 .cb-profile-cover,.cb-profile-header.cb-profile-v9 .cb-profile-cover{height:160px!important}.cb-profile-v11 .cb-profile-avatar-wrap,.cb-profile-header.cb-profile-v9 .cb-profile-avatar-wrap{width:98px!important;height:98px!important;min-width:98px!important}.cb-profile-v11 .cb-profile-name h1,.cb-profile-header.cb-profile-v9 .cb-profile-name h1{font-size:23px!important}.cb-profile-v11 .cb-profile-actions .cb-btn,.cb-profile-header.cb-profile-v9 .cb-profile-actions .cb-btn{padding:0 12px!important}}


/* ChatBook v12 Friends, auth branding and Facebook-inspired original interactions */
.cb-friends-hero{background:linear-gradient(135deg,#fff,#eef5ff)}
.cb-friends-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.cb-friends-toolbar input{flex:1;min-width:220px;border:0;background:#f0f2f5;border-radius:999px;height:44px;padding:0 16px;font-weight:800}.cb-friend-tabs{display:flex;gap:8px;overflow:auto}.cb-friend-tabs a{white-space:nowrap;text-decoration:none;border-radius:999px;background:#eef2f7;color:#111827;padding:10px 14px;font-weight:900}.cb-friend-tabs a.active{background:#0866ff;color:#fff}
.cb-auth-brand-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px}.cb-auth-brand-logo .cb-auth-logo-mark{width:58px;height:58px;border-radius:16px;background:#0866ff;color:#fff;display:grid;place-items:center;box-shadow:0 12px 28px rgba(8,102,255,.25)}.cb-auth-brand-logo .cb-auth-logo-mark svg{width:42px;height:42px}.cb-auth-brand-logo strong{font-size:30px;letter-spacing:-.05em;color:#102a56}.cb-auth-brand-logo strong span{color:#0866ff}.cb-auth-wrap .cb-auth-art{font-size:0!important;background:linear-gradient(135deg,#eaf3ff,#fff)!important;display:flex;align-items:center;justify-content:center}.cb-auth-wrap .cb-auth-art:before{content:"";width:160px;height:160px;border-radius:36px;background:#0866ff;box-shadow:0 26px 60px rgba(8,102,255,.25);display:block;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="black" d="M8 12h64a6 6 0 0 1 6 6v34a6 6 0 0 1-6 6H28L14 70v-12H8a6 6 0 0 1-6-6V18a6 6 0 0 1 6-6Zm12 14h40v6H20v-6Zm0 12h30v6H20v-6Z"/></svg>') center/contain no-repeat;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="black" d="M8 12h64a6 6 0 0 1 6 6v34a6 6 0 0 1-6 6H28L14 70v-12H8a6 6 0 0 1-6-6V18a6 6 0 0 1 6-6Zm12 14h40v6H20v-6Zm0 12h30v6H20v-6Z"/></svg>') center/contain no-repeat}
.cb-social-action-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;font-size:14px;margin-right:4px}.cb-social-like{background:#1877f2;color:#fff}.cb-social-love{background:#f02849;color:#fff}.cb-social-care{background:#f7b928;color:#fff}.cb-social-wow,.cb-social-haha,.cb-social-sad{background:#f7b928;color:#111}.cb-social-angry{background:#e9710f;color:#fff}.cb-core-reaction-menu{border-radius:999px!important;padding:6px 8px!important;box-shadow:0 10px 36px rgba(15,23,42,.22)!important}.cb-core-reaction-menu button{width:42px!important;height:42px!important;font-size:25px!important;transition:transform .15s ease}.cb-core-reaction-menu button:hover{transform:translateY(-8px) scale(1.18)}
@media(max-width:900px){.cb-auth-brand-logo{justify-content:flex-start}.cb-auth-brand-logo strong{font-size:25px}.cb-auth-wrap .cb-auth-art{display:none!important}.cb-friends-toolbar{display:block}.cb-friends-toolbar input{width:100%;margin-bottom:10px}.cb-friend-tabs{padding-bottom:4px}}


/* ChatBook v13 branding, video/reels/jobs upgrades */
.cb-auth-wrap.v13,.cb-auth-wrap.cb-auth-v13{max-width:1120px;margin:18px auto;display:grid;grid-template-columns:1fr 430px;gap:0;overflow:hidden;border-radius:24px;background:#fff;border:1px solid var(--cb-border,#d0d5dd);box-shadow:0 12px 40px rgba(15,23,42,.08)}
.cb-auth-v13 .cb-auth-art{display:flex!important;align-items:center!important;justify-content:center!important;min-height:560px;background:linear-gradient(135deg,#eaf4ff,#fff)}
.cb-auth-v13 .cb-auth-logo-panel{text-align:center;padding:24px}.cb-auth-v13 .cb-auth-logo-panel img.cb-auth-logo-icon{width:132px;height:132px;border-radius:28px;display:block;margin:0 auto 18px;object-fit:contain;box-shadow:0 18px 40px rgba(8,102,255,.22)}.cb-auth-v13 .cb-auth-logo-panel img.cb-auth-logo-full{max-width:330px;width:86%;height:auto;display:block;margin:0 auto 14px}.cb-auth-v13 .cb-auth-logo-panel p{font-size:18px;color:var(--cb-muted,#667085);font-weight:800}.cb-auth-v13 .cb-auth-form{padding:54px 34px!important;display:flex;align-items:center}.cb-auth-v13 .box{width:100%;max-width:360px;margin:auto}.cb-auth-v13 .box h1{font-size:32px;letter-spacing:-.05em;margin-top:0}.cb-auth-v13 .cb-field input,.cb-auth-v13 #loginform input[type=text],.cb-auth-v13 #loginform input[type=password]{height:48px;border-radius:12px;border:1px solid var(--cb-border,#d0d5dd);background:#fff;width:100%;padding:0 14px;box-sizing:border-box}.cb-auth-v13 #wp-submit,.cb-auth-v13 .cb-btn.dark,.cb-auth-v13 .cb-btn{width:100%;height:48px;border-radius:12px;font-weight:900}
.cb-verified-badge{background:#1877f2!important;width:18px!important;height:18px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:-3px!important;margin-left:5px!important;box-shadow:0 0 0 2px #fff!important}.cb-verified-badge svg{width:13px!important;height:13px!important;fill:#fff!important}.cb-verified-badge path{fill:#fff!important}.cb-social-reaction-tray button{transition:.18s transform}.cb-social-reaction-tray button:hover{transform:translateY(-5px) scale(1.12)}
.cb-watch-v13,.cb-reels-v13{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.cb-reels-stage-v13{display:grid;gap:18px;scroll-snap-type:y mandatory}.cb-reel-card-v13{min-height:76vh;scroll-snap-align:start;background:#05070c;color:#fff;border-radius:24px;overflow:hidden;position:relative;display:grid;grid-template-columns:minmax(0,1fr) 86px}.cb-reel-video-v13{display:grid;place-items:center;min-height:76vh;background:linear-gradient(135deg,#101827,#0866ff)}.cb-reel-side-v13{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:16px;padding:16px}.cb-reel-side-v13 button,.cb-video-action-btn{width:52px;height:52px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-weight:900;cursor:pointer}.cb-reel-info-v13{position:absolute;left:18px;bottom:18px;right:100px}.cb-reel-info-v13 a{color:#fff;text-decoration:none}.cb-video-grid-v13{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cb-video-card-v13{background:#fff;border:1px solid var(--cb-border,#d0d5dd);border-radius:18px;overflow:hidden}.cb-video-thumb-v13{height:220px;background:linear-gradient(135deg,#111827,#0866ff);display:grid;place-items:center;color:#fff;font-size:42px}.cb-video-card-v13 .inner{padding:14px}.cb-video-meta-v13{display:flex;gap:10px;flex-wrap:wrap;color:var(--cb-muted,#667085);font-size:13px;font-weight:800}.cb-video-sidebar-v13,.cb-jobs-sidebar-v13{display:grid;gap:14px;align-content:start}.cb-video-sidebar-v13 .cb-card,.cb-jobs-sidebar-v13 .cb-card{padding:16px}.cb-job-layout-v13{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.cb-job-card-v13{background:#fff;border:1px solid var(--cb-border,#d0d5dd);border-radius:18px;padding:16px;display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}.cb-job-apply-box{background:#eef5ff;border-radius:16px;padding:14px;margin-top:10px}.cb-real-time-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#ecfdf3;color:#067647;font-weight:900;font-size:12px;padding:7px 11px}.cb-real-time-pill:before{content:"";width:8px;height:8px;border-radius:50%;background:#12b76a;box-shadow:0 0 0 4px rgba(18,183,106,.16)}
@media(max-width:900px){.cb-auth-wrap.v13,.cb-auth-wrap.cb-auth-v13{display:block;margin:0;border-radius:0;border-left:0;border-right:0}.cb-auth-v13 .cb-auth-art{min-height:auto;padding:28px 12px}.cb-auth-v13 .cb-auth-logo-panel img.cb-auth-logo-icon{width:90px;height:90px}.cb-auth-v13 .cb-auth-logo-panel img.cb-auth-logo-full{max-width:240px}.cb-auth-v13 .cb-auth-form{padding:24px 18px!important}.cb-auth-v13 .box h1{font-size:27px}.cb-watch-v13,.cb-reels-v13,.cb-job-layout-v13{display:block}.cb-video-grid-v13{grid-template-columns:1fr}.cb-video-sidebar-v13,.cb-jobs-sidebar-v13{margin-top:14px}.cb-reel-card-v13{border-radius:0;margin-left:-8px;margin-right:-8px;min-height:calc(100dvh - 138px)}.cb-reel-video-v13{min-height:calc(100dvh - 138px)}.cb-reel-card-v13{grid-template-columns:minmax(0,1fr) 70px}.cb-reel-side-v13 button{width:46px;height:46px}.cb-reel-info-v13{right:80px}.cb-job-card-v13{display:block}.cb-job-card-v13 .cb-btn{margin-top:10px;width:100%}}


/* Hide redundant page intro banners in the application shell. */
:root{--cb-page-headers-display:none}
.cb-page-hero,
.cb-theme-page-title,
.cb-mobile-header-title,
.cb-welcome-card,
.cb-intro-card,
.cb-page-intro-title,
.cb-section-intro,
.cb-watch-hero-v15,
.cb-reels-hero-v15,
.cb-events-hero-v14,
.cb-friends-hero,
.cb-groups-hero-v11,
.cb-create-group-hero-v11,
.cb-messages-hero,
.cb-messages-hero-v10{
  display:var(--cb-page-headers-display)!important;
}
body.chatbook-show-page-headers .cb-page-hero,
body.chatbook-show-page-headers .cb-theme-page-title,
body.chatbook-show-page-headers .cb-mobile-header-title{
  display:flex!important;
}
body.chatbook-show-page-headers .cb-theme-page-title,
body.chatbook-show-page-headers .cb-mobile-header-title{display:block!important;}
.cb-main-inner > .cb-page-hero:first-child + .cb-card,
.cb-main-inner > .cb-page-hero:first-child + .cb-stories-wrap,
.cb-main-inner > .cb-page-hero:first-child + .cb-core-reels-view,
.cb-main-inner > .cb-page-hero:first-child + .cb-video-watch-layout{margin-top:0!important;}
.cb-stories-wrap:first-child,.cb-core-composer:first-child,.cb-card:first-child{margin-top:0!important;}


/* ChatBook v17: profile menu and immersive pages */
.cb-profile-header,.cb-profile-v9,.cb-profile-v11{overflow:visible!important}.cb-profile-actions,.cb-more-wrap{overflow:visible!important}.cb-profile-actions .cb-more-menu,.cb-profile-header .cb-more-menu{z-index:999999!important;max-height:70vh;overflow:auto!important}.cb-main-inner:has(.cb-immersive-page){max-width:none!important;width:100%!important;padding:0!important}.cb-main:has(.cb-immersive-page){padding:0!important}@media(max-width:900px){.cb-profile-actions .cb-more-menu,.cb-profile-header .cb-more-menu{position:fixed!important;left:10px!important;right:10px!important;bottom:12px!important;top:auto!important;width:auto!important;max-height:62dvh!important}}


/* ChatBook v18 separation and accessibility overrides */
.cb-brand-word{white-space:nowrap}.cb-avatar-img{object-fit:cover;overflow:hidden}.cb-core-missing{text-align:center}.cb-topbar [hidden]{display:none!important}.cb-actions .cb-circle{flex:0 0 42px}.cb-side-link:focus-visible,.cb-navicon:focus-visible,.cb-circle:focus-visible{outline:3px solid color-mix(in srgb,var(--cb-primary) 45%,transparent);outline-offset:2px}
@media(max-width:900px){.cb-actions>a[href*="login"]{display:flex!important}.cb-main{padding-bottom:12px}}

.cb-mobile-menu-trigger,.cb-mobile-search-trigger{display:none!important}
.cb-mobile-menu{display:none;position:fixed;inset:var(--cb-topbar,64px) 0 0 0;background:#f0f2f5;z-index:2200;overflow:auto;padding:14px 14px 30px}
.cb-mobile-menu.is-open{display:block}
.cb-mobile-menu-head{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:16px;padding:10px 12px;margin-bottom:12px}
.cb-mobile-menu-head .cb-mini-profile{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;min-width:0}
.cb-mobile-menu-head .cb-mini-profile span{display:flex;flex-direction:column;min-width:0}.cb-mobile-menu-head small{color:#667085}
.cb-mobile-menu-head>button{border:0;background:#e4e6eb;border-radius:999px;width:36px;height:36px;font-size:24px;cursor:pointer}
.cb-mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cb-mobile-menu-grid a{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:14px;text-decoration:none;color:#111827;font-weight:800;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.cb-mobile-menu-grid svg{width:24px;height:24px;stroke:var(--cb-primary);fill:none;stroke-width:2}
.cb-mobile-logout{display:block;margin-top:12px;background:#fff;border-radius:14px;padding:14px;text-align:center;text-decoration:none;color:#b42318;font-weight:900}
@media(max-width:900px){
  .cb-mobile-menu-trigger,.cb-mobile-search-trigger{display:flex!important}
  .cb-topbar{height:auto;min-height:var(--cb-topbar);flex-wrap:wrap;align-content:center}
  .cb-topbar .cb-brand-word{display:none}.cb-topbar .cb-search{display:none}
  .cb-topnav{order:3;width:100%;justify-content:space-around;border-top:1px solid #e5e7eb;margin-top:5px;padding-top:3px}
  .cb-topnav .cb-navicon{flex:1;max-width:72px;border-radius:8px}
  .cb-topnav .cb-navicon:nth-child(4){display:none}
  .cb-actions{gap:4px}.cb-actions .cb-friend-action{display:none}
  .cb-shell{padding-top:calc(var(--cb-topbar) + 48px)}
}
@media(max-width:520px){.cb-mobile-menu-grid{grid-template-columns:1fr 1fr}.cb-actions .cb-circle{width:38px;height:38px;flex-basis:38px}.cb-avatar-action .cb-avatar{width:38px;height:38px}}

@media(max-width:900px){body{padding-bottom:0!important}.cb-mobile-menu{position:fixed;inset:0;top:var(--cb-topbar-h,62px);z-index:990;background:var(--cb-bg,#f0f2f5);padding:14px;overflow:auto;transform:translateX(105%);transition:transform .22s ease}.cb-mobile-menu.is-open{transform:translateX(0)}.cb-mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 14px}.cb-mobile-menu-head>button{border:0;background:#e4e6eb;width:38px;height:38px;border-radius:50%;font-size:22px}.cb-mobile-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cb-mobile-menu-grid a{display:flex;align-items:center;gap:10px;background:var(--cb-card,#fff);color:inherit;text-decoration:none;border-radius:12px;padding:13px;font-weight:800}.cb-mobile-menu-grid svg{width:22px;height:22px}.cb-mobile-menu-footer{display:grid;gap:8px;margin-top:14px;padding-bottom:20px}.cb-mobile-menu-footer a{display:block;padding:12px;background:var(--cb-card,#fff);border-radius:10px;color:inherit;text-decoration:none;font-weight:700}}
