:root{--navy:#07152f;--navy2:#102b55;--blue:#2868e8;--blue2:#1e56c7;--ink:#17243b;--muted:#758198;--line:#e8edf5;--paper:#f4f7fb;--white:#fff;--green:#0b9b71;--shadow:0 12px 38px #10254a12;--radius:18px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html{background:var(--paper);scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.brand-logo{width:42px;height:42px;object-fit:contain}.brand-word{font-weight:850;letter-spacing:.12em;color:#102c58;font-size:18px}.brand-word span{color:var(--blue)}.auth-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);background:linear-gradient(135deg,#07152f,#0d2c5d 60%,#1d65c9);padding:clamp(20px,4vw,64px);gap:40px;align-items:center}.auth-hero{color:#fff;max-width:650px;margin:auto}.auth-hero .brand-word{color:#fff;font-size:22px}.auth-hero h1{font-size:clamp(38px,5vw,68px);line-height:1.02;letter-spacing:-.05em;margin:40px 0 18px}.auth-hero p{font-size:18px;color:#d6e5ff;max-width:540px}.auth-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.auth-pills span{border:1px solid #ffffff38;background:#ffffff12;padding:10px 14px;border-radius:99px;color:#e8f1ff}.auth-card{width:min(100%,480px);margin:auto;background:#fff;border:1px solid #ffffff55;border-radius:26px;padding:clamp(22px,4vw,38px);box-shadow:0 30px 90px #0003}.auth-card h2{font-size:28px;letter-spacing:-.03em;margin:4px 0}.auth-card>p{color:var(--muted);margin:4px 0 22px}.auth-tabs{display:flex;background:#f0f4fa;padding:5px;border-radius:12px;margin:18px 0}.auth-tabs button{flex:1;border:0;border-radius:9px;padding:11px;background:transparent;color:#66748b;font-weight:700}.auth-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px #17345a16}.field{display:grid;gap:6px;margin:13px 0}.field label{font-size:12px;font-weight:750;color:#43516a}.field input,.field textarea,.field select,.searchbox input{width:100%;border:1px solid #dce3ed;border-radius:11px;padding:12px 13px;background:#fff;color:var(--ink);outline:none;min-height:46px}.field textarea{min-height:96px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus,.searchbox input:focus{border-color:#6b9cf2;box-shadow:0 0 0 3px #2868e81a}.primary{background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:11px;padding:11px 16px;font-weight:750}.primary:hover{background:var(--blue2)}.secondary{background:#fff;color:#34435d;border:1px solid #dce3ed;border-radius:11px;padding:10px 14px;font-weight:700}.ghost{background:transparent;color:#56647b;border:0;border-radius:10px;padding:10px 12px;font-weight:700}.danger{background:#fff2f2;color:#ba3544;border:1px solid #f3d1d5;border-radius:10px;padding:9px 12px}.wide{width:100%}.auth-message,.toast{padding:11px 13px;border-radius:10px;background:#eef5ff;color:#174e9c;margin:12px 0;font-size:13px}.auth-message.error{background:#fff0f0;color:#a32b3b}.app-shell{min-height:100dvh}.topbar{height:68px;position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:260px minmax(220px,1fr) 260px;align-items:center;padding:0 max(18px,calc((100vw - 1480px)/2));gap:22px}.top-brand{display:flex;align-items:center;gap:9px;text-decoration:none}.searchbox{display:flex;align-items:center;gap:9px;background:#f1f4f9;border:1px solid transparent;border-radius:99px;padding:0 15px;max-width:580px}.searchbox input{border:0;background:transparent;box-shadow:none!important;padding:11px 0;min-height:42px}.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.icon-btn{width:42px;height:42px;border-radius:50%;border:0;background:#f1f4f9;color:#41516c;font-size:18px;position:relative;display:grid;place-items:center}.icon-btn:hover{background:#e6efff;color:var(--blue)}.dot{position:absolute;right:1px;top:1px;min-width:17px;height:17px;border-radius:99px;background:#e94d63;color:#fff;font-size:10px;display:grid;place-items:center;padding:0 4px}.user-chip{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:4px 8px;border-radius:99px;font-weight:750;color:var(--ink)}.avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;object-fit:cover;background:#e7edf6;border:1px solid #e0e6f0;display:grid;place-items:center;color:#34517b;font-weight:800;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.sm{width:34px;height:34px;flex-basis:34px;font-size:12px}.avatar.lg{width:112px;height:112px;flex-basis:112px;border:5px solid #fff;box-shadow:0 5px 22px #0b1d3b22}.layout{max-width:1480px;margin:22px auto;padding:0 18px;display:grid;grid-template-columns:245px minmax(0,660px) 290px;gap:22px;align-items:start}.left-rail,.right-rail{position:sticky;top:88px;max-height:calc(100dvh - 104px);overflow:auto}.rail-card,.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.rail-card{padding:14px;margin-bottom:14px}.nav-list{display:grid;gap:4px}.nav-item{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:11px 12px;border:0;border-radius:12px;background:transparent;color:#465570;font-weight:700}.nav-item .nav-ico{width:26px;text-align:center;font-size:19px}.nav-item:hover,.nav-item.active{background:#edf4ff;color:#1f5bc5}.rail-profile{display:flex;gap:11px;align-items:center;padding:10px 7px 14px;border-bottom:1px solid var(--line);margin-bottom:9px}.rail-profile strong{display:block}.rail-profile small{color:var(--muted)}.content{min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.page-head h1{font-size:24px;letter-spacing:-.04em;margin:0}.page-head p{margin:3px 0 0;color:var(--muted)}.stories{display:flex;gap:12px;overflow:auto;padding:14px;margin-bottom:14px;scrollbar-width:thin}.story{flex:0 0 88px;text-align:center;cursor:pointer;border:0;background:transparent;color:var(--ink);padding:0}.story-ring{width:68px;height:68px;margin:0 auto 7px;padding:3px;border-radius:50%;background:linear-gradient(135deg,#2868e8,#8b5cf6,#ef5576)}.story-ring img,.story-ring .avatar{width:100%;height:100%;border:3px solid #fff}.story-name{display:block;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer{padding:16px;margin-bottom:14px}.composer-top{display:flex;gap:12px;align-items:center}.composer-trigger{flex:1;text-align:left;border:1px solid #e5eaf2;background:#f4f6fa;color:#78849a;border-radius:99px;padding:12px 17px}.composer-actions{display:flex;gap:8px;border-top:1px solid var(--line);margin-top:13px;padding-top:12px;flex-wrap:wrap}.composer-actions button{flex:1;min-width:110px}.feed-tabs{display:flex;gap:6px;padding:5px;background:#eaf0f8;border-radius:12px;margin-bottom:13px}.feed-tabs button{flex:1;border:0;background:transparent;color:#66758d;border-radius:9px;padding:9px;font-weight:750}.feed-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px #10254a12}.post-card{padding:17px;margin-bottom:14px}.post-head{display:flex;align-items:center;gap:10px}.post-author{min-width:0;flex:1}.post-author strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.post-author small{color:var(--muted)}.post-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:13px 0}.post-media{width:100%;max-height:520px;object-fit:contain;background:#f0f3f7;border-radius:13px}.post-stats{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.post-actions{display:flex;gap:4px;padding-top:8px}.post-actions button{flex:1;border:0;background:transparent;border-radius:9px;padding:10px 4px;color:#5a6880;font-weight:750}.post-actions button:hover,.post-actions button.liked{background:#edf4ff;color:var(--blue)}.comments{border-top:1px solid var(--line);margin-top:8px;padding-top:12px}.comment{display:flex;gap:8px;margin:9px 0}.comment-bubble{background:#f1f4f8;border-radius:14px;padding:9px 12px;max-width:90%}.comment-bubble strong{display:block;font-size:12px}.comment-form{display:flex;gap:8px;margin-top:10px}.comment-form input{flex:1;min-width:0;border:1px solid #dce3ed;border-radius:99px;padding:10px 14px}.side-title{font-size:13px;color:#59677e;font-weight:850;letter-spacing:.05em;text-transform:uppercase;margin:0 0 12px}.suggestion{display:flex;align-items:center;gap:9px;padding:8px 0}.suggestion-info{min-width:0;flex:1}.suggestion-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggestion-info small{color:var(--muted)}.suggestion button{padding:7px 10px;font-size:12px}.right-note{padding:14px;border-radius:14px;background:linear-gradient(135deg,#eff5ff,#f7f3ff);color:#3f5274;font-size:13px}.mobile-nav{display:none}.screen{min-width:0}.empty-state{padding:32px 18px;text-align:center;border:1px dashed #d5deeb;border-radius:15px;color:var(--muted);background:#fafcff}.empty-state strong{display:block;color:#40516c;margin-bottom:5px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.stack{display:grid;gap:10px}.profile-cover{height:250px;border-radius:17px 17px 0 0;background:linear-gradient(135deg,#cbdcf5,#8daee0);background-size:cover;background-position:center}.profile-head{padding:0 18px 18px}.profile-identity{display:flex;align-items:flex-end;gap:14px;margin-top:-56px;position:relative}.profile-identity .avatar{width:116px;height:116px;flex-basis:116px}.profile-info{padding:12px 0 4px;min-width:0}.profile-info h2{margin:0;font-size:25px}.profile-stats{display:flex;gap:22px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:15px;padding-top:13px}.profile-stats strong{display:block;font-size:17px}.profile-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:14px;margin-top:14px}.tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tile-grid img,.tile-grid video{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.list-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border:0}.list-item .grow{flex:1;min-width:0}.list-item strong{display:block}.list-item small{color:var(--muted)}.message-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:520px}.message-list{border-right:1px solid var(--line);padding:12px}.message-thread{display:flex;flex-direction:column;min-width:0;padding:14px}.message-scroll{flex:1;max-height:430px;overflow:auto;padding:8px}.bubble{max-width:78%;padding:10px 13px;border-radius:15px;background:#eff2f7;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.mine{margin-left:auto;background:#e5efff}.message-compose{display:flex;gap:8px;border-top:1px solid var(--line);padding-top:12px}.message-compose input{flex:1;min-width:0;border:1px solid #dce3ed;border-radius:99px;padding:11px 14px}.modal-backdrop{position:fixed;inset:0;background:#06142ccc;z-index:100;display:grid;place-items:center;padding:14px}.modal{width:min(620px,100%);max-height:92dvh;overflow:auto;background:#fff;border-radius:22px;padding:22px;box-shadow:0 30px 90px #0004}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-head h2{margin:0;font-size:21px}.modal-close{border:0;background:#f0f3f8;border-radius:50%;width:38px;height:38px;font-size:18px}.upload-preview{max-width:100%;max-height:240px;object-fit:contain;border-radius:12px}.toast-wrap{position:fixed;z-index:200;bottom:24px;left:50%;transform:translateX(-50%);display:grid;gap:8px;width:min(92vw,420px)}.toast{box-shadow:var(--shadow);margin:0;background:#142b50;color:#fff}.badge{font-size:11px;background:#eef4ff;color:#285db4;border-radius:99px;padding:4px 8px;font-weight:800}.setting-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.setting-line:last-child{border:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.file-input{font-size:13px}.loading{padding:26px;text-align:center;color:var(--muted)}@media(max-width:1120px){.layout{grid-template-columns:210px minmax(0,1fr)}.right-rail{display:none}.topbar{grid-template-columns:220px minmax(160px,1fr) 220px}}@media(max-width:720px){body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}.auth-screen{grid-template-columns:1fr;padding:18px;gap:16px}.auth-hero{text-align:center}.auth-hero h1{font-size:38px;margin:20px 0 10px}.auth-hero p{font-size:14px;margin:auto}.auth-pills{justify-content:center;margin-top:16px}.auth-pills span{font-size:11px;padding:7px 10px}.auth-card{width:100%;padding:22px;border-radius:20px}.topbar{height:58px;grid-template-columns:auto minmax(0,1fr) auto;padding:0 10px;gap:9px}.brand-word{font-size:14px}.brand-logo{width:34px;height:34px}.topbar .searchbox{padding:0 11px}.topbar .searchbox input{font-size:12px}.top-actions{gap:4px}.top-actions .icon-btn{width:36px;height:36px;font-size:16px}.top-actions .user-chip span{display:none}.layout{display:block;margin:10px auto;padding:0 9px}.left-rail,.right-rail{display:none}.page-head h1{font-size:21px}.stories{padding:12px 8px;gap:8px}.story{flex-basis:72px}.story-ring{width:58px;height:58px}.story-name{font-size:10px}.composer,.post-card{padding:13px;border-radius:15px}.composer-actions button{font-size:12px;padding:8px}.post-body{font-size:14px}.mobile-nav{position:fixed;display:flex;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);padding:7px 4px calc(7px + env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -5px 22px #0e23400b}.mobile-nav button{border:0;background:transparent;color:#728097;display:grid;gap:2px;place-items:center;font-size:10px;font-weight:750;min-width:48px;min-height:48px;border-radius:10px}.mobile-nav button span:first-child{font-size:19px}.mobile-nav button.active{color:var(--blue);background:#eef4ff}.profile-cover{height:170px}.profile-identity{gap:10px;margin-top:-44px}.profile-identity .avatar{width:88px;height:88px;flex-basis:88px}.profile-info h2{font-size:20px}.profile-grid{grid-template-columns:1fr}.message-layout{grid-template-columns:1fr}.message-list{border:0;border-bottom:1px solid var(--line);display:flex;overflow:auto;max-height:120px}.message-list .list-item{min-width:190px;border:0;padding:6px}.message-thread{min-height:420px;padding:10px}.message-scroll{max-height:350px}.form-grid{grid-template-columns:1fr}.modal{padding:17px;border-radius:18px}.tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.post-actions button{font-size:12px}.profile-stats{gap:14px}.profile-stats strong{font-size:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
:root[data-theme="dark"]{--ink:#e7edf7;--muted:#a6b2c5;--line:#2a3b55;--paper:#0b1424;--white:#111f33;--shadow:0 12px 38px #0004}
:root[data-theme="dark"] body,:root[data-theme="dark"] html{background:var(--paper);color:var(--ink)}
:root[data-theme="dark"] .topbar,:root[data-theme="dark"] .rail-card,:root[data-theme="dark"] .card,:root[data-theme="dark"] .composer,:root[data-theme="dark"] .post-card,:root[data-theme="dark"] .modal{background:var(--white);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .nav-item,:root[data-theme="dark"] .ghost,:root[data-theme="dark"] .user-chip{color:var(--ink)}
:root[data-theme="dark"] .searchbox,:root[data-theme="dark"] .icon-btn,:root[data-theme="dark"] .secondary{background:#1b2a40;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .searchbox input{background:#0b1424;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .mobile-nav{background:var(--white);border-color:var(--line)}

.shared-post-preview{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.shared-post-preview p{margin:7px 0}
.shared-post-preview .post-media{max-height:360px}

/* Mobile viewport safety: prevent accidental horizontal clipping and phantom frame edges. */
html,body{width:100%;min-height:100%;margin:0;max-width:100%;overflow-x:hidden}
.app-shell{width:100%;max-width:100%;min-width:0;overflow-x:clip;border:0;outline:0;box-shadow:none}
.layout,.topbar,.content{min-width:0;max-width:100%}
@media(max-width:720px){.topbar{width:100%;max-width:100%;}.layout{width:100%;}.modal-backdrop{width:100%;max-width:100%;}}

/* CONNECT home polish: remove the programmatic-focus frame and give Stories a familiar card layout. */
#mainContent:focus,.content:focus{outline:0!important;box-shadow:none!important}
#appShell,.app-shell,.screen{border:0!important;outline:0!important}
.stories{align-items:stretch;gap:10px;padding:12px;overflow-x:auto;overscroll-behavior-x:contain}
.story{flex:0 0 108px;display:flex;flex-direction:column;gap:7px;min-width:0;text-align:left}
.story-visual{height:158px;width:100%;position:relative;display:block;overflow:hidden;border-radius:13px;background:linear-gradient(155deg,#163d78,#3479d9 55%,#8ab7f4);box-shadow:0 2px 9px #10254a18}
.story-visual>img,.story-visual>video{width:100%;height:100%;object-fit:cover;display:block}
.story-text{position:absolute;inset:0;display:grid;place-items:center;padding:12px;color:#fff;font-size:13px;font-weight:750;text-align:center;overflow:hidden}
.story-avatar{position:absolute;top:9px;left:9px;width:37px;height:37px;border-radius:50%;padding:2px;background:linear-gradient(135deg,#2e79f6,#bd45a4,#f7a23a)}
.story-avatar .avatar,.story-avatar img{width:100%;height:100%;border:2px solid #fff}
.story-name{font-size:11px;line-height:1.25;padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.story-create-visual{background:#eaf1fc;display:flex;align-items:flex-start;justify-content:center;padding-top:0}
.story-create-visual>.avatar{width:100%;height:100%;border:0;border-radius:0;opacity:.9}
.story-add{position:absolute;bottom:0;left:0;right:0;height:43px;display:grid;place-items:center;background:#2868e8;color:#fff;border:3px solid #fff;border-radius:0 0 12px 12px;font-size:25px;font-weight:500}
.story-create .story-name{font-weight:800;text-align:center}
.story-viewer{position:relative;min-height:430px;max-height:78dvh;max-width:420px;margin:-8px auto;background:#07152f;border-radius:18px;overflow:hidden;color:#fff;display:flex;flex-direction:column}
.story-viewer .story-progress{height:3px;background:#ffffff50;margin:12px 12px 8px;border-radius:10px;overflow:hidden}
.story-viewer .story-progress span{display:block;width:100%;height:100%;background:#fff}
.story-view-head{display:flex;align-items:center;gap:9px;padding:4px 14px 12px}
.story-view-head .avatar{width:36px;height:36px;flex-basis:36px;border:2px solid #fff}
.story-view-head>div{flex:1;min-width:0}
.story-view-head strong,.story-view-head small{display:block}
.story-view-head small{color:#d4deef;font-size:11px}
.story-view-head .ghost{color:#fff;font-size:24px}
.story-view-media{width:100%;max-height:62dvh;object-fit:contain;background:#000;flex:1;min-height:230px}
.story-view-text{flex:1;min-height:300px;display:grid;place-items:center;text-align:center;padding:35px;font-size:24px;font-weight:800;line-height:1.25;background:linear-gradient(145deg,#173b70,#2868e8,#8d55a7)}
.story-caption{padding:12px 16px;margin:0;color:#fff;background:#07152f}
@media(max-width:720px){
 .stories{padding:10px 8px;gap:9px}
 .story{flex-basis:102px}
 .story-visual{height:150px}
 .story-viewer{min-height:60dvh;max-height:80dvh;margin:-5px}
 .story-view-media{max-height:65dvh}
}


/* Facebook-familiar CONNECT top navigation and creation studio */
.topbar{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:0 max(16px,calc((100vw - 1480px)/2))}
.topbar .searchbox{display:none;position:absolute;right:190px;top:12px;width:min(420px,42vw);z-index:2;box-shadow:0 8px 28px #10254a18}
.topbar.search-open .searchbox{display:flex}
.top-actions{gap:10px}
.top-actions .icon-btn{width:44px;height:44px;font-size:25px;color:#263b5d;background:#eef2f7}
.top-actions .icon-btn svg{width:22px;height:22px;display:block}
.top-actions .create-icon{font-size:30px;font-weight:500;color:#1d5fc9;background:#eaf1fc}
.home-page-head{margin-bottom:12px}
.create-studio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.create-studio-option{min-height:116px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:11px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink)}
.create-studio-option:hover:not(:disabled){background:#f5f8fe;border-color:#c8d9f5}
.create-studio-option .studio-symbol{grid-row:1/3;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:22px;font-weight:800;background:#eaf1fc;color:#2868e8}
.create-studio-option strong{font-size:14px}
.create-studio-option small{font-size:11px;color:var(--muted);line-height:1.35}
.create-studio-option .photo-symbol{background:#e9f8f1;color:#0b9b71}
.create-studio-option .video-symbol,.create-studio-option .reel-symbol{background:#f2edff;color:#7952c7}
.create-studio-option .story-symbol{background:#fff0f5;color:#d94b83}
.create-studio-option .live-symbol{background:#f1f3f6;color:#c33b4a}
.create-studio-option.is-unavailable{opacity:.58;cursor:not-allowed}
.connect-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}
.connect-menu-grid button{display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#31527f;text-align:left;font-size:20px}
.connect-menu-grid button span{font-size:13px;font-weight:700;color:var(--ink)}
@media(max-width:720px){
 .topbar{height:60px;grid-template-columns:minmax(0,1fr) auto;padding:0 10px;gap:7px}
 .topbar .searchbox{top:60px;left:8px;right:8px;width:auto;max-width:none;background:#fff}
 .top-actions{gap:6px}
 .top-actions .icon-btn{width:38px;height:38px;font-size:24px}
 .top-actions .icon-btn svg{width:21px;height:21px}
 .brand-word{font-size:13px;letter-spacing:.07em}
 .brand-logo{width:32px;height:32px}
 .create-studio-grid{gap:8px}
 .create-studio-option{min-height:104px;padding:10px;grid-template-columns:36px 1fr;column-gap:8px}
 .create-studio-option .studio-symbol{width:36px;height:36px}
 .connect-menu-grid{gap:7px}
}
@media(max-width:360px){.brand-word{font-size:11px}.top-actions{gap:4px}.top-actions .icon-btn{width:35px;height:35px}}


/* Stories: grouped friend tray, clear creation card and focused full-screen viewer */
.stories{display:flex;align-items:stretch;gap:10px;padding:14px;overflow-x:auto;scrollbar-width:thin;background:var(--white)}
.story{flex:0 0 112px;display:flex;flex-direction:column;gap:7px;min-width:0;text-align:left;padding:0;border:0;background:transparent;color:var(--ink);cursor:pointer}
.story-visual{height:164px;width:100%;position:relative;display:block;overflow:hidden;border-radius:13px;background:linear-gradient(155deg,#163d78,#3479d9 55%,#8ab7f4);box-shadow:0 2px 9px #10254a18}
.story-visual>img,.story-visual>video{width:100%;height:100%;object-fit:cover;display:block}
.story-text{position:absolute;inset:0;display:grid;place-items:center;padding:12px;color:#fff;font-size:13px;font-weight:750;text-align:center;overflow:hidden;line-height:1.35;background:linear-gradient(145deg,#183e75,#2868e8,#8d55a7)}
.story-avatar{position:absolute;top:9px;left:9px;width:39px;height:39px;border-radius:50%;padding:2px;background:linear-gradient(135deg,#1877f2,#b94aa5,#f5a33c);box-shadow:0 1px 5px #0004}
.story-avatar .avatar,.story-avatar img{width:100%;height:100%;border:2px solid #fff}
.story-name{font-size:12px;line-height:1.25;padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}
.story-create-visual{background:#eaf1fc;display:flex;align-items:flex-start;justify-content:center;padding-top:0}
.story-create-visual>.avatar{width:100%;height:100%;border:0;border-radius:0;opacity:.9}
.story-add{position:absolute;bottom:0;left:0;right:0;height:43px;display:grid;place-items:center;background:#2868e8;color:#fff;border:3px solid var(--white);border-radius:0 0 12px 12px;font-size:27px;font-weight:500}
.story-count{position:absolute;right:7px;bottom:7px;min-width:22px;height:22px;padding:0 5px;border-radius:12px;background:#fff;color:#1c5fc4;font-size:11px;font-weight:800;display:grid;place-items:center}
.story-own .story-visual{outline:3px solid #2874e8;outline-offset:-3px}
.stories-empty{align-self:center;min-width:190px;max-width:250px;color:var(--muted);font-size:12px;line-height:1.4;padding:8px}
.story-viewer{position:relative;min-height:530px;height:min(78dvh,760px);max-height:82dvh;max-width:480px;margin:-8px auto;background:#07152f;border-radius:18px;overflow:hidden;color:#fff;display:flex;flex-direction:column}
.story-progress{height:3px;display:flex;gap:3px;margin:12px 12px 8px;border-radius:10px;overflow:hidden}
.story-progress span{display:block;flex:1;background:#ffffff55}
.story-progress span.done,.story-progress span.current{background:#fff}
.story-view-head{display:flex;align-items:center;gap:9px;padding:4px 14px 12px;z-index:2}
.story-view-head .avatar{width:36px;height:36px;flex-basis:36px;border:2px solid #fff}
.story-view-head>div{flex:1;min-width:0}
.story-view-head strong,.story-view-head small{display:block}
.story-view-head small{color:#d4deef;font-size:11px}
.story-view-head .ghost{color:#fff;font-size:25px}
.story-view-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#000}
.story-view-media{width:100%;height:100%;max-height:100%;object-fit:contain;background:#000}
.story-view-text{width:100%;height:100%;min-height:300px;display:grid;place-items:center;text-align:center;padding:35px;font-size:26px;font-weight:800;line-height:1.25;background:linear-gradient(145deg,#173b70,#2868e8,#8d55a7)}
.story-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:48px;border:0;border-radius:24px;background:#07152f99;color:#fff;font-size:32px;display:grid;place-items:center}
.story-nav:disabled{opacity:.2}
.story-nav-prev{left:9px}.story-nav-next{right:9px}
.story-caption{padding:10px 16px;margin:0;color:#fff;background:#07152f}
.story-view-footer{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#07152f}
.story-reply{flex:1;min-width:0;border:1px solid #ffffff9c;border-radius:22px;padding:10px 14px;background:transparent;color:#fff;text-align:left}
.story-position{font-size:11px;color:#d4deef;white-space:nowrap}
@media(max-width:720px){
 .stories{padding:12px 9px;gap:9px;border-radius:12px}
 .story{flex-basis:106px}
 .story-visual{height:158px}
 .story-viewer{min-height:0;height:calc(100dvh - 90px);max-height:86dvh;margin:-5px;border-radius:14px}
 .story-view-text{min-height:250px;font-size:23px}
 .story-view-media{max-height:none}
 .story-nav{width:34px;height:42px}
}


/* Native-feeling navigation gestures: vertical pull refresh, horizontal edge back. */
html,body{overscroll-behavior-y:contain}
#appShell{touch-action:pan-y pinch-zoom}
#mainContent{touch-action:pan-y pinch-zoom}
.stories{touch-action:pan-x pan-y}
.story-viewer{touch-action:pan-y}
.modal-backdrop{overscroll-behavior:contain}

/* Story viewer playback and touch controls */
.story-progress span{position:relative;overflow:hidden;background:#ffffff55}
.story-progress span i{position:absolute;inset:0 auto 0 0;width:0;background:#fff;transition:width 6.5s linear}
.story-progress span.done i{width:100%}
.story-own-label{flex:1;color:#d4deef;font-size:13px;padding:10px 4px}
.story-view-stage{touch-action:pan-y}
.story-nav{z-index:3;min-width:44px;min-height:48px}
@media(max-width:720px){.story{flex-basis:104px}.story-visual{height:156px}.story-viewer{width:100%}}

/* Restore native vertical page scrolling and reliable pull-to-refresh on mobile */
html,body{height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:pan-y pinch-zoom!important}
body{position:relative!important}
#appShell,.app-shell{height:auto!important;min-height:100dvh!important;overflow-x:clip!important;overflow-y:visible!important;touch-action:pan-y pinch-zoom!important}
#mainContent,.content,.layout{height:auto!important;min-height:0!important;overflow:visible!important;touch-action:pan-y pinch-zoom!important}
.screen{height:auto!important;min-height:0!important;overflow:visible!important}
.modal-backdrop{touch-action:pan-y pinch-zoom}
.stories{touch-action:pan-x pan-y pinch-zoom}
.post-composer-identity{gap:11px;padding:4px 0 10px}
.post-composer-identity>div{display:grid;gap:2px}
.post-composer-identity small{font-size:12px}
/* Facebook-style Create Story card: large profile photo above a white footer, with the add button fixed at the photo/footer boundary. */
.story-create-visual{position:relative;background:#fff!important;display:block!important;padding:0!important}
.story-create-photo{position:absolute;top:0;left:0;right:0;width:100%;height:68%;border-radius:12px 12px 0 0;display:block;overflow:hidden;box-shadow:none}
.story-create-photo>.avatar{display:block;width:100%;height:100%;flex-basis:auto;border:0;border-radius:0;opacity:1}
.story-create-photo .avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.story-create-photo>.avatar:not(:has(img)){display:grid;place-items:center;background:linear-gradient(145deg,#dbeafe,#9dbef0);font-size:38px;font-weight:800;color:#174b91}
.story-add{position:absolute!important;left:50%!important;right:auto!important;top:68%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:40px;height:40px!important;border:3px solid #fff!important;border-radius:50%!important;background:#1877f2!important;color:#fff!important;display:grid;place-items:center;font-size:27px!important;line-height:1;box-shadow:0 2px 8px #10254a30}
.story-create .story-name{text-align:center!important;font-size:12px!important;font-weight:750!important}
@media(max-width:720px){
 body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
 #appShell,.app-shell{padding-bottom:0}
 .layout{padding-bottom:12px}
}


/* Public profile About details */
.about-details{display:grid;gap:0;margin:10px 0 14px}.about-detail{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(0,1.3fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);align-items:start}.about-detail:last-child{border-bottom:0}.about-detail strong{font-weight:650;overflow-wrap:anywhere}.about-public-toggle{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-top:6px}.about-public-toggle input{width:17px;height:17px;min-width:17px}

/* Facebook-style, touch-friendly post composer */
.modal-backdrop:has(.connect-post-composer){align-items:center;padding:14px;overscroll-behavior:contain}
.modal:has(.connect-post-composer){width:min(560px,100%);max-height:min(88dvh,760px);padding:0;overflow-y:auto;overscroll-behavior:contain;border:1px solid #e4e8ef;border-radius:18px}
.modal:has(.connect-post-composer)>.modal-head{display:none}
.connect-post-composer{display:flex;flex-direction:column;gap:0;min-height:0}
.connect-post-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e8ebf0}
.connect-post-author{display:flex;align-items:center;gap:11px;min-width:0}
.connect-post-author-meta{display:grid;gap:5px;min-width:0}
.connect-post-author-meta>strong{font-size:15px;color:#182230;line-height:1.2}
.connect-audience-wrap{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:3px 8px;border-radius:7px;background:#eef2f7;color:#35445a;font-size:12px;font-weight:700}
.connect-audience-wrap select{appearance:none;border:0;background:transparent;color:inherit;font:inherit;outline:0;max-width:155px;min-height:22px;padding:0 14px 0 0;cursor:pointer}
.connect-audience-chevron{margin-left:-17px;pointer-events:none}
.connect-post-top .modal-close{flex:0 0 38px}
.connect-post-textarea{display:block;width:100%;min-height:170px;max-height:38dvh;resize:vertical;border:0!important;border-radius:0!important;padding:20px 20px 16px!important;background:#fff!important;color:#182230!important;font-size:19px!important;line-height:1.5;outline:none!important;box-shadow:none!important;touch-action:pan-y!important;pointer-events:auto!important;user-select:text!important;-webkit-user-select:text!important;caret-color:#1877f2}
.connect-post-textarea::placeholder{color:#8792a2;opacity:1}
.connect-post-media-preview{position:relative;margin:0 16px 14px;padding:8px;border:1px solid #e5e9ef;border-radius:12px;background:#f7f9fc}
.connect-post-media-preview .upload-preview{display:block;width:100%;max-height:300px;object-fit:contain}
.connect-remove-media{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#182230;color:#fff;font-size:22px}
.connect-add-post{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 16px 14px;padding:10px 12px;border:1px solid #dfe4eb;border-radius:12px}
.connect-add-post>strong{font-size:13px;color:#35445a}
.connect-add-photo{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:9px;background:#eaf7ef;color:#16834a;padding:9px 12px;font-weight:750;min-height:42px}
.connect-add-photo span:first-child{font-size:19px}
.connect-post-submit{padding:0 16px 16px}
.connect-post-submit .primary{min-height:46px;font-size:15px}
.connect-post-composer .auth-message{margin:0 16px 12px}
@media(max-width:600px){
 .modal-backdrop:has(.connect-post-composer){align-items:flex-start;padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom))}
 .modal:has(.connect-post-composer){width:100%;max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:16px}
 .connect-post-top{padding:13px 14px}
 .connect-post-textarea{min-height:34dvh;max-height:42dvh;padding:18px 15px!important;font-size:18px!important}
 .connect-add-post{margin:4px 12px 12px}
 .connect-post-submit{padding:0 12px 12px}
}
/* New Post studio layout */
.modal-backdrop:has(.connect-post-composer){align-items:center;padding:12px}
.modal:has(.connect-post-composer){width:min(590px,100%);max-height:min(94dvh,820px);padding:0 20px 18px;border-radius:16px;overflow-y:auto;overscroll-behavior:contain}
.connect-post-composer{display:flex;flex-direction:column;gap:0;min-width:0}
.connect-new-post-head{height:58px;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #e6e9ef;margin:0 -20px 15px}
.connect-new-post-head>span{font-size:18px;font-weight:800;color:#1c2736}
.connect-new-post-head .modal-close{position:absolute;right:14px;top:10px}
.connect-post-author{display:flex;align-items:center;gap:11px;margin-bottom:13px}
.connect-post-avatar .avatar{width:46px;height:46px;flex-basis:46px}
.connect-post-author-meta{display:grid;gap:5px}
.connect-post-author-meta strong{font-size:15px;color:#202b3b}
.connect-audience-wrap{display:inline-flex;align-items:center;background:#edf1f6;border-radius:7px;padding:2px 8px;width:max-content}
.connect-audience-wrap select{appearance:none;border:0;background:transparent;color:#34445a;font-size:12px;font-weight:750;min-height:25px;outline:0;padding:0;cursor:pointer}
.connect-post-tools-vertical{display:grid;gap:0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:4px 0;margin-bottom:8px}
.connect-post-tool{display:flex;align-items:center;gap:12px;min-height:39px;text-align:left;border:0;background:transparent;color:#6b7585;font-size:13px;padding:5px 3px}
.connect-post-tool span{width:24px;text-align:center;font-size:19px;color:#65758c}
.connect-post-tool:disabled,.connect-attachment:disabled{opacity:.8;cursor:not-allowed}
.connect-post-writing{display:flex;align-items:flex-start;gap:10px;min-height:190px;padding:9px 0 14px}
.connect-writing-author .avatar{width:38px;height:38px;flex-basis:38px}
.connect-post-writing textarea{flex:1;min-width:0;min-height:175px;resize:vertical;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;color:#172234!important;padding:8px 2px!important;font-size:19px!important;line-height:1.5;touch-action:pan-y!important;pointer-events:auto!important;user-select:text!important;-webkit-user-select:text!important;caret-color:#1877f2}
.connect-post-writing textarea::placeholder{color:#929cab;opacity:1}
.connect-post-media-preview{position:relative;margin:0 0 12px;padding:8px;border:1px solid #e3e8ef;border-radius:12px;background:#f7f9fc}
.connect-post-media-preview .upload-preview{display:block;width:100%;max-height:260px;object-fit:contain}
.connect-remove-media{position:absolute;right:13px;top:13px;width:34px;height:34px;border:0;border-radius:50%;background:#172234;color:#fff;font-size:22px}
.connect-post-attachments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px 0;margin:0 0 12px;border:1px solid #e1e6ed;border-radius:12px}
.connect-attachment{min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#58677c;font-size:11px;font-weight:650;text-align:center;line-height:1.2}
.connect-attachment>span{font-size:20px;font-weight:800;color:#26945b}
.connect-gallery>span{color:#219653}
.connect-post-submit{min-height:46px;font-size:15px}
.connect-post-composer .auth-message{margin:0 0 12px}
@media(max-width:600px){
 .modal-backdrop:has(.connect-post-composer){align-items:flex-start;padding:calc(6px + env(safe-area-inset-top)) 6px calc(6px + env(safe-area-inset-bottom))}
 .modal:has(.connect-post-composer){width:100%;max-height:calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0 14px 14px;border-radius:14px}
 .connect-new-post-head{margin:0 -14px 12px}
 .connect-post-writing{min-height:180px}
 .connect-post-writing textarea{min-height:165px;font-size:18px!important}
 .connect-post-attachments{gap:2px}
 .connect-attachment{font-size:10px}
}

/* Rich composer tools, audio posts and live broadcast surfaces */
.connect-post-tool:not(:disabled),.connect-attachment:not(:disabled){cursor:pointer;color:#34445a}
.connect-post-tool:not(:disabled):hover,.connect-attachment:not(:disabled):hover{background:#f1f6ff;color:#1d5fc9;border-radius:9px}
.connect-composer-panel{padding:11px;margin:0 0 10px;border:1px solid #e2e8f0;border-radius:12px;background:#f8faff;display:grid;gap:8px}
.connect-composer-panel label{font-size:12px;font-weight:750;color:#47566e}
.connect-composer-panel input,.connect-composer-panel select{width:100%;min-height:42px;border:1px solid #dce3ed;border-radius:9px;padding:9px 11px;background:#fff;color:#17243b}
.connect-inline-field{display:flex;gap:7px;align-items:center}
.connect-inline-field input{min-width:0;flex:1}
.connect-inline-field button{white-space:nowrap;min-height:42px;font-size:12px;padding:8px}
.connect-tag-results{display:grid;gap:4px;max-height:190px;overflow:auto}
.connect-tag-result{display:flex;align-items:center;gap:9px;padding:7px;border:0;border-radius:9px;background:#fff;text-align:left;color:#17243b}
.connect-tag-result:hover{background:#edf4ff}
.connect-tag-chips{display:flex;flex-wrap:wrap;gap:6px}
.connect-tag-chip{display:inline-flex;align-items:center;gap:6px;background:#eaf1fc;color:#244f91;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:700}
.connect-tag-chip button{border:0;background:transparent;color:inherit;font-size:16px;padding:0 2px}
.connect-background-options{display:flex;gap:8px;flex-wrap:wrap}
.connect-background-options button{width:34px;height:34px;border:2px solid #d9e0ea;border-radius:50%;color:#31517e;font-weight:800;display:grid;place-items:center;background:#fff}
.connect-background-options button.active{outline:2px solid #2868e8;outline-offset:2px}
.connect-audio-preview{display:grid;gap:8px;padding:12px;margin:0 0 12px;border:1px solid #dce5f0;border-radius:12px;background:#f8faff}
.connect-audio-preview audio,.post-audio{width:100%;max-width:100%}
.post-audio{display:block;margin:12px 0}
.post-metadata{display:flex;flex-wrap:wrap;gap:7px 12px;padding:7px 0;color:#65748a;font-size:12px}
.connect-feature-note{font-size:11px;line-height:1.4;color:#8792a2;margin:-3px 0 10px}
.connect-live-divider{height:1px;background:var(--line);margin:17px 0}
.connect-live-view{display:grid;gap:10px}
.connect-live-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:180px;background:#07152f;border-radius:13px;padding:8px}
.connect-live-video{width:100%;max-height:60dvh;object-fit:contain;background:#000;border-radius:9px}
.connect-live-audio{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.connect-live-local{outline:2px solid #28a36b}
@media(max-width:600px){
 .connect-inline-field{align-items:stretch;flex-direction:column}
 .connect-inline-field button{width:100%}
 .connect-live-video-grid{grid-template-columns:1fr}
 .connect-live-video{max-height:45dvh}
 .connect-post-attachments{grid-template-columns:repeat(4,minmax(0,1fr))}
}
:root[data-theme="dark"] .connect-composer-panel,:root[data-theme="dark"] .connect-audio-preview{background:#13243a;border-color:var(--line)}
:root[data-theme="dark"] .connect-composer-panel input,:root[data-theme="dark"] .connect-composer-panel select,:root[data-theme="dark"] .connect-tag-result{background:#0b1424;color:var(--ink);border-color:var(--line)}


/* Facebook-inspired interaction pass: reliable modal actions, full-screen composer and consistent iconography */
.modal-backdrop:has(.create-studio-grid){padding:12px;place-items:center}
.modal:has(.create-studio-grid){width:min(680px,100%);padding:22px}
.create-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.create-studio-option{min-height:96px;grid-template-columns:48px 1fr;grid-template-rows:auto auto;column-gap:13px;border:1px solid #e4e8ee;background:#fff;border-radius:14px;padding:14px;transition:background .15s,border-color .15s,transform .15s}
.create-studio-option:active{transform:scale(.985)}
.create-studio-option .studio-symbol{width:44px;height:44px;grid-row:1/3;border-radius:12px;background:#edf3ff;color:#1877f2}
.create-studio-option .studio-symbol svg{width:24px;height:24px;display:block}
.create-studio-option .photo-symbol{background:#e9f8ef;color:#16a05a}
.create-studio-option .video-symbol,.create-studio-option .reel-symbol{background:#f1edff;color:#7655c8}
.create-studio-option .story-symbol{background:#fff0f4;color:#d64b80}
.create-studio-option .live-symbol{background:#fff0f0;color:#e53945}
.create-studio-option .live-symbol svg path{stroke:#e53945}
.connect-post-composer{width:100%;display:flex;flex-direction:column;min-height:100%;gap:0}
.modal-backdrop:has(.connect-post-composer){padding:0;place-items:stretch}
.modal:has(.connect-post-composer){width:100%;height:100%;max-width:none;max-height:none;min-height:100%;padding:0;border:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain;box-shadow:none}
.connect-new-post-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:center;min-height:62px;padding:10px 58px;border-bottom:1px solid #e5e8ed;background:#fff;color:#1c1e21;font-size:20px;font-weight:750}
.connect-new-post-head .modal-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border-radius:50%;background:#e4e6eb;color:#3d4148;font-size:25px;line-height:1}
.connect-post-author{padding:14px 20px 10px;gap:11px}
.connect-post-author-meta>strong{font-size:15px;font-weight:700;color:#1c1e21}
.connect-audience-wrap{background:#e4e6eb;border-radius:6px;padding:3px 8px}
.connect-post-tools{display:flex;align-items:stretch;gap:4px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:8px 16px;margin:0 0 4px;border-top:1px solid #e4e6eb;border-bottom:1px solid #e4e6eb;scrollbar-width:none}
.connect-post-tools::-webkit-scrollbar{display:none}
.connect-post-tool{flex:1 0 auto;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:7px 10px;border:0;border-radius:9px;background:transparent;color:#344054;font-size:13px;font-weight:650;white-space:nowrap}
.connect-post-tool .composer-tool-icon{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px}
.connect-post-tool .composer-tool-icon svg{width:19px;height:19px;display:block}
.connect-post-tool:hover{background:#f0f2f5}
.connect-composer-panel{margin:8px 16px;padding:13px;border:1px solid #e4e6eb;border-radius:12px;background:#f7f8fa}
.connect-post-writing{display:block;min-height:42vh;padding:8px 20px 18px;margin:0;background:transparent;transition:background .15s ease}
.connect-post-writing textarea{display:block;width:100%;min-height:40vh;height:40vh;max-height:none;resize:vertical;padding:14px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#1c1e21!important;font-family:Arial,Helvetica,sans-serif!important;font-size:20px!important;font-weight:400!important;line-height:1.48!important;letter-spacing:0!important;outline:none!important;box-shadow:none!important}
.connect-post-writing textarea::placeholder{color:#65676b;opacity:1}
.connect-post-writing[data-has-background="true"]{border-radius:0;margin:0 12px 12px;padding:12px 16px}
.connect-post-writing[data-has-background="true"] textarea{color:inherit!important}
.connect-post-attachments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:10px 8px;margin:0 16px 14px;border:1px solid #e4e6eb;border-radius:12px;background:#fff}
.connect-attachment{min-width:0;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;border-radius:9px;background:transparent;color:#4b5563;font-size:12px;font-weight:650;line-height:1.15}
.connect-attachment:hover{background:#f0f2f5}
.connect-attachment .attachment-icon{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;color:#65676b}
.connect-attachment .attachment-icon svg{display:block;width:25px;height:25px}
.connect-attachment .attachment-label{font-size:11px;white-space:nowrap}
.connect-attachment.connect-gallery .attachment-icon{color:#269b5b}
.connect-attachment .whatsapp-attachment-icon{color:#20a65a}
.connect-attachment .live-attachment-icon{color:#e53945}
.connect-attachment .live-attachment-icon svg path{stroke:#e53945}
.connect-post-media-preview,.connect-audio-preview{margin-left:16px;margin-right:16px}
.connect-feature-note{padding:0 18px}
.connect-post-submit{margin:0 16px 18px;width:calc(100% - 32px);min-height:48px;border-radius:9px;font-size:16px}
.connect-post-composer .auth-message{margin:0 16px 12px}
@media(max-width:600px){
 .modal-backdrop:has(.connect-post-composer){padding:0}
 .modal:has(.connect-post-composer){width:100vw;height:100dvh;max-height:100dvh;min-height:100dvh;padding:0;border-radius:0}
 .connect-new-post-head{min-height:56px;font-size:18px;padding-left:52px;padding-right:52px}
 .connect-post-author{padding:12px 14px 9px}
 .connect-post-tools{padding:6px 8px;gap:2px}
 .connect-post-tool{padding:7px 8px;font-size:12px;min-height:40px}
 .connect-post-writing{min-height:42vh;padding:8px 14px 14px}
 .connect-post-writing textarea{height:40vh;min-height:38vh;font-size:19px!important;padding:10px 2px!important}
 .connect-post-attachments{margin-left:10px;margin-right:10px;padding:8px 4px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}
 .connect-attachment{min-height:68px;gap:5px}
 .connect-attachment .attachment-icon{width:25px;height:25px}
 .connect-attachment .attachment-icon svg{width:23px;height:23px}
 .connect-attachment .attachment-label{font-size:10px}
}
@media(min-width:900px){
 .modal-backdrop:has(.connect-post-composer){padding:0}
 .modal:has(.connect-post-composer){width:min(900px,100vw);height:100dvh;max-height:100dvh;margin:0 auto}
 .connect-post-writing{min-height:48vh}
 .connect-post-writing textarea{height:46vh;min-height:44vh}
}
:root[data-theme="dark"] .connect-new-post-head,:root[data-theme="dark"] .connect-post-attachments{background:var(--white);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .connect-post-writing textarea{color:var(--ink)!important}
:root[data-theme="dark"] .connect-post-writing textarea::placeholder{color:#a6b2c5}
:root[data-theme="dark"] .connect-post-tool{color:var(--ink)}
:root[data-theme="dark"] .connect-post-tool:hover,:root[data-theme="dark"] .connect-attachment:hover{background:#1d2d43}


/* Compact, non-overlapping composer tools */
.connect-post-tools{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 align-items:stretch!important;
 gap:3px!important;
 width:100%;
 min-width:0;
 overflow:hidden!important;
 padding:7px 8px!important;
}
.connect-post-tool{
 display:flex!important;
 flex:initial!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 gap:4px!important;
 min-width:0!important;
 width:100%;
 min-height:56px!important;
 padding:6px 2px!important;
 white-space:normal!important;
 text-align:center!important;
 font-size:10.5px!important;
 line-height:1.15!important;
 overflow-wrap:anywhere;
}
.connect-post-tool .composer-tool-icon{
 width:19px!important;
 height:19px!important;
 flex:0 0 19px!important;
}
.connect-post-tool .composer-tool-icon svg{width:18px!important;height:18px!important}
.connect-post-tool>span:last-child{
 display:block;
 max-width:100%;
 overflow-wrap:anywhere;
}

/* Full-screen CONNECT Live Studio */
.modal-backdrop:has(.connect-live-studio){
 position:fixed!important;
 inset:0!important;
 display:grid!important;
 place-items:stretch!important;
 padding:0!important;
 overflow:hidden!important;
 background:rgba(5,12,25,.72)!important;
 z-index:10000!important;
}
.modal:has(.connect-live-studio){
 width:100vw!important;
 max-width:none!important;
 height:100dvh!important;
 max-height:100dvh!important;
 min-height:100dvh!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 overflow-y:auto!important;
 overscroll-behavior:contain;
 background:#f0f2f5!important;
 color:#1c1e21!important;
 box-shadow:none!important;
}
.connect-live-studio{
 display:flex;
 flex-direction:column;
 min-height:100dvh;
 width:100%;
 background:#f0f2f5;
 color:#1c1e21;
}
.connect-live-studio-head{
 position:sticky;
 top:0;
 z-index:5;
 display:flex;
 align-items:center;
 justify-content:space-between;
 min-height:62px;
 padding:10px 22px;
 background:#fff;
 border-bottom:1px solid #e4e6eb;
}
.connect-live-brand{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.02em}
.connect-live-dot{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#e53945;box-shadow:0 0 0 4px #ffebed}
.connect-live-close{width:40px;height:40px;border:0;border-radius:50%;background:#e4e6eb;color:#30343b;font-size:27px;line-height:1}
.connect-live-studio-layout{
 display:grid;
 grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);
 gap:22px;
 width:min(1240px,100%);
 margin:0 auto;
 padding:24px;
 align-items:start;
}
.connect-live-setup-main{min-width:0}
.connect-live-preview-frame{
 position:relative;
 width:100%;
 aspect-ratio:16/9;
 min-height:250px;
 overflow:hidden;
 border-radius:16px;
 background:#101827;
 box-shadow:0 8px 28px #11182718;
}
.connect-live-camera-preview{
 display:block;
 width:100%;
 height:100%;
 object-fit:cover;
 background:#101827;
}
#connectLiveCameraPreview{position:absolute;inset:0}
#connectLiveCameraPreview:not(.is-ready){opacity:0}
#connectLiveCameraPreview.is-ready{opacity:1}
.connect-live-preview-placeholder{
 position:absolute;
 inset:0;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:11px;
 padding:22px;
 color:#fff;
 text-align:center;
 background:radial-gradient(circle at 50% 35%,#293a55 0,#101827 70%);
}
.connect-live-preview-placeholder.hidden{display:none}
.connect-live-camera-glyph{
 display:grid;
 place-items:center;
 width:66px;
 height:66px;
 border-radius:20px;
 background:#26364d;
 color:#dbeafe;
}
.connect-live-camera-glyph svg{width:34px;height:34px}
.connect-live-preview-placeholder strong{font-size:16px}
.connect-live-preview-placeholder>span:not(.connect-live-camera-glyph){max-width:360px;color:#b8c5d7;font-size:13px;line-height:1.5}
.connect-live-enable-button{
 min-height:44px;
 padding:10px 18px;
 border:0;
 border-radius:9px;
 background:#1877f2;
 color:#fff;
 font-weight:750;
}
.connect-live-enable-button:disabled{opacity:.65}
.connect-live-preview-badge{
 position:absolute;
 top:14px;
 left:14px;
 display:flex;
 align-items:center;
 gap:9px;
 padding:8px 11px;
 border-radius:8px;
 background:#101827c9;
 color:#fff;
 font-size:11px;
 font-weight:800;
 letter-spacing:.08em;
}
.connect-live-preview-badge .connect-live-dot{width:8px;height:8px;flex-basis:8px;box-shadow:none}
.connect-live-preview-controls{
 position:absolute;
 right:14px;
 bottom:14px;
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-end;
 gap:8px;
}
.connect-live-preview-controls button{
 min-height:40px;
 padding:8px 12px;
 border:1px solid #ffffff35;
 border-radius:9px;
 background:#101827d9;
 color:#fff;
 font-size:12px;
 font-weight:700;
}
.connect-live-preview-controls button:disabled{opacity:.45}
.connect-live-device-status{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 2px;color:#536174;font-size:12px}
.connect-live-device-status span:before{content:"●";margin-right:7px;color:#9aa5b4;font-size:10px}
.connect-live-device-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:3px 0 22px}
.connect-live-device-selects label,.connect-live-details label{
 display:grid;
 gap:7px;
 color:#465365;
 font-size:12px;
 font-weight:750;
}
.connect-live-device-selects select,.connect-live-details input:not([type=checkbox]),.connect-live-details select,.connect-live-details textarea{
 width:100%;
 min-width:0;
 min-height:44px;
 padding:10px 12px;
 border:1px solid #d8dde5;
 border-radius:9px;
 background:#fff;
 color:#1c1e21;
 font:inherit;
 font-size:14px;
}
.connect-live-now{padding-top:3px}
.connect-live-now h3{margin:0 0 12px;font-size:16px}
.connect-live-now-list{display:grid;gap:9px}
.connect-live-now-item{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid #e1e5eb;border-radius:11px;background:#fff}
.connect-live-now-item .grow{min-width:0;display:grid;gap:3px}
.connect-live-now-item .grow strong{font-size:13px;overflow-wrap:anywhere}
.connect-live-now-item .grow small{font-size:11px;color:#667085}
.connect-live-now-item button{min-height:38px;padding:7px 13px}
.connect-live-empty{padding:14px;border-radius:10px;background:#fff;color:#667085;font-size:13px}
.connect-live-details{
 display:grid;
 gap:13px;
 padding:20px;
 border:1px solid #e1e5eb;
 border-radius:15px;
 background:#fff;
 box-shadow:0 5px 20px #1118270b;
}
.connect-live-details-title{display:flex;align-items:center;gap:10px;padding-bottom:13px;border-bottom:1px solid #e8ebef;font-size:15px}
.connect-live-details-title .connect-live-dot{width:8px;height:8px;flex-basis:8px;box-shadow:none}
#connectLiveSetupForm{display:grid;gap:9px}
.connect-live-details textarea{min-height:100px;resize:vertical;line-height:1.45}
.connect-live-check{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:9px!important;padding:7px 0}
.connect-live-check input{width:18px;height:18px;margin:0;accent-color:#1877f2}
.connect-live-tip{padding:11px;border-radius:9px;background:#f1f5fb;color:#59677a;font-size:12px;line-height:1.5}
.connect-live-setup-message{margin:0;color:#667085;font-size:12px;line-height:1.45}
.connect-live-setup-message.is-error{color:#b42318}
.connect-live-start-button{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:10px;
 width:100%;
 min-height:50px;
 padding:12px 18px;
 border:0;
 border-radius:10px;
 background:#e53945;
 color:#fff;
 font-size:16px;
 font-weight:800;
}
.connect-live-start-button svg{width:20px;height:20px}
.connect-live-start-button:disabled{background:#aeb6c2;cursor:not-allowed}
.connect-live-smallprint{margin:0;color:#7b8492;font-size:11px;line-height:1.4;text-align:center}
.connect-live-session-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;width:min(1240px,100%);margin:auto;padding:24px}
.connect-live-stage{position:relative;aspect-ratio:16/9;min-height:240px;overflow:hidden;border-radius:16px;background:#101827}
.connect-live-stage .connect-live-camera-preview{position:absolute;inset:0}
.connect-live-stage-empty{position:absolute;inset:0;display:grid;place-items:center;padding:20px;color:#fff;text-align:center;background:#101827}
.connect-live-stage-empty.hidden{display:none}
.connect-live-remote{object-fit:cover}
.connect-live-session-info{display:grid;align-content:start;gap:12px;padding:20px;border:1px solid #e1e5eb;border-radius:14px;background:#fff}
.connect-live-session-info h2{margin:0;font-size:20px}
.connect-live-session-info p{margin:0;color:#59677a;overflow-wrap:anywhere}
.connect-live-status{font-size:13px;line-height:1.5}
.connect-live-end-button{min-height:46px;padding:10px;border:0;border-radius:9px;background:#e53945;color:#fff;font-weight:800}
.connect-live-end-button:disabled{opacity:.6}
.connect-live-audio{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:760px){
 .connect-live-studio-head{min-height:56px;padding:8px 14px}
 .connect-live-studio-layout{grid-template-columns:minmax(0,1fr);gap:15px;padding:12px}
 .connect-live-preview-frame{min-height:210px;border-radius:12px}
 .connect-live-details{padding:16px}
 .connect-live-session-main{grid-template-columns:minmax(0,1fr);gap:14px;padding:12px}
 .connect-live-stage{min-height:210px}
 .connect-live-device-selects{gap:8px}
 .connect-live-device-selects label{font-size:11px}
 .connect-live-preview-controls{right:8px;bottom:8px;gap:5px}
 .connect-live-preview-controls button{min-height:38px;padding:7px 9px;font-size:11px}
}
@media(max-width:360px){
 .connect-post-tools{padding-left:5px!important;padding-right:5px!important;gap:1px!important}
 .connect-post-tool{font-size:9.5px!important}
 .connect-live-device-selects{grid-template-columns:minmax(0,1fr)}
}


/* Facebook-style composer action strip: compact inline icon + label */
.connect-post-tools{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:0!important;
 align-items:center!important;
 padding:5px 10px!important;
 margin:0 0 3px!important;
 border-top:1px solid #e4e6eb!important;
 border-bottom:1px solid #e4e6eb!important;
 overflow:hidden!important;
}
.connect-post-tool{
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:center!important;
 gap:4px!important;
 min-width:0!important;
 width:100%!important;
 min-height:36px!important;
 padding:5px 1px!important;
 border:0!important;
 border-radius:6px!important;
 background:transparent!important;
 color:#606770!important;
 font-family:Arial,Helvetica,sans-serif!important;
 font-size:10px!important;
 font-weight:600!important;
 line-height:1!important;
 letter-spacing:-.1px!important;
 white-space:nowrap!important;
 overflow:hidden!important;
}
.connect-post-tool .composer-tool-icon{
 display:grid!important;
 place-items:center!important;
 width:17px!important;
 height:17px!important;
 min-width:17px!important;
 flex:0 0 17px!important;
 color:#606770!important;
}
.connect-post-tool .composer-tool-icon svg{
 display:block!important;
 width:17px!important;
 height:17px!important;
 stroke-width:1.9;
}
.connect-post-tool>span:last-child{
 display:block!important;
 width:auto!important;
 max-width:100%!important;
 min-width:0!important;
 overflow:hidden!important;
 text-overflow:clip!important;
 white-space:nowrap!important;
 font-size:10px!important;
}
.connect-post-tool:hover{background:#f0f2f5!important}
.connect-post-tool:active{background:#e4e6eb!important}
@media(max-width:380px){
 .connect-post-tools{padding:4px 5px!important}
 .connect-post-tool{gap:3px!important;font-size:9px!important}
 .connect-post-tool .composer-tool-icon{width:15px!important;height:15px!important;min-width:15px!important;flex-basis:15px!important}
 .connect-post-tool .composer-tool-icon svg{width:15px!important;height:15px!important}
 .connect-post-tool>span:last-child{font-size:9px!important;letter-spacing:-.2px!important}
}


/* Composer: music catalogue, location autocomplete and richer backgrounds */
.connect-location-results{display:grid;gap:2px;margin-top:7px;max-height:220px;overflow:auto}
.connect-location-result{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:8px;background:#fff;color:#344054;text-align:left;font-size:13px}
.connect-location-result:hover{background:#eef3fa}
.connect-location-pin{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#edf3ff;color:#1877f2;font-size:18px}
.connect-music-picker{margin:10px 16px;padding:12px;border:1px solid #e1e5eb;border-radius:13px;background:#fff}
.connect-music-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#1c1e21}
.connect-music-picker-head strong{font-size:15px}
.connect-music-picker-head button{width:32px;height:32px;border-radius:50%;background:#f0f2f5;font-size:20px}
.connect-music-picker>input{width:100%;min-height:42px;padding:9px 12px;border:1px solid #d8dde5;border-radius:9px;background:#fff;color:#1c1e21;font:inherit}
.connect-music-note{margin:8px 0;color:#667085;font-size:11px;line-height:1.4}
.connect-music-device{width:100%;min-height:40px;margin:0 0 8px;padding:8px 10px;border:1px solid #d8e3f5;border-radius:9px;background:#f3f7ff;color:#1769d2;font-size:12px;font-weight:700;text-align:left}
.connect-music-results{display:grid;gap:7px;max-height:340px;overflow:auto}
.connect-music-result{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #edf0f3}
.connect-music-result>img{width:48px;height:48px;border-radius:7px;object-fit:cover;background:#edf0f3}
.connect-music-track-info{display:grid;gap:3px;min-width:0}
.connect-music-track-info strong{overflow:hidden;color:#1c1e21;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.connect-music-track-info small{overflow:hidden;color:#667085;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.connect-music-track-info audio{width:100%;height:26px;max-width:220px}
.connect-music-select{min-height:34px;padding:6px 11px;border:0;border-radius:7px;background:#1877f2;color:#fff;font-size:11px;font-weight:750}
.connect-background-options{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.connect-background-options button{min-width:0;aspect-ratio:1;border:1px solid #d7dce3;border-radius:10px;box-shadow:inset 0 0 0 1px #ffffff55}
.connect-background-options button.active{outline:2px solid #1877f2;outline-offset:2px}
@media(max-width:520px){.connect-background-options{grid-template-columns:repeat(6,minmax(0,1fr))}.connect-music-picker{margin-left:10px;margin-right:10px}.connect-music-result{grid-template-columns:42px minmax(0,1fr) auto}.connect-music-result>img{width:42px;height:42px}}

/* Full-bleed CONNECT Live Studio */
.modal-backdrop:has(.connect-live-fullscreen){position:fixed!important;inset:0!important;display:block!important;padding:0!important;overflow:hidden!important;background:#05080e!important;z-index:11000!important}
.modal:has(.connect-live-fullscreen){position:relative!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#05080e!important;box-shadow:none!important}
.connect-live-fullscreen{position:relative;width:100vw;height:100vh;height:100dvh;min-height:100vh;overflow:hidden;background:#05080e;color:#fff;font-family:Arial,Helvetica,sans-serif;isolation:isolate}
.connect-live-stage-full{position:absolute;inset:0;overflow:hidden;background:#05080e}
.connect-live-stage-full>.connect-live-camera-preview{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#05080e}
.connect-live-stage-full>.connect-live-camera-preview.is-ready{opacity:1}
.connect-live-fullscreen .connect-live-preview-placeholder{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;background:radial-gradient(circle at 50% 38%,#25364d 0,#101827 68%,#05080e 100%);color:#fff;text-align:center}
.connect-live-fullscreen .connect-live-preview-placeholder.hidden{display:none}
.connect-live-fullscreen .connect-live-preview-placeholder>span:not(.connect-live-camera-glyph){max-width:320px;color:#c7d2e1;font-size:13px}
.connect-live-fullscreen .connect-live-camera-glyph{width:58px;height:58px;border-radius:18px;background:#31445f}
.connect-live-fullscreen .connect-live-camera-glyph svg{width:30px;height:30px}
.connect-live-topbar{position:absolute;top:0;left:0;right:0;z-index:8;display:flex;align-items:center;gap:12px;min-height:76px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:linear-gradient(180deg,#000b 0%,#0005 70%,transparent 100%)}
.connect-live-identity{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.connect-live-identity .avatar{width:40px;height:40px;flex:0 0 40px;border:2px solid #fff}
.connect-live-identity>span:last-child{display:grid;gap:3px;min-width:0}
.connect-live-identity strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.connect-live-identity small{color:#d6dce5;font-size:11px}
.connect-live-live-indicator{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #ffffff45;border-radius:7px;background:#1118;color:#fff;font-size:10px;font-weight:850;letter-spacing:.08em}
.connect-live-live-indicator i{width:7px;height:7px;border-radius:50%;background:#f5b942}
.connect-live-live-indicator.is-live{background:#df2638;border-color:#df2638}
.connect-live-live-indicator.is-live i{background:#fff;box-shadow:0 0 0 3px #ffffff35}
.connect-live-fullscreen .connect-live-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #ffffff50;border-radius:50%;background:#1118;color:#fff;font-size:25px}
.connect-live-options-toggle{position:absolute;z-index:10;left:12px;top:calc(50% - 178px);display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff4a;border-radius:50%;background:#101827b8;color:#fff;font-size:17px;backdrop-filter:blur(12px)}
.connect-live-options-toggle.is-collapsed{background:#1877f2}
.connect-live-side-controls{position:absolute;z-index:9;left:10px;top:50%;display:flex;flex-direction:column;gap:10px;transform:translateY(-37%);transition:opacity .18s,transform .18s}
.connect-live-side-controls.is-collapsed{opacity:0;pointer-events:none;transform:translate(-12px,-37%)}
.connect-live-side-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:54px;min-height:58px;padding:6px 3px;border:1px solid #ffffff30;border-radius:12px;background:#111827a8;color:#fff;backdrop-filter:blur(12px)}
.connect-live-side-controls button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.connect-live-side-controls button span{font-size:9px;font-weight:700}
.connect-live-side-controls button.is-on{background:#1877f2;border-color:#1877f2}
.connect-live-side-controls button.is-off{opacity:.58}
.connect-live-sticker-tray{position:absolute;z-index:15;left:74px;top:50%;display:flex;flex-wrap:wrap;gap:7px;max-width:190px;padding:9px;border:1px solid #ffffff35;border-radius:13px;background:#101827df;transform:translateY(-50%);backdrop-filter:blur(14px)}
.connect-live-sticker-tray.hidden{display:none}
.connect-live-sticker-tray button{width:38px;height:38px;border:0;border-radius:9px;background:#ffffff18;font-size:22px}
.connect-live-sticker-overlay{position:absolute;z-index:6;top:28%;left:50%;display:none;font-size:clamp(44px,12vw,82px);filter:drop-shadow(0 3px 8px #0008);transform:translateX(-50%);pointer-events:none}
.connect-live-sticker-overlay.is-visible{display:block}
.connect-live-bottom-dock{position:absolute;z-index:8;left:0;right:0;bottom:0;display:grid;gap:10px;padding:16px 14px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#05080ef2 0%,#05080edb 65%,transparent 100%)}
.connect-live-bottom-dock>input{width:100%;min-height:44px;padding:10px 13px;border:1px solid #ffffff40;border-radius:10px;outline:none;background:#1018279c;color:#fff;font:inherit;font-size:14px}
.connect-live-bottom-dock>input::placeholder{color:#e0e6ef}
.connect-live-share-to{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border:1px solid #ffffff3a;border-radius:10px;background:#101827a8;color:#fff}
.connect-live-share-arrow{font-size:25px;font-weight:900;line-height:1}
.connect-live-share-to>span:nth-child(2){display:grid;gap:1px;text-align:center}
.connect-live-share-to small{color:#d6dce5;font-size:10px}
.connect-live-share-to strong{font-size:13px}
.connect-live-share-chevron{font-size:19px;color:#cbd5e1}
.connect-live-share-to.is-off{opacity:.55}
.connect-live-go-button{width:100%;min-height:50px;border:0;border-radius:10px;background:#1877f2;color:#fff;font-size:16px;font-weight:850;letter-spacing:.01em;box-shadow:0 4px 16px #0004}
.connect-live-go-button:disabled{opacity:.5}
.connect-live-bottom-icons{display:flex;align-items:center;justify-content:space-around;gap:12px;padding-top:1px}
.connect-live-bottom-icons button{display:grid;place-items:center;width:42px;height:38px;border:0;border-radius:9px;background:transparent;color:#fff}
.connect-live-bottom-icons button:active{background:#ffffff20}
.connect-live-bottom-icons svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.connect-live-subpage{position:absolute;z-index:20;inset:0;display:flex;flex-direction:column;background:#f5f7fa;color:#1c1e21}
.connect-live-subpage.hidden{display:none}
.connect-live-subpage>header{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;min-height:58px;padding:8px 14px;border-bottom:1px solid #e4e6eb;background:#fff}
.connect-live-subpage>header>button{width:38px;height:38px;border:0;border-radius:50%;background:#e9edf3;color:#1c1e21;font-size:31px;line-height:1}
.connect-live-subpage>header>strong{text-align:center;font-size:17px}
.connect-live-subpage-body{width:min(560px,100%);margin:0 auto;padding:22px 18px;overflow:auto}
.connect-live-subpage-body h2{margin:12px 0 24px;font-size:20px;line-height:1.4;text-align:center}
.connect-live-subpage-body h3{margin:28px 0 8px;font-size:16px}
.connect-live-subpage-body p{color:#596579;font-size:14px;line-height:1.5}
.connect-live-product-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:68px;padding:12px 14px;border:1px solid #e1e5eb;border-radius:12px;background:#fff;color:#1c1e21;text-align:left}
.connect-live-product-link>span{display:grid;gap:4px}
.connect-live-product-link strong{font-size:14px}
.connect-live-product-link small{color:#667085;font-size:12px}
.connect-live-product-link b{font-size:27px;color:#687386}
.connect-live-subpage-body form{display:grid;gap:9px;margin:18px 0}
.connect-live-subpage-body form label{font-size:12px;font-weight:750;color:#465365}
.connect-live-subpage-body form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d8dde5;border-radius:9px;background:#fff;color:#1c1e21;font:inherit}
.connect-live-product-save{min-height:46px;margin-top:5px;border:0;border-radius:9px;background:#1877f2;color:#fff;font-weight:800}
.connect-live-product-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #e5e9ef}
.connect-live-product-row a{min-width:0;overflow-wrap:anywhere;color:#1769d2;font-size:13px}
.connect-live-product-row button{width:32px;height:32px;border:0;border-radius:50%;background:#feecee;color:#b42318;font-size:20px}
@media(max-width:420px){
 .connect-live-topbar{min-height:66px;padding-left:11px;padding-right:11px}
 .connect-live-identity .avatar{width:36px;height:36px;flex-basis:36px}
 .connect-live-side-controls{left:7px;gap:7px}
 .connect-live-side-controls button{width:48px;min-height:52px}
 .connect-live-side-controls button svg{width:21px;height:21px}
 .connect-live-side-controls button span{font-size:8px}
 .connect-live-options-toggle{left:8px}
 .connect-live-bottom-dock{padding-left:10px;padding-right:10px}
}

.post-music-track{display:grid;gap:6px;margin:10px 0;padding:10px 12px;border:1px solid #e4e8ef;border-radius:10px;background:#f7f9fc}
.post-music-track-info{display:grid;gap:2px;min-width:0}
.post-music-track-info strong{overflow:hidden;color:#263244;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.post-music-track-info small{color:#667085;font-size:11px}
.post-music-track audio{width:100%;height:34px}
:root[data-theme="dark"] .post-music-track{background:#17263b;border-color:#33445c}
:root[data-theme="dark"] .post-music-track-info strong{color:#edf3fb}

/* Live camera rail uses icon-only controls; accessible names remain on each button. */
.connect-live-side-controls button span{display:none!important}
.connect-live-side-controls button{width:54px;min-height:54px;padding:5px}
.connect-live-side-controls button svg{width:24px;height:24px}
@media(max-width:420px){.connect-live-side-controls button{width:48px;min-height:48px}.connect-live-side-controls button svg{width:22px;height:22px}}

/* Live Studio refinements: right-side controls, elapsed timer, independent share/story rows */
.connect-live-options-toggle{left:auto!important;right:12px!important;top:calc(50% - 178px)!important;width:36px;height:36px;font-size:27px;font-weight:800;line-height:1}
.connect-live-side-controls{left:auto!important;right:10px!important;align-items:center}
.connect-live-side-controls.is-collapsed{transform:translate(12px,-37%)!important}
.connect-live-sharing-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.connect-live-share-to,.connect-live-story-toggle{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:48px;padding:6px 10px;border:1px solid #ffffff3a;border-radius:10px;background:#101827a8;color:#fff}
.connect-live-share-to>span:nth-child(2),.connect-live-story-toggle>span:first-child{display:grid;gap:2px;text-align:center}
.connect-live-share-to small,.connect-live-story-toggle small{color:#d6dce5;font-size:10px}
.connect-live-share-to strong,.connect-live-story-toggle strong{font-size:13px}
.connect-live-story-toggle.is-off{opacity:.52}
.connect-live-share-chevron{font-size:25px;font-weight:800;line-height:1}
.connect-live-duration{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:7px 9px;border:1px solid #ffffff50;border-radius:7px;background:#090d16c9;color:#fff;font-variant-numeric:tabular-nums;font-size:12px;font-weight:850;letter-spacing:.04em}
.connect-live-duration:before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:#ff334b;box-shadow:0 0 0 3px #ff334b40}
.connect-live-bottom-icons.is-collapsed{display:none!important}
.connect-live-bottom-icons button#connectLiveMore svg{width:24px;height:24px}
.connect-live-bottom-icons button#connectLiveMore.is-collapsed svg{transform:rotate(180deg)}
@media(max-width:420px){
 .connect-live-options-toggle{right:8px!important;left:auto!important}
 .connect-live-side-controls{right:7px!important;left:auto!important}
 .connect-live-duration{min-width:54px;padding:6px 7px;font-size:11px}
 .connect-live-sharing-row{gap:7px}
 .connect-live-share-to,.connect-live-story-toggle{padding-left:7px;padding-right:7px}
}

.connect-live-share-panel{position:absolute;z-index:30;left:12px;right:12px;bottom:220px;display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:45dvh;overflow:auto;padding:13px;border:1px solid #ffffff35;border-radius:13px;background:#101827f5;color:#fff;box-shadow:0 10px 30px #0008;backdrop-filter:blur(16px)}
.connect-live-share-panel.hidden{display:none}
.connect-live-share-panel strong{grid-column:1/-1;margin-bottom:3px;font-size:13px}
.connect-live-share-panel button{min-height:38px;border:1px solid #ffffff25;border-radius:8px;background:#ffffff12;color:#fff;font-size:12px;font-weight:700}
.connect-live-share-panel button:active{background:#1877f2}


/* Live Studio: persistent bottom arrow and searchable tagging panel */
.connect-live-bottom-actions{display:flex;align-items:center;gap:8px;min-width:0}
.connect-live-bottom-icons{display:flex;align-items:center;justify-content:space-around;gap:8px;flex:1;min-width:0}
.connect-live-bottom-icons.is-collapsed{display:none!important}
.connect-live-bottom-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:40px;border:1px solid #ffffff55;border-radius:11px;background:#101827d9;color:#fff;font-size:27px;font-weight:800;line-height:1}
.connect-live-bottom-toggle.is-collapsed{background:#1877f2}
.connect-live-bottom-toggle:active,.connect-live-bottom-icons button:active{background:#1877f2}
.connect-live-tag-panel{position:absolute;z-index:22;left:12px;right:12px;bottom:190px;display:grid;gap:9px;max-height:42dvh;padding:13px;border:1px solid #ffffff35;border-radius:14px;background:#101827f5;color:#fff;box-shadow:0 14px 40px #0008;overflow:auto;backdrop-filter:blur(16px)}
.connect-live-tag-panel.hidden{display:none}
.connect-live-tag-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.connect-live-tag-panel-head strong{font-size:14px}
.connect-live-tag-panel-head button{width:30px;height:30px;border:0;border-radius:50%;background:#ffffff20;color:#fff;font-size:22px}
.connect-live-tag-panel select,.connect-live-tag-panel input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #ffffff35;border-radius:9px;background:#1c293d;color:#fff;font:inherit;font-size:13px}
.connect-live-tag-results{display:grid;gap:5px;max-height:170px;overflow:auto}
.connect-live-tag-result{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:8px;min-height:40px;padding:7px 9px;border:1px solid #ffffff1c;border-radius:8px;background:#ffffff12;color:#fff;text-align:left}
.connect-live-tag-result span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}
.connect-live-tag-result small{color:#cbd5e1;font-size:10px}
.connect-live-tag-result b{font-size:18px;color:#8dbbff;text-align:center}
.connect-live-tag-selected{display:flex;flex-wrap:wrap;gap:6px}
.connect-live-tag-selected>small,.connect-live-tag-results>small{color:#cbd5e1;font-size:11px}
.connect-live-tag-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #ffffff30;border-radius:20px;background:#ffffff16;color:#fff;font-size:11px}
.connect-live-tag-chip button{width:18px;height:18px;border:0;border-radius:50%;background:#ffffff25;color:#fff;line-height:1}
@media(max-width:420px){.connect-live-tag-panel{left:8px;right:8px;bottom:180px}.connect-live-bottom-toggle{flex-basis:38px;width:38px;height:38px}}

.connect-live-share-panel.hidden{display:none!important}
.connect-live-share-panel>strong,.connect-live-share-panel>label,.connect-live-share-panel>select,.connect-live-share-panel>input,.connect-live-share-results,.connect-live-share-selected,.connect-live-share-done{grid-column:1/-1}
.connect-live-share-panel>label{color:#dbe4f0;font-size:11px;font-weight:700}
.connect-live-share-panel>select,.connect-live-share-panel>input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #ffffff35;border-radius:9px;background:#1c293d;color:#fff;font:inherit;font-size:13px}
.connect-live-share-results{display:grid;gap:5px;max-height:125px;overflow:auto}
.connect-live-share-result{display:grid;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:8px;min-height:39px;padding:7px 9px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff12;color:#fff;text-align:left}
.connect-live-share-result span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}
.connect-live-share-result small{color:#cbd5e1;font-size:10px}
.connect-live-share-result b{color:#8dbbff;font-size:18px}
.connect-live-share-selected{display:flex;flex-wrap:wrap;gap:6px}
.connect-live-share-selected>small{color:#cbd5e1;font-size:11px}
.connect-live-share-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #ffffff30;border-radius:18px;background:#ffffff16;color:#fff;font-size:11px}
.connect-live-share-chip small{color:#dbe4f0}
.connect-live-share-chip button{width:18px;height:18px;border:0;border-radius:50%;background:#ffffff25;color:#fff;line-height:1}
.connect-live-share-done{min-height:40px;border:0;border-radius:9px;background:#1877f2;color:#fff;font-weight:800}
.connect-live-bottom-actions{position:relative;z-index:31;display:flex;align-items:center;gap:8px;min-width:0;pointer-events:auto}
.connect-live-bottom-icons{pointer-events:auto}
.connect-live-bottom-toggle{position:relative;z-index:32;display:grid!important;place-items:center;flex:0 0 42px;width:42px;height:40px;min-width:42px;padding:0;border:1px solid #ffffff65;border-radius:11px;background:#101827f2;color:#fff;font-size:27px;font-weight:850;line-height:1;cursor:pointer;pointer-events:auto;touch-action:manipulation}
.connect-live-bottom-toggle.is-collapsed{background:#1877f2}
.connect-live-bottom-toggle:focus-visible,.connect-live-bottom-icons button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.connect-live-side-controls button .connect-live-mic-muted-slash{display:none}
.connect-live-side-controls button.is-off .connect-live-mic-muted-slash{display:block}
.connect-live-side-controls button.is-off{background:#4b1720;border-color:#ef5365;opacity:1}
.connect-live-share-to,.connect-live-story-toggle,.connect-live-go-button{position:relative;z-index:9;pointer-events:auto;touch-action:manipulation}
@media(max-width:420px){.connect-live-share-panel{left:8px;right:8px;bottom:205px;max-height:43dvh}.connect-live-bottom-toggle{flex-basis:40px;width:40px;height:40px;min-width:40px}}

/* Facebook-inspired CONNECT member profile layout; keeps the platform's own visual identity. */
.connect-profile{min-width:0;color:var(--text)}
.connect-profile-cover{height:clamp(250px,42vw,430px);position:relative;border-radius:14px 14px 0 0;background:linear-gradient(135deg,#dce8f8,#a9c3e8);background-size:cover;background-position:center;overflow:hidden;cursor:zoom-in}
.profile-cover-tools{position:absolute;inset:0;pointer-events:none}.profile-cover-tools button{position:absolute;top:12px;right:12px;pointer-events:auto;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent!important;color:#fff;font-size:23px;font-weight:800;text-shadow:0 1px 5px #000,0 1px 10px #000;box-shadow:none!important;cursor:pointer}.profile-cover-tools button:first-child{right:156px;left:auto}.profile-cover-tools button:first-child svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.profile-cover-tools button[data-action="profile-search"]{right:60px}.profile-cover-tools button[data-action="open-profile-settings"]{right:108px}.profile-cover-tools .profile-cover-photo-edit{top:auto;right:14px;bottom:14px;width:44px;height:44px;border:0;border-radius:50%;background:#fff!important;color:#17243a;text-shadow:none;box-shadow:0 2px 8px #0003!important}.profile-cover-photo-edit svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.connect-profile-person{margin-top:-100px}
.profile-cover-edit{position:absolute;right:16px;bottom:14px;background:#fff;color:#18263d;border:0;border-radius:8px;padding:10px 13px;font-weight:700;min-height:42px;box-shadow:0 2px 10px #13294b22}
.connect-profile-heading{display:flex;align-items:flex-end;gap:18px;padding:0 22px 14px;background:var(--card);position:relative}
.connect-profile-person{width:168px;height:168px;flex:0 0 168px;margin-top:-100px;position:relative}
.connect-profile-person>.avatar{width:100%;height:100%;flex-basis:100%;border:5px solid var(--card);border-radius:50%;font-size:46px;box-shadow:0 1px 5px #14243b22}
.connect-profile-person>.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.connect-profile-person>.avatar img{filter:brightness(1.035) contrast(1.045) saturate(1.04);image-rendering:auto;-webkit-transform:translateZ(0);transform:translateZ(0)}.connect-profile-person>.avatar-story-trigger{display:block;width:100%;height:100%;border-radius:50%}.connect-profile-person>.avatar-story-trigger>.avatar{width:100%;height:100%;border:5px solid var(--card);box-shadow:0 2px 9px #14243b2b}.connect-profile-person>.avatar-story-trigger>.avatar img{filter:brightness(1.035) contrast(1.045) saturate(1.04)}
.profile-avatar-edit{position:absolute;right:7px;bottom:8px;width:42px;height:42px;border-radius:50%;border:3px solid var(--card);background:#e4e9f0;color:#17243a;font-size:24px;font-weight:700}
.connect-profile-name{flex:1;min-width:0;padding:28px 0 4px}
.connect-profile-name h2{font-size:clamp(23px,3vw,32px);line-height:1.15;margin:0 0 5px;font-weight:800}
.connect-profile-name p{margin:8px 0 0;color:var(--muted);overflow-wrap:anywhere}
.connect-profile-edit{padding-bottom:8px}
.connect-profile-social{background:var(--card);padding:0 22px 14px}
.connect-profile-social .profile-stats{border-top:1px solid var(--line);margin:0;padding:12px 0;gap:28px}
.profile-action-row{display:flex;gap:9px;flex-wrap:wrap}
.connect-profile-tabs{display:flex;gap:4px;overflow-x:auto;white-space:nowrap;background:var(--card);border-top:1px solid var(--line);padding:0 14px;scrollbar-width:none}
.connect-profile-tabs a{display:inline-flex;align-items:center;min-height:52px;padding:0 15px;text-decoration:none;color:var(--muted);font-weight:700;border-bottom:3px solid transparent}
.connect-profile-tabs a.active,.connect-profile-tabs a:hover{color:#1877f2;border-bottom-color:#1877f2}
.connect-profile-body{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(0,1.35fr);gap:16px;margin-top:16px;align-items:start}
.connect-profile-sidebar,.connect-profile-main{display:grid;gap:14px;min-width:0}
.profile-panel{padding:16px;border-radius:12px}
.profile-panel h3{margin:0 0 12px;font-size:19px}
.profile-panel p{overflow-wrap:anywhere}
.profile-friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-friend{min-width:0;display:grid;gap:6px;text-align:left;border:0;background:transparent;padding:0;color:var(--text);font-weight:650}
.profile-friend .avatar{width:100%;height:auto;aspect-ratio:1;border-radius:9px;flex-basis:auto}
.profile-friend .avatar img{border-radius:9px;object-fit:cover}
.profile-friend strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.profile-media-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}
.profile-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-video-grid video{width:100%;max-height:220px;aspect-ratio:16/10;object-fit:cover;border-radius:8px;background:#111}
.profile-business-details{margin:12px 0}
.profile-business-details p{margin:8px 0}
.profile-composer-row{display:flex;align-items:center;gap:10px}
.profile-composer-row>.avatar{width:42px;height:42px;flex-basis:42px}
.profile-composer-prompt{flex:1;text-align:left;border:0;border-radius:24px;background:var(--surface,#f1f3f5);padding:12px 16px;min-height:44px;color:var(--muted)}
.profile-section-heading{padding:4px 2px}
#connect-profile-about,#connect-profile-friends,#connect-profile-photos,#connect-profile-posts,#connect-profile-videos{scroll-margin-top:18px}
@media(max-width:720px){
 .connect-profile-cover{height:190px;border-radius:10px 10px 0 0}
 .connect-profile-heading{padding:0 14px 12px;gap:12px;align-items:flex-end;flex-wrap:wrap}
 .connect-profile-person{width:116px;height:116px;flex-basis:116px;margin-top:-54px}
 .connect-profile-person>.avatar{border-width:4px;font-size:34px}
 .profile-avatar-edit{width:36px;height:36px;right:2px;bottom:3px}
 .connect-profile-name{padding:8px 0 0;flex-basis:calc(100% - 130px)}
 .connect-profile-name h2{font-size:23px}
 .connect-profile-edit{margin-left:auto;padding:0 0 2px}
 .connect-profile-social{padding:0 14px 12px}
 .connect-profile-social .profile-stats{gap:20px}
 .profile-action-row button{flex:1}
 .connect-profile-tabs{padding:0 6px}
 .connect-profile-tabs a{padding:0 12px;min-height:48px}
 .connect-profile-body{grid-template-columns:1fr;gap:12px;margin-top:12px}
 .connect-profile-sidebar{grid-template-columns:1fr}
 .profile-panel{padding:14px}
}
@media(max-width:390px){
 .connect-profile-person{width:144px;height:144px;flex-basis:144px;margin-top:-88px}
 .connect-profile-name{flex-basis:calc(100% - 108px)}
 .connect-profile-name h2{font-size:20px}
 .profile-stats{gap:14px}
}

/* Live Studio controls: visible friend-tag action and one-tap immersive camera mode. */
.connect-live-sharing-row{grid-template-columns:1fr 1fr 1fr!important;align-items:stretch}
.connect-live-tag-action{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:6px 8px;border:1px solid #ffffff3a;border-radius:10px;background:#101827d9;color:#fff;font-size:12px;font-weight:800;position:relative;z-index:12;touch-action:manipulation}
.connect-live-tag-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 20px}
.connect-live-tag-action:active{background:#1877f2}
.connect-live-focus-toggle{position:absolute;z-index:45;top:calc(12px + env(safe-area-inset-top));right:62px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff55;border-radius:50%;background:#101827d9;color:#fff;font-size:23px;font-weight:800;line-height:1;touch-action:manipulation;backdrop-filter:blur(12px)}
.connect-live-fullscreen.is-focus-mode .connect-live-topbar,
.connect-live-fullscreen.is-focus-mode .connect-live-side-controls,
.connect-live-fullscreen.is-focus-mode .connect-live-options-toggle,
.connect-live-fullscreen.is-focus-mode .connect-live-bottom-dock{opacity:0!important;pointer-events:none!important;transition:opacity .18s ease}
.connect-live-fullscreen.is-focus-mode .connect-live-focus-toggle{background:#1877f2;opacity:1!important;pointer-events:auto!important}
.connect-live-fullscreen.is-focus-mode .connect-live-tag-panel,
.connect-live-fullscreen.is-focus-mode .connect-live-share-panel,
.connect-live-fullscreen.is-focus-mode .connect-live-sticker-tray{display:none!important}
@media(max-width:520px){
 .connect-live-sharing-row{grid-template-columns:1fr 1fr 1fr!important;gap:6px}
 .connect-live-tag-action{gap:4px;padding:5px 4px;font-size:11px}
 .connect-live-tag-action svg{width:18px;height:18px;flex-basis:18px}
 .connect-live-focus-toggle{right:58px}
}


/* Keep the live tagging control compact so it never dominates the studio dock. */
.connect-live-sharing-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px!important;gap:7px!important;align-items:center!important}
.connect-live-tag-action{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;flex:0 0 40px!important;box-sizing:border-box!important;padding:0!important;margin:0!important;gap:0!important;border-radius:10px!important;overflow:hidden!important}
.connect-live-tag-action svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;flex:0 0 18px!important}
.connect-live-tag-action span{display:none!important}
@media(max-width:520px){.connect-live-sharing-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important;gap:6px!important}.connect-live-tag-action{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;flex-basis:38px!important}.connect-live-tag-action svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;flex-basis:17px!important}}


/* Wide, immersive social feed media and clear profile navigation affordances. */
@media(min-width:721px){.layout{grid-template-columns:245px minmax(0,1fr) 290px}.post-card{width:100%;padding:20px;margin-bottom:18px}.post-media{width:100%;max-width:100%;max-height:none;min-height:280px;object-fit:contain;border-radius:12px}.shared-post-preview .post-media{max-height:none}}
@media(max-width:720px){.layout{width:100%;max-width:100%;padding:0 6px;margin:8px auto}.content{width:100%;max-width:100%}.post-card{width:100%;padding:12px 10px;margin:0 0 12px;border-radius:12px}.post-media{display:block;width:calc(100% + 20px);max-width:none;max-height:none;min-height:0;margin:0 -10px;border-radius:0;object-fit:contain;background:#080d16}.post-body{font-size:15px;line-height:1.65}.shared-post-preview .post-media{width:100%;margin:0;border-radius:9px}}
.post-head [data-profile-id],.post-author [data-profile-id],.connect-profile-link,.comment-bubble strong[data-profile-id],.avatar[data-profile-id]{cursor:pointer}
[data-profile-id]:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:5px}
.post-author strong[data-profile-id]:hover,.connect-profile-link:hover,.comment-bubble strong[data-profile-id]:hover{text-decoration:underline;color:var(--blue)}

/* Profile photos: restore a little brightness and colour while keeping the source crisp. */
.avatar img,.connect-profile-person>.avatar img,.profile-friend .avatar img,.story-avatar img{image-rendering:auto;-webkit-backface-visibility:hidden;backface-visibility:hidden}

/* Reshares present the original publication as a complete, prominent post. */
.shared-post-preview{display:block;margin:14px 0 4px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 1px 4px #14243b12}
.shared-post-head{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.shared-post-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.shared-post-head strong{font-size:15px;font-weight:800}
.shared-post-head small{font-size:12px;color:var(--muted)}
.shared-post-body{font-size:16px;font-weight:650;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 2px}
.share-caption{font-weight:600}
.post-comment-count{border:0;background:transparent;color:var(--muted);padding:0;font:inherit;cursor:pointer}
.post-comment-count:hover{text-decoration:underline;color:var(--accent)}
.post-stats{display:flex;justify-content:space-between;align-items:center;gap:12px}

/* Facebook-inspired public welcome and sign-in experience */
.auth-screen{position:relative;min-height:100svh;grid-template-columns:minmax(0,1fr) minmax(350px,430px);column-gap:clamp(42px,8vw,120px);row-gap:28px;align-content:center;padding:clamp(28px,6vw,88px) max(24px,calc((100vw - 1120px)/2));background:radial-gradient(ellipse at 14% 18%,#214d91 0,transparent 42%),linear-gradient(125deg,#07152f 0%,#0b2450 55%,#123c78 100%)}
.auth-hero{width:100%;max-width:570px;margin:0;align-self:center}
.auth-hero .top-brand{display:inline-flex}
.auth-hero .brand-logo{width:54px;height:54px}
.auth-hero .brand-word{font-size:23px;letter-spacing:.08em}
.hero-copy{margin-top:clamp(36px,7vh,74px)}
.hero-eyebrow{display:inline-block;color:#a9cbff;font-size:11px;font-weight:850;letter-spacing:.2em}
.auth-hero h1{max-width:610px;font-size:clamp(42px,5.3vw,66px);line-height:1.04;letter-spacing:-.055em;margin:14px 0 18px}
.auth-hero p{max-width:520px;font-size:18px;line-height:1.7;color:#d5e4fb;margin:0}
.hero-highlights{display:grid;gap:15px;margin-top:32px;max-width:510px}
.hero-highlight{display:flex;align-items:center;gap:14px;color:#fff}
.highlight-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #ffffff38;background:#ffffff12;border-radius:13px;font-size:21px;color:#bcd6ff}
.hero-highlight strong,.hero-highlight small{display:block}
.hero-highlight strong{font-size:14px}
.hero-highlight small{font-size:12px;color:#b8cbe8;margin-top:2px}
.hero-tagline{margin-top:30px;color:#c5d8f6;font-size:13px;font-weight:750;letter-spacing:.04em}
.auth-card{width:100%;max-width:430px;padding:30px;background:#fff;border:1px solid #e8edf5;border-radius:12px;box-shadow:0 18px 55px #0003;align-self:center}
.auth-card-heading{text-align:center}
.auth-card .badge{display:inline-block;margin-bottom:9px}
.auth-card h2{font-size:27px;margin:2px 0 5px;color:#17243b}
.auth-card-heading p{margin:0;color:#758198;font-size:13px}
.auth-tabs{margin:22px 0 17px;border-radius:9px;background:#f0f2f5}
.auth-tabs button{min-height:44px}
.auth-tabs button.active{color:#1b64d8}
.auth-card .field{margin:12px 0}
.auth-card .field label{font-size:12px}
.auth-card .field input{min-height:49px;border-radius:8px;background:#f8f9fb}
.auth-card .primary{min-height:48px;border-radius:8px;font-size:15px}
.auth-card .ghost{min-height:42px;color:#2165c9}
.auth-assurance{text-align:center;color:#465a78;font-size:12px;font-weight:750;margin:16px 0 0}
.auth-guideline{text-align:center;line-height:1.5;margin:8px 0 0}
.auth-footer{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap;color:#a9bad5;font-size:11px;padding-top:10px}
.auth-footer a{color:#d5e4fb;text-decoration:none}
.auth-footer a:hover{text-decoration:underline}
@media(max-width:760px){
 .auth-screen{min-height:100svh;grid-template-columns:minmax(0,1fr);gap:22px;padding:24px 16px 18px;align-content:start}
 .auth-hero{max-width:520px;text-align:center;margin:0 auto}
 .auth-hero .brand-logo{width:42px;height:42px}
 .auth-hero .brand-word{font-size:17px}
 .hero-copy{margin-top:24px}
 .hero-eyebrow{font-size:9px;letter-spacing:.15em}
 .auth-hero h1{font-size:clamp(34px,9vw,44px);margin:10px auto 9px;max-width:440px}
 .auth-hero p{font-size:14px;line-height:1.55;margin:auto;max-width:470px}
 .hero-highlights{display:none}
 .hero-tagline{margin-top:13px;font-size:11px}
 .auth-card{max-width:480px;padding:23px 20px;margin:0 auto;border-radius:13px}
 .auth-card h2{font-size:24px}
 .auth-footer{gap:9px 17px;padding:2px 0 4px;font-size:10px}
}
@media(max-width:380px){.auth-screen{padding-left:12px;padding-right:12px}.auth-card{padding:20px 16px}.auth-hero h1{font-size:33px}}
@media(prefers-reduced-motion:reduce){.auth-screen{scroll-behavior:auto}}

.relationship-directory{padding:0 2px 8px}.relationship-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:14px;overflow-x:auto}.relationship-tabs button{border:0;background:var(--surface-2,#f0f2f5);color:var(--text);border-radius:22px;padding:10px 18px;font-weight:750;white-space:nowrap}.relationship-tabs button.active{background:#e7f0ff;color:#1769e0}.relationship-list{display:grid;gap:4px;max-height:min(62vh,620px);overflow:auto}.relationship-list .list-item{padding:10px 4px;border-bottom:1px solid var(--line)}.profile-relationship-stats{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.profile-relationship-stats>button{display:inline-flex;flex-direction:row;align-items:baseline;gap:4px;text-align:left;padding:5px 2px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;white-space:nowrap}.profile-relationship-stats>button:hover{background:var(--surface-2,#f5f7fa)}.profile-relationship-stats strong{font-size:13px;font-weight:750;line-height:1.2}.profile-relationship-stats small{font-size:12px;color:var(--muted);font-weight:500}

/* Full-page Facebook-inspired post conversation */
.comments-page-head{display:flex;align-items:center;gap:14px;padding:4px 0 16px}.comments-page-head h1{font-size:26px;margin:0}.comments-page-head p{margin:2px 0 0;color:var(--muted)}.comments-post{padding:0;margin-bottom:14px}.comments-thread{padding:16px;margin-bottom:12px}.comments-thread-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}.comments-thread-head h2{font-size:20px;margin:0}.comments-list{display:grid;gap:16px}.comment-thread-item{min-width:0}.comment-main{display:flex;align-items:flex-start;gap:9px}.comment-content{min-width:0;flex:1}.comment-bubble{display:inline-block;max-width:100%;background:var(--surface-2,#f0f2f5);border-radius:16px;padding:10px 13px;overflow-wrap:anywhere}.comment-bubble strong{display:block;font-size:13px;margin-bottom:3px}.comment-bubble p{white-space:pre-wrap;margin:0;font-size:14px;line-height:1.45}.comment-actions{display:flex;gap:14px;align-items:center;padding:4px 10px;color:var(--muted);font-size:11px}.comment-actions button{border:0;background:none;color:var(--muted);font-weight:750;padding:2px;cursor:pointer}.comment-replies{margin:9px 0 0 38px;padding-left:12px;border-left:2px solid var(--line);display:grid;gap:12px}.comments-compose{position:sticky;bottom:calc(var(--bottom-nav-height,64px) + env(safe-area-inset-bottom));display:flex;align-items:center;gap:9px;padding:12px;margin-top:12px;z-index:3}.comments-compose input,.inline-reply-form input{min-width:0;flex:1;border:1px solid var(--line);background:var(--surface-2,#f5f6f8);border-radius:22px;padding:12px 15px;color:var(--text)}.comments-compose .primary,.inline-reply-form .primary{border-radius:20px;padding:10px 16px}.inline-reply-form{display:flex;gap:8px;margin:7px 0 4px}.inline-reply-form.hidden{display:none}
@media(max-width:640px){.comments-page-head{padding:0 0 12px}.comments-thread{padding:13px}.comments-compose{margin-left:-2px;margin-right:-2px}.comment-replies{margin-left:24px;padding-left:9px}}

/* Facebook-inspired feed media and larger story cards. Keep source aspect ratio, use the full feed width. */
@media(min-width:721px){
 .content{min-width:0}
 .post-card{width:100%;padding:18px 0;overflow:hidden}
 .post-card>.post-head,.post-card>.post-body,.post-card>.post-stats,.post-card>.post-actions,.post-card>.post-metadata,.post-card>.share-caption{margin-left:18px;margin-right:18px}
 .post-card>.post-media{display:block;width:100%;max-width:none;height:auto;max-height:none;min-height:300px;margin:12px 0;object-fit:contain;background:#080d16;border-radius:0}
 .post-card>.shared-post-preview{margin:12px 14px}
 .post-card>.shared-post-preview .post-media{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
 .stories{padding:16px;gap:12px}
 .story{flex-basis:132px}
 .story-visual{height:196px;border-radius:14px}
}
@media(max-width:720px){
 .post-card{padding:12px 0;overflow:hidden}
 .post-card>.post-head,.post-card>.post-body,.post-card>.post-stats,.post-card>.post-actions,.post-card>.post-metadata,.post-card>.share-caption{margin-left:12px;margin-right:12px}
 .post-card>.post-media{display:block;width:100%;max-width:none;height:auto;max-height:none;min-height:0;margin:10px 0;object-fit:contain;background:#080d16;border-radius:0}
 .post-card>.shared-post-preview{margin:10px 12px}
 .post-card>.shared-post-preview .post-media{width:100%;height:auto;max-height:none;object-fit:contain;border-radius:8px}
 .stories{padding:13px 10px;gap:10px}
 .story{flex-basis:116px}
 .story-visual{height:176px;border-radius:13px}
}

/* Full-bleed Facebook-scale feed and taller story cards */
@media(max-width:720px){
 html,body,#appShell,.app-shell{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
 .layout{display:block!important;width:100vw!important;max-width:100vw!important;margin:0!important;padding:0!important}
 .content,#mainContent{display:block!important;width:100vw!important;max-width:100vw!important;min-width:0!important;margin:0!important;padding:0!important}
 #homeScreen{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
 #feedList{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
 #homeScreen>.composer{width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important}
 #homeScreen>.stories{width:100vw!important;max-width:100vw!important;margin:0!important;padding:12px 10px!important;border-radius:0!important;box-sizing:border-box!important;gap:10px!important}
 #homeScreen .story{flex:0 0 138px!important;width:138px!important;min-width:138px!important}
 #homeScreen .story-visual{width:138px!important;height:238px!important;min-height:238px!important;border-radius:13px!important}
 #feedList>.post-card,#homeScreen #feedList .post-card{display:block!important;width:100vw!important;max-width:100vw!important;min-width:0!important;box-sizing:border-box!important;margin:0 0 10px!important;padding:13px 0!important;border-left:0!important;border-right:0!important;border-radius:0!important;overflow:hidden!important}
 #feedList .post-card>.post-head,#feedList .post-card>.post-body,#feedList .post-card>.post-stats,#feedList .post-card>.post-actions,#feedList .post-card>.post-metadata,#feedList .post-card>.share-caption{margin-left:14px!important;margin-right:14px!important}
 #feedList .post-card>.post-media{display:block!important;width:100vw!important;max-width:100vw!important;height:auto!important;max-height:none!important;min-height:0!important;margin:10px 0!important;padding:0!important;border-radius:0!important;object-fit:contain!important;background:#080d16!important}
 #feedList .post-card>.shared-post-preview{margin:10px 0!important;padding:10px 12px!important;border-radius:0!important}
 #feedList .shared-post-preview .post-media{display:block!important;width:calc(100vw - 24px)!important;max-width:none!important;height:auto!important;max-height:none!important;margin:8px -12px!important;border-radius:0!important;object-fit:contain!important}
}
@media(min-width:721px){
 #homeScreen>.stories{width:100%;box-sizing:border-box}
 #homeScreen .story{flex:0 0 150px;width:150px}
 #homeScreen .story-visual{width:150px;height:260px;min-height:260px}
 #feedList .post-card>.post-media{display:block;width:100%;max-width:none;height:auto;max-height:none;min-height:0;object-fit:contain}
 #feedList .shared-post-preview .post-media{width:100%;max-width:none;height:auto;max-height:none}
}

/* Full-page member profile view (not a clipped modal). */
.member-profile-page{width:100%;max-width:100%;min-width:0}.member-profile-top{padding:0 0 12px}.member-profile-page .connect-profile-cover{border-radius:12px 12px 0 0}.member-profile-page .connect-profile-heading{min-height:132px}.member-profile-page .connect-profile-social{padding-bottom:18px}.member-profile-actions{padding-top:8px}.member-profile-page .connect-profile-body{grid-template-columns:minmax(250px,.82fr) minmax(0,1.35fr)}
@media(max-width:720px){.member-profile-page .connect-profile-cover{height:190px}.member-profile-page .connect-profile-heading{padding:0 14px 12px;gap:12px;align-items:flex-start}.member-profile-page .connect-profile-person{width:112px;height:112px;flex-basis:112px;margin-top:-48px}.member-profile-page .connect-profile-person>.avatar{border-width:4px;font-size:32px}.member-profile-page .connect-profile-name{padding-top:10px}.member-profile-page .connect-profile-edit{display:none}.member-profile-page .connect-profile-body{grid-template-columns:minmax(0,1fr);gap:12px}.member-profile-page .connect-profile-sidebar{grid-template-columns:minmax(0,1fr)}.member-profile-actions{gap:7px}.member-profile-actions button{min-height:38px;padding:8px 11px}}

.member-profile-actions{justify-content:flex-end;min-height:42px;margin:0!important}.profile-overflow-trigger{width:44px;height:44px;border:0;border-radius:50%;background:#eef2f8;color:#263a5b;font-size:19px;font-weight:900;letter-spacing:2px}.profile-overflow-trigger:hover{background:#e2ebfa;color:var(--blue)}.connect-profile-tabs{display:none!important}
.profile-menu-list{display:grid;gap:3px}.profile-menu-list button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;min-height:50px;padding:12px 14px;border:0;border-radius:11px;background:#fff;color:#24334d;font-weight:700}.profile-menu-list button:hover{background:#f0f5fc}.profile-menu-list button span{width:25px;text-align:center;font-size:18px}.profile-menu-list .profile-menu-danger{color:#b52f43}.profile-menu-divider{height:1px;background:var(--line);margin:5px 0}
.connect-media-picker{background:#fff;min-height:82vh;display:flex;flex-direction:column}.media-picker-header{height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:0 14px}.media-picker-header strong{font-size:19px;font-weight:850}.media-picker-back,.media-picker-next{border:0;background:transparent;color:#1e5fc9;font-size:28px;min-width:42px;min-height:44px}.media-picker-next{font-size:15px;font-weight:800}.media-picker-next:disabled{color:#aab4c3}.media-picker-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding:0 10px}.media-picker-tabs button{border:0;border-bottom:3px solid transparent;background:#fff;padding:13px 3px;font-size:12px;font-weight:750;color:#63718a}.media-picker-tabs button.active{border-bottom-color:var(--blue);color:var(--blue)}.media-picker-gallery{position:relative;padding:12px 14px}.media-picker-gallery>button{border:0;background:#f0f3f8;border-radius:8px;padding:9px 12px;font-weight:800;color:#263a5b}.media-picker-gallery>button span{margin-left:10px}.media-picker-folders{position:absolute;z-index:5;left:12px;right:12px;top:52px;display:flex;gap:8px;overflow-x:auto;padding:9px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 28px #10254a20}.media-picker-folders button{white-space:nowrap;border:1px solid var(--line);border-radius:99px;background:#f8faff;padding:8px 12px;color:#31415b}.media-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:0 3px;min-height:220px;align-content:start}.media-picker-choose{grid-column:1/-1;min-height:180px;border:1px dashed #b8c8df;background:#f7faff;border-radius:12px;display:grid;place-content:center;justify-items:center;gap:8px;color:#29456f}.media-picker-choose>span{font-size:34px;color:var(--blue)}.media-picker-choose small{color:var(--muted)}.media-picker-uploaded{position:relative;border:0;padding:0;background:#eef2f8;aspect-ratio:1;overflow:hidden}.media-picker-uploaded img{width:100%;height:100%;object-fit:cover}.media-picker-uploaded span{position:absolute;right:7px;top:7px;background:#fff;color:var(--blue);width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-weight:900}.media-picker-selected{grid-column:1/-1;display:flex;justify-content:space-between;padding:12px;border:1px solid #dce6f4;border-radius:9px;background:#f7faff}.media-picker-selected small{color:var(--green);font-weight:800}.media-picker-hint{padding:16px;color:var(--muted);font-size:13px;line-height:1.5}.profile-image-editor{padding:0 16px 18px}.profile-image-editor .media-picker-header{margin:0 -16px 16px}.connect-report-form .field select,.connect-report-form .field textarea{width:100%}.connect-block-confirm .row{flex-wrap:wrap;margin-top:16px}
@media(max-width:720px){.modal-backdrop:has(.connect-media-picker){padding:0;place-items:stretch}.modal-backdrop:has(.connect-media-picker) .modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:0}.connect-media-picker{min-height:100dvh}.profile-image-editor{padding:0 14px 18px}}

.media-viewer-page{height:min(92dvh,920px);display:flex;flex-direction:column;background:#0b0f16;color:#fff;margin:-22px;overflow:auto}
.media-viewer-header{height:54px;flex:0 0 54px;display:flex;align-items:center;gap:12px;padding:0 12px;background:#0b0f16;color:#fff}
.media-viewer-header button{border:0;background:transparent;color:#fff;font-size:22px;min-width:42px;min-height:42px;border-radius:50%}
.media-viewer-header button:hover{background:#ffffff20}.media-viewer-header span{flex:1}
.media-viewer-close{font-size:30px!important}
.media-viewer-stage{flex:1;min-height:220px;display:flex;align-items:center;justify-content:center;background:#05070b;overflow:hidden}
.media-viewer-media{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.media-viewer-details{background:#fff;color:var(--ink);padding:14px 16px 18px}
.media-viewer-author{display:flex;align-items:center;gap:10px}.media-viewer-author>div{display:grid;gap:2px}.media-viewer-author small{font-size:12px;color:var(--muted)}
.media-viewer-caption{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 0;line-height:1.55}
.media-boost{display:block;width:100%;margin:10px 0;background:#eaf2ff;border:0;border-top:1px solid #cbdcf8;border-bottom:1px solid #cbdcf8;color:#1f60cf;padding:12px;font-weight:850;font-size:15px}
.media-viewer-engagement{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0}
.media-viewer-counts{display:flex;gap:16px}.media-viewer-counts button{border:0;background:transparent;color:#52627c;font-weight:750;padding:4px}
.media-viewer-reaction-icons{font-size:17px;letter-spacing:1px}
.media-viewer-comment-cta{display:block;width:100%;padding:12px;margin-top:8px;border:0;border-radius:9px;background:#f1f4f8;color:#5a6880;text-align:left}
.media-viewer-actions{display:flex;gap:6px;border-top:1px solid var(--line);margin-top:10px;padding-top:8px}
.media-viewer-actions button{flex:1;border:0;background:transparent;padding:10px 4px;border-radius:8px;color:#52627c;font-weight:750}
.media-options-list button{min-height:48px}
@media(max-width:720px){.modal-backdrop:has(.media-viewer-page){padding:0;place-items:stretch}.modal-backdrop:has(.media-viewer-page) .modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:0}.media-viewer-page{height:100dvh;min-height:100dvh;margin:0}.media-viewer-stage{min-height:35vh;max-height:58vh}.media-viewer-details{padding-bottom:max(18px,env(safe-area-inset-bottom))}}

.media-picker-backdrop{z-index:130}.media-picker-modal{width:min(760px,100%);max-height:96dvh;padding:0;overflow:auto}.media-picker-modal .connect-media-picker{min-height:80dvh}@media(max-width:720px){.media-picker-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.media-picker-modal .connect-media-picker{min-height:100dvh}}

.connect-profile-cover{position:relative}.profile-cover-edit{position:absolute;left:14px;bottom:14px}.connect-profile-person{position:relative}.profile-avatar-edit{position:absolute;left:2px;bottom:2px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 8px #10254a24}
.media-viewer-page .media-viewer-details{max-height:44vh;overflow:auto}.post-media-tap{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.post-media-tap .post-media{display:block;width:100%}.media-boost{cursor:not-allowed;opacity:.9}

.modal-backdrop:has(.media-viewer-page){padding:0;place-items:stretch}.modal-backdrop:has(.media-viewer-page) .modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:0}.media-viewer-page{height:100dvh;min-height:100dvh;margin:0}.media-viewer-stage{min-height:36vh;max-height:58vh}.media-picker-folders button{min-width:100%;text-align:left}

.connect-reaction-picker{display:flex;justify-content:space-around;gap:8px;padding:12px 0}.connect-reaction-picker button{display:grid;justify-items:center;gap:6px;min-width:54px;padding:9px 6px;border:0;border-radius:12px;background:#f5f7fb;color:#2b3d59}.connect-reaction-picker button span{font-size:28px}.connect-reaction-picker button small{font-size:11px;font-weight:750}

.comments-engagement-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);color:#59677e}.comments-engagement-reactions{display:flex;align-items:center;gap:5px;font-size:17px}.comments-engagement-reactions strong,.comments-engagement-shares strong{font-size:13px;color:#33435d}.comments-engagement-shares{font-size:12px}


/* Profile photo controls: Facebook-style camera glyphs, anchored on the right. */
.connect-profile-cover{position:relative!important}
.profile-cover-edit{position:absolute!important;right:16px!important;left:auto!important;bottom:14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:44px!important;padding:9px 14px!important;border:0!important;border-radius:8px!important;background:#fff!important;color:#1c2b43!important;box-shadow:0 2px 10px #13294b22!important;font-size:14px!important;font-weight:750!important;white-space:nowrap!important}
.profile-cover-edit svg{display:block;width:21px;height:21px;flex:0 0 21px}
.connect-profile-person{position:relative!important}
.profile-avatar-edit{position:absolute!important;right:4px!important;left:auto!important;bottom:4px!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;padding:0!important;border:3px solid var(--card)!important;border-radius:50%!important;background:#e4e9f0!important;color:#17243a!important;box-shadow:0 2px 8px #10254a24!important}
.profile-avatar-edit svg{display:block;width:21px;height:21px}
.profile-action-row{display:none!important}
@media(max-width:720px){.profile-cover-edit{right:10px!important;left:auto!important;bottom:10px!important;min-height:42px!important;padding:8px 11px!important}.profile-avatar-edit{right:2px!important;left:auto!important;bottom:3px!important;width:36px!important;height:36px!important}}


/* Profile photo clarity and matching right-side camera controls. */
.avatar img,.connect-profile-person>.avatar img,.profile-friend .avatar img,.story-avatar img{image-rendering:auto!important;object-fit:cover!important;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.connect-profile-person>.avatar img{object-position:center center!important}
.profile-cover-edit,.profile-avatar-edit{position:absolute!important;right:4px!important;left:auto!important;bottom:4px!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border:3px solid var(--card)!important;border-radius:50%!important;background:#e4e9f0!important;color:#17243a!important;box-shadow:0 2px 8px #10254a24!important}
.profile-cover-edit svg,.profile-avatar-edit svg{display:block!important;width:21px!important;height:21px!important;flex:0 0 21px!important}
@media(max-width:720px){.profile-cover-edit,.profile-avatar-edit{right:2px!important;left:auto!important;bottom:3px!important;width:36px!important;height:36px!important;min-height:36px!important}.profile-cover-edit svg,.profile-avatar-edit svg{width:19px!important;height:19px!important;flex-basis:19px!important}}

/* Active stories use a blue ring around the member's actual profile picture. */
.avatar-story-trigger{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;padding:3px;border:3px solid transparent;border-radius:50%;background:linear-gradient(var(--card,#fff),var(--card,#fff)) padding-box,linear-gradient(135deg,#1877f2,#58a6ff) border-box;cursor:pointer;line-height:0;vertical-align:middle}
.avatar-story-trigger>.avatar{display:block;flex:0 0 auto;overflow:hidden;border-radius:50%;margin:0}
.avatar-story-trigger>.avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.avatar-story-trigger:focus-visible{outline:3px solid #1877f2;outline-offset:3px}


/* Homepage feed author avatars: clearer, brighter rendering at feed size. */
#feedList .post-head>.avatar,
#feedList .post-head>.avatar-story-trigger{width:46px;height:46px;flex:0 0 46px}
#feedList .post-head>.avatar img,
#feedList .post-head>.avatar-story-trigger>.avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;image-rendering:auto;-webkit-transform:translateZ(0);transform:translateZ(0)}
@media(max-width:720px){#feedList .post-head>.avatar,#feedList .post-head>.avatar-story-trigger{width:44px;height:44px;flex-basis:44px}}

/* Share destination picker and full-size shared-post rendering. */
.share-options{display:grid;gap:10px;max-height:min(72vh,720px);overflow:auto;padding:2px}
.share-option,.share-recipient,.share-destination{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);color:var(--ink,#17243a);text-align:left}
.share-option>span:first-child{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#edf4ff;font-size:19px}
.share-option>span:last-child,.share-recipient>span{display:grid;gap:3px;min-width:0}
.share-option small,.share-recipient small{color:var(--muted);font-size:12px}
.share-section{display:grid;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
.share-section>strong{font-size:13px}
.share-recipient-list,.share-destination-list{display:grid;gap:7px;max-height:180px;overflow:auto}
.share-recipient .avatar{width:38px;height:38px;flex:0 0 38px}
.share-destination{min-height:44px}
.shared-post-preview{width:100%;max-width:100%;min-width:0;overflow:visible}
.shared-post-body,.share-caption{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.shared-post-preview .post-media,.shared-post-preview .shared-post-media{display:block;width:100%;height:auto;max-height:none;min-height:0;object-fit:contain;object-position:center;background:#f0f3f7;border-radius:12px}
.shared-post-preview video{max-height:none}
.avatar img{image-rendering:auto;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.saved-posts-list{display:grid;gap:12px;max-height:72vh;overflow:auto}.saved-posts-list .post-card{margin:0}
@media(max-width:720px){.share-options{max-height:68vh}.shared-post-preview{padding:10px}.shared-post-preview .post-media{border-radius:8px}}

/* Subtle edge sharpening for member portraits, in addition to tonal correction. */

/* Profile header and dedicated Profile Settings screen */
.profile-cover-tools{position:absolute;top:14px;right:14px;display:flex;gap:9px;z-index:2}
.profile-cover-tools button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffffa8;border-radius:50%;background:#ffffffed;color:#17243a;box-shadow:0 2px 10px #10233d30;font-size:22px;font-weight:700}
.connect-profile-heading{align-items:flex-start;gap:16px;padding-top:0}
.connect-profile-person{margin-top:-62px;z-index:1}
.connect-profile-name{padding-top:12px}
.connect-profile-edit{display:none}
.profile-intro-text{margin:0 0 12px;color:var(--muted);font-size:14px}
.profile-settings-page{max-width:780px;margin:0 auto;padding:0 0 28px}
.profile-settings-header{display:flex;align-items:center;gap:14px;padding:14px 16px;position:sticky;top:0;z-index:3;background:var(--card);border-bottom:1px solid var(--line)}
.profile-settings-header h2{font-size:21px;margin:0;font-weight:750}
.profile-settings-back{width:42px;height:42px;border:0;border-radius:50%;background:var(--surface-2,#edf1f7);font-size:30px;line-height:1;color:var(--ink);display:grid;place-items:center}
.profile-settings-list{padding:8px 14px}
.profile-settings-group{padding:14px 0 8px;border-bottom:1px solid var(--line)}
.profile-settings-group h3{font-size:15px;color:var(--muted);margin:0 0 8px;padding:0 4px;font-weight:700}
.profile-setting-item{width:100%;display:flex;align-items:center;gap:14px;min-height:58px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left}
.profile-setting-item:active{background:var(--surface-2,#edf1f7)}
.profile-setting-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:50%;background:var(--surface-2,#edf1f7);font-size:19px}
.profile-setting-item strong{font-size:15px;font-weight:650;flex:1}
.profile-setting-chevron{font-size:25px;color:var(--muted);padding:0 5px}
.profile-setting-notice{line-height:1.55}
.profile-activity-list{max-height:65vh;overflow:auto}
.profile-activity-row{padding:12px 0;border-bottom:1px solid var(--line)}
.profile-activity-row small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:720px){.connect-profile-cover{height:220px;border-radius:0}.profile-cover-tools{top:10px;right:10px}.profile-cover-tools button{width:40px;height:40px}.connect-profile-heading{display:flex;flex-wrap:wrap;gap:10px;padding:0 14px 14px}.connect-profile-person{width:160px;height:160px;flex-basis:160px;margin-top:-100px}.connect-profile-person>.avatar,.connect-profile-person>.avatar-story-trigger>.avatar{font-size:40px}.connect-profile-name{flex:1;padding-top:5px}.connect-profile-name h2{font-size:22px}.connect-profile-social{padding:0 14px 10px}.profile-settings-list{padding:6px 10px}}
body.profile-view-active .topbar{display:none}
body.profile-view-active .content{padding-top:0}
body.profile-view-active .layout{padding-top:0}

.profile-image-viewer .media-viewer-stage{min-height:55vh}.profile-image-viewer .profile-image-fullscreen{max-width:100%;max-height:calc(100dvh - 180px);object-fit:contain}.profile-image-viewer .media-viewer-header{grid-template-columns:1fr auto 1fr auto auto}.profile-image-viewer .media-viewer-details{padding:12px 16px}.profile-image-viewer .media-viewer-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* Compact, unfilled cover-photo controls; vertical overflow menu. */
.profile-cover-tools{top:10px!important;right:10px!important;gap:6px!important}
.profile-cover-tools button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:17px!important;text-shadow:0 1px 4px #000b!important}
.profile-cover-tools button svg{display:block;width:16px!important;height:16px!important}
.profile-cover-tools button[data-action="open-profile-settings"] svg{width:15px!important;height:20px!important}
.profile-cover-tools button[data-action="open-profile-settings"]{display:grid!important;place-items:center!important}
.profile-cover-photo-edit{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;right:10px!important;bottom:10px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#fff!important}
.profile-cover-photo-edit svg{width:17px!important;height:17px!important;flex-basis:17px!important}
@media(max-width:720px){.profile-cover-tools{top:8px!important;right:8px!important;gap:4px!important}.profile-cover-tools button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}.profile-cover-photo-edit{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;right:8px!important;bottom:8px!important}}

.profile-category-label{display:inline-flex;align-items:center;margin-top:5px;padding:3px 9px;border-radius:99px;background:#edf3fc;color:#34547e;font-size:11px;font-weight:750;line-height:1.4}
:root[data-theme="dark"] .profile-category-label{background:#1c3454;color:#d7e7ff}
#proCategoryForm .field select{width:100%;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--card,#fff);color:var(--ink)}

/* Facebook-inspired profile layout */
.profile-mobile-topbar{display:none}
.profile-cover-facebook{height:clamp(260px,48vw,470px);border-radius:0;background-color:#12345b;background-size:cover;background-position:center}
.profile-heading-facebook{gap:18px;padding:0 22px 14px;align-items:flex-end}
.profile-heading-facebook .connect-profile-person{margin-top:-92px;width:168px;height:168px;flex-basis:168px}
.profile-heading-facebook .connect-profile-name{padding:24px 0 8px}
.profile-heading-facebook .connect-profile-name h2{margin-bottom:4px}
.profile-social-facebook{padding:0 22px 16px}
.profile-social-facebook .profile-stats{border-top:0;padding:6px 0 12px;gap:22px}
.profile-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 12px}
.profile-primary-actions button{min-height:44px;border:0;border-radius:9px;font-size:15px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:8px}
.profile-dashboard-button{background:#1877f2;color:#fff}
.profile-create-button{background:#e4e6eb;color:#182230}
.profile-primary-actions span{font-size:21px;line-height:1}
.profile-intro-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:var(--muted);padding:2px 0 5px}
.profile-tabs-facebook{border-top:1px solid var(--line);padding:0 14px}
.profile-tabs-facebook a{min-height:48px;border:0;border-radius:22px;padding:0 17px}
.profile-tabs-facebook a.active{background:#e7f3ff;color:#1877f2;border:0}
.profile-personal-details h3{font-size:18px}
.profile-detail-edit{border:0;background:transparent;color:var(--muted);font-size:20px;padding:3px 7px}
.profile-personal-details>p{display:flex;align-items:center;gap:9px;margin:12px 0;color:var(--text);font-size:14px}
.profile-personal-details>p>span{width:20px;color:var(--muted);font-size:17px}
.profile-links-heading{font-weight:750;margin:17px 0 6px}
.profile-private-connections-note{font-size:12px!important;color:var(--muted)!important;border-top:1px solid var(--line);padding-top:12px}
.profile-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.profile-dashboard-grid>div{padding:14px;border:1px solid var(--line);border-radius:10px;display:grid;gap:4px}
.profile-dashboard-grid strong{font-size:22px}.profile-dashboard-grid small{color:var(--muted)}
.profile-events-empty{min-height:90px}
@media(max-width:700px){
 .profile-mobile-topbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#12345b;color:#fff}
 .profile-mobile-topbar>button,.profile-mobile-topbar>div button{border:0;background:transparent;color:#fff;font-size:24px;padding:5px 8px;min-width:38px}
 .profile-mobile-topbar>span{font-weight:750;font-size:16px}
 .profile-mobile-topbar>div{display:flex;align-items:center;gap:2px}
 .profile-cover-facebook{height:clamp(205px,66vw,310px);border-radius:0}
 .profile-heading-facebook{display:block;padding:0 15px 12px}
 .profile-heading-facebook .connect-profile-person{width:136px;height:136px;flex-basis:136px;margin-top:-66px;margin-left:auto;margin-right:auto}
 .profile-heading-facebook .connect-profile-name{text-align:center;padding:10px 0 5px}
 .profile-heading-facebook .connect-profile-name h2{font-size:24px}
 .profile-social-facebook{padding:0 15px 12px}
 .profile-social-facebook .profile-stats{justify-content:center;gap:22px;padding:8px 0 12px}
 .profile-intro-meta{justify-content:center}
 .profile-tabs-facebook{padding:0 8px;gap:4px}
 .profile-tabs-facebook a{padding:0 14px;min-height:44px}
 .profile-body-facebook{display:flex;flex-direction:column;gap:12px;margin-top:12px;padding:0 10px}
 .profile-body-facebook>.connect-profile-sidebar,.profile-body-facebook>.connect-profile-main{width:100%}
}

@media(max-width:700px){
 .mobile-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:5px 2px max(5px,env(safe-area-inset-bottom));}
 .mobile-nav button{min-width:0;width:100%;font-size:9px;gap:3px;white-space:nowrap}
 .mobile-nav button span:first-child{position:relative;font-size:19px}
 .mobile-notification-badge{position:absolute;right:-9px;top:-5px;min-width:14px;height:14px;padding:0 3px;border-radius:99px;background:#e41e3f;color:#fff;font-size:9px;font-style:normal;line-height:14px;text-align:center;border:1px solid #fff}
}

/* CONNECT social interface */
.social-page-head{display:flex;align-items:center;gap:12px;padding:5px 2px 14px}.social-page-head h1{font-size:24px;font-weight:800;margin:0;flex:1}.social-menu-button,.social-search-button{border:0;background:transparent;color:var(--text);font-size:25px;min-width:38px;height:40px;border-radius:50%;display:grid;place-items:center}.social-head-actions{display:flex;gap:5px}.friends-filter-row{display:flex;gap:9px;overflow:auto;padding:0 0 14px;scrollbar-width:none}.friends-filter-row button,.marketplace-tabs button{white-space:nowrap;border:0;border-radius:22px;padding:10px 15px;background:var(--surface-2);color:var(--text);font-weight:700}.friends-filter-row button.active{background:rgba(24,119,242,.12);color:#1877f2}.friends-filter-row button i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#31a24c;margin-right:6px}.friends-section{padding:8px 0 16px;border-bottom:1px solid var(--line);margin-bottom:8px}.friends-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.friends-section-title h2{font-size:18px;margin:0;font-weight:800}.friends-section-title h2 span{font-weight:600;color:var(--muted)}.friends-section-title button{border:0;background:none;color:#1877f2;font-weight:700}.friends-section .list-item{border:0;border-radius:12px;padding:12px 4px;align-items:flex-start}.friend-card-actions{display:flex;gap:8px;margin-top:10px}.friend-card-actions button{flex:1;min-height:42px}.online-dot-label{font-size:12px;color:#258d4c;white-space:nowrap}.marketplace-tabs{display:flex;align-items:center;gap:8px;overflow:auto;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:12px}.marketplace-tabs button.active{background:transparent;color:#1877f2;border-radius:0;border-bottom:3px solid #1877f2}.marketplace-tabs .marketplace-location{margin-left:auto;font-size:22px;padding:6px}.marketplace-empty{text-align:center;padding:55px 18px}.marketplace-empty-icon{font-size:42px;color:#1877f2}.marketplace-empty h2{font-size:20px}.marketplace-empty p{max-width:430px;margin:8px auto;color:var(--muted)}.notifications-page{display:flex;flex-direction:column;gap:3px}.notifications-section-label{font-weight:800;padding:8px 12px}.notification-row{display:flex;align-items:center;gap:7px;border-radius:12px;padding:7px 8px}.notification-row.unread{background:rgba(24,119,242,.07)}.notification-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:5px}.notification-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.notification-copy strong{font-size:14px;line-height:1.35;font-weight:600}.notification-copy small{font-size:12px;color:var(--muted)}.notification-type-mark{width:20px;height:20px;border-radius:50%;background:#31a24c;color:white;font-size:0;flex:none;border:3px solid white}.facebook-settings-page{max-width:760px;margin:0 auto}.facebook-settings-head{display:flex;align-items:center;gap:12px;position:sticky;top:0;background:var(--surface);z-index:3;padding:10px 0}.facebook-settings-head h1{font-size:20px;margin:0;flex:1;text-align:center}.facebook-settings-head button{border:0;background:var(--surface-2);border-radius:50%;width:40px;height:40px;font-size:24px;color:var(--text)}.settings-search{display:flex;align-items:center;gap:9px;background:var(--surface-2);border-radius:12px;padding:0 14px;margin:12px 0 20px;height:46px}.settings-search input{border:0;background:transparent;outline:0;flex:1;min-width:0;color:var(--text)}.settings-group{padding:8px 0 14px;border-bottom:1px solid var(--line);margin-bottom:8px}.settings-group h3{font-size:18px;margin:8px 0 3px;font-weight:800}.settings-group>p{font-size:13px;color:var(--muted);margin:0 0 8px}.settings-option{display:flex;align-items:center;gap:14px;width:100%;min-height:58px;text-align:left;border:0;background:transparent;color:var(--text);padding:8px 5px;border-radius:10px}.settings-option:active{background:var(--surface-2)}.settings-option-icon{width:30px;text-align:center;font-size:21px;color:var(--muted)}.settings-option-copy{display:flex;flex-direction:column;gap:3px;flex:1}.settings-option-copy strong{font-size:14px;font-weight:650}.settings-option-copy small{font-size:12px;color:var(--muted);line-height:1.3}.settings-option-chevron{font-size:23px;color:var(--muted)}.settings-current-controls{margin-top:18px}.connect-drawer-profile{border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:18px}.connect-drawer-identity{display:flex;align-items:center;gap:12px}.connect-drawer-identity strong{flex:1}.drawer-profile-switch{border:0;background:var(--surface-2);border-radius:50%;width:36px;height:36px}.drawer-create-page{margin-top:12px;border:0;border-top:1px solid var(--line);padding:14px 0 0;width:100%;text-align:left;background:transparent;color:var(--text);font-weight:650}.drawer-shortcuts-title{font-size:16px;margin:12px 0}.drawer-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.drawer-shortcuts button{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:9px;color:var(--text)}.drawer-shortcut-art{height:70px;border-radius:9px;background:var(--surface-2);display:grid;place-items:center;font-size:28px;color:#1877f2}.drawer-main-links{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:14px}.drawer-link{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);padding:12px 8px;text-align:left;border-radius:9px;min-height:46px}.drawer-link span{font-size:20px;color:var(--muted);width:25px}.drawer-accordion{border-top:1px solid var(--line)}.drawer-accordion-head{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:var(--text);padding:15px 4px;text-align:left;font-size:15px}.drawer-accordion-head strong{flex:1}.drawer-accordion-head>span:first-child{font-size:20px;color:var(--muted)}.drawer-chevron{transition:transform .2s}.drawer-accordion-head.expanded .drawer-chevron{transform:rotate(180deg)}.drawer-accordion-body{padding:0 0 10px 12px}.drawer-upgrade-card{border-radius:12px;padding:16px;background:linear-gradient(120deg,#e8f1ff,#f6f8fc);color:#183c73;display:grid;gap:5px}.drawer-upgrade-card>span{font-size:26px}.drawer-upgrade-card small{color:#526780}.drawer-logout{margin-top:18px}@media(max-width:640px){.social-page-head{padding-top:0}.friends-filter-row button{padding:9px 12px}.notification-copy strong{font-size:13px}.settings-group h3{font-size:17px}}

:root{--surface:var(--white);--surface-2:var(--paper);--text:var(--ink)}:root[data-theme="dark"]{--surface:var(--white);--surface-2:#1b2a40;--text:var(--ink)}

.marketplace-sell-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px}.marketplace-sell-head h2{margin:0;font-size:19px}
.marketplace-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.marketplace-product-card{min-width:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--card)}
.marketplace-product-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.marketplace-product-image{width:100%;aspect-ratio:1/1;background:var(--surface-2);display:grid;place-items:center;overflow:hidden}.marketplace-product-image img{width:100%;height:100%;object-fit:cover}
.marketplace-product-info{display:grid;gap:4px;padding:10px 11px 5px}.marketplace-price{font-size:16px;font-weight:850}.marketplace-product-title{font-size:14px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.marketplace-product-info small{font-size:12px;color:var(--muted)}
.marketplace-detail-image{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:12px;background:var(--surface-2)}.marketplace-product-detail h2{margin:14px 0 3px;font-size:24px}.marketplace-seller-link{border:0;background:var(--surface-2);color:var(--text);padding:12px;border-radius:10px;width:100%;text-align:left;margin:8px 0 14px}
.marketplace-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.marketplace-category-list button{min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);padding:8px;text-align:left}
@media(max-width:520px){.marketplace-product-grid{gap:8px}.marketplace-product-info{padding:8px}.marketplace-price{font-size:14px}.marketplace-product-title{font-size:13px}.marketplace-sell-head{align-items:flex-start;flex-direction:column}}
.connect-profile-cover{height:clamp(320px,46vw,500px)}.profile-heading-facebook .connect-profile-name{padding-top:38px}.profile-heading-facebook .profile-category-label{display:block;margin:4px 0 6px;width:max-content;max-width:100%;margin-left:0}
@media(max-width:700px){.profile-cover-facebook{height:clamp(270px,82vw,370px)}.profile-heading-facebook .connect-profile-name{padding-top:18px}.profile-heading-facebook .profile-category-label{margin-left:auto;margin-right:auto}}

/* CONNECT Messenger: dedicated dark inbox surface */
.messenger-screen{background:#080f1c;color:#f4f6fb;min-height:calc(100vh - 64px);margin:-16px;padding:16px 16px 86px;border-radius:0;--messenger-bg:#080f1c;--messenger-card:#131d2b;--messenger-muted:#9aa8ba;--messenger-blue:#1685f8}
.messenger-home{max-width:720px;margin:0 auto;position:relative;min-height:calc(100vh - 130px);padding-bottom:24px}
.messenger-header{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 15px}.messenger-header h1{font-size:32px;line-height:1;margin:0;font-weight:850;letter-spacing:-1.5px;color:#fff;font-family:system-ui,sans-serif}.messenger-header-actions{display:flex;align-items:center;gap:18px}.messenger-header-actions button{width:40px;height:40px;border:0;border-radius:50%;background:#202c3d;color:#fff;display:grid;place-items:center}.messenger-header-actions svg{width:22px;height:22px}.messenger-brand-mark{width:29px;height:29px;object-fit:contain;border-radius:50%}
.messenger-notice{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;border:0;border-radius:7px;background:#0866d8;color:#fff;font-size:14px;font-weight:650;text-align:left;margin-bottom:14px;min-height:46px}
.messenger-search{height:44px;border-radius:24px;background:#202c3b;color:#dce5f0;display:flex;align-items:center;gap:10px;padding:0 14px;margin-bottom:15px}.messenger-search>span{font-size:26px;line-height:1}.messenger-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#fff;font-size:15px}.messenger-search input::placeholder{color:#a7b3c3}.messenger-search button{border:0;background:transparent;color:#fff;font-size:23px}
.messenger-stories{display:flex;gap:13px;overflow-x:auto;padding:3px 0 16px;scrollbar-width:none}.messenger-stories::-webkit-scrollbar{display:none}.messenger-story{flex:0 0 72px;width:72px;border:0;background:transparent;color:#f4f6fb;padding:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:7px}.messenger-story-photo{width:66px;height:66px;position:relative;display:block;border-radius:50%;border:2px solid #287df1;padding:2px}.messenger-story-photo>.avatar,.messenger-story-photo>img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover}.messenger-story-online{position:absolute;right:-1px;bottom:0;width:15px;height:15px;background:#31cf72;border:2px solid #080f1c;border-radius:50%}.messenger-story small{width:100%;font-size:11px;color:#e6ebf2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messenger-story-create .messenger-story-photo{border:0;background:#253144;overflow:visible}.messenger-story-create .messenger-story-photo>img{opacity:.65}.messenger-note-bubble{position:absolute;top:-5px;left:-3px;right:-3px;background:#344254;color:#f4f6fb;border-radius:12px;padding:5px 3px;font-size:10px;white-space:nowrap;box-shadow:0 2px 8px #0007}.messenger-story-plus{position:absolute;right:-2px;bottom:-2px;border:2px solid #080f1c;border-radius:50%;width:23px;height:23px;background:#1685f8;color:white;font-size:19px;line-height:18px}.messenger-stories-empty{color:#9aa8ba;font-size:12px;padding:16px}
.messenger-chat-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 0 10px}.messenger-chat-heading h2{font-size:21px;margin:0;font-weight:800}.messenger-chat-heading button{width:36px;height:36px;border:0;border-radius:50%;background:#202c3b;color:#fff;font-size:24px}
.messenger-chat-list{display:flex;flex-direction:column;gap:1px}.messenger-chat-row{width:100%;min-height:76px;display:flex;align-items:center;gap:12px;padding:9px 3px;border:0;background:transparent;color:#f4f6fb;text-align:left}.messenger-chat-avatar{position:relative;flex:0 0 58px;width:58px;height:58px}.messenger-chat-avatar .avatar{width:58px;height:58px;font-size:18px}.messenger-chat-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.messenger-chat-copy strong{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messenger-chat-copy small{font-size:13px;color:#aab6c5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messenger-chat-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;min-width:56px}.messenger-chat-meta time{font-size:11px;color:#9aa8ba}.messenger-unread-dot{width:9px;height:9px;background:#1685f8;border-radius:50%}.messenger-chat-unread .messenger-chat-copy strong{color:#fff}.messenger-chat-unread .messenger-chat-copy small{color:#d9e4f2}
.messenger-empty{padding:35px 18px;text-align:center;color:#aab6c5}.messenger-empty strong{display:block;color:#fff;font-size:17px;margin:8px}.messenger-empty p{font-size:13px;line-height:1.5}.messenger-empty button{margin-top:10px;border:0;border-radius:22px;padding:10px 16px;background:#1685f8;color:white;font-weight:700}.messenger-empty-icon{font-size:34px;color:#1685f8}
.messenger-compose-fab{position:fixed;z-index:12;right:max(18px,calc((100vw - 720px)/2));bottom:88px;border:1px solid #33445b;border-radius:25px;background:#111d2c;color:#fff;box-shadow:0 6px 20px #0007;padding:12px 17px;font-size:14px;font-weight:750}.messenger-compose-fab span{color:#56a3ff;font-size:19px;margin-right:6px}
.messenger-bottom-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;height:66px;background:#0c1522;border-top:1px solid #263345;display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom)}.messenger-bottom-nav button{position:relative;border:0;background:transparent;color:#aab6c5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.messenger-bottom-nav button.active{color:#1685f8}.messenger-nav-icon{font-size:22px;line-height:24px}.messenger-bottom-nav small{font-size:11px;font-weight:650}.messenger-nav-count{position:absolute;top:5px;left:calc(50% + 4px);font-size:9px;font-style:normal;color:#fff;background:#e53950;border-radius:10px;padding:1px 4px}.messenger-nav-dot{position:absolute;top:7px;left:calc(50% + 8px);width:8px;height:8px;border-radius:50%;background:#e53950}
.messenger-thread{max-width:720px;margin:0 auto;min-height:calc(100vh - 90px);display:flex;flex-direction:column;padding-bottom:75px}.messenger-thread-heading{display:flex;align-items:center;gap:12px;padding:4px 0 14px;border-bottom:1px solid #27364a}.messenger-thread-heading>button{width:40px;height:40px;border:0;border-radius:50%;background:#202c3b;color:#fff;font-size:30px}.messenger-thread-heading .avatar{width:40px;height:40px}.messenger-thread-heading strong{flex:1;color:#fff}.messenger-thread-actions button{border:0;background:transparent;color:#fff;font-size:20px}.messenger-thread .message-scroll{flex:1;min-height:50vh;max-height:none;overflow-y:auto;padding:15px 2px}.messenger-thread .bubble{max-width:82%;padding:10px 14px;border-radius:18px;background:#202d3e;color:#f4f6fb;margin:7px 0}.messenger-thread .bubble.mine{margin-left:auto;background:#0866d8;color:#fff}.messenger-thread .message-compose{position:sticky;bottom:66px;background:#0c1522;padding:10px 0;display:flex;gap:8px}.messenger-thread .message-compose input{flex:1;min-width:0;background:#202c3b;border:0;border-radius:22px;color:white;padding:12px 15px}.messenger-thread .message-compose button{border-radius:22px}
.messenger-picker-list{max-height:55vh;overflow:auto;margin-top:10px}.messenger-picker-row{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left}.messenger-picker-row .avatar{width:42px;height:42px}
@media(max-width:700px){.messenger-screen{margin:-12px -12px 0;padding:14px 14px 86px;border-radius:0}.messenger-home{min-height:calc(100dvh - 115px)}.messenger-header h1{font-size:30px}.messenger-compose-fab{right:16px;bottom:78px}.messenger-thread{min-height:calc(100dvh - 82px)}.messenger-thread .message-compose{bottom:66px}}

body.messenger-view-active .topbar,body.messenger-view-active .left-rail,body.messenger-view-active .right-rail,body.messenger-view-active .mobile-nav{display:none!important}
body.messenger-view-active .layout{display:block;max-width:none;padding:0;margin:0}
body.messenger-view-active .content{width:100%;max-width:none;margin:0;padding:0;min-width:0}
body.messenger-view-active .messenger-screen{margin:0!important;width:100%;max-width:none;min-height:100dvh;border-radius:0}
body.messenger-view-active{background:#080f1c}


/* Creator dashboard and analytics */
.creator-dashboard-page,.creator-analytics-page{max-width:900px;margin:0 auto;padding:4px 0 40px;color:var(--text)}
.creator-appbar,.creator-analytics-head{display:flex;align-items:center;gap:12px;min-height:52px;padding:4px 0 12px}
.creator-appbar>button,.creator-analytics-head>button{border:0;background:transparent;color:var(--text);font-size:28px;width:42px;height:42px;border-radius:50%}
.creator-appbar h1{font-size:21px;font-weight:800;margin:0;flex:1;text-align:center}
.creator-app-avatar .avatar{width:34px;height:34px;font-size:12px}
.creator-filter-pills{display:flex;gap:8px;overflow:auto;padding:4px 0 15px;scrollbar-width:none}
.creator-filter-pills button,.creator-range-quick button{border:0;border-radius:22px;padding:9px 15px;background:var(--surface-2);color:var(--text);font-size:13px;font-weight:700;white-space:nowrap}
.creator-filter-pills button.active,.creator-range-quick button.active{background:#e7f3ff;color:#1877f2}
.creator-identity-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 1px 3px #00000012}
.creator-identity-avatar .avatar{width:52px;height:52px;font-size:16px}.creator-identity-card>div:last-child{display:grid;gap:4px}.creator-identity-card strong{font-size:16px}.creator-identity-card small{font-size:13px;color:var(--muted)}
.creator-update-card{display:flex;align-items:center;gap:10px;margin:13px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 1px 3px #00000010}.creator-update-card>span{font-size:21px}.creator-update-card strong{font-size:14px}.creator-update-card small{margin-left:auto;color:var(--muted);font-size:11px}
.creator-goals{display:flex;justify-content:space-around;gap:12px;padding:14px 4px 20px}
.creator-ring-wrap{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.creator-ring{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(var(--ring-color) var(--ring-pct),#e7e9ed 0);isolation:isolate}
.creator-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--card);z-index:-1}
.creator-ring strong{font-size:16px;color:var(--text)}.creator-ring-empty{background:conic-gradient(#252525 0%,#e7e9ed 0)}
.creator-section{padding:18px 0;border-top:1px solid var(--line);scroll-margin-top:16px}
.creator-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.creator-section-heading>button{border:0;background:transparent;color:var(--text);font-size:18px;padding:0;text-align:left}
.creator-section-heading h2,.creator-section>h2{font-size:18px;margin:0;font-weight:800}
.creator-range-quick{display:flex;gap:4px}.creator-range-quick button{padding:7px 10px;font-size:11px}
.creator-section-subtitle{font-size:13px;color:var(--muted);margin:0 0 9px}
.creator-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.creator-summary-metric{min-height:96px;padding:14px;border-radius:12px;background:var(--card);border:1px solid var(--line);box-shadow:0 1px 3px #00000010;display:flex;flex-direction:column;gap:5px}
.creator-summary-metric span{font-size:12px;color:var(--muted)}.creator-summary-metric strong{font-size:24px;font-weight:850}.creator-summary-metric small{font-size:11px;color:var(--muted)}
.creator-latest-post{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.65fr);gap:12px;align-items:center;padding:12px;border-radius:12px;background:var(--card);border:1px solid var(--line)}
.creator-content-card{min-width:0;display:flex;gap:10px;align-items:center}.creator-content-preview{width:72px;height:72px;flex:0 0 72px;border-radius:8px;background:var(--surface-2);overflow:hidden;display:grid;place-items:center}.creator-content-preview img,.creator-content-preview video{width:100%;height:100%;object-fit:cover}.creator-content-text{font-size:26px;color:#1877f2}
.creator-content-copy{min-width:0;display:grid;gap:5px}.creator-content-copy strong{font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.creator-content-copy small{font-size:10px;color:var(--muted)}
.creator-latest-stats{display:grid;gap:7px;font-size:11px;color:var(--muted)}.creator-latest-stats span{display:flex;justify-content:space-between;gap:8px}.creator-latest-stats b{color:var(--text)}
.creator-empty{padding:17px 14px;background:var(--surface-2);border-radius:11px;color:var(--muted);font-size:13px;line-height:1.5}
.creator-payout-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card);display:grid;gap:9px}.creator-payout-card>small{color:var(--muted)}.creator-payout-card>strong{font-size:27px}.creator-payout-track{height:9px;border-radius:10px;background:var(--surface-2);overflow:hidden}.creator-payout-track span{display:block;width:0;height:100%;background:#1877f2}.creator-payout-card p{margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.creator-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.creator-tools-grid button{min-height:54px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--text);font-weight:650;text-align:left;padding:12px}.creator-tools-grid .wide{grid-column:1/-1}
.creator-analytics-head>div{flex:1}.creator-analytics-head h1{font-size:20px;margin:0 0 2px}.creator-analytics-head small{font-size:12px;color:var(--muted)}
.creator-metric-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:6px 0 16px}
.creator-metric-card{min-height:105px;padding:12px;border:2px solid transparent;border-radius:12px;background:var(--card);box-shadow:0 1px 3px #00000012;text-align:left;color:var(--text);display:grid;grid-template-columns:28px 1fr;align-items:center;gap:3px 8px}
.creator-metric-card.selected{border-color:#1877f2;background:#f5f9ff}.creator-metric-icon{font-size:20px;color:#1877f2;grid-row:span 2}.creator-metric-card strong{font-size:20px}.creator-metric-card small{font-size:12px;color:var(--muted)}.creator-metric-card em{grid-column:2;font-style:normal;font-size:11px;color:var(--muted)}
.creator-info-banner{display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:13px;margin-bottom:13px;border-radius:11px;background:var(--surface-2);font-size:13px}.creator-info-banner p{grid-column:1/-1;margin:0;color:var(--muted);line-height:1.45}.creator-info-banner button{border:0;background:transparent;color:var(--muted);font-size:19px}
.creator-chart-card{padding:15px 10px 6px;border-radius:12px;background:var(--card);border:1px solid var(--line);box-shadow:0 1px 3px #00000010}.creator-chart-title{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:0 6px 8px}.creator-chart-title h2{font-size:16px;margin:0}.creator-chart-title strong{font-size:19px}.creator-chart-svg{width:100%;height:auto;display:block;overflow:visible}.creator-chart-empty{padding:28px 14px;min-height:120px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:13px;line-height:1.5}
.creator-tip{margin:12px 0;padding:13px;border-radius:12px;background:var(--card);border:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--text)}
.creator-breakdown-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.creator-breakdown-card{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.creator-breakdown-card>strong{font-size:14px}.creator-breakdown-card p{font-size:11px;color:var(--muted)}
.creator-bars{display:grid;gap:12px;margin-top:13px}.creator-bars>div{display:grid;grid-template-columns:70px minmax(30px,1fr) 28px;gap:6px;align-items:center;font-size:10px}.creator-bars i{height:7px;background:var(--surface-2);border-radius:8px;overflow:hidden}.creator-bars i b{display:block;height:100%;background:#1877f2;border-radius:8px}.creator-bars>div>strong{text-align:right}
.creator-person-row{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid var(--line)}.creator-person-row .avatar{width:38px;height:38px}.creator-person-row strong{font-size:13px;flex:1}.creator-person-row>span{font-size:11px;color:var(--muted)}
.creator-top-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creator-top-content-grid .creator-content-card{padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--card);align-items:flex-start;flex-direction:column}.creator-top-content-grid .creator-content-preview{width:100%;height:auto;aspect-ratio:1/1;flex-basis:auto}
.creator-date-sheet{max-height:55vh;overflow:auto}.creator-date-options{display:grid;gap:3px}.creator-date-options button{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:62px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--text)}.creator-date-options button.active{background:var(--surface-2)}.creator-date-options button>span{display:grid;gap:4px}.creator-date-options strong{font-size:15px}.creator-date-options small{font-size:12px;color:var(--muted)}.creator-date-options i{width:22px;height:22px;border:2px solid #8a8d91;border-radius:50%;position:relative}.creator-date-options .active i{border-color:#1877f2}.creator-date-options .active i:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#1877f2}
.creator-search-row{padding:12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.creator-search-row small{color:var(--muted)}
body.creator-view-active .creator-dashboard-page,body.creator-view-active .creator-analytics-page{padding-left:16px;padding-right:16px}
@media(max-width:600px){.creator-update-card{flex-wrap:wrap}.creator-update-card small{width:100%;margin-left:31px}.creator-latest-post{grid-template-columns:1fr}.creator-latest-stats{grid-template-columns:repeat(3,1fr)}.creator-breakdown-grid{grid-template-columns:1fr}.creator-metric-card{min-height:94px}.creator-ring{width:70px;height:70px}.creator-content-preview{width:62px;height:62px;flex-basis:62px}}

.notification-row-options{border:0;background:transparent;color:var(--muted);font-size:17px;min-width:34px;min-height:44px;border-radius:8px}
.notification-options-list{display:grid;gap:6px}.notification-options-list button{min-height:48px;border:0;border-radius:9px;background:var(--surface-2);color:var(--text);text-align:left;padding:10px 13px}
#modalRoot:has(.creator-date-sheet) .modal-backdrop{align-items:flex-end;padding:0}
#modalRoot:has(.creator-date-sheet) .modal{width:100%;max-width:720px;margin:0;border-radius:18px 18px 0 0;padding-bottom:max(18px,env(safe-area-inset-bottom));max-height:60vh;overflow:auto}
#modalRoot:has(.creator-date-sheet) .modal:before{content:"";display:block;width:42px;height:4px;border-radius:8px;background:#c7cbd1;margin:0 auto 12px}

/* Full-height CONNECT right drawer */
#modalRoot .connect-menu-backdrop{align-items:stretch;justify-content:flex-end;padding:0;background:rgba(0,0,0,.52)}
#modalRoot .connect-menu-panel{width:min(85vw,440px);max-width:85vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:18px 16px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;animation:connectDrawerIn .22s ease-out}
@keyframes connectDrawerIn{from{transform:translateX(100%)}to{transform:translateX(0)}}
.creator-payout-history{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:10px}.creator-payout-history>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.creator-payout-history>div span{color:var(--muted);text-transform:capitalize}


/* Native-app interaction: prevent long-press text selection and browser callout on feed copy. */
html,body,.app-shell,.screen,.post-card,.post-content,.post-body,.notification-row,.list-item,.creator-dashboard-page,.creator-analytics-page,.connect-drawer-panel,.connect-profile{
 -webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent;
}
input,textarea,select,[contenteditable="true"],[contenteditable=""],.connect-post-textarea,.connect-post-writing textarea{
 -webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important;
}
img,video,svg{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}

/* Profile identity: larger avatar anchored to the left on desktop and mobile. */
.profile-heading-facebook{align-items:flex-start!important;gap:18px!important}
.profile-heading-facebook .connect-profile-person{width:184px!important;height:184px!important;flex:0 0 184px!important;margin-top:-100px!important;margin-left:0!important;margin-right:0!important}
.profile-heading-facebook .connect-profile-name{text-align:left!important;padding:28px 0 8px!important;min-width:0}
.profile-heading-facebook .profile-category-label{margin-left:0!important;margin-right:0!important}
@media(max-width:700px){
 .profile-heading-facebook{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:12px!important;padding-left:14px!important;padding-right:14px!important}
 .profile-heading-facebook .connect-profile-person{width:164px!important;height:164px!important;flex:0 0 164px!important;margin-top:-88px!important;margin-left:0!important;margin-right:0!important}
 .profile-heading-facebook .connect-profile-name{flex:1 1 0!important;width:auto!important;min-width:0!important;text-align:left!important;padding:8px 0 5px!important}
 .profile-heading-facebook .connect-profile-name h2{font-size:clamp(18px,5vw,23px)!important;overflow-wrap:anywhere}
 .profile-heading-facebook .profile-category-label{margin-left:0!important;margin-right:0!important}
 .profile-heading-facebook .connect-profile-person>.avatar,.profile-heading-facebook .connect-profile-person>.avatar-story-trigger>.avatar{border-width:4px!important}
}
@media(max-width:380px){
 .profile-heading-facebook .connect-profile-person{width:148px!important;height:148px!important;flex-basis:148px!important;margin-top:-78px!important}
 .profile-heading-facebook .connect-profile-name h2{font-size:18px!important}
}
.creator-load-error{margin:24px 16px;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--card);text-align:center}
.creator-load-error p{color:var(--muted);overflow-wrap:anywhere}


/* Prepaid CONNECT advertising */
.promotion-campaign-row{align-items:center;gap:12px}
.promotion-campaign-row .grow{min-width:0}
.promotion-campaign-row small{display:block;color:var(--muted,#6b7280);margin-top:3px}
.promotion-sponsored{margin:18px 0;padding:12px;border:1px solid var(--border,#e5e7eb);border-radius:16px;background:var(--surface,#fff)}
.promotion-sponsored-label{display:flex;align-items:center;gap:7px;margin:0 4px 8px;color:var(--muted,#6b7280);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.promotion-sponsored .post-card{margin:0;border:0;box-shadow:none}
.promotion-sponsored-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 4px 2px;border-top:1px solid var(--border,#e5e7eb);font-size:12px;color:var(--muted,#6b7280)}
.promotion-sponsored-cta button{min-height:42px}
.promotion-campaign-list{display:grid;gap:8px}

/* Pre-launch interaction and profile refinements */
.story-create-visual{height:112px!important;overflow:visible!important;background:#fff!important;border-radius:12px!important}
.story-create-photo{height:82%!important;border-radius:12px 12px 0 0!important}
.story-create-photo>.avatar,.story-create-photo .avatar img{border-radius:12px 12px 0 0!important}
.story-add{top:82%!important;width:42px!important;height:42px!important;background:#1877f2!important;border:3px solid #fff!important;z-index:3}
.story-create .story-name{padding-top:5px}
.post-reaction-summary{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border:0;background:transparent;padding:0;color:inherit;cursor:pointer}
.post-reaction-count{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--muted);font-weight:650}
.post-reaction-count i{font-style:normal;font-size:16px;line-height:1}
.reaction-love{color:#e11d48!important}.reaction-like{color:#1877f2!important}.reaction-support{color:#16a34a!important}.reaction-celebrate{color:#d97706!important}.reaction-insightful{color:#8b5cf6!important}
.reaction-action{display:inline-flex;align-items:center;justify-content:center;gap:6px}.reaction-action>span{font-size:17px;line-height:1}
.reaction-action.reaction-love{color:#e11d48!important}.reaction-action.reaction-like{color:#1877f2!important}.reaction-action.reaction-support{color:#16a34a!important}.reaction-action.reaction-celebrate{color:#d97706!important}.reaction-action.reaction-insightful{color:#8b5cf6!important}
.connect-reaction-picker button[data-reaction="love"]{color:#e11d48}.connect-reaction-picker button[data-reaction="like"]{color:#1877f2}.connect-reaction-picker button[data-reaction="support"]{color:#16a34a}.connect-reaction-picker button[data-reaction="celebrate"]{color:#d97706}.connect-reaction-picker button[data-reaction="insightful"]{color:#8b5cf6}
.post-options-menu button{text-align:left;min-height:46px;font-weight:650}
.post-tag-form{display:grid;gap:12px}.post-tag-choices{display:grid;gap:5px;max-height:48vh;overflow:auto}
.post-tag-choice{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;background:var(--surface-2,#f5f7fa);cursor:pointer}.post-tag-choice>span{display:flex;align-items:center;gap:10px;min-width:0}.post-tag-choice .avatar{width:38px;height:38px;flex:0 0 38px}.post-tag-choice>span>span{display:grid}.post-tag-choice small{color:var(--muted)}
.profile-person-column{width:190px;flex:0 0 190px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.profile-person-column .connect-profile-person{margin-top:-92px}
 .profile-person-column .profile-relationship-stats{width:100%;display:flex!important;flex-direction:row!important;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px;padding:2px 0 8px}
.profile-person-column .profile-relationship-stats>button{padding:5px 0}
.profile-heading-facebook .connect-profile-name{flex:1;min-width:0;align-self:center;padding:14px 0 10px}
.connect-profile-name p{font-size:16px;line-height:1.65;max-width:1000px;min-height:72px;white-space:pre-wrap}
.profile-heading-facebook .connect-profile-name p{padding:8px 12px 10px 0;margin-top:8px}
.profile-cover-photo-edit{display:grid!important;place-items:center!important}.profile-cover-photo-edit svg{width:22px!important;height:22px!important}
.mobile-nav button{flex:1 1 0;min-width:0;max-width:none;font-size:9px}.mobile-nav button span:first-child{font-size:19px}
.mobile-nav-bell,.mobile-nav-profile{position:relative;width:23px;height:22px;display:grid;place-items:center}.mobile-nav-bell svg,.mobile-nav-profile svg{width:22px;height:22px;display:block}
.mobile-nav .mobile-notification-badge{right:-6px;top:-3px}.nav-bell svg{width:19px;height:19px;display:block}
@media(max-width:720px){
 .story-create-visual{height:98px!important}
 .profile-person-column{width:118px;flex:0 0 118px;gap:5px}
 .profile-person-column .connect-profile-person{margin-top:-62px;width:116px;height:116px;flex-basis:116px}
 .profile-heading-facebook{align-items:flex-start!important;gap:12px!important;padding:0 12px 12px!important}
 .profile-heading-facebook .connect-profile-name{padding:10px 0 4px!important}
 .profile-heading-facebook .connect-profile-name p{font-size:14px;line-height:1.55;min-height:86px;padding:6px 0}
 .profile-person-column .profile-relationship-stats{display:flex!important;flex-direction:row!important;gap:10px;white-space:nowrap}
 .profile-person-column .profile-relationship-stats>button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:5px 0}
 .mobile-nav button{font-size:9px;min-width:0}.mobile-nav button span:first-child{font-size:18px}
 .mobile-nav{gap:1px;padding-left:2px;padding-right:2px}
}

/* Profile story composer owner photo and reel gallery */
.story-create-photo>.story-owner-avatar{display:block!important;width:100%!important;height:100%!important;border:0!important;border-radius:12px 12px 0 0!important;overflow:hidden!important;opacity:1!important}
.story-create-photo>.story-owner-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:12px 12px 0 0!important}
.profile-reels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.profile-reel-card{min-width:0;border-radius:12px;overflow:hidden;background:var(--surface,#f5f7fa)}
.profile-reel-card video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;background:#111}
.profile-reel-card p{padding:8px;margin:0;font-size:13px}

/* Profile toolbar alignment refinement */
@media(max-width:700px){.profile-mobile-topbar{position:relative;justify-content:space-between;padding:0 10px}.profile-mobile-topbar>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;text-align:center}.profile-mobile-topbar>div{margin-left:auto;gap:0}.profile-mobile-topbar>button,.profile-mobile-topbar>div button{width:40px;min-width:40px;height:44px;min-height:44px;padding:0;display:grid;place-items:center}.profile-mobile-topbar>div button svg{width:20px;height:20px;display:block}.profile-mobile-topbar>div button.profile-toolbar-edit svg{width:19px;height:19px}.profile-detail-edit{width:40px;height:40px;display:grid;place-items:center;padding:8px}.profile-detail-edit svg{width:18px;height:18px}}

/* CONNECT mobile profile toolbar: centered heading and compact Facebook-style controls. */
@media(max-width:700px){
 .profile-mobile-topbar{height:48px!important;min-height:48px!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 8px!important}
 .profile-mobile-topbar>span{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;text-align:center!important;font-size:16px!important;font-weight:800!important;white-space:nowrap!important;pointer-events:none!important}
 .profile-mobile-topbar>div{display:flex!important;align-items:center!important;gap:2px!important;margin-left:auto!important}
 .profile-mobile-topbar>button,.profile-mobile-topbar>div button{width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important}
 .profile-mobile-topbar>div button svg{width:19px!important;height:19px!important;display:block!important}
 .profile-mobile-topbar>div button.profile-toolbar-edit{background:#ffffff1a!important;border:1px solid #ffffff35!important}
 .profile-mobile-topbar>div button.profile-toolbar-edit svg{width:18px!important;height:18px!important}
}


/* Focused profile layout and cover controls requested; other screens remain untouched. */
.profile-cover-facebook{position:relative!important}
.profile-cover-menu-tools{position:absolute!important;top:12px!important;right:14px!important;left:auto!important;bottom:auto!important;z-index:8!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:3px!important}
.profile-cover-menu-tools button{position:static!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;text-shadow:0 1px 4px #000b!important}
.profile-cover-menu-tools button svg{display:block!important;width:19px!important;height:19px!important}
.profile-cover-menu-tools button.profile-toolbar-edit{background:transparent!important;border:0!important}
.profile-cover-photo-edit{position:absolute!important;right:12px!important;bottom:12px!important;top:auto!important;left:auto!important;z-index:8!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;text-shadow:0 1px 4px #000b!important}
.profile-heading-facebook{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
.profile-heading-facebook .profile-person-column{width:100%!important;flex:0 0 auto!important;display:flex!important;flex-direction:row!important;align-items:flex-end!important;gap:14px!important}
.profile-heading-facebook .profile-person-column .connect-profile-person{flex:0 0 116px!important;width:116px!important;height:116px!important;margin-top:-62px!important}
.profile-heading-facebook .profile-person-column .profile-relationship-stats{width:auto!important;flex:1 1 auto!important;align-self:flex-end!important;margin:0 0 8px!important}
.profile-heading-facebook .connect-profile-name{width:100%!important;max-width:none!important;flex:0 0 auto!important;align-self:stretch!important;padding:12px 0 8px!important;text-align:left!important}
.profile-heading-facebook .connect-profile-name h2{margin:0 0 4px!important}
.profile-heading-facebook .profile-category-label{display:block!important;width:max-content!important;max-width:100%!important;margin:3px 0 5px!important}
.profile-heading-facebook .connect-profile-name>p{margin:5px 0 0!important;padding:0!important;min-height:0!important;font-size:15px!important;line-height:1.55!important}
.profile-avatar-edit{right:3px!important;bottom:3px!important;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#17243a!important}
@media(max-width:720px){
 .profile-cover-menu-tools{top:8px!important;right:8px!important;gap:1px!important}
 .profile-cover-menu-tools button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
 .profile-cover-menu-tools button svg{width:18px!important;height:18px!important}
 .profile-cover-photo-edit{right:8px!important;bottom:8px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
 .profile-heading-facebook{padding:0 14px 12px!important}
 .profile-heading-facebook .profile-person-column{width:100%!important;flex:0 0 auto!important;gap:12px!important}
 .profile-heading-facebook .profile-person-column .connect-profile-person{width:116px!important;height:116px!important;flex:0 0 116px!important;margin-top:-62px!important}
 .profile-heading-facebook .connect-profile-name{width:100%!important;padding:12px 0 6px!important}
 .profile-heading-facebook .connect-profile-name h2{font-size:23px!important}
 .profile-heading-facebook .connect-profile-name>p{font-size:14px!important;min-height:0!important}
}


/* Profile header layout: identity beside cover-overlapping photo; connections below photo. */
.profile-heading-facebook{display:grid!important;grid-template-columns:168px minmax(0,1fr);grid-template-rows:auto auto;column-gap:18px;row-gap:0;align-items:start}
.profile-heading-facebook .profile-person-column{display:contents}
.profile-heading-facebook .connect-profile-person{grid-column:1;grid-row:1;margin-top:-92px}
.profile-heading-facebook .profile-relationship-stats{grid-column:1;grid-row:2;align-self:start;width:100%;display:flex!important;flex-direction:row!important;flex-wrap:nowrap;justify-content:flex-start;gap:12px;padding:6px 0 8px}
.profile-heading-facebook .connect-profile-name{grid-column:2;grid-row:1 / span 2;align-self:start;min-width:0;padding:14px 0 10px}
@media(max-width:720px){
 .profile-heading-facebook{grid-template-columns:116px minmax(0,1fr);column-gap:12px;row-gap:0;align-items:start}
 .profile-heading-facebook .connect-profile-person{width:116px;height:116px;flex-basis:116px;margin-top:-62px}
 .profile-heading-facebook .profile-relationship-stats{grid-column:1;grid-row:2;gap:10px;white-space:nowrap;padding:5px 0 8px}
 .profile-heading-facebook .profile-relationship-stats>button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:5px 0}
 .profile-heading-facebook .connect-profile-name{grid-column:2;grid-row:1 / span 2;padding:10px 0 4px!important}
 .profile-heading-facebook .connect-profile-name p{font-size:14px;line-height:1.55;min-height:0;padding:6px 0}
}


/* EZMAVIQUE CONNECT brand header — logo-led navy, cyan, violet and gold identity. */
.app-shell>.topbar{
 background:linear-gradient(112deg,#06152f 0%,#0b2348 48%,#172b55 100%)!important;
 border-bottom:1px solid #36c9e6!important;
 box-shadow:0 5px 22px #06152f26, inset 0 -1px 0 #ffffff12!important;
 color:#fff!important;
}
.app-shell>.topbar .top-brand{gap:11px;min-width:0}
.app-shell>.topbar .brand-logo{
 width:48px;height:48px;flex:0 0 48px;object-fit:contain;
 filter:drop-shadow(0 2px 5px #0005);
}
.app-shell>.topbar .brand-word{
 display:block;color:#fff!important;font-size:17px;font-weight:900;
 letter-spacing:.105em;line-height:1.12;text-shadow:0 1px 2px #0004;
}
.app-shell>.topbar .brand-word span{
 color:#65e5f4!important;
 background:linear-gradient(90deg,#70eff4 0%,#64b9ff 48%,#b68aff 100%);
 -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.app-shell>.topbar .brand-word::after{
 content:"ONE WORLD. ENDLESS CONNECTIONS.";
 display:block;margin-top:4px;font-size:8px;letter-spacing:.19em;
 line-height:1.2;font-weight:750;color:#e6c77b;
 -webkit-text-fill-color:#e6c77b;
}
.app-shell>.topbar .searchbox{
 background:#ffffff12;border:1px solid #ffffff26;color:#eaf4ff;
}
.app-shell>.topbar .searchbox input{color:#fff}
.app-shell>.topbar .searchbox input::placeholder{color:#c1cde0}
.app-shell>.topbar .searchbox:focus-within{background:#ffffff1c;border-color:#67dff0}
.app-shell>.topbar .top-actions .icon-btn{
 background:#ffffff14!important;border:1px solid #ffffff24!important;
 color:#f4f8ff!important;box-shadow:inset 0 1px 0 #ffffff12;
}
.app-shell>.topbar .top-actions .icon-btn:hover{
 background:#ffffff25!important;border-color:#65dff0!important;color:#78eaf5!important;
}
.app-shell>.topbar .top-actions .create-icon{
 background:linear-gradient(135deg,#236fe9,#6556d9)!important;
 border:1px solid #8bb5ff!important;color:#fff!important;
}
@media(max-width:720px){
 .app-shell>.topbar{height:62px!important;padding:0 10px!important;gap:7px!important}
 .app-shell>.topbar .top-brand{gap:7px}
 .app-shell>.topbar .brand-logo{width:39px;height:39px;flex-basis:39px}
 .app-shell>.topbar .brand-word{font-size:12px;letter-spacing:.075em}
 .app-shell>.topbar .brand-word::after{font-size:6.5px;letter-spacing:.14em;margin-top:3px}
 .app-shell>.topbar .top-actions{gap:5px}
 .app-shell>.topbar .top-actions .icon-btn{width:36px;height:36px;min-width:36px}
}
@media(max-width:360px){
 .app-shell>.topbar .brand-logo{width:35px;height:35px;flex-basis:35px}
 .app-shell>.topbar .brand-word{font-size:10px;letter-spacing:.055em}
 .app-shell>.topbar .brand-word::after{font-size:5.7px}
 .app-shell>.topbar .top-actions .icon-btn{width:33px;height:33px;min-width:33px}
}


/* Final Facebook-style profile header: avatar and relationship counts on the left;
   identity, public-figure/category label and bio on the right. */
.profile-heading-facebook{
 display:grid!important;
 grid-template-columns:184px minmax(0,1fr)!important;
 grid-template-rows:auto!important;
 align-items:start!important;
 column-gap:22px!important;
 row-gap:0!important;
 padding:0 20px 14px!important;
}
.profile-heading-facebook>.profile-person-column{
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-start!important;
 justify-content:flex-start!important;
 gap:9px!important;
 width:184px!important;
 min-width:0!important;
 flex:0 0 184px!important;
}
.profile-heading-facebook .profile-person-column>.connect-profile-person{
 display:block!important;
 position:relative!important;
 width:176px!important;
 height:176px!important;
 flex:0 0 176px!important;
 margin:-92px 0 0!important;
}
.profile-heading-facebook .profile-person-column>.connect-profile-person>.avatar,
.profile-heading-facebook .profile-person-column>.connect-profile-person>.avatar-story-trigger,
.profile-heading-facebook .profile-person-column>.connect-profile-person>.avatar-story-trigger>.avatar{
 display:flex!important;
 width:100%!important;
 height:100%!important;
 border:5px solid var(--card,#fff)!important;
 border-radius:50%!important;
 overflow:hidden!important;
 box-shadow:0 3px 16px #10213b24!important;
}
.profile-heading-facebook .profile-relationship-stats{
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:flex-start!important;
 flex-wrap:nowrap!important;
 gap:18px!important;
 width:100%!important;
 margin:0!important;
 padding:2px 0 8px!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-start!important;
 justify-content:center!important;
 gap:2px!important;
 min-width:0!important;
 padding:4px 0!important;
 text-align:left!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 color:var(--text,#17243a)!important;
 font-size:17px!important;
 line-height:1.2!important;
 font-weight:800!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
 color:var(--muted,#667085)!important;
 font-size:12px!important;
 line-height:1.3!important;
 font-weight:650!important;
}
.profile-heading-facebook>.connect-profile-name{
 grid-column:2!important;
 grid-row:1!important;
 display:block!important;
 align-self:start!important;
 width:100%!important;
 min-width:0!important;
 max-width:none!important;
 margin:0!important;
 padding:12px 0 10px!important;
 text-align:left!important;
}
.profile-heading-facebook>.connect-profile-name h2{
 margin:0 0 6px!important;
 color:var(--text,#17243a)!important;
 font-size:clamp(24px,3vw,32px)!important;
 line-height:1.18!important;
 letter-spacing:-.035em!important;
 font-weight:850!important;
 overflow-wrap:anywhere!important;
}
.profile-heading-facebook>.connect-profile-name .profile-category-label{
 display:inline-flex!important;
 align-items:center!important;
 width:max-content!important;
 max-width:100%!important;
 margin:0 0 8px!important;
 padding:5px 11px!important;
 border:1px solid #4d8df044!important;
 border-radius:999px!important;
 background:linear-gradient(100deg,#eaf5ff,#f1edff)!important;
 color:#315fba!important;
 font-size:12px!important;
 line-height:1.35!important;
 font-weight:750!important;
}
.profile-heading-facebook>.connect-profile-name>p{
 display:block!important;
 margin:0 0 7px!important;
 padding:0!important;
 min-height:0!important;
 max-width:850px!important;
 color:var(--text,#344054)!important;
 font-size:15px!important;
 line-height:1.65!important;
 font-weight:450!important;
 white-space:pre-wrap!important;
 overflow-wrap:anywhere!important;
}
.profile-heading-facebook>.connect-profile-name>.muted{
 margin-top:5px!important;
 font-size:12px!important;
 line-height:1.4!important;
}
@media(max-width:720px){
 .profile-heading-facebook{
  grid-template-columns:112px minmax(0,1fr)!important;
  column-gap:14px!important;
  padding:0 14px 12px!important;
 }
 .profile-heading-facebook>.profile-person-column{
  width:112px!important;
  flex-basis:112px!important;
  gap:8px!important;
 }
 .profile-heading-facebook .profile-person-column>.connect-profile-person{
  width:108px!important;
  height:108px!important;
  flex-basis:108px!important;
  margin:-58px 0 0!important;
 }
 .profile-heading-facebook .profile-person-column>.connect-profile-person>.avatar,
 .profile-heading-facebook .profile-person-column>.connect-profile-person>.avatar-story-trigger,
 .profile-heading-facebook .profile-person-column>.connect-profile-person>.avatar-story-trigger>.avatar{
  border-width:4px!important;
 }
 .profile-heading-facebook .profile-relationship-stats{
  gap:12px!important;
  padding:0 0 7px!important;
 }
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:15px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:11px!important}
 .profile-heading-facebook>.connect-profile-name{padding:9px 0 5px!important}
 .profile-heading-facebook>.connect-profile-name h2{
  font-size:clamp(19px,5.3vw,24px)!important;
  line-height:1.2!important;
  margin-bottom:5px!important;
 }
 .profile-heading-facebook>.connect-profile-name .profile-category-label{
  font-size:11px!important;
  padding:4px 8px!important;
  margin-bottom:6px!important;
 }
 .profile-heading-facebook>.connect-profile-name>p{
  font-size:13px!important;
  line-height:1.5!important;
 }
}
@media(max-width:360px){
 .profile-heading-facebook{grid-template-columns:100px minmax(0,1fr)!important;column-gap:10px!important;padding-left:10px!important;padding-right:10px!important}
 .profile-heading-facebook>.profile-person-column{width:100px!important;flex-basis:100px!important}
 .profile-heading-facebook .profile-person-column>.connect-profile-person{width:96px!important;height:96px!important;flex-basis:96px!important;margin-top:-52px!important}
 .profile-heading-facebook .profile-relationship-stats{gap:9px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:14px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:10px!important}
 .profile-heading-facebook>.connect-profile-name h2{font-size:18px!important}
}


/* One unified Facebook-style cover toolbar and restored large avatar/profile columns. */
.connect-profile-cover.profile-cover-facebook{position:relative!important;padding-top:0!important}
.profile-mobile-topbar{
 display:grid!important;
 grid-template-columns:44px minmax(0,1fr) auto!important;
 align-items:center!important;
 position:absolute!important;
 z-index:12!important;
 top:0!important;left:0!important;right:0!important;
 width:100%!important;height:56px!important;
 padding:0 12px!important;
 background:linear-gradient(180deg,rgba(5,18,39,.72),rgba(5,18,39,.12))!important;
 color:#fff!important;
}
.profile-mobile-topbar>button{
 display:grid!important;place-items:center!important;
 width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
 padding:0!important;border:0!important;border-radius:50%!important;
 background:transparent!important;color:#fff!important;font-size:23px!important;
}
.profile-mobile-topbar>span{
 display:block!important;justify-self:center!important;
 color:#fff!important;font-size:17px!important;font-weight:750!important;
 letter-spacing:.01em!important;text-align:center!important;
 text-shadow:0 1px 5px #0009!important;
}
.profile-mobile-topbar>.profile-topbar-actions{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 gap:5px!important;min-width:0!important;
}
.profile-mobile-topbar>.profile-topbar-actions button{
 display:grid!important;place-items:center!important;
 width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
 background:#ffffff18!important;color:#fff!important;
 box-shadow:inset 0 0 0 1px #ffffff35!important;
}
.profile-mobile-topbar>.profile-topbar-actions button svg{display:block!important;width:19px!important;height:19px!important}
.profile-mobile-topbar>.profile-topbar-actions button:active{background:#ffffff35!important}
.profile-heading-facebook{
 display:grid!important;grid-template-columns:184px minmax(0,1fr)!important;
 column-gap:22px!important;align-items:start!important;
}
.profile-heading-facebook>.profile-person-column{
 width:184px!important;min-width:0!important;flex:0 0 184px!important;
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important;
}
.profile-heading-facebook .profile-person-column>.connect-profile-person{
 width:176px!important;height:176px!important;flex:0 0 176px!important;
 margin:-92px 0 0!important;
}
.profile-heading-facebook>.connect-profile-name{
 grid-column:2!important;grid-row:1!important;min-width:0!important;
 padding:12px 0 10px!important;text-align:left!important;
}
.profile-heading-facebook>.connect-profile-name h2{
 font-family:Inter,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
 font-size:clamp(24px,3vw,32px)!important;font-weight:750!important;
 letter-spacing:-.035em!important;line-height:1.18!important;
}
.profile-heading-facebook>.connect-profile-name>p{
 min-height:0!important;max-width:none!important;font-size:15px!important;
 line-height:1.65!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
.profile-heading-facebook .profile-relationship-stats{
 display:flex!important;flex-direction:row!important;justify-content:flex-start!important;
 flex-wrap:nowrap!important;gap:18px!important;width:100%!important;margin:0!important;padding:2px 0 8px!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 min-width:0!important;padding:4px 0!important;text-align:left!important;
}
@media(max-width:720px){
 .profile-mobile-topbar{height:52px!important;padding:0 8px!important;grid-template-columns:38px minmax(0,1fr) auto!important}
 .profile-mobile-topbar>button{width:36px!important;height:40px!important;min-width:36px!important}
 .profile-mobile-topbar>span{font-size:16px!important}
 .profile-mobile-topbar>.profile-topbar-actions{gap:2px!important}
 .profile-mobile-topbar>.profile-topbar-actions button{width:36px!important;height:38px!important;min-width:36px!important;min-height:38px!important;background:#ffffff20!important}
 .profile-heading-facebook{
  grid-template-columns:140px minmax(0,1fr)!important;
  column-gap:14px!important;padding:0 14px 12px!important;
 }
 .profile-heading-facebook>.profile-person-column{width:140px!important;flex-basis:140px!important;gap:8px!important}
 .profile-heading-facebook .profile-person-column>.connect-profile-person{
  width:136px!important;height:136px!important;flex-basis:136px!important;margin:-72px 0 0!important;
 }
 .profile-heading-facebook>.connect-profile-name{padding:8px 0 6px!important}
 .profile-heading-facebook>.connect-profile-name h2{font-size:clamp(20px,5.6vw,25px)!important;font-weight:750!important}
 .profile-heading-facebook>.connect-profile-name .profile-category-label{font-size:11px!important}
 .profile-heading-facebook>.connect-profile-name>p{font-size:13px!important;line-height:1.5!important}
 .profile-heading-facebook .profile-relationship-stats{gap:11px!important;padding:0 0 7px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:15px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:11px!important}
}
@media(max-width:360px){
 .profile-mobile-topbar{padding:0 5px!important;grid-template-columns:32px minmax(0,1fr) auto!important}
 .profile-mobile-topbar>.profile-topbar-actions button{width:33px!important;min-width:33px!important}
 .profile-heading-facebook{grid-template-columns:122px minmax(0,1fr)!important;column-gap:10px!important;padding-left:10px!important;padding-right:10px!important}
 .profile-heading-facebook>.profile-person-column{width:122px!important;flex-basis:122px!important}
 .profile-heading-facebook .profile-person-column>.connect-profile-person{width:118px!important;height:118px!important;flex-basis:118px!important;margin-top:-64px!important}
}


/* Final refinement: prominent Facebook-scale avatar and stronger left-aligned relationship counts. */
.profile-heading-facebook>.profile-person-column{align-items:flex-start!important;margin-left:0!important}
.profile-heading-facebook .profile-person-column>.connect-profile-person{
 width:192px!important;height:192px!important;flex-basis:192px!important;
 margin:-100px 0 0!important;
}
.profile-heading-facebook .profile-relationship-stats{
 align-self:flex-start!important;justify-content:flex-start!important;
 width:max-content!important;max-width:100%!important;
 margin-left:0!important;padding:3px 0 9px!important;gap:16px!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 font-size:18px!important;font-weight:850!important;letter-spacing:-.02em!important;
 color:var(--text,#17243a)!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
 font-size:13px!important;font-weight:750!important;
 color:var(--text,#26364d)!important;
}
@media(max-width:720px){
 .profile-heading-facebook{grid-template-columns:156px minmax(0,1fr)!important;column-gap:13px!important}
 .profile-heading-facebook>.profile-person-column{width:156px!important;flex-basis:156px!important}
 .profile-heading-facebook .profile-person-column>.connect-profile-person{
  width:152px!important;height:152px!important;flex-basis:152px!important;margin:-80px 0 0!important;
 }
 .profile-heading-facebook .profile-relationship-stats{gap:12px!important;padding:2px 0 8px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:16px!important;font-weight:850!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:12px!important;font-weight:800!important;color:var(--text,#26364d)!important}
}
@media(max-width:360px){
 .profile-heading-facebook{grid-template-columns:140px minmax(0,1fr)!important;column-gap:10px!important}
 .profile-heading-facebook>.profile-person-column{width:140px!important;flex-basis:140px!important}
 .profile-heading-facebook .profile-person-column>.connect-profile-person{width:136px!important;height:136px!important;flex-basis:136px!important;margin-top:-72px!important}
 .profile-heading-facebook .profile-relationship-stats{gap:10px!important}
}


/* Align Friends and Followers to the true left edge of the profile heading. */
.profile-heading-facebook{padding-left:0!important}
.profile-heading-facebook>.profile-person-column{margin-left:0!important;padding-left:0!important}
.profile-heading-facebook .profile-relationship-stats{
 width:max-content!important;max-width:100%!important;
 margin-left:0!important;padding-left:0!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 color:#10213b!important;font-size:17px!important;font-weight:900!important;
 text-shadow:0 0 .01px currentColor!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
 color:#243954!important;font-size:12px!important;font-weight:850!important;
}
@media(max-width:720px){
 .profile-heading-facebook{padding-left:0!important}
 .profile-heading-facebook .profile-relationship-stats{padding-left:0!important;gap:12px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:16px!important;font-weight:900!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:12px!important;font-weight:850!important}
}
@media(max-width:360px){
 .profile-heading-facebook{padding-left:0!important}
 .profile-heading-facebook .profile-relationship-stats{padding-left:0!important;gap:10px!important}
}


/* Requested final alignment: relationship counts sit at the far-left edge beneath the avatar;
   the cover title is geometrically centered on the same toolbar row as its actions. */
.profile-heading-facebook>.profile-person-column{align-items:flex-start!important}
.profile-heading-facebook .profile-relationship-stats{
  position:relative!important;left:-20px!important;
  width:max-content!important;max-width:calc(100% + 20px)!important;
  margin:0!important;padding:3px 0 9px!important;
  justify-content:flex-start!important;align-self:flex-start!important;
  gap:18px!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
  align-items:flex-start!important;text-align:left!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
  color:#071a36!important;font-size:19px!important;font-weight:950!important;
  line-height:1.15!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
  color:#102b50!important;font-size:14px!important;font-weight:900!important;
  line-height:1.25!important;
}
.profile-mobile-topbar{position:absolute!important}
.profile-mobile-topbar>span{
  position:absolute!important;left:50%!important;top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:max-content!important;max-width:calc(100% - 150px)!important;
  margin:0!important;justify-self:auto!important;text-align:center!important;
  white-space:nowrap!important;
}
@media(max-width:720px){
  .profile-heading-facebook .profile-relationship-stats{
    left:-14px!important;max-width:calc(100% + 14px)!important;
    gap:14px!important;padding:3px 0 9px!important;
  }
  .profile-heading-facebook .profile-relationship-stats>button strong{
    font-size:18px!important;font-weight:950!important;
  }
  .profile-heading-facebook .profile-relationship-stats>button small{
    font-size:13px!important;font-weight:900!important;
  }
  .profile-mobile-topbar>span{max-width:calc(100% - 128px)!important}
}
@media(max-width:360px){
  .profile-heading-facebook .profile-relationship-stats{left:-10px!important;gap:11px!important}
  .profile-heading-facebook .profile-relationship-stats>button strong{font-size:17px!important}
  .profile-heading-facebook .profile-relationship-stats>button small{font-size:12px!important}
  .profile-mobile-topbar>span{max-width:calc(100% - 116px)!important}
}


/* Facebook-inspired typography refinement for profile identity, feed names and bio. */
.profile-heading-facebook>.connect-profile-name h2,
.member-profile-page .connect-profile-name h2{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif!important;
  font-size:clamp(27px,3.2vw,34px)!important;
  font-weight:850!important;letter-spacing:-.035em!important;
  line-height:1.16!important;color:#152238!important;
  -webkit-font-smoothing:antialiased!important;text-rendering:optimizeLegibility!important;
}
.profile-heading-facebook>.connect-profile-name>p,
.member-profile-page .connect-profile-name>p{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif!important;
  font-size:16px!important;font-weight:450!important;
  line-height:1.65!important;letter-spacing:-.005em!important;
  color:#34445d!important;-webkit-font-smoothing:antialiased!important;
}
.post-head .post-author>strong,
.connect-post-author-meta>strong{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif!important;
  font-size:16px!important;font-weight:750!important;
  line-height:1.25!important;letter-spacing:-.015em!important;
  color:#17243b!important;-webkit-font-smoothing:antialiased!important;
}
@media(max-width:720px){
  .profile-heading-facebook>.connect-profile-name h2,
  .member-profile-page .connect-profile-name h2{
    font-size:clamp(24px,6vw,29px)!important;font-weight:850!important;
  }
  .profile-heading-facebook>.connect-profile-name>p,
  .member-profile-page .connect-profile-name>p{
    font-size:15px!important;line-height:1.6!important;
  }
  .post-head .post-author>strong,
  .connect-post-author-meta>strong{
    font-size:15.5px!important;font-weight:750!important;
  }
}


/* Mutual friends context beneath the profile relationship metrics. */
.profile-mutual-context{
  display:grid;gap:5px;max-width:320px;
  margin:7px 0 2px;padding:2px 0;color:#53627a;
  font-size:12.5px;font-weight:650;line-height:1.4;
}
.mutual-context-heading{font-size:10px;font-weight:850;letter-spacing:.075em;color:#71809a;line-height:1.2}.mutual-context-row{display:flex;align-items:center;gap:9px}.mutual-avatar-stack{display:flex;align-items:center;flex:0 0 auto;padding-left:2px}
.mutual-friend-avatar{
  width:30px!important;height:30px!important;flex:0 0 30px!important;
  margin-left:-9px;border:2px solid #fff!important;
  box-shadow:0 1px 4px #10254a26;cursor:pointer;
}
.mutual-friend-avatar:first-child{margin-left:0}
.mutual-context-copy{min-width:0;overflow-wrap:anywhere}
@media(max-width:720px){
  .profile-mutual-context{max-width:min(300px,calc(100vw - 40px));gap:8px;font-size:12px}
  .mutual-friend-avatar{width:28px!important;height:28px!important;flex-basis:28px!important}
}


/* Compact Facebook-like relationship counts and mutual-connection preview. */
.profile-relationship-stats{gap:10px!important;margin-top:8px!important;padding-top:7px!important}
.profile-relationship-stats>button{gap:3px!important;padding:2px 1px!important}
.profile-relationship-stats strong{font-size:11px!important;font-weight:700!important;line-height:1.1!important}
.profile-relationship-stats small{font-size:10px!important;line-height:1.1!important}
.profile-mutual-context{
 display:flex!important;flex-direction:column;align-items:flex-start;gap:4px!important;
 width:max-content;max-width:100%;margin:3px 0 0!important;padding:0!important;
 border:0;background:transparent;text-align:left;cursor:pointer;color:inherit;
}
.profile-mutual-context:hover .mutual-context-heading{color:#1877f2}
.mutual-context-heading{font-size:10px!important;font-weight:700!important;letter-spacing:0!important;color:var(--muted)!important}
.mutual-avatar-stack{display:flex;align-items:center;min-height:30px;padding-left:2px}
.mutual-friend-avatar{width:29px!important;height:29px!important;flex:0 0 29px!important;margin-left:-9px!important;border:2px solid var(--card,#fff)!important}
.mutual-friend-avatar:first-child{margin-left:0!important}
.mutual-friends-page{max-width:820px;margin:0 auto}
.mutual-friends-page-head{display:flex;align-items:center;gap:14px;padding:4px 0 16px}
.mutual-friends-page-head h1{font-size:22px;margin:0}
.mutual-friends-count{font-size:13px;color:var(--muted);margin:0 0 8px}
.mutual-friends-list{display:grid;gap:0;background:var(--card);border-radius:12px;padding:0 14px}
.mutual-friends-more{display:flex;justify-content:center;padding:16px}
@media(max-width:720px){
 .profile-relationship-stats{gap:9px!important;margin-top:6px!important;padding-top:5px!important}
 .profile-relationship-stats strong{font-size:10.5px!important}
 .profile-relationship-stats small{font-size:9.5px!important}
 .profile-mutual-context{margin-top:2px!important;gap:3px!important}
 .mutual-friend-avatar{width:27px!important;height:27px!important;flex-basis:27px!important}
 .mutual-friends-page-head h1{font-size:19px}
}


/* Keep the label and overlapping friend portraits on one compact line. */
.profile-mutual-context{flex-direction:row!important;align-items:center!important;gap:7px!important;width:auto!important}
.profile-mutual-context .mutual-context-heading{white-space:nowrap}
.profile-mutual-context .mutual-avatar-stack{min-height:28px}


/* Profile lower-deck layout */
.profile-at-glance .profile-panel-heading,.profile-friends-panel .profile-panel-heading,.profile-post-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.profile-panel-heading h3,.profile-post-heading h3{margin:0;font-size:16px;font-weight:750;color:#050505}.profile-panel-heading button{border:0;background:transparent;color:#1877f2;font-size:14px;font-weight:600;padding:7px 4px}
.profile-glance-rows{display:grid;gap:12px}.profile-glance-row{display:flex;align-items:flex-start;gap:12px;color:#050505;font-size:14px;line-height:1.4}.profile-glance-row>span{width:20px;min-width:20px;text-align:center;color:#65676b;font-size:18px}.profile-glance-row strong{font-weight:650}
.profile-friends-grid-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}.profile-friend-tile{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:#050505;text-align:center}.profile-friend-photo{width:68px;height:68px;position:relative;display:block}.profile-friend-photo>.avatar{width:68px;height:68px;flex-basis:68px;border-radius:50%;overflow:hidden}.profile-friend-photo>.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-friend-tile>strong{font-size:12px;font-weight:650;line-height:1.25;max-width:100%;overflow-wrap:anywhere}
.profile-online-dot{position:absolute;right:2px;bottom:2px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#00a400}.profile-presence-pill{position:absolute;right:-3px;bottom:0;background:#263238;color:#a7f3a0;border:1px solid #fff;border-radius:10px;padding:1px 5px;font-size:9px;font-style:normal;font-weight:700}
.profile-post-heading{margin:0 0 10px}.profile-filter-button{border:0;border-radius:8px;background:#e7f3ff;color:#1877f2;font-weight:650;padding:8px 12px}.profile-composer-row{min-height:56px;gap:10px;padding-bottom:12px;border-bottom:1px solid #f0f2f5}.profile-composer-row>.avatar{width:36px;height:36px;flex-basis:36px}.profile-composer-prompt{background:transparent;border:1px solid #e4e6eb;border-radius:24px;min-height:42px;font-size:14px;color:#65676b}.profile-composer-media{border:0;background:transparent;color:#31a24c;font-size:23px;padding:8px}.profile-composer-actions{display:flex;padding-top:8px}.profile-composer-actions button{flex:1;min-height:42px;border:0;background:transparent;border-radius:8px;color:#65676b;font-weight:650}.profile-composer-actions button+button{border-left:1px solid #e4e6eb;border-radius:0}.profile-composer-actions button:first-child span{color:#e1306c}.profile-composer-actions button:last-child span{color:#e53945}
.profile-friends-empty{font-size:13px}.profile-tabs-facebook{display:flex;overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:4px}.profile-tabs-facebook::-webkit-scrollbar{display:none}.profile-tabs-facebook a{flex:0 0 auto;text-decoration:none;color:#65676b;border-radius:20px}
@media(max-width:700px){.profile-friends-grid-four{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 5px}.profile-friend-photo,.profile-friend-photo>.avatar{width:64px;height:64px;flex-basis:64px}.profile-friend-tile>strong{font-size:11px}.profile-panel-heading h3,.profile-post-heading h3{font-size:16px}}



/* Minimal profile-header corrections: preserve established structure and spacing. */
.profile-heading-facebook .connect-profile-person{margin-top:-46px!important}
.profile-heading-facebook .profile-relationship-stats{
  position:static!important;left:auto!important;transform:none!important;
  width:100%!important;max-width:100%!important;margin:0!important;
  padding:4px 0 7px!important;gap:10px!important;justify-content:flex-start!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
  font-size:12px!important;font-weight:750!important;line-height:1.15!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
  font-size:11px!important;font-weight:600!important;line-height:1.2!important;
}
.profile-heading-facebook .profile-mutual-context{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:2px 0 0!important;padding:0!important;gap:4px!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-context-heading{
  display:block!important;width:100%!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:10.5px!important;line-height:1.3!important;letter-spacing:0!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-avatar-stack{
  max-width:100%!important;min-height:28px!important;
}
@media(max-width:700px){
  .profile-heading-facebook .connect-profile-person{margin-top:-41px!important}
  .profile-heading-facebook .profile-relationship-stats{
    position:static!important;left:auto!important;max-width:100%!important;
    margin:0!important;padding:3px 0 6px!important;gap:9px!important;
  }
  .profile-heading-facebook .profile-relationship-stats>button strong{font-size:11.5px!important}
  .profile-heading-facebook .profile-relationship-stats>button small{font-size:10.5px!important}
  .profile-heading-facebook .profile-mutual-context{
    width:100%!important;max-width:100%!important;flex-direction:column!important;
    align-items:flex-start!important;gap:4px!important;margin-top:2px!important;
  }
  .profile-heading-facebook .profile-mutual-context .mutual-context-heading{
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
}


/* Profile header recreation: centered identity stack, 160px avatar, and 85px cover overlap. */
.profile-cover-facebook{
 height:210px!important;min-height:210px!important;border-radius:0!important;
 background-size:cover!important;background-position:center!important;position:relative!important;
}
.profile-mobile-topbar{
 display:flex!important;position:absolute!important;inset:0 0 auto!important;
 height:56px!important;min-height:56px!important;padding:0 14px!important;
 align-items:center!important;justify-content:space-between!important;
 background:linear-gradient(180deg,#0008 0%,#0000 100%)!important;
 color:#fff!important;z-index:50!important;pointer-events:none!important;
}
.profile-mobile-topbar>button,.profile-mobile-topbar>.profile-topbar-actions button{
 pointer-events:auto!important;display:grid!important;place-items:center!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 padding:0!important;border:0!important;border-radius:50%!important;
 background:transparent!important;color:#fff!important;text-shadow:0 1px 4px #000b!important;
}
.profile-mobile-topbar>span{display:none!important}
.profile-mobile-topbar>.profile-topbar-actions{
 display:flex!important;align-items:center!important;gap:12px!important;margin-left:auto!important;
}
.profile-mobile-topbar>.profile-topbar-actions button svg{width:21px!important;height:21px!important}
.profile-cover-photo-edit{
 display:grid!important;place-items:center!important;position:absolute!important;
 right:12px!important;bottom:12px!important;top:auto!important;left:auto!important;
 width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
 border:1px solid #ffffff30!important;border-radius:50%!important;
 background:#0009!important;color:#fff!important;box-shadow:0 2px 8px #0003!important;
}
.profile-cover-photo-edit svg{width:19px!important;height:19px!important}
.profile-heading-facebook{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 gap:0!important;padding:0 18px 16px!important;
}
.profile-heading-facebook .profile-person-column{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;flex:0 0 auto!important;gap:0!important;
}
.profile-heading-facebook .connect-profile-person{
 position:relative!important;z-index:10!important;
 width:160px!important;height:160px!important;flex:0 0 160px!important;
 margin:-85px auto 0!important;padding:3px!important;
 border-radius:50%!important;
 background:linear-gradient(135deg,#2868e8,#38bdf8)!important;
 box-shadow:0 2px 8px #10254a20!important;
}
.profile-heading-facebook .connect-profile-person>.avatar,
.profile-heading-facebook .connect-profile-person>.avatar-story-trigger,
.profile-heading-facebook .connect-profile-person>.avatar-story-trigger>.avatar{
 display:block!important;width:100%!important;height:100%!important;
 border:4px solid #fff!important;border-radius:50%!important;
}
.profile-heading-facebook .connect-profile-person>.avatar img,
.profile-heading-facebook .connect-profile-person>.avatar-story-trigger>.avatar img{
 width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;
}
.profile-heading-facebook .profile-avatar-edit{
 position:absolute!important;right:0!important;bottom:2px!important;
 width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
 display:grid!important;place-items:center!important;padding:0!important;
 border:3px solid #fff!important;border-radius:50%!important;
 background:#e4e6eb!important;color:#263238!important;box-shadow:0 1px 4px #0002!important;
}
.profile-heading-facebook .profile-avatar-edit svg{width:18px!important;height:18px!important}
.profile-thought-bubble{
 position:absolute!important;top:-12px!important;right:10px!important;z-index:20!important;
 max-width:210px!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;padding:8px 13px!important;
 border:1px solid #edf0f4!important;border-radius:20px!important;
 background:#fff!important;color:#65676b!important;
 box-shadow:0 3px 12px #10254a20!important;font-size:12px!important;font-weight:550!important;
}
.profile-thought-bubble:after{
 content:"";position:absolute;left:50%;bottom:-5px;width:9px;height:9px;
 background:#fff;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;
 transform:translateX(-50%) rotate(45deg);
}
.profile-heading-facebook .profile-relationship-stats{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center!important;justify-content:center!important;gap:7px!important;
 width:auto!important;max-width:100%!important;margin:0!important;padding:9px 0 3px!important;
 border:0!important;position:static!important;left:auto!important;transform:none!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
 display:inline-flex!important;align-items:center!important;padding:0!important;
 border:0!important;background:transparent!important;color:#050505!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 font-size:14px!important;line-height:1.3!important;font-weight:650!important;
 color:#050505!important;letter-spacing:0!important;
}
.profile-metric-separator{color:#65676b!important;font-size:14px!important}
.profile-heading-facebook .profile-mutual-context{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;max-width:100%!important;margin:5px 0 0!important;
 text-align:center!important;gap:4px!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-context-heading{
 text-align:center!important;white-space:normal!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-avatar-stack{justify-content:center!important}
.profile-heading-facebook .connect-profile-name{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 align-self:stretch!important;padding:10px 0 5px!important;text-align:center!important;
}
.profile-identity-name-row{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:6px!important;position:relative!important;width:100%!important;
 min-height:32px!important;padding:0 42px!important;
}
.profile-heading-facebook .profile-identity-name-row h2{
 margin:0!important;padding:0!important;font-size:24px!important;line-height:1.2!important;
 font-weight:750!important;letter-spacing:-.025em!important;color:#050505!important;
}
.profile-verified-mark{display:inline-flex!important;width:17px!important;height:17px!important;flex:0 0 17px!important}
.profile-verified-mark svg{width:17px!important;height:17px!important;display:block!important}
.profile-identity-menu{
 position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;
 display:grid!important;place-items:center!important;width:34px!important;height:30px!important;
 border:1px solid #e4e6eb!important;border-radius:9px!important;background:#e4e6eb!important;
 color:#65676b!important;font-size:20px!important;line-height:1!important;padding:0!important;
}
.profile-identity-unread{
 position:absolute!important;right:-3px!important;top:-4px!important;width:11px!important;height:11px!important;
 border:2px solid #fff!important;border-radius:50%!important;background:#e53945!important;
}
.profile-heading-facebook .profile-category-label{
 display:block!important;width:auto!important;max-width:100%!important;margin:2px 0 0!important;
 padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
 color:#65676b!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important;
}
.profile-heading-facebook .connect-profile-name>p{
 min-height:0!important;margin:12px 0 0!important;padding:0!important;
 color:#050505!important;font-size:14px!important;font-weight:500!important;
 line-height:1.45!important;text-align:center!important;
}
.profile-heading-facebook .connect-profile-name>.muted{margin-top:4px!important;font-size:12px!important}
@media(max-width:700px){
 .profile-cover-facebook{height:210px!important;min-height:210px!important}
 .profile-mobile-topbar{height:56px!important;min-height:56px!important;padding:0 10px!important}
 .profile-mobile-topbar>.profile-topbar-actions{gap:5px!important}
 .profile-mobile-topbar>button,.profile-mobile-topbar>.profile-topbar-actions button{
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
 }
 .profile-heading-facebook{padding:0 12px 14px!important}
 .profile-heading-facebook .connect-profile-person{
  width:160px!important;height:160px!important;flex:0 0 160px!important;margin:-85px auto 0!important;
 }
 .profile-heading-facebook .profile-relationship-stats{gap:6px!important;padding:8px 0 2px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:13px!important}
 .profile-heading-facebook .profile-identity-name-row h2{font-size:24px!important}
 .profile-thought-bubble{top:-12px!important;right:8px!important;max-width:190px!important}
}


/* Final profile layout correction: preserve the Facebook-style left identity column. */
.connect-profile-cover.profile-cover-facebook{
 height:320px!important;min-height:320px!important;
 background-position:center 42%!important;
}
.profile-heading-facebook{
 display:grid!important;
 grid-template-columns:minmax(190px,220px) minmax(0,1fr)!important;
 align-items:start!important;column-gap:24px!important;
 padding:0 22px 18px!important;
}
.profile-heading-facebook .profile-person-column{
 grid-column:1!important;grid-row:1!important;
 width:100%!important;min-width:0!important;
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;gap:9px!important;
}
.profile-heading-facebook .connect-profile-person{
 width:192px!important;height:192px!important;flex:0 0 192px!important;
 margin:-98px 0 0!important;align-self:flex-start!important;
}
.profile-heading-facebook .profile-relationship-stats{
 width:100%!important;max-width:100%!important;
 display:flex!important;flex-direction:row!important;
 align-items:center!important;justify-content:flex-start!important;
 flex-wrap:wrap!important;gap:18px!important;
 margin:0!important;padding:2px 0 4px!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;gap:2px!important;
 padding:0!important;text-align:left!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 font-size:17px!important;font-weight:800!important;line-height:1.2!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
 font-size:13px!important;font-weight:650!important;line-height:1.2!important;
}
.profile-heading-facebook .profile-mutual-context{
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:flex-start!important;
 width:100%!important;max-width:100%!important;
 margin:2px 0 0!important;gap:5px!important;text-align:left!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-context-heading{
 display:block!important;text-align:left!important;
 white-space:normal!important;font-size:11px!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-avatar-stack{
 display:flex!important;justify-content:flex-start!important;
 min-height:34px!important;padding-left:2px!important;
}
.profile-heading-facebook .mutual-friend-avatar{
 width:34px!important;height:34px!important;flex:0 0 34px!important;
 margin-left:-10px!important;border:2px solid #fff!important;
}
.profile-heading-facebook .mutual-friend-avatar:first-child{margin-left:0!important}
.profile-heading-facebook .connect-profile-name{
 grid-column:2!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 align-self:stretch!important;padding:12px 0 8px!important;
 text-align:left!important;
}
.profile-heading-facebook .profile-identity-name-row{
 justify-content:flex-start!important;padding:0 42px 0 0!important;
 min-height:38px!important;
}
.profile-heading-facebook .profile-identity-name-row h2{
 font-size:clamp(27px,3vw,34px)!important;
 font-weight:800!important;line-height:1.18!important;
 text-align:left!important;
}
.profile-heading-facebook .profile-category-label{
 margin:5px 0 0!important;font-size:15px!important;
 text-align:left!important;
}
.profile-heading-facebook .connect-profile-name>p{
 width:100%!important;max-width:none!important;
 min-height:120px!important;margin:12px 0 0!important;
 padding:0!important;font-size:15px!important;
 line-height:1.65!important;text-align:left!important;
 white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
.member-profile-page .profile-heading-facebook{
 grid-template-columns:minmax(190px,220px) minmax(0,1fr)!important;
}
.member-profile-page .profile-heading-facebook>.connect-profile-name{
 grid-column:2!important;grid-row:1!important;text-align:left!important;
 align-items:flex-start!important;
}
.member-profile-page .profile-heading-facebook>.profile-person-column{
 grid-column:1!important;grid-row:1!important;
}
.member-profile-page .profile-heading-facebook .profile-relationship-stats{
 display:flex!important;flex-direction:row!important;
 justify-content:flex-start!important;gap:18px!important;
}
.member-profile-page .profile-heading-facebook .profile-mutual-context{
 align-items:flex-start!important;text-align:left!important;
}
@media(max-width:700px){
 .connect-profile-cover.profile-cover-facebook{
  height:280px!important;min-height:280px!important;
  background-position:center 42%!important;
 }
 .profile-heading-facebook{
  grid-template-columns:minmax(142px,164px) minmax(0,1fr)!important;
  column-gap:13px!important;padding:0 12px 16px!important;
 }
 .profile-heading-facebook .profile-person-column{
  grid-column:1!important;grid-row:1!important;
  width:100%!important;align-items:flex-start!important;gap:8px!important;
 }
 .profile-heading-facebook .connect-profile-person{
  width:164px!important;height:164px!important;flex-basis:164px!important;
  margin:-84px 0 0!important;align-self:flex-start!important;
 }
 .profile-heading-facebook .profile-relationship-stats{
  flex-wrap:wrap!important;gap:10px!important;padding:2px 0!important;
 }
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:15px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:12px!important}
 .profile-heading-facebook .profile-mutual-context{gap:4px!important}
 .profile-heading-facebook .profile-mutual-context .mutual-context-heading{font-size:10px!important}
 .profile-heading-facebook .mutual-friend-avatar{
  width:29px!important;height:29px!important;flex-basis:29px!important;
 }
 .profile-heading-facebook .connect-profile-name{
  grid-column:2!important;grid-row:1!important;
  padding:9px 0 6px!important;align-items:flex-start!important;
 }
 .profile-heading-facebook .profile-identity-name-row{
  justify-content:flex-start!important;padding:0 28px 0 0!important;
  min-height:34px!important;
 }
 .profile-heading-facebook .profile-identity-name-row h2{
  font-size:clamp(20px,5.5vw,26px)!important;line-height:1.18!important;
  overflow-wrap:anywhere!important;
 }
 .profile-heading-facebook .profile-category-label{
  font-size:14px!important;margin-top:4px!important;
 }
 .profile-heading-facebook .connect-profile-name>p{
  min-height:120px!important;margin-top:10px!important;
  font-size:14px!important;line-height:1.55!important;
 }
 .profile-heading-facebook .profile-identity-menu{
  width:27px!important;height:27px!important;right:0!important;
 }
 .member-profile-page .profile-heading-facebook{
  grid-template-columns:minmax(142px,164px) minmax(0,1fr)!important;
 }
}
@media(max-width:390px){
 .profile-heading-facebook{
  grid-template-columns:minmax(126px,142px) minmax(0,1fr)!important;
  column-gap:10px!important;padding-left:9px!important;padding-right:9px!important;
 }
 .profile-heading-facebook .connect-profile-person{
  width:142px!important;height:142px!important;flex-basis:142px!important;
  margin-top:-74px!important;
 }
 .profile-heading-facebook .profile-relationship-stats{gap:8px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:14px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:11px!important}
 .profile-heading-facebook .mutual-friend-avatar{
  width:26px!important;height:26px!important;flex-basis:26px!important;
 }
 .profile-heading-facebook .profile-identity-name-row h2{font-size:20px!important}
}

/* Stories and text statuses open as a true edge-to-edge full-screen viewer. */
.modal-backdrop:has(.story-viewer){
 padding:0!important;place-items:stretch!important;
 background:#000!important;overscroll-behavior:contain!important;
}
.modal:has(.story-viewer){
 width:100vw!important;max-width:none!important;
 height:100dvh!important;max-height:100dvh!important;
 margin:0!important;padding:0!important;border:0!important;
 border-radius:0!important;background:#07152f!important;
 overflow:hidden!important;box-shadow:none!important;
}
.story-viewer{
 width:100%!important;max-width:none!important;
 height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 margin:0!important;border-radius:0!important;
}
.story-view-stage{min-height:0!important;flex:1 1 auto!important}
.story-view-media{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
@media(max-width:720px){
 .modal-backdrop:has(.story-viewer){padding:0!important}
 .modal:has(.story-viewer){width:100vw!important;height:100dvh!important;max-height:100dvh!important}
 .story-viewer{width:100vw!important;height:100dvh!important;max-height:100dvh!important}
}

/* Requested profile-only corrections: preserve the established left/right layout. */
.profile-heading-facebook .connect-profile-person{
 margin-top:-48px!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 font-size:14px!important;
}
.profile-heading-facebook .profile-mutual-context{
 width:100%!important;max-width:100%!important;min-width:0!important;
 box-sizing:border-box!important;overflow:visible!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-context-heading{
 max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-avatar-stack{
 max-width:100%!important;flex-wrap:wrap!important;box-sizing:border-box!important;
}
@media(max-width:700px){
 .profile-heading-facebook .connect-profile-person{margin-top:-41px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:12.5px!important}
}
@media(max-width:390px){
 .profile-heading-facebook .connect-profile-person{margin-top:-36px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:12px!important}
}


/* Facebook-style asymmetric profile header: 5/12 identity metrics, 7/12 member details. */
.connect-profile-heading.profile-heading-facebook{
 display:grid!important;
 grid-template-columns:minmax(0,5fr) minmax(0,7fr)!important;
 align-items:start!important;column-gap:16px!important;
}
.profile-heading-facebook>.profile-person-column{
 grid-column:1!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;gap:9px!important;
}
.profile-heading-facebook>.connect-profile-name{
 grid-column:2!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 padding:10px 0 8px!important;text-align:left!important;
}
.profile-heading-facebook .connect-profile-person{
 width:min(100%,192px)!important;height:auto!important;aspect-ratio:1/1!important;
 flex:0 0 auto!important;max-width:192px!important;
 margin:-48px auto 0!important;align-self:center!important;
}
.profile-heading-facebook .profile-relationship-stats{
 display:flex!important;flex-direction:row!important;justify-content:center!important;
 align-items:flex-start!important;flex-wrap:wrap!important;gap:14px!important;
 width:100%!important;max-width:100%!important;margin:0!important;padding:2px 0!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 gap:2px!important;padding:0!important;text-align:center!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 font-size:14px!important;font-weight:750!important;line-height:1.2!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
 font-size:11px!important;font-weight:600!important;line-height:1.2!important;
}
.profile-heading-facebook .profile-mutual-context{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:flex-start!important;width:100%!important;max-width:100%!important;
 min-width:0!important;margin:2px 0 0!important;gap:5px!important;
 box-sizing:border-box!important;overflow:visible!important;text-align:center!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-context-heading{
 display:block!important;max-width:100%!important;white-space:normal!important;
 overflow-wrap:anywhere!important;text-align:center!important;font-size:11px!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-avatar-stack{
 display:flex!important;justify-content:center!important;align-items:center!important;
 flex-wrap:wrap!important;max-width:100%!important;min-height:34px!important;
 padding:0 2px!important;box-sizing:border-box!important;
}
.profile-heading-facebook .mutual-friend-avatar{
 width:30px!important;height:30px!important;flex:0 0 30px!important;
 margin-left:-8px!important;border:2px solid #fff!important;
}
.profile-heading-facebook .mutual-friend-avatar:first-child{margin-left:0!important}
.profile-heading-facebook .profile-identity-name-row{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;min-height:36px!important;
 padding:0 38px 0 0!important;
}
.profile-heading-facebook .profile-identity-name-row h2{
 font-size:clamp(22px,3vw,32px)!important;font-weight:750!important;
 line-height:1.18!important;text-align:left!important;overflow-wrap:anywhere!important;
}
.profile-heading-facebook .profile-category-label{
 display:block!important;margin:8px 0 0!important;text-align:left!important;
 font-size:14px!important;line-height:1.35!important;
}
.profile-heading-facebook .connect-profile-name>p{
 width:100%!important;max-width:100%!important;min-height:0!important;
 margin:12px 0 0!important;padding:0!important;text-align:left!important;
 font-size:15px!important;line-height:1.55!important;
 white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
.member-profile-page .connect-profile-cover{
 height:320px!important;min-height:320px!important;background-position:center 42%!important;
}
.member-profile-page .profile-heading-facebook{
 grid-template-columns:minmax(0,5fr) minmax(0,7fr)!important;
}
@media(max-width:700px){
 .connect-profile-cover.profile-cover-facebook,.member-profile-page .connect-profile-cover{
  height:260px!important;min-height:260px!important;background-position:center 42%!important;
 }
 .profile-heading-facebook{
  grid-template-columns:minmax(0,5fr) minmax(0,7fr)!important;
  column-gap:12px!important;padding:0 12px 16px!important;
 }
 .profile-heading-facebook>.profile-person-column{gap:8px!important}
 .profile-heading-facebook>.connect-profile-name{padding:8px 0 6px!important}
 .profile-heading-facebook .connect-profile-person{
  width:100%!important;max-width:164px!important;
  margin:-48px auto 0!important;
 }
 .profile-heading-facebook .profile-relationship-stats{gap:10px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:12.5px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:10.5px!important}
 .profile-heading-facebook .profile-mutual-context .mutual-context-heading{font-size:10px!important}
 .profile-heading-facebook .mutual-friend-avatar{
  width:27px!important;height:27px!important;flex-basis:27px!important;
 }
 .profile-heading-facebook .profile-identity-name-row{min-height:32px!important;padding-right:27px!important}
 .profile-heading-facebook .profile-identity-name-row h2{font-size:clamp(19px,5.5vw,25px)!important}
 .profile-heading-facebook .profile-category-label{margin-top:6px!important;font-size:13px!important}
 .profile-heading-facebook .connect-profile-name>p{
  margin-top:9px!important;font-size:13.5px!important;line-height:1.5!important;
 }
 .profile-heading-facebook .profile-identity-menu{width:25px!important;height:25px!important}
}
@media(max-width:390px){
 .profile-heading-facebook{column-gap:9px!important;padding-left:9px!important;padding-right:9px!important}
 .profile-heading-facebook .connect-profile-person{margin-top:-42px!important}
 .profile-heading-facebook .profile-relationship-stats{gap:8px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong{font-size:12px!important}
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:10px!important}
 .profile-heading-facebook .profile-identity-name-row h2{font-size:19px!important}
}


/* Native Facebook-inspired full-width stacked profile header (mobile-first). */
.connect-profile-cover.profile-cover-facebook,
.member-profile-page .connect-profile-cover{
 height:240px!important;min-height:240px!important;
 background-position:center center!important;background-size:cover!important;
}
.connect-profile-heading.profile-heading-facebook{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 gap:0!important;padding:0 16px 16px!important;box-sizing:border-box!important;
}
.profile-heading-facebook>.profile-person-column,
.profile-heading-facebook>.connect-profile-name{
 display:contents!important;
}
.profile-heading-facebook .connect-profile-person{
 order:1!important;position:relative!important;z-index:3!important;
 width:124px!important;height:124px!important;max-width:124px!important;
 flex:0 0 124px!important;aspect-ratio:1/1!important;
 margin:-40px 0 8px!important;align-self:flex-start!important;
}
.profile-heading-facebook .profile-thought-bubble{z-index:4!important}
.profile-heading-facebook .profile-identity-name-row,
.profile-heading-facebook>.connect-profile-name>h2{
 order:2!important;display:flex!important;align-items:center!important;
 justify-content:flex-start!important;width:100%!important;min-width:0!important;
 min-height:0!important;margin:0!important;padding:0!important;text-align:left!important;
}
.profile-heading-facebook .profile-identity-name-row h2,
.profile-heading-facebook>.connect-profile-name>h2{
 font-size:24px!important;font-weight:800!important;line-height:1.2!important;
 letter-spacing:-.35px!important;overflow-wrap:anywhere!important;
}
.profile-heading-facebook .profile-category-label{
 order:3!important;display:inline-flex!important;align-self:flex-start!important;
 width:max-content!important;max-width:100%!important;box-sizing:border-box!important;
 margin:5px 0 7px!important;padding:4px 9px!important;border-radius:999px!important;
 background:#f0f2f5!important;color:#65676b!important;font-size:13px!important;
 line-height:1.25!important;text-align:left!important;
}
.profile-heading-facebook .profile-relationship-stats{
 order:4!important;display:flex!important;flex-direction:row!important;
 flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;
 width:100%!important;max-width:100%!important;gap:0!important;
 margin:0 0 7px!important;padding:0!important;text-align:left!important;
}
.profile-heading-facebook .profile-relationship-stats>button{
 display:inline-flex!important;flex-direction:row!important;align-items:baseline!important;
 justify-content:flex-start!important;gap:3px!important;
 padding:0 7px 0 0!important;margin:0 7px 0 0!important;
 min-height:0!important;background:transparent!important;border:0!important;
 color:#65676b!important;text-align:left!important;
}
.profile-heading-facebook .profile-relationship-stats>button+button{
 border-left:0!important;
}
.profile-heading-facebook .profile-relationship-stats>button+button:before{
 content:"·";display:inline-block!important;margin-right:7px!important;
 color:#8a8d91!important;font-weight:400!important;
}
.profile-heading-facebook .profile-relationship-stats>button strong{
 font-size:13px!important;font-weight:700!important;line-height:1.3!important;
 color:#1c1e21!important;
}
.profile-heading-facebook .profile-relationship-stats>button small{
 font-size:13px!important;font-weight:400!important;line-height:1.3!important;
 color:#65676b!important;text-transform:lowercase!important;
}
.profile-heading-facebook .profile-mutual-context{
 order:5!important;display:flex!important;flex-direction:row!important;
 align-items:center!important;justify-content:flex-start!important;
 gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0 0 9px!important;padding:0!important;text-align:left!important;
 background:transparent!important;border:0!important;box-sizing:border-box!important;
}
.profile-heading-facebook .profile-mutual-context .mutual-avatar-stack{
 order:1!important;display:flex!important;flex:0 0 auto!important;
 align-items:center!important;justify-content:flex-start!important;
 flex-wrap:nowrap!important;min-height:28px!important;max-width:100%!important;
 padding:0 0 0 2px!important;overflow:visible!important;
}
.profile-heading-facebook .mutual-friend-avatar{
 width:28px!important;height:28px!important;flex:0 0 28px!important;
 margin-left:-8px!important;border:2px solid #fff!important;
}
.profile-heading-facebook .mutual-friend-avatar:first-child{margin-left:0!important}
.profile-heading-facebook .profile-mutual-context .mutual-context-heading{
 order:2!important;display:block!important;max-width:100%!important;
 font-size:12px!important;font-weight:600!important;line-height:1.35!important;
 color:#65676b!important;text-align:left!important;white-space:normal!important;
 overflow-wrap:anywhere!important;
}
.profile-heading-facebook .connect-profile-name>p{
 order:6!important;display:block!important;width:100%!important;max-width:100%!important;
 min-height:0!important;margin:0 0 10px!important;padding:0!important;
 color:#1c1e21!important;font-size:14px!important;line-height:1.5!important;
 text-align:left!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
.profile-heading-facebook .connect-profile-name>.muted{
 order:7!important;width:100%!important;margin:0 0 8px!important;
 font-size:12px!important;text-align:left!important;
}
.profile-heading-facebook .profile-identity-menu{right:0!important}
.profile-heading-facebook .profile-verified-mark{flex:0 0 auto!important}
.connect-profile-social.profile-social-facebook{
 width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
.member-profile-page .profile-heading-facebook .connect-profile-person{
 margin-top:-40px!important;
}
@media(max-width:390px){
 .connect-profile-heading.profile-heading-facebook{padding-left:12px!important;padding-right:12px!important}
 .profile-heading-facebook .connect-profile-person{
  width:116px!important;height:116px!important;max-width:116px!important;
  flex-basis:116px!important;margin-top:-38px!important;
 }
 .profile-heading-facebook .profile-identity-name-row h2,
 .profile-heading-facebook>.connect-profile-name>h2{font-size:22px!important}
 .profile-heading-facebook .profile-relationship-stats>button strong,
 .profile-heading-facebook .profile-relationship-stats>button small{font-size:12px!important}
}


/* Definitive mobile profile header: explicit single-column DOM, no split grid. */
.connect-profile-cover.profile-cover-facebook{height:240px!important;min-height:240px!important;background-size:cover!important;background-position:center!important}
.connect-profile-heading.profile-heading-facebook{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 justify-content:flex-start!important;gap:0!important;width:100%!important;max-width:100%!important;
 min-width:0!important;padding:0 16px 16px!important;margin:0!important;
 box-sizing:border-box!important;text-align:left!important;
}
.connect-profile-heading.profile-heading-facebook>.connect-profile-person{
 position:relative!important;display:block!important;flex:0 0 auto!important;
 width:120px!important;height:120px!important;max-width:120px!important;
 margin:-40px 0 12px!important;align-self:flex-start!important;z-index:3!important;
}
.connect-profile-heading.profile-heading-facebook>.connect-profile-person .avatar{
 display:block!important;width:100%!important;height:100%!important;
 border:4px solid #fff!important;border-radius:50%!important;object-fit:cover!important;
 box-sizing:border-box!important;
}
.connect-profile-heading.profile-heading-facebook>.connect-profile-person .profile-thought-bubble{
 position:absolute!important;top:-39px!important;left:50%!important;
 transform:translateX(-50%)!important;z-index:5!important;white-space:nowrap!important;
}
.connect-profile-heading.profile-heading-facebook>.connect-profile-person .profile-avatar-edit{
 position:absolute!important;right:1px!important;bottom:1px!important;z-index:6!important;
}
.connect-profile-heading.profile-heading-facebook>.connect-profile-name{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 justify-content:flex-start!important;gap:7px!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;box-sizing:border-box!important;text-align:left!important;
}
.connect-profile-heading.profile-heading-facebook .profile-identity-name-row{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;gap:6px!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 min-height:0!important;margin:0!important;padding:0!important;text-align:left!important;
}
.connect-profile-heading.profile-heading-facebook .profile-identity-name-row h2{
 display:block!important;flex:0 1 auto!important;min-width:0!important;
 margin:0!important;padding:0!important;font-size:24px!important;font-weight:800!important;
 line-height:1.15!important;letter-spacing:-.35px!important;text-align:left!important;
 overflow-wrap:anywhere!important;color:var(--ink,#050505)!important;
}
.connect-profile-heading.profile-heading-facebook .profile-identity-menu{flex:0 0 auto!important}
.connect-profile-heading.profile-heading-facebook .profile-category-label{
 display:block!important;align-self:flex-start!important;width:auto!important;max-width:100%!important;
 margin:0!important;padding:0!important;background:transparent!important;border:0!important;
 border-radius:0!important;color:var(--muted,#65676b)!important;font-size:14px!important;
 font-weight:400!important;line-height:1.35!important;text-align:left!important;
}
.connect-profile-heading.profile-heading-facebook .profile-relationship-stats{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;flex-wrap:wrap!important;gap:0!important;
 width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
 text-align:left!important;
}
.connect-profile-heading.profile-heading-facebook .profile-relationship-stats>button{
 display:inline-flex!important;flex-direction:row!important;align-items:baseline!important;
 justify-content:flex-start!important;gap:3px!important;
 min-height:0!important;margin:0 8px 0 0!important;padding:0!important;
 border:0!important;background:transparent!important;text-align:left!important;white-space:nowrap!important;
}
.connect-profile-heading.profile-heading-facebook .profile-relationship-stats>button+button:before{
 content:"·"!important;display:inline-block!important;margin-right:5px!important;
 color:#bcc0c4!important;font-weight:400!important;
}
.connect-profile-heading.profile-heading-facebook .profile-relationship-stats strong{
 font-size:14px!important;font-weight:700!important;line-height:1.3!important;color:#050505!important;
}
.connect-profile-heading.profile-heading-facebook .profile-relationship-stats small{
 font-size:14px!important;font-weight:400!important;line-height:1.3!important;
 color:#65676b!important;text-transform:lowercase!important;
}
.connect-profile-heading.profile-heading-facebook .profile-mutual-context{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;gap:9px!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;background:transparent!important;border:0!important;
 box-sizing:border-box!important;text-align:left!important;
}
.connect-profile-heading.profile-heading-facebook .mutual-avatar-stack{
 display:flex!important;flex:0 0 auto!important;flex-direction:row!important;
 flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;
 min-height:28px!important;max-width:100%!important;padding:0 0 0 2px!important;
 overflow:visible!important;
}
.connect-profile-heading.profile-heading-facebook .mutual-friend-avatar{
 display:block!important;flex:0 0 28px!important;width:28px!important;height:28px!important;
 margin-left:-8px!important;border:2px solid #fff!important;border-radius:50%!important;
 object-fit:cover!important;box-sizing:border-box!important;
}
.connect-profile-heading.profile-heading-facebook .mutual-friend-avatar:first-child{margin-left:0!important}
.connect-profile-heading.profile-heading-facebook .mutual-context-heading{
 display:block!important;flex:0 1 auto!important;min-width:0!important;max-width:100%!important;
 color:#1877f2!important;font-size:13px!important;font-weight:600!important;
 line-height:1.35!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.connect-profile-heading.profile-heading-facebook .connect-profile-name>p{
 display:block!important;width:100%!important;max-width:540px!important;min-width:0!important;
 margin:0!important;padding:0!important;color:var(--ink,#050505)!important;
 font-size:14px!important;font-weight:400!important;line-height:1.45!important;
 text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.connect-profile-heading.profile-heading-facebook .connect-profile-name>.muted{
 display:block!important;width:100%!important;margin:0!important;text-align:left!important;
}
@media(max-width:390px){
 .connect-profile-heading.profile-heading-facebook{padding-left:16px!important;padding-right:16px!important}
 .connect-profile-heading.profile-heading-facebook .profile-identity-name-row h2{font-size:22px!important}
}


/* Single-block Facebook-style mobile profile header. */
.connect-profile-header{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 min-width:0;background:var(--card,#fff);
}
.connect-profile-header>.connect-profile-cover{
 position:relative!important;height:240px!important;min-height:240px!important;max-height:240px!important;
 width:100%;flex:none!important;border-radius:0!important;overflow:visible!important;
 background-color:#dce8f8;background-size:cover;background-position:center;cursor:zoom-in;
}
.connect-profile-header>.connect-profile-cover>.profile-mobile-topbar{position:absolute;top:0;left:0;right:0;z-index:12}
.connect-profile-header .profile-cover-photo-edit{position:absolute;right:14px;bottom:12px;z-index:14}
.connect-profile-header .connect-profile-person{
 position:absolute!important;left:16px!important;bottom:-40px!important;z-index:30!important;
 width:120px!important;height:120px!important;min-width:120px!important;flex:none!important;
 margin:0!important;padding:0!important;
}
.connect-profile-header .connect-profile-person>.avatar,
.connect-profile-header .connect-profile-person>.avatar-story-trigger,
.connect-profile-header .connect-profile-person>.avatar-story-trigger>.avatar{
 display:block!important;width:120px!important;height:120px!important;min-width:120px!important;
 flex:0 0 120px!important;border-radius:50%!important;overflow:hidden!important;
 border:4px solid var(--card,#fff)!important;box-shadow:0 2px 9px #14243b30!important;
}
.connect-profile-header .connect-profile-person>.avatar img,
.connect-profile-header .connect-profile-person>.avatar-story-trigger>.avatar img{
 display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;
}
.connect-profile-header .profile-thought-bubble{
 position:absolute!important;top:-17px!important;right:-82px!important;left:auto!important;z-index:36!important;
 max-width:190px!important;padding:8px 12px!important;border-radius:20px!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 background:#fff!important;color:#65676b!important;border:1px solid #e4e6eb!important;
 box-shadow:0 3px 12px #10254a20!important;font-size:12px!important;
}
.connect-profile-header .profile-avatar-edit{
 position:absolute!important;right:3px!important;bottom:3px!important;z-index:38!important;
 width:36px!important;height:36px!important;border:3px solid var(--card,#fff)!important;
 border-radius:50%!important;background:#e4e6eb!important;color:#263238!important;
}
.connect-profile-details{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 width:100%!important;min-width:0!important;box-sizing:border-box!important;
 margin-top:64px!important;padding:0 16px 12px!important;text-align:left!important;
}
.connect-profile-details>.profile-identity-name-row{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:100%;gap:6px;min-width:0;
}
.connect-profile-details>.profile-identity-name-row h2{
 margin:0!important;font-size:24px!important;line-height:1.2!important;font-weight:800!important;
 text-align:left!important;color:var(--ink,#17243b)!important;overflow-wrap:anywhere;
}
.connect-profile-details>.profile-category-label{
 display:block!important;margin:3px 0 0!important;padding:0!important;border:0!important;
 background:transparent!important;color:#65676b!important;font-size:14px!important;
 line-height:1.4!important;font-weight:500!important;border-radius:0!important;
}
.connect-profile-details>.profile-relationship-stats{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center!important;justify-content:flex-start!important;gap:7px!important;
 width:auto!important;max-width:100%!important;margin:8px 0 0!important;padding:0!important;
 border:0!important;text-align:left!important;white-space:nowrap!important;
 color:var(--ink,#17243b)!important;font-size:14px!important;line-height:1.4!important;
}
.connect-profile-details>.profile-relationship-stats button{
 display:inline!important;min-height:0!important;margin:0!important;padding:0!important;
 border:0!important;background:transparent!important;color:inherit!important;
 font-size:14px!important;font-weight:650!important;line-height:1.4!important;
}
.connect-profile-details>.profile-relationship-stats .profile-stats-separator{color:#65676b!important}
.connect-profile-details>.profile-mutual-context{
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
 gap:8px!important;width:auto!important;max-width:100%!important;margin:10px 0 0!important;
 padding:0!important;border:0!important;background:transparent!important;text-align:left!important;
 color:#1877f2!important;font-size:13px!important;font-weight:600!important;line-height:1.3!important;
}
.connect-profile-details .mutual-avatar-stack{display:flex!important;flex-direction:row!important;align-items:center!important;flex:none!important;padding:0 0 0 2px!important;min-height:30px!important}
.connect-profile-details .mutual-friend-avatar{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:30px!important;height:30px!important;flex:0 0 30px!important;margin:0 0 0 -8px!important;
 overflow:hidden!important;border:2px solid var(--card,#fff)!important;border-radius:50%!important;
 background:#e4e6eb!important;color:#596579!important;box-shadow:0 1px 4px #10254a26!important;
}
.connect-profile-details .mutual-friend-avatar:first-child{margin-left:0!important}
.connect-profile-details .mutual-friend-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.connect-profile-details .mutual-friend-avatar>span{font-size:10px;font-weight:750}
.connect-profile-details .mutual-avatar-placeholder svg{width:17px;height:17px;color:#7b8798}
.connect-profile-details>.profile-bio{
 display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;
 margin:10px 0 0!important;padding:0!important;color:var(--ink,#17243b)!important;
 font-size:14px!important;line-height:1.55!important;text-align:left!important;
 white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;
}
.connect-profile-details>.profile-username{margin-top:5px!important;font-size:13px!important;text-align:left!important}
.connect-profile-social.profile-social-facebook{padding:0 16px 14px!important}
.connect-profile-social .profile-primary-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0 0 12px!important}
.connect-profile-social .profile-primary-actions button{min-height:44px!important}
@media(max-width:700px){
 .connect-profile-header>.connect-profile-cover{height:240px!important;min-height:240px!important;max-height:240px!important}
 .connect-profile-header .connect-profile-person{left:16px!important;bottom:-40px!important;width:120px!important;height:120px!important}
 .connect-profile-details{margin-top:64px!important;padding-left:16px!important;padding-right:16px!important;text-align:left!important}
 .connect-profile-details>.profile-identity-name-row h2{font-size:24px!important}
 .connect-profile-details>.profile-mutual-context{max-width:100%!important;white-space:nowrap!important}
 .connect-profile-details>.profile-bio{font-size:14px!important;max-width:none!important}
}


/* PROFILE HEADER REFINEMENT — 104px circular avatar */
.connect-profile-header>.connect-profile-cover{
  position:relative!important;
  height:240px!important;
  min-height:240px!important;
  max-height:240px!important;
  overflow:visible!important;
}
.connect-profile-header .connect-profile-person{
  position:absolute!important;
  left:16px!important;
  bottom:-44px!important;
  z-index:30!important;
  width:104px!important;
  height:104px!important;
  min-width:104px!important;
  min-height:104px!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
}
.connect-profile-header .connect-profile-avatar{
  position:relative!important;
  display:block!important;
  width:104px!important;
  height:104px!important;
  min-width:104px!important;
  min-height:104px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.connect-profile-header .connect-profile-avatar>.avatar,
.connect-profile-header .connect-profile-avatar>.avatar-story-trigger,
.connect-profile-header .connect-profile-avatar>.avatar-story-trigger>.avatar{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  flex:none!important;
  border:0!important;
  border-radius:50%!important;
  overflow:hidden!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
.connect-profile-header .connect-profile-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  border:3px solid #ffffff!important;
  box-shadow:0 2px 8px rgba(0,0,0,0.15)!important;
  box-sizing:border-box!important;
}
.connect-profile-header .profile-thought-bubble{
  position:absolute!important;
  left:52px!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(100% + 8px)!important;
  transform:translateX(-50%)!important;
  z-index:36!important;
  max-width:190px!important;
  text-align:center!important;
}
.connect-profile-details{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-top:48px!important;
  padding:12px 16px 12px!important;
  text-align:left!important;
}
.connect-profile-details>.profile-identity-name-row{
  justify-content:flex-start!important;
  width:100%!important;
}
.connect-profile-details>.profile-identity-name-row h2{
  margin:0!important;
  font-size:24px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-align:left!important;
}
.connect-profile-details>.profile-category-label{
  text-align:left!important;
}
.connect-profile-details>.profile-relationship-stats{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  margin:8px 0 0!important;
  text-align:left!important;
}
.connect-profile-details>.profile-mutual-context{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
.connect-profile-details>.profile-bio{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:10px 0 0!important;
  padding:0!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:700px){
  .connect-profile-header>.connect-profile-cover{
    height:240px!important;
    min-height:240px!important;
    max-height:240px!important;
  }
  .connect-profile-header .connect-profile-person{
    left:16px!important;
    bottom:-44px!important;
    width:104px!important;
    height:104px!important;
  }
  .connect-profile-header .connect-profile-avatar{
    width:104px!important;
    height:104px!important;
  }
  .connect-profile-details{
    margin-top:48px!important;
    padding:12px 16px 12px!important;
  }
}


/* EZMAVIQUE CONNECT — LOCKED PROFILE HEADER SYSTEM v1 (2026-11-06) */
/* Scoped ancestor protection: allow the avatar overlap without changing global navigation. */
#profileScreen,
#profileScreen #profileContent,
#profileScreen #profileContent > .connect-profile,
#profileScreen #profileContent > .connect-profile > .connect-profile-header{
  position:relative!important;
  min-width:0!important;
  overflow:visible!important;
}

/* Fixed cover window and anchored 104px avatar. */
#profileScreen #profileContent > .connect-profile > .connect-profile-header{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}
#profileScreen .connect-profile-header > .connect-profile-cover{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:280px!important;
  min-height:280px!important;
  max-height:280px!important;
  flex:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
#profileScreen .connect-profile-header .connect-profile-person{
  position:absolute!important;
  left:16px!important;
  bottom:-44px!important;
  z-index:40!important;
  display:block!important;
  width:104px!important;
  height:104px!important;
  min-width:104px!important;
  min-height:104px!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
  box-sizing:border-box!important;
}
#profileScreen .connect-profile-header .connect-profile-avatar{
  position:relative!important;
  display:block!important;
  width:104px!important;
  height:104px!important;
  min-width:104px!important;
  min-height:104px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
#profileScreen .connect-profile-header .connect-profile-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:4px solid #fff!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  box-shadow:0 2px 8px rgba(0,0,0,.15)!important;
  box-sizing:border-box!important;
}
#profileScreen .connect-profile-header .profile-thought-bubble{
  position:absolute!important;
  left:52px!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(100% + 8px)!important;
  transform:translateX(-50%)!important;
  z-index:41!important;
  max-width:min(190px,calc(100vw - 150px))!important;
}
#profileScreen .connect-profile-header .profile-avatar-edit{
  position:absolute!important;
  right:2px!important;
  bottom:2px!important;
  z-index:42!important;
}

/* The details start 56px below the cover's normal flow edge. */
#profileScreen .connect-profile-header > .connect-profile-details{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:56px 16px 12px!important;
  box-sizing:border-box!important;
  text-align:left!important;
  overflow:visible!important;
}
#profileScreen .connect-profile-details > .profile-identity-name-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
}
#profileScreen .connect-profile-details > .profile-identity-name-row h2{
  margin:0!important;
  text-align:left!important;
  overflow-wrap:anywhere!important;
}
#profileScreen .connect-profile-details > .profile-category-label,
#profileScreen .connect-profile-details > .profile-relationship-stats,
#profileScreen .connect-profile-details > .profile-mutual-context,
#profileScreen .connect-profile-details > .profile-bio{
  text-align:left!important;
}
#profileScreen .connect-profile-details > .profile-bio{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin-top:10px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:700px){
  #profileScreen .connect-profile-header > .connect-profile-cover{
    height:280px!important;
    min-height:280px!important;
    max-height:280px!important;
  }
  #profileScreen .connect-profile-header .connect-profile-person,
  #profileScreen .connect-profile-header .connect-profile-avatar{
    width:104px!important;
    height:104px!important;
    min-width:104px!important;
    min-height:104px!important;
  }
  #profileScreen .connect-profile-header .connect-profile-person{
    left:16px!important;
    bottom:-44px!important;
  }
  #profileScreen .connect-profile-header > .connect-profile-details{
    padding-top:56px!important;
  }
}


/* EZMAVIQUE CONNECT — EDGE-TO-EDGE MOBILE FEED v1 (2026-11-06) */
:root{--paper:#f0f2f5;--line:#e4e6eb}
html,body{background:#f0f2f5}
@media(max-width:720px){
 html,body,#appShell,.layout,.content,.screen,#homeScreen,#feedList,#commentsScreen{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;
  box-sizing:border-box!important;
 }
 body{padding-left:0!important;padding-right:0!important;background:#f0f2f5!important}
 #appShell{overflow-x:clip!important}
 .topbar{width:100%!important;max-width:100%!important;margin:0!important}
 .layout{display:block!important;margin:0!important;padding:0!important;gap:0!important}
 .content{padding:0!important;margin:0!important}
 .screen{padding:0!important;margin:0!important}
 #homeScreen,#feedList{padding:0!important;margin:0!important}
 .composer,.stories,.feed-tabs{
  width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
  border-radius:0!important;box-shadow:none!important;
 }
 .composer{padding:12px 16px!important;margin-bottom:8px!important}
 .stories{padding:12px 10px!important;margin-bottom:8px!important}
 #feedList>.post-card,.post-card,#commentsPost>.post-card{
  display:block!important;width:100%!important;max-width:100%!important;
  margin:0 0 8px!important;padding:0!important;
  border:0!important;border-bottom:8px solid #e4e6eb!important;
  border-radius:0!important;background:#fff!important;box-shadow:none!important;
  box-sizing:border-box!important;
 }
 .post-head{width:100%!important;padding:12px 16px!important;box-sizing:border-box!important}
 .post-body{width:100%!important;padding:0 16px!important;box-sizing:border-box!important}
 .post-stats{width:100%!important;padding:10px 16px!important;box-sizing:border-box!important}
 .post-actions{width:100%!important;padding:8px 12px!important;box-sizing:border-box!important}
 .post-media,.post-card img.post-media,.post-card video.post-media,
 .post-card .post-media-tap,.post-card .shared-post-preview{
  display:block!important;width:100%!important;max-width:100%!important;
  margin-left:0!important;margin-right:0!important;padding:0!important;
  border-radius:0!important;box-sizing:border-box!important;
 }
 .post-card img.post-media,.post-card video.post-media{
  height:auto!important;max-height:none!important;object-fit:cover!important;
 }
 .post-card .post-media-tap{border:0!important;background:transparent!important}
 .post-card .shared-post-preview{overflow:hidden!important}
 .post-card .shared-post-preview img.post-media,
 .post-card .shared-post-preview video.post-media{width:100%!important}
 #commentsPost>.post-card{margin-bottom:8px!important}
 .comments,.comment-form{margin-left:0!important;margin-right:0!important}
}
.comment-thread-item{width:100%;min-width:0;margin:12px 0}
.comment-main{display:flex;align-items:flex-start;gap:8px;min-width:0}
.comment-main>.avatar{flex:0 0 36px;width:36px;height:36px}
.comment-content{flex:1;min-width:0}
.comment-bubble{display:inline-block;max-width:min(100%,560px);padding:9px 12px;background:#f0f2f5;border-radius:18px;overflow-wrap:anywhere}
.comment-bubble strong{display:block;margin-bottom:2px;font-size:13px;font-weight:750}
.comment-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.4}
.comment-actions{display:flex;align-items:center;gap:14px;margin:4px 0 0 12px;font-size:12px}
.comment-actions button{padding:0;border:0;background:transparent;color:#65676b;font-weight:700}
.comment-actions button.active{color:#1877f2}
.comment-actions time{color:#65676b;font-weight:400}
.comment-reaction-summary{display:flex;gap:7px;margin:4px 0 0 12px;color:#65676b;font-size:11px}
.comment-reaction-picker{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 0 10px}
.comment-reaction-picker button{width:32px;height:32px;border:1px solid #e4e6eb;border-radius:50%;background:#fff;font-size:17px}
.inline-reply-form{display:flex;gap:7px;margin:8px 0 0 10px}
.inline-reply-form input{flex:1;min-width:0;border:1px solid #d9dfe8;border-radius:18px;padding:9px 12px;background:#f7f8fa}
.comment-replies{margin:8px 0 0 42px;padding-left:12px;border-left:2px solid #e4e6eb}
@media(max-width:720px){.comment-replies{margin-left:34px;padding-left:10px}}


/* Home feed pull-to-refresh status. */
.feed-refresh-indicator{display:flex;align-items:center;justify-content:center;gap:9px;height:0;min-height:0;overflow:hidden;opacity:0;color:var(--blue);font-size:13px;font-weight:700;transition:height .16s ease,opacity .16s ease,padding .16s ease}
.feed-refresh-indicator.is-pulling,.feed-refresh-indicator.is-refreshing,.feed-refresh-indicator.is-complete{height:48px;opacity:1;padding:8px 0}
.feed-refresh-spinner{width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:none;animation:connect-feed-spin .75s linear infinite}
.feed-refresh-indicator.is-refreshing .feed-refresh-spinner{display:inline-block}
.feed-refresh-indicator.is-pulling .feed-refresh-spinner{display:inline-block;animation:none;border-right-color:currentColor;transform:rotate(-45deg)}
@keyframes connect-feed-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.feed-refresh-indicator{transition:none}.feed-refresh-spinner{animation:none!important}}


/* MOBILE PROFILE REPAIR — stable cover, circular avatar, readable identity stack */
@media (max-width: 720px) {
  #profileScreen #profileContent .connect-profile-header,
  .member-profile-page {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    overflow: visible !important; box-sizing: border-box !important;
  }
  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover,
  .member-profile-page > .connect-profile-cover {
    display: block !important; width: 100% !important; height: 190px !important;
    min-height: 190px !important; max-height: 190px !important; flex: 0 0 190px !important;
    border-radius: 12px 12px 0 0 !important; background-color: #dce7f5 !important;
    background-size: cover !important; background-position: center !important;
    box-sizing: border-box !important;
  }
  .member-profile-page .connect-profile-heading.profile-heading-facebook {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; width: 100% !important; min-width: 0 !important;
    padding: 0 16px 16px !important; margin: 0 !important; box-sizing: border-box !important;
  }
  .member-profile-page .profile-person-column {
    order: 0 !important; display: flex !important; flex-direction: column !important;
    align-items: flex-start !important; width: 100% !important; min-width: 0 !important; margin: 0 !important;
  }
  .member-profile-page .connect-profile-person {
    position: relative !important; display: block !important; width: 104px !important; height: 104px !important;
    min-width: 104px !important; min-height: 104px !important; flex: 0 0 104px !important;
    margin: -48px 0 10px !important; padding: 0 !important; left: auto !important; bottom: auto !important;
    z-index: 4 !important; box-sizing: border-box !important;
  }
  .member-profile-page .connect-profile-person > .avatar,
  .member-profile-page .connect-profile-person > .avatar img,
  .member-profile-page .connect-profile-person img {
    display: block !important; width: 104px !important; height: 104px !important;
    min-width: 104px !important; min-height: 104px !important; max-width: 104px !important;
    max-height: 104px !important; border-radius: 50% !important; object-fit: cover !important;
    object-position: center !important; overflow: hidden !important; box-sizing: border-box !important;
  }
  .member-profile-page .profile-relationship-stats {
    display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
    gap: 18px !important; width: 100% !important; margin: 0 0 8px !important; padding: 0 !important;
  }
  .member-profile-page .connect-profile-name {
    order: 1 !important; display: block !important; width: 100% !important; min-width: 0 !important;
    padding: 8px 0 12px !important; margin: 0 !important; text-align: left !important; overflow-wrap: anywhere !important;
  }
  .member-profile-page .connect-profile-name h2 {
    margin: 0 0 6px !important; font-size: 23px !important; line-height: 1.2 !important; font-weight: 800 !important;
  }
  .member-profile-page .connect-profile-name p {
    margin: 6px 0 !important; font-size: 15px !important; line-height: 1.5 !important;
    white-space: normal !important; overflow-wrap: anywhere !important;
  }
  .member-profile-page .connect-profile-social,
  .member-profile-page .connect-profile-body {
    width: 100% !important; min-width: 0 !important; box-sizing: border-box !important;
  }
  .member-profile-page .connect-profile-body {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important; padding: 0 12px 18px !important;
  }
  .member-profile-page .profile-panel {
    width: 100% !important; margin: 0 !important; box-sizing: border-box !important; border-radius: 14px !important;
  }
  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover {
    position: relative !important; overflow: visible !important;
  }
  #profileScreen #profileContent .connect-profile-header .connect-profile-person {
    position: absolute !important; left: 16px !important; bottom: -48px !important;
    width: 104px !important; height: 104px !important; min-width: 104px !important;
    min-height: 104px !important; margin: 0 !important; z-index: 20 !important;
  }
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar,
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar img {
    display: block !important; width: 104px !important; height: 104px !important;
    min-width: 104px !important; min-height: 104px !important; max-width: 104px !important;
    max-height: 104px !important; border-radius: 50% !important; object-fit: cover !important;
    overflow: hidden !important; box-sizing: border-box !important;
  }
  #profileScreen #profileContent .connect-profile-details {
    display: flex !important; flex-direction: column !important; align-items: flex-start !important;
    margin-top: 62px !important; padding: 0 16px 14px !important; width: 100% !important; box-sizing: border-box !important;
  }
  #profileScreen #profileContent .connect-profile-details .profile-bio {
    margin: 8px 0 0 !important; line-height: 1.5 !important; overflow-wrap: anywhere !important;
  }
}

/* FINAL MOBILE PROFILE FLOW FIX — avatar overlaps cover without leaving document flow.
   Keep the existing profile markup, upload controls, thought bubble and data handlers. */
@media (max-width: 720px) {
  /* Own profile: cover is a flex column; avatar remains a real flow item. */
  #profileScreen #profileContent .connect-profile-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: clamp(180px, 48vw, 240px) !important;
    min-height: 180px !important;
    max-height: 240px !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover > .connect-profile-person {
    position: relative !important;
    inset: auto !important;
    align-self: flex-start !important;
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    flex: 0 0 104px !important;
    margin: 0 0 -52px 16px !important;
    padding: 0 !important;
    z-index: 20 !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar,
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar > .avatar,
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar > .avatar-story-trigger,
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar > .avatar-story-trigger > .avatar {
    position: relative !important;
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 4px solid #fff !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    box-sizing: border-box !important;
  }

  /* Only the small controls attached to the avatar may be absolute. */
  #profileScreen #profileContent .connect-profile-header .profile-thought-bubble {
    position: absolute !important;
    left: 52px !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    transform: translateX(-50%) !important;
    max-width: min(190px, calc(100vw - 150px)) !important;
    z-index: 22 !important;
  }

  #profileScreen #profileContent .connect-profile-header .profile-avatar-edit {
    position: absolute !important;
    right: 2px !important;
    bottom: 2px !important;
    z-index: 23 !important;
  }

  /* Details start after the cover; their height is determined by their content. */
  #profileScreen #profileContent .connect-profile-header > .connect-profile-details {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 64px 16px 14px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row h2 {
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(20px, 5.8vw, 24px) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-category-label,
  #profileScreen #profileContent .connect-profile-details > .profile-bio,
  #profileScreen #profileContent .connect-profile-details > .profile-username {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-relationship-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-relationship-stats button {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-mutual-context {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-bio {
    margin: 10px 0 0 !important;
    line-height: 1.5 !important;
  }

  /* Other-member profile: preserve its existing markup but guarantee flow and wrapping. */
  .member-profile-page {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .member-profile-page > .connect-profile-cover {
    height: clamp(180px, 48vw, 240px) !important;
    min-height: 180px !important;
    max-height: 240px !important;
  }

  .member-profile-page .connect-profile-heading.profile-heading-facebook {
    height: auto !important;
    min-width: 0 !important;
  }

  .member-profile-page .profile-person-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .member-profile-page .connect-profile-person {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    flex: 0 0 104px !important;
    margin: -52px 0 12px !important;
    z-index: 4 !important;
  }

  .member-profile-page .profile-relationship-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 10px !important;
    white-space: normal !important;
  }

  .member-profile-page .connect-profile-name {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow-wrap: anywhere !important;
  }

  .member-profile-page .connect-profile-name h2,
  .member-profile-page .connect-profile-name p {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .member-profile-page .connect-profile-body,
  .member-profile-page .connect-profile-sidebar,
  .member-profile-page .connect-profile-main {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}


/* Facebook-style profile header: avatar is a normal-flow child of the info section. */
@media (max-width: 720px) {
  #profileScreen #profileContent .connect-profile.connect-facebook-profile,
  #profileScreen #profileContent .connect-profile-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover {
    position: relative !important;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    height: clamp(190px, 55vw, 250px) !important;
    min-height: 190px !important;
    max-height: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background-size: cover !important;
    background-position: center !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-details {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 16px 16px !important;
    overflow: visible !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  /* Avatar remains in document flow; negative margin creates the Facebook overlap. */
  #profileScreen #profileContent .connect-profile-details > .connect-profile-person {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    flex: 0 0 104px !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    margin: -52px 0 12px !important;
    padding: 0 !important;
    z-index: 2 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar,
  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar img {
    position: relative !important;
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar {
    overflow: hidden !important;
    border: 4px solid #fff !important;
    background: #fff !important;
  }

  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar img {
    border: 0 !important;
  }

  #profileScreen #profileContent .connect-profile-details .profile-thought-bubble {
    position: absolute !important;
    left: 112px !important;
    top: 0 !important;
    bottom: auto !important;
    right: auto !important;
    max-width: min(190px, calc(100vw - 160px)) !important;
    z-index: 3 !important;
  }

  #profileScreen #profileContent .connect-profile-details .profile-avatar-edit {
    position: absolute !important;
    left: 76px !important;
    right: auto !important;
    top: 76px !important;
    bottom: auto !important;
    z-index: 4 !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row,
  #profileScreen #profileContent .connect-profile-details > .profile-category-label,
  #profileScreen #profileContent .connect-profile-details > .profile-relationship-stats,
  #profileScreen #profileContent .connect-profile-details > .profile-mutual-context,
  #profileScreen #profileContent .connect-profile-details > .profile-bio,
  #profileScreen #profileContent .connect-profile-details > .profile-username {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row {
    gap: 6px !important;
    margin: 0 !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row h2 {
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(20px, 5.8vw, 25px) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-relationship-stats {
    gap: 6px 10px !important;
    margin: 8px 0 0 !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-bio {
    display: block !important;
    margin: 8px 0 0 !important;
    line-height: 1.5 !important;
  }

  #profileScreen #profileContent .connect-profile-details > .profile-username {
    margin-top: 6px !important;
  }
}


/* Restore the simple original mobile profile-photo treatment. */
@media (max-width: 720px) {
  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover { position: relative !important; overflow: visible !important; }
  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover > .connect-profile-person {
    position: absolute !important; left: 16px !important; right: auto !important; bottom: -48px !important; top: auto !important;
    display: block !important; width: 104px !important; height: 104px !important; min-width: 104px !important; min-height: 104px !important;
    margin: 0 !important; padding: 0 !important; z-index: 5 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar,
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar > .avatar,
  #profileScreen #profileContent .connect-profile-header .connect-profile-avatar img {
    display: block !important; width: 104px !important; height: 104px !important; min-width: 104px !important; min-height: 104px !important;
    max-width: 104px !important; max-height: 104px !important; border-radius: 50% !important; overflow: hidden !important;
    object-fit: cover !important; background: transparent !important; box-shadow: none !important; box-sizing: border-box !important;
  }
  #profileScreen #profileContent .connect-profile-details { margin-top: 52px !important; padding-top: 12px !important; background: transparent !important; }
}


/* CLEAN MOBILE PROFILE HEADER — left-aligned avatar, no avatar backdrop. */
@media (max-width: 720px) {
  #profileScreen #profileContent .connect-profile,
  #profileScreen #profileContent .connect-profile-header {
    display:flex !important; flex-direction:column !important; align-items:stretch !important;
    width:100% !important; height:auto !important; min-width:0 !important;
    overflow:visible !important; background:#fff !important; box-sizing:border-box !important;
  }
  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover {
    position:relative !important; display:block !important; width:100% !important;
    height:280px !important; min-height:280px !important; max-height:280px !important;
    flex:none !important; margin:0 !important; padding:0 !important;
    overflow:hidden !important; border-radius:12px 12px 0 0 !important;
    background-size:cover !important; background-position:center !important;
  }
  #profileScreen #profileContent .connect-profile-header > .connect-profile-cover .connect-profile-person {
    display:none !important;
  }
  #profileScreen #profileContent .connect-profile-header > .connect-profile-details {
    position:relative !important; display:flex !important; flex-direction:column !important;
    align-items:flex-start !important; gap:0 !important; width:100% !important;
    height:auto !important; min-width:0 !important; margin:0 !important;
    padding:0 16px 16px !important; overflow:visible !important;
    background:#fff !important; text-align:left !important; box-sizing:border-box !important;
  }
  #profileScreen #profileContent .connect-profile-details > .connect-profile-person {
    position:relative !important; display:block !important; flex:none !important;
    width:112px !important; height:112px !important; min-width:112px !important;
    min-height:112px !important; margin:-56px 0 12px !important; padding:0 !important;
    left:auto !important; right:auto !important; top:auto !important; bottom:auto !important;
    background:transparent !important; border:0 !important; border-radius:0 !important;
    box-shadow:none !important; overflow:visible !important; z-index:2 !important;
  }
  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar,
  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar > .avatar,
  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar img {
    display:block !important; width:112px !important; height:112px !important;
    min-width:112px !important; min-height:112px !important; max-width:112px !important;
    max-height:112px !important; margin:0 !important; padding:0 !important;
    border-radius:50% !important; overflow:hidden !important; object-fit:cover !important;
    object-position:center !important; background:transparent !important; box-shadow:none !important;
    box-sizing:border-box !important;
  }
  #profileScreen #profileContent .connect-profile-details .connect-profile-avatar img {
    border:4px solid #fff !important;
  }
  #profileScreen #profileContent .connect-profile-details .profile-avatar-edit {
    position:absolute !important; right:3px !important; bottom:3px !important;
    left:auto !important; top:auto !important; z-index:4 !important;
  }
  #profileScreen #profileContent .connect-profile-details .profile-thought-bubble {
    position:absolute !important; left:120px !important; right:auto !important;
    top:0 !important; bottom:auto !important; max-width:calc(100vw - 160px) !important;
  }
  #profileScreen #profileContent .connect-profile-details > * {
    max-width:100% !important; box-sizing:border-box !important; overflow-wrap:anywhere !important;
  }
  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row,
  #profileScreen #profileContent .connect-profile-details > .profile-category-label,
  #profileScreen #profileContent .connect-profile-details > .profile-relationship-stats,
  #profileScreen #profileContent .connect-profile-details > .profile-bio,
  #profileScreen #profileContent .connect-profile-details > .profile-username {
    width:100% !important; text-align:left !important; justify-content:flex-start !important;
    white-space:normal !important; overflow-wrap:anywhere !important;
  }
  #profileScreen #profileContent .connect-profile-details > .profile-identity-name-row h2 {
    margin:0 !important; font-size:23px !important; line-height:1.25 !important;
  }
  #profileScreen #profileContent .connect-profile-details > .profile-relationship-stats {
    display:flex !important; flex-wrap:wrap !important; gap:6px 10px !important;
    height:auto !important; margin:8px 0 0 !important;
  }
  #profileScreen #profileContent .connect-profile-details > .profile-bio {
    display:block !important; margin:8px 0 0 !important; line-height:1.5 !important;
  }
  #profileScreen #profileContent .connect-profile-social .profile-primary-actions {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important; width:100% !important; margin-top:14px !important;
  }
  #profileScreen #profileContent .connect-profile-social {
    width:100% !important; padding:0 16px 12px !important; box-sizing:border-box !important;
  }
  #profileScreen #profileContent .connect-profile-social .profile-navigation,
  #profileScreen #profileContent .connect-profile-social .profile-tabs {
    display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    gap:8px !important; width:100% !important; overflow-x:auto !important;
    white-space:nowrap !important; margin-top:14px !important; padding:10px 0 4px !important;
  }
}

/* EZMAVIQUE CONNECT — unified Facebook-style profile component */
#profileScreen #profileContent .fb-profile-container{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;height:auto!important;overflow:visible!important;background:#fff!important;border-radius:14px!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-profile-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;height:auto!important;overflow:visible!important}
#profileScreen #profileContent .fb-cover-banner{position:relative!important;display:block!important;width:100%!important;aspect-ratio:16/9!important;height:auto!important;min-height:180px!important;max-height:340px!important;flex:none!important;overflow:hidden!important;margin:0!important;padding:0!important;border-radius:14px 14px 0 0!important;background-color:#1a1a1a!important;background-size:cover!important;background-position:center!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-cover-banner .profile-mobile-topbar{z-index:5!important}
#profileScreen #profileContent .fb-cover-banner .banner-action-btn{position:absolute!important;right:14px!important;bottom:12px!important;left:auto!important;top:auto!important;z-index:6!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:#111827!important;box-shadow:0 2px 10px rgba(0,0,0,.2)!important;cursor:pointer!important}
#profileScreen #profileContent .fb-profile-content-wrapper{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;min-width:0!important;height:auto!important;gap:0!important;margin:0!important;padding:0 16px 16px!important;overflow:visible!important;background:#fff!important;box-sizing:border-box!important;text-align:center!important}
#profileScreen #profileContent .fb-avatar-container{position:relative!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;width:100%!important;min-height:0!important;overflow:visible!important}
#profileScreen #profileContent .fb-avatar-wrapper{position:relative!important;display:block!important;flex:none!important;width:128px!important;height:128px!important;min-width:128px!important;min-height:128px!important;margin:-64px auto 12px!important;padding:0!important;inset:auto!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;z-index:10!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar img,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar .avatar,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar .avatar img{display:block!important;width:128px!important;height:128px!important;min-width:128px!important;min-height:128px!important;max-width:128px!important;max-height:128px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;overflow:hidden!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar{overflow:hidden!important;border:4px solid #fff!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.16)!important}
#profileScreen #profileContent .fb-avatar-wrapper .profile-avatar-edit{position:absolute!important;right:3px!important;bottom:3px!important;left:auto!important;top:auto!important;z-index:5!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border:2px solid #fff!important;border-radius:50%!important;background:#e4e6eb!important;color:#111827!important;cursor:pointer!important}
#profileScreen #profileContent .fb-avatar-wrapper .fb-status-bubble{position:absolute!important;top:-34px!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;z-index:9!important;max-width:calc(100vw - 48px)!important;padding:6px 12px!important;border-radius:16px!important;background:#fff!important;color:#374151!important;font-size:12px!important;line-height:1.3!important;white-space:nowrap!important;box-shadow:0 2px 8px rgba(0,0,0,.15)!important}
#profileScreen #profileContent .fb-identity-stack{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;gap:6px!important;text-align:center!important}
#profileScreen #profileContent .fb-name-row{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:100%!important;margin:0!important}
#profileScreen #profileContent .fb-profile-name{margin:0!important;color:#111827!important;font-size:clamp(20px,5vw,28px)!important;font-weight:700!important;line-height:1.25!important;overflow-wrap:anywhere!important}
#profileScreen #profileContent .verification-badge svg{width:20px!important;height:20px!important}
#profileScreen #profileContent .fb-profile-subtitle{margin:0!important;color:#6b7280!important;font-size:14px!important}
#profileScreen #profileContent .fb-meta-counters{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:4px 10px!important;width:100%!important;margin:0!important;color:#374151!important;font-size:14px!important}
#profileScreen #profileContent .fb-meta-counters button{display:inline!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;cursor:pointer!important}
#profileScreen #profileContent .fb-mutual-friends{width:100%!important;max-width:520px!important;margin:0!important}
#profileScreen #profileContent .fb-profile-bio{width:100%!important;max-width:520px!important;margin:2px 0 0!important;color:#1f2937!important;font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
#profileScreen #profileContent .fb-profile-utilities{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;margin:0!important;padding:0 16px 12px!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin:4px 0 0!important}
#profileScreen #profileContent .fb-action-grid .btn{display:flex!important;justify-content:center!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important;min-height:42px!important;padding:10px!important;border:0!important;border-radius:8px!important;font-weight:600!important;cursor:pointer!important}
#profileScreen #profileContent .fb-action-grid .btn-primary{background:#1877f2!important;color:#fff!important}
#profileScreen #profileContent .fb-action-grid .btn-secondary{background:#e4e6eb!important;color:#050505!important}
#profileScreen #profileContent .fb-profile-utilities .profile-intro-meta{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px 14px!important;width:100%!important;margin-top:12px!important}
#profileScreen #profileContent .fb-profile-utilities .connect-profile-tabs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:14px!important;width:100%!important;margin-top:14px!important;padding:10px 0 4px!important;overflow-x:auto!important;white-space:nowrap!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-profile-container .connect-profile-body{width:100%!important;min-width:0!important;box-sizing:border-box!important}
@media(min-width:721px){#profileScreen #profileContent .fb-profile-content-wrapper{padding-left:24px!important;padding-right:24px!important}#profileScreen #profileContent .fb-avatar-wrapper,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar img{width:144px!important;height:144px!important;min-width:144px!important;min-height:144px!important;max-width:144px!important;max-height:144px!important}#profileScreen #profileContent .fb-avatar-wrapper{margin-top:-72px!important}}
@media(max-width:720px){#profileScreen #profileContent .fb-cover-banner{aspect-ratio:16/9!important;min-height:180px!important;max-height:250px!important;border-radius:0!important}#profileScreen #profileContent .fb-profile-content-wrapper{padding-left:16px!important;padding-right:16px!important}#profileScreen #profileContent .fb-identity-stack{gap:6px!important}#profileScreen #profileContent .fb-profile-utilities{padding-left:16px!important;padding-right:16px!important}#profileScreen #profileContent .fb-action-grid{gap:10px!important}}


/* Signup legal consent: required acceptance is visible, readable and keyboard accessible. */
.legal-consent{grid-column:1/-1;margin:4px 0 2px;padding:13px 14px;border:1px solid #dbe4f0;border-radius:12px;background:#f7f9fc;color:#26364d;font-size:13px;line-height:1.5;text-align:left}
.legal-consent label{display:flex;align-items:flex-start;gap:10px;font-weight:650;cursor:pointer}
.legal-consent input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;accent-color:#1877f2}
.legal-consent a{color:#1769c2;text-decoration:underline;text-underline-offset:2px}
.legal-consent p{margin:7px 0 0 28px;color:#64748b;font-size:11px}
/* Keep the profile image as one fixed circular portrait, overlapping the cover cleanly. */
#profileScreen #profileContent .fb-avatar-wrapper{display:block!important;width:128px!important;height:128px!important;min-width:128px!important;min-height:128px!important;margin:-64px auto 12px!important;position:relative!important;overflow:visible!important;flex:none!important}
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar{display:block!important;width:128px!important;height:128px!important;overflow:hidden!important;border:4px solid #fff!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.16)!important}
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar .avatar,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar .avatar img{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border:0!important;border-radius:50%!important;overflow:hidden!important;margin:0!important;padding:0!important}
#profileScreen #profileContent .fb-avatar-wrapper .profile-avatar-edit{position:absolute!important;right:3px!important;bottom:3px!important;left:auto!important;top:auto!important;z-index:12!important}
@media(min-width:721px){#profileScreen #profileContent .fb-avatar-wrapper,#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar{width:144px!important;height:144px!important;min-width:144px!important;min-height:144px!important}.legal-consent{font-size:13px}}

/* CONNECT 3.1 registration: readable, responsive identity fields. */
#signupProfileFields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
#signupProfileFields.hidden{display:none!important}
#signupProfileFields .field{min-width:0}
#signupProfileFields select{width:100%;min-height:46px;border:1px solid #dce3ed;border-radius:11px;padding:12px 13px;background:#fff;color:var(--ink)}
#signupPasswordConfirm{margin-top:8px}
#authFields .field small{font-size:11px;line-height:1.45}
#resendVerification{margin-top:8px;color:#1769c2;text-decoration:underline;text-underline-offset:3px}
@media(max-width:520px){#signupProfileFields{grid-template-columns:minmax(0,1fr)}}

/* CONNECT 3.1.1 — single-source profile avatar layout; overrides legacy conflicting rules. */
#profileScreen #profileContent .connect-profile-header,
#profileScreen #profileContent .fb-profile-content-wrapper{position:relative!important;overflow:visible!important;width:100%!important;max-width:100%!important}
#profileScreen #profileContent .fb-avatar-container{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important}
#profileScreen #profileContent .fb-avatar-wrapper{position:relative!important;display:block!important;flex:0 0 156px!important;width:156px!important;height:156px!important;min-width:156px!important;min-height:156px!important;max-width:156px!important;max-height:156px!important;margin:-78px auto 14px!important;padding:0!important;inset:auto!important;transform:none!important;overflow:visible!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar{position:relative!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;border:4px solid #fff!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 10px rgba(15,35,65,.18)!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar .avatar,
#profileScreen #profileContent .fb-avatar-wrapper .connect-profile-avatar .avatar img{position:static!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:50%!important;object-fit:cover!important;object-position:center center!important;transform:none!important;box-sizing:border-box!important}
#profileScreen #profileContent .fb-avatar-wrapper .profile-avatar-edit{position:absolute!important;right:2px!important;bottom:2px!important;left:auto!important;top:auto!important;z-index:15!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border:3px solid #fff!important;border-radius:50%!important;background:#e4e6eb!important;color:#17202f!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important}
#profileScreen #profileContent .fb-avatar-wrapper .fb-status-bubble{position:absolute!important;top:-34px!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;z-index:16!important;max-width:calc(100vw - 48px)!important;white-space:nowrap!important}
@media(min-width:721px){#profileScreen #profileContent .fb-avatar-wrapper{flex-basis:176px!important;width:176px!important;height:176px!important;min-width:176px!important;min-height:176px!important;max-width:176px!important;max-height:176px!important;margin:-88px auto 16px!important}}
@media(max-width:720px){#profileScreen #profileContent .fb-avatar-wrapper{flex-basis:136px!important;width:136px!important;height:136px!important;min-width:136px!important;min-height:136px!important;max-width:136px!important;max-height:136px!important;margin:-68px auto 14px!important}#profileScreen #profileContent .fb-avatar-wrapper .profile-avatar-edit{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}}


/* EZMAVIQUE CONNECT — unified premium brand system */
:root{
  --navy:#08152e;
  --navy2:#102b55;
  --blue:#2457d6;
  --blue2:#1d45b5;
  --cyan:#00b8d9;
  --violet:#6941c6;
  --gold:#e3b34c;
  --ink:#111f38;
  --muted:#52627d;
  --line:#dce5f2;
  --paper:#f3f6fc;
  --white:#fff;
  --green:#087f5b;
  --shadow:0 12px 34px rgba(8,21,46,.075);
  --radius:18px;
  --brand-gradient:linear-gradient(115deg,#2457d6 0%,#5367e8 52%,#6941c6 100%);
  --brand-glow:linear-gradient(120deg,rgba(0,184,217,.18),rgba(105,65,198,.14));
}
.brand-word{font-weight:900;letter-spacing:.075em;color:var(--navy);font-size:17px}
.brand-word span{color:var(--blue)}
.brand-logo{filter:drop-shadow(0 3px 7px rgba(8,21,46,.12))}
.auth-screen{
  position:relative;isolation:isolate;overflow:hidden;
  background:radial-gradient(ellipse at 12% 12%,rgba(0,184,217,.23),transparent 34%),
             radial-gradient(ellipse at 88% 82%,rgba(125,83,226,.25),transparent 38%),
             linear-gradient(135deg,#07152f 0%,#102b55 55%,#172d61 100%);
}
.auth-screen:before,.auth-screen:after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none;filter:blur(1px)}
.auth-screen:before{width:360px;height:360px;right:-130px;top:-150px;border:1px solid rgba(255,255,255,.13);box-shadow:0 0 0 34px rgba(255,255,255,.025),0 0 0 72px rgba(255,255,255,.018)}
.auth-screen:after{width:280px;height:280px;left:-120px;bottom:-150px;border:1px solid rgba(0,184,217,.25);box-shadow:0 0 0 32px rgba(0,184,217,.035),0 0 0 68px rgba(105,65,198,.025)}
.auth-hero .brand-word{letter-spacing:.09em}
.auth-hero .brand-word span{color:#9deeff}
.auth-hero h1{font-weight:850;text-wrap:balance}
.auth-hero h1 em,.auth-hero h1 strong{background:linear-gradient(90deg,#fff,#9deeff 48%,#c7b4ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-highlights{gap:12px}
.hero-highlight{padding:11px 13px;border:1px solid rgba(173,218,255,.22);border-radius:14px;background:rgba(255,255,255,.055);backdrop-filter:blur(10px)}
.highlight-icon{border-color:rgba(173,218,255,.35);background:linear-gradient(135deg,rgba(0,184,217,.28),rgba(105,65,198,.3));color:#e7f8ff;box-shadow:0 5px 16px rgba(0,0,0,.12)}
.hero-tagline{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid rgba(173,218,255,.24);border-radius:999px;background:rgba(255,255,255,.055);color:#d9eaff}
.auth-card{border-color:rgba(255,255,255,.75);box-shadow:0 28px 90px rgba(0,0,0,.28);backdrop-filter:blur(16px)}
.auth-card .badge{background:#edf3ff;color:#244fae}
.primary{background:var(--brand-gradient);border-color:transparent;box-shadow:0 7px 18px rgba(36,87,214,.2);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.primary:hover{background:linear-gradient(115deg,#1d45b5,#4c55d5 55%,#5733b1);box-shadow:0 9px 22px rgba(36,87,214,.28);transform:translateY(-1px)}
.primary:focus-visible,.secondary:focus-visible,.ghost:focus-visible,.icon-btn:focus-visible,.nav-item:focus-visible{outline:3px solid rgba(0,184,217,.55);outline-offset:2px}
.topbar{box-shadow:0 5px 24px rgba(8,21,46,.045);border-bottom-color:#e5ebf5}
.topbar .brand-word{font-size:16px}
.searchbox{background:#f2f5fb;border-color:#e8edf6;transition:border-color .18s ease,box-shadow .18s ease}
.searchbox:focus-within{border-color:#9bb8f4;box-shadow:0 0 0 3px rgba(36,87,214,.09)}
.icon-btn{background:#f1f4fa;color:#314b77}
.icon-btn:hover{background:#e9efff;color:var(--blue)}
.nav-item{transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-item.active{background:linear-gradient(100deg,#eaf1ff,#f0edff);color:#244fae}
.nav-item.active .nav-ico{color:#2457d6}
.rail-card,.card,.post-card,.composer{border-color:#e5ebf4;box-shadow:0 7px 24px rgba(8,21,46,.045)}
.rail-card:hover,.post-card:hover{border-color:#d9e3f3}
.page-head h1{font-weight:850;color:var(--navy);letter-spacing:-.045em}
.stories{border:1px solid #e7edf6;border-radius:18px;background:linear-gradient(120deg,#fff,#fbfcff)}
.story-visual{background:linear-gradient(145deg,#102b55 0%,#2457d6 55%,#00b8d9 100%);box-shadow:0 4px 14px rgba(8,21,46,.14)}
.story-create-visual{background:linear-gradient(145deg,#e9f4ff,#eeeaff)}
.story-add{background:var(--brand-gradient)}
.badge{background:#edf2ff;color:#244fae}
.post-actions button:hover,.post-actions button.liked{background:#edf2ff;color:#2457d6}
.connect-profile-cover{background-color:#dce8fb;box-shadow:inset 0 -24px 44px rgba(8,21,46,.1)}
.mobile-nav{box-shadow:0 -8px 26px rgba(8,21,46,.08)}
.mobile-nav button.active{color:#2457d6;background:linear-gradient(135deg,#edf4ff,#f1edff)}
.empty-state{background:linear-gradient(145deg,#fbfdff,#f6f8fe);border-color:#d7e2f2}
:root[data-theme="dark"]{
  --navy:#e9f1ff;--navy2:#c8d8f4;--blue:#83aaff;--blue2:#a7c0ff;
  --cyan:#53d9ef;--violet:#b69aff;--gold:#f0ca73;
  --ink:#e7edf7;--muted:#a8b7d0;--line:#2b3c58;--paper:#0a1426;--white:#111f35;
  --shadow:0 12px 38px rgba(0,0,0,.28);
}
:root[data-theme="dark"] .topbar{background:#101d32;border-color:#2b3c58}
:root[data-theme="dark"] .brand-word{color:#e9f1ff}
:root[data-theme="dark"] .brand-word span{color:#83aaff}
:root[data-theme="dark"] .searchbox,:root[data-theme="dark"] .icon-btn{background:#1b2b45;border-color:#314663;color:#dce8ff}
:root[data-theme="dark"] .nav-item.active{background:linear-gradient(100deg,#1b3155,#30284f);color:#c5d8ff}
:root[data-theme="dark"] .stories{background:#111f35;border-color:#2b3c58}
:root[data-theme="dark"] .page-head h1{color:#e9f1ff}
:root[data-theme="dark"] .empty-state{background:#111f35;border-color:#344966;color:#a8b7d0}
:root[data-theme="dark"] .story-create-visual{background:linear-gradient(145deg,#1c3557,#30284f)}
@media(max-width:720px){
  .topbar .brand-word{font-size:13px;letter-spacing:.045em}
  .topbar .brand-logo{filter:drop-shadow(0 2px 5px rgba(8,21,46,.15))}
  .stories{border-radius:15px}
}
@media(prefers-reduced-motion:reduce){.primary,.nav-item,.searchbox{transition:none!important}}
