*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#18202a;font:15px/1.55 "Noto Sans", "Segoe UI", Arial, sans-serif}a{color:#0789c9;text-decoration:none}.top{height:66px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 max(16px,calc((100% - 1100px)/2));position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:7px}.brand img:first-child{width:40px;height:40px;object-fit:contain}.brand img:last-child{width:150px;height:auto;max-height:48px;object-fit:contain}.top nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.top nav a{padding:8px 10px;font-weight:700;color:#333}.wrap{width:min(1100px,calc(100% - 24px));margin:22px auto}.grid{display:grid;grid-template-columns:260px minmax(0,760px);gap:18px;align-items:start}.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 2px 10px #00000008}.hero{background:linear-gradient(135deg,#06a9e9,#ed2190);color:#fff;border:0;padding:26px}.hero h1{font-size:34px;margin:0 0 8px}.btn{display:inline-block;background:#09a9e9;color:#fff;border:0;border-radius:10px;padding:10px 16px;font-weight:800;cursor:pointer}.btn.pink{background:#e6248a}.btn.gray{background:#667085}.btn.small{padding:7px 11px}.input,select,textarea,input{width:100%;padding:11px 12px;border:1px solid #d5dae1;border-radius:10px;background:#fff;font:inherit;margin-top:5px}.field{margin:14px 0}.required:after{content:" *";color:#e11}.check{display:flex;gap:10px;align-items:flex-start}.check input{width:auto;margin-top:4px}.logo{width:min(320px,100%);max-height:100px;object-fit:contain}.cover{height:230px;background:#e9eef3 center/cover no-repeat;border-radius:16px 16px 0 0}.profilehead{margin-top:-58px;padding-left:22px}.default-avatar{object-fit:contain!important}.avatar{width:112px;height:112px;border-radius:50%;border:5px solid #fff;background:#ddd;object-fit:cover}.post-head{display:flex;gap:10px;align-items:center}.post-head .avatar{width:46px;height:46px;border-width:2px}.post-image{display:block;width:100%;max-width:100%;max-height:75vh;object-fit:contain;border-radius:12px;margin-top:12px;background:#f0f2f5}.actions{display:flex;gap:8px;border-top:1px solid #eee;margin-top:12px;padding-top:10px}.comment{background:#f3f5f7;border-radius:12px;padding:8px 11px;margin-top:8px}.muted{color:#667085}.success{background:#e8fff1;padding:12px;border-radius:10px;color:#137a3a}.error,.warn{background:#fff1f1;padding:12px;border-radius:10px;color:#9b1c1c}.flash{width:min(700px,calc(100% - 24px));margin:12px auto;padding:11px;border-radius:10px;background:#e8fff1}.flash.error{background:#fff1f1}.center{width:min(600px,calc(100% - 24px));margin:50px auto}.rules{max-height:420px;overflow:auto;background:#292a2e;color:#eee;border-radius:12px;padding:18px;white-space:pre-wrap}.storybar{display:flex;gap:12px;overflow:auto;padding-bottom:5px}.story{min-width:78px;text-align:center}.story img{width:68px;height:68px;border-radius:50%;object-fit:cover;border:3px solid #e6248a}.search{display:flex;gap:8px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{display:flex;gap:24px;flex-wrap:wrap}.stat b{font-size:24px}.chat{max-height:420px;overflow:auto}.msg{padding:8px 12px;border-radius:12px;background:#f2f4f7;margin:6px 0}.msg.mine{background:#dff5ff;margin-left:20%}.note{padding:12px;border-bottom:1px solid #eee}.note.unread{background:#eefaff}footer{text-align:center;padding:28px;color:#667085}.admin{border-left:4px solid #e6248a}@media(max-width:800px){.grid{grid-template-columns:1fr}.top{height:auto;min-height:64px}.top nav a{padding:6px}.wrap{width:calc(100% - 16px)}.hero h1{font-size:28px}.two{grid-template-columns:1fr}.cover{height:170px}.post-image{max-height:70vh}}

.compact-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-top:1px solid #eee;margin-top:12px;padding-top:10px}.compact-actions form{margin:0;display:flex}.compact-actions .btn.small{padding:5px 8px;font-size:12px;line-height:1.2;height:30px}.profile-stories{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.profile-stories a{display:block;width:90px;height:110px;flex:0 0 90px;overflow:hidden;border-radius:10px}.profile-stories img{display:block;width:100%;height:100%;object-fit:cover}@media(max-width:800px){.compact-actions{gap:5px}.compact-actions .btn.small{padding:5px 7px;font-size:11px;height:29px}.profile-stories a{width:82px;height:100px;flex-basis:82px}}
.messages-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start}.friends-message-list h2{margin-top:0}.message-person{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;color:#20242a;margin-bottom:4px}.message-person:hover,.message-person.active{background:#eef8fc}.message-person .avatar{width:42px;height:42px;border:2px solid #fff;flex:0 0 42px}.private-chat-card{min-height:480px}.private-chat-title{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:12px}.private-chat-title .avatar{width:44px;height:44px;border:2px solid #fff}.private-chat{max-height:500px;overflow:auto;padding-right:3px}.msg-time{display:block;color:#667085;font-size:11px;margin-top:4px}.message-form{margin-top:12px}@media(max-width:800px){.messages-layout{grid-template-columns:1fr;gap:10px}.friends-message-list{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:10px}.friends-message-list h2{display:none}.friends-message-list .muted,.friends-message-list .btn{display:none}.message-person{flex:0 0 auto;display:flex;flex-direction:column;gap:3px;padding:2px 5px;font-size:12px;text-align:center}.message-person .avatar{width:50px;height:50px;flex-basis:50px}.private-chat-card{min-height:calc(100vh - 105px);margin-bottom:0}.private-chat{max-height:calc(100vh - 285px)}}

.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;width:min(1100px,calc(100% - 24px));margin:22px auto}.home-sidebar{min-width:0}.side-msg,.side-event{padding:8px 0;border-bottom:1px solid #eee}.side-msg{font-size:13px}.year-stats{display:grid;gap:8px}.year-stats div{display:flex;align-items:center;gap:7px;padding:8px 10px;background:#f6f8fa;border-radius:10px}.year-stats span{margin-left:auto;font-weight:800}.pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0}.pagination span{font-weight:700}.search-result{display:flex;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #eee;color:inherit}.search-result .avatar{width:46px;height:46px;border-width:2px}.search-item{padding:10px 0;border-bottom:1px solid #eee}.event-form{display:grid;gap:8px}.calendar-head{display:flex;align-items:center;justify-content:center;gap:15px}.calendar-head h2{margin:0}.event-day{padding:12px 0;border-bottom:1px solid #eee}.event-row{display:flex;justify-content:space-between;gap:10px;padding:9px 0 9px 12px}.event-row .muted{margin-top:3px}.story-photo{object-fit:cover!important}@media(max-width:800px){.home-layout{grid-template-columns:1fr;width:calc(100% - 16px);gap:10px}.home-sidebar{order:2}}

/* Requested responsive/story/reaction/game styles */
.story{flex:0 0 78px;min-width:78px;max-width:78px;overflow:hidden}.story-name{display:block;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;color:#333}.storybar{overflow-x:auto;overflow-y:hidden;max-width:100%;-webkit-overflow-scrolling:touch}.storybar::-webkit-scrollbar{height:4px}.story-photo{display:block;width:68px;height:68px}.reaction-form button:disabled{opacity:.6;cursor:wait}.game-leader{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #eee;color:inherit}.game-leader .avatar{width:34px;height:34px;border-width:2px;flex:0 0 34px}.game-leader span:not(.game-rank){min-width:0}.game-leader span:not(.game-rank) b,.game-leader small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-rank{font-weight:800;width:20px;text-align:center}.story-owner{display:flex;align-items:center;gap:10px;text-align:left;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #eee;color:inherit}.story-owner .avatar{width:44px;height:44px;border:2px solid #fff}.story-owner span{display:flex;flex-direction:column}.story-view-card{max-width:760px}.story-card{width:100%;overflow:hidden}.story-card img,.story-card video{max-width:100%;height:auto}
.games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.game-card{margin:0}.game-card h2{margin-top:0}.game-canvas{display:block;width:100%;max-width:420px;height:auto;aspect-ratio:1/1;margin:10px auto;border:1px solid #e5e7eb;border-radius:12px;background:#f7f8fa;touch-action:none}.game-area{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.game-board{display:grid;gap:5px;max-width:360px;width:100%}.game-board button{min-height:54px;font-size:22px;font-weight:800;border:1px solid #d5dae1;border-radius:9px;background:#fff;cursor:pointer}.game-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.game-score{font-size:18px;font-weight:800}.game-target{width:80px;height:80px;border-radius:50%;border:0;background:#09a9e9;cursor:pointer}.game-memory{grid-template-columns:repeat(4,1fr)}.game-memory button{aspect-ratio:1/1}.game-tictactoe{grid-template-columns:repeat(3,1fr);max-width:300px}.game-tictactoe button{aspect-ratio:1/1}.game-lanes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(360px,100%)}.game-lanes button{height:110px}.game-info{font-size:13px;color:#667085;text-align:center}
@media(max-width:800px){.home-layout{width:calc(100% - 12px);grid-template-columns:minmax(0,1fr)}.home-layout main,.home-sidebar{min-width:0}.card{padding:14px;border-radius:13px}.storybar{margin-right:-4px;padding-right:4px}.story{flex-basis:72px;min-width:72px;max-width:72px}.story-photo{width:62px;height:62px}.story-name{font-size:10px}.story-view-card{width:calc(100% - 12px);margin:14px auto}.story-card{padding:10px}.story-card img,.story-card video{max-height:65vh}.games-grid{grid-template-columns:1fr}.game-canvas{max-width:calc(100vw - 50px)}.game-board{max-width:100%}.top .desktop-nav{gap:0!important}.top .desktop-nav a{padding-left:4px!important;padding-right:4px!important}}
@media(max-width:380px){.top .brand img{width:112px!important;max-width:112px!important}.top .desktop-nav a{font-size:16px!important;padding-left:3px!important;padding-right:3px!important}.top-avatar{width:34px!important;height:34px!important}.story{flex-basis:68px;min-width:68px;max-width:68px}.story-photo{width:58px;height:58px}}
.story-reactions{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;margin:12px 0}.story-reactions form{margin:0}.story-reaction{border:1px solid #e1e5ea;background:#fff;border-radius:999px;padding:5px 8px;cursor:pointer;font-size:17px}.story-reaction small{font-size:11px;color:#667085}.story-reaction.active{box-shadow:0 0 0 2px #09a9e9 inset}.member-name{font-weight:700}.member-level-emoji{font-size:.9em}
.msg-tools{display:inline-block;margin-left:6px}.msg-tools summary{display:inline-block;cursor:pointer;color:#667085;font-weight:800}.msg-tools form{display:flex;gap:5px;margin-top:5px;align-items:center}.msg-tools input{width:220px;margin:0}.msg-tools .btn{white-space:nowrap}
.login-layout{width:min(1000px,calc(100% - 24px));margin:42px auto;display:grid;grid-template-columns:1.25fr .85fr;gap:22px;align-items:stretch}.login-intro{display:flex;flex-direction:column;justify-content:center}.login-intro img{width:100%;max-height:430px;object-fit:cover;border-radius:14px}.login-empty{height:300px;border-radius:14px;background:#e5e7eb;display:flex;align-items:center;justify-content:center;font-size:64px;color:#8b9299}.login-card{max-width:none;text-align:left;padding:28px}.login-card h1{margin-top:0}.login-btn{width:100%;margin-top:10px!important}.game-menu{max-width:800px;margin:24px auto}.game-list{display:grid;gap:8px}.game-list-item{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #e5e7eb;border-radius:12px;color:inherit}.game-list-item:hover{background:#f6f8fa}.game-list-item>span{font-size:28px}.game-list-item small{margin-left:auto;color:#667085}.single-game{max-width:620px;margin:24px auto;text-align:center}.game-2048{grid-template-columns:repeat(4,1fr);background:#d5d8dc;padding:8px;border-radius:12px}.game-2048 .tile{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;font-size:25px;font-weight:900}@media(max-width:800px){.login-layout{grid-template-columns:1fr;margin:16px auto}.login-intro{order:2}.login-card{order:1}.login-intro img{max-height:280px}.login-empty{height:200px}.game-list-item{padding:12px}.game-list-item>span{font-size:24px}}
.post-extra{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;margin:8px 0}.post-meta{display:flex;gap:10px;flex-wrap:wrap;color:#667085;font-size:13px;margin-top:6px}.post-meta a{color:#087ea4}@media(max-width:800px){.post-extra{grid-template-columns:1fr}}
.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.photo-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}.photo-folders{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:800px){.photo-grid{grid-template-columns:repeat(3,1fr)}}

/* Latest social features */
.icon-action{display:inline-flex!important;align-items:center;justify-content:center;gap:3px;padding:5px 7px;border:0;background:transparent;color:inherit;text-decoration:none;font-size:15px;cursor:pointer;border-radius:8px;line-height:1.2}.icon-action:hover{background:#f1f3f5}.compact-actions{display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:nowrap!important}.compact-actions form{display:inline-flex!important;margin:0!important}.compact-actions .icon-action{white-space:nowrap!important}.tag-picker{position:relative;min-width:0}.tag-results{position:absolute;left:0;right:0;top:100%;z-index:30;background:#fff;border:1px solid #ddd;border-radius:9px;box-shadow:0 8px 20px rgba(0,0,0,.12);overflow:hidden}.tag-result{display:block;width:100%;padding:9px 10px;border:0;background:#fff;text-align:left;cursor:pointer}.tag-result:hover{background:#f5f7f9}.tag-chosen{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.tag-chip{background:#eef6ff;border-radius:999px;padding:4px 8px;font-size:12px;cursor:pointer}.reply-preview{margin:6px 0;padding:6px 9px;border-left:3px solid #08aeea;background:#f4f7f9;border-radius:5px;font-size:12px}.inline-action{display:inline!important;margin:0!important}.link-btn{border:0;background:none;padding:0;margin:0 7px 0 0;color:#087ea4;cursor:pointer;font-size:12px}.reply-box{margin:8px 0;padding:8px 10px;background:#f3f6f8;border-radius:8px;font-size:13px}.reply-box button{float:right;border:0;background:none;cursor:pointer}.tag-picker input{width:100%}.post-item{overflow:visible}

/* Azerbaijani + emoji typography */
body,button,input,select,textarea{font-family:"Noto Sans","Segoe UI",Arial,sans-serif;}
.emoji,.icon-action,.notification-link,.member-level-emoji,.story-reaction{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Noto Sans",sans-serif;}
.profile-avatar-story{display:inline-block;border-radius:50%;padding:3px;background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);line-height:0}.profile-avatar-story .avatar{border-width:4px}.story-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.story-navigation .btn{min-width:100px}
.story-ring{display:inline-flex;padding:3px;border-radius:50%;background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);line-height:0}.story-ring .story-photo{border:3px solid #fff}.profile-avatar-story{display:inline-flex;border-radius:50%;padding:0;line-height:0}.profile-avatar-story.has-story{padding:4px;background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4)}.profile-avatar-story.has-story .avatar{border-width:4px}.profile-avatar-story:not(.has-story){pointer-events:none}

/* Profile mobile layout fix */
.profile-info-actions{padding:0 22px 22px;min-width:0}
.profile-identity h1{margin:0;font-size:34px;line-height:1.2;overflow-wrap:anywhere}
.profile-username{margin:6px 0 12px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-actions{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;width:100%;padding:2px 2px 6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.profile-actions>*{flex:0 0 auto;margin:0!important}
.profile-actions .btn{white-space:nowrap}
@media(max-width:800px){
  .profile-info-actions{padding:0 14px 16px}
  .profile-identity{text-align:left}
  .profile-identity h1{font-size:28px;line-height:1.18}
  .profile-username{margin:4px 0 10px}
  .profile-actions{gap:6px;padding-bottom:5px}
  .profile-actions .btn{padding:9px 12px;font-size:14px;border-radius:9px}
}


/* Final profile mobile/desktop responsive correction */
.profile-card{width:100%;max-width:100%;overflow:hidden!important;min-width:0}
.profilehead{position:relative;margin-top:-58px;padding:0 22px;height:116px;display:flex;align-items:flex-start;min-width:0;z-index:2}
.profile-avatar-story{flex:0 0 auto;display:inline-flex!important;align-items:center;justify-content:center}
.profile-info-actions{display:block!important;width:100%;max-width:100%;min-width:0;padding:0 22px 22px!important;overflow:hidden}
.profile-identity{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden}
.profile-identity h1{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;font-size:34px;line-height:1.18;overflow-wrap:anywhere;word-break:break-word}
.profile-username{display:block!important;width:100%!important;max-width:100%!important;margin:6px 0 12px!important;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:7px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 7px!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin}
.profile-actions>*{display:inline-flex!important;flex:0 0 auto!important;margin:0!important}
.profile-actions .btn{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap!important;width:auto!important;max-width:none!important}
@media(max-width:800px){
 .profile-card{border-radius:13px}
 .profilehead{margin-top:-48px;padding:0 14px;height:100px}
 .profile-avatar-story.has-story{padding:4px}
 .profile-avatar-story .avatar{width:108px;height:108px}
 .profile-info-actions{padding:0 14px 16px!important}
 .profile-identity h1{font-size:28px!important;line-height:1.18!important}
 .profile-username{font-size:15px!important;margin:5px 0 11px!important}
 .profile-actions{gap:6px!important;padding:2px 2px 7px!important}
 .profile-actions .btn{padding:8px 11px!important;font-size:14px!important;border-radius:9px!important}
}
@media(max-width:380px){
 .profilehead{padding:0 12px}
 .profile-info-actions{padding-left:12px!important;padding-right:12px!important}
 .profile-identity h1{font-size:25px!important}
 .profile-actions .btn{padding:8px 10px!important;font-size:13px!important}
}

/* Final responsive cleanup */
html{overflow-x:hidden}body{overflow-x:hidden}.wrap,.home-layout{min-width:0}.card{min-width:0}.post-item,.composer-card{overflow:visible}
.composer-tools{display:flex;align-items:center;gap:4px;margin:8px 0 6px;min-height:40px;overflow-x:auto;overflow-y:hidden;padding:2px 0;-webkit-overflow-scrolling:touch}.composer-tool{width:38px;height:38px;flex:0 0 38px;padding:0;border:0;border-radius:9px;background:transparent;display:inline-flex;align-items:center;justify-content:center;font-size:21px;cursor:pointer}.composer-tool:hover,.composer-tool:focus-visible{background:#f1f3f5;outline:none}.file-tool{position:relative;overflow:hidden}.visually-hidden-file{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;margin:0!important;padding:0!important}.composer-popovers{position:relative}.composer-panel{display:none;max-width:100%;margin:4px 0 8px}.composer-panel.open{display:block}.composer-panel input{margin-top:0}.visually-hidden-control{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.composer-card textarea{resize:vertical;min-height:74px}.composer-card .btn{margin-top:2px}.tag-picker{position:relative}.tag-results{top:calc(100% + 2px)}
.story-shell{width:min(980px,100%);margin:0 auto}.story-viewer{position:relative;background:#0b0c10;color:#fff;border-radius:18px;overflow:hidden;min-height:min(82vh,760px);display:flex;flex-direction:column}.story-progress{display:flex;gap:4px;padding:10px 12px 4px;position:absolute;top:0;left:0;right:0;z-index:5}.story-progress i{height:3px;flex:1;background:rgba(255,255,255,.3);border-radius:9px;overflow:hidden}.story-progress i span{display:block;height:100%;width:0;background:#fff}.story-progress i.done span{width:100%}.story-top{position:absolute;top:18px;left:12px;right:12px;z-index:5;display:flex;align-items:center;gap:9px}.story-top .avatar{width:40px;height:40px;border:2px solid #fff;flex:0 0 40px}.story-top-info{min-width:0;display:flex;flex-direction:column}.story-top-info b,.story-top-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-close{margin-left:auto;color:#fff;background:rgba(0,0,0,.4);border:0;border-radius:50%;width:38px;height:38px;font-size:21px;cursor:pointer}.story-media-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;padding:58px 58px 118px}.story-media{max-width:100%;max-height:calc(82vh - 120px);width:auto;height:auto;object-fit:contain;display:block;border-radius:10px}.story-nav{position:absolute;inset:0;display:flex;z-index:2}.story-nav button{width:50%;border:0;background:transparent;color:transparent;cursor:pointer}.story-caption{position:absolute;left:16px;right:16px;bottom:84px;z-index:4;text-align:center;text-shadow:0 1px 4px #000;font-size:15px;max-height:25%;overflow:auto}.story-bottom{position:absolute;left:12px;right:12px;bottom:12px;z-index:5;display:flex;align-items:center;gap:7px}.story-reactions{display:flex;gap:3px}.story-reaction{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:20px;min-width:36px;height:34px;cursor:pointer;font-size:17px}.story-reply{display:flex;flex:1;gap:6px}.story-reply input{margin:0;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:#fff;min-width:0}.story-reply input::placeholder{color:rgba(255,255,255,.75)}.story-reply button{border:0;border-radius:10px;padding:0 12px;background:#fff;color:#111;font-weight:700}.story-counts{position:absolute;left:16px;bottom:54px;font-size:12px;color:rgba(255,255,255,.8);z-index:5}.story-mobile-card{margin-bottom:0}
@media(max-width:800px){.wrap{width:calc(100% - 12px);margin:12px auto}.home-layout{width:calc(100% - 12px);margin:12px auto;grid-template-columns:minmax(0,1fr)}.card{padding:13px;border-radius:13px}.home-layout main,.home-sidebar{min-width:0}.post-head{min-width:0}.post-head>div{min-width:0}.post-head b{overflow-wrap:anywhere}.composer-tools{margin-top:7px}.composer-tool{width:36px;height:36px;flex-basis:36px;font-size:20px}.story-shell{width:100%}.story-viewer{border-radius:12px;min-height:calc(100dvh - 82px)}.story-media-wrap{padding:55px 34px 112px}.story-media{max-height:calc(100dvh - 150px);max-width:100%}.story-caption{bottom:82px}.story-reactions{gap:2px}.story-reaction{min-width:32px;width:32px;padding:0;font-size:15px}.story-bottom{gap:4px}.story-reply button{padding:0 9px}.profile-card .profile-actions{overflow-x:auto;flex-wrap:nowrap}.profile-card .profile-actions .btn{font-size:13px;padding:8px 10px}.profile-card .profile-identity h1{font-size:26px}}
@media(max-width:380px){.story-media-wrap{padding-left:26px;padding-right:26px}.story-reply input{font-size:13px}.story-reply button{font-size:12px}.profile-card .profile-actions .btn{font-size:12px;padding:7px 9px}}
.story-bottom form{margin:0}.story-reactions form{display:flex}.story-reply input:disabled,.story-reply button:disabled{opacity:.55;cursor:not-allowed}.story-media-wrap video.story-media{background:#000}.composer-tools::-webkit-scrollbar{height:3px}.composer-tools::-webkit-scrollbar-thumb{background:#cbd1d8;border-radius:4px}


/* Final requested corrections */
.login-intro img{width:100%;height:auto;max-height:none;object-fit:contain;display:block;border-radius:14px}
.story{flex:0 0 82px;min-width:82px;max-width:82px;overflow:visible}
.story-ring{width:74px;height:74px;padding:3px;display:inline-flex;align-items:center;justify-content:center}
.story-photo{width:68px!important;height:68px!important;border-radius:50%;object-fit:cover!important}
.story-name{width:82px;margin-top:5px}
.profilehead{height:110px}
.profile-info-actions{position:relative}
.profile-edit-row{display:flex;align-items:center;margin:0 0 10px;width:100%}
.profile-edit-row .profile-edit-btn{width:auto;min-width:170px;text-align:center}
.story-counts{left:14px;right:14px;bottom:58px;text-align:left;line-height:20px;white-space:nowrap}
.story-bottom{bottom:10px}
.story-reactions{flex:0 0 auto;align-items:center}
.story-reaction{display:flex;align-items:center;justify-content:center}
.composer-picker{display:none;flex-wrap:wrap;gap:7px;padding:9px;background:#fff;border:1px solid #d9dee5;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.10);max-width:100%}
.composer-picker.open{display:flex}
.picker-option{border:1px solid #e2e6eb;background:#f8fafb;border-radius:10px;padding:8px 11px;font:inherit;cursor:pointer;white-space:nowrap}
.picker-option:hover,.picker-option:focus{background:#eef8fc;border-color:#09a9e9;outline:none}
@media(max-width:800px){
  .login-intro img{width:100%;height:auto;max-height:none;object-fit:contain}
  .story{flex-basis:82px;min-width:82px;max-width:82px}
  .story-ring{width:74px;height:74px}
  .story-photo{width:68px!important;height:68px!important}
  .profilehead{height:100px;margin-top:-48px;padding:0 14px}
  .profile-edit-row{margin-bottom:9px}
  .profile-edit-row .profile-edit-btn{min-width:0;width:100%}
  .story-counts{bottom:58px;left:12px;right:12px;font-size:12px}
  .story-bottom{left:10px;right:10px;gap:5px}
  .story-reaction{min-width:34px;width:34px;height:34px}
}
@media(max-width:380px){
  .story{flex-basis:80px;min-width:80px;max-width:80px}
  .story-ring{width:72px;height:72px}
  .story-photo{width:66px!important;height:66px!important}
  .story-name{width:80px}
  .profilehead{height:128px}
}

/* Latest requested UI updates */
.top .desktop-nav{gap:1px!important;margin-left:auto!important}.top .desktop-nav a.emoji{font-size:25px!important;padding:5px 5px!important}.profile-menu{margin-left:1px!important}.storybar{gap:7px;padding:0 0 3px;align-items:flex-start}.stories-card{padding-top:12px;padding-bottom:10px}.story{flex-basis:76px;min-width:76px;max-width:76px}.story-ring{width:72px;height:72px;padding:3px;border:3px solid #e6248a;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff}.story-seen .story-ring{border-color:#aeb4bb!important}.story-photo{width:66px!important;height:66px!important;border-radius:50%;object-fit:cover!important}.story-name{width:76px;margin-top:4px;font-size:11px}.add-story-ring{border:3px dashed #cbd1d8!important;background:#f8fafb!important}.add-story-ring span{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#09a9e9;color:#fff;font-size:32px;line-height:1;font-weight:400}.story-empty{padding-top:22px}.composer-action-row{display:flex;align-items:center;gap:8px;width:100%;margin-top:7px}.composer-action-row .composer-tools{flex:1;min-width:0;margin:0}.composer-submit-row{display:flex;align-items:center;margin:0}.composer-submit-row .btn{margin:0;white-space:nowrap}.post-image{width:100%;height:auto;max-height:75vh;object-fit:contain;background:#f0f2f5}.story-play-toggle{margin-left:4px;border:0;background:rgba(0,0,0,.4);color:#fff;border-radius:50%;width:38px;height:38px;font-size:18px;cursor:pointer}.story-counts{bottom:60px}.more-link{display:block;text-align:center;margin-top:9px;font-weight:800}.leaderboard-tabs{display:flex;gap:8px;margin-bottom:18px}.leaderboard-head h1{margin-bottom:3px}.leader-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eee}.leader-rank{width:28px;text-align:center;font-weight:900}.leader-row .avatar{width:42px;height:42px;border:2px solid #fff;flex:0 0 42px}.leader-row>a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-time{margin-left:auto;font-weight:800;white-space:nowrap}.monthly-leaderboard{margin-top:28px;padding-top:18px;border-top:1px solid #eee}
@media(max-width:800px){.top .desktop-nav a.emoji{font-size:24px!important;padding:4px 3px!important}.top .desktop-nav{gap:0!important}.top .brand{max-width:43%!important}.storybar{gap:5px}.story{flex-basis:74px;min-width:74px;max-width:74px}.story-ring{width:70px;height:70px}.story-photo{width:64px!important;height:64px!important}.story-name{width:74px}.composer-action-row{gap:3px}.composer-tool{width:34px;height:34px;flex-basis:34px;font-size:20px}.composer-submit-row .btn{padding:8px 12px;font-size:14px}.post-image{max-height:72vh}.leader-row{gap:8px}.leader-row .avatar{width:38px;height:38px;flex-basis:38px}.leader-time{font-size:12px}.leaderboard-tabs{flex-wrap:wrap}}
@media(max-width:380px){.top .brand{max-width:40%!important}.top .desktop-nav a.emoji{font-size:22px!important}.story{flex-basis:72px;min-width:72px;max-width:72px}.story-ring{width:68px;height:68px}.story-photo{width:62px!important;height:62px!important}.story-name{width:72px;font-size:10px}.composer-tool{width:32px;height:32px;flex-basis:32px;font-size:18px}.composer-submit-row .btn{padding:7px 9px;font-size:13px}}

/* Composer/share row final */
.composer-action-row{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.composer-action-row .composer-tools{flex:1 1 auto!important;min-width:0!important}.composer-submit{flex:0 0 auto!important;margin:0!important;white-space:nowrap!important}.composer-popovers{clear:both}.storybar{scroll-behavior:smooth}.story-seen .story-ring{filter:grayscale(.75);border-color:#aeb4bb!important}.story-play-toggle{z-index:7}.story-counts{pointer-events:none}
@media(max-width:800px){.composer-action-row{gap:2px!important}.composer-action-row .composer-tools{gap:1px!important}.composer-submit{padding:7px 10px!important;font-size:13px!important}.composer-tool{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:19px!important}}

/* Facebook-inspired homepage UI requested */
.top{background:#fff;position:sticky;top:0;z-index:50;height:64px;padding:0 max(12px,calc((100% - 1100px)/2));}
.top .brand{margin-right:auto;min-width:0;display:flex;align-items:center}.top .brand img{width:150px!important;height:auto!important;max-height:46px!important;object-fit:contain!important}
.top .desktop-nav{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;flex-wrap:nowrap}.top .header-icon{font-size:24px!important;line-height:1;padding:7px!important;color:#20242a!important;border-radius:50%;display:flex;align-items:center;justify-content:center;width:42px;height:42px}.top .header-icon:hover{background:#f0f2f5}.profile-menu{position:relative;margin-left:2px}.profile-trigger{width:42px;height:42px;padding:2px;border:1px solid #e1e5ea;border-radius:50%;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}.top-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}.profile-dropdown{display:none;position:absolute;right:0;top:49px;width:175px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:6px;box-shadow:0 8px 25px rgba(0,0,0,.14);z-index:100}.profile-dropdown.open{display:block}.profile-dropdown a{display:block;padding:10px 12px;border-radius:8px;color:#20242a;font-weight:700}.profile-dropdown a:hover{background:#f3f5f8}
.facebook-stories-card{padding:10px 12px;overflow:hidden}.facebook-storybar{gap:8px;padding:0;overflow-x:auto;align-items:stretch}.facebook-storybar .story-card{position:relative;display:block;flex:0 0 112px;min-width:112px;max-width:112px;height:190px;border-radius:12px;overflow:hidden;background:#dfe3e8;text-align:left;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.12)}.story-card-media,.story-card-media img,.story-card-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.story-card-media:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,.05) 45%,rgba(0,0,0,.72))}.story-card-avatar{position:absolute;left:9px;top:9px;width:36px;height:36px;border-radius:50%;padding:2px;background:#fff;border:3px solid #168cf0;z-index:2}.story-card-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.story-card .story-name{position:absolute;left:9px;right:7px;bottom:9px;width:auto;margin:0;color:#fff;font-size:13px;font-weight:800;line-height:1.15;white-space:normal;overflow:hidden;text-overflow:ellipsis;z-index:2;text-shadow:0 1px 2px #000}.add-story-card .story-card-media:after{background:linear-gradient(to bottom,rgba(0,0,0,.05),rgba(0,0,0,.45))}.add-story-card .story-name{bottom:8px}.story-add-plus{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);z-index:3;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#168cf0;border:4px solid #fff;color:#fff;font-size:28px;line-height:1}.home-composer-trigger{display:flex;align-items:center;gap:10px;padding:11px 14px;color:#606770;cursor:pointer}.home-composer-trigger:hover{background:#f7f8fa}.home-composer-trigger .avatar{width:40px;height:40px;border:0}.home-composer-trigger>span:nth-child(2){flex:1;background:#f0f2f5;border-radius:22px;padding:9px 14px;font-size:16px}.composer-photo-icon{font-size:25px;color:#45bd62}
.facebook-post{padding:14px 14px 7px}.facebook-post .post-head{padding-bottom:5px}.post-more{border:0;background:transparent;color:#667085;font-size:26px;line-height:1;width:32px;height:32px;border-radius:50%;cursor:pointer}.post-more:hover{background:#f0f2f5}.post-engagement{display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:5px 2px;border-bottom:1px solid #e4e6eb}.reaction-summary{border:0;background:transparent;padding:2px 4px;display:flex;align-items:center;gap:5px;color:#65676b;cursor:pointer}.reaction-bubbles{display:flex;align-items:center}.reaction-bubbles i{font-style:normal;width:21px;height:21px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;margin-right:-4px}.reaction-count{font-size:13px}.engagement-right{color:#65676b;font-size:13px}.facebook-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding-top:3px}.facebook-actions form{margin:0}.fb-action{width:100%;border:0;background:transparent;color:#65676b;font-weight:700;padding:8px 5px;border-radius:7px;cursor:pointer;text-align:center;font:inherit}.fb-action:hover{background:#f0f2f5}.reaction-modal{display:none;position:fixed;inset:0;z-index:1000}.reaction-modal.open{display:block}.reaction-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}.reaction-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100% - 28px));max-height:min(650px,calc(100vh - 40px));overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 18px 60px rgba(0,0,0,.28);display:flex;flex-direction:column}.reaction-dialog h3{margin:0;padding:18px 20px 12px;font-size:19px}.reaction-close{position:absolute;right:12px;top:10px;border:0;background:#f0f2f5;border-radius:50%;width:34px;height:34px;font-size:25px;line-height:1;cursor:pointer}.reaction-tabs{display:flex;gap:4px;overflow-x:auto;padding:0 14px 10px;border-bottom:1px solid #e4e6eb}.reaction-tab{border:0;background:transparent;border-bottom:3px solid transparent;padding:8px 9px;color:#65676b;cursor:pointer;font-size:15px;white-space:nowrap}.reaction-tab.active{color:#1877f2;border-bottom-color:#1877f2}.reaction-users{overflow:auto;padding:6px 18px 12px}.reaction-user{display:flex;align-items:center;gap:10px;padding:9px 2px}.reaction-user .avatar{width:40px;height:40px;border:0;flex:0 0 40px}.reaction-user span{flex:1;font-weight:700}.reaction-user i{font-style:normal;font-size:19px}.reaction-loading,.reaction-empty{padding:25px;text-align:center}.reaction-more{margin:0 18px 16px;padding:10px;border:0;border-radius:9px;background:#f0f2f5;font-weight:700;cursor:pointer}
.create-post-page{width:min(700px,calc(100% - 24px));margin:25px auto}.create-post-card{padding:0;overflow:hidden}.create-post-head{height:62px;border-bottom:1px solid #e4e6eb;display:flex;align-items:center;justify-content:center;position:relative;padding:0 15px}.create-post-head h2{font-size:19px;margin:0}.create-post-head .btn{position:absolute;right:14px;top:13px;padding:8px 13px}.create-close{position:absolute;left:14px;top:12px;width:38px;height:38px;border-radius:50%;background:#f0f2f5;color:#333;display:flex;align-items:center;justify-content:center;font-size:29px;line-height:1}.create-author{display:flex;align-items:center;gap:10px;padding:16px 18px 8px}.create-author .avatar{width:48px;height:48px;border:0}.create-author select{width:auto;margin-top:3px;padding:3px 7px;border-radius:8px;font-size:12px}.create-text{border:0!important;outline:0;resize:none;padding:10px 20px!important;min-height:250px;font-size:20px;background:#fff!important}.create-tools{border:1px solid #e4e6eb;border-radius:10px;margin:10px 16px 16px;padding:7px;display:flex;gap:5px;align-items:center;overflow-x:auto}.create-tool{position:relative;flex:1;min-width:90px;border:0;background:transparent;border-radius:8px;padding:9px 6px;display:flex;gap:7px;align-items:center;justify-content:center;font-size:21px;cursor:pointer;white-space:nowrap}.create-tool span{font-size:13px;font-weight:700;color:#444}.create-tool:hover{background:#f0f2f5}.create-tool input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}.create-panel{display:none;margin:0 16px 12px;padding:10px;background:#f0f2f5;border-radius:10px}.create-panel.open{display:flex;gap:6px;flex-wrap:wrap}.create-panel button{border:1px solid #d5dae1;background:#fff;border-radius:9px;padding:8px 10px;cursor:pointer}.create-panel input{margin:0}.create-panel small{padding:8px}
@media(max-width:800px){.top{height:58px;padding:0 9px}.top .brand img{width:112px!important;max-height:36px!important}.top .desktop-nav{gap:1px}.top .header-icon{width:34px;height:34px;font-size:20px!important;padding:3px!important}.profile-trigger{width:34px;height:34px}.top-avatar{width:29px;height:29px}.profile-dropdown{top:41px;width:160px}.facebook-stories-card{padding:8px}.facebook-storybar .story-card{flex-basis:105px;min-width:105px;max-width:105px;height:178px}.story-card-avatar{width:34px;height:34px}.story-card .story-name{font-size:12px}.home-composer-trigger{padding:9px}.home-composer-trigger .avatar{width:38px;height:38px}.facebook-post{padding:12px 10px 5px}.create-post-page{width:100%;margin:0}.create-post-card{border-radius:0;min-height:calc(100vh - 58px);margin:0}.create-text{min-height:300px}.create-tools{margin:10px 10px 16px}.create-tool{min-width:82px;flex-direction:column;gap:2px}.reaction-dialog{width:calc(100% - 18px)}}
.reaction-open{position:relative}.reaction-picker{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:6px 8px;background:#fff;border:1px solid #e4e6eb;border-radius:24px;box-shadow:0 5px 20px rgba(0,0,0,.16);z-index:20}.reaction-picker button{border:0;background:transparent;width:34px;height:34px;border-radius:50%;font-size:21px;cursor:pointer;transition:transform .12s}.reaction-picker button:hover{background:#f0f2f5;transform:scale(1.2)}
/* Post media gallery + consistent profile/feed reactions */
.post-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:8px 0;border-radius:10px;overflow:hidden;background:#f0f2f5}.post-media-grid.count-1{grid-template-columns:1fr}.post-media-link{display:block;min-width:0;aspect-ratio:1/1;overflow:hidden;background:#111}.post-media-grid.count-1 .post-media-link{aspect-ratio:auto;max-height:620px}.post-media-link img,.post-media-link video{display:block;width:100%;height:100%;object-fit:cover}.post-media-grid.count-3 .post-media-link:first-child{grid-row:span 2}.post-media-grid.count-3 .post-media-link:first-child{aspect-ratio:auto}.post-media-grid.count-4 .post-media-link{aspect-ratio:1/1}.post-engagement{position:relative}.reaction-picker{z-index:100}.media-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 16px 12px}.media-preview-item{aspect-ratio:1;border-radius:9px;overflow:hidden;background:#eee}.media-preview-item img,.media-preview-item video{width:100%;height:100%;object-fit:cover;display:block}.reaction-summary{min-height:32px}.profile-dropdown a{font-size:15px!important;line-height:1.25!important}.profile-trigger{display:flex!important;align-items:center!important;justify-content:center!important}.top .header-icon{font-size:24px!important}
@media(max-width:800px){.top .desktop-nav a.emoji{font-size:20px!important}.top .header-icon{font-size:20px!important}.media-preview{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:10px;margin-right:10px}.profile-dropdown a{font-size:14px!important;line-height:1.3!important}.post-media-grid.count-3 .post-media-link:first-child{aspect-ratio:auto}}

/* New post composer + friends/profile menu polish */
.create-author{position:relative;display:flex;align-items:center;gap:10px}.create-author-name{min-width:0;flex:1}.create-privacy{margin-left:auto;flex:0 0 auto}.create-author select{margin:0!important;padding:8px 34px 8px 11px!important;border:1px solid #d9dee5!important;border-radius:18px!important;background:#fff!important;font-size:15px!important;min-width:145px!important}@media(max-width:800px){.create-author{padding:16px 14px 8px}.create-privacy{margin-left:auto}.create-author select{min-width:0!important;width:auto!important;max-width:175px!important;font-size:14px!important;padding:7px 28px 7px 9px!important}.create-author .avatar{width:48px;height:48px}}

/* Requested social features */
.media-preview-item{position:relative}.media-preview-fallback{width:100%;height:100%;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px;box-sizing:border-box;background:#eef1f4;color:#667085;font-size:13px;line-height:1.35;overflow:hidden}.media-preview-fallback small{font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-preview-fallback span{font-size:11px;margin-top:3px}.media-remove{position:absolute;right:5px;top:5px;width:28px;height:28px;border:0;border-radius:50%;background:#fff;color:#111;font-size:20px;line-height:28px;cursor:pointer;box-shadow:0 1px 5px #0003}.post-tags{font-size:13px;margin:5px 0}.post-tags a{font-weight:700;margin-right:4px}.post-poll{margin:12px 0;padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fafbfc}.poll-option{width:100%;display:flex;justify-content:space-between;gap:10px;padding:10px;margin-top:7px;border:1px solid #d5dae1;background:#fff;border-radius:9px;cursor:pointer;text-align:left}.poll-option.selected{border-color:#08aeea;background:#eefaff}.post-detail-media{padding:10px 0;border-top:1px solid #eee}.post-detail-media img,.post-detail-media video{display:block;width:100%;max-height:80vh;object-fit:contain;border-radius:12px;background:#111}.media-detail-actions{display:flex;gap:8px;margin-top:7px}.comment-meta{display:flex;align-items:center;gap:5px;margin-top:3px}.reply-form{display:none;margin:6px 0 0 20px}.reply-form.open{display:block}.comment-reply{margin-left:28px}.note-avatar{width:34px!important;height:34px!important;border-width:1px!important;vertical-align:middle;margin-right:7px}.tag-request{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid #eee}.admin-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.share-original{background:#f5f7f9;border-radius:10px;padding:12px;margin-bottom:14px}.poll-panel{display:block}.poll-panel input{margin:4px 0}.post-more{border:0;background:none;color:#667085;cursor:pointer;font-size:18px}.post-item .post-head>span{margin-left:auto}

/* Final responsive/post-menu fixes */
.post-head{position:relative;min-width:0}
.post-menu{position:relative;margin-left:auto;flex:0 0 auto}
.post-menu>summary{list-style:none}
.post-menu>summary::-webkit-details-marker{display:none}
.post-more{display:flex!important;align-items:center;justify-content:center;width:38px!important;height:38px!important;border-radius:50%!important;font-size:27px!important;line-height:1!important;background:transparent!important}
.post-more:hover,.post-menu[open]>summary{background:#f0f2f5!important}
.post-menu-popover{position:absolute;right:0;top:43px;width:180px;background:#fff;border:1px solid #e1e5ea;border-radius:12px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.18);z-index:100}
.post-menu-popover a,.post-menu-popover button{display:block;width:100%;border:0;background:transparent;text-align:left;color:#20242a;padding:10px 11px;border-radius:8px;font:inherit;cursor:pointer;text-decoration:none}
.post-menu-popover a:hover,.post-menu-popover button:hover{background:#f2f4f7}
.post-menu-popover form{margin:0}
.post-detail-media-list{display:block}
.detail-media-view{display:block}
.post-detail-media{padding:12px 0;border-top:1px solid #eee}
.post-detail-media:first-child{border-top:0}
.post-detail-media img,.post-detail-media video{display:block;width:100%;max-width:100%;max-height:80vh;object-fit:contain;border-radius:12px;background:#111}
.media-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:7px}
.system-message-person{display:flex!important;flex-direction:row!important;text-align:left!important}
.system-message-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#eef8fc;flex:0 0 42px;font-size:21px}
.system-message-icon.large{width:48px;height:48px;flex-basis:48px;font-size:24px}
.system-message-person span:last-child{min-width:0}
.system-message-person small{display:block}
.system-message-body{font-size:16px;line-height:1.7;background:#f5f7f9;border-radius:12px;padding:16px;white-space:normal;overflow-wrap:anywhere}
.system-message-no-reply{margin-top:12px;padding:11px 13px;background:#fff8e8;border-radius:10px;color:#7a5a00;font-size:13px}
@media(max-width:800px){
 .post-head{gap:8px}
 .post-head>div{min-width:0;flex:1}
 .post-head>div a,.post-head>div span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .post-more{width:36px!important;height:36px!important}
 .post-menu-popover{right:0;top:40px;width:min(190px,calc(100vw - 34px))}
 .post-menu-popover a,.post-menu-popover button{padding:11px 12px;font-size:14px}
 .post-detail-media img,.post-detail-media video{max-height:72vh}
 .media-detail-actions .fb-action{padding:10px 4px;font-size:14px}
 .system-message-body{font-size:15px;padding:13px}
}


/* v7 fixes: system notifications, desktop multi-photo detail and profile more menu */
.system-notification-link{display:flex!important;align-items:center!important;gap:12px!important;width:100%;padding:13px 14px!important;border-radius:12px!important;background:#eef8fc!important;color:#20242a!important;box-sizing:border-box}
.system-notification-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}
.system-notification-copy>b{font-size:16px;line-height:1.25;color:#087fae}
.system-notification-copy .notification-preview{margin:0!important;font-size:14px;color:#667085;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.system-notification-arrow{font-size:28px;line-height:1;color:#8b96a3;flex:0 0 auto}
.post-detail-media-list{width:100%;display:block}
.post-detail-media{position:relative;width:100%;padding:14px 0;border-top:1px solid #eee}

.post-detail-media img,.post-detail-media video{display:block;width:auto;max-width:100%;height:auto;max-height:82vh;object-fit:contain;border-radius:12px;background:transparent;margin:0 auto}
.detail-media-number{font-size:12px;color:#667085;margin:0 0 7px;font-weight:700}
.media-load-error{background:#f2f4f7!important;min-height:120px;display:flex!important;align-items:center;justify-content:center;color:#667085}
.profile-more-menu{z-index:2147483647!important}
@media(max-width:800px){
 .system-notification-link{padding:11px 10px!important;gap:9px!important}
 .system-notification-copy>b{font-size:15px}
 .system-notification-copy .notification-preview{font-size:13px}
 .system-notification-arrow{font-size:24px}
 .post-detail-media img,.post-detail-media video{max-height:74vh}
}

.system-message-thread{max-height:560px;overflow:auto;padding:2px 2px 8px}.system-message-item{margin:0 0 12px}.system-message-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.system-message-item-head b{color:#0789c9}.system-message-item-head small{white-space:nowrap}.system-message-item .system-message-body{background:#f5f7f9}.post-media-link{cursor:pointer}
@media(max-width:800px){.system-message-thread{max-height:calc(100vh - 285px)}.system-message-item-head{align-items:flex-start;flex-direction:column;gap:2px}}

/* v9 media/poll/cover fixes */
.post-media-grid.has-more-media .media-more-tile{position:relative}
.media-more-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.42);color:#fff;font-size:38px;font-weight:800;text-shadow:0 2px 8px rgba(0,0,0,.45);pointer-events:none}
.post-poll.poll-collapsed{width:100%;max-width:100%;overflow:hidden}
.poll-collapsed>summary{align-items:flex-start;flex-wrap:wrap}
.poll-collapsed>summary b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.45}
.poll-panel{display:none!important}
.poll-panel.open{display:block!important}
.profile-cover-wrap{overflow:hidden;background-color:#e9eef3}
@media(max-width:800px){.media-more-overlay{font-size:30px}.poll-collapsed>summary{gap:7px}.poll-collapsed>summary b{flex:1 1 100%;order:3}.poll-open-hint{margin-left:auto}}

.profile-cover-wrap{position:relative;overflow:hidden;background:#e9eef3 center/cover no-repeat}
.profile-cover-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.profile-cover-wrap .cover-change-form{z-index:6}
#tagResults{display:flex;flex-direction:column;gap:4px;margin-top:6px}
#tagResults button{display:block;width:100%;text-align:left;border:1px solid #d8dee5;background:#fff;border-radius:9px;padding:9px 10px;cursor:pointer;font-weight:700}
#tagResults button:hover{background:#f5f7f9}

/* V13: clean poll card and stable media presentation */
.post-poll.poll-collapsed{padding:0!important;overflow:hidden;background:#fff!important}
.post-poll.poll-collapsed>summary.poll-summary{display:flex!important;align-items:center!important;gap:11px!important;padding:13px 14px!important;list-style:none!important;cursor:pointer!important}
.post-poll.poll-collapsed>summary.poll-summary::-webkit-details-marker{display:none!important}
.poll-icon{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#eef8fc;display:flex;align-items:center;justify-content:center;font-size:21px}
.poll-summary-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.poll-summary-text strong{font-size:13px;color:#0789c9;line-height:1.2}
.poll-question{font-size:16px;font-weight:700;color:#20242a;line-height:1.35;overflow-wrap:anywhere}
.poll-summary-text small{font-size:12px;color:#7b8490;line-height:1.25}
.poll-chevron{font-size:29px;line-height:1;color:#7b8490;transform:translateY(-1px)}
.post-poll[open] .poll-chevron{transform:rotate(90deg)}
.poll-details{padding:0 14px 13px!important}
.poll-total{display:block;margin-top:9px}
.create-panel[hidden]{display:none!important}
@media(max-width:800px){.poll-summary-text .poll-question{font-size:15px}.post-poll.poll-collapsed>summary.poll-summary{padding:12px!important}.poll-icon{width:36px;height:36px;flex-basis:36px}}


/* Photo detail + friend suggestions cleanup */
.post-detail-media-list{background:transparent!important}
.post-detail-media{background:transparent!important}
.suggest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:18px;align-items:start}
.suggest-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;min-width:0;padding:8px 6px 12px}
.suggest-item>a:first-child{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;width:100%;color:inherit;text-decoration:none}
.suggest-item>a:first-child .avatar{width:100px;height:100px;flex:0 0 100px;border:3px solid #fff;box-shadow:0 1px 6px rgba(0,0,0,.12)}
.suggest-item>a:first-child b{display:block;width:100%;font-size:15px;line-height:1.25;overflow-wrap:anywhere;word-break:break-word}
.suggest-item form{width:100%;display:flex;justify-content:center;margin-top:8px}
.suggest-item form .btn{white-space:nowrap;padding:8px 12px;font-size:13px}
@media(max-width:800px){.suggest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.suggest-item>a:first-child .avatar{width:84px;height:84px;flex-basis:84px}.suggest-item>a:first-child b{font-size:14px}.suggest-item form .btn{font-size:12px;padding:7px 9px}}

/* Friend suggestions: one horizontal row with horizontal scrolling */
.suggest-grid{display:flex!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;align-items:flex-start!important;padding:4px 2px 10px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.suggest-item{flex:0 0 145px!important;width:145px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important;padding:6px 4px 10px!important;scroll-snap-align:start}
.suggest-item>a:first-child{width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;color:inherit!important;min-width:0!important}
.suggest-item>a:first-child .avatar{width:88px!important;height:88px!important;flex:0 0 88px!important}
.suggest-item>a:first-child b{display:block!important;width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:14px!important;line-height:1.25!important}
.suggest-item form{width:100%!important;display:flex!important;justify-content:center!important;margin-top:8px!important}
.suggest-item form .btn,.suggest-friend-status{width:100%!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important;padding:7px 8px!important;box-sizing:border-box!important}
.suggest-friend-status{display:block;border-radius:9px;background:#eef2f6;color:#667085;font-weight:700;line-height:1.35}
.friend-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.friend-row>a:first-child{display:flex;align-items:center;gap:12px;min-width:0;color:inherit}
.friend-row>a:first-child .avatar{flex:0 0 58px;width:58px;height:58px}
.friend-row>a:first-child>span{min-width:0;display:flex;flex-direction:column}
.friend-status{display:block;margin-top:2px}
@media(max-width:800px){.suggest-item{flex-basis:125px!important;width:125px!important}.suggest-item>a:first-child .avatar{width:78px!important;height:78px!important;flex-basis:78px!important}.suggest-item>a:first-child b{font-size:13px!important}.friend-row{align-items:flex-start}}

/* =========================================================
   MeetingPart 2.0 — visual cleanup / unified design layer
   Added without removing existing functional styles.
   ========================================================= */
:root{
  --mp-primary:#08a9e8;
  --mp-primary-dark:#0789c9;
  --mp-pink:#e6248a;
  --mp-text:#18202a;
  --mp-muted:#667085;
  --mp-bg:#f5f7fa;
  --mp-card:#fff;
  --mp-border:#e5e7eb;
  --mp-soft:#eef8fc;
  --mp-radius:16px;
  --mp-shadow:0 4px 18px rgba(16,24,40,.06);
}
html{background:var(--mp-bg)}
body{background:var(--mp-bg);color:var(--mp-text);letter-spacing:-.01em}
.top{height:68px!important;background:rgba(255,255,255,.96)!important;border-bottom:1px solid rgba(229,231,235,.9)!important;box-shadow:0 2px 14px rgba(16,24,40,.05)!important;backdrop-filter:blur(12px)}
.top .brand img{filter:none!important}
.wrap,.home-layout{margin-top:18px}
.card{border:1px solid var(--mp-border);border-radius:var(--mp-radius);box-shadow:var(--mp-shadow);padding:17px;transition:box-shadow .18s ease,transform .18s ease}
.card:hover{box-shadow:0 7px 24px rgba(16,24,40,.075)}
.btn{background:var(--mp-primary);border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.08);transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
.btn:hover{filter:brightness(.97);transform:translateY(-1px);box-shadow:0 4px 10px rgba(8,169,232,.18)}
.btn.gray{background:#eef1f4;color:#344054}
.btn.pink{background:var(--mp-pink)}
input,select,textarea,.input{border-color:#d8dee6;border-radius:11px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
input:focus,select:focus,textarea:focus,.input:focus{border-color:var(--mp-primary);box-shadow:0 0 0 3px rgba(8,169,232,.12)}

/* Header icons: consistent touch targets */
.top .desktop-nav{gap:6px!important}
.top .desktop-nav .header-icon{width:42px;height:42px;border-radius:12px;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;transition:background .15s ease,transform .15s ease}
.top .desktop-nav .header-icon:hover{background:#f0f7fa;transform:translateY(-1px)}
.profile-trigger{border:1px solid #dfe4ea!important;box-shadow:0 1px 3px rgba(16,24,40,.06)}

/* Stories */
.facebook-stories-card{padding:10px!important}
.facebook-storybar{gap:9px!important}
.facebook-storybar .story-card{border-radius:14px!important;box-shadow:0 2px 8px rgba(16,24,40,.10)!important;transition:transform .16s ease,box-shadow .16s ease}
.facebook-storybar .story-card:hover{transform:translateY(-2px);box-shadow:0 7px 16px rgba(16,24,40,.14)!important}
.story-card-avatar{border-color:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.18)}

/* Composer */
.home-composer-trigger{border:1px solid var(--mp-border);box-shadow:var(--mp-shadow)!important;margin-bottom:14px!important}
.home-composer-trigger>span:nth-child(2){background:#f3f5f7!important;color:#7a8491!important;transition:background .15s ease}
.home-composer-trigger:hover>span:nth-child(2){background:#edf1f4!important}

/* Posts */
.facebook-post{padding:14px 14px 7px!important}
.facebook-post>p{font-size:15.5px;line-height:1.65;margin:10px 2px 8px}
.facebook-post .post-head{padding-bottom:6px}
.post-head .avatar{box-shadow:0 1px 4px rgba(16,24,40,.10)}
.post-more{transition:background .15s ease,transform .15s ease}
.post-more:hover{transform:scale(1.05)}
.post-media-grid{gap:4px!important;border-radius:13px!important;margin:10px 0!important}
.post-media-link{background:#eef1f4!important}
.post-media-link img,.post-media-link video{transition:transform .25s ease,filter .2s ease}
.post-media-link:hover img,.post-media-link:hover video{transform:scale(1.015);filter:brightness(.98)}
.post-media-grid.count-1 .post-media-link{background:#f0f2f5!important;max-height:none!important}
.post-media-grid.count-1 .post-media-link img,.post-media-grid.count-1 .post-media-link video{object-fit:contain!important;height:auto!important;max-height:720px!important}
.post-media-grid.count-1 .post-media-link.is-portrait{aspect-ratio:3/4!important}
.post-media-grid.count-1 .post-media-link.is-landscape{aspect-ratio:16/9!important}
.post-media-grid.count-1 .post-media-link.is-square{aspect-ratio:1/1!important}
.post-media-grid.count-1 .post-media-link.is-portrait img,.post-media-grid.count-1 .post-media-link.is-landscape img,.post-media-grid.count-1 .post-media-link.is-square img{width:100%!important;height:100%!important;object-fit:contain!important}
.post-engagement{border-bottom-color:#e4e7ec!important}
.facebook-actions{padding-top:4px!important}
.fb-action{min-height:40px!important;display:flex!important;align-items:center;justify-content:center;gap:5px;border-radius:9px!important;transition:background .15s ease,color .15s ease}
.fb-action:hover{background:#f2f5f7!important;color:#344054!important}
.fb-action.reacted{color:var(--mp-primary-dark)!important;background:#f0f9fd}

/* Poll */
.post-poll.poll-collapsed{border:1px solid #e3e9ee!important;border-radius:13px!important;background:#fbfdfe!important;margin:10px 0!important}
.poll-icon{background:#e9f7fc!important;color:var(--mp-primary-dark)}
.poll-option{border-radius:10px!important;border:1px solid #dfe5ea!important;background:#fff!important;transition:border-color .15s ease,background .15s ease}
.poll-option:hover,.poll-option.selected{border-color:#8ed7ef!important;background:#f1fbfe!important}

/* Comments */
.comment{background:#f2f4f7!important;border:1px solid #eaedf0;margin-top:9px!important}

/* Profile */
.profile-card{overflow:hidden!important}
.profile-card .cover,.profile-card .profile-cover-wrap{border-radius:0!important}
.profile-card .profilehead{padding-left:24px!important}
.profile-card .profile-info-actions{padding:18px 24px 22px!important}
.profile-card .profile-identity h1{font-weight:800!important;letter-spacing:-.03em}
.profile-card .profile-username{color:#7a8491!important}
.profile-card .profile-actions{gap:7px!important;border-top:1px solid #edf0f2;margin-top:14px;padding-top:13px!important}
.profile-card .profile-actions .btn{height:40px!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:10px!important;font-size:13.5px!important}
.profile-card .avatar{box-shadow:0 3px 12px rgba(16,24,40,.12)}
.cover-change-btn{background:rgba(255,255,255,.96)!important;border:1px solid rgba(16,24,40,.08)!important}

/* Friend suggestions */
.suggest-grid{gap:10px!important}
.suggest-item{background:#fafbfc;border:1px solid #edf0f2;border-radius:13px;margin:0!important;padding:10px 8px 12px!important}
.suggest-item>a:first-child .avatar{box-shadow:0 2px 8px rgba(16,24,40,.10)!important}
.suggest-item form .btn,.suggest-friend-status{border-radius:9px!important;height:34px;display:flex;align-items:center;justify-content:center}

/* Sidebar cards */
.home-sidebar .card h3{font-size:16px;margin-top:1px;margin-bottom:10px;letter-spacing:-.02em}
.side-msg,.side-event{padding:10px 0!important}
.side-msg:first-of-type,.side-event:first-of-type{padding-top:2px!important}
.year-stats div{background:#f7f9fb!important;border:1px solid #edf0f2}
.game-leader{border-radius:9px;padding:8px 5px!important;transition:background .15s ease}
.game-leader:hover{background:#f5f8fa}

/* Messages / chat */
.messages-layout{gap:14px!important}
.message-person{border:1px solid transparent;transition:background .15s ease,border-color .15s ease}
.message-person:hover,.message-person.active{background:#eef8fc!important;border-color:#d8eef6!important}
.private-chat-card{box-shadow:var(--mp-shadow)!important}
.msg{background:#f1f4f7!important;border:1px solid #e8ebee!important}
.msg.mine{background:#e6f7fd!important;border-color:#d2eff8!important}

/* Search/results/notifications */
.search-result{border-radius:10px;padding:10px!important}
.search-result:hover{background:#f6f8fa}
.note{border-bottom-color:#edf0f2!important}
.note.unread{background:#eef9fd!important}

/* Global typography and spacing */
h1,h2,h3,h4{letter-spacing:-.025em}
.muted{color:var(--mp-muted)!important}
.more-link{font-weight:800}

/* Mobile bottom navigation */
.mobile-bottom-nav{display:none}
@media(max-width:800px){
  body{padding-bottom:72px!important}
  .top{height:58px!important;min-height:58px!important}
  .wrap,.home-layout{margin-top:10px}
  .card{border-radius:14px;padding:14px}
  .home-layout{width:calc(100% - 12px)!important}
  .facebook-post{border-radius:14px!important}
  .facebook-post>p{font-size:15px}
  .mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:8px;height:58px;background:rgba(255,255,255,.97);border:1px solid #e1e6eb;border-radius:17px;box-shadow:0 8px 28px rgba(16,24,40,.16);z-index:9990;backdrop-filter:blur(14px);padding:4px}
  .mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:12px;color:#667085;font-size:10px;font-weight:800;line-height:1.15}
  .mobile-bottom-nav a span:first-child{font-size:20px;line-height:1.1}
  .mobile-bottom-nav a:hover,.mobile-bottom-nav a.active{background:#eef8fc;color:#0789c9}
  .mobile-bottom-nav .create-nav{background:#08a9e8;color:#fff;margin:0 3px;box-shadow:0 3px 9px rgba(8,169,232,.25)}
  .mobile-bottom-nav .create-nav:hover{background:#08a9e8;color:#fff}
  .facebook-storybar .story-card{flex-basis:104px!important;min-width:104px!important;max-width:104px!important;height:176px!important}
  .profile-card .profilehead{padding-left:14px!important}
  .profile-card .profile-info-actions{padding:14px!important}
  .profile-card .profile-actions .btn{height:38px!important}
  .profile-card .profile-actions details.profile-more-menu{
flex:0 0 44px !important;
width:44px !important;
min-width:44px !important;
max-width:44px !important;
}

.profile-card .profile-actions .profile-more-btn{
width:44px !important;
min-width:44px !important;
max-width:44px !important;
flex:0 0 44px !important;
padding:0 !important;
justify-content:center !important;
}
}

/* ===== MeetingPart 2.1 PREMIUM POLISH ===== */
:root{--mp-blue:#08a9e9;--mp-pink:#e6248a;--mp-ink:#18202a;--mp-muted:#667085;--mp-bg:#f4f7fa;--mp-line:#e7ebf0;--mp-shadow:0 7px 26px rgba(24,32,42,.065)}
html{scroll-behavior:smooth}body{background:var(--mp-bg);color:var(--mp-ink)}
.top{background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 2px 18px rgba(24,32,42,.045)!important;border-bottom-color:rgba(225,231,236,.9)!important}
.top .brand{padding:4px 7px!important;border-radius:12px;transition:.18s}.top .brand:hover{background:#f4f8fb;transform:translateY(-1px)}
.top .desktop-nav .header-icon{width:42px;height:42px;border-radius:12px;transition:.18s}.top .desktop-nav .header-icon:hover{background:#f1f6f9;transform:translateY(-1px)}
.profile-trigger{box-shadow:0 0 0 1px #e6ebf0!important;transition:.18s}.profile-trigger:hover{box-shadow:0 0 0 3px rgba(8,169,233,.13)!important}
.card{border-color:var(--mp-line)!important;box-shadow:var(--mp-shadow)!important;border-radius:17px!important;transition:box-shadow .18s,border-color .18s,transform .18s}.card:hover{border-color:#dce5eb!important;box-shadow:0 11px 32px rgba(24,32,42,.085)!important}
.home-composer-trigger{border:1px solid var(--mp-line)!important;display:flex!important;align-items:center!important;gap:11px!important;min-height:62px!important;color:#7a8490!important;background:#fff!important}.home-composer-trigger:hover{color:#4b5563!important;text-decoration:none!important}.home-composer-trigger .avatar{width:42px!important;height:42px!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #e1e7ec!important}
.facebook-stories-card{padding:12px!important}.facebook-storybar{scrollbar-width:none}.facebook-storybar::-webkit-scrollbar{display:none}.facebook-storybar .story-card{transition:transform .18s,box-shadow .18s!important}.facebook-storybar .story-card:hover{transform:translateY(-2px)!important;box-shadow:0 7px 18px rgba(24,32,42,.12)!important}
.btn{border-radius:11px!important;transition:transform .16s,box-shadow .16s,filter .16s!important}.btn:hover{transform:translateY(-1px);filter:saturate(1.04);box-shadow:0 5px 14px rgba(8,169,233,.18)!important}.btn:active{transform:none}
.input,select,textarea,input{border-color:#dfe5eb!important;transition:border-color .15s,box-shadow .15s}.input:focus,select:focus,textarea:focus,input:focus{outline:0!important;border-color:#8dd7f3!important;box-shadow:0 0 0 3px rgba(8,169,233,.11)!important}
.facebook-post{overflow:visible}.facebook-post .post-head{padding-bottom:2px}.facebook-post .post-head .avatar{box-shadow:0 0 0 1px #e6ebef!important}.facebook-post .post-content{font-size:15px;line-height:1.65}.facebook-post .post-actions{border-top-color:#edf0f3!important}
.post-media-grid{border-radius:14px!important;box-shadow:0 2px 9px rgba(24,32,42,.05)}.post-media-link{transition:filter .16s}.post-media-link:hover{filter:brightness(.97)}
.reaction-picker{border:1px solid #e4e9ee!important;border-radius:999px!important;padding:5px!important;background:#fff!important;box-shadow:0 8px 24px rgba(24,32,42,.16)!important}.reaction-picker button{transition:transform .15s!important}.reaction-picker button:hover{transform:scale(1.22)!important}
.reaction-summary{color:#667085}.reaction-summary:hover{color:#0789c9}
.comment{background:#f6f8fa!important;border:1px solid #edf0f3!important;border-radius:13px!important}
.home-sidebar .card h3{display:flex;align-items:center;gap:7px;margin-top:0}.side-msg,.side-event{padding:9px 0;border-bottom:1px solid #edf0f3}.side-msg:last-of-type,.side-event:last-of-type{border-bottom:0}.game-leader{border-radius:12px!important;transition:.16s}.game-leader:hover{background:#f5f8fa!important;transform:translateX(2px)}
.profile-cover-wrap{border-radius:18px 18px 0 0!important;box-shadow:inset 0 -60px 80px rgba(0,0,0,.15)}.profile-cover-image{filter:saturate(1.03)}
.profile-info-actions,.profile-actions{border-color:#edf0f3!important}.profile-actions .btn{border-radius:10px!important}
.notification-link{border-radius:12px}.notification-badge{box-shadow:0 2px 6px rgba(0,0,0,.16)!important}
.search-box,.search-card{border-radius:15px!important}
.poll-collapsed,.post-poll.poll-collapsed{border-color:#e3e8ed!important;box-shadow:0 2px 9px rgba(24,32,42,.035)!important}.poll-collapsed>summary:hover{background:#fafcfd}
.messages-layout{gap:18px}.friends-message-list,.private-chat-card{box-shadow:var(--mp-shadow)!important}.message-person{transition:.16s}.message-person:hover,.message-person.active{transform:translateX(2px)}.msg{border:1px solid #edf0f3!important;box-shadow:0 1px 3px rgba(24,32,42,.035)}.msg.mine{border-color:#c9edf9!important}
footer{color:#7a8490}

@media(max-width:800px){
 body{padding-bottom:72px!important}.wrap{margin-top:10px!important}.card{box-shadow:0 3px 15px rgba(24,32,42,.055)!important}.card:hover{transform:none!important}
 .facebook-post{border-radius:14px!important}.facebook-post .post-content{font-size:15px}.facebook-storybar{padding-bottom:3px!important}
 .mobile-bottom-nav{background:rgba(255,255,255,.97)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 10px 30px rgba(16,24,40,.16)!important;border-color:#dde4ea!important}
 .mobile-bottom-nav a{transition:.15s!important}.mobile-bottom-nav a:active{transform:scale(.95)}
 .mobile-bottom-nav .create-nav{background:linear-gradient(135deg,#08a9e9,#e6248a)!important}
 .post-media-grid{border-radius:11px!important}.reaction-picker{max-width:calc(100vw - 24px);overflow:auto}
 .profile-card .profile-actions{gap:7px!important}.profile-card .profile-actions .btn{min-width:0!important}
}

/* Feed performance */
.feed-loader{display:flex;align-items:center;justify-content:center;min-height:52px;margin:8px 0 18px;font-size:13px}
.feed-loader.loading span:after{content:" •";animation:feedDots 1s infinite}
@keyframes feedDots{0%{opacity:.2}50%{opacity:1}100%{opacity:.2}}

/* Login/auth header social links */
.auth-social-nav{margin-left:auto;display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;}
.auth-social-nav .social-icon{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;color:#fff!important;font-weight:900;line-height:1;box-shadow:0 2px 7px rgba(0,0,0,.12);transition:transform .15s ease,opacity .15s ease;}
.auth-social-nav .social-icon:hover{transform:translateY(-1px);opacity:.92;}
.social-facebook{background:#1877f2;font-family:Arial,sans-serif;font-size:25px;padding-top:5px;}
.social-instagram{background:linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7);font-family:Arial,sans-serif;font-size:28px;}
.social-tiktok{background:#111;font-family:Arial,sans-serif;font-size:25px;}
.social-whatsapp{background:#25d366;font-family:Arial,sans-serif;font-size:21px;}
.remember-row{display:flex;align-items:center;gap:10px;margin:-2px 0 14px;cursor:pointer;user-select:none;font-size:16px;color:#303640;font-weight:600;}
.remember-row input{width:20px;height:20px;margin:0;accent-color:#0aaeea;cursor:pointer;flex:0 0 auto;}
@media(max-width:800px){
 .auth-social-nav{gap:7px!important;}
 .auth-social-nav .social-icon{width:34px;height:34px;font-size:20px;}
 .social-instagram{font-size:24px!important;}
 .social-whatsapp{font-size:18px!important;}
 .remember-row{font-size:15px;margin-bottom:13px;}
}


/* Login social icons - compact monochrome */
.auth-social-nav{gap:14px!important;align-items:center!important;}
.auth-social-nav .social-icon{width:30px!important;height:30px!important;border-radius:0!important;background:transparent!important;color:#737b84!important;box-shadow:none!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.auth-social-nav .social-icon:hover{color:#202830!important;transform:none!important;opacity:1!important;}
.auth-social-nav .social-icon svg{width:22px!important;height:22px!important;display:block!important;overflow:visible;}
.auth-social-nav .social-icon svg path,.auth-social-nav .social-icon svg rect,.auth-social-nav .social-icon svg circle{vector-effect:non-scaling-stroke;}
.remember-row{width:100%!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:9px!important;margin:2px 0 15px!important;padding:0!important;min-height:28px!important;font-size:15px!important;line-height:1.25!important;font-weight:600!important;color:#303640!important;}
.remember-row input{appearance:none!important;-webkit-appearance:none!important;width:19px!important;height:19px!important;min-width:19px!important;flex:0 0 19px!important;margin:0!important;border:2px solid #aeb7c1!important;border-radius:5px!important;background:#fff!important;position:relative!important;cursor:pointer!important;}
.remember-row input:checked{background:#0aaeea!important;border-color:#0aaeea!important;}
.remember-row input:checked:after{content:"✓";position:absolute;left:2px;top:-3px;color:#fff;font-size:16px;font-weight:900;line-height:19px;}
@media(max-width:800px){
 .auth-social-nav{gap:10px!important;}
 .auth-social-nav .social-icon{width:27px!important;height:27px!important;}
 .auth-social-nav .social-icon svg{width:20px!important;height:20px!important;}
 .remember-row{font-size:15px!important;gap:8px!important;margin:1px 0 14px!important;}
 .remember-row input{width:18px!important;height:18px!important;min-width:18px!important;flex-basis:18px!important;}
}

/* Login social icons - final size/alignment with YouTube */
.auth-social-nav{gap:11px!important;align-items:center!important;flex-wrap:nowrap!important;white-space:nowrap!important;}
.auth-social-nav .social-icon{width:34px!important;height:34px!important;border-radius:0!important;background:transparent!important;color:#737b84!important;box-shadow:none!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;}
.auth-social-nav .social-icon svg{width:25px!important;height:25px!important;display:block!important;}

@media(max-width:800px){
 .auth-social-nav{gap:7px!important;}
 .auth-social-nav .social-icon{width:30px!important;height:30px!important;flex-basis:30px!important;}
 .auth-social-nav .social-icon svg{width:23px!important;height:23px!important;}
}

/* Login social bar - exact clean alignment */
.auth-social-nav{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:0!important;flex-wrap:nowrap!important;white-space:nowrap!important;margin-left:auto!important;height:42px!important;}
.auth-social-nav .social-icon{width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:0!important;background:transparent!important;color:#6f7780!important;box-shadow:none!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;}
.auth-social-nav .social-icon + .social-icon{border-left:1px solid #d9dde2!important;}
.auth-social-nav .social-icon svg{width:27px!important;height:27px!important;display:block!important;}
.auth-social-nav .social-icon:hover{color:#303840!important;transform:none!important;opacity:1!important;}
@media(max-width:800px){
 .auth-social-nav{height:38px!important;}
 .auth-social-nav .social-icon{width:34px!important;height:34px!important;flex-basis:34px!important;}
 .auth-social-nav .social-icon svg{width:25px!important;height:25px!important;}
}


/* Story circles: slightly larger, close together, one ring. Unseen left / seen right. */
.facebook-storybar{gap:4px!important;align-items:flex-start!important}
.facebook-storybar .story-card{flex:0 0 88px!important;min-width:88px!important;max-width:88px!important;height:auto!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;text-align:center!important;color:inherit!important}
.facebook-storybar .story-card-media{position:relative!important;inset:auto!important;display:block!important;width:78px!important;height:78px!important;margin:0 auto!important;border-radius:50%!important;overflow:hidden!important;padding:3px!important;background:#fff!important;border:3px solid #e6248a!important;box-sizing:border-box!important}
.facebook-storybar .story-card-media:after{display:none!important}
.facebook-storybar .story-card-media img,.facebook-storybar .story-card-media video{position:static!important;width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;display:block!important}
.facebook-storybar .story-seen .story-card-media{border-color:#aeb4bb!important}
.facebook-storybar .story-card-avatar{left:auto!important;right:4px!important;top:57px!important;width:24px!important;height:24px!important;border:2px solid #fff!important;padding:0!important;background:#fff!important;box-sizing:border-box!important}
.facebook-storybar .story-card .story-name{position:static!important;display:block!important;width:88px!important;margin:5px auto 0!important;color:#333!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:none!important}
.facebook-storybar .story-add-plus{left:50%!important;bottom:auto!important;top:55px!important;transform:translateX(-50%)!important;width:25px!important;height:25px!important;font-size:20px!important;border:2px solid #fff!important}
@media(max-width:800px){
 .facebook-storybar{gap:2px!important}
 .facebook-storybar .story-card{flex-basis:84px!important;min-width:84px!important;max-width:84px!important}
 .facebook-storybar .story-card-media{width:74px!important;height:74px!important}
 .facebook-storybar .story-card .story-name{width:84px!important;font-size:10px!important}
 .facebook-storybar .story-card-avatar{top:54px!important;right:3px!important}
 .facebook-storybar .story-add-plus{top:52px!important}
}

/* Story ring gradient + viewed gray */
.facebook-storybar .story-unseen .story-card-media{
  border:0!important;
  background:linear-gradient(135deg,#ff8a00 0%,#ff3d81 48%,#7b2cff 100%)!important;
  padding:3px!important;
}
.facebook-storybar .story-seen .story-card-media{
  border:0!important;
  background:#b5bac1!important;
  padding:3px!important;
}
.facebook-storybar .add-story-card .story-card-media{
  border:0!important;
  background:transparent!important;
  padding:0!important;
}


/* Final Story ring: exactly one outer ring, no inner ring */
.facebook-storybar .story-card-media img,
.facebook-storybar .story-card-media video{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}


.facebook-storybar .add-story-card .story-card-media{
  border:0!important;
  background:linear-gradient(135deg,#ff8a00 0%,#ff3d81 48%,#7b2cff 100%)!important;
  padding:3px!important;
}


/* Final: remove the small profile/avatar circle from each Story. Only one main ring remains. */
.facebook-storybar .story-card-avatar{display:none!important;}


/* Facebook-style post tagging */
.post-tag-summary{margin:4px 0 8px;font-size:15px;line-height:1.35}.post-tag-summary .tag-summary-name{font-weight:700;color:inherit;text-decoration:none}.post-tag-summary .tag-summary-name:hover{text-decoration:underline}.tag-more-link{border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}.tag-more-link:hover{text-decoration:underline}.tagged-users-modal[hidden]{display:none!important}.tagged-users-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center}.tagged-users-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58)}.tagged-users-dialog{position:relative;z-index:1;width:min(430px,calc(100vw - 28px));max-height:min(70vh,620px);overflow:hidden;background:#fff;color:#202124;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.3)}.tagged-users-header{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e5e7eb;font-size:17px}.tag-modal-close{border:0;background:transparent;font-size:28px;line-height:1;color:#667085;cursor:pointer}.tagged-users-list{overflow:auto;padding:8px 0;max-height:calc(min(70vh,620px) - 58px)}.tagged-user-row{display:flex;align-items:center;gap:10px;padding:10px 16px;color:#202124;text-decoration:none}.tagged-user-row:hover{background:#f5f6f7}.tagged-user-avatar{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e9eef5;font-weight:700;flex:0 0 38px}body.tag-modal-open{overflow:hidden}
/* @mentions + hashtags */
.post-mention,.mention-link,.post-hashtag{font-weight:600;text-decoration:none}.post-mention:hover,.mention-link:hover,.post-hashtag:hover{text-decoration:underline}.mention-results{position:relative;z-index:20;display:flex;flex-direction:column;gap:2px;margin-top:4px;max-height:220px;overflow:auto}.mention-results button,.mention-result{width:100%;text-align:left;border:1px solid #e3e7ec;background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer}.mention-results button:hover,.mention-result:hover{background:#f4f7fa}.mention-hidden{display:none}

/* Mobile-safe inline tag summary */
.post-head{position:relative;align-items:flex-start!important}
.post-author-block{min-width:0;flex:1;padding-right:40px}
.post-author-line{display:block;min-width:0;line-height:1.35;overflow-wrap:anywhere}
.post-author-name{font-weight:700}
.post-tag-inline{font-weight:700;margin-left:1px}
.post-tag-inline .tag-summary-name,.post-tag-inline .tag-more-link{font-weight:700}
.post-tag-inline .tag-more-link{display:inline;padding:0;color:inherit;vertical-align:baseline;overflow-wrap:anywhere}
.post-author-meta{margin-top:2px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-menu{position:absolute!important;right:0;top:0;margin-left:0!important}
@media(max-width:800px){
 .facebook-post .post-head{gap:8px;align-items:flex-start!important}
 .post-author-block{padding-right:38px}
 .post-author-line{font-size:16px;line-height:1.32}
 .post-author-meta{font-size:14px}
 .post-menu .post-more{width:34px!important;height:34px!important}
}

/* Modern compact notifications - mobile/desktop */
.notification-row{display:flex!important;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:13px 12px!important;border-bottom:1px solid #edf0f3;border-radius:0!important;background:#fff;color:#1b2430;text-decoration:none!important;transition:background .15s ease}
.notification-row:hover{background:#f8fafc}
.note{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.note.unread .notification-row{background:#eef8fc}
.notification-avatar-wrap{position:relative;flex:0 0 48px;width:48px;height:48px;display:flex;align-items:center;justify-content:center}
.note-avatar{width:48px!important;height:48px!important;border-radius:50%;object-fit:cover;border:0!important;margin:0!important}
.notification-fallback-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2f6;font-size:23px}
.notification-unread-dot{position:absolute;left:-2px;top:20px;width:10px;height:10px;border-radius:50%;background:#149cf0;box-shadow:0 0 0 2px #fff}
.notification-copy{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:3px}
.notification-text{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere;word-break:normal}
.notification-text b{font-weight:800}
.notification-time{font-size:12px!important;line-height:1.2;color:#8a94a3!important;margin:0!important}
.notification-type-icon{flex:0 0 30px;width:30px;text-align:center;font-size:23px;line-height:1}
.notification-arrow{flex:0 0 16px;width:16px;text-align:center;font-size:30px;line-height:1;color:#8c95a1}
.card>.note:first-of-type .notification-row{border-top:1px solid #edf0f3}
.tag-requests{margin:0 0 8px;padding:10px;border-radius:12px;background:#f7f9fb}
.tag-request{display:flex;align-items:center;gap:7px;padding:8px 0;border-top:1px solid #e9edf1;font-size:14px}
.tag-request:first-of-type{border-top:0}
.tag-request span{min-width:0;flex:1}
@media(max-width:800px){
 .notification-row{gap:10px;padding:11px 7px!important}
 .notification-avatar-wrap,.note-avatar,.notification-fallback-avatar{width:44px!important;height:44px!important;flex-basis:44px}
 .notification-unread-dot{
    left:auto!important;
    right:-1px!important;
    top:-2px!important;
    width:11px;
    height:11px;
}
 .notification-text{font-size:15px;line-height:1.3}
 .notification-time{font-size:11px!important}
 .notification-type-icon{flex-basis:27px;width:27px;font-size:21px}
 .notification-arrow{flex-basis:13px;width:13px;font-size:26px}
 .tag-request{flex-wrap:wrap}
}
@media(max-width:380px){
 .notification-row{gap:8px;padding:10px 5px!important}
 .notification-avatar-wrap,.note-avatar,.notification-fallback-avatar{width:42px!important;height:42px!important;flex-basis:42px}
 .notification-text{font-size:14px}
 .notification-type-icon{display:none}
 .notification-arrow{font-size:24px}
}

/* Notification archive groups */
.notification-group-title{padding:12px 12px 8px;font-size:13px;font-weight:800;color:#7a8490;text-transform:none}
.notification-archive{margin-top:10px;border:1px solid #e6eaee;border-radius:14px;background:#fff;overflow:hidden}
.notification-archive summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 15px;font-size:15px;font-weight:800;color:#202830}
.notification-archive summary::-webkit-details-marker{display:none}
.notification-archive summary:before{content:"›";display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:8px;border-radius:50%;background:#eef3f7;color:#687380;font-size:20px;line-height:1;transform:rotate(0deg);transition:transform .15s ease}
.notification-archive[open] summary:before{transform:rotate(90deg)}
.notification-archive summary span{margin-right:auto}
.notification-archive summary b{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#eef5fa;color:#3d718f;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.notification-archive-list{border-top:1px solid #edf0f3}

/* Desktop notification popup */
.desktop-notification-popup{position:absolute;top:66px;right:max(12px,calc((100% - 1100px)/2 + 54px));width:390px;max-width:calc(100vw - 30px);background:#fff;border:1px solid #e2e6eb;border-radius:18px;box-shadow:0 16px 45px rgba(20,30,40,.18);z-index:10050;overflow:hidden}
.desktop-notification-popup[hidden]{display:none!important}
.desktop-notification-popup-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #edf0f3;background:#fff}
.desktop-notification-popup-head b{font-size:18px;color:#18212b}
.desktop-notification-popup-head a{font-size:12px;font-weight:800;color:#078fc8;text-decoration:none}
.desktop-notification-popup-body{max-height:520px;overflow:auto}
.desktop-notification-item{display:flex;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid #edf0f3;text-decoration:none;color:#1c2630;background:#fff}
.desktop-notification-item:hover{background:#f7fafc}
.desktop-notification-item.unread{background:#eef8fc}
.desktop-notification-avatar{position:relative;flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef2f6;font-size:20px}
.desktop-notification-avatar img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.desktop-notification-avatar i{position:absolute;left:33px;top:1px;width:11px;height:11px;border-radius:50%;background:#149cf0;border:2px solid #fff}
.desktop-notification-copy{min-width:0;flex:1;font-size:13px;line-height:1.3}
.desktop-notification-copy span{display:block;overflow-wrap:anywhere}
.desktop-notification-copy b{font-weight:800}
.desktop-notification-copy small{display:block;margin-top:3px;color:#8a94a3;font-size:11px}
.desktop-notification-icon{flex:0 0 25px;text-align:center;font-size:19px}
.desktop-notification-empty,.desktop-notification-loading{padding:28px 18px;text-align:center;color:#8a94a3;font-size:13px}
@media(max-width:800px){.desktop-notification-popup{display:none!important}}


/* Exact Story + positioning */
/* Keep the + geometrically centered inside the story photo on every viewport. */
.facebook-storybar .story-add-plus{
  position:absolute;
  left:50%;
  top:73px;
  transform:translateX(-50%);
  width:30px;
  height:30px;
  border-radius:50%;
  display:block;
  color:transparent;
  background:linear-gradient(135deg,var(--mp-primary),var(--mp-primary-2));
  border:3px solid #fff;
  font-size:0;
  line-height:0;
}

.story-add-plus::before,
.story-add-plus::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  background:#fff;
  border-radius:2px;
  transform:translate(-50%,-50%);
}

.story-add-plus::before{
  width:14px;
  height:2px;
}

.story-add-plus::after{
  width:2px;
  height:14px;
}

/* Profile Story +: 1 o'clock position, touching the avatar circle. */
.profile-avatar-wrap{position:relative;display:inline-block;line-height:0;overflow:visible}
.profile-story-add-plus{
  position:absolute;
  left:80%!important;
  top:7%!important;
  right:auto!important;
  width:30px;
  height:30px;
  border-radius:50%;
  display:block;
  align-items:center;
  justify-content:center;
  background:#168cf0;
  border:3px solid #fff;
  color:transparent;
  font-size:0;
  line-height:0;
  font-weight:800;
  text-decoration:none;
  box-sizing:border-box;
  z-index:1002;
  transform:translate(-50%,-50%)!important;
  box-shadow:0 2px 7px rgba(0,0,0,.22);
}

.profile-story-add-plus::before,
.profile-story-add-plus::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  background:#fff;
  border-radius:2px;
  transform:translate(-50%,-50%);
}

.profile-story-add-plus::before{
  width:14px;
  height:2px;
}

.profile-story-add-plus::after{
  width:2px;
  height:14px;
}
.profile-story-add-plus:hover{transform:translate(-50%,-50%) scale(1.06)!important;text-decoration:none}

/* MOBILE STORY + — exact center of the 74x74 story circle. Profile + untouched. */
@media (max-width:800px){
  .facebook-storybar .add-story-card .story-card-media .story-add-plus,
  .facebook-storybar .story-add-plus{
    left:48px!important;
    top:48px!important;
    right:auto!important;
    bottom:auto!important;
    transform:translate(-50%,-50%)!important;
  }
}


/* FINAL MOBILE STORY CARD ALIGNMENT
   Keep the story items centered inside the white story container and
   place the + button exactly at the center of the add-story circle. */
@media (max-width:800px){
  .facebook-stories-card{
    overflow:hidden!important;
  }

  .facebook-storybar{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:safe center!important;
    gap:2px!important;
    width:100%!important;
    margin:0!important;
    padding:6px 0 0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    box-sizing:border-box!important;
  }

  .facebook-storybar .story-card{
    flex:0 0 84px!important;
    width:84px!important;
    min-width:84px!important;
    max-width:84px!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    position:relative!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  .facebook-storybar .story-card-media{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    display:block!important;
    width:74px!important;
    height:74px!important;
    margin:0 auto!important;
    padding:3px!important;
    box-sizing:border-box!important;
    border-radius:50%!important;
  }

  .facebook-storybar .story-card-media img,
  .facebook-storybar .story-card-media video{
    width:100%!important;
    height:100%!important;
    display:block!important;
    border-radius:50%!important;
    object-fit:cover!important;
  }

  .facebook-storybar .story-card .story-name{
    position:static!important;
    display:block!important;
    width:84px!important;
    margin:5px auto 0!important;
    padding:0!important;
    text-align:center!important;
    box-sizing:border-box!important;
  }

  /* The + belongs to the 74px circle, therefore its center is 37px/37px. */
  .facebook-storybar .add-story-card .story-add-plus,
  .facebook-storybar .story-add-plus{
    left:50%!important;
    top:37px!important;
    right:auto!important;
    bottom:auto!important;
    width:25px!important;
    height:25px!important;
    margin:0!important;
    padding:0!important;
    transform:translate(-50%,-50%)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    line-height:1!important;
  }
}

@media (max-width:380px){
  .facebook-storybar .story-card{
    flex-basis:80px!important;
    width:80px!important;
    min-width:80px!important;
    max-width:80px!important;
  }
  .facebook-storybar .story-card-media{
    width:70px!important;
    height:70px!important;
  }
  .facebook-storybar .story-card .story-name{
    width:80px!important;
  }
  .facebook-storybar .add-story-card .story-add-plus,
  .facebook-storybar .story-add-plus{
    top:35px!important;
  }
}

/* Story reply preview in private chat */
.msg-story-preview{display:flex;align-items:center;gap:9px;width:min(260px,100%);margin:0 0 8px;padding:6px;border:1px solid rgba(120,130,145,.20);border-radius:10px;background:rgba(120,130,145,.08);color:inherit;text-decoration:none;box-sizing:border-box;overflow:hidden}
.msg-story-preview:hover{background:rgba(120,130,145,.14);text-decoration:none}
.msg-story-thumb{display:block;flex:0 0 42px;width:42px;height:56px;border-radius:7px;overflow:hidden;background:#e9edf2}
.msg-story-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.msg-story-info{display:flex;min-width:0;flex-direction:column;gap:3px;line-height:1.15}
.msg-story-info b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-story-info small{font-size:11px;color:#7c8794}
@media(max-width:800px){.msg-story-preview{width:min(235px,100%)}.msg-story-thumb{flex-basis:40px;width:40px;height:53px}.msg-story-info b{font-size:11px}}

/* Video paylaşımını fotoşəkildən fərqləndirən play nişanı */
.post-media-link{position:relative!important}
.video-play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2}
.video-play-icon{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.58);color:#fff;font-size:25px;line-height:1;padding-left:4px;box-shadow:0 3px 14px rgba(0,0,0,.28);backdrop-filter:blur(2px)}
@media(max-width:800px){.video-play-icon{width:52px;height:52px;font-size:22px}}

/* Members page: cleaner member cards and friend action */
.member-card-clean{display:flex;align-items:center;gap:14px;padding:14px 16px}
.member-main-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:0}
.member-info-link{display:flex;align-items:center;gap:12px;min-width:0;flex:1;color:inherit;text-decoration:none}
.member-info-link .avatar{width:58px;height:58px;flex:0 0 58px}
.member-info-text{min-width:0}
.member-info-text b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-friend-action{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end}
.member-friend-action .btn{white-space:nowrap}
@media(max-width:600px){
  .member-card-clean{padding:12px}
  .member-main-row{gap:10px}
  .member-info-link .avatar{width:52px;height:52px;flex-basis:52px}
  .member-info-text small{display:none}
  .member-friend-action .btn{padding:9px 11px;font-size:13px}
}
/* MeetingPart Messenger redesign + groups */
.mp-messenger{display:flex;flex-direction:column;gap:14px}.mp-message-top{padding:14px 16px}.mp-message-top-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.mp-message-top-title b{font-size:20px;margin-right:auto}.mp-top-people{display:flex;gap:14px;overflow-x:auto;padding:2px 2px 5px}.mp-top-person{min-width:68px;max-width:82px;text-align:center;color:inherit;text-decoration:none;font-size:11px}.mp-top-person>span:last-child{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.mp-top-avatar{display:block;position:relative;width:58px;height:58px;margin:auto}.mp-top-avatar img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 0 0 2px #d8e9f2}.mp-top-avatar i{position:absolute;right:2px;bottom:2px;width:12px;height:12px;background:#22c55e;border:2px solid #fff;border-radius:50%}.mp-group-avatar img{padding:0}.mp-messenger-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:14px;min-height:650px}.mp-conversations{padding:0;overflow:hidden}.mp-conv-head{display:flex;align-items:center;padding:16px;border-bottom:1px solid #edf0f3}.mp-conv-head h2{margin:0 auto 0 0;font-size:18px}.mp-conv-scroll{max-height:650px;overflow:auto;padding:7px}.mp-conv{display:flex;align-items:center;gap:10px;padding:10px;border-radius:13px;color:inherit;text-decoration:none;position:relative}.mp-conv:hover,.mp-conv.active{background:#eef8fc}.mp-conv-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;flex:0 0 48px;display:flex;align-items:center;justify-content:center;background:#eef2f6}.mp-conv-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.mp-conv-avatar.mp-presence-avatar{overflow:visible}.mp-conv-body{min-width:0;display:flex;flex-direction:column;gap:3px}.mp-conv-body b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-conv-body small{color:#7b8491;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-conv-badge{font-size:9px;color:#718096;margin-left:auto}.mp-unread{background:#0ea5e9;color:#fff;font-size:10px;min-width:19px;height:19px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 5px}.mp-message-main{min-height:650px;display:flex;flex-direction:column;padding:0;overflow:hidden}.mp-chat-header{display:flex;align-items:center;gap:11px;padding:14px 16px;border-bottom:1px solid #edf0f3;min-height:72px}.mp-chat-header>div:last-child{display:flex;flex-direction:column;gap:3px}.mp-chat-header small{color:#7b8491}.mp-chat-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;flex:0 0 46px;display:flex;align-items:center;justify-content:center;background:#eef2f6}.mp-chat-avatar img{width:100%;height:100%;object-fit:cover}.mp-chat-body{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:9px;background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%)}.mp-bubble{max-width:76%;align-self:flex-start;background:#fff;border:1px solid #e7edf2;border-radius:16px 16px 16px 5px;padding:9px 12px;box-shadow:0 2px 8px rgba(24,32,42,.035);position:relative}.mp-bubble.mine{align-self:flex-end;border-radius:16px 16px 5px 16px;background:#eaf8fd;border-color:#c8eaf5}.mp-bubble p{margin:3px 0;white-space:normal;overflow-wrap:anywhere}.mp-bubble>small{font-size:10px;color:#8a94a3}.mp-bubble.deleted{opacity:.65;font-style:italic}.mp-msg-tools{margin-top:4px}.mp-msg-tools summary{cursor:pointer;font-size:12px}.mp-compose{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid #edf0f3;background:#fff}.mp-compose textarea{flex:1;resize:none;border:1px solid #dfe6ec;border-radius:20px;padding:10px 14px;min-height:42px;max-height:120px}.mp-send{width:43px;height:43px;border:0;border-radius:50%;background:#0ea5e9;color:#fff;font-size:20px;cursor:pointer}.mp-locked{padding:13px 16px;border-top:1px solid #edf0f3;color:#697586;background:#fbfcfd}.mp-chat-empty,.mp-welcome{margin:auto;text-align:center;color:#7b8491}.mp-welcome{padding:30px}.mp-welcome-icon{font-size:48px}.mp-welcome h2{color:#20242a;margin:10px 0 4px}.mp-welcome p{margin:0 0 18px}.mp-bubble.system{align-self:center;background:#fff8df;border-color:#f4e4a9;text-align:center}.mp-group-page{display:flex;flex-direction:column;gap:14px}.mp-group-header{display:flex;align-items:center;gap:14px;padding:14px 16px}.mp-group-avatar-big{width:68px;height:68px;border-radius:20px;object-fit:cover}.mp-group-head-info{min-width:0;flex:1}.mp-group-head-info h2{margin:0 0 4px}.mp-group-head-info p{margin:0 0 4px;color:#697586;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-group-head-info small{color:#84909e}.mp-group-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:14px;min-width:0}.mp-group-conversations{min-width:0;min-height:650px;overflow:hidden}.mp-group-conversations .mp-conv-scroll{max-height:650px}.mp-group-conversations .mp-conv{min-width:0}.mp-group-chat{min-height:650px;padding:0;display:flex;flex-direction:column;overflow:hidden}.mp-group-chatbar{padding:12px 16px;border-bottom:1px solid #edf0f3;display:flex;justify-content:space-between}.mp-group-chatbar small{color:#84909e}.mp-group-body{min-height:0}.mp-group-side{padding:16px;max-height:650px;overflow:auto}.mp-group-side h3{margin-top:0}.mp-member{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #f0f2f4}.mp-member img{width:38px;height:38px;border-radius:50%;object-fit:cover}.mp-member>span{min-width:0;flex:1}.mp-member small{display:block;color:#8a94a3;font-size:10px}.mp-group-rules{margin-top:16px;padding:12px;border-radius:12px;background:#f7fafc}.mp-group-rules p{white-space:pre-wrap;font-size:12px;color:#697586}.mp-group-settings{padding:18px;max-width:850px;margin:0 auto}.mp-group-settings form>label{display:block;margin-bottom:12px;font-weight:600}.mp-group-settings input:not([type=checkbox]),.mp-group-settings textarea{width:100%;box-sizing:border-box;margin-top:5px}.mp-group-settings textarea{min-height:90px;resize:vertical}.mp-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.mp-settings-grid label{font-weight:500;padding:10px;background:#f7fafc;border-radius:10px}.mp-invite-box{margin-top:18px;padding:14px;background:#f7fafc;border-radius:12px}.mp-invite-row{display:flex;gap:8px;margin:8px 0}.mp-invite-row input{flex:1}.mp-pending{margin-top:20px;border-top:1px solid #edf0f3;padding-top:14px}.mp-pending .mp-member{gap:7px}.mp-group-join{max-width:550px;margin:30px auto;text-align:center;padding:30px}.mp-group-hero-avatar{width:100px;height:100px;border-radius:28px;object-fit:cover}.mp-group-join h2{margin:12px 0 6px}.mp-group-join p{color:#697586}.mp-empty{padding:18px}.system-message-icon{display:flex;align-items:center;justify-content:center;background:#eef8fc;border-radius:50%;width:46px;height:46px;flex:0 0 46px}.system-message-icon.large{width:46px;height:46px}
@media(max-width:900px){.mp-messenger-grid{grid-template-columns:250px minmax(0,1fr)}.mp-group-layout{grid-template-columns:1fr}.mp-group-side{max-height:none}.mp-group-conversations{min-height:0}.mp-group-conversations .mp-conv-scroll{max-height:360px}.mp-bubble{max-width:88%}}
@media(max-width:700px){.mp-messenger{gap:8px}.mp-message-top{padding:10px}.mp-message-top-title{margin-bottom:7px}.mp-message-top-title b{font-size:18px}.mp-messenger-grid{display:flex;flex-direction:column;min-height:calc(100vh - 190px)}.mp-conversations{order:1}.mp-message-main{order:2;min-height:calc(100vh - 250px)}.mp-conv-scroll{display:flex;overflow-x:auto;gap:6px;max-height:none;padding:6px}.mp-conv{min-width:180px}.mp-conv-head{display:none}.mp-top-person{min-width:64px}.mp-top-avatar,.mp-top-avatar img{width:52px;height:52px}.mp-chat-body{padding:12px}.mp-group-header{flex-wrap:wrap}.mp-group-header .btn{font-size:12px}.mp-settings-grid{grid-template-columns:1fr}.mp-invite-row{flex-direction:column}.mp-group-chat{min-height:calc(100vh - 210px)}}

/* MeetingPart messenger mobile refinement */
.mp-mobile-back{display:none;color:#64748b;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.mp-add-member-box{background:#f8fbfd;border-radius:14px}
.mp-add-member-form{display:flex;gap:8px;align-items:center}
.mp-add-member-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid #dfe6ec;border-radius:10px;background:#fff}
@media(max-width:700px){
  .mp-messenger{gap:10px}
  .mp-message-top{border-radius:18px;padding:12px 10px}
  .mp-top-people{gap:10px;overflow-x:auto}
  .mp-messenger-grid{display:block;min-height:0}
  .mp-messenger-grid:not(.mp-chat-selected) .mp-message-main{display:none}
  .mp-messenger-grid:not(.mp-chat-selected) .mp-conversations{display:block}
  .mp-messenger-grid.mp-chat-selected .mp-conversations{display:none}
  .mp-messenger-grid.mp-chat-selected .mp-message-main{display:flex;min-height:calc(100vh - 235px);border-radius:18px}
  .mp-conversations{width:100%;border-radius:18px}
  .mp-conv-head{display:flex;padding:12px 14px}
  .mp-conv-scroll{display:block;max-height:none;overflow:visible;padding:4px 8px 8px}
  .mp-conv{width:100%;box-sizing:border-box;min-width:0;margin:0;border-radius:12px;padding:11px 9px;border-bottom:1px solid #edf0f3}
  .mp-conv:last-child{border-bottom:0}
  .mp-conv:hover,.mp-conv.active{transform:none}
  .mp-conv-avatar{width:52px;height:52px;flex-basis:52px}
  .mp-conv-body{gap:4px}
  .mp-conv-body b{font-size:14px}
  .mp-conv-body small{font-size:11px}
  .mp-mobile-back{display:block}
  .mp-chat-header{padding:10px 12px;gap:9px}
  .mp-chat-header .mp-chat-avatar{width:44px;height:44px;flex-basis:44px}
  .mp-chat-body{padding:10px}
  .mp-compose{padding:8px}
  .mp-add-member-form{flex-direction:column;align-items:stretch}
  .mp-add-member-form .btn{width:100%}
}

/* MeetingPart group header/info refinement */
.mp-group-header{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px;border-radius:22px}
.mp-group-avatar-link{display:block;flex:0 0 auto;text-decoration:none}
.mp-group-avatar-big{width:72px;height:72px;border-radius:20px;object-fit:cover;display:block;box-shadow:0 2px 10px rgba(25,35,45,.08)}
.mp-group-title-link{display:inline-block;color:inherit;text-decoration:none}
.mp-group-title-link h2{font-size:22px;line-height:1.2;margin:0 0 5px}
.mp-group-title-link:hover h2{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.mp-group-head-info p{max-width:620px}
.mp-group-head-info small span{color:#0ea5e9;font-weight:700}
.mp-group-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.mp-group-info-page{display:flex;flex-direction:column;gap:14px}
.mp-group-info-hero{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.mp-group-info-hero-main{display:flex;align-items:center;gap:16px;min-width:0}
.mp-group-info-avatar{width:92px;height:92px;border-radius:25px;object-fit:cover;flex:0 0 92px}
.mp-group-info-hero h1{margin:0 0 5px;font-size:26px;line-height:1.2}
.mp-group-info-hero p{margin:0 0 10px;color:#697586;max-width:650px}
.mp-group-status-pills{display:flex;gap:7px;flex-wrap:wrap}
.mp-group-status-pills span{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f1f6f9;color:#566273;font-size:12px;font-weight:700}
.mp-group-info-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.mp-group-info-card{padding:18px}
.mp-info-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.mp-info-section-head h2{margin:0 0 3px;font-size:19px}
.mp-info-section-head p{margin:0;font-size:12px}
.mp-info-members-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mp-info-member{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #edf0f3;border-radius:14px;color:inherit;text-decoration:none;min-width:0;transition:background .15s,border-color .15s}
.mp-info-member:hover{background:#f7fbfd;border-color:#d9eaf2}
.mp-info-member img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 46px}
.mp-info-member span{display:block;min-width:0}
.mp-info-member b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-info-member small{display:block;margin-top:2px;color:#8792a0;font-size:11px}
.mp-info-rules{white-space:pre-wrap;background:#f7fafc;border-radius:14px;padding:14px;color:#536070;line-height:1.6;font-size:13px;min-height:45px}
.mp-group-info-settings{padding-bottom:8px}
.mp-info-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-top:1px solid #edf0f3;color:#5d6876}
.mp-info-setting-row b{font-size:13px;color:#26303a;text-align:right}
.mp-info-invite-row{margin:0}
.mp-info-invite-row input{min-width:0}

@media(max-width:700px){
  .mp-group-header{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:13px;border-radius:18px}
  .mp-group-avatar-big{width:58px;height:58px;border-radius:17px}
  .mp-group-head-info h2{font-size:18px}
  .mp-group-head-info p{font-size:12px;max-width:none}
  .mp-group-head-info small{font-size:10px;display:block;line-height:1.5}
  .mp-group-head-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .mp-group-head-actions .btn{width:100%;box-sizing:border-box;text-align:center;justify-content:center}
  .mp-group-info-hero{padding:15px;display:block}
  .mp-group-info-hero-main{gap:12px;align-items:flex-start}
  .mp-group-info-avatar{width:70px;height:70px;border-radius:19px;flex-basis:70px}
  .mp-group-info-hero h1{font-size:21px}
  .mp-group-info-hero p{font-size:12px}
  .mp-group-info-actions{margin-top:13px;display:grid;grid-template-columns:1fr 1fr}
  .mp-group-info-actions .btn{width:100%;box-sizing:border-box;text-align:center}
  .mp-info-members-grid{grid-template-columns:1fr}
  .mp-group-info-card{padding:14px}
  .mp-info-section-head{align-items:flex-start}
  .mp-info-section-head h2{font-size:17px}
  .mp-info-setting-row{font-size:12px}
  .mp-info-setting-row b{font-size:12px}
  .mp-info-invite-row{display:flex;flex-direction:column}
  .mp-info-invite-row .btn{width:100%}
}

/* MeetingPart group chat — expanded group controls */
.mp-group-search{display:flex;gap:6px;align-items:center;margin:0 8px;flex:1;max-width:420px}.mp-group-search input{min-width:0;flex:1;height:34px;padding:6px 10px}.mp-group-search .btn{height:34px;white-space:nowrap}
.mp-pinned-panel{padding:9px 14px;border-bottom:1px solid #edf0f3;background:#fffdf3;display:flex;align-items:center;gap:9px;overflow:auto}.mp-pinned-panel>b{white-space:nowrap}.mp-pinned-panel a{display:flex;flex-direction:column;gap:1px;min-width:150px;padding:6px 9px;border:1px solid #f0e4b2;border-radius:10px;color:inherit;text-decoration:none;background:#fff}.mp-pinned-panel a span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-pinned-panel a small{color:#8b94a1;font-size:10px}
.mp-bubble-author{display:flex;align-items:center;gap:8px}.mp-bubble-author small{margin-left:auto;color:#8a94a3;font-size:10px}.mp-message-actions{display:flex;align-items:center;gap:5px;margin-top:5px;opacity:.88}.mp-message-actions>details>summary,.mp-message-actions>form>button,.mp-msg-tools summary{border:0;background:transparent;cursor:pointer;color:#667085;font-size:11px;padding:3px 5px;border-radius:7px}.mp-message-actions button:hover,.mp-message-actions summary:hover{background:#f1f4f6}.mp-reaction-picker{display:flex;gap:2px;padding:4px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 5px 18px rgba(0,0,0,.08)}.mp-reaction-picker form{margin:0}.mp-reaction-picker button{border:0;background:transparent;font-size:18px;cursor:pointer;padding:3px}.mp-reaction-summary{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.mp-reaction-summary span{background:#fff;border:1px solid #e4e8ec;border-radius:999px;padding:2px 7px;font-size:11px}.mp-reply-preview{margin:5px 0;padding:5px 8px;border-left:3px solid #0ea5e9;background:#f5fafc;color:#667085;font-size:11px;border-radius:5px}.mp-reply-compose{display:flex;align-items:center;gap:7px;padding:6px 12px;background:#eef8fc;border-top:1px solid #d9eef5;font-size:12px}.mp-reply-compose span{flex:1}.mp-reply-compose button{border:0;background:transparent;font-size:18px;cursor:pointer}.mp-group-media{display:block;margin:7px 0;border-radius:12px;overflow:hidden;max-width:420px}.mp-group-media img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;background:#f2f4f6}.mp-group-media video{display:block;width:100%;max-height:420px;background:#111}.mp-group-file{display:inline-flex;align-items:center;gap:7px;margin:6px 0;padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #e1e7ec;color:inherit;text-decoration:none}.mp-readers{font-size:10px;color:#7b8491;margin-top:4px}.mp-readers summary{cursor:pointer}.mp-readers span{display:block;margin-top:3px;line-height:1.5}.mp-compose-tools{display:flex;align-items:center}.mp-attach-btn{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#f1f4f6;font-size:18px}.mp-inline-form{margin:0}.mp-user-picker{position:relative}.mp-user-picker>input{width:100%;box-sizing:border-box}.mp-user-results{position:absolute;left:0;right:0;top:100%;z-index:30;background:#fff;border:1px solid #dfe5ea;border-radius:12px;box-shadow:0 10px 28px rgba(16,24,40,.12);overflow:hidden;margin-top:4px}.mp-user-result{width:100%;display:flex;align-items:center;gap:9px;border:0;background:#fff;text-align:left;padding:9px 10px;cursor:pointer}.mp-user-result:hover{background:#f1f8fb}.mp-user-result img{width:38px;height:38px;border-radius:50%;object-fit:cover}.mp-user-result span{min-width:0}.mp-user-result b,.mp-user-result small{display:block}.mp-user-result small{color:#7b8491;margin-top:2px}.mp-user-no-result{padding:12px;color:#7b8491;font-size:12px}.mp-selected-users{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}.mp-selected-user{display:inline-flex;align-items:center;gap:6px;padding:5px 7px;border-radius:999px;background:#eef8fc;border:1px solid #d8edf5}.mp-selected-user img{width:28px;height:28px;border-radius:50%;object-fit:cover}.mp-selected-user span{font-size:11px}.mp-selected-user small{display:block;color:#7b8491}.mp-selected-user button{border:0;background:transparent;cursor:pointer;font-size:17px;color:#6b7280}.mp-add-member-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mp-add-member-form .btn{white-space:nowrap}.mp-pending-member{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #edf0f3}.mp-pending-member .mp-member{flex:1;border:0}.mp-member-admin{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 0;border-bottom:1px solid #edf0f3}.mp-member-admin .mp-member{flex:1;border:0;min-width:220px}.mp-mini-select{height:34px;border:1px solid #d8dee6;border-radius:9px;padding:0 7px;background:#fff}.mp-audit-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf0f3;font-size:12px}.mp-audit-row small{white-space:nowrap;color:#8a94a3}.mp-danger-zone{margin-top:20px;padding:14px;border:1px solid #f0c8c8;background:#fff7f7;border-radius:12px}.mp-danger-zone h3{margin:0 0 5px}.mp-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.mp-stats-grid>div{background:#f7fafc;border:1px solid #edf0f3;border-radius:12px;padding:13px;text-align:center}.mp-stats-grid b{display:block;font-size:23px}.mp-stats-grid span{display:block;color:#7b8491;font-size:11px;margin-top:3px}.mp-search-results-bar{padding:9px 13px;background:#f7fafc;border-bottom:1px solid #edf0f3;font-size:12px;color:#667085}.mp-search-results-bar a{float:right}.mp-join-question{display:block;text-align:left;margin:14px 0}.mp-join-question textarea{width:100%;box-sizing:border-box;margin-top:6px;min-height:80px}.mp-side-head{display:flex;align-items:center;justify-content:space-between}.mp-side-head h3{margin:0}.mp-side-head a{font-size:11px;color:#0ea5e9}.mp-group-info-card .mp-stats-grid{margin-top:5px}
@media(max-width:700px){.mp-group-search{order:3;grid-column:1/-1;width:100%;max-width:none;margin:2px 0 0}.mp-group-chatbar{flex-wrap:wrap;gap:6px}.mp-group-chatbar>small{margin-left:auto}.mp-message-actions{opacity:1;flex-wrap:wrap}.mp-bubble{max-width:92%}.mp-group-media{max-width:100%}.mp-stats-grid{grid-template-columns:repeat(3,1fr);gap:6px}.mp-stats-grid>div{padding:9px 5px}.mp-stats-grid b{font-size:18px}.mp-stats-grid span{font-size:9px}.mp-member-admin{align-items:flex-start}.mp-member-admin .mp-member{min-width:calc(100% - 4px)}.mp-member-admin form{flex:1}.mp-member-admin form .btn,.mp-member-admin form select{width:100%;box-sizing:border-box}.mp-pending-member{flex-wrap:wrap}.mp-pending-member .mp-member{min-width:100%}.mp-add-member-form{align-items:stretch}.mp-add-member-form .btn{width:100%}.mp-invite-duration{display:flex;flex-direction:column}.mp-invite-duration select,.mp-invite-duration .btn{width:100%;box-sizing:border-box}.mp-group-header .mp-inline-form{display:block}.mp-group-header .mp-inline-form .btn{width:100%}.mp-pinned-panel{align-items:flex-start;flex-direction:column}.mp-pinned-panel a{width:100%;box-sizing:border-box}.mp-info-section-head{flex-wrap:wrap}.mp-selected-user{max-width:100%}.mp-selected-user span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mp-audit-row{display:block}.mp-audit-row small{display:block;margin-top:3px}.mp-readers span{max-height:60px;overflow:auto}.mp-compose{padding:8px}.mp-attach-btn{width:34px;height:34px}.mp-send{width:39px;height:39px}.mp-group-join{margin:15px auto}}

/* MeetingPart — group settings refinement */
.mp-group-settings{padding:0;max-width:920px;margin:0 auto;background:transparent}
.mp-group-settings>h2{margin:0 0 14px;padding:16px 18px;background:#fff;border:1px solid #e8edf2;border-radius:16px;font-size:19px;box-shadow:0 2px 10px rgba(24,32,42,.04)}
.mp-group-settings>form{background:#fff;border:1px solid #e8edf2;border-radius:16px;padding:18px;box-shadow:0 2px 10px rgba(24,32,42,.035)}
.mp-group-settings form>label{margin:0 0 14px;font-size:13px;color:#374151}
.mp-group-settings input:not([type=checkbox]),.mp-group-settings textarea,.mp-group-settings select{border:1px solid #dfe5ea;border-radius:10px;background:#fbfcfd;padding:10px 12px;outline:none;transition:border-color .15s,box-shadow .15s}
.mp-group-settings input:not([type=checkbox]):focus,.mp-group-settings textarea:focus,.mp-group-settings select:focus{border-color:#9fd8e8;box-shadow:0 0 0 3px rgba(14,165,233,.08);background:#fff}
.mp-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.mp-settings-grid label{display:flex;align-items:center;gap:9px;padding:12px 13px;background:#f8fafc;border:1px solid #edf1f4;border-radius:11px;font-size:12px;color:#4b5563}
.mp-settings-grid label input{margin:0;accent-color:#0ea5e9}
.mp-group-settings>form>.btn{border:0;border-radius:10px;padding:10px 16px;font-size:13px;box-shadow:none}
.mp-invite-box,.mp-add-member-box,.mp-pending{background:#fff;border:1px solid #e8edf2;border-radius:16px;padding:16px;margin-top:12px;box-shadow:0 2px 10px rgba(24,32,42,.03)}
.mp-invite-box>b,.mp-add-member-box h3,.mp-pending h3{font-size:14px;color:#27303b}
.mp-invite-box p,.mp-add-member-box p{font-size:12px}
.mp-invite-row input{border-radius:10px!important;background:#f8fafc!important}
.mp-invite-duration{display:flex;gap:8px;align-items:center;margin-top:8px}
.mp-invite-duration select{height:38px;min-width:130px}
.mp-invite-duration .btn,.mp-add-member-form .btn,.mp-pending-member .btn,.mp-member-admin .btn{border-radius:9px;font-size:11px;padding:8px 11px;box-shadow:none}
.mp-user-result{border-bottom:1px solid #f0f2f4;padding:10px 11px}
.mp-user-result:last-child{border-bottom:0}
.mp-selected-users{padding:2px 0}
.mp-selected-user{box-shadow:none}
.mp-danger-zone{background:#fffafa;border-radius:14px}
.mp-group-layout{grid-template-columns:minmax(0,1fr)}
.mp-group-chat{width:100%}
@media(max-width:700px){
 .mp-group-settings>h2{padding:14px;border-radius:14px;font-size:17px}
 .mp-group-settings>form,.mp-invite-box,.mp-add-member-box,.mp-pending{padding:13px;border-radius:14px}
 .mp-settings-grid{grid-template-columns:1fr;gap:7px}
 .mp-invite-duration{flex-direction:column;align-items:stretch}
 .mp-invite-duration select,.mp-invite-duration .btn{width:100%;box-sizing:border-box}
}

/* =========================================================
   MeetingPart — mobile messenger/group polish v2
   Visual-only refinement. Existing functionality preserved.
   ========================================================= */

/* Group conversation header: compact, clean and touch friendly */
.mp-group-chatbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:#fff;
  border-bottom:1px solid #edf1f4;
}
.mp-group-chatbar>span{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:16px;
  font-weight:700;
  color:#202833;
}
.mp-group-chatbar>small{
  grid-column:1;
  color:#8a94a3;
  font-size:11px;
  margin-top:-5px;
}
.mp-group-search{
  grid-column:2;
  grid-row:1 / span 2;
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
}
.mp-group-search input{
  width:190px;
  height:40px;
  box-sizing:border-box;
  border:1px solid #e1e7ec;
  border-radius:12px;
  background:#fafcfd;
  padding:0 12px;
  outline:none;
  font-size:13px;
}
.mp-group-search input:focus{border-color:#a9dceb;background:#fff;box-shadow:0 0 0 3px rgba(14,165,233,.07)}
.mp-group-search .btn{height:40px;padding:0 15px;border-radius:12px;font-size:12px;box-shadow:none}

/* Header action buttons */

.mp-group-head-actions .btn{min-height:38px;border-radius:11px;padding:0 13px;font-size:12px;box-shadow:none}
.mp-group-head-actions .mp-inline-form{display:flex}

/* Settings: flatter cards, less visual noise */
.mp-group-settings{max-width:760px!important;margin:0 auto!important}
.mp-group-settings>h2{
  padding:14px 16px!important;
  margin-bottom:10px!important;
  border-radius:14px!important;
  font-size:17px!important;
  box-shadow:0 1px 5px rgba(24,32,42,.035)!important;
}
.mp-group-settings>form{
  padding:15px!important;
  border-radius:14px!important;
  box-shadow:0 1px 6px rgba(24,32,42,.03)!important;
}
.mp-group-settings form>label{
  display:block;
  margin:0 0 12px!important;
  font-size:12px!important;
  font-weight:600;
  color:#46505c;
}
.mp-group-settings form>label input:not([type=checkbox]),
.mp-group-settings form>label textarea{
  margin-top:6px;
}
.mp-group-settings textarea{min-height:78px!important}
.mp-settings-grid{gap:7px!important;margin:13px 0!important}
.mp-settings-grid label{
  min-height:48px;
  box-sizing:border-box;
  display:flex!important;
  align-items:center;
  gap:9px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  font-size:11px!important;
  line-height:1.35;
}
.mp-settings-grid label input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}
.mp-group-settings>form>.btn{min-height:40px;border-radius:11px!important;font-size:12px!important}

/* Invite / add member / audit sections */
.mp-invite-box,.mp-add-member-box,.mp-pending{
  padding:14px!important;
  margin-top:10px!important;
  border-radius:14px!important;
  box-shadow:0 1px 6px rgba(24,32,42,.025)!important;
}
.mp-add-member-box h3,.mp-pending h3,.mp-invite-box>b{font-size:13px!important}
.mp-add-member-form{gap:7px!important}
.mp-add-member-form input{min-height:40px;box-sizing:border-box;border-radius:11px!important}
.mp-add-member-form .btn{min-height:40px;border-radius:11px!important}

/* Member management: compact two-column action grid on mobile */
.mp-member-admin{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px!important;
  padding:12px 0!important;
  align-items:start!important;
}
.mp-member-admin .mp-member{
  grid-column:1 / -1;
  min-width:0!important;
  padding:0!important;
  border:0!important;
}
.mp-member-admin .mp-member img{width:42px;height:42px}
.mp-member-admin .mp-member>span{font-size:13px}
.mp-member-admin .mp-member small{font-size:10px;margin-top:2px}
.mp-member-admin form{
  margin:0!important;
  min-width:0;
}
.mp-member-admin form .btn,
.mp-member-admin form select{
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  border-radius:10px!important;
  font-size:11px!important;
  padding:0 10px!important;
  box-shadow:none!important;
}
.mp-member-admin form:has(.mp-mini-select){
  display:grid;
  grid-template-columns:1fr;
  gap:5px;
}
.mp-member-admin .mp-mini-select{height:38px!important}

/* Make action order visually consistent: primary role actions first, moderation second */
.mp-member-admin form:nth-of-type(n/**/+3){grid-column:auto}

.mp-audit-row{
  padding:10px 0!important;
  font-size:11px!important;
}
.mp-audit-row small{font-size:10px!important}

/* Group info cards */
.mp-group-info-page{display:flex;flex-direction:column;gap:10px}
.mp-group-info-hero{padding:14px!important;border-radius:16px!important}
.mp-group-info-card{padding:14px!important;border-radius:15px!important}
.mp-info-section-head{gap:8px!important}
.mp-info-section-head h2{font-size:15px!important;margin:0}
.mp-info-section-head p{font-size:10px!important;margin:3px 0 0}
.mp-info-member{padding:8px!important;border-radius:10px!important}
.mp-stats-grid>div{padding:10px!important;border-radius:11px!important}

/* Messenger top controls */
.mp-message-top-title{gap:7px!important}
.mp-message-top-title .btn{
  min-height:38px;
  border-radius:11px!important;
  padding:0 13px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
.mp-message-top-title b{font-size:19px!important}

/* Conversation list */
.mp-conv{min-height:64px}
.mp-conv-avatar{width:46px;height:46px;flex-basis:46px}
.mp-conv-body b{font-size:13px}
.mp-conv-body small{font-size:10px}

@media(max-width:700px){
  .mp-group-header{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr);
    gap:10px!important;
    padding:12px!important;
    align-items:center!important;
  }
  .mp-group-avatar-big{width:58px;height:58px;border-radius:16px}
  .mp-group-head-info h2{font-size:17px;margin-bottom:2px}
  .mp-group-head-info p{font-size:11px}
  .mp-group-head-info small{font-size:9px;line-height:1.35}
  .mp-group-head-actions{
    grid-column:1 / -1;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:7px!important;
    width:100%;
  }
  .mp-group-head-actions .btn,
  .mp-group-head-actions .mp-inline-form,
  .mp-group-head-actions .mp-inline-form .btn{
    width:100%;
    box-sizing:border-box;
  }
  .mp-group-head-actions .btn{min-height:38px;font-size:11px!important;padding:0 8px!important}

  .mp-group-chatbar{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:10px 11px;
  }
  .mp-group-chatbar>span{font-size:14px}
  .mp-group-chatbar>small{font-size:9px;margin-top:-3px}
  .mp-group-search{
    grid-column:1 / -1;
    grid-row:auto;
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:6px;
    margin-top:1px;
  }
  .mp-group-search input{width:100%;height:38px;font-size:12px;border-radius:11px}
  .mp-group-search .btn{height:38px;border-radius:11px;padding:0 14px}

  .mp-group-settings>h2{font-size:16px!important}
  .mp-group-settings>form{padding:12px!important}
  .mp-settings-grid{grid-template-columns:1fr!important}
  .mp-settings-grid label{min-height:46px;font-size:11px!important}

  .mp-member-admin{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px!important;
    padding:11px 0!important;
  }
  .mp-member-admin .mp-member{grid-column:1 / -1!important;margin-bottom:1px}
  .mp-member-admin form{width:100%}
  .mp-member-admin form .btn,
  .mp-member-admin form select{min-height:36px;font-size:10px!important;padding:0 7px!important}
  .mp-member-admin form:has(.mp-mini-select){
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:5px;
    grid-column:1 / -1;
  }
  .mp-member-admin form:has(.mp-mini-select) .mp-mini-select{width:100%}

  .mp-message-top{padding:11px!important;border-radius:16px!important}
  .mp-message-top-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:6px!important;align-items:center}
  .mp-message-top-title b{font-size:18px!important;margin-right:0!important}
  .mp-message-top-title .btn{min-height:36px!important;padding:0 10px!important;font-size:11px!important}
  .mp-top-people{gap:9px!important;padding-bottom:4px}
  .mp-top-person{min-width:61px!important;max-width:68px!important;font-size:10px!important}
  .mp-top-avatar,.mp-top-avatar img{width:50px!important;height:50px!important}

  .mp-conv-scroll{display:block!important;max-height:none!important;padding:4px!important;overflow:visible!important}
  .mp-conv{min-width:0!important;min-height:62px;padding:9px 8px!important;border-bottom:1px solid #f0f2f4;border-radius:10px!important}
  .mp-conv:last-child{border-bottom:0}
  .mp-conv-avatar{width:44px;height:44px;flex-basis:44px}
  .mp-conv-body b{font-size:13px}

  .mp-group-info-hero-main{gap:10px!important}
  .mp-group-info-avatar{width:62px!important;height:62px!important}
  .mp-group-info-hero h1{font-size:18px!important}
  .mp-group-info-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}
  .mp-group-info-actions .btn{width:100%;box-sizing:border-box;min-height:38px;border-radius:10px!important;font-size:11px!important}
}

/* =========================================================
   MeetingPart — refined mobile group UI v3
   Typography-first, compact buttons, balanced/symmetric layout.
   Visual only; functionality unchanged.
   ========================================================= */

/* Keep text comfortably readable */
.mp-group-settings,
.mp-group-settings label,
.mp-group-settings input,
.mp-group-settings textarea,
.mp-group-settings select,
.mp-member-admin,
.mp-member-admin button,
.mp-member-admin select,
.mp-audit-row,
.mp-group-chatbar,
.mp-group-search input,
.mp-group-search .btn{
  font-size:14px;
}

/* Buttons: natural width, never oversized blocks */
.mp-group-head-actions .btn,
.mp-group-head-actions .mp-inline-form .btn,
.mp-group-info-actions .btn,
.mp-group-settings > form > .btn,
.mp-invite-duration .btn,
.mp-add-member-form .btn,
.mp-pending-member .btn,
.mp-member-admin .btn,
.mp-member-admin select,
.mp-message-top-title .btn,
.mp-group-search .btn{
  width:auto !important;
  min-width:0 !important;
  max-width:100%;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  line-height:1.2;
  font-size:13px !important;
  font-weight:700;
  padding:9px 13px !important;
  min-height:38px !important;
  height:auto !important;
  border-radius:10px !important;
  box-shadow:none !important;
}

/* Main group header actions */
.mp-group-head-actions{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:8px !important;
  flex-wrap:wrap;
}
.mp-group-head-actions .mp-inline-form{display:flex !important;width:auto !important}

/* Chat header */
.mp-group-chatbar{
  align-items:center;
  padding:12px 14px;
}
.mp-group-chatbar>span{font-size:16px !important;font-weight:700}
.mp-group-chatbar>small{font-size:12px !important}
.mp-group-search{align-items:center}
.mp-group-search input{font-size:14px !important}

/* Settings form: clean labels and readable fields */
.mp-group-settings>h2{font-size:20px !important;font-weight:800}
.mp-group-settings form>label{
  font-size:14px !important;
  font-weight:700;
  color:#303945;
}
.mp-group-settings form>label small{font-size:12px !important;font-weight:500}
.mp-group-settings input:not([type=checkbox]),
.mp-group-settings textarea,
.mp-group-settings select{
  font-size:14px !important;
  min-height:44px;
}
.mp-group-settings textarea{min-height:100px !important}

/* Settings toggles: balanced rows, not giant buttons */
.mp-settings-grid{grid-template-columns:1fr 1fr !important;gap:10px !important}
.mp-settings-grid label{
  min-height:52px !important;
  padding:10px 12px !important;
  font-size:13px !important;
  font-weight:600;
  line-height:1.35;
  background:#f8fafc;
  border:1px solid #e7edf2;
  border-radius:12px !important;
}
.mp-settings-grid label input[type=checkbox]{width:19px !important;height:19px !important;flex:0 0 19px}

/* Member management: member card + compact natural-width actions */
.mp-member-admin{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:8px !important;
  padding:13px 0 !important;
  border-bottom:1px solid #edf1f4;
}
.mp-member-admin:last-child{border-bottom:0}
.mp-member-admin .mp-member{
  flex:1 1 100% !important;
  min-width:100% !important;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 !important;
  border:0 !important;
}
.mp-member-admin .mp-member img{width:46px !important;height:46px !important;flex:0 0 46px}
.mp-member-admin .mp-member>span{font-size:15px !important;font-weight:700;line-height:1.25}
.mp-member-admin .mp-member small{display:block;font-size:12px !important;line-height:1.35;color:#8a94a3}
.mp-member-admin form{
  width:auto !important;
  flex:0 0 auto !important;
  margin:0 !important;
  display:flex !important;
  align-items:center;
  gap:6px;
}
.mp-member-admin form .btn,
.mp-member-admin form select{
  width:auto !important;
  flex:0 0 auto !important;
  font-size:13px !important;
  min-height:38px !important;
}
.mp-member-admin form:has(.mp-mini-select){display:flex !important;gap:6px !important}
.mp-member-admin .mp-mini-select{height:38px !important;min-width:108px !important}

/* Invite/add-member controls */
.mp-add-member-form{display:flex !important;align-items:center;flex-wrap:wrap;gap:8px !important}
.mp-add-member-form input{flex:1 1 220px;min-height:44px !important;font-size:14px !important}
.mp-add-member-form .btn{flex:0 0 auto !important}
.mp-invite-duration{display:flex !important;align-items:center;gap:8px !important;flex-wrap:wrap}
.mp-invite-duration select{width:auto !important;min-width:145px;min-height:40px;font-size:13px !important}

/* Audit log */
.mp-audit-row{font-size:13px !important;padding:11px 0 !important}
.mp-audit-row small{font-size:11px !important}

/* Mobile: keep everything readable, compact and symmetric */
@media(max-width:700px){
  .mp-group-header{
    grid-template-columns:64px minmax(0,1fr) !important;
    gap:12px !important;
    padding:14px !important;
  }
  .mp-group-avatar-big{width:64px !important;height:64px !important;border-radius:15px !important}
  .mp-group-head-info h2{font-size:20px !important;line-height:1.15 !important}
  .mp-group-head-info p{font-size:13px !important}
  .mp-group-head-info small{font-size:11px !important;line-height:1.45 !important}

  .mp-group-head-actions{
    grid-column:1 / -1 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:8px !important;
  }
  .mp-group-head-actions .btn,
  .mp-group-head-actions .mp-inline-form,
  .mp-group-head-actions .mp-inline-form .btn{
    width:auto !important;
  }
  .mp-group-head-actions .btn{font-size:13px !important;padding:9px 13px !important}

  .mp-group-chatbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
    padding:12px 13px !important;
  }
  .mp-group-chatbar>span{font-size:15px !important}
  .mp-group-chatbar>small{font-size:11px !important}
  .mp-group-search{
    grid-column:1 / -1 !important;
    width:100% !important;
    display:flex !important;
    align-items:center;
    gap:7px !important;
    margin-top:2px !important;
  }
  .mp-group-search input{height:42px !important;font-size:14px !important;flex:1 1 auto}
  .mp-group-search .btn{height:42px !important;padding:9px 14px !important;font-size:13px !important}

  .mp-group-settings>h2{font-size:19px !important;padding:14px !important}
  .mp-group-settings>form{padding:15px !important}
  .mp-group-settings form>label{font-size:14px !important;margin-bottom:14px !important}
  .mp-group-settings input:not([type=checkbox]),
  .mp-group-settings textarea,
  .mp-group-settings select{font-size:14px !important}
  .mp-settings-grid{grid-template-columns:1fr !important;gap:8px !important}
  .mp-settings-grid label{min-height:52px !important;font-size:13px !important;padding:10px 12px !important}
  .mp-group-settings>form>.btn{font-size:14px !important;padding:10px 16px !important}

  .mp-invite-box,.mp-add-member-box,.mp-pending{padding:14px !important}
  .mp-add-member-box h3,.mp-pending h3,.mp-invite-box>b{font-size:15px !important}
  .mp-add-member-form input{flex:1 1 100% !important;width:100% !important}
  .mp-add-member-form .btn{margin-left:auto}

  .mp-member-admin{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    padding:14px 0 !important;
  }
  .mp-member-admin .mp-member{
    flex:1 1 100% !important;
    min-width:100% !important;
    margin-bottom:3px !important;
  }
  .mp-member-admin .mp-member img{width:44px !important;height:44px !important;flex-basis:44px}
  .mp-member-admin .mp-member>span{font-size:14px !important}
  .mp-member-admin .mp-member small{font-size:11px !important}
  .mp-member-admin form{
    flex:0 0 auto !important;
    width:auto !important;
  }
  .mp-member-admin form .btn,
  .mp-member-admin form select{
    width:auto !important;
    min-height:38px !important;
    height:38px !important;
    font-size:12px !important;
    padding:8px 11px !important;
  }
  .mp-member-admin form:has(.mp-mini-select){
    flex:1 1 100% !important;
    display:flex !important;
    width:100% !important;
  }
  .mp-member-admin form:has(.mp-mini-select) .mp-mini-select{flex:1 1 auto !important;width:auto !important;min-width:0 !important}

  .mp-audit-row{font-size:12px !important}
  .mp-audit-row small{font-size:10px !important}

  .mp-group-info-hero h1{font-size:20px !important}
  .mp-group-info-actions{display:flex !important;flex-wrap:wrap !important;justify-content:center !important;gap:8px !important}
  .mp-group-info-actions .btn{width:auto !important;min-height:40px !important;font-size:13px !important;padding:9px 13px !important}

  .mp-message-top-title b{font-size:20px !important}
  .mp-message-top-title .btn{font-size:13px !important;padding:9px 12px !important}
}

/* Private chat: compact actions + presence */
.mp-presence-avatar{position:relative;display:inline-block;flex:0 0 auto}
.mp-presence-avatar .mp-online-dot{position:absolute;right:0;top:0;bottom:auto;width:11px;height:11px;border-radius:50%;background:#c7cdd4;border:2px solid #fff;box-shadow:0 0 0 1px #dfe4e8;z-index:3}
.mp-presence-avatar .mp-online-dot.is-online{background:#19c463;box-shadow:0 0 0 1px #fff}
.mp-chat-avatar.mp-presence-avatar .mp-online-dot{width:13px;height:13px;right:0;top:0;bottom:auto}
.mp-private-search{margin-left:auto;display:flex;gap:6px;align-items:center;max-width:310px}
.mp-private-search input{width:180px;margin:0;height:38px;font-size:13px}
.mp-private-search .btn{height:38px;padding:7px 11px;font-size:13px}
.mp-private-msg-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:5px}
.mp-text-action{border:0;background:transparent;color:#667085;padding:3px 6px;font:inherit;font-size:12px;cursor:pointer;border-radius:7px;white-space:nowrap}
.mp-text-action:hover{background:#eef6fa;color:#0789c9}
.mp-inline-form{display:inline-flex;margin:0}
.mp-reply-preview{border-left:3px solid #09a9e9;background:#f4f8fa;border-radius:7px;padding:5px 8px;margin-bottom:7px;color:#667085;font-size:12px}
.mp-private-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.mp-private-reactions span{background:#f3f5f7;border:1px solid #e1e5ea;border-radius:999px;padding:2px 7px;font-size:12px}
.mp-private-media{display:block;max-width:min(300px,100%);max-height:360px;border-radius:10px;margin:4px 0 7px;object-fit:contain}
.mp-private-file{display:inline-flex;align-items:center;gap:6px;background:#f3f6f8;border:1px solid #e1e5ea;border-radius:9px;padding:8px 10px;margin:4px 0 7px;color:#2f5263;font-weight:700}
.mp-pinned{box-shadow:0 0 0 2px #ffe6a6 inset}
.mp-read-state{font-size:11px;color:#0789c9}
.mp-attach-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;cursor:pointer;color:#0789c9;font-size:20px;flex:0 0 36px}
.mp-attach-btn:hover{background:#eef8fc}
.mp-reply-compose{display:flex;align-items:center;gap:8px;background:#f3f7f9;border-left:3px solid #09a9e9;border-radius:8px;padding:7px 10px;margin:7px 0 0;color:#667085;font-size:13px}
.mp-reply-compose span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-reply-compose button{border:0!important;background:transparent!important;font-size:21px!important;line-height:1!important;color:#667085!important;cursor:pointer!important;padding:2px 4px!important;min-width:24px!important;min-height:24px!important;display:flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:800px){
 .mp-private-search{display:none}
 .mp-private-msg-actions{gap:2px}
 .mp-text-action{font-size:12px;padding:3px 5px}
 .mp-private-media{max-width:240px;max-height:300px}
 .mp-chat-header .mp-presence-avatar .mp-online-dot{width:12px;height:12px}
}
/* Private chat reaction form: keep the reaction button inline and reliable on mobile. */
.mp-reaction-form{display:inline-flex!important;margin:0!important;padding:0!important}
.mp-reaction-form .mp-private-react{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px}

/* Private chat presence + reaction polish */
.mp-top-avatar,.mp-conv-avatar,.mp-chat-avatar{position:relative}
.mp-reaction-details{position:relative}
.mp-private-reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.mp-private-reactions span{background:#fff;border:1px solid #e4e8ec;border-radius:999px;padding:2px 7px;font-size:11px;line-height:1.2}

/* Private chat fixes: keep presence dots fully visible and place status under the name. */
.mp-conv-avatar.mp-presence-avatar{overflow:visible!important;position:relative!important}
.mp-conv-avatar.mp-presence-avatar img{border-radius:50%;display:block;width:100%;height:100%;object-fit:cover}
.mp-conv-avatar.mp-presence-avatar .mp-online-dot{right:0!important;bottom:0!important;top:auto!important;width:11px!important;height:11px!important}
.mp-chat-head-info{min-width:0;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;line-height:1.2}
.mp-chat-head-info>a{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-chat-head-info small{display:block;line-height:1.2}

/* Private chat — compact reply action and media composer */
.mp-private-reply{border:0!important;background:transparent!important;box-shadow:none!important;color:#667085!important;font-size:13px!important;line-height:1.2!important;padding:2px 4px!important;font-weight:400!important;cursor:pointer;display:inline-flex!important;align-items:center!important;gap:3px!important}
.mp-private-reply:hover{background:#f1f4f6!important;color:#0789c9!important}
.mp-private-reply span{font-size:17px!important;line-height:1!important;font-family:Arial,sans-serif!important;vertical-align:0!important}
.mp-compose{display:flex;align-items:center;gap:5px;background:#fff;border-top:1px solid #edf1f4;padding:6px 7px!important}
.mp-attach-btn{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:50%;font-size:18px!important;background:#eef8fc}
.mp-compose textarea{min-height:32px!important;height:32px!important;max-height:90px;resize:none;border-radius:17px!important;padding:7px 11px!important;line-height:18px!important}
.mp-send{width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;padding:0!important;font-size:17px!important}
.mp-private-media{max-width:min(260px,100%);max-height:300px;border-radius:9px}
@media(max-width:800px){.mp-message-actions{gap:2px!important}.mp-private-reply{font-size:13px!important;padding:2px 4px!important}.mp-private-reply span{font-size:17px!important}.mp-reply-compose{padding:6px 9px!important}.mp-reply-compose button{font-size:21px!important;min-width:26px!important;min-height:26px!important}.mp-compose{gap:4px;padding:5px 6px!important}.mp-attach-btn{width:31px!important;height:31px!important;flex-basis:31px!important}.mp-send{width:34px!important;height:34px!important;min-width:34px!important}.mp-compose textarea{font-size:14px!important}}

/* =========================================================
   MeetingPart Messenger v2 — conversation list polish
   Only visual/UX additions; existing chat mechanics remain intact.
   ========================================================= */
.mp-message-top{border:1px solid #e7edf2!important;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;box-shadow:0 8px 26px rgba(24,32,42,.055)!important;padding:15px 16px 12px!important}
.mp-message-top-title{display:flex!important;align-items:center!important;gap:9px!important;margin-bottom:8px!important}
.mp-message-top-title b{font-size:22px!important;letter-spacing:-.2px}
.mp-title-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#eaf8fd;font-size:18px;box-shadow:inset 0 0 0 1px #d9eef6}
.mp-title-count{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#f1f5f8;color:#687586;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.mp-head-icon{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#f5f7f9;color:#617080;font-size:19px;font-weight:800;transition:.15s}
.mp-head-icon:hover{background:#eaf8fd;color:#0789c9;transform:rotate(25deg)}
.mp-group-create-btn{margin-left:0!important}
.mp-top-section-label{display:flex;align-items:baseline;gap:8px;padding:1px 2px 6px;color:#24303b}
.mp-top-section-label span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.55px}
.mp-top-section-label small{color:#8a94a3;font-size:10px}
.mp-top-people{gap:12px!important;padding:2px 2px 4px!important;scrollbar-width:none}
.mp-top-people::-webkit-scrollbar{display:none}
.mp-top-person{min-width:70px;max-width:84px!important;font-size:11px!important;font-weight:700}
.mp-top-avatar{width:58px!important;height:58px!important}
.mp-top-avatar img{width:58px!important;height:58px!important;border:3px solid #fff!important;box-shadow:0 0 0 2px #d8e9f2,0 3px 10px rgba(24,32,42,.08)!important}
.mp-top-avatar .mp-online-dot{right:-1px!important;top:-1px!important;width:13px!important;height:13px!important;border-width:2px!important}
.mp-top-avatar .mp-online-dot.is-online{background:#19c463!important;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(25,196,99,.10)!important}
.mp-conversations{border:1px solid #e7edf2!important;box-shadow:0 8px 26px rgba(24,32,42,.05)!important}
.mp-conv-head{padding:13px 14px 10px!important;align-items:center!important}
.mp-conv-head>div{min-width:0}
.mp-conv-head h2{font-size:18px!important;margin:0!important;line-height:1.15}
.mp-conv-head small{display:block;color:#8a94a3;font-size:10px;margin-top:2px}
.mp-conv-online-count{display:inline-flex;align-items:center;gap:5px;color:#687586;font-size:10px;font-weight:700;white-space:nowrap}
.mp-conv-online-count i{width:7px;height:7px;border-radius:50%;background:#19c463;box-shadow:0 0 0 3px rgba(25,196,99,.10)}
.mp-conv-search{margin:0 10px 6px;height:38px;border:1px solid #e1e8ee;background:#f7fafc;border-radius:12px;display:flex;align-items:center;gap:7px;padding:0 10px;transition:.15s}
.mp-conv-search:focus-within{background:#fff;border-color:#9ddbf0;box-shadow:0 0 0 3px rgba(14,165,233,.08)}
.mp-conv-search>span{font-size:20px;line-height:1;color:#82909d;transform:rotate(-15deg)}
.mp-conv-search input{border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0!important;height:100%!important;font-size:12px!important;color:#25313d}
.mp-conv-search input::placeholder{color:#98a3af}
.mp-conv-scroll{padding:4px 7px 9px!important;scrollbar-width:thin}
.mp-conv{min-height:64px;border:1px solid transparent!important;border-radius:14px!important;padding:8px!important;margin:2px 0!important;transition:background .14s,border-color .14s,transform .14s,box-shadow .14s!important}
.mp-conv:hover{background:#f7fbfd!important;border-color:#e6f0f5!important;transform:none!important}
.mp-conv.active{background:#eef9fd!important;border-color:#cfeef8!important;box-shadow:0 2px 8px rgba(14,165,233,.055)!important}
.mp-conv-avatar{width:48px!important;height:48px!important;flex-basis:48px!important;box-shadow:0 1px 4px rgba(24,32,42,.08)}
.mp-conv-body{gap:2px!important;min-width:0!important;align-self:center}
.mp-conv-body b{font-size:13px;line-height:1.25}
.mp-conv-body small{font-size:11px!important;line-height:1.25!important;color:#7b8794!important}
.mp-conv-side{margin-left:auto;min-width:38px;display:flex;align-items:flex-end;flex-direction:column;justify-content:center;gap:4px;padding-left:5px}
.mp-conv-side>small,.mp-conv-time{font-size:9px;color:#9aa4af;white-space:nowrap}
.mp-conv-badge{font-size:8px!important;padding:2px 6px;border-radius:999px;background:#f0f4f7;color:#74808d!important;line-height:1.1}
.mp-conv.has-unread .mp-conv-body b{font-weight:850;color:#18202a}
.mp-conv.has-unread .mp-conv-body small{color:#4d6471!important;font-weight:650}
.mp-unread{min-width:19px!important;height:19px!important;font-size:9px!important;font-weight:800;box-shadow:0 0 0 2px #fff}
.mp-system-conv .system-message-icon{box-shadow:0 0 0 1px #dcebf2}
.mp-empty{padding:20px 10px!important;text-align:center;font-size:12px}

@media(max-width:700px){
  .mp-message-top{padding:12px 11px 9px!important;border-radius:18px!important}
  .mp-message-top-title b{font-size:19px!important}
  .mp-title-icon{width:32px;height:32px}
  .mp-head-icon{width:32px;height:32px}
  .mp-group-create-btn{font-size:12px!important;padding:8px 10px!important}
  .mp-top-section-label{padding-bottom:5px}
  .mp-top-section-label span{font-size:10px}
  .mp-top-section-label small{font-size:9px}
  .mp-top-people{gap:9px!important}
  .mp-top-person{min-width:64px!important;max-width:74px!important}
  .mp-top-avatar,.mp-top-avatar img{width:54px!important;height:54px!important}
  .mp-top-avatar .mp-online-dot{width:12px!important;height:12px!important}
  .mp-conv-search{height:36px;margin:0 9px 5px}
  .mp-conv{min-height:62px;padding:8px 7px!important}
  .mp-conv-avatar{width:50px!important;height:50px!important;flex-basis:50px!important}
  .mp-conv-body b{font-size:14px}
  .mp-conv-body small{font-size:11px!important}
  .mp-conv-side{min-width:34px}
  .mp-conv-side>small{font-size:8px}
  .mp-conv-online-count{font-size:9px}
}


/* MeetingPart Messenger v3 — premium private chat polish + restored presence/story fixes */
@media(max-width:800px){
  /* If there are no stories, keep the Story creation card on the left. */
  .facebook-storybar:has(.add-story-card:only-child){justify-content:flex-start!important;}
}
/* Conversation presence: 1 o'clock position, fully outside the avatar edge. */
.mp-conv-avatar.mp-presence-avatar{overflow:visible!important;position:relative!important;}
.mp-conv-avatar.mp-presence-avatar .mp-online-dot{right:-1px!important;top:-1px!important;bottom:auto!important;width:12px!important;height:12px!important;z-index:5!important;}
.mp-chat-header .mp-chat-avatar.mp-presence-avatar{overflow:visible!important;position:relative!important;z-index:2;}
.mp-chat-header .mp-chat-avatar.mp-presence-avatar img{display:block;border-radius:50%;width:100%;height:100%;object-fit:cover;}
.mp-chat-header .mp-chat-avatar.mp-presence-avatar .mp-online-dot{right:-2px!important;top:-2px!important;bottom:auto!important;width:13px!important;height:13px!important;z-index:10!important;}

/* Premium chat header */
.mp-chat-header{background:rgba(255,255,255,.96);box-shadow:0 2px 10px rgba(20,35,50,.035);position:relative;z-index:3;}
.mp-chat-head-info b{font-size:15px!important;line-height:1.15;}
.mp-chat-head-info small{font-size:11px!important;color:#7a8794!important;}
.mp-chat-head-info small:has(#mpFriendStatus){font-weight:600;}

/* Premium bubbles and message actions */
.mp-bubble{padding:10px 12px 8px!important;border-radius:18px 18px 18px 6px!important;box-shadow:0 3px 12px rgba(24,32,42,.045)!important;}
.mp-bubble.mine{border-radius:18px 18px 6px 18px!important;background:linear-gradient(135deg,#eaf8fd 0%,#e8f5ff 100%)!important;border-color:#c9eaf6!important;}
.mp-bubble p{font-size:14px;line-height:1.42;}
.mp-bubble>small{font-size:10px!important;}
.mp-message-actions{display:flex!important;align-items:center!important;gap:2px!important;flex-wrap:wrap!important;margin-top:5px!important;}
.mp-message-actions button,.mp-message-actions summary{border-radius:8px!important;}
.mp-reaction-details summary{list-style:none!important;cursor:pointer!important;padding:3px 5px!important;font-size:15px!important;}
.mp-reaction-details summary::-webkit-details-marker{display:none!important;}
.mp-reaction-picker{display:flex!important;gap:2px!important;align-items:center!important;padding:5px!important;background:#fff!important;border:1px solid #e4e9ee!important;border-radius:13px!important;box-shadow:0 8px 22px rgba(20,35,50,.12)!important;}
.mp-reaction-picker button{border:0!important;background:transparent!important;font-size:19px!important;width:30px!important;height:30px!important;border-radius:9px!important;cursor:pointer!important;}
.mp-reaction-picker button:hover{background:#f1f7fa!important;transform:scale(1.08);}
/* Reaction picker: open in the fixed top area marked in the chat UI, fully inside the viewport. */
.mp-reaction-details[open] .mp-reaction-picker[data-mp-portaled="1"]{position:fixed!important;left:50%!important;top:10px!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 16px)!important;z-index:100000!important;}
.mp-private-reactions{margin-top:5px!important;}
.mp-private-reactions span{background:#fff!important;border-color:#dfe7ed!important;box-shadow:0 1px 3px rgba(20,35,50,.05);}

/* Reply preview + composer */
.mp-reply-compose{margin:7px 7px 0!important;border:1px solid #dcebf2!important;border-left:4px solid #0ea5e9!important;border-radius:11px!important;background:#f5fafc!important;}
.mp-attachment-preview{margin:6px 7px 0;padding:7px 9px;border:1px solid #dfe8ee;border-radius:10px;background:#f7fafc;color:#536270;font-size:11px;}
.mp-attachment-preview-row{display:flex;align-items:center;gap:6px;min-width:0;}
.mp-attachment-preview-row span{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650;}
.mp-attachment-preview-row small{color:#8a96a2;white-space:nowrap;}
.mp-attachment-preview-row button{border:0;background:transparent;color:#7b8794;font-size:18px;line-height:1;cursor:pointer;padding:1px 4px;}
.mp-emoji-btn{width:32px!important;height:32px!important;min-width:32px!important;border:0!important;border-radius:50%!important;background:#f0f5f7!important;color:#586876!important;font-size:17px!important;cursor:pointer!important;padding:0!important;}
.mp-emoji-btn:hover{background:#e6f5fa!important;color:#0789c9!important;}
.mp-emoji-panel{display:flex;flex-wrap:wrap;gap:3px;position:absolute;right:8px;bottom:52px;z-index:30;width:min(280px,calc(100% - 16px));padding:8px;background:#fff;border:1px solid #e1e7ec;border-radius:14px;box-shadow:0 12px 30px rgba(20,35,50,.16);}
.mp-emoji-panel button{border:0;background:transparent;border-radius:9px;width:34px;height:34px;font-size:20px;cursor:pointer;}
.mp-emoji-panel button:hover{background:#f1f5f7;}
.mp-message-main{position:relative!important;}
.mp-compose{position:relative!important;box-shadow:0 -2px 10px rgba(20,35,50,.025);}
.mp-compose textarea:focus{border-color:#8dd5ed!important;box-shadow:0 0 0 3px rgba(14,165,233,.08)!important;outline:0!important;}
.mp-send{background:linear-gradient(135deg,#08a7e5,#168cf0)!important;box-shadow:0 4px 10px rgba(14,165,233,.20)!important;transition:transform .12s,box-shadow .12s!important;}
.mp-send:hover{transform:translateY(-1px)!important;box-shadow:0 6px 14px rgba(14,165,233,.25)!important;}
@media(max-width:700px){
  .mp-chat-header{min-height:66px!important;padding:9px 11px!important;}
  .mp-chat-header .mp-chat-avatar.mp-presence-avatar .mp-online-dot{right:-2px!important;top:-2px!important;}
  .mp-bubble{max-width:84%!important;padding:9px 11px 7px!important;}
  .mp-bubble p{font-size:14px!important;}
  .mp-emoji-panel{right:5px;bottom:49px;width:245px;}
  .mp-emoji-panel button{width:31px;height:31px;font-size:18px;}
}


/* V4 fixes: keep add-story card on the left when it is the only story. */
@media (max-width:800px){
  .facebook-storybar{
    justify-content:flex-start!important;
    align-items:flex-start!important;
  }
  .facebook-storybar .add-story-card{
    margin-left:0!important;
    margin-right:0!important;
  }
}

/* V4 fix: the emoji picker must actually disappear when hidden. */
.mp-emoji-panel[hidden]{
  display:none!important;
}
.mp-emoji-panel{
  animation:mpEmojiIn .12s ease-out;
}
@keyframes mpEmojiIn{from{opacity:0;transform:translateY(5px) scale(.98)}to{opacity:1;transform:none}}

/* V5 shared chat polish: date separators apply to private and group chats. */
.mp-date-separator{display:flex;justify-content:center;align-items:center;margin:12px 0 9px;position:relative;clear:both;}
.mp-date-separator:before{content:"";position:absolute;left:0;right:0;height:1px;background:#edf1f4;z-index:0;}
.mp-date-separator span{position:relative;z-index:1;padding:4px 10px;border:1px solid #e3e9ee;border-radius:999px;background:#fff;color:#7c8792;font-size:10px;font-weight:700;box-shadow:0 2px 7px rgba(20,35,50,.04);}
.mp-group-body .mp-date-separator{margin-left:4px;margin-right:4px;}
@media(max-width:700px){.mp-date-separator{margin:10px 0 7px}.mp-date-separator span{font-size:9px;padding:3px 9px}.mp-group-body .mp-date-separator{margin-left:0;margin-right:0}}

/* MeetingPart v6 — voice messages and unified media controls */
.mp-voice-btn{width:34px;height:34px;border:0;border-radius:50%;background:#f1f4f6;cursor:pointer;font-size:17px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;transition:.15s ease}.mp-voice-btn:hover{background:#e7f6fb}.mp-voice-btn.is-recording{background:#ffe8e8;transform:scale(1.04)}
.mp-audio-message{display:flex;align-items:center;gap:8px;margin:7px 0;padding:7px 9px;border-radius:13px;background:rgba(255,255,255,.78);border:1px solid rgba(220,227,233,.9);max-width:330px}.mp-audio-message span{font-size:20px}.mp-audio-message audio{width:250px;max-width:100%;height:34px}.mp-bubble.mine .mp-audio-message{background:rgba(255,255,255,.68)}
@media(max-width:700px){.mp-audio-message{max-width:100%;padding:6px 8px}.mp-audio-message audio{width:220px;height:32px}.mp-voice-btn{width:32px;height:32px;font-size:16px}}

/* MeetingPart v7 — faster messaging UX, voice permission state and quick reactions */
.mp-voice-state{font-size:11px;color:#5f6b76;white-space:nowrap;max-width:210px;overflow:hidden;text-overflow:ellipsis;align-self:center}
.mp-voice-btn.is-recording{animation:mpVoicePulse 1s infinite}
@keyframes mpVoicePulse{50%{transform:scale(1.12);box-shadow:0 0 0 5px rgba(220,60,70,.12)}}
.mp-quick-reaction-menu{position:fixed;z-index:99999;display:flex;gap:4px;padding:6px 8px;background:rgba(24,28,34,.96);border:1px solid rgba(255,255,255,.12);border-radius:22px;box-shadow:0 10px 30px rgba(0,0,0,.28);backdrop-filter:blur(10px)}
.mp-quick-reaction-menu[hidden]{display:none!important}.mp-quick-reaction-menu button{border:0;background:transparent;color:#fff;width:34px;height:34px;border-radius:50%;font-size:18px;cursor:pointer}.mp-quick-reaction-menu button:hover{background:rgba(255,255,255,.12);transform:scale(1.08)}
@media(max-width:700px){.mp-voice-state{position:absolute;bottom:48px;left:8px;right:8px;background:rgba(255,255,255,.96);border:1px solid #e5e9ee;border-radius:12px;padding:6px 9px;box-shadow:0 4px 16px rgba(0,0,0,.08)}.mp-quick-reaction-menu{gap:2px;padding:5px 6px}.mp-quick-reaction-menu button{width:31px;height:31px;font-size:17px}}

/* MeetingPart v9 message tools */
.mp-selection-bar{position:sticky;bottom:8px;z-index:30;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px;padding:9px 12px;border:1px solid rgba(60,100,180,.18);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(0,0,0,.12);backdrop-filter:blur(12px)}
.mp-selection-bar button{border:0;border-radius:10px;padding:7px 10px;background:#f1f4f8;cursor:pointer}.mp-selection-bar button:last-child{margin-left:auto;font-size:20px;background:transparent}.mp-bubble.mp-selected{outline:2px solid #4c7cff;outline-offset:2px}
.mp-msg-copy,.mp-msg-share,.mp-msg-select{border:0;background:transparent;border-radius:8px;padding:5px 7px;cursor:pointer;font-size:12px}.mp-msg-copy:hover,.mp-msg-share:hover,.mp-msg-select:hover{background:#eef3ff}
.mp-mention-box{position:absolute;z-index:50;left:8px;right:8px;bottom:54px;max-height:210px;overflow:auto;border:1px solid #e1e6ee;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 10px 30px rgba(0,0,0,.16);padding:5px}.mp-mention-box[hidden]{display:none}.mp-mention-box button{width:100%;display:flex;align-items:center;gap:9px;padding:8px;border:0;background:transparent;border-radius:10px;text-align:left;cursor:pointer}.mp-mention-box button:hover{background:#f3f6fa}.mp-mention-box img{width:34px;height:34px;border-radius:50%;object-fit:cover}.mp-mention-box span{display:flex;flex-direction:column}.mp-mention-box small{opacity:.65}
.mp-bubble p a{color:#3d70e8;text-decoration:underline;text-underline-offset:2px}.mp-private-reactions,.mp-reaction-summary{display:flex;gap:5px;flex-wrap:wrap}.mp-private-reactions span,.mp-reaction-summary span{border-radius:12px;padding:2px 7px;background:#f1f4f8;font-size:12px}
@media(max-width:700px){.mp-selection-bar{margin:5px 6px;padding:8px;gap:5px}.mp-selection-bar button{padding:6px 8px;font-size:12px}.mp-msg-copy,.mp-msg-share,.mp-msg-select{font-size:11px;padding:4px 5px}}

/* v12 message composer and compact message menu */
.mp-bubble{position:relative;}
.mp-msg-more{position:absolute;top:7px;right:7px;z-index:5;}
.mp-msg-more>summary{list-style:none;cursor:pointer;width:28px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#7b8491;background:rgba(255,255,255,.82);font-weight:700;letter-spacing:1px;}
.mp-msg-more>summary::-webkit-details-marker{display:none;}
.mp-more-menu{min-width:150px;padding:5px;background:#fff;border:1px solid #e4e8ec;border-radius:11px;box-shadow:0 10px 28px rgba(16,24,40,.14);display:flex;flex-direction:column;gap:2px;}
.mp-more-menu button,.mp-more-menu form button{width:100%;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:8px;font-size:12px;color:#344054;cursor:pointer;}
.mp-more-menu button:hover,.mp-more-menu form button:hover{background:#f3f6f8;}
.mp-message-actions{padding-right:38px;}
.mp-readers{display:none!important;}
.mp-bubble-author small{font-size:9px;opacity:.7;}
.mp-bubble>small{font-size:9px!important;opacity:.68;}
.mp-compose textarea{min-height:78px!important;height:78px!important;max-height:126px!important;line-height:1.45!important;padding-top:10px!important;padding-bottom:10px!important;resize:none!important;}
@media(max-width:700px){.mp-msg-more{top:5px;right:5px}.mp-more-menu{min-width:165px}.mp-more-menu button,.mp-more-menu form button{padding:9px 10px}.mp-message-actions{padding-right:34px}.mp-compose textarea{min-height:78px!important;height:78px!important;max-height:126px!important}}

/* Private chat pagination / stable viewport */
.mp-older-loader{flex:0 0 auto;align-self:center;padding:6px 12px;margin:0 0 2px;color:#7b8491;font-size:11px;border:1px solid #e4e9ee;border-radius:999px;background:#fff}
.mp-chat-body{overscroll-behavior-y:auto!important;scroll-behavior:auto}
.mp-msg-more[open]>summary{background:#eef8fc!important;color:#0b8fc4!important}

/* Fix: mobile private chat must have a real scrolling viewport */
@media (max-width:700px){
  .mp-messenger-grid.mp-chat-selected .mp-message-main{
    height:calc(100dvh - 235px)!important;
    min-height:calc(100dvh - 235px)!important;
    max-height:calc(100dvh - 235px)!important;
    overflow:hidden!important;
  }
  .mp-messenger-grid.mp-chat-selected .mp-chat-body{
    min-height:0!important;
    height:auto!important;
    flex:1 1 auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}

/* v3: compact chat, unobstructed message menu, expanded mobile viewport */
.mp-selection-bar[hidden],.mp-reply-compose[hidden],.mp-attachment-preview[hidden]{display:none!important;}
.mp-bubble{overflow:visible!important;}
.mp-bubble:has(.mp-msg-more[open]){z-index:25!important;}
.mp-message-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;min-height:30px!important;padding:4px 0 0!important;position:relative!important;}
.mp-reply-btn{position:relative!important;z-index:1!important;}
.mp-msg-more{position:relative!important;top:auto!important;right:auto!important;z-index:12!important;margin:0!important;flex:0 0 auto!important;}
.mp-msg-more>summary{display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:30px!important;padding:0!important;border-radius:9px!important;list-style:none!important;cursor:pointer!important;box-sizing:border-box!important;background:#f3f6f8!important;}
.mp-msg-more>summary::-webkit-details-marker{display:none!important;}
.mp-msg-more>summary::marker{display:none!important;}
.mp-msg-more:not([open])>.mp-more-menu{display:none!important;}
.mp-msg-more[open]{z-index:40!important;}
.mp-msg-more[open]>.mp-more-menu{position:absolute!important;right:0!important;bottom:calc(100% + 7px)!important;top:auto!important;z-index:41!important;width:max-content!important;max-width:min(250px,78vw)!important;min-width:180px!important;background:#fff!important;border:1px solid #e2e8ee!important;border-radius:13px!important;box-shadow:0 10px 30px rgba(24,32,42,.16)!important;padding:5px!important;}
.mp-msg-more .mp-more-menu button,.mp-msg-more .mp-more-menu form button{display:flex!important;width:100%!important;box-sizing:border-box!important;align-items:center!important;gap:7px!important;border:0!important;background:transparent!important;border-radius:9px!important;padding:9px 10px!important;text-align:left!important;white-space:nowrap!important;cursor:pointer!important;}
.mp-msg-more .mp-more-menu button:hover,.mp-msg-more .mp-more-menu form button:hover{background:#f2f7fa!important;}
.mp-message-actions .mp-msg-more .mp-more-menu form{display:block!important;margin:0!important;}
.mp-chat-body{min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;}
@media(max-width:700px){
 .mp-messenger-grid.mp-chat-selected .mp-message-main{height:calc(100dvh - 170px)!important;min-height:calc(100dvh - 170px)!important;max-height:calc(100dvh - 170px)!important;}
 .mp-messenger-grid.mp-chat-selected .mp-chat-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;}
 .mp-bubble{max-width:92%!important;}
 .mp-chat-body{padding:9px!important;}
 .mp-msg-more[open]>.mp-more-menu{max-width:74vw!important;}
}

/* Group chat: independent scroll viewport + clean message actions */
.mp-group-chat{overflow:hidden!important;}
.mp-group-body{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior-y:auto!important;}
@media(max-width:700px){.mp-group-chat{height:calc(100dvh - 70px)!important;min-height:calc(100dvh - 70px)!important;max-height:calc(100dvh - 70px)!important;}.mp-group-body{flex:1 1 auto!important;height:auto!important;min-height:0!important;}.mp-message-actions{gap:8px!important;}.mp-msg-more[open]>.mp-more-menu{max-width:78vw!important;min-width:175px!important;}}

/* MeetingPart v5 — unified private + group chat presentation */
@media (max-width:700px) {

  .mp-messenger-grid .mp-chat-selected .mp-message-main,
  .mp-group-chat {
    height: calc(100dvh + 30px) !important;
    min-height: calc(100dvh + 30px) !important;
    max-height: calc(100dvh + 30px) !important;
    overflow: hidden !important;
  }

  .mp-messenger-grid .mp-chat-selected .mp-chat-body,
  .mp-group-body {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

}
.mp-reaction-details>summary{list-style:none!important;cursor:pointer!important;}.mp-reaction-details>summary::-webkit-details-marker{display:none!important;}.mp-reaction-details[open]{z-index:35!important;position:relative!important;}.mp-reaction-details[open] .mp-reaction-picker{position:fixed!important;left:50%!important;right:auto!important;top:10px!important;bottom:auto!important;transform:translateX(-50%)!important;z-index:99999!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box!important;}.mp-group-body .mp-bubble{overflow:visible!important;}

/* MeetingPart v6 — group chat scroll + larger viewport + clean message menu */
.mp-group-layout{min-height:0!important;}
.mp-group-chat{min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
.mp-group-body{flex:1 1 auto!important;min-height:320px!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior-y:auto!important;}
.mp-group-body .mp-bubble{flex:0 0 auto!important;}
.mp-group-chat .mp-compose{flex:0 0 auto!important;}
.mp-message-actions{align-items:center!important;gap:6px!important;min-height:30px!important;padding:4px 0 0!important;}
.mp-message-actions>details>summary,.mp-message-actions>button,.mp-message-actions>form>button{height:30px!important;min-width:30px!important;box-sizing:border-box!important;border:1px solid #e2e8ee!important;background:#fff!important;border-radius:9px!important;padding:0 8px!important;font-size:11px!important;color:#667085!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;}
.mp-message-actions>details>summary:hover,.mp-message-actions>button:hover,.mp-message-actions>form>button:hover{background:#f3f8fa!important;border-color:#cfe3ea!important;color:#167c9e!important;}
.mp-msg-more{position:relative!important;margin-left:auto!important;flex:0 0 auto!important;}
.mp-msg-more>summary{width:34px!important;min-width:34px!important;padding:0!important;font-size:14px!important;letter-spacing:1px!important;background:#f6f8fa!important;}
.mp-msg-more[open]>.mp-more-menu{position:absolute!important;right:0!important;bottom:calc(100% + 8px)!important;top:auto!important;z-index:100!important;width:220px!important;min-width:220px!important;max-width:calc(100vw - 32px)!important;padding:6px!important;display:flex!important;flex-direction:column!important;gap:2px!important;background:#fff!important;border:1px solid #dfe6eb!important;border-radius:14px!important;box-shadow:0 14px 35px rgba(16,24,40,.18)!important;}
.mp-msg-more .mp-more-menu button,.mp-msg-more .mp-more-menu form button{min-height:38px!important;height:auto!important;width:100%!important;display:flex!important;align-items:center!important;gap:9px!important;padding:8px 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#344054!important;font-size:12px!important;text-align:left!important;white-space:normal!important;}

.mp-msg-more .mp-more-menu form{margin:0!important;padding:0!important;width:100%!important;}
.mp-msg-more .mp-more-menu form input[name="message"]{width:100%!important;box-sizing:border-box!important;height:36px!important;margin:2px 0 5px!important;border:1px solid #dfe6eb!important;border-radius:9px!important;padding:0 9px!important;font-size:12px!important;}
.mp-msg-more .mp-more-menu form:has(input[name="message"]){padding:5px!important;border-top:1px solid #edf1f4!important;margin-top:3px!important;}
@media(max-width:700px){
 .mp-group-chat{height:68dvh!important;min-height:480px!important;max-height:680px!important;}
 .mp-group-body{min-height:0!important;height:auto!important;}
 .mp-group-chatbar{flex:0 0 auto!important;}
 .mp-message-actions>details>summary,.mp-message-actions>button,.mp-message-actions>form>button{min-width:32px!important;height:32px!important;}
 .mp-msg-more[open]>.mp-more-menu{width:210px!important;min-width:210px!important;max-width:calc(100vw - 24px)!important;bottom:calc(100% + 6px)!important;}
}

/* MeetingPart v7 — extend both private and group chat viewport to the requested blue-line area */
@media (max-width:700px){
  .mp-messenger-grid.mp-chat-selected .mp-message-main,
  .mp-group-chat{
    height:calc(100dvh - 110px)!important;
    min-height:calc(100dvh - 110px)!important;
    max-height:calc(100dvh - 110px)!important;
  }
  .mp-messenger-grid.mp-chat-selected .mp-chat-body,
  .mp-group-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}

/* MeetingPart v8 — same chat height and compact reply button in private + group chats */
@media(max-width:700px){
  .mp-messenger-grid.mp-chat-selected .mp-message-main,
  .mp-group-chat{
    height:calc(100dvh - 120px)!important;
    min-height:calc(100dvh - 120px)!important;
    max-height:calc(100dvh - 120px)!important;
  }
  .mp-messenger-grid.mp-chat-selected .mp-chat-body,
  .mp-group-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}
.mp-message-actions .mp-reply-btn{
  height:30px!important;
  min-height:30px!important;
  min-width:86px!important;
  padding:0 11px!important;
  border:1px solid #e2e8ee!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#667085!important;
  font-size:11px!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.mp-message-actions .mp-reply-btn span{font-size:13px!important;line-height:1!important;}
.mp-message-actions .mp-reply-btn:hover{background:#f3f8fa!important;border-color:#cfe3ea!important;color:#167c9e!important;}


/* MeetingPart v9 — restore desktop message composer interaction.
   Keep mobile viewport rules unchanged; ensure desktop chat body and composer
   have a real flex layout and remain above any decorative layers. */
@media (min-width:701px){
  .mp-message-main,
  .mp-group-chat{
    height:650px!important;
    min-height:650px!important;
    max-height:650px!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .mp-chat-body,
  .mp-group-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    pointer-events:auto!important;
  }
  .mp-compose{
    position:relative!important;
    z-index:60!important;
    flex:0 0 auto!important;
    pointer-events:auto!important;
  }
  .mp-compose textarea{
    position:relative!important;
    z-index:61!important;
    pointer-events:auto!important;
    user-select:text!important;
    cursor:text!important;
  }
  .mp-compose button,
  .mp-compose label{
    position:relative!important;
    z-index:61!important;
    pointer-events:auto!important;
  }
}


/* MeetingPart v10 — faster boundary handoff + reaction picker opens at the tapped reaction button. */
.mp-reaction-details{position:relative!important;}
.mp-reaction-details[open] .mp-reaction-picker{
  position:absolute!important;
  left:0!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(100% + 7px)!important;
  z-index:100000!important;
  max-width:calc(100vw - 16px)!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
.mp-reaction-picker[data-mp-portaled="1"]{
  position:fixed!important;
  margin:0!important;
  transform:none!important;
  bottom:auto!important;
}
@media(max-width:700px){
  .mp-reaction-picker{gap:2px!important;padding:5px!important;}
  .mp-reaction-picker button{width:30px!important;height:30px!important;font-size:19px!important;}
}

/* Portaled reaction picker: fixed top-center, matching the marked position in both chats. */
.mp-reaction-picker[data-mp-portaled="1"]{position:fixed!important;left:50%!important;top:10px!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 16px)!important;z-index:100000!important;}


/* MeetingPart v11 — final chat boundary handoff + fixed reaction position */
.mp-chat-body,.mp-group-body{overscroll-behavior-y:auto!important;scroll-behavior:auto!important;}
.mp-reaction-picker[data-mp-portaled="1"]{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translateX(-50%)!important;
  z-index:100000!important;
  margin:0!important;
  box-sizing:border-box!important;
  max-width:calc(100vw - 16px)!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
  .mp-reaction-picker[data-mp-portaled="1"]{padding:7px 8px!important;gap:4px!important;border-radius:14px!important;}
  .mp-reaction-picker[data-mp-portaled="1"] button{width:40px!important;height:40px!important;min-width:40px!important;font-size:24px!important;line-height:1!important;}
}

/* MeetingPart v12 — definitive mobile chat handoff + emoji position. */
@media (max-width:700px){
  .mp-chat-body,
  .mp-group-body{
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
  }
}

/* The requested emoji position: centered in the top area, immediately above
   the message-search row shown in the mobile screenshot. */
.mp-reaction-picker[data-mp-portaled="1"]{
  position:fixed!important;
  left:50%!important;
  top:42px!important;
  right:auto!important;
  bottom:auto!important;
  transform:translateX(-50%)!important;
  z-index:100000!important;
  margin:0!important;
  box-sizing:border-box!important;
  max-width:calc(100vw - 16px)!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
  .mp-reaction-picker[data-mp-portaled="1"]{
    top:42px!important;
    padding:7px 8px!important;
    gap:4px!important;
    border-radius:14px!important;
  }
  .mp-reaction-picker[data-mp-portaled="1"] button{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    font-size:24px!important;
    line-height:1!important;
  }
}

/* MeetingPart v13 — reaction picker follows the tapped message. */
.mp-reaction-picker[data-mp-portaled="1"]{
  position:fixed!important;
  left:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:100000!important;
  margin:0!important;
  max-width:calc(100vw - 16px)!important;
  box-sizing:border-box!important;
}

/* Natural page handoff at the end of the message viewport. */
.mp-chat-body,.mp-group-body{
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
}

/* MeetingPart v14 — reaction result/close fix + maximum page handoff. */
.mp-reaction-picker[data-mp-portaled="1"]{
  position:fixed!important;
  z-index:100000!important;
  pointer-events:auto!important;
}
.mp-reaction-picker[data-mp-portaled="1"] button{
  pointer-events:auto!important;
}


/* MeetingPart v15 — single reaction picker + compact mobile size. */
.mp-reaction-details[open] ~ .mp-reaction-details[open]{z-index:34!important;}
.mp-reaction-picker[data-mp-portaled="1"]{
  max-width:calc(100vw - 24px)!important;
  padding:5px 6px!important;
  gap:2px!important;
  border-radius:12px!important;
}
.mp-reaction-picker[data-mp-portaled="1"] button{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  font-size:20px!important;
  line-height:1!important;
  padding:0!important;
}
@media(max-width:700px){
  .mp-reaction-picker[data-mp-portaled="1"] button{width:34px!important;min-width:34px!important;height:34px!important;font-size:20px!important;}
}

/* Unified private/group chat -> page handoff. Keep the message viewport scrollable,
   while the shared touch handler transfers continued upward swipes to the page. */
.mp-chat-body,.mp-group-body{overscroll-behavior-y:auto!important;touch-action:pan-y!important;}
.mp-chat-body,.mp-group-body .mp-bubble{overflow:visible!important;}

/* MeetingPart — definitive group/private chat scroll isolation */

.mp-group-chat{
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.mp-group-body{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  scrollbar-width:thin;
}

@media(max-width:700px){
  .mp-group-layout{min-height:0!important;}
  .mp-group-chat{
    min-height:0!important;
    overflow:hidden!important;
  }
  .mp-group-body{
    min-height:160px!important;
    flex:1 1 auto!important;
    overflow-y:scroll!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}

/* MeetingPart — desktop homepage column restoration */
@media (min-width:801px){
  .home-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 330px!important;
    gap:18px!important;
    width:min(1100px,calc(100% - 24px))!important;
    margin:22px auto!important;
    align-items:start!important;
  }
  .home-layout>main{
    grid-column:1!important;
    min-width:0!important;
    width:auto!important;
  }
  .home-layout>.home-sidebar{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:auto!important;
    display:block!important;
  }
}

/* MeetingPart V4 — restore mobile/tablet homepage stacking.
   The homepage sidebar must move below the main content on narrower screens.
   This override intentionally does not alter the chat/message layout. */
@media (max-width:900px){
  .home-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:calc(100% - 12px)!important;
    gap:10px!important;
    margin:12px auto!important;
  }
  .home-layout>main,
  .home-layout>.home-sidebar{
    grid-column:1!important;
    min-width:0!important;
    width:auto!important;
  }
  .home-layout>main{grid-row:1!important;}
  .home-layout>.home-sidebar{grid-row:2!important;order:2!important;}
}

@media (min-width:901px){
  .home-layout{
    grid-template-columns:minmax(0,1fr) 330px!important;
  }
  .home-layout>main{grid-column:1!important;grid-row:1!important;}
  .home-layout>.home-sidebar{grid-column:2!important;grid-row:1!important;}
}

/* MeetingPart V6 — definitive private chat desktop scroll fix.
   A later legacy rule set overflow:visible on .mp-chat-body, which cancels
   the real message viewport. Keep the private message area as the sole
   vertical scroll container without changing the homepage layout. */
.mp-messenger-grid.mp-chat-selected{
  min-height:0!important;
}
.mp-messenger-grid.mp-chat-selected .mp-message-main{
  min-height:0!important;
  height:650px!important;
  max-height:650px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.mp-messenger-grid.mp-chat-selected .mp-chat-body{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
}
@media(max-width:700px){
  .mp-messenger-grid.mp-chat-selected .mp-message-main{
    height:calc(100dvh - 120px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 120px)!important;
  }
  .mp-messenger-grid.mp-chat-selected .mp-chat-body{
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}
/* V10 — group chat uses the exact same desktop shell as private chat.
   Keep the shared .mp-messenger-grid/.mp-conversations/.mp-message-main
   geometry; group-specific rules only style the small header actions. */
@media (min-width:701px){
  .mp-group-messenger-layout{
    display:grid!important;
    grid-template-columns:310px minmax(0,1fr)!important;
    gap:14px!important;
    min-height:650px!important;
  }
  .mp-group-messenger-layout .mp-conversations{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    height:650px!important;
    max-height:650px!important;
    overflow:hidden!important;
  }
  .mp-group-messenger-layout .mp-conversations .mp-conv-scroll{
    height:calc(650px - 110px)!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  .mp-group-messenger-layout .mp-message-main{
    min-height:650px!important;
    height:650px!important;
    max-height:650px!important;
    padding:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .mp-group-messenger-layout .mp-chat-header{
    flex:0 0 auto!important;
    min-height:72px!important;
    box-sizing:border-box!important;
  }
  .mp-group-messenger-layout .mp-group-chat-head-actions{
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-width:0!important;
    flex:0 0 auto!important;
  }
  .mp-group-messenger-layout .mp-group-search{
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    flex:0 1 auto!important;
  }
  .mp-group-messenger-layout .mp-group-search input{
    width:170px!important;
    max-width:18vw!important;
    box-sizing:border-box!important;
  }
  .mp-group-messenger-layout .mp-group-chat-head-actions>a.btn{
    min-width:38px!important;
    height:38px!important;
    padding:0 10px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
  .mp-group-messenger-layout .mp-group-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}

@media (max-width:700px){
  .mp-group-messenger-layout{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    min-height:0!important;
  }
  .mp-group-messenger-layout .mp-conversations{order:1!important;width:100%!important;}
  .mp-group-messenger-layout .mp-message-main{order:2!important;width:100%!important;}
  .mp-group-messenger-layout .mp-conv-scroll{
    display:flex!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    gap:6px!important;
    max-height:none!important;
    padding:6px!important;
  }
  .mp-group-messenger-layout .mp-conv{min-width:180px!important;}
  .mp-group-messenger-layout .mp-group-chat-head-actions{
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
  }
  .mp-group-messenger-layout .mp-group-search{display:none!important;}
  .mp-group-messenger-layout .mp-group-chat-head-actions>a.btn{
    min-width:36px!important;
    height:36px!important;
    padding:0 8px!important;
  }
}

/* V11 — group conversation is deliberately identical to the private-message shell. */
.mp-group-page > .mp-messenger-grid.mp-chat-selected{
  width:100%;
  min-width:0;
}
.mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-conversations,
.mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-message-main{
  min-width:0;
}
.mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-message-main{
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.mp-group-page .mp-chat-header .mp-private-search{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex:0 1 auto!important;
}
.mp-group-page .mp-chat-header .mp-private-search input{
  width:180px!important;
  max-width:22vw!important;
}
.mp-group-page .mp-chat-body.mp-group-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
@media(max-width:700px){
  .mp-group-page .mp-message-top{display:block!important;}
  .mp-group-page > .mp-messenger-grid.mp-chat-selected{display:block!important;min-height:0!important;}
  .mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-conversations{display:none!important;}
  .mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-message-main{display:flex!important;min-height:calc(100vh - 235px)!important;height:calc(100dvh - 170px)!important;max-height:calc(100dvh - 170px)!important;border-radius:18px!important;}
  .mp-group-page .mp-chat-header .mp-private-search{display:none!important;}
  .mp-group-page .mp-chat-body.mp-group-body{height:auto!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;}
}

/* V13 — mobile private + group message windows: taller viewport */
@media (max-width:700px){
  /* Private chat */
  .mp-messenger-grid.mp-chat-selected .mp-message-main{
    height:calc(100dvh - 100px)!important;
    min-height:calc(100dvh - 100px)!important;
    max-height:calc(100dvh - 100px)!important;
  }
  .mp-messenger-grid.mp-chat-selected .mp-chat-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }

  /* Group chat — use the same height as private chat */
  .mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-message-main,
  .mp-group-messenger-layout .mp-message-main{
    height:calc(100dvh - 100px)!important;
    min-height:calc(100dvh - 100px)!important;
    max-height:calc(100dvh - 100px)!important;
  }
  .mp-group-page .mp-chat-body.mp-group-body,
  .mp-group-messenger-layout .mp-group-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}

/* Final mobile chat height correction — private + group */
@media (max-width:700px){
  .mp-messenger-grid.mp-chat-selected .mp-message-main,
  .mp-group-chat,
  .mp-group-page > .mp-messenger-grid.mp-chat-selected > .mp-message-main{
    height:calc(100dvh - 70px)!important;
    min-height:calc(100dvh - 70px)!important;
    max-height:calc(100dvh - 70px)!important;
  }

  .mp-messenger-grid.mp-chat-selected .mp-message-main,
  .mp-group-chat{
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }

  .mp-messenger-grid.mp-chat-selected .mp-chat-body,
  .mp-group-page .mp-chat-body.mp-group-body,
  .mp-group-body{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
  }
}


/* MeetingPart — final visual/responsive polish (additive; preserves existing rules). */



.card{min-width:0;box-sizing:border-box}
button,.btn,input,textarea,select{font:inherit}
img,video{max-width:100%}
.facebook-stories-card{overflow:visible!important}
.facebook-storybar{padding-top:12px!important;margin-top:-2px!important;overflow-y:visible!important}
.facebook-storybar .story-card-media{margin-top:0!important}
.facebook-storybar .story-add-plus{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important}
.profile-card .profile-actions{overflow-x:auto!important;scrollbar-width:thin}
.post-menu-popover{box-sizing:border-box}

/* Premium story controls: pause is isolated from left/right navigation zones. */
.story-play-toggle{position:relative!important;z-index:100!important;width:42px!important;height:42px!important;min-width:42px!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:50%!important;background:rgba(0,0,0,.62)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;cursor:pointer!important;box-shadow:0 5px 18px rgba(0,0,0,.28)!important;pointer-events:auto!important}
.story-touch-zone{z-index:20!important}
.story-top{z-index:90!important;pointer-events:none}
.story-top>*{pointer-events:auto}
.story-progress{z-index:95!important}

/* Cleaner common controls and cards on desktop. */
.home-layout{align-items:start}
.home-layout main,.home-sidebar{min-width:0}
.home-sidebar .card,.home-layout main>.card{overflow:visible}
.btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box}
@media(min-width:801px){
 .wrap{width:min(1180px,calc(100% - 32px))}
 .home-layout{width:min(1180px,calc(100% - 32px));margin-left:auto;margin-right:auto}
 .facebook-post{margin-bottom:14px}
 .profile-layout{min-width:0}
}
@media(max-width:800px){
 .wrap{width:calc(100% - 12px);max-width:none}
 .home-layout{width:calc(100% - 12px);max-width:none}
 .card{max-width:100%}
 .btn{min-height:40px}
 .story-play-toggle{width:40px!important;height:40px!important;min-width:40px!important}
 .facebook-stories-card{padding-top:14px!important}
 .facebook-storybar{padding-top:12px!important}
}
@media(max-width:420px){
 .facebook-storybar{gap:4px!important}
 .facebook-storybar .story-card{flex-basis:82px!important;min-width:82px!important;max-width:82px!important}
 .facebook-storybar .story-card-media{width:72px!important;height:72px!important}
 .facebook-storybar .story-card .story-name{width:82px!important}
}



/* 2026-10-03 targeted fixes — preserve existing rules, only override requested UI issues. */
.facebook-stories-card{padding-top:16px!important;overflow:hidden!important}
.facebook-storybar{padding-top:6px!important;padding-bottom:5px!important;overflow-x:auto!important;overflow-y:hidden!important}
.facebook-storybar .story-card{overflow:visible!important}
.facebook-storybar .story-card-media{overflow:hidden!important}
.facebook-storybar .story-add-plus{left:50%!important;top:27px!important;bottom:auto!important;transform:translateX(-50%)!important;margin:0!important}
.profile-card .profile-stats{align-items:stretch!important}
.profile-card .profile-stat{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-height:70px!important;padding:7px 6px!important}
.profile-card .profile-stat strong{display:flex!important;align-items:center!important;justify-content:center!important;font-size:25px!important;line-height:1!important}
.profile-card .profile-stat b{display:block!important;font-size:17px!important;line-height:1.1!important;color:#18202a!important}
.notification-avatar-wrap{position:relative!important}
.notification-unread-dot{left:auto!important;right:1px!important;top:1px!important;width:9px!important;height:9px!important;z-index:4!important}
.notification-type-icon{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important}
@media(max-width:800px){
 .facebook-stories-card{padding-top:15px!important}
 .facebook-storybar{padding-top:6px!important}
 .facebook-storybar .story-add-plus{top:25px!important}
 .profile-card .profile-stat{min-height:64px!important}
 .profile-card .profile-stat strong{font-size:23px!important}
 .profile-card .profile-stat b{font-size:16px!important}
}

/* Profile stats v2 — compact premium cards: emoji and count only. */
.profile-card .profile-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-top:13px!important}
.profile-card .profile-stat{min-width:0!important;min-height:58px!important;padding:7px 6px!important;border:1px solid #e7ebef!important;border-radius:12px!important;background:linear-gradient(180deg,#fff,#f8fafb)!important;box-shadow:0 2px 8px rgba(16,24,40,.05)!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;text-decoration:none!important;transition:transform .15s ease,box-shadow .15s ease!important}
.profile-card .profile-stat:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,24,40,.09)!important}
.profile-card .profile-stat strong{display:flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;line-height:1!important;flex:0 0 auto!important}
.profile-card .profile-stat b{display:block!important;font-size:16px!important;line-height:1!important;font-weight:800!important;color:#18202a!important;letter-spacing:-.2px!important}
.profile-card .profile-more-btn{position:relative!important;z-index:60!important;pointer-events:auto!important}
@media(max-width:800px){.profile-card .profile-stat{min-height:54px!important;padding:6px 5px!important;gap:5px!important}.profile-card .profile-stat b{font-size:15px!important}}


/* Profile v4: compact horizontal stats + reliable desktop more button */
.profile-card .profile-stats{display:flex!important;align-items:center!important;gap:7px!important;margin-top:12px!important;width:max-content!important;max-width:100%!important;}
.profile-card .profile-stat{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:72px!important;height:38px!important;box-sizing:border-box!important;padding:5px 9px!important;border:1px solid #e7ebef!important;border-radius:10px!important;background:#fff!important;text-decoration:none!important;box-shadow:0 1px 3px rgba(16,24,40,.05)!important;}
.profile-card .profile-stat-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:14px!important;line-height:1!important;width:17px!important;height:17px!important;}
.profile-card .profile-stat b{font-size:13px!important;line-height:1!important;font-weight:800!important;color:#202830!important;}
.profile-card .profile-more-wrap{position:relative!important;z-index:2147483000!important;pointer-events:auto!important;}
.profile-card .profile-more-btn{position:relative!important;z-index:2147483001!important;pointer-events:auto!important;touch-action:manipulation!important;}
@media(max-width:800px){.profile-card .profile-stats{gap:6px!important;width:100%!important;max-width:100%!important}.profile-card .profile-stat{min-width:0!important;flex:0 0 auto!important;height:36px!important;padding:5px 8px!important}.profile-card .profile-stat-icon{font-size:13px!important}.profile-card .profile-stat b{font-size:12px!important}}
/* V6 profile layout: narrower desktop shell, compact horizontal stats, preserve mobile proportions. */
@media(min-width:901px){
  .profile-card,
  .profile-layout{
    width:min(100%,1000px)!important;
    max-width:1000px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .profile-card .profile-info-actions{padding:18px 22px 20px!important}
  .profile-card .profile-identity-row{align-items:center!important}
  .profile-card .profile-stats{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:7px!important;
    width:auto!important;
    max-width:100%!important;
    margin-top:12px!important;
  }
  .profile-card .profile-stat{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:82px!important;
    min-width:82px!important;
    height:40px!important;
    min-height:40px!important;
    padding:5px 9px!important;
    gap:6px!important;
    border:1px solid #e5e9ee!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 1px 4px rgba(16,24,40,.055)!important;
  }
  .profile-card .profile-stat .profile-stat-icon{
    width:18px!important;height:18px!important;
    flex:0 0 18px!important;
    font-size:15px!important;
    line-height:1!important;
  }
  .profile-card .profile-stat b{
    font-size:14px!important;
    line-height:1!important;
    font-weight:800!important;
    color:#27313b!important;
  }
  .profile-card .profile-edit-inline .profile-edit-btn{
    height:40px!important;
    min-height:40px!important;
    padding:0 17px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:10px!important;
    box-sizing:border-box!important;
  }
}

@media(max-width:800px){
  /* Mobile: equal-width full-row cards, matching the earlier compact appearance. */
  .profile-card .profile-info-actions{padding:14px!important}
  .profile-card .profile-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    max-width:none!important;
    gap:8px!important;
    margin-top:12px!important;
  }
  .profile-card .profile-stat{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    min-height:48px!important;
    padding:5px 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border-radius:12px!important;
    box-sizing:border-box!important;
  }
  .profile-card .profile-stat .profile-stat-icon{font-size:17px!important;width:20px!important;height:20px!important;flex:0 0 20px!important}
  .profile-card .profile-stat b{font-size:14px!important}
  .profile-card .profile-edit-inline .profile-edit-btn{width:100%!important;min-height:44px!important}
}

/* V7 — desktop profil daha yığcam; mobil görünüşə toxunulmur. */
@media(min-width:801px){
  .profile-card,
  .profile-layout{
    width:min(100%,900px)!important;
    max-width:900px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .profile-card .profile-stats{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:7px!important;
    width:auto!important;
    max-width:100%!important;
    margin-top:12px!important;
  }
  .profile-card .profile-stat{
    width:76px!important;
    min-width:76px!important;
    height:40px!important;
    min-height:40px!important;
    padding:5px 8px!important;
    gap:5px!important;
    border-radius:10px!important;
    display:inline-flex!important;
    flex:0 0 76px!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .profile-card .profile-stat .profile-stat-icon{
    width:18px!important;height:18px!important;flex:0 0 18px!important;font-size:15px!important;
  }
  .profile-card .profile-stat b{font-size:14px!important;line-height:1!important}
  .profile-more-menu.mp-profile-more-portal{
    position:fixed!important;
    z-index:2147483647!important;
  }
}

/* V8 — Desktop profil genişliyi: əvvəlki yığcam görünüşdən bir qədər geniş.
   Mövcud post/dost/foto kartlarının quruluşuna toxunmur. Mobil dəyişmir. */
@media (min-width: 801px){
  .profile-card,
  .profile-layout,
  .profile-balance-card{
    width:min(100%,960px)!important;
    max-width:960px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
  }
  .profile-balance-card{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
}

/* Story ring top clearance — final targeted fix.
   The ring is not resized; extra space is added above the story row. */
.facebook-stories-card{
  padding-top:12px!important;
}
.facebook-storybar{
  padding-top:12px!important;
}
@media(max-width:800px){
  .facebook-stories-card{
    padding-top:10px!important;
  }
  .facebook-storybar{
    padding-top:10px!important;
  }
}


/* 2026-10-04 — MeetingPart Premium Story v2. Additive Story-card/composer polish. */
.facebook-stories-card{border-radius:18px!important;padding:14px 14px 12px!important;background:linear-gradient(180deg,#fff,#fbfcfd)!important}
.facebook-storybar{display:flex!important;gap:10px!important;align-items:flex-start!important;padding:2px 1px 3px!important;overflow-x:auto!important;scroll-snap-type:x proximity!important}
.facebook-storybar .story-card{flex:0 0 112px!important;min-width:112px!important;max-width:112px!important;text-align:left!important;text-decoration:none!important;scroll-snap-align:start!important}
.facebook-storybar .story-card-media{width:112px!important;height:150px!important;margin:0!important;border-radius:15px!important;box-shadow:0 5px 18px rgba(16,24,40,.12)!important;position:relative!important;background:#e9eef4!important}
.facebook-storybar .story-card-media img,.facebook-storybar .story-card-media video{width:100%!important;height:100%!important;object-fit:cover!important}
.facebook-storybar .story-unseen .story-card-media{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--mp-primary),0 8px 22px rgba(8,174,234,.22)!important}
.facebook-storybar .story-seen .story-card-media{box-shadow:0 0 0 2px #fff,0 0 0 3px #d3d9e1,0 7px 18px rgba(25,42,70,.10)!important}
.story-card-shade{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.02) 40%,rgba(0,0,0,.52));pointer-events:none}
.facebook-storybar .story-card-avatar{left:9px!important;top:auto!important;bottom:9px!important;width:30px!important;height:30px!important;border:2px solid #fff!important;z-index:3!important;box-shadow:0 3px 9px rgba(0,0,0,.25)!important}
.facebook-storybar .story-card-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
.facebook-storybar .story-name{width:112px!important;max-width:112px!important;margin:7px 0 0!important;font-size:12px!important;font-weight:750!important;color:#202936!important;text-align:left!important}
.facebook-storybar .add-story-card .story-card-media{background:linear-gradient(160deg,#dbeaf5,#f4f7fa)!important}
.facebook-storybar .add-story-card .story-add-media>img{opacity:.65!important;object-fit:cover!important}
.facebook-storybar .story-add-label{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;color:#fff;font-size:13px;font-weight:800;text-shadow:0 1px 4px rgba(0,0,0,.45)}
.facebook-storybar .story-add-plus{top:auto!important;left:50%!important;bottom:35px!important;transform:translateX(-50%)!important;width:34px!important;height:34px!important;font-size:22px!important;border-width:3px!important;z-index:4!important}
.story-card-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px 12px;text-align:center;font-weight:800;font-size:14px;line-height:1.35;color:#fff;background:linear-gradient(145deg,#0aa9e9,#8d4de8 55%,#e6248a);word-break:break-word;z-index:1}
.premium-story-create .card{border-radius:20px!important;padding:20px!important}.story-create-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.story-create-head h1{margin:0 0 3px}.story-create-badge{font-size:10px;font-weight:900;letter-spacing:.12em;padding:7px 9px;border-radius:999px;background:#eef8fd;color:#087fba}.story-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#f2f5f8;border-radius:13px;margin:14px 0}.story-mode-tabs button{border:0;background:transparent;border-radius:10px;padding:10px;font-weight:800;cursor:pointer}.story-mode-tabs button.is-active{background:#fff;box-shadow:0 2px 8px rgba(16,24,40,.08);color:#087fba}.story-upload-box{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;border:1.5px dashed #b9c5d1;border-radius:16px;background:#f9fbfc;cursor:pointer;text-align:center}.story-upload-box input{display:none}.story-upload-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf7fd;color:#0789c9;font-size:28px;line-height:1}.story-upload-box b{margin-top:8px}.story-upload-box small{color:#7a8795;margin-top:3px}.story-create-preview{margin-top:12px;border-radius:16px;overflow:hidden;background:#111}.story-create-preview img,.story-create-preview video{display:block;width:100%;max-height:460px;object-fit:contain;margin:0 auto}.story-text-canvas{min-height:330px;border-radius:18px;padding:25px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#0aa9e9,#8d4de8 55%,#e6248a);position:relative;overflow:hidden}.story-text-canvas textarea{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;text-align:center;font-size:28px!important;font-weight:800!important;line-height:1.25;resize:none;min-height:230px;margin:0!important}.story-text-canvas textarea::placeholder{color:rgba(255,255,255,.75)}.story-create-tools{display:flex;gap:7px;margin-top:10px}.story-create-tools button{border:1px solid #dce3ea;background:#fff;border-radius:10px;padding:8px 11px;font-weight:750;cursor:pointer}.story-emoji-panel{display:flex;flex-wrap:wrap;gap:5px;padding:9px;background:#f6f8fa;border:1px solid #e3e8ed;border-radius:12px;margin-top:7px}.story-emoji-panel button{border:0;background:#fff;border-radius:9px;font-size:22px;width:38px;height:38px;cursor:pointer}.story-tag-panel{margin-top:7px;padding:9px;border:1px solid #e3e8ed;border-radius:12px;background:#fff}.story-tag-result{display:block;width:100%;border:0;background:#f5f7f9;text-align:left;padding:9px;border-radius:8px;margin-top:5px;cursor:pointer}.story-tag-chip{display:inline-flex;align-items:center;gap:4px;margin:5px 4px 0 0;padding:5px 8px;border-radius:999px;background:#eaf7fd;color:#087fba;font-size:12px;font-weight:800}.story-tag-chip button{border:0;background:transparent;cursor:pointer;color:inherit}.story-caption-input{min-height:74px;resize:vertical;margin-top:10px!important}.story-publish-btn{width:100%;margin-top:10px}.story-text-view{width:min(560px,100%);aspect-ratio:4/5;display:flex;align-items:center;justify-content:center;text-align:center;padding:34px;box-sizing:border-box;border-radius:18px;background:linear-gradient(145deg,#0aa9e9,#8d4de8 55%,#e6248a);color:#fff;font-size:30px;font-weight:850;line-height:1.25;word-break:break-word;box-shadow:0 14px 40px rgba(0,0,0,.25)}
@media(max-width:800px){.facebook-stories-card{padding:12px 10px 10px!important}.facebook-storybar .story-card{flex-basis:94px!important;min-width:94px!important;max-width:94px!important}.facebook-storybar .story-card-media{width:94px!important;height:128px!important;border-radius:13px!important}.facebook-storybar .story-name{width:94px!important;max-width:94px!important}.facebook-storybar .story-card-avatar{width:28px!important;height:28px!important}.story-text-canvas{min-height:300px}.story-text-canvas textarea{font-size:25px!important}.story-text-view{font-size:25px!important}}
@media(max-width:380px){.facebook-storybar .story-card{flex-basis:88px!important;min-width:88px!important;max-width:88px!important}.facebook-storybar .story-card-media{width:88px!important;height:120px!important}.facebook-storybar .story-name{width:88px!important;max-width:88px!important}}

/* =========================================================
   MeetingPart — 2026-10-05 global symmetry + responsive polish
   Common visual rules only; existing functional styles are preserved.
   ========================================================= */
*,*::before,*::after{box-sizing:border-box}
button,.btn,input,select,textarea{font:inherit}
button,.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:middle;line-height:1.2;box-sizing:border-box}
.btn{min-height:38px;padding:9px 14px;gap:6px;white-space:nowrap}
.btn.small{min-height:32px;padding:7px 10px;font-size:12px;line-height:1.15}
.btn:disabled,.btn.disabled{opacity:.55;cursor:not-allowed;transform:none!important;filter:none!important}
.actions,.compact-actions,.form-actions,.scanner-actions,.event-actions,.ep-actions{align-items:center}
.actions .btn,.compact-actions .btn,.form-actions .btn,.scanner-actions .btn,.event-actions .btn,.ep-actions .btn{margin:0}
input,select,textarea,.input{box-sizing:border-box;min-height:40px;line-height:1.3}
textarea{min-height:90px}

/* Keep the main content width consistent between desktop breakpoints. */
.wrap{width:min(1180px,calc(100% - 32px));margin-left:auto;margin-right:auto}
.home-layout{width:min(1180px,calc(100% - 32px));margin-left:auto;margin-right:auto}
.card{width:100%;min-width:0}

/* Prevent flex/grid children from creating accidental overflow. */
.card>*,.actions>*,.compact-actions>*,.form-actions>*,.event-actions>*,.ep-actions>*{min-width:0}
.actions,.compact-actions,.form-actions,.scanner-actions,.event-actions,.ep-actions{display:flex;flex-wrap:wrap;gap:7px}

/* Consistent headings and vertical rhythm. */
.card>h1:first-child,.card>h2:first-child,.card>h3:first-child{margin-top:0}
.card>p:last-child{margin-bottom:0}

/* ========================= Notifications ========================= */
.notification-row{min-height:64px!important;padding:9px 11px!important;gap:10px!important}
.notification-avatar-wrap{width:44px!important;height:44px!important;flex:0 0 44px!important}
.note-avatar,.notification-fallback-avatar{width:44px!important;height:44px!important}
.notification-fallback-avatar{font-size:21px!important;line-height:1!important}
.notification-copy{gap:2px!important}
.notification-text{font-size:14px!important;line-height:1.35!important}
.notification-time{font-size:11px!important;line-height:1.2!important}
.notification-type-icon{flex:0 0 26px!important;width:26px!important;min-height:26px!important;font-size:20px!important;line-height:1!important}
.notification-arrow{flex:0 0 14px!important;width:14px!important;font-size:25px!important;line-height:1!important}
.notification-unread-dot{right:-3px!important;top:-3px!important;left:auto!important;width:9px!important;height:9px!important;z-index:5!important;border:2px solid #fff!important;box-shadow:none!important}
/* A fallback notification is an emoji/icon, not a user avatar: keep the dot outside it. */
.notification-avatar-wrap.is-fallback .notification-unread-dot{right:-4px!important;top:-4px!important}
.notification-group-title{padding:10px 11px 6px!important;font-size:12px!important}
.notification-archive{margin-top:8px!important;border-radius:12px!important}
.notification-archive summary{padding:11px 12px!important;font-size:14px!important;min-height:44px}
.notification-archive summary:before{width:20px!important;height:20px!important;font-size:18px!important}
.notification-archive summary b{min-width:22px!important;height:22px!important;font-size:11px!important}
.tag-requests{padding:9px!important;border-radius:11px!important}
.tag-request{gap:6px!important;padding:7px 0!important;font-size:13px!important}

/* Desktop notification popup follows the same compact scale. */
.desktop-notification-popup{width:380px!important;border-radius:15px!important}
.desktop-notification-popup-head{padding:12px 14px!important}
.desktop-notification-popup-head b{font-size:16px!important}
.desktop-notification-item{min-height:58px;padding:9px 11px!important;gap:9px!important}
.desktop-notification-avatar,.desktop-notification-avatar img{width:40px!important;height:40px!important;flex-basis:40px!important}
.desktop-notification-copy{font-size:12.5px!important;line-height:1.3!important}
.desktop-notification-copy small{font-size:10.5px!important;margin-top:2px!important}
.desktop-notification-icon{flex-basis:23px!important;font-size:18px!important}

/* Symmetric mobile gutters and controls. */
@media(max-width:800px){
  .wrap,.home-layout{width:calc(100% - 16px)!important;margin-left:auto!important;margin-right:auto!important}
  .card{padding:14px!important;border-radius:15px!important}
  .btn{min-height:40px;padding:9px 12px;white-space:normal}
  .btn.small{min-height:34px;padding:7px 10px;font-size:12px}
  .actions,.compact-actions,.form-actions,.scanner-actions,.event-actions,.ep-actions{gap:6px}
  .notification-row{min-height:58px!important;padding:8px 7px!important;gap:8px!important}
  .notification-avatar-wrap{width:42px!important;height:42px!important;flex-basis:42px!important}
  .note-avatar,.notification-fallback-avatar{width:42px!important;height:42px!important}
  .notification-text{font-size:13.5px!important;line-height:1.3!important}
  .notification-type-icon{flex-basis:24px!important;width:24px!important;font-size:19px!important}
  .notification-arrow{flex-basis:12px!important;width:12px!important;font-size:23px!important}
  .notification-unread-dot{right:-3px!important;top:-3px!important}
  .notification-avatar-wrap.is-fallback .notification-unread-dot{right:-4px!important;top:-4px!important}
  .tag-request{align-items:center}
  .tag-request span{flex-basis:100%}
  .tag-request .btn{flex:1 1 0;min-width:0}
}
@media(max-width:380px){
  .wrap,.home-layout{width:calc(100% - 12px)!important}
  .card{padding:12px!important}
  .btn{padding-left:10px;padding-right:10px}
  .notification-row{padding-left:5px!important;padding-right:5px!important}
  .notification-text{font-size:13px!important}
}


/* MeetingPart Arcade — premium oyun interfeysi */
.mp-games-page{max-width:1080px;margin:24px auto 40px;padding:0 8px;color:var(--text-color,#172033)}
.mp-games-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:230px;padding:32px 38px;border-radius:24px;background:radial-gradient(circle at 85% 18%,rgba(99,102,241,.48),transparent 32%),linear-gradient(120deg,#101b35 0%,#172554 54%,#312e81 100%);color:#fff;box-shadow:0 18px 42px rgba(30,41,90,.18)}
.mp-games-hero-copy{position:relative;z-index:1;max-width:620px}.mp-games-eyebrow{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.19em;color:#70e7d1;margin-bottom:10px}.mp-games-hero h1{font-size:clamp(28px,4vw,42px);line-height:1.08;margin:0 0 12px;color:#fff;letter-spacing:-.035em}.mp-games-hero h1 span{display:inline-block;filter:drop-shadow(0 4px 12px #8b5cf6)}.mp-games-hero p{max-width:560px;margin:0;color:#d7def5;font-size:15px;line-height:1.65}.mp-games-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.mp-games-pills span{padding:7px 11px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(255,255,255,.08);font-size:11px;font-weight:700;color:#f1f5ff}.mp-games-orbit{position:relative;flex:0 0 190px;width:190px;height:170px;border:1px solid rgba(255,255,255,.13);border-radius:48%;background:radial-gradient(circle,rgba(255,255,255,.12),rgba(255,255,255,.015) 68%)}.mp-games-orbit span,.mp-games-orbit i,.mp-games-orbit b,.mp-games-orbit em{position:absolute;display:grid;place-items:center;width:58px;height:58px;border-radius:19px;font-size:29px;font-style:normal;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);box-shadow:0 12px 24px rgba(0,0,0,.14)}.mp-games-orbit span{top:5px;left:65px}.mp-games-orbit i{left:4px;top:66px}.mp-games-orbit b{right:3px;top:62px}.mp-games-orbit em{left:65px;bottom:0}.mp-games-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:30px 2px 16px}.mp-games-section-head h2{font-size:23px;letter-spacing:-.025em;margin:0 0 4px}.mp-games-section-head p{margin:0;color:#7b8495;font-size:13px}.mp-games-count{padding:7px 10px;border-radius:9px;background:#eef2ff;color:#4f46e5;font-size:10px;font-weight:900;letter-spacing:.1em}.mp-games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.mp-game-card{--game-accent:#6366f1;--game-soft:#eef2ff;position:relative;display:flex;min-width:0;min-height:210px;flex-direction:column;padding:18px 18px 0;border:1px solid #e8ebf2;border-radius:19px;background:#fff;color:#182033;text-decoration:none!important;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.mp-game-card:before{content:"";position:absolute;right:-32px;top:-42px;width:120px;height:120px;border-radius:50%;background:var(--game-soft);opacity:.9;pointer-events:none}.mp-game-card:hover{transform:translateY(-4px);border-color:var(--game-accent);box-shadow:0 15px 32px rgba(30,41,59,.09)}.mp-game-card-top{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:55px}.mp-game-number{font-size:10px;font-weight:900;letter-spacing:.12em;color:#a0a7b5}.mp-game-icon{position:absolute;left:50%;top:0;transform:translateX(-50%);display:grid;place-items:center;width:56px;height:56px;border-radius:17px;background:var(--game-soft);font-size:31px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.75)}.mp-game-arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f7f8fb;color:#8790a2;font-size:17px}.mp-game-card-copy{position:relative;padding:11px 0 15px;flex:1}.mp-game-card-copy h3{font-size:19px;letter-spacing:-.025em;margin:0 0 5px}.mp-game-category{font-size:11px;font-weight:800;color:var(--game-accent)}.mp-game-card-copy p{font-size:12px;color:#7b8495;margin:9px 0 0}.mp-game-card-bottom{position:relative;display:flex;justify-content:space-between;align-items:center;margin:0 -18px;padding:12px 18px;border-top:1px solid #f0f1f5;color:var(--game-accent);font-size:12px;font-weight:800}.mp-game-card-bottom span:last-child{font-size:17px;transition:transform .2s}.mp-game-card:hover .mp-game-card-bottom span:last-child{transform:translateX(4px)}.theme-green{--game-accent:#059669;--game-soft:#d1fae5}.theme-purple{--game-accent:#7c3aed;--game-soft:#ede9fe}.theme-pink{--game-accent:#db2777;--game-soft:#fce7f3}.theme-blue{--game-accent:#2563eb;--game-soft:#dbeafe}.theme-orange{--game-accent:#ea580c;--game-soft:#ffedd5}.theme-yellow{--game-accent:#a16207;--game-soft:#fef3c7}.theme-cyan{--game-accent:#0891b2;--game-soft:#cffafe}.mp-games-footnote{display:flex;align-items:center;gap:9px;margin:18px 2px 0;padding:14px 16px;border:1px solid #e9edf4;border-radius:13px;background:#f8fafc;color:#667085;font-size:12px}.mp-games-footnote span{font-size:18px}
.mp-single-game{max-width:720px;margin:22px auto 40px;padding:24px;border:1px solid #e8ebf2;border-radius:22px;background:#fff;box-shadow:0 14px 38px rgba(31,41,55,.06);text-align:center}.mp-game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.mp-game-toolbar>span{font-size:9px;font-weight:900;letter-spacing:.16em;color:#9aa3b3}.mp-single-game-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;margin-bottom:22px}.mp-single-game-heading h1{margin:0;font-size:clamp(25px,4vw,34px);letter-spacing:-.035em}.mp-live-score{min-width:108px;padding:10px 14px;border-radius:14px;background:#eef2ff;color:#4338ca;text-align:center}.mp-live-score small{display:block;font-size:8px;font-weight:900;letter-spacing:.1em}.mp-live-score strong{display:block;font-size:25px;line-height:1.3}.mp-snake-shell{max-width:500px;margin:0 auto}.mp-snake-stats{display:flex;justify-content:space-between;gap:12px;margin:0 auto 12px;padding:12px 15px;border:1px solid #e7eaf1;border-radius:14px;background:#f8fafc;text-align:left}.mp-snake-stats>div{display:flex;flex-direction:column;gap:3px}.mp-snake-stats small{font-size:9px;font-weight:900;letter-spacing:.12em;color:#8490a3}.mp-snake-stats strong{font-size:15px;color:#172033}.mp-snake-stage{position:relative;overflow:hidden;border-radius:17px;background:#0d1727;box-shadow:0 14px 28px rgba(13,23,39,.18)}.mp-snake-canvas{display:block;width:100%;max-width:400px;height:auto;aspect-ratio:1;margin:0 auto;border:0;border-radius:0;background:#0d1727;touch-action:none}.mp-snake-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:rgba(8,16,31,.78);backdrop-filter:blur(5px);color:#fff;transition:opacity .18s}.mp-snake-overlay.is-hidden{opacity:0;pointer-events:none}.mp-snake-overlay-icon{font-size:39px;margin-bottom:7px}.mp-snake-overlay h2{font-size:26px;margin:0 0 7px;color:#fff}.mp-snake-overlay p{max-width:280px;margin:0 0 17px;color:#d1d9e8;font-size:13px;line-height:1.5}.mp-snake-primary{border:0!important;background:linear-gradient(120deg,#10b981,#34d399)!important;color:#062a22!important;font-weight:900!important;padding:12px 18px!important;border-radius:12px!important}.mp-snake-primary span{margin-left:8px}.mp-snake-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:14px 0 5px}.mp-snake-actions .btn{min-height:38px}.mp-snake-speed{display:flex;align-items:center;gap:7px;color:#667085;font-size:12px}.mp-snake-speed select{max-width:120px;padding:8px;border:1px solid #dfe4ec;border-radius:9px;background:#fff;color:#273449}.mp-snake-pad{display:none;margin:14px auto 0;max-width:210px;gap:8px;flex-direction:column;align-items:center;touch-action:manipulation}.mp-snake-pad>div{display:flex;gap:8px}.mp-snake-pad button{width:52px;height:44px;border:1px solid #dfe5ee;border-radius:12px;background:#f3f6fb;color:#334155;font-size:21px;font-weight:900;touch-action:manipulation}.mp-snake-pad button:active{background:#d1fae5;border-color:#34d399}.mp-snake-help{line-height:1.7;margin:12px 0 0}.mp-single-game .game-board{margin:12px auto}.mp-single-game .game-info{line-height:1.6}
@media(max-width:800px){.mp-games-page{margin:12px auto 28px;padding:0}.mp-games-hero{padding:25px 22px;min-height:205px;border-radius:19px}.mp-games-orbit{flex-basis:120px;width:120px;height:130px;transform:scale(.78);transform-origin:center right;margin-left:-22px;margin-right:-18px}.mp-games-orbit span,.mp-games-orbit i,.mp-games-orbit b,.mp-games-orbit em{width:48px;height:48px;font-size:24px;border-radius:15px}.mp-games-orbit span{left:36px}.mp-games-orbit i{top:45px}.mp-games-orbit b{top:45px}.mp-games-orbit em{left:36px}.mp-games-hero p{font-size:13px}.mp-games-pills{gap:6px;margin-top:14px}.mp-games-pills span{font-size:9px;padding:6px 8px}.mp-games-section-head{margin:24px 2px 13px}.mp-games-section-head h2{font-size:20px}.mp-games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mp-game-card{min-height:195px;padding:14px 13px 0;border-radius:16px}.mp-game-card-top{min-height:48px}.mp-game-icon{width:48px;height:48px;font-size:27px;border-radius:15px}.mp-game-card-copy h3{font-size:17px}.mp-game-card-copy p{font-size:11px}.mp-game-card-bottom{margin:0 -13px;padding:11px 13px}.mp-single-game{margin:12px auto 24px;padding:15px;border-radius:17px}.mp-game-toolbar{margin-bottom:16px}.mp-game-toolbar>span{font-size:8px}.mp-single-game-heading{margin-bottom:16px}.mp-live-score{min-width:88px;padding:8px 10px}.mp-live-score strong{font-size:22px}.mp-snake-pad{display:flex}.mp-snake-actions{gap:6px}.mp-snake-speed{width:100%;justify-content:center;margin-top:3px}.mp-games-footnote{font-size:11px}}
@media(max-width:380px){.mp-games-orbit{display:none}.mp-games-hero{padding:23px 18px}.mp-game-card{min-height:190px}.mp-game-card-copy h3{font-size:16px}.mp-game-category{font-size:10px}}

/* Desktop notification popup: align to the left of the bell and keep it inside the viewport. */
@media (min-width: 801px) {
  .desktop-notification-popup {
    top: 66px !important;
    right: max(12px, calc((100% - 1100px) / 2 + 210px)) !important;
    width: 380px !important;
    max-width: min(380px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 86px) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    box-sizing: border-box;
  }
  .desktop-notification-popup[hidden] { display: none !important; }
  .desktop-notification-popup-head { flex: 0 0 auto; }
  .desktop-notification-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}


/* Search page dropdown clipping fix: popups are detached to body by partials/head.php. */
@media (min-width: 801px) {
  #profileMenu.profile-dropdown {
    position: fixed !important;
    margin: 0 !important;
    max-width: calc(100vw - 24px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    z-index: 2147483001 !important;
  }
  #desktopNotificationPopup.desktop-notification-popup {
    position: fixed !important;
    margin: 0 !important;
    max-width: calc(100vw - 24px) !important;
    overflow: hidden !important;
    z-index: 2147483000 !important;
    box-sizing: border-box !important;
  }
  #desktopNotificationPopup .desktop-notification-popup-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
  }
}


/* MeetingPart premium post composer refresh */
.create-post-page{width:min(760px,calc(100% - 24px));margin:26px auto}
.create-post-card{border:1px solid #e7edf3;border-radius:24px;box-shadow:0 16px 48px rgba(18,38,63,.09);background:linear-gradient(180deg,#fff 0%,#fcfdff 100%)}
.create-post-head{height:68px;border-color:#edf1f5;padding:0 20px}
.create-post-head h2{font-size:20px;font-weight:800;letter-spacing:-.35px;color:#172b4d}
.create-close{background:#f2f6fa;color:#526174;transition:background .2s,transform .2s}
.create-close:hover{background:#e7f4fc;transform:rotate(90deg)}
.create-post-head .btn{border-radius:12px;background:linear-gradient(135deg,#079fe0,#0879c9);box-shadow:0 5px 14px rgba(0,139,208,.22);font-weight:800;padding:10px 18px}
.create-author{padding:20px 22px 8px;gap:12px}
.create-author .avatar{width:46px;height:46px;box-shadow:0 0 0 3px #edf8ff}
.create-author-name b{font-size:15px;color:#1d2939}
.create-author select{background:#f4f8fb;border:1px solid #e4ebf1!important;color:#526174;font-weight:700;padding:6px 9px!important}
.create-text-wrap{padding:0 6px}
.create-text{min-height:240px;padding:18px 22px!important;font-size:21px;line-height:1.55;color:#172b4d!important;letter-spacing:-.2px}
.create-text::placeholder{color:#a0aab7}
.mp-composer-meta{display:flex;justify-content:space-between;gap:10px;padding:0 22px 12px;font-size:12px;color:#7b8794}
#composerCharCount{font-weight:800;color:#667085}
#composerDraftStatus{color:#98a2b3}
.create-tools{margin:10px 20px 16px;padding:8px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;border:1px solid #e5ebf1;border-radius:17px;background:linear-gradient(180deg,#fff,#f9fbfd);box-shadow:0 3px 12px rgba(16,24,40,.025)}
.create-tool{min-width:0;min-height:76px;flex-direction:column;gap:7px;padding:10px 5px;border:1px solid transparent;border-radius:13px;color:#078bc8;font-size:24px;text-decoration:none;transition:background .18s,border-color .18s,transform .18s}
.create-tool span{font-size:12px;font-weight:800;color:#354052;white-space:normal;text-align:center;line-height:1.25}
.create-tool:hover{background:#f0f9ff;border-color:#d9f0fc;transform:translateY(-1px)}
.mp-composer-status{margin:0 20px 20px;padding:15px 17px;border:1px dashed #cfe2ed;border-radius:17px;background:linear-gradient(110deg,#f6fcff,#fff);color:#087fb3}
.mp-composer-status span{font-weight:850;font-size:14px}
.mp-composer-status small{display:block;margin-top:6px;color:#748091;font-size:13px;line-height:1.45}
.media-preview{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 20px 16px}
.media-preview-heading{grid-column:1/-1;color:#536273;font-size:12px;font-weight:800;padding:2px 0 4px}
.media-preview-item{position:relative;aspect-ratio:1;border-radius:12px;border:1px solid #e6ebf0;box-shadow:0 2px 8px rgba(16,24,40,.05)}
.media-remove{width:25px;height:25px;line-height:25px;right:4px;top:4px;font-size:18px;background:rgba(255,255,255,.96);color:#273444}
.create-panel{margin:0 20px 14px;padding:13px;background:#f7fafc;border:1px solid #e7edf3;border-radius:15px}
.create-panel.open{display:flex}
@media(max-width:800px){.create-post-page{width:100%;margin:0}.create-post-card{border-radius:0 0 22px 22px;min-height:calc(100vh - 58px);box-shadow:0 10px 35px rgba(18,38,63,.07)}.create-post-head{height:62px;padding:0 14px}.create-author{padding:17px 16px 5px}.create-text-wrap{padding:0}.create-text{min-height:220px;padding:15px 17px!important;font-size:19px}.mp-composer-meta{padding:0 17px 12px;font-size:11px}.create-tools{margin:9px 12px 15px;padding:6px;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;border-radius:15px}.create-tool{min-width:0;min-height:70px;padding:8px 2px;font-size:22px;gap:6px}.create-tool span{font-size:10.5px;letter-spacing:-.15px}.media-preview{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 12px 14px}.media-preview-item{border-radius:9px}.mp-composer-status{margin:0 12px 16px;padding:13px 14px}.create-panel{margin:0 12px 12px}}

/* MeetingPart composer: compact, aligned premium controls */
.create-tools{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:6px;margin:8px 16px 12px;border-radius:14px}
.create-tool{min-height:56px;padding:6px 3px;gap:4px;font-size:20px;border-radius:10px}
.create-tool span{font-size:11px;line-height:1.15}
.media-preview{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.media-preview-heading{font-size:13px;padding:0 0 2px}
.media-preview-item{border-radius:9px}
@media(max-width:800px){
 .create-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:5px;margin:7px 12px 11px;border-radius:13px}
 .create-tool{min-height:44px;flex-direction:row;justify-content:center;gap:5px;padding:6px 2px;font-size:18px}
 .create-tool span{font-size:10.5px;letter-spacing:-.2px;white-space:nowrap}
 .media-preview{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 12px 12px}
 .media-preview-item{border-radius:8px}
 .media-remove{width:23px;height:23px;line-height:23px;font-size:17px;right:3px;top:3px}
 .mp-composer-status{margin:0 12px 13px;padding:11px 12px}
 .mp-composer-status small{margin-top:4px;font-size:12px}
}
/* MeetingPart header icon centering + Android mobile homepage refresh layout fix */
.top .desktop-nav a.header-icon{
  box-sizing:border-box!important;
  width:50px!important;height:50px!important;min-width:50px!important;
  padding:0!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;line-height:1!important;flex:0 0 50px!important;
  vertical-align:middle!important;
}
.top .desktop-nav a.header-icon .notification-badge{position:absolute!important;top:0!important;right:0!important;}
@media(max-width:800px){
  .top .desktop-nav a.header-icon{width:36px!important;height:36px!important;min-width:36px!important;flex-basis:36px!important;padding:0!important;}
}
/* Global header refresh/repaint fix for desktop and mobile browsers.
   Keep the shared header in normal document flow on every page so it does not
   stick or jump against the top edge during refresh/repaint. */
.top{
  position:relative!important;
  top:auto!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:none!important;
}


/* Desktop post composer: balanced textarea and evenly aligned action tools */
@media (min-width: 801px) {
  .create-post-page { width: min(820px, calc(100% - 40px)); margin: 24px auto; }
  .create-post-card { overflow: hidden; }
  .create-text-wrap { padding: 0 8px; }
  .create-text { display: block; box-sizing: border-box; width: 100%; height: 220px !important; min-height: 220px !important; max-height: 320px; resize: vertical; }
  .create-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
  .create-tool { min-width: 0; min-height: 72px; justify-content: center; }
  .create-tool span { white-space: normal; overflow-wrap: anywhere; }
  .mp-composer-status { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; }
  .mp-composer-status small { margin-top: 0; }
}

/* Targeted desktop correction for the actual post_create.php composer markup */
@media screen and (min-width: 801px) {
  .create-post-page .create-post-card .create-text-wrap > textarea.create-text.mp-rich-composer-text {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 240px !important;
    padding: 16px 22px !important;
    resize: vertical !important;
    overflow-y: auto !important;
  }
  .create-post-page .create-post-card .mp-composer-meta {
    min-height: 28px !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
  }
  .create-post-page .create-post-card .create-tools {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .create-post-page .create-post-card .create-tools > .create-tool {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    flex: initial !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: normal !important;
    text-align: center !important;
  }
  .create-post-page .create-post-card .create-tools > .create-tool span {
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }
  .create-post-page .create-post-card .create-tools > .create-tool input[type="file"] {
    opacity: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* Align Foto/video icon and label with the other desktop composer tools.
   Keep the native file input clickable without letting it affect layout. */
@media screen and (min-width: 801px) {
  .create-post-page .create-post-card .create-tools > .create-tool {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .create-post-page .create-post-card .create-tools > .create-tool input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    font-size: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
  }
  .create-post-page .create-post-card .create-tools > .create-tool:first-child > span {
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
}


/* Composer tool alignment: use explicit icon boxes so the file label matches buttons. */
@media screen and (min-width: 801px) {
  .create-post-page .create-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }
  .create-post-page .create-tools > .create-tool {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    min-height: 72px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .create-post-page .create-tools > .create-tool .create-tool-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 23px !important;
    white-space: nowrap !important;
  }
  .create-post-page .create-tools > .create-tool > span:not(.create-tool-icon) {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  .create-post-page .create-tools > label.create-tool input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    font-size: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
  }
}
