:root{
  --blue:#0f6fff;--blue-dark:#0758d7;--bg:#f4f7fb;--card:#fff;--text:#111827;
  --muted:#667085;--border:#e5eaf2;--danger:#e53935;--radius:18px;--shadow:0 8px 30px rgba(20,40,80,.07)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}
.topbar{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:34px;padding:0 max(28px,calc((100vw - 1580px)/2));position:sticky;top:0;z-index:50}
.brand{font-size:27px;font-weight:800;display:flex;align-items:center;gap:12px;white-space:nowrap}.brand>span:last-child span,.auth-brand h1 span{color:var(--blue)}
.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#1677ff,#0758d7);color:white;display:grid;place-items:center}.brand-mark svg{width:25px;height:25px}
.top-search{height:48px;max-width:520px;flex:1;background:#f5f7fb;border:1px solid var(--border);border-radius:14px;display:flex;align-items:center;padding:0 15px;gap:10px}
.top-search input{width:100%;border:0;outline:0;background:transparent;font-size:16px}.top-search svg{color:var(--muted)}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.top-actions>a:not(.profile-link),.mobile-menu-btn{width:44px;height:44px;border:0;background:transparent;border-radius:12px;display:grid;place-items:center;color:#526079}
.top-actions>a.active,.top-actions>a:hover,.mobile-menu-btn:hover{background:#eaf2ff;color:var(--blue)}
.profile-link{display:flex;align-items:center;gap:10px;font-weight:700;padding-left:10px}.profile-link img{width:42px;height:42px;border-radius:50%;object-fit:cover}.mobile-menu-btn{display:none}
.app-shell{width:min(1580px,calc(100% - 48px));margin:24px auto;display:grid;grid-template-columns:300px minmax(0,760px) 390px;gap:24px;align-items:start}.app-shell.single{grid-template-columns:300px minmax(0,760px) 390px}
.left-sidebar{position:sticky;top:102px}.right-sidebar{position:sticky;top:102px;display:grid;gap:18px}
.profile-card,.card,.widget{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.profile-card{overflow:hidden;margin-bottom:16px}.cover{height:125px;background-size:cover;background-position:center}.profile-avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;border:5px solid #fff;margin:-44px 0 0 22px;position:relative}.profile-copy{padding:8px 22px 22px}.profile-copy h2{margin:0;font-size:24px}.profile-copy p{margin:5px 0 0;color:var(--muted)}
.side-menu{display:grid;gap:7px;background:#fff;padding:10px;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.side-menu a{display:flex;align-items:center;gap:15px;padding:15px 16px;border-radius:13px;font-weight:650;color:#364152}.side-menu a:hover,.side-menu a.active{background:#eaf2ff;color:var(--blue)}.side-menu svg{width:23px;height:23px}
.side-menu.secondary{margin-top:16px}.primary-button,.secondary-button{border:0;border-radius:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 22px}
.primary-button{background:var(--blue);color:#fff}.primary-button:hover{background:var(--blue-dark)}.secondary-button{background:#eef3fa;color:#344054}.wide{width:100%;margin-top:16px;padding:15px}.sidebar-close,.sidebar-overlay{display:none}
.feed-column{display:grid;gap:18px;min-width:0}.composer{padding:20px}.composer-top{display:flex;gap:15px}.composer-top img{width:52px;height:52px;border-radius:50%;object-fit:cover}.composer textarea{resize:vertical;width:100%;border:1px solid var(--border);border-radius:14px;padding:17px;font-size:17px;outline:none;min-height:58px}.composer textarea:focus{border-color:#8bb9ff;box-shadow:0 0 0 4px #eaf2ff}
.composer-bottom{display:flex;align-items:center;gap:12px;margin-top:14px;padding-left:67px}.upload-option,.composer-hint{display:flex;align-items:center;gap:8px;color:#526079;font-weight:650;padding:9px;border-radius:10px}.upload-option:hover{background:#f3f6fa}.upload-option input{display:none}.upload-option:first-child svg{color:#15a85a}.upload-option:nth-child(2) svg{color:#7547ff}.composer-bottom .primary-button{margin-left:auto}.file-preview{padding-left:67px;color:var(--muted);font-size:14px}
.post-card{overflow:hidden}.post-header{display:flex;align-items:center;padding:20px 20px 10px;gap:12px}.post-header img{width:52px;height:52px;border-radius:50%;object-fit:cover}.post-header>div{display:flex;flex-direction:column}.post-author{font-size:18px;font-weight:800}.post-header span{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:5px}.post-header span svg{width:14px}.post-delete{margin-left:auto}.post-delete button{border:0;background:transparent;color:#98a2b3;padding:9px;border-radius:10px}.post-delete button:hover{background:#fff0f0;color:var(--danger)}
.post-content{padding:4px 20px 15px;font-size:17px;line-height:1.55;word-break:break-word}.post-media{display:block;width:calc(100% - 40px);max-height:620px;object-fit:cover;margin:0 20px;border-radius:14px;background:#111}
.post-stats{display:flex;justify-content:space-between;padding:14px 20px;color:var(--muted);border-bottom:1px solid var(--border)}.post-stats span{display:flex;align-items:center;gap:6px}.post-stats svg{width:18px;color:#e33}
.post-actions{display:grid;grid-template-columns:repeat(4,1fr);padding:8px}.post-actions button,.post-actions a{border:0;background:transparent;color:#526079;border-radius:11px;padding:12px 6px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.post-actions button:hover,.post-actions a:hover{background:#f3f6fa}.post-actions .active{color:var(--blue);background:#edf4ff}
.widget{padding:20px}.widget-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.widget-title h3{margin:0;display:flex;align-items:center;gap:9px;font-size:19px}.widget-title h3 svg{color:var(--blue)}.widget-title a{font-size:14px;color:var(--blue);font-weight:700}
.mini-posts{display:grid;gap:14px}.mini-post{display:flex;gap:13px;align-items:center}.mini-post img{width:76px;height:70px;object-fit:cover;border-radius:12px;background:#eef2f7}.mini-post span{min-width:0;display:grid;gap:4px}.mini-post strong{line-height:1.25}.mini-post small{color:var(--muted);display:flex;align-items:center;gap:4px}.mini-post small svg{width:14px}
.tag-list{display:grid}.tag-list a{display:flex;justify-content:space-between;padding:10px;border-radius:10px}.tag-list a:hover{background:#f5f8fc}.tag-list span{font-weight:750}.tag-list small{color:var(--muted)}
.page-heading{padding:22px;display:flex;gap:15px;align-items:center}.page-heading>svg{width:34px;height:34px;color:var(--blue)}.page-heading h1{margin:0;font-size:27px}.page-heading p{margin:4px 0 0;color:var(--muted)}
.empty-state{text-align:center;padding:50px 20px;color:var(--muted)}.empty-state svg{width:44px;height:44px}.empty-state h2{color:var(--text)}
.comments{padding:22px}.comments h2{margin-top:0}.comment-form{display:flex;gap:10px}.comment-form img,.comment img{width:42px;height:42px;border-radius:50%;object-fit:cover}.comment-form input{flex:1;border:1px solid var(--border);border-radius:12px;padding:0 14px}.comment-form .primary-button{padding:10px 14px}.comment-list{display:grid;gap:14px;margin-top:22px}.comment{display:flex;gap:10px}.comment>div{background:#f4f6f9;border-radius:14px;padding:10px 13px}.comment p{margin:5px 0}.comment small{color:var(--muted)}
.people-grid{padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.people-grid a{border:1px solid var(--border);border-radius:14px;padding:15px;display:grid;text-align:center;justify-items:center}.people-grid img{width:72px;height:72px;border-radius:50%;object-fit:cover}.people-grid span{color:var(--muted)}
.profile-hero{overflow:hidden}.profile-hero-cover{height:230px;background-size:cover;background-position:center}.profile-hero-body{display:flex;align-items:flex-end;gap:18px;padding:0 24px 24px}.profile-hero-body>img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:6px solid white;margin-top:-58px;flex:none}.profile-hero-body h1{margin:0;font-size:28px}.profile-hero-body p{margin:4px 0;color:var(--muted)}.profile-main-copy{flex:1;min-width:0}.profile-hero-body .secondary-button{margin-left:0}
.settings-card{padding:28px}.settings-card h1{margin-top:0}.settings-card label,.auth-panel label{display:grid;gap:8px;font-weight:700;margin-bottom:17px}.settings-card input,.settings-card textarea,.auth-panel input{border:1px solid var(--border);border-radius:12px;padding:13px;outline:0}.settings-card input:focus,.settings-card textarea:focus,.auth-panel input:focus{border-color:#8bb9ff;box-shadow:0 0 0 4px #eaf2ff}
.auth-page{min-height:calc(100vh - 78px);display:grid;place-items:center;padding:30px}.auth-panel{width:min(470px,100%);background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:34px}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand h1{font-size:29px}.auth-panel h2{font-size:30px;margin:26px 0 5px}.auth-panel>p{color:var(--muted)}.auth-switch{text-align:center}.auth-switch a{color:var(--blue);font-weight:750}
.flash{position:fixed;right:24px;top:92px;z-index:80;padding:13px 18px;border-radius:12px;color:#fff;box-shadow:var(--shadow)}.flash.success{background:#16a34a}.flash.error{background:#dc2626}

.message-link{position:relative}.nav-badge{position:absolute;right:1px;top:0;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#ef233c;color:#fff;font-size:10px;font-weight:850;display:grid;place-items:center;border:2px solid #fff}
.side-menu a{position:relative}.side-badge{margin-left:auto;min-width:23px;height:23px;padding:0 7px;border-radius:12px;background:#ef233c;color:#fff;font-size:11px;display:grid;place-items:center}
.profile-message-button{margin-left:auto}
.app-shell.messages-shell{grid-template-columns:300px minmax(0,1fr)}
.messages-layout{min-width:0;min-height:calc(100vh - 126px);height:calc(100vh - 126px);display:grid;grid-template-columns:340px minmax(0,1fr);overflow:hidden}
.conversation-pane{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--border);background:#fff}
.conversation-heading{padding:24px 22px 16px;display:flex;align-items:center;justify-content:space-between}.conversation-heading h1{font-size:27px;margin:0}.conversation-heading p{margin:3px 0 0;color:var(--muted)}.conversation-heading>svg{width:30px;height:30px;color:var(--blue)}
.conversation-search{margin:0 16px 14px;height:46px;border:1px solid var(--border);border-radius:13px;background:#f7f9fc;display:flex;align-items:center;gap:9px;padding:0 12px}.conversation-search svg{width:19px;color:var(--muted)}.conversation-search input{width:100%;border:0;outline:0;background:transparent}
.conversation-list{overflow:auto;padding:0 9px 14px}.conversation-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;min-width:0}.conversation-item:hover,.conversation-item.active{background:#edf4ff}.conversation-item>img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none}.conversation-copy{min-width:0;flex:1;display:grid;gap:5px}.conversation-name-row{display:flex;justify-content:space-between;gap:8px;align-items:center}.conversation-name-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-name-row small{font-size:11px;color:var(--muted);white-space:nowrap}.conversation-preview{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-unread{flex:none;min-width:23px;height:23px;padding:0 6px;border-radius:12px;background:var(--blue);color:#fff;font-size:11px;display:grid;place-items:center}.conversation-empty{text-align:center;color:var(--muted);padding:40px 15px}.conversation-empty svg{width:38px;height:38px}
.chat-pane{min-width:0;display:flex;flex-direction:column;background:#f7f9fc}.chat-header{height:78px;padding:0 20px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;gap:12px;flex:none}.chat-person{display:flex;align-items:center;gap:11px;min-width:0}.chat-person img{width:48px;height:48px;border-radius:50%;object-fit:cover}.chat-person span{display:grid}.chat-person strong{font-size:17px}.chat-person small{color:var(--muted)}.chat-profile-link{margin-left:auto;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#526079}.chat-profile-link:hover{background:#edf4ff;color:var(--blue)}.mobile-chat-back{display:none}
.message-stream{flex:1;min-height:0;overflow-y:auto;padding:22px 24px;scroll-behavior:smooth}.message-row{display:flex;margin:7px 0}.message-row.mine{justify-content:flex-end}.message-row.theirs{justify-content:flex-start}.message-bubble{max-width:min(72%,620px);padding:11px 14px;border-radius:17px;background:#fff;border:1px solid var(--border);box-shadow:0 3px 14px rgba(31,41,55,.04)}.message-row.mine .message-bubble{background:var(--blue);border-color:var(--blue);color:#fff;border-bottom-right-radius:5px}.message-row.theirs .message-bubble{border-bottom-left-radius:5px}.message-bubble p{margin:0;line-height:1.45;word-break:break-word}.message-bubble small{display:block;margin-top:6px;text-align:right;font-size:10px;opacity:.72}.message-image-link{display:block}.message-image{display:block;max-width:100%;width:auto;max-height:360px;border-radius:12px;object-fit:cover}.message-bubble p+.message-image-link{margin-top:9px}
.chat-start{text-align:center;color:var(--muted);padding:45px 20px}.chat-start img{width:92px;height:92px;border-radius:50%;object-fit:cover}.chat-start h2{margin:12px 0 4px;color:var(--text)}.chat-start p{margin:0}.chat-placeholder{height:100%;display:grid;place-content:center;justify-items:center;text-align:center;color:var(--muted);padding:30px}.chat-placeholder>span{width:76px;height:76px;border-radius:50%;background:#e8f1ff;color:var(--blue);display:grid;place-items:center}.chat-placeholder svg{width:34px;height:34px}.chat-placeholder h2{color:var(--text);margin:16px 0 5px}.chat-placeholder p{margin:0}
.message-composer{flex:none;background:#fff;border-top:1px solid var(--border);padding:12px 15px}.message-input-row{display:flex;align-items:flex-end;gap:8px}.message-composer textarea{flex:1;resize:none;min-height:44px;max-height:130px;border:1px solid var(--border);background:#f7f9fc;border-radius:15px;padding:11px 14px;outline:0;line-height:1.4}.message-composer textarea:focus{border-color:#8bb9ff;box-shadow:0 0 0 3px #eaf2ff}.message-tool-button,.message-send-button{width:44px;height:44px;border:0;border-radius:13px;display:grid;place-items:center;flex:none}.message-tool-button{background:#f0f4f9;color:#526079}.message-tool-button:hover{background:#e8f1ff;color:var(--blue)}label.message-tool-button input{display:none}.message-send-button{background:var(--blue);color:#fff}.message-send-button:hover{background:var(--blue-dark)}
.emoji-wrap{position:relative}.emoji-picker{position:absolute;left:0;bottom:54px;width:286px;padding:10px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 14px 40px rgba(20,40,80,.16);display:grid;grid-template-columns:repeat(6,1fr);gap:4px;z-index:25}.emoji-picker[hidden]{display:none}.emoji-picker button{border:0;background:transparent;border-radius:8px;font-size:23px;padding:6px 2px}.emoji-picker button:hover{background:#eef4ff}
.message-image-preview:empty{display:none}.message-image-preview{padding:0 0 10px 104px}.selected-message-image{display:flex;align-items:center;gap:10px;background:#f1f5f9;border:1px solid var(--border);border-radius:12px;padding:7px;width:max-content;max-width:100%}.selected-message-image img{width:52px;height:52px;border-radius:9px;object-fit:cover}.selected-message-image span{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px}.selected-message-image button{width:27px;height:27px;border:0;border-radius:50%;background:#fff;color:#dc2626;font-size:20px;line-height:1}


/* Friend system */
.friends-link{position:relative}
.friend-section{padding:22px}.friend-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.friend-section-title h2{margin:0;font-size:22px}.friend-section-title p{margin:4px 0 0;color:var(--muted)}.request-count{min-width:34px;height:34px;padding:0 10px;border-radius:18px;background:#eaf2ff;color:var(--blue);font-weight:850;display:grid;place-items:center}
.friend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.friend-card{border:1px solid var(--border);border-radius:16px;padding:15px;min-width:0;background:#fff}.friend-person{display:flex;align-items:center;gap:12px;min-width:0}.friend-person>img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none}.friend-person>span{min-width:0;display:grid;gap:2px}.friend-person strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-person small{color:var(--muted)}.friend-person p{margin:4px 0 0;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friend-card-actions{margin-top:14px}.friend-card-actions.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.friend-card-actions form{margin:0}.friend-card-actions .primary-button,.friend-card-actions .secondary-button{width:100%;padding:10px 12px;font-size:14px}.wide-action{width:100%}.small-empty-state{text-align:center;padding:25px 15px;color:var(--muted)}.small-empty-state svg{width:38px;height:38px}.small-empty-state h3{color:var(--text);margin:10px 0 5px}.small-empty-state p{margin:0}
.profile-main-copy{min-width:0}.profile-friend-count{display:inline-block;margin-top:5px;color:#526079}.profile-friend-count strong{color:var(--text)}.profile-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap;align-self:flex-end}.profile-actions form{margin:0;flex:none}.profile-actions .primary-button,.profile-actions .secondary-button,.profile-actions .profile-message-button{min-height:46px;padding:0 18px;white-space:nowrap}.profile-actions .profile-message-button{margin-left:0;flex:none}

/* Three-dot menus */
.action-menu{position:relative;margin-left:auto;flex:none}.action-menu summary{list-style:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#526079;cursor:pointer;border:0;outline:none}.action-menu summary::-webkit-details-marker{display:none}.action-menu summary::marker{content:''}.action-menu summary:hover,.action-menu[open] summary{background:#f0f4f9;color:var(--blue)}.action-menu-dropdown{position:absolute;right:0;top:45px;z-index:35;min-width:185px;background:#fff;border:1px solid var(--border);border-radius:13px;padding:6px;box-shadow:0 14px 38px rgba(20,40,80,.16)}.action-menu-dropdown a,.action-menu-dropdown button{width:100%;border:0;background:transparent;padding:11px 12px;border-radius:9px;display:flex;align-items:center;gap:9px;text-align:left;color:#344054;font-weight:650;white-space:nowrap}.action-menu-dropdown a:hover,.action-menu-dropdown button:hover{background:#f3f6fa}.action-menu-dropdown form{margin:0}.action-menu-dropdown .danger-menu-item{color:#dc2626}.post-options{margin-left:auto}.profile-report-menu{margin-left:0;align-self:center}

/* Report screen */
.report-shell{grid-template-columns:300px minmax(0,760px)}.report-card{padding:30px}.report-icon{width:62px;height:62px;border-radius:18px;background:#fff1f1;color:#dc2626;display:grid;place-items:center}.report-icon svg{width:30px;height:30px}.report-heading h1{font-size:30px;margin:18px 0 5px}.report-heading p{margin:0;color:var(--muted);line-height:1.5}.report-target{display:flex;align-items:center;gap:13px;margin:23px 0;padding:15px;background:#f7f9fc;border:1px solid var(--border);border-radius:14px}.report-target>img{width:54px;height:54px;border-radius:50%;object-fit:cover}.report-target>svg{width:32px;height:32px;color:var(--blue)}.report-target div{min-width:0}.report-target p{margin:4px 0 0;color:var(--muted)}
.report-form fieldset{border:0;padding:0;margin:0}.report-form legend{font-size:18px;font-weight:800;margin-bottom:12px}.report-reasons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.report-reasons label{cursor:pointer}.report-reasons input{position:absolute;opacity:0;pointer-events:none}.report-reasons span{display:block;border:1px solid var(--border);border-radius:12px;padding:13px;background:#fff}.report-reasons input:checked+span{border-color:var(--blue);background:#edf4ff;color:var(--blue);box-shadow:0 0 0 2px #d9e8ff}.report-details{display:grid;gap:8px;font-weight:750;margin-top:20px}.report-details small{color:var(--muted);font-weight:500}.report-details textarea{border:1px solid var(--border);border-radius:13px;padding:13px;resize:vertical;outline:0}.report-details textarea:focus{border-color:#8bb9ff;box-shadow:0 0 0 4px #eaf2ff}.report-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.danger-button{border:0;border-radius:12px;background:#dc2626;color:#fff;font-weight:750;padding:13px 20px;display:inline-flex;align-items:center;gap:8px}.danger-button:hover{background:#b91c1c}

@media(max-width:1280px){.app-shell{grid-template-columns:260px minmax(0,1fr)}.app-shell.messages-shell{grid-template-columns:260px minmax(0,1fr)}.right-sidebar{display:none}.messages-layout{grid-template-columns:310px minmax(0,1fr)}}
@media(max-width:900px){
 .topbar{padding:0 15px;height:68px}.brand{font-size:22px}.brand-mark{width:38px;height:38px}.top-search{display:none}.top-actions>a:not(.profile-link):not(.mobile-visible){display:none}.profile-link span{display:none}.mobile-menu-btn{display:grid}
 .app-shell,.app-shell.single,.app-shell.messages-shell{width:min(760px,calc(100% - 24px));grid-template-columns:1fr;margin:12px auto}.left-sidebar{position:fixed;z-index:100;left:0;top:0;bottom:0;width:min(340px,88vw);background:var(--bg);padding:14px;overflow:auto;transform:translateX(-110%);transition:.24s ease}.sidebar-open .left-sidebar{transform:translateX(0)}.sidebar-close{display:grid;place-items:center;position:absolute;right:24px;top:24px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;z-index:2}.sidebar-overlay{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:90}.sidebar-open .sidebar-overlay{display:block}.feed-column{gap:12px}
 .messages-layout{height:calc(100vh - 92px);min-height:620px;grid-template-columns:300px minmax(0,1fr)}

 .report-shell{grid-template-columns:1fr}
 .friend-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
 body{font-size:15px}.brand{font-size:20px}.app-shell{width:100%;margin:0}.card{border-left:0;border-right:0;border-radius:0;box-shadow:none}.composer{padding:14px}.composer-top img{width:44px;height:44px}.composer textarea{font-size:15px;padding:13px}.composer-bottom{padding-left:0;display:grid;grid-template-columns:1fr 1fr auto}.composer-hint{display:none}.composer-bottom .primary-button{margin-left:0}.file-preview{padding-left:0}
 .post-header{padding:15px 14px 8px}.post-header img{width:45px;height:45px}.post-author{font-size:16px}.post-content{padding:4px 14px 12px;font-size:16px}.post-media{width:100%;margin:0;border-radius:0;max-height:520px}.post-stats{padding:12px 14px}.post-actions{padding:5px}.post-actions button,.post-actions a{font-size:13px;gap:5px}.post-actions svg{width:20px}.page-heading{border-radius:0}
 .people-grid{grid-template-columns:repeat(2,1fr);border-radius:0}.profile-hero{border-radius:0}.profile-hero-cover{height:165px}.profile-hero-body{align-items:flex-start;padding:0 15px 18px;flex-wrap:wrap}.profile-hero-body>img{width:90px;height:90px;margin-top:-42px}.profile-hero-body .secondary-button{margin-left:0}
 .comments{border-radius:0}.comment-form input{min-width:0}.flash{left:12px;right:12px;top:80px;text-align:center}

 .app-shell.messages-shell{width:100%;margin:0}.messages-layout{height:calc(100dvh - 68px);min-height:0;border:0;border-radius:0;grid-template-columns:1fr}.messages-layout.has-active-chat .conversation-pane{display:none}.messages-layout.no-active-chat .chat-pane{display:none}.conversation-pane{border-right:0}.conversation-heading{padding:19px 16px 12px}.conversation-search{margin:0 12px 10px}.conversation-list{padding:0 6px 10px}.conversation-item{padding:11px 10px}.chat-header{height:66px;padding:0 10px}.mobile-chat-back{display:grid;width:38px;height:38px;place-items:center;border-radius:10px}.chat-person img{width:43px;height:43px}.chat-profile-link{width:38px;height:38px}.message-stream{padding:15px 10px}.message-bubble{max-width:84%;padding:10px 12px}.message-image{max-height:300px}.message-composer{padding:9px 8px max(9px,env(safe-area-inset-bottom))}.message-input-row{gap:5px}.message-tool-button,.message-send-button{width:40px;height:40px;border-radius:12px}.message-composer textarea{min-height:40px;padding:9px 11px}.emoji-picker{position:fixed;left:8px;right:8px;bottom:70px;width:auto;grid-template-columns:repeat(6,1fr)}.message-image-preview{padding-left:0}.selected-message-image span{max-width:150px}.profile-message-button{margin-left:0}


 .friend-section{padding:16px 13px}.friend-section-title h2{font-size:20px}.friend-card{padding:13px}.friend-person>img{width:56px;height:56px}.friend-card-actions.two{grid-template-columns:1fr 1fr}.profile-actions{width:100%;margin-left:0;display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.profile-actions form{flex:1;width:100%}.profile-actions form .primary-button,.profile-actions form .secondary-button{width:100%}.profile-actions>.profile-message-button{width:100%;flex:none}.profile-report-menu{flex:none;justify-self:end}.action-menu-dropdown{position:fixed;left:12px;right:12px;top:auto;bottom:18px;min-width:0}.report-card{padding:22px 15px;border-radius:0}.report-reasons{grid-template-columns:1fr}.report-actions{display:grid;grid-template-columns:1fr 1fr}.report-actions .secondary-button,.report-actions .danger-button{width:100%}

}


@media(min-width:601px) and (max-width:900px){
 .profile-actions{width:100%;margin-left:0;display:flex;flex-wrap:wrap;justify-content:flex-start}
 .profile-actions form{flex:none}
}


/* Fixed user profile action layout */
.profile-hero-body{
    display:grid !important;
    grid-template-columns:120px minmax(0,1fr) auto !important;
    align-items:end !important;
    column-gap:18px !important;
    row-gap:12px !important;
    padding:0 24px 24px !important;
}

.profile-hero-body>img{
    width:120px !important;
    height:120px !important;
    margin-top:-58px !important;
    flex:none !important;
}

.profile-main-copy{
    min-width:0 !important;
    align-self:end !important;
}

.profile-action-area{
    align-self:end !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    margin-left:auto !important;
    white-space:nowrap !important;
}

.profile-main-actions{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
}

.profile-main-actions form{
    margin:0 !important;
}

.profile-action-button,
.profile-edit-button{
    min-height:46px !important;
    height:46px !important;
    padding:0 18px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    white-space:nowrap !important;
    margin:0 !important;
}

.profile-report-menu{
    margin:0 !important;
    flex:none !important;
    position:relative !important;
    align-self:center !important;
}

.profile-report-menu summary{
    width:46px !important;
    height:46px !important;
    border-radius:12px !important;
    display:grid !important;
    place-items:center !important;
    list-style:none !important;
    cursor:pointer !important;
}

.profile-report-menu summary::-webkit-details-marker{
    display:none !important;
}

.profile-report-menu summary::marker{
    content:"" !important;
}

.profile-report-menu .action-menu-dropdown{
    right:0 !important;
    left:auto !important;
    top:52px !important;
    bottom:auto !important;
}

@media(max-width:900px){
    .profile-hero-body{
        grid-template-columns:100px minmax(0,1fr) !important;
        align-items:start !important;
    }

    .profile-hero-body>img{
        width:100px !important;
        height:100px !important;
        margin-top:-48px !important;
    }

    .profile-action-area{
        grid-column:1 / -1 !important;
        width:100% !important;
        justify-self:stretch !important;
        justify-content:flex-start !important;
        margin-left:0 !important;
    }
}

@media(max-width:600px){
    .profile-hero-body{
        grid-template-columns:82px minmax(0,1fr) !important;
        column-gap:12px !important;
        padding:0 14px 18px !important;
    }

    .profile-hero-body>img{
        width:82px !important;
        height:82px !important;
        margin-top:-38px !important;
    }

    .profile-action-area{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) 46px !important;
        gap:8px !important;
    }

    .profile-main-actions{
        display:contents !important;
    }

    .profile-main-actions form{
        width:100% !important;
    }

    .profile-action-button{
        width:100% !important;
        min-width:0 !important;
        padding:0 10px !important;
        font-size:14px !important;
    }

    .profile-report-menu{
        justify-self:end !important;
    }

    .profile-report-menu .action-menu-dropdown{
        position:fixed !important;
        left:12px !important;
        right:12px !important;
        top:auto !important;
        bottom:18px !important;
        min-width:0 !important;
    }
}

/* Plain profile dots without browser arrow or button box */
.profile-hero{
    overflow:visible !important;
    position:relative !important;
    z-index:25 !important;
}

.profile-hero-cover{
    border-radius:var(--radius) var(--radius) 0 0 !important;
}

.profile-hero-body{
    background:#fff !important;
    border-radius:0 0 var(--radius) var(--radius) !important;
}

.profile-action-area{
    position:relative !important;
    z-index:40 !important;
}

.profile-dots-menu{
    position:relative !important;
    flex:none !important;
    margin:0 !important;
    padding:0 !important;
    align-self:center !important;
    z-index:100 !important;
}

.profile-dots-button{
    width:38px !important;
    height:46px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#344054 !important;
    cursor:pointer !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    user-select:none !important;
    -webkit-appearance:none !important;
    appearance:none !important;
    -webkit-tap-highlight-color:transparent !important;
}

.profile-dots-button:hover,
.profile-dots-button[aria-expanded="true"]{
    color:var(--blue) !important;
    background:transparent !important;
}

.profile-dots-button span{
    display:block !important;
    font-size:23px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:2px !important;
    transform:translateY(-3px) !important;
    pointer-events:none !important;
}

.profile-dots-dropdown{
    position:absolute !important;
    right:0 !important;
    top:49px !important;
    z-index:1600 !important;
    width:205px !important;
    padding:7px !important;
    background:#fff !important;
    border:1px solid var(--border) !important;
    border-radius:13px !important;
    box-shadow:0 18px 45px rgba(20,40,80,.20) !important;
}

.profile-dots-dropdown[hidden]{
    display:none !important;
}

.profile-dots-dropdown a{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    padding:12px !important;
    border-radius:9px !important;
    font-weight:700 !important;
    color:#dc2626 !important;
}

.profile-dots-dropdown a:hover{
    background:#fff1f1 !important;
}

@media(max-width:600px){
    .profile-dots-menu{
        justify-self:end !important;
    }

    .profile-dots-dropdown{
        position:fixed !important;
        left:12px !important;
        right:12px !important;
        top:auto !important;
        bottom:18px !important;
        width:auto !important;
        z-index:1800 !important;
    }
}


/* Modern comments, likes, replies, and reports */
.comments{
    padding:22px;
}
.comments-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}
.comments-heading h2{
    margin:0;
}
.comments-heading p{
    margin:4px 0 0;
    color:var(--muted);
}
.comments-heading>svg{
    width:29px;
    height:29px;
    color:var(--blue);
}
.main-comment-form{
    display:flex;
    align-items:center;
    gap:10px;
    padding-bottom:18px;
    border-bottom:1px solid var(--border);
}
.main-comment-form img,
.comment-reply-form img{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    flex:none;
}
.main-comment-form input,
.comment-reply-form input{
    flex:1;
    min-width:0;
    height:44px;
    border:1px solid var(--border);
    border-radius:13px;
    padding:0 14px;
    outline:0;
    background:#f8fafc;
}
.main-comment-form input:focus,
.comment-reply-form input:focus{
    border-color:#8bb9ff;
    box-shadow:0 0 0 3px #eaf2ff;
    background:#fff;
}
.main-comment-form .primary-button{
    width:44px;
    height:44px;
    padding:0;
    flex:none;
}
.comment-list{
    display:grid;
    gap:17px;
    margin-top:20px;
}
.comment-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    min-width:0;
}
.comment-avatar-link{
    flex:none;
}
.comment-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
}
.comment-main{
    min-width:0;
    flex:1;
}
.comment-bubble{
    width:max-content;
    max-width:min(100%,620px);
    background:#f1f4f8;
    border-radius:15px;
    padding:10px 13px;
}
.comment-author{
    font-weight:800;
    font-size:14px;
}
.comment-bubble p{
    margin:5px 0 0;
    line-height:1.45;
    word-break:break-word;
}
.comment-meta{
    display:flex;
    align-items:center;
    gap:11px;
    padding:5px 8px 0;
    color:var(--muted);
    font-size:12px;
    flex-wrap:wrap;
}
.comment-action{
    border:0;
    background:transparent;
    padding:0;
    color:#526079;
    font-weight:750;
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.comment-action:hover,
.comment-action.active{
    color:var(--blue);
}
.comment-action b{
    font-size:11px;
}
.comment-report-action:hover{
    color:#dc2626;
}
.comment-replies{
    display:grid;
    gap:14px;
    margin-top:14px;
    padding-left:16px;
    border-left:2px solid #e6ebf2;
}
.comment-reply .comment-avatar{
    width:36px;
    height:36px;
}
.comment-reply .comment-bubble{
    background:#f6f8fb;
}
.comment-reply-form{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:10px;
    max-width:650px;
}
.comment-reply-form[hidden]{
    display:none!important;
}
.comment-reply-form img{
    width:34px;
    height:34px;
}
.comment-reply-form input{
    height:40px;
}
.reply-send-button{
    width:40px;
    height:40px;
    border:0;
    border-radius:11px;
    background:var(--blue);
    color:#fff;
    display:grid;
    place-items:center;
    flex:none;
}
.reply-send-button svg{
    width:18px;
}
.reply-cancel-button{
    height:40px;
    border:0;
    border-radius:10px;
    padding:0 10px;
    background:#eef2f7;
    color:#526079;
    font-weight:700;
}
.comments-empty{
    text-align:center;
    padding:24px;
    color:var(--muted);
}
.comments-empty svg{
    width:34px;
    height:34px;
}
.comments-empty p{
    margin:8px 0 0;
}
@media(max-width:600px){
    .comments{
        padding:16px 12px;
    }
    .comment-list{
        gap:15px;
    }
    .comment-avatar{
        width:38px;
        height:38px;
    }
    .comment-bubble{
        max-width:100%;
    }
    .comment-replies{
        padding-left:9px;
        margin-left:-5px;
    }
    .comment-reply-form{
        display:grid;
        grid-template-columns:32px minmax(0,1fr) 38px;
    }
    .comment-reply-form img{
        width:32px;
        height:32px;
    }
    .comment-reply-form input{
        height:38px;
    }
    .reply-send-button{
        width:38px;
        height:38px;
    }
    .reply-cancel-button{
        grid-column:2 / 4;
        width:max-content;
        height:32px;
    }
}


/* Post GIF and feelings composer */
.composer-input-area{
    flex:1;
    min-width:0;
}
.composer-feeling-status{
    margin-bottom:8px;
    padding:8px 11px;
    border-radius:10px;
    background:#fff8e7;
    color:#8b5b00;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    font-weight:700;
}
.composer-feeling-status[hidden]{
    display:none;
}
.composer-feeling-status button{
    width:25px;
    height:25px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#b45309;
    font-size:18px;
    line-height:1;
}
.composer-tool-button{
    border:0;
    background:transparent;
    display:flex;
    align-items:center;
    gap:8px;
    color:#526079;
    font-weight:650;
    padding:9px;
    border-radius:10px;
}
.composer-tool-button:hover{
    background:#f3f6fa;
}
.gif-label{
    min-width:31px;
    height:22px;
    padding:0 5px;
    border:2px solid #7c3aed;
    border-radius:5px;
    color:#7c3aed;
    font-size:11px;
    font-weight:900;
    display:grid;
    place-items:center;
}
.feeling-option svg{
    color:#f59e0b;
}
.composer-selection-preview{
    padding-left:67px;
    margin-top:10px;
}
.composer-selection-preview:empty{
    display:none;
}
.composer-selected-media,
.selected-gif-preview{
    width:max-content;
    max-width:100%;
    display:flex;
    align-items:center;
    gap:11px;
    padding:8px;
    border:1px solid var(--border);
    border-radius:13px;
    background:#f7f9fc;
}
.composer-selected-media>span{
    font-size:28px;
}
.composer-selected-media>div,
.selected-gif-preview>div{
    display:grid;
    gap:3px;
    min-width:0;
}
.composer-selected-media small,
.selected-gif-preview small{
    max-width:280px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted);
}
.composer-selected-media>button,
.selected-gif-preview>button{
    width:28px;
    height:28px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#dc2626;
    font-size:20px;
}
.selected-gif-preview img{
    width:74px;
    height:58px;
    object-fit:cover;
    border-radius:9px;
}
.composer-picker{
    margin:14px 0 0 67px;
    padding:16px;
    border:1px solid var(--border);
    border-radius:15px;
    background:#fff;
    box-shadow:0 14px 35px rgba(20,40,80,.10);
}
.composer-picker[hidden]{
    display:none;
}
.picker-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:13px;
}
.picker-heading h3{
    margin:0;
    font-size:18px;
}
.picker-heading p{
    margin:4px 0 0;
    color:var(--muted);
    font-size:13px;
}
.picker-heading>button{
    width:35px;
    height:35px;
    border:0;
    border-radius:10px;
    background:#f1f4f8;
    display:grid;
    place-items:center;
}
.gif-search-form{
    height:44px;
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid var(--border);
    border-radius:12px;
    padding-left:12px;
    margin-bottom:12px;
}
.gif-search-form>svg{
    width:19px;
    color:var(--muted);
}
.gif-search-form input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
}
.gif-search-form button{
    align-self:stretch;
    border:0;
    border-radius:0 11px 11px 0;
    padding:0 17px;
    background:var(--blue);
    color:#fff;
    font-weight:750;
}
.gif-picker-status{
    padding:22px;
    text-align:center;
    color:var(--muted);
}
.gif-picker-status[hidden]{
    display:none;
}
.gif-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    max-height:390px;
    overflow:auto;
}
.gif-result{
    aspect-ratio:1/1;
    padding:0;
    border:0;
    border-radius:10px;
    overflow:hidden;
    background:#edf1f6;
}
.gif-result img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.gif-result:hover{
    outline:3px solid #b7d0ff;
}
.giphy-credit{
    margin-top:10px;
    text-align:right;
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
}
.feeling-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
}
.feeling-grid button{
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    padding:12px 6px;
    display:grid;
    justify-items:center;
    gap:6px;
}
.feeling-grid button:hover{
    background:#fff8e7;
    border-color:#ffd98a;
}
.feeling-grid button span{
    font-size:25px;
}
.feeling-grid button strong{
    font-size:12px;
}
.post-author-line{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
}
.post-feeling-text{
    color:var(--muted)!important;
    font-size:14px!important;
}
.post-feeling-text strong{
    color:#7c4a00;
}
.post-gif-media{
    background:#eef2f7;
}
@media(max-width:700px){
    .composer-bottom{
        display:flex!important;
        flex-wrap:wrap;
    }
    .composer-bottom .composer-submit{
        margin-left:auto!important;
    }
    .composer-selection-preview,
    .composer-picker{
        margin-left:0;
        padding-left:0;
    }
    .composer-picker{
        padding:12px;
    }
    .gif-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        max-height:340px;
    }
    .feeling-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

/* Composer tool icon alignment fix */
.composer-bottom button.composer-tool-button{
    -webkit-appearance:none!important;
    appearance:none!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    background:transparent!important;
    color:#526079!important;
    font:inherit!important;
    font-weight:650!important;
    line-height:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    padding:9px!important;
    margin:0!important;
    border-radius:10px!important;
    cursor:pointer!important;
}
.composer-bottom button.composer-tool-button:hover,
.composer-bottom button.composer-tool-button:focus-visible{
    background:#f3f6fa!important;
}
.composer-bottom button.composer-tool-button svg{
    width:20px!important;
    height:20px!important;
    stroke-width:2!important;
}
.composer-bottom .gif-option svg{
    color:#7c3aed!important;
}
.composer-bottom .feeling-option svg{
    color:#f59e0b!important;
}
.composer-bottom .gif-option span,
.composer-bottom .feeling-option span{
    color:#526079!important;
}
@media(max-width:600px){
    .composer-bottom button.composer-tool-button{
        min-height:40px!important;
        padding:8px!important;
    }
}

/* Unified transparent composer media tools */
.composer-bottom .composer-media-option{
    -webkit-appearance:none!important;
    appearance:none!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    background:transparent!important;
    color:#526079!important;
    font:inherit!important;
    font-weight:650!important;
    line-height:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    min-height:40px!important;
    padding:8px 7px!important;
    margin:0!important;
    border-radius:0!important;
    cursor:pointer!important;
    white-space:nowrap!important;
    user-select:none!important;
    -webkit-tap-highlight-color:transparent!important;
}
.composer-bottom .composer-media-option:hover,
.composer-bottom .composer-media-option:focus-visible{
    background:transparent!important;
    color:var(--blue)!important;
}
.composer-bottom .composer-media-option input{
    display:none!important;
}
.composer-bottom .composer-media-option svg{
    width:21px!important;
    height:21px!important;
    stroke-width:2!important;
    flex:none!important;
}
.composer-bottom .photo-option svg{
    color:#16a34a!important;
}
.composer-bottom .video-option svg{
    color:#7c3aed!important;
}
.composer-bottom .gif-option svg{
    color:#2563eb!important;
}
.composer-bottom .feeling-option svg{
    color:#f59e0b!important;
}
.composer-bottom .composer-media-option:hover svg,
.composer-bottom .composer-media-option:focus-visible svg{
    color:var(--blue)!important;
}
.composer-bottom .composer-media-option span{
    color:inherit!important;
}
@media(max-width:600px){
    .composer-bottom .composer-media-option{
        min-height:38px!important;
        padding:7px 5px!important;
        gap:6px!important;
        font-size:13px!important;
    }
    .composer-bottom .composer-media-option svg{
        width:20px!important;
        height:20px!important;
    }
}

/* GIF search and Feeling interaction fix */
.composer{
    position:relative!important;
    overflow:visible!important;
    z-index:20!important;
}
.composer [data-post-form]{
    position:relative!important;
    overflow:visible!important;
}
.composer-picker{
    position:relative!important;
    z-index:60!important;
    pointer-events:auto!important;
}
.gif-search-form{
    position:relative!important;
    z-index:2!important;
}
.gif-search-form input,
.gif-search-form button,
.feeling-grid button,
.gif-result,
.picker-heading button{
    pointer-events:auto!important;
}
.gif-picker-panel[hidden],
.feeling-picker-panel[hidden]{
    display:none!important;
}


/* GIF search is isolated from the post form */
.gif-picker-panel,
.feeling-picker-panel{
    position:relative!important;
    z-index:100!important;
}
.gif-search-form input{
    touch-action:manipulation;
}


/* Top user bar and notifications */
.top-actions{
    overflow:visible!important;
}
.top-dropdown{
    position:relative;
    flex:none;
}
.top-icon-button{
    position:relative;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    border-radius:12px;
    background:transparent;
    color:#526079;
    display:grid;
    place-items:center;
}
.top-icon-button:hover,
.top-icon-button[aria-expanded="true"]{
    background:#eaf2ff;
    color:var(--blue);
}
.top-icon-button svg{
    width:22px;
    height:22px;
}
.notification-badge{
    right:-1px!important;
    top:-1px!important;
}
.userbar-button{
    height:48px;
    padding:4px 7px 4px 5px;
    border:0;
    border-radius:14px;
    background:transparent;
    color:var(--text);
    display:flex;
    align-items:center;
    gap:9px;
    font-weight:750;
}
.userbar-button:hover,
.userbar-button[aria-expanded="true"]{
    background:#f1f5fb;
}
.userbar-button>img{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
}
.userbar-button>svg{
    width:17px;
    color:#778398;
    transition:transform .18s ease;
}
.userbar-button[aria-expanded="true"]>svg{
    transform:rotate(180deg);
}
.top-dropdown-panel{
    position:absolute;
    right:0;
    top:calc(100% + 11px);
    z-index:3000;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:0 18px 50px rgba(20,40,80,.18);
}
.top-dropdown-panel[hidden]{
    display:none!important;
}
.userbar-panel{
    width:265px;
    padding:8px;
}
.userbar-profile-summary{
    display:flex;
    align-items:center;
    gap:11px;
    padding:11px;
    border-radius:12px;
    background:#f6f8fc;
}
.userbar-profile-summary:hover{
    background:#edf3ff;
}
.userbar-profile-summary img{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
}
.userbar-profile-summary span{
    min-width:0;
    display:grid;
    gap:3px;
}
.userbar-profile-summary strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.userbar-profile-summary small{
    color:var(--muted);
}
.userbar-menu{
    display:grid;
    gap:3px;
    padding-top:7px;
}
.userbar-menu a{
    display:flex;
    align-items:center;
    gap:11px;
    padding:11px 12px;
    border-radius:10px;
    color:#344054;
    font-weight:680;
}
.userbar-menu a:hover{
    background:#f2f5f9;
    color:var(--blue);
}
.userbar-menu a svg{
    width:20px;
    height:20px;
}
.userbar-menu .logout-item{
    color:#dc2626;
    border-top:1px solid var(--border);
    border-radius:0 0 10px 10px;
    margin-top:4px;
    padding-top:13px;
}
.userbar-menu .logout-item:hover{
    color:#b91c1c;
    background:#fff1f1;
}
.notification-panel{
    width:min(390px,calc(100vw - 24px));
    overflow:hidden;
}
.dropdown-panel-heading{
    min-height:72px;
    padding:15px 17px;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.dropdown-panel-heading h3{
    margin:0;
    font-size:20px;
}
.dropdown-panel-heading p{
    margin:3px 0 0;
    color:var(--muted);
    font-size:13px;
}
.dropdown-panel-heading>svg{
    width:25px;
    color:var(--blue);
}
.notification-list{
    max-height:480px;
    overflow:auto;
    padding:7px;
}
.notification-item{
    display:flex!important;
    align-items:flex-start;
    gap:11px;
    width:100%!important;
    height:auto!important;
    padding:10px!important;
    border-radius:12px!important;
    color:var(--text)!important;
}
.notification-item:hover{
    background:#f3f7fd!important;
}
.notification-avatar-wrap{
    position:relative;
    flex:none;
}
.notification-avatar-wrap>img{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
}
.notification-avatar-wrap>small{
    position:absolute;
    right:-3px;
    bottom:-2px;
    width:22px;
    height:22px;
    border:2px solid #fff;
    border-radius:50%;
    color:#fff;
    display:grid;
    place-items:center;
}
.notification-avatar-wrap>small svg{
    width:12px;
    height:12px;
}
.notification-avatar-wrap>small.comment{
    background:#2563eb;
}
.notification-avatar-wrap>small.like{
    background:#ef3340;
}
.notification-avatar-wrap>small.friend{
    background:#16a34a;
}
.notification-avatar-wrap>small.message{
    background:#7c3aed;
}
.notification-copy{
    min-width:0;
    flex:1;
    display:grid;
    gap:4px;
    line-height:1.35;
}
.notification-copy>span{
    font-size:14px;
}
.notification-preview{
    color:#667085;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.notification-time{
    color:var(--blue);
    font-weight:650;
}
.notification-empty{
    padding:34px 20px;
    text-align:center;
    color:var(--muted);
}
.notification-empty>span{
    width:56px;
    height:56px;
    margin:0 auto 12px;
    border-radius:50%;
    background:#edf4ff;
    color:var(--blue);
    display:grid;
    place-items:center;
}
.notification-empty h3,
.notification-empty strong{
    display:block;
    color:var(--text);
}
.notification-empty p{
    margin:6px 0 0;
    line-height:1.45;
}
@media(max-width:900px){
    .userbar-button{
        width:44px;
        height:44px;
        padding:2px;
        border-radius:12px;
        justify-content:center;
    }
    .userbar-button>img{
        width:40px;
        height:40px;
    }
    .userbar-button>span,
    .userbar-button>svg{
        display:none;
    }
    .top-dropdown-panel{
        position:fixed;
        top:76px;
        right:12px;
    }
    .notification-panel{
        left:12px;
        right:12px;
        width:auto;
        max-height:calc(100dvh - 92px);
    }
    .userbar-panel{
        width:min(280px,calc(100vw - 24px));
    }
}
@media(max-width:600px){
    .top-actions{
        gap:4px;
    }
    .top-icon-button{
        width:40px;
        height:40px;
    }
    .top-dropdown-panel{
        top:72px;
    }
    .notification-list{
        max-height:calc(100dvh - 175px);
    }
}

/* Stable cached-header fix */
.topbar{
    height:78px!important;
    min-height:78px!important;
    max-height:78px!important;
    overflow:visible!important;
}
.top-actions{
    height:100%!important;
    min-width:0!important;
    overflow:visible!important;
    flex:none!important;
}
.top-dropdown{
    position:relative!important;
    width:auto!important;
    height:48px!important;
    min-height:48px!important;
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    overflow:visible!important;
}
.top-dropdown button{
    -webkit-appearance:none!important;
    appearance:none!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    font:inherit!important;
}
.top-dropdown .top-icon-button{
    position:relative!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:0!important;
    border-radius:12px!important;
    background:transparent!important;
    color:#526079!important;
    display:grid!important;
    place-items:center!important;
}
.top-dropdown .top-icon-button:hover,
.top-dropdown .top-icon-button[aria-expanded="true"]{
    background:#eaf2ff!important;
    color:var(--blue)!important;
}
.top-dropdown .top-icon-button>svg{
    width:22px!important;
    height:22px!important;
    max-width:22px!important;
    max-height:22px!important;
}
.top-dropdown .userbar-button{
    width:auto!important;
    max-width:230px!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    padding:4px 8px 4px 5px!important;
    border-radius:14px!important;
    background:transparent!important;
    color:var(--text)!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    overflow:hidden!important;
}
.top-dropdown .userbar-button:hover,
.top-dropdown .userbar-button[aria-expanded="true"]{
    background:#f1f5fb!important;
}
.top-dropdown .userbar-button>img{
    display:block!important;
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    aspect-ratio:1/1!important;
    border-radius:50%!important;
    object-fit:cover!important;
    object-position:center!important;
    overflow:hidden!important;
    flex:0 0 40px!important;
}
.top-dropdown .userbar-button>span{
    min-width:0!important;
    max-width:140px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.top-dropdown .userbar-button>svg{
    width:17px!important;
    min-width:17px!important;
    max-width:17px!important;
    height:17px!important;
    min-height:17px!important;
    max-height:17px!important;
    flex:0 0 17px!important;
}
.top-dropdown .top-dropdown-panel{
    position:absolute!important;
    top:calc(100% + 10px)!important;
    right:0!important;
    left:auto!important;
    bottom:auto!important;
    margin:0!important;
    padding:0!important;
    z-index:5000!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid var(--border)!important;
    border-radius:16px!important;
    box-shadow:0 18px 50px rgba(20,40,80,.18)!important;
}
.top-dropdown .top-dropdown-panel[hidden]{
    display:none!important;
}
.top-dropdown .notification-panel{
    width:390px!important;
    min-width:390px!important;
    max-width:390px!important;
    height:auto!important;
    max-height:560px!important;
}
.top-dropdown .userbar-panel{
    width:265px!important;
    min-width:265px!important;
    max-width:265px!important;
    height:auto!important;
    max-height:430px!important;
    padding:8px!important;
}
.top-dropdown .notification-list{
    width:100%!important;
    max-height:475px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
}
.top-dropdown .notification-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:68px!important;
}
.top-dropdown .notification-avatar-wrap>img{
    display:block!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    aspect-ratio:1/1!important;
    border-radius:50%!important;
    object-fit:cover!important;
    object-position:center!important;
    overflow:hidden!important;
}
.top-dropdown .userbar-profile-summary img{
    display:block!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    aspect-ratio:1/1!important;
    border-radius:50%!important;
    object-fit:cover!important;
    object-position:center!important;
}
body{
    overflow-x:hidden!important;
}
@media(max-width:900px){
    .topbar{
        height:68px!important;
        min-height:68px!important;
        max-height:68px!important;
    }
    .top-dropdown{
        height:44px!important;
        min-height:44px!important;
    }
    .top-dropdown .userbar-button{
        width:44px!important;
        min-width:44px!important;
        max-width:44px!important;
        height:44px!important;
        min-height:44px!important;
        max-height:44px!important;
        padding:2px!important;
        justify-content:center!important;
    }
    .top-dropdown .userbar-button>img{
        width:40px!important;
        min-width:40px!important;
        max-width:40px!important;
        height:40px!important;
        min-height:40px!important;
        max-height:40px!important;
        flex-basis:40px!important;
    }
    .top-dropdown .userbar-button>span,
    .top-dropdown .userbar-button>svg{
        display:none!important;
    }
    .top-dropdown .top-dropdown-panel{
        position:fixed!important;
        top:76px!important;
        right:12px!important;
        left:auto!important;
    }
    .top-dropdown .notification-panel{
        left:12px!important;
        right:12px!important;
        width:auto!important;
        min-width:0!important;
        max-width:none!important;
        max-height:calc(100dvh - 92px)!important;
    }
    .top-dropdown .userbar-panel{
        width:min(280px,calc(100vw - 24px))!important;
        min-width:0!important;
        max-width:calc(100vw - 24px)!important;
    }
}
@media(max-width:600px){
    .top-dropdown .top-dropdown-panel{
        top:72px!important;
    }
    .top-dropdown .top-icon-button{
        width:40px!important;
        min-width:40px!important;
        max-width:40px!important;
        height:40px!important;
        min-height:40px!important;
        max-height:40px!important;
    }
}


/* Expanded notification center */
.notification-heading{
    gap:10px!important;
}
.notification-clear-button{
    flex:none;
    border:0;
    background:transparent;
    color:#dc2626;
    font-weight:750;
    padding:8px;
    border-radius:9px;
}
.notification-clear-button:hover{
    background:#fff1f1;
}
.notification-clear-button[hidden]{
    display:none!important;
}
.notification-item[hidden]{
    display:none!important;
}
.notification-item.unread{
    background:#f3f7ff!important;
}
.notification-avatar-wrap>small.friend_request,
.notification-avatar-wrap>small.friend_accepted{
    background:#16a34a;
}
.notification-avatar-wrap>small.post_comment,
.notification-avatar-wrap>small.comment_reply{
    background:#2563eb;
}
.notification-avatar-wrap>small.post_like{
    background:#ef3340;
}
.notification-footer{
    min-height:54px;
    padding:8px 11px;
    border-top:1px solid var(--border);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.notification-footer[hidden]{
    display:none!important;
}
.notification-footer button,
.notification-footer a{
    min-height:38px;
    border:0;
    border-radius:10px;
    padding:0 11px;
    font-weight:750;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}
.notification-footer button{
    background:#f1f5fb;
    color:#344054;
}
.notification-footer button:hover{
    background:#e8f0fc;
    color:var(--blue);
}
.notification-footer button[hidden]{
    display:none!important;
}
.notification-footer a{
    margin-left:auto;
    color:var(--blue);
}
.notification-footer a:hover{
    background:#edf4ff;
}
.notification-footer a svg{
    width:17px;
}
.top-dropdown .notification-list{
    max-height:405px!important;
}
.notifications-page-heading{
    align-items:center;
}
.notifications-page-heading form{
    margin-left:auto;
}
.notifications-clear-all{
    margin:0!important;
    display:inline-flex;
    align-items:center;
    gap:7px;
}
.notifications-page-card{
    padding:8px;
}
.notifications-page-list{
    display:grid;
}
.notifications-page-list .notification-item{
    min-height:78px!important;
    padding:13px!important;
    border-bottom:1px solid var(--border);
}
.notifications-page-list .notification-item:last-child{
    border-bottom:0;
}
.notifications-page-empty{
    padding:50px 20px;
}
.site-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:20px 10px 12px;
}
.site-pagination a{
    min-width:39px;
    height:39px;
    padding:0 10px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    color:#344054;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:750;
}
.site-pagination a:hover{
    border-color:#a9c7ff;
    color:var(--blue);
    background:#f3f7ff;
}
.site-pagination a.active{
    background:var(--blue);
    border-color:var(--blue);
    color:#fff;
}
.site-pagination a.disabled{
    opacity:.42;
    pointer-events:none;
}
.site-pagination svg{
    width:18px;
}
@media(max-width:600px){
    .notification-footer{
        padding:7px 8px;
    }
    .notification-footer button,
    .notification-footer a{
        padding:0 8px;
        font-size:13px;
    }
    .notifications-page-heading{
        align-items:flex-start!important;
    }
    .notifications-page-heading form{
        width:100%;
        margin-left:0;
    }
    .notifications-page-heading form button{
        width:100%;
    }
}


/* Dynamic site name and logo */
.brand{
    min-width:0;
}
.brand-text{
    display:block;
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.brand-logo-wrap,
.auth-logo-wrap{
    flex:none;
    width:42px;
    height:42px;
    border-radius:12px;
    background:#fff;
    border:1px solid var(--border);
    display:grid;
    place-items:center;
    overflow:hidden;
}
.brand-logo-wrap img,
.auth-logo-wrap img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
}
.auth-logo-wrap{
    width:52px;
    height:52px;
    border-radius:14px;
}
.auth-brand h1{
    color:var(--text);
}
.notification-badge[hidden]{
    display:none!important;
}
@media(max-width:600px){
    .brand-text{
        max-width:135px;
    }
    .brand-logo-wrap{
        width:38px;
        height:38px;
    }
}


/* People directory */
.people-page{
    min-width:0;
}
.people-heading{
    align-items:center;
}
.people-search-card{
    padding:18px;
}
.people-search-form{
    display:flex;
    align-items:center;
    gap:9px;
}
.people-search-form>label{
    flex:1;
    min-width:0;
    height:48px;
    padding:0 13px;
    border:1px solid var(--border);
    border-radius:13px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    gap:9px;
}
.people-search-form>label:focus-within{
    border-color:#8bb9ff;
    background:#fff;
    box-shadow:0 0 0 3px #eaf2ff;
}
.people-search-form>label svg{
    width:20px;
    color:var(--muted);
    flex:none;
}
.people-search-form input{
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
}
.people-search-form .primary-button,
.people-search-form .secondary-button{
    height:48px;
    padding:0 18px;
    flex:none;
}
.people-results-count{
    margin:12px 2px 0;
    color:var(--muted);
    font-size:13px;
}
.people-directory-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.people-directory-card{
    padding:17px;
    min-width:0;
    display:flex;
    flex-direction:column;
}
.people-directory-profile{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.people-directory-profile>img{
    display:block;
    width:68px;
    min-width:68px;
    height:68px;
    border-radius:50%;
    object-fit:cover;
}
.people-directory-profile>span{
    display:grid;
    gap:4px;
    min-width:0;
}
.people-directory-profile strong{
    font-size:18px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.people-directory-profile small{
    color:var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.people-directory-bio{
    min-height:42px;
    margin:13px 0 15px;
    color:#667085;
    line-height:1.45;
    font-size:14px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.people-directory-actions{
    margin-top:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}
.people-directory-actions form{
    margin:0;
    min-width:0;
}
.people-directory-actions .primary-button,
.people-directory-actions .secondary-button{
    width:100%;
    min-height:43px;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    white-space:nowrap;
}
.people-directory-actions svg{
    width:18px;
    height:18px;
}
.people-empty p{
    color:var(--muted);
}
.site-pagination-ellipsis{
    min-width:39px;
    height:39px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
}
@media(max-width:1050px){
    .people-directory-grid{
        grid-template-columns:1fr;
    }
}
@media(max-width:600px){
    .people-search-card{
        padding:13px;
    }
    .people-search-form{
        display:grid;
        grid-template-columns:1fr auto;
    }
    .people-search-form>label{
        grid-column:1 / -1;
    }
    .people-search-form .primary-button,
    .people-search-form .secondary-button{
        width:100%;
    }
    .people-directory-card{
        padding:14px;
    }
    .people-directory-profile>img{
        width:58px;
        min-width:58px;
        height:58px;
    }
    .people-directory-actions{
        grid-template-columns:1fr 1fr;
    }
    .people-directory-actions .primary-button,
    .people-directory-actions .secondary-button{
        font-size:13px;
    }
}
@media(max-width:390px){
    .people-directory-actions{
        grid-template-columns:1fr;
    }
}

/* Registration profile fields, profile About tab, and security PIN */
.auth-panel select,
.auth-panel textarea,
.settings-card select{
    width:100%;
    border:1px solid var(--border);
    border-radius:12px;
    padding:13px;
    outline:0;
    background:#fff;
    color:var(--text);
    font:inherit;
}
.auth-panel textarea,
.settings-card textarea{
    resize:vertical;
}
.auth-panel select:focus,
.auth-panel textarea:focus,
.settings-card select:focus{
    border-color:#8bb9ff;
    box-shadow:0 0 0 4px #eaf2ff;
}
.registration-panel{
    width:min(650px,100%);
}
.registration-form{
    display:grid;
}
.registration-select-row,
.settings-two-columns,
.security-pin-fields{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:13px;
}
.registration-gender{
    min-width:0;
    margin:0 0 17px;
    padding:0;
    border:0;
}
.registration-gender legend{
    margin-bottom:8px;
    font-weight:700;
}
.registration-gender{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.registration-gender legend{
    grid-column:1 / -1;
}
.registration-gender label{
    position:relative;
    margin:0!important;
}
.registration-gender input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.registration-gender label>span{
    min-height:48px;
    padding:0 14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    color:#526079;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
}
.registration-gender input:checked+span{
    border-color:var(--blue);
    background:#edf4ff;
    color:var(--blue);
    box-shadow:0 0 0 3px #e3efff;
}
.registration-gender svg{
    width:19px;
}
.profile-tabs{
    min-height:56px;
    padding:0 18px;
    border-top:1px solid var(--border);
    display:flex;
    align-items:flex-end;
    gap:8px;
}
.profile-tabs a{
    min-height:55px;
    padding:0 18px;
    border-bottom:3px solid transparent;
    color:#667085;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:750;
}
.profile-tabs a:hover{
    color:var(--blue);
    background:#f6f9ff;
}
.profile-tabs a.active{
    color:var(--blue);
    border-bottom-color:var(--blue);
}
.profile-tabs svg{
    width:19px;
}
.profile-about-card{
    padding:22px;
}
.profile-about-heading,
.settings-section-heading{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}
.profile-about-heading>span,
.settings-section-heading>span{
    width:46px;
    height:46px;
    border-radius:13px;
    background:#eaf2ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    flex:none;
}
.profile-about-heading>span svg,
.settings-section-heading>span svg{
    width:23px;
}
.profile-about-heading h2,
.settings-section-heading h1,
.settings-section-heading h2{
    margin:0;
}
.profile-about-heading p,
.settings-section-heading p{
    margin:4px 0 0;
    color:var(--muted);
}
.profile-about-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.profile-about-item{
    min-width:0;
    min-height:88px;
    padding:15px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fafbfd;
    display:flex;
    align-items:flex-start;
    gap:12px;
}
.profile-about-item>span{
    width:39px;
    height:39px;
    border-radius:11px;
    background:#edf4ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    flex:none;
}
.profile-about-item>span svg{
    width:20px;
}
.profile-about-item>div{
    min-width:0;
    display:grid;
    gap:5px;
}
.profile-about-item small{
    color:var(--muted);
    font-weight:650;
}
.profile-about-item strong,
.profile-about-item p{
    margin:0;
    color:var(--text);
    line-height:1.45;
    overflow-wrap:anywhere;
}
.profile-about-bio{
    grid-column:1 / -1;
    min-height:105px;
}
.settings-page{
    min-width:0;
}
.settings-card{
    margin-bottom:16px;
}
.settings-card label small{
    color:var(--muted);
    font-weight:500;
    line-height:1.4;
}
.settings-card button svg{
    width:18px;
}
.settings-card .primary-button,
.settings-card .secondary-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}
.readonly-setting{
    background:#f4f6f9!important;
    color:#667085;
}
.security-status-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.security-pin-status{
    min-height:42px;
    padding:0 13px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:750;
}
.security-pin-status.enabled{
    background:#ecfdf3;
    color:#15803d;
}
.security-pin-status.missing{
    background:#fff7ed;
    color:#c2410c;
}
.security-pin-status svg{
    width:19px;
}
.password-pin-required{
    padding:15px;
    border:1px solid #fed7aa;
    border-radius:14px;
    background:#fff7ed;
    display:flex;
    align-items:center;
    gap:12px;
}
.password-pin-required>svg{
    width:25px;
    color:#c2410c;
    flex:none;
}
.password-pin-required>div{
    flex:1;
    min-width:0;
}
.password-pin-required p{
    margin:4px 0 0;
    color:#9a3412;
}
.security-pin-page{
    min-height:calc(100vh - 78px);
    padding:30px 16px;
    display:grid;
    place-items:center;
}
.security-pin-card{
    width:min(540px,100%);
    padding:30px;
}
.security-pin-icon{
    width:68px;
    height:68px;
    margin:0 auto 17px;
    border-radius:20px;
    background:#eaf2ff;
    color:var(--blue);
    display:grid;
    place-items:center;
}
.security-pin-icon svg{
    width:34px;
    height:34px;
}
.security-pin-heading{
    text-align:center;
}
.security-pin-heading h1{
    margin:0;
}
.security-pin-heading p{
    margin:9px auto 23px;
    max-width:440px;
    color:var(--muted);
    line-height:1.55;
}
.security-pin-form label{
    display:grid;
    gap:8px;
    margin-bottom:16px;
    font-weight:700;
}
.security-pin-form input{
    width:100%;
    border:1px solid var(--border);
    border-radius:12px;
    padding:13px;
    outline:0;
}
.security-pin-form input:focus{
    border-color:#8bb9ff;
    box-shadow:0 0 0 4px #eaf2ff;
}
.security-pin-form .primary-button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.security-pin-skip{
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid var(--border);
    text-align:center;
}
.security-pin-skip button{
    border:0;
    background:transparent;
    color:var(--blue);
    font-weight:750;
    cursor:pointer;
}
.security-pin-skip small{
    display:block;
    margin-top:6px;
    color:var(--muted);
}
.security-pin-back{
    width:max-content;
    margin:18px auto 0;
    color:var(--blue);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-weight:750;
}
.security-pin-back svg{
    width:18px;
}
@media(max-width:600px){
    .registration-select-row,
    .settings-two-columns,
    .security-pin-fields,
    .profile-about-grid{
        grid-template-columns:1fr;
    }
    .profile-about-bio{
        grid-column:auto;
    }
    .registration-gender{
        grid-template-columns:1fr 1fr;
    }
    .profile-tabs{
        padding:0 8px;
    }
    .profile-tabs a{
        flex:1;
        padding:0 8px;
    }
    .profile-about-card,
    .security-pin-card{
        padding:18px;
    }
    .security-status-row,
    .password-pin-required{
        align-items:stretch;
        flex-direction:column;
    }
    .security-status-row .secondary-button,
    .password-pin-required .primary-button{
        width:100%;
    }
}

/* Multi-step registration wizard */
.registration-wizard{
    display:block!important;
}
.registration-progress{
    position:relative;
    margin:4px 0 28px;
}
.registration-progress-track{
    position:absolute;
    left:16.666%;
    right:16.666%;
    top:18px;
    height:4px;
    border-radius:999px;
    background:#e7ebf2;
    overflow:hidden;
}
.registration-progress-track>span{
    display:block;
    width:0;
    height:100%;
    border-radius:inherit;
    background:var(--blue);
    transition:width .28s ease;
}
.registration-progress ol{
    position:relative;
    z-index:1;
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.registration-progress li{
    display:grid;
    justify-items:center;
    gap:7px;
    color:#98a2b3;
    font-weight:700;
    text-align:center;
}
.registration-progress li>span{
    width:40px;
    height:40px;
    border:3px solid #e7ebf2;
    border-radius:50%;
    background:#fff;
    display:grid;
    place-items:center;
}
.registration-progress li.active{
    color:var(--blue);
}
.registration-progress li.active>span{
    border-color:var(--blue);
    color:var(--blue);
    box-shadow:0 0 0 5px #eaf2ff;
}
.registration-progress li.completed{
    color:#15803d;
}
.registration-progress li.completed>span{
    border-color:#16a34a;
    background:#16a34a;
    color:#fff;
}
.registration-progress li small{
    font-size:12px;
}
.registration-step{
    animation:registrationStepIn .22s ease;
}
.registration-step[hidden]{
    display:none!important;
}
@keyframes registrationStepIn{
    from{opacity:0;transform:translateX(10px)}
    to{opacity:1;transform:translateX(0)}
}
.registration-step-heading{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}
.registration-step-heading>span{
    width:48px;
    height:48px;
    border-radius:14px;
    background:#eaf2ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    flex:none;
}
.registration-step-heading>span svg{
    width:24px;
}
.registration-step-heading h3{
    margin:0;
    font-size:21px;
}
.registration-step-heading p{
    margin:4px 0 0;
    color:var(--muted);
}
.registration-step label small{
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-weight:500;
}
.registration-password-field{
    position:relative;
}
.registration-password-field input{
    padding-right:49px!important;
}
.registration-password-field button{
    position:absolute;
    right:5px;
    top:50%;
    width:40px;
    height:40px;
    padding:0;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#667085;
    display:grid;
    place-items:center;
    transform:translateY(-50%);
}
.registration-password-field button:hover{
    background:#f1f5f9;
    color:var(--blue);
}
.registration-password-field button svg{
    width:19px;
}
.registration-character-count{
    text-align:right;
}
.registration-finish-note{
    margin-top:12px;
    padding:15px;
    border:1px solid #bfdbfe;
    border-radius:14px;
    background:#eff6ff;
    display:flex;
    align-items:flex-start;
    gap:12px;
}
.registration-finish-note>svg{
    width:25px;
    color:var(--blue);
    flex:none;
}
.registration-finish-note strong{
    display:block;
    color:#1d4ed8;
}
.registration-finish-note p{
    margin:5px 0 0;
    color:#475569;
    line-height:1.45;
}
.registration-wizard-actions{
    min-height:54px;
    margin-top:23px;
    padding-top:18px;
    border-top:1px solid var(--border);
    display:flex;
    align-items:center;
    gap:10px;
}
.registration-wizard-actions button{
    min-height:46px;
    padding:0 17px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.registration-wizard-actions button[hidden]{
    display:none!important;
}
.registration-wizard-actions button svg{
    width:18px;
}
.registration-back-button{
    margin-right:auto;
}
.registration-step-count{
    margin-left:auto;
    color:var(--muted);
    font-size:13px;
    white-space:nowrap;
}
.registration-step-count strong{
    color:var(--text);
}
@media(max-width:600px){
    .registration-progress{
        margin-bottom:22px;
    }
    .registration-progress li small{
        font-size:11px;
    }
    .registration-step-heading{
        align-items:flex-start;
    }
    .registration-step-heading>span{
        width:43px;
        height:43px;
    }
    .registration-wizard-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .registration-step-count{
        grid-column:1/-1;
        grid-row:1;
        margin:0;
        text-align:center;
    }
    .registration-back-button,
    .registration-next-button,
    .registration-finish-button{
        width:100%;
        margin:0;
    }
    .registration-finish-button{
        grid-column:1/-1;
    }
}

/* Registration username availability and profile-picture upload */
.registration-username-input-wrap{
    position:relative;
}
.registration-username-input-wrap input{
    padding-right:48px!important;
}
.registration-username-spinner{
    position:absolute;
    right:15px;
    top:50%;
    width:19px;
    height:19px;
    margin-top:-10px;
    border:2px solid #dbe4f0;
    border-top-color:var(--blue);
    border-radius:50%;
    animation:registrationUsernameSpin .7s linear infinite;
}
.registration-username-spinner[hidden]{
    display:none!important;
}
@keyframes registrationUsernameSpin{
    to{transform:rotate(360deg)}
}
.registration-username-status{
    position:relative;
    padding-left:18px;
    font-weight:700!important;
}
.registration-username-status[hidden]{
    display:none!important;
}
.registration-username-status::before{
    content:'';
    position:absolute;
    left:1px;
    top:50%;
    width:9px;
    height:9px;
    margin-top:-4px;
    border-radius:50%;
    background:currentColor;
}
.registration-username-status.checking{
    color:#64748b!important;
}
.registration-username-status.available{
    color:#15803d!important;
}
.registration-username-status.unavailable,
.registration-username-status.error{
    color:#dc2626!important;
}
.registration-username-field:has(.registration-username-status.available)
.registration-username-input-wrap input{
    border-color:#86efac!important;
    box-shadow:0 0 0 3px #dcfce7!important;
}
.registration-username-field:has(.registration-username-status.unavailable)
.registration-username-input-wrap input,
.registration-username-field:has(.registration-username-status.error)
.registration-username-input-wrap input{
    border-color:#fca5a5!important;
    box-shadow:0 0 0 3px #fee2e2!important;
}
.registration-avatar-uploader{
    margin-bottom:20px;
    padding:16px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    gap:17px;
}
.registration-avatar-preview{
    width:96px;
    min-width:96px;
    height:96px;
    border:4px solid #fff;
    border-radius:50%;
    background:#eaf0f8;
    box-shadow:0 5px 18px rgba(15,35,70,.13);
    overflow:hidden;
}
.registration-avatar-preview img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}
.registration-avatar-copy{
    min-width:0;
    flex:1;
}
.registration-avatar-copy>strong{
    display:block;
    font-size:17px;
}
.registration-avatar-copy>p{
    margin:4px 0 11px;
    color:var(--muted);
    line-height:1.4;
}
.registration-avatar-copy>small{
    display:block;
    margin-top:8px;
    max-width:100%;
    color:var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.registration-avatar-button{
    position:relative;
    display:inline-block!important;
    margin:0!important;
}
.registration-avatar-button input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    overflow:hidden;
    pointer-events:none;
}
.registration-avatar-button>span{
    min-height:42px;
    padding:0 14px;
    border:1px solid #bdd3f8;
    border-radius:11px;
    background:#fff;
    color:var(--blue);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:750;
    cursor:pointer;
}
.registration-avatar-button>span:hover{
    background:#edf4ff;
}
.registration-avatar-button svg{
    width:18px;
}
@media(max-width:600px){
    .registration-avatar-uploader{
        align-items:center;
        flex-direction:column;
        text-align:center;
    }
    .registration-avatar-copy>small{
        white-space:normal;
    }
}

/* Unified Profile, Security, and Privacy settings */
.settings-shell{
    grid-template-columns:300px minmax(0,1fr)!important;
    max-width:1230px;
}
.settings-workspace{
    min-width:0;
    display:grid;
    gap:18px;
}
.settings-header{
    overflow:hidden;
}
.settings-header-copy{
    padding:23px 24px 18px;
    display:flex;
    align-items:center;
    gap:13px;
}
.settings-header-copy>span{
    width:50px;
    height:50px;
    border-radius:15px;
    background:#eaf2ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    flex:none;
}
.settings-header-copy>span svg{
    width:25px;
}
.settings-header h1{
    margin:0;
    font-size:28px;
}
.settings-header p{
    margin:4px 0 0;
    color:var(--muted);
}
.settings-tabs{
    min-height:58px;
    padding:0 14px;
    border-top:1px solid var(--border);
    display:flex;
    align-items:flex-end;
    gap:5px;
}
.settings-tabs a{
    min-height:57px;
    padding:0 20px;
    border-bottom:3px solid transparent;
    color:#667085;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:750;
}
.settings-tabs a:hover{
    color:var(--blue);
    background:#f6f9ff;
}
.settings-tabs a.active{
    color:var(--blue);
    border-bottom-color:var(--blue);
}
.settings-tabs svg{
    width:19px;
}
.settings-panel{
    padding:25px;
}
.settings-panel-heading{
    margin-bottom:22px;
}
.settings-panel-heading>div{
    display:flex;
    align-items:center;
    gap:12px;
}
.settings-panel-heading>div>span{
    width:47px;
    height:47px;
    border-radius:14px;
    background:#edf4ff;
    color:var(--blue);
    display:grid;
    place-items:center;
    flex:none;
}
.settings-panel-heading>div>span svg{
    width:23px;
}
.settings-panel-heading h2{
    margin:0;
    font-size:22px;
}
.settings-panel-heading p{
    margin:4px 0 0;
    color:var(--muted);
}
.settings-profile-preview{
    margin-bottom:23px;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}
.settings-cover-preview{
    height:180px;
    background-size:cover;
    background-position:center;
}
.settings-avatar-row{
    min-height:86px;
    padding:0 20px 16px;
    display:flex;
    align-items:flex-end;
    gap:14px;
}
.settings-avatar-row>img{
    width:90px;
    height:90px;
    margin-top:-36px;
    border:5px solid #fff;
    border-radius:50%;
    object-fit:cover;
    background:#fff;
}
.settings-avatar-row>div{
    min-width:0;
    display:grid;
    gap:4px;
}
.settings-avatar-row strong{
    font-size:18px;
}
.settings-avatar-row small{
    color:var(--muted);
}
.settings-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
}
.settings-form-grid>label,
.settings-panel>label{
    margin:0!important;
}
.settings-full-field{
    grid-column:1/-1;
}
.settings-upload-field{
    position:relative;
    min-height:112px;
    padding:15px;
    border:1px dashed #b8c3d4;
    border-radius:14px;
    background:#fafbfd;
    align-content:start;
}
.settings-upload-field input{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
}
.settings-upload-field>strong{
    width:max-content;
    min-height:42px;
    padding:0 13px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    color:#344054;
    display:inline-flex;
    align-items:center;
    gap:7px;
    cursor:pointer;
}
.settings-upload-field>strong:hover{
    color:var(--blue);
    border-color:#9fc2ff;
    background:#f4f8ff;
}
.settings-upload-field>strong svg{
    width:18px;
}
.settings-save-row{
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid var(--border);
    display:flex;
    justify-content:flex-end;
}
.settings-security-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    align-items:start;
}
.settings-security-grid .settings-panel{
    margin:0;
}
.settings-security-grid .settings-panel-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.settings-warning-box{
    min-height:116px;
    padding:16px;
    border:1px solid #fed7aa;
    border-radius:14px;
    background:#fff7ed;
    display:flex;
    align-items:flex-start;
    gap:12px;
}
.settings-warning-box>svg{
    width:25px;
    color:#c2410c;
    flex:none;
}
.settings-warning-box strong{
    color:#9a3412;
}
.settings-warning-box p{
    margin:5px 0 0;
    color:#9a3412;
    line-height:1.45;
}
.privacy-setting-list{
    display:grid;
    gap:11px;
}
.privacy-select-row{
    min-height:88px;
    margin:0!important;
    padding:15px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fafbfd;
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.privacy-select-row>span:first-child{
    min-width:0;
    display:flex;
    align-items:flex-start;
    gap:12px;
}
.privacy-select-row>span:first-child>svg{
    width:22px;
    color:var(--blue);
    flex:none;
}
.privacy-select-row>span:first-child>span{
    min-width:0;
    display:grid;
    gap:4px;
}
.privacy-select-row small{
    color:var(--muted);
    font-weight:500;
    line-height:1.4;
}
.privacy-select-row select{
    width:180px;
    flex:none;
}
.privacy-details-heading{
    margin:26px 0 13px;
}
.privacy-details-heading h3{
    margin:0;
}
.privacy-details-heading p{
    margin:5px 0 0;
    color:var(--muted);
}
.privacy-toggle-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.privacy-toggle-card{
    position:relative;
    min-height:130px;
    margin:0!important;
    padding:16px;
    border:1px solid var(--border);
    border-radius:14px;
    background:#fafbfd;
    display:flex!important;
    flex-direction:column;
    justify-content:space-between;
    gap:15px;
}
.privacy-toggle-card>span:first-child{
    display:flex;
    align-items:flex-start;
    gap:10px;
}
.privacy-toggle-card>span:first-child>svg{
    width:21px;
    color:var(--blue);
    flex:none;
}
.privacy-toggle-card>span:first-child>span{
    display:grid;
    gap:5px;
}
.privacy-toggle-card small{
    color:var(--muted);
    font-weight:500;
    line-height:1.35;
}
.privacy-toggle-card input{
    position:absolute!important;
    opacity:0!important;
    pointer-events:none!important;
}
.privacy-switch{
    position:relative;
    width:48px;
    height:27px;
    border-radius:999px;
    background:#cbd5e1;
    transition:.2s ease;
}
.privacy-switch::after{
    content:'';
    position:absolute;
    left:3px;
    top:3px;
    width:21px;
    height:21px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 6px rgba(15,23,42,.18);
    transition:.2s ease;
}
.privacy-toggle-card input:checked+.privacy-switch{
    background:var(--blue);
}
.privacy-toggle-card input:checked+.privacy-switch::after{
    transform:translateX(21px);
}
.settings-panel input,
.settings-panel textarea,
.settings-panel select{
    width:100%;
}
@media(max-width:1050px){
    .settings-shell{
        grid-template-columns:260px minmax(0,1fr)!important;
    }
    .settings-security-grid{
        grid-template-columns:1fr;
    }
    .privacy-toggle-grid{
        grid-template-columns:1fr;
    }
}
@media(max-width:900px){
    .settings-shell{
        grid-template-columns:1fr!important;
        width:min(900px,calc(100% - 24px))!important;
    }
}
@media(max-width:650px){
    .settings-header-copy{
        padding:18px;
    }
    .settings-tabs{
        padding:0 5px;
    }
    .settings-tabs a{
        flex:1;
        padding:0 7px;
        font-size:13px;
    }
    .settings-panel{
        padding:17px;
    }
    .settings-form-grid{
        grid-template-columns:1fr;
    }
    .settings-full-field{
        grid-column:auto;
    }
    .settings-cover-preview{
        height:130px;
    }
    .settings-avatar-row{
        padding:0 14px 14px;
    }
    .settings-avatar-row>img{
        width:76px;
        height:76px;
    }
    .privacy-select-row{
        align-items:stretch;
        flex-direction:column;
    }
    .privacy-select-row select{
        width:100%;
    }
}

/* Privacy enforcement states */
.profile-private-card{
    min-height:190px;
    padding:32px;
    text-align:center;
    display:grid;
    justify-items:center;
    align-content:center;
}
.profile-private-card>span{
    width:64px;
    height:64px;
    border-radius:20px;
    background:#edf4ff;
    color:var(--blue);
    display:grid;
    place-items:center;
}
.profile-private-card>span svg{
    width:31px;
}
.profile-private-card h2{
    margin:15px 0 5px;
}
.profile-private-card p{
    margin:0;
    color:var(--muted);
}
.privacy-disabled-action{
    cursor:not-allowed;
    opacity:.76;
    pointer-events:none;
}
.message-privacy-notice{
    flex:none;
    min-height:78px;
    padding:14px 18px;
    border-top:1px solid var(--border);
    background:#f8fafc;
    display:flex;
    align-items:center;
    gap:12px;
}
.message-privacy-notice>svg{
    width:24px;
    color:var(--blue);
    flex:none;
}
.message-privacy-notice strong{
    display:block;
}
.message-privacy-notice p{
    margin:4px 0 0;
    color:var(--muted);
}

/* Final professional Settings form controls */
.settings-workspace,
.settings-panel,
.settings-form-grid{
    min-width:0!important;
}

.settings-panel{
    overflow:hidden!important;
}

.settings-panel label,
.settings-form-grid>label,
.settings-panel>label{
    min-width:0!important;
    display:grid!important;
    gap:8px!important;
    margin:0!important;
    color:#182230!important;
    font-size:14px!important;
    font-weight:750!important;
}

.settings-panel label>small,
.settings-form-grid label>small{
    margin:0!important;
    color:#667085!important;
    font-size:12px!important;
    font-weight:500!important;
    line-height:1.45!important;
}

.settings-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.settings-panel select,
.settings-panel textarea{
    -webkit-appearance:none!important;
    appearance:none!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    border:1px solid #d8dee9!important;
    border-radius:12px!important;
    background-color:#fff!important;
    color:#111827!important;
    box-shadow:0 1px 2px rgba(16,24,40,.03)!important;
    outline:0!important;
    font:inherit!important;
    font-size:15px!important;
    font-weight:500!important;
    line-height:1.4!important;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease!important;
}

.settings-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]){
    height:48px!important;
    padding:0 14px!important;
}

.settings-panel select{
    height:48px!important;
    padding:0 44px 0 14px!important;
    cursor:pointer!important;
    background-image:
        linear-gradient(45deg,transparent 50%,#667085 50%),
        linear-gradient(135deg,#667085 50%,transparent 50%)!important;
    background-position:
        calc(100% - 19px) 21px,
        calc(100% - 14px) 21px!important;
    background-size:5px 5px,5px 5px!important;
    background-repeat:no-repeat!important;
}

.settings-panel textarea{
    min-height:145px!important;
    padding:14px!important;
    resize:vertical!important;
}

.settings-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.settings-panel select:hover,
.settings-panel textarea:hover{
    border-color:#b8c3d4!important;
}

.settings-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.settings-panel select:focus,
.settings-panel textarea:focus{
    border-color:#6ea8ff!important;
    background-color:#fff!important;
    box-shadow:0 0 0 4px rgba(15,111,255,.12)!important;
}

.settings-panel input[readonly],
.settings-panel .readonly-setting{
    background:#f4f6f9!important;
    color:#667085!important;
    cursor:not-allowed!important;
    box-shadow:none!important;
}

.settings-panel input::placeholder,
.settings-panel textarea::placeholder{
    color:#98a2b3!important;
    opacity:1!important;
}

.settings-upload-field{
    display:grid!important;
    gap:9px!important;
    min-height:132px!important;
    padding:16px!important;
    border:1px dashed #b8c3d4!important;
    border-radius:14px!important;
    background:#fafbfd!important;
}

.settings-upload-field>span{
    color:#182230!important;
    font-weight:750!important;
}

.settings-upload-field>strong{
    width:max-content!important;
    min-height:44px!important;
    padding:0 15px!important;
    border:1px solid #d8dee9!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#344054!important;
    box-shadow:0 1px 2px rgba(16,24,40,.04)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    font-size:14px!important;
    font-weight:750!important;
    cursor:pointer!important;
}

.settings-upload-field>strong:hover{
    border-color:#9bbfff!important;
    background:#f3f7ff!important;
    color:var(--blue)!important;
}

.settings-panel .primary-button,
.settings-panel .secondary-button{
    min-height:46px!important;
    border-radius:11px!important;
    padding:0 18px!important;
    font-size:14px!important;
    font-weight:750!important;
    box-shadow:none!important;
}

.settings-save-row{
    margin-top:24px!important;
    padding-top:20px!important;
}

.settings-form-grid{
    align-items:start!important;
}

@media(max-width:650px){
    .settings-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    .settings-panel select{
        height:46px!important;
    }

    .settings-panel textarea{
        min-height:130px!important;
    }

    .settings-upload-field{
        min-height:120px!important;
    }

    .settings-save-row .primary-button{
        width:100%!important;
    }
}

/* User block states */
.profile-blocked-status{
    color:#dc2626!important;
    background:#fff1f1!important;
    border-color:#fecaca!important;
    cursor:default!important;
}
.profile-blocked-status svg{
    width:18px;
}

/* Five-at-a-time posts, verified badges, leaderboard, and profile visits */
.progressive-post-feed{
    min-width:0;
}
.progressive-post-entry[hidden]{
    display:none!important;
}
.progressive-post-footer{
    padding:3px 0 14px;
}
.progressive-post-footer[hidden]{
    display:none!important;
}
.show-more-posts-button{
    width:100%;
    min-height:54px;
    padding:0 17px;
    border:1px solid #d8e2f0;
    border-radius:14px;
    background:#fff;
    color:#344054;
    box-shadow:0 5px 18px rgba(28,55,90,.06);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    font:inherit;
    font-weight:780;
    cursor:pointer;
}
.show-more-posts-button:hover{
    border-color:#9fc2ff;
    background:#f3f7ff;
    color:var(--blue);
}
.show-more-posts-button>svg{
    width:20px;
}
.show-more-posts-button small{
    padding:4px 7px;
    border-radius:999px;
    background:#eef2f7;
    color:#667085;
    font-size:11px;
    font-weight:700;
}
.verified-badge{
    width:18px;
    height:18px;
    color:#0f6fff;
    display:inline-grid!important;
    place-items:center;
    flex:none;
    vertical-align:-3px;
}
.verified-badge svg{
    width:18px!important;
    height:18px!important;
    fill:#dceaff;
    stroke-width:2.4;
}
.profile-main-copy h1,
.post-author,
.profile-card h2,
.people-directory-profile strong,
.leaderboard-member strong,
.people-grid strong{
    display:flex;
    align-items:center;
    gap:5px;
}
.notification-avatar-clip{
    display:block;
    width:48px;
    height:48px;
    border-radius:50%;
    overflow:hidden;
    background:#e8edf5;
}
.notification-avatar-clip>img{
    display:block;
    width:48px;
    height:48px;
    object-fit:cover;
}
.very-blurred-visitor-avatar{
    filter:blur(10px) saturate(.6)!important;
    transform:scale(1.35)!important;
}
.anonymous-profile-visit{
    cursor:default;
}
.notification-avatar-wrap>small.profile_visit{
    background:#0f6fff;
}
.leaderboard-page{
    min-width:0;
}
.leaderboard-hero{
    min-height:128px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:16px;
    background:
        radial-gradient(circle at 92% 10%,rgba(255,204,71,.22),transparent 34%),
        linear-gradient(135deg,#fff,#f7faff);
}
.leaderboard-hero-icon{
    width:68px;
    height:68px;
    border-radius:20px;
    background:linear-gradient(145deg,#ffca3a,#f59e0b);
    color:#fff;
    box-shadow:0 12px 28px rgba(245,158,11,.25);
    display:grid;
    place-items:center;
    flex:none;
}
.leaderboard-hero-icon svg{
    width:34px;
    height:34px;
}
.leaderboard-hero-copy{
    min-width:0;
    flex:1;
}
.leaderboard-hero-copy h1{
    margin:0;
    font-size:27px;
}
.leaderboard-hero-copy p{
    margin:6px 0 0;
    color:var(--muted);
    line-height:1.45;
}
.leaderboard-your-rank{
    min-width:98px;
    padding:12px 15px;
    border:1px solid #fde1a8;
    border-radius:14px;
    background:#fff9e9;
    text-align:center;
}
.leaderboard-your-rank small{
    display:block;
    color:#9a6700;
    font-weight:650;
}
.leaderboard-your-rank strong{
    display:block;
    margin-top:3px;
    color:#b45309;
    font-size:23px;
}
.leaderboard-rules{
    padding:12px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.leaderboard-rules>div{
    min-height:70px;
    padding:13px;
    border:1px solid var(--border);
    border-radius:13px;
    background:#fafbfd;
    display:flex;
    align-items:center;
    gap:11px;
}
.leaderboard-rules svg{
    width:22px;
    color:var(--blue);
    flex:none;
}
.leaderboard-rules span{
    color:#667085;
    font-size:13px;
    line-height:1.35;
}
.leaderboard-rules strong{
    color:var(--text);
    font-size:17px;
}
.leaderboard-list{
    overflow:hidden;
}
.leaderboard-list-heading,
.leaderboard-row{
    display:grid;
    grid-template-columns:70px minmax(220px,1fr) 200px 105px;
    align-items:center;
    gap:12px;
}
.leaderboard-list-heading{
    min-height:48px;
    padding:0 17px;
    border-bottom:1px solid var(--border);
    background:#f7f9fc;
    color:#667085;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.leaderboard-row{
    min-height:86px;
    padding:12px 17px;
    border-bottom:1px solid var(--border);
    transition:background .18s ease;
}
.leaderboard-row:last-child{
    border-bottom:0;
}
.leaderboard-row:hover{
    background:#f8faff;
}
.leaderboard-row.current-user{
    background:#eef5ff;
    box-shadow:inset 4px 0 0 var(--blue);
}
.leaderboard-row.top-rank{
    background:linear-gradient(90deg,#fffbeb,#fff);
}
.leaderboard-rank{
    display:grid;
    place-items:center;
}
.leaderboard-rank>svg{
    width:29px;
    height:29px;
}
.leaderboard-row.rank-1 .leaderboard-rank{
    color:#e9a500;
}
.leaderboard-row.rank-2 .leaderboard-rank{
    color:#8492a6;
}
.leaderboard-row.rank-3 .leaderboard-rank{
    color:#b87333;
}
.leaderboard-member{
    min-width:0;
    display:flex;
    align-items:center;
    gap:11px;
}
.leaderboard-member>img{
    width:52px;
    height:52px;
    border-radius:50%;
    object-fit:cover;
    flex:none;
}
.leaderboard-member>span{
    min-width:0;
    display:grid;
    gap:4px;
}
.leaderboard-member strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.leaderboard-member small{
    color:var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.leaderboard-breakdown{
    display:flex;
    align-items:center;
    gap:8px;
}
.leaderboard-breakdown>span{
    min-width:55px;
    min-height:36px;
    padding:0 8px;
    border-radius:9px;
    background:#f1f5f9;
    color:#526079;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:13px;
    font-weight:700;
}
.leaderboard-breakdown svg{
    width:15px;
}
.leaderboard-points{
    text-align:right;
}
.leaderboard-points strong{
    display:block;
    color:#0f6fff;
    font-size:20px;
}
.leaderboard-points small{
    color:var(--muted);
}
@media(max-width:1050px){
    .leaderboard-rules{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:850px){
    .leaderboard-list-heading{
        display:none;
    }
    .leaderboard-row{
        grid-template-columns:46px minmax(0,1fr) auto;
    }
    .leaderboard-breakdown{
        grid-column:2/-1;
        grid-row:2;
    }
    .leaderboard-points{
        grid-column:3;
        grid-row:1;
    }
}
@media(max-width:600px){
    .show-more-posts-button{
        border-radius:12px;
    }
    .leaderboard-hero{
        align-items:flex-start;
        flex-wrap:wrap;
        padding:17px;
    }
    .leaderboard-hero-icon{
        width:54px;
        height:54px;
        border-radius:16px;
    }
    .leaderboard-hero-icon svg{
        width:28px;
    }
    .leaderboard-your-rank{
        width:100%;
    }
    .leaderboard-rules{
        grid-template-columns:1fr;
    }
    .leaderboard-row{
        grid-template-columns:38px minmax(0,1fr) auto;
        padding:11px;
        gap:8px;
    }
    .leaderboard-member>img{
        width:45px;
        height:45px;
    }
    .leaderboard-breakdown{
        flex-wrap:wrap;
    }
    .leaderboard-breakdown>span{
        min-width:48px;
    }
}

/* Earned-points popup */
.point-popup-stack{
    position:fixed;
    right:22px;
    top:88px;
    width:min(390px,calc(100% - 28px));
    z-index:5000;
    pointer-events:none;
}
.point-earned-popup{
    position:relative;
    width:100%;
    padding:17px 46px 17px 16px;
    border:1px solid #dbe7f8;
    border-radius:17px;
    background:
        radial-gradient(
            circle at 8% 0,
            rgba(255,207,72,.24),
            transparent 30%
        ),
        #fff;
    box-shadow:0 20px 55px rgba(31,55,90,.22);
    display:flex;
    align-items:flex-start;
    gap:13px;
    opacity:0;
    transform:translateY(-14px) scale(.97);
    transition:
        opacity .22s ease,
        transform .22s ease;
    pointer-events:auto;
}
.point-earned-popup[hidden]{
    display:none!important;
}
.point-earned-popup.visible{
    opacity:1;
    transform:translateY(0) scale(1);
}
.point-earned-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    background:linear-gradient(145deg,#ffca3a,#f59e0b);
    color:#fff;
    box-shadow:0 10px 22px rgba(245,158,11,.24);
    display:grid;
    place-items:center;
    flex:none;
}
.point-earned-icon svg{
    width:26px;
    height:26px;
}
.point-earned-copy{
    min-width:0;
    flex:1;
}
.point-earned-copy>small{
    display:block;
    color:#8a6100;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.point-earned-copy>strong{
    display:block;
    margin-top:1px;
    color:#b45309;
    font-size:23px;
    line-height:1.2;
}
.point-earned-copy>p{
    margin:4px 0 10px;
    color:#475467;
    font-size:13px;
    line-height:1.4;
}
.point-earned-popup>button{
    position:absolute;
    right:10px;
    top:10px;
    width:31px;
    height:31px;
    padding:0;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#667085;
    display:grid;
    place-items:center;
    cursor:pointer;
}
.point-earned-popup>button:hover{
    background:#f2f4f7;
    color:#111827;
}
.point-earned-popup>button svg{
    width:17px;
}
.point-daily-progress{
    display:grid;
    gap:6px;
}
.point-daily-progress>span:first-child{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.point-daily-progress small{
    color:#667085;
    font-size:11px;
    font-weight:700;
}
.point-daily-progress strong{
    color:#344054;
    font-size:12px;
}
.point-progress-track{
    height:7px;
    border-radius:999px;
    background:#edf1f6;
    overflow:hidden;
}
.point-progress-track>span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#ffbf19,#f59e0b);
}
.point-unlimited-label{
    width:max-content;
    max-width:100%;
    padding:5px 8px;
    border-radius:9px;
    background:#eef5ff;
    color:#0f6fff;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    font-weight:750;
}
.point-unlimited-label svg{
    width:15px;
}
.point-limit-reached{
    display:inline-flex;
    margin-top:8px;
    padding:4px 7px;
    border-radius:8px;
    background:#fff1f1;
    color:#c2410c;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
@media(max-width:600px){
    .point-popup-stack{
        top:76px;
        left:12px;
        right:12px;
        width:auto;
    }
    .point-earned-popup{
        padding:14px 43px 14px 13px;
        border-radius:15px;
    }
    .point-earned-icon{
        width:45px;
        height:45px;
        border-radius:14px;
    }
    .point-earned-copy>strong{
        font-size:20px;
    }
}

/* YouTube post composer and custom classic player */
.youtube-option svg{
    color:#e11d48!important;
}
.youtube-link-form{
    min-height:48px;
    display:flex;
    align-items:center;
    gap:9px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}
.youtube-link-form>span{
    width:44px;
    align-self:stretch;
    background:#fff1f2;
    color:#e11d48;
    display:grid;
    place-items:center;
    flex:none;
}
.youtube-link-form>span svg{
    width:19px;
}
.youtube-link-form input{
    flex:1;
    min-width:0;
    height:46px;
    padding:0 4px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    font:inherit;
}
.youtube-link-form>button{
    align-self:stretch;
    min-width:112px;
    padding:0 16px;
    border:0;
    background:#e11d48;
    color:#fff;
    font:inherit;
    font-weight:750;
    cursor:pointer;
}
.youtube-link-form>button:hover{
    background:#be123c;
}
.youtube-link-status{
    margin-top:10px;
    padding:10px 12px;
    border-radius:10px;
    font-size:13px;
    font-weight:650;
}
.youtube-link-status[hidden]{
    display:none!important;
}
.youtube-link-status.error{
    background:#fff1f2;
    color:#be123c;
}
.youtube-link-status.success{
    background:#ecfdf3;
    color:#15803d;
}
.composer-selected-youtube>img{
    width:82px;
    height:52px;
    border-radius:9px;
    object-fit:cover;
    flex:none;
}
.classic-youtube-player{
    width:calc(100% - 40px);
    margin:0 20px;
    border-radius:15px;
    overflow:hidden;
    background:#07090d;
    box-shadow:0 8px 24px rgba(15,23,42,.16);
}
.classic-youtube-stage{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#05070a;
}
.classic-youtube-mount,
.classic-youtube-mount>div,
.classic-youtube-mount iframe{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    border:0!important;
}
.classic-youtube-mount iframe{
    pointer-events:none!important;
}
.classic-youtube-click-shield{
    position:absolute;
    inset:0;
    z-index:4;
    background:transparent;
    pointer-events:auto;
}
.classic-youtube-poster{
    position:absolute;
    inset:0;
    z-index:6;
    background-size:cover;
    background-position:center;
    display:grid;
    place-items:center;
    transition:opacity .2s ease,visibility .2s ease;
}
.classic-youtube-poster::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.12),
            rgba(0,0,0,.28)
        );
}
.classic-youtube-poster.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}
.classic-youtube-big-play{
    position:relative;
    z-index:2;
    width:72px;
    height:72px;
    padding:0;
    border:2px solid rgba(255,255,255,.88);
    border-radius:50%;
    background:rgba(10,13,18,.82);
    color:#fff;
    box-shadow:0 12px 32px rgba(0,0,0,.35);
    display:grid;
    place-items:center;
    cursor:pointer;
    transition:transform .18s ease,background .18s ease;
}
.classic-youtube-big-play:hover{
    transform:scale(1.06);
    background:#0f6fff;
}
.classic-youtube-big-play svg{
    width:31px;
    height:31px;
    margin-left:4px;
}
.classic-youtube-loading{
    position:absolute;
    inset:0;
    z-index:8;
    background:rgba(0,0,0,.38);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}
.classic-youtube-loading[hidden]{
    display:none!important;
}
.classic-youtube-loading span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#fff;
    animation:classicYoutubeLoading .9s infinite alternate;
}
.classic-youtube-loading span:nth-child(2){
    animation-delay:.15s;
}
.classic-youtube-loading span:nth-child(3){
    animation-delay:.3s;
}
@keyframes classicYoutubeLoading{
    from{
        opacity:.35;
        transform:translateY(2px);
    }
    to{
        opacity:1;
        transform:translateY(-3px);
    }
}
.classic-youtube-controls{
    min-height:54px;
    padding:0 11px;
    background:linear-gradient(180deg,#161a22,#0c0f14);
    color:#fff;
    display:grid;
    grid-template-columns:
        38px auto minmax(90px,1fr) auto 38px 82px 38px;
    align-items:center;
    gap:8px;
}
.classic-youtube-controls button{
    width:38px;
    height:38px;
    padding:0;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
}
.classic-youtube-controls button:hover{
    background:rgba(255,255,255,.12);
}
.classic-youtube-controls button svg{
    width:20px;
}
.classic-youtube-time{
    min-width:37px;
    color:#e5e7eb;
    font-variant-numeric:tabular-nums;
    font-size:12px;
    font-weight:650;
    text-align:center;
}
.classic-youtube-progress,
.classic-youtube-volume{
    -webkit-appearance:none;
    appearance:none;
    height:5px;
    padding:0;
    border:0;
    border-radius:999px;
    outline:0;
    background:#46505f;
    cursor:pointer;
}
.classic-youtube-progress::-webkit-slider-thumb,
.classic-youtube-volume::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:14px;
    height:14px;
    border:0;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 6px rgba(0,0,0,.35);
}
.classic-youtube-progress::-moz-range-thumb,
.classic-youtube-volume::-moz-range-thumb{
    width:14px;
    height:14px;
    border:0;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 6px rgba(0,0,0,.35);
}
.classic-youtube-progress{
    accent-color:#0f6fff;
}
.classic-youtube-volume{
    accent-color:#fff;
}
.classic-youtube-player:fullscreen{
    width:100%;
    height:100%;
    margin:0;
    border-radius:0;
    display:grid;
    grid-template-rows:minmax(0,1fr) 58px;
}
.classic-youtube-player:fullscreen .classic-youtube-stage{
    aspect-ratio:auto;
    height:100%;
}
.classic-youtube-player.player-error .classic-youtube-poster::after{
    content:'Video could not be loaded';
    position:absolute;
    left:50%;
    bottom:24px;
    z-index:3;
    transform:translateX(-50%);
    padding:8px 11px;
    border-radius:9px;
    background:rgba(0,0,0,.75);
    color:#fff;
    font-size:13px;
    white-space:nowrap;
}
.uploaded-post-video{
    background:#05070a;
}
@media(max-width:700px){
    .youtube-link-form{
        align-items:stretch;
        flex-wrap:wrap;
        overflow:visible;
        border:0;
        background:transparent;
    }
    .youtube-link-form>span{
        display:none;
    }
    .youtube-link-form input{
        flex-basis:100%;
        padding:0 12px;
        border:1px solid var(--border);
        border-radius:11px;
        background:#fff;
    }
    .youtube-link-form>button{
        width:100%;
        min-height:44px;
        border-radius:11px;
    }
    .classic-youtube-player{
        width:100%;
        margin:0;
        border-radius:0;
    }
    .classic-youtube-controls{
        min-height:52px;
        padding:0 7px;
        grid-template-columns:
            35px auto minmax(50px,1fr) auto 35px 35px;
        gap:4px;
    }
    .classic-youtube-volume{
        display:none;
    }
    .classic-youtube-controls button{
        width:35px;
        height:35px;
    }
    .classic-youtube-time{
        min-width:32px;
        font-size:11px;
    }
    .classic-youtube-big-play{
        width:62px;
        height:62px;
    }
}

/* Clean YouTube video display without dark masks */
.classic-youtube-stage{
    isolation:isolate;
    background:#000!important;
}
.classic-youtube-mount{
    position:absolute!important;
    inset:-5.5% -4.5%!important;
    width:109%!important;
    height:111%!important;
    overflow:hidden!important;
    z-index:1!important;
    opacity:1;
    visibility:visible;
}
.classic-youtube-mount>div,
.classic-youtube-mount iframe{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    border:0!important;
}
.classic-youtube-mount iframe{
    transform:scale(1.025)!important;
    transform-origin:center!important;
    pointer-events:none!important;
}
.classic-youtube-stage::before,
.classic-youtube-stage::after{
    display:none!important;
    content:none!important;
}
.classic-youtube-provider-mask,
.provider-mask-top,
.provider-mask-bottom,
.provider-mask-bottom-right{
    display:none!important;
}
.classic-youtube-click-shield{
    z-index:4!important;
}
.classic-youtube-poster{
    z-index:6!important;
    background-color:#000;
}
.classic-youtube-poster::before{
    display:none!important;
    content:none!important;
}
.classic-youtube-loading{
    z-index:8!important;
}
.classic-youtube-player.is-paused .classic-youtube-mount,
.classic-youtube-player.is-ended .classic-youtube-mount{
    opacity:0!important;
    visibility:hidden!important;
}
.classic-youtube-player.is-playing .classic-youtube-mount{
    opacity:1!important;
    visibility:visible!important;
}
.classic-youtube-player.is-paused .classic-youtube-poster,
.classic-youtube-player.is-ended .classic-youtube-poster{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
}
.classic-youtube-player.is-paused
.classic-youtube-poster::after,
.classic-youtube-player.is-ended
.classic-youtube-poster::after{
    display:none!important;
    content:none!important;
}
@media(max-width:700px){
    .classic-youtube-mount{
        inset:-6% -5%!important;
        width:110%!important;
        height:112%!important;
    }
}

/* Browser WebRTC audio and video calls */
.chat-person-avatar{
    position:relative;
    width:48px;
    height:48px;
    flex:none;
}
.chat-person-avatar>img{
    width:48px!important;
    height:48px!important;
}
.chat-person-avatar>small{
    position:absolute;
    right:1px;
    bottom:1px;
    width:12px;
    height:12px;
    border:2px solid #fff;
    border-radius:50%;
    background:#22c55e;
}
.chat-call-actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:8px;
}
.chat-call-actions>button,
.chat-profile-link{
    width:44px;
    height:44px;
    padding:0;
    border:1px solid #e5eaf1;
    border-radius:50%;
    background:#fff;
    color:#0f6fff;
    box-shadow:0 5px 16px rgba(31,55,90,.08);
    display:grid;
    place-items:center;
    cursor:pointer;
}
.chat-call-actions>button:hover,
.chat-profile-link:hover{
    border-color:#b8d1ff;
    background:#edf4ff;
    color:#0f6fff;
}
.chat-call-actions>button:disabled{
    opacity:.5;
    cursor:not-allowed;
}
.chat-call-actions svg{
    width:20px;
}
.chat-call-actions+.chat-profile-link{
    margin-left:0;
}
.chat-person strong{
    display:flex;
    align-items:center;
    gap:5px;
}
[data-call-header-status]{
    color:#0f6fff;
    font-weight:650;
}
.webrtc-call-stage{
    position:relative;
    flex:1;
    min-height:0;
    background:#090c12;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}
.webrtc-call-stage[hidden]{
    display:none!important;
}
.webrtc-remote-area{
    position:relative;
    min-height:0;
    flex:1;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(38,88,160,.2),
            transparent 46%
        ),
        #0a0d13;
}
.webrtc-remote-area>video{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:#070a0f;
}
.webrtc-remote-area>video[hidden]{
    display:none!important;
}
.webrtc-audio-avatar{
    position:absolute;
    inset:0;
    display:grid;
    place-content:center;
    justify-items:center;
    gap:12px;
    color:#fff;
    text-align:center;
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(15,111,255,.28),
            transparent 34%
        ),
        linear-gradient(145deg,#111827,#070a0f);
}
.webrtc-audio-avatar[hidden]{
    display:none!important;
}
.webrtc-audio-avatar>img{
    position:relative;
    z-index:2;
    width:126px;
    height:126px;
    border:5px solid rgba(255,255,255,.16);
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 18px 45px rgba(0,0,0,.34);
}
.webrtc-audio-avatar>strong{
    position:relative;
    z-index:2;
    font-size:25px;
}
.webrtc-audio-avatar>small{
    position:relative;
    z-index:2;
    color:#cbd5e1;
    font-size:14px;
}
.webrtc-audio-rings{
    position:absolute;
    left:50%;
    top:50%;
    width:150px;
    height:150px;
    border:2px solid rgba(74,144,255,.38);
    border-radius:50%;
    transform:translate(-50%,-64%);
    animation:webrtcAudioRing 1.8s infinite;
}
.webrtc-audio-rings::before,
.webrtc-audio-rings::after{
    content:'';
    position:absolute;
    inset:-24px;
    border:2px solid rgba(74,144,255,.2);
    border-radius:50%;
}
.webrtc-audio-rings::after{
    inset:-49px;
    border-color:rgba(74,144,255,.1);
}
@keyframes webrtcAudioRing{
    0%,100%{
        transform:translate(-50%,-64%) scale(.94);
        opacity:.72;
    }
    50%{
        transform:translate(-50%,-64%) scale(1.05);
        opacity:1;
    }
}
.webrtc-call-status-card{
    position:absolute;
    left:14px;
    top:14px;
    z-index:8;
    min-width:126px;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(7,10,15,.76);
    color:#fff;
    backdrop-filter:blur(10px);
    display:grid;
    grid-template-columns:10px 1fr;
    gap:3px 7px;
}
.webrtc-call-status-card>span{
    width:9px;
    height:9px;
    margin-top:4px;
    border-radius:50%;
    background:#f59e0b;
    box-shadow:0 0 0 4px rgba(245,158,11,.14);
}
.webrtc-call-status-card>span.state-connected{
    background:#22c55e;
    box-shadow:0 0 0 4px rgba(34,197,94,.14);
}
.webrtc-call-status-card>span.state-ended{
    background:#ef4444;
    box-shadow:0 0 0 4px rgba(239,68,68,.14);
}
.webrtc-call-status-card>span.state-warning{
    background:#f97316;
}
.webrtc-call-status-card>strong{
    font-size:13px;
}
.webrtc-call-status-card>small{
    grid-column:2;
    color:#d1d5db;
    font-variant-numeric:tabular-nums;
    font-size:12px;
}
.webrtc-local-preview{
    position:absolute;
    right:16px;
    bottom:16px;
    z-index:8;
    width:190px;
    aspect-ratio:16/10;
    border:2px solid rgba(255,255,255,.72);
    border-radius:15px;
    background:#151a23;
    box-shadow:0 14px 36px rgba(0,0,0,.34);
    overflow:hidden;
}
.webrtc-local-preview>video,
.webrtc-local-preview>div{
    width:100%;
    height:100%;
}
.webrtc-local-preview>video{
    object-fit:contain;
    object-position:center;
    background:#0a0d13;
    transform:scaleX(-1);
}
.webrtc-local-preview>video[hidden],
.webrtc-local-preview>div[hidden]{
    display:none!important;
}
.webrtc-local-preview>div{
    color:#94a3b8;
    display:grid;
    place-items:center;
}
.webrtc-local-preview>div svg{
    width:44px;
    height:44px;
}
.webrtc-local-preview>span{
    position:absolute;
    left:8px;
    bottom:7px;
    padding:3px 7px;
    border-radius:7px;
    background:rgba(0,0,0,.56);
    color:#fff;
    font-size:10px;
    font-weight:750;
}
.webrtc-stage-fullscreen{
    position:absolute;
    right:16px;
    bottom:calc(16px + 126px);
    z-index:8;
    width:42px;
    height:42px;
    padding:0;
    border:1px solid rgba(255,255,255,.14);
    border-radius:12px;
    background:rgba(7,10,15,.7);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
}
.webrtc-stage-fullscreen:hover{
    background:rgba(15,111,255,.88);
}
.webrtc-stage-fullscreen svg{
    width:19px;
}
.webrtc-call-controls{
    position:absolute;
    left:50%;
    bottom:18px;
    z-index:10;
    min-height:66px;
    padding:8px 10px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    background:rgba(6,9,14,.86);
    box-shadow:0 16px 40px rgba(0,0,0,.34);
    backdrop-filter:blur(12px);
    display:flex;
    align-items:center;
    gap:8px;
    transform:translateX(-50%);
}
.webrtc-call-controls>button{
    min-width:54px;
    height:50px;
    padding:0 10px;
    border:0;
    border-radius:14px;
    background:rgba(255,255,255,.09);
    color:#fff;
    display:grid;
    grid-template-columns:1fr;
    justify-items:center;
    align-content:center;
    gap:2px;
    cursor:pointer;
}
.webrtc-call-controls>button:hover,
.webrtc-call-controls>button.active{
    background:#0f6fff;
}
.webrtc-call-controls>button.off{
    background:#ef4444;
}
.webrtc-call-controls>button[hidden]{
    display:none!important;
}
.webrtc-call-controls svg{
    width:21px;
}
.webrtc-call-controls span{
    font-size:9px;
    font-weight:700;
}
.webrtc-call-controls>.webrtc-end-call{
    min-width:62px;
    background:#ef3340;
}
.webrtc-call-controls>.webrtc-end-call:hover{
    background:#d91f2d;
}
.webrtc-call-chat-modal{
    position:absolute;
    inset:0;
    z-index:30;
    padding:22px;
    display:grid;
    place-items:center;
}
.webrtc-call-chat-modal[hidden]{
    display:none!important;
}
.webrtc-call-chat-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:rgba(3,7,13,.66);
    backdrop-filter:blur(5px);
    cursor:pointer;
}
.webrtc-call-chat-panel{
    position:relative;
    z-index:2;
    width:min(440px,100%);
    height:min(650px,calc(100% - 22px));
    min-height:390px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:20px;
    background:#fff;
    box-shadow:0 28px 80px rgba(0,0,0,.42);
    overflow:hidden;
    display:flex;
    flex-direction:column;
}
.webrtc-call-chat-header{
    min-height:70px;
    padding:11px 14px;
    border-bottom:1px solid var(--border);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.webrtc-call-chat-person{
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
}
.webrtc-call-chat-person>img{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
    flex:none;
}
.webrtc-call-chat-person>span{
    min-width:0;
    display:grid;
    gap:3px;
}
.webrtc-call-chat-person strong{
    color:var(--text);
    font-size:16px;
}
.webrtc-call-chat-person small{
    color:var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.webrtc-call-chat-header>button{
    width:38px;
    height:38px;
    padding:0;
    border:0;
    border-radius:11px;
    background:#f1f5f9;
    color:#526079;
    display:grid;
    place-items:center;
    cursor:pointer;
    flex:none;
}
.webrtc-call-chat-header>button:hover{
    background:#e8f1ff;
    color:var(--blue);
}
.webrtc-call-chat-header>button svg{
    width:19px;
}
.webrtc-call-chat-content{
    min-height:0;
    flex:1;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:#f7f9fc;
}
.webrtc-call-chat-content>.message-stream{
    min-height:0;
    flex:1;
    padding:17px 14px;
    background:#f7f9fc;
}
.webrtc-call-chat-content>.message-composer{
    flex:none;
    border-top:1px solid var(--border);
    background:#fff;
    padding:10px;
}
.webrtc-call-chat-content
.message-bubble{
    max-width:82%;
}
.webrtc-call-chat-content
.emoji-picker{
    bottom:68px;
}
body.webrtc-call-chat-open{
    overflow:hidden;
}
.chat-pane.webrtc-call-active{
    position:relative;
}
.chat-pane.webrtc-call-active>.message-stream{
    display:none!important;
}
.message-composer.webrtc-composer-active{
    position:relative;
    z-index:12;
}
.webrtc-call-stage:fullscreen{
    width:100%;
    height:100%;
}
.webrtc-call-stage:fullscreen .webrtc-remote-area{
    height:100%;
}
.incoming-call-overlay{
    position:fixed;
    inset:0;
    z-index:10000;
    padding:18px;
    background:rgba(28,39,55,.66);
    backdrop-filter:blur(5px);
    display:grid;
    place-items:center;
}
.incoming-call-overlay[hidden]{
    display:none!important;
}
body.incoming-call-open{
    overflow:hidden;
}
.incoming-call-popup{
    position:relative;
    width:min(390px,100%);
    padding:34px 28px 27px;
    border:1px solid rgba(255,255,255,.8);
    border-radius:22px;
    background:#fff;
    box-shadow:0 30px 90px rgba(15,23,42,.32);
    text-align:center;
}
.incoming-call-close{
    position:absolute;
    right:14px;
    top:14px;
    width:34px;
    height:34px;
    padding:0;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#64748b;
    display:grid;
    place-items:center;
    cursor:pointer;
}
.incoming-call-close:hover{
    background:#f1f5f9;
}
.incoming-call-avatar-wrap{
    position:relative;
    width:112px;
    height:112px;
    margin:0 auto 15px;
    display:grid;
    place-items:center;
}
.incoming-call-avatar-wrap>img{
    position:relative;
    z-index:2;
    width:88px;
    height:88px;
    border:5px solid #e9f2ff;
    border-radius:50%;
    object-fit:cover;
    background:#eef4ff;
}
.incoming-call-avatar-wrap>small{
    position:absolute;
    right:12px;
    bottom:13px;
    z-index:3;
    width:16px;
    height:16px;
    border:3px solid #fff;
    border-radius:50%;
    background:#22c55e;
}
.incoming-call-rings{
    position:absolute;
    inset:9px;
    border:2px solid rgba(15,111,255,.2);
    border-radius:50%;
    animation:incomingCallPulse 1.5s infinite;
}
.incoming-call-rings::before,
.incoming-call-rings::after{
    content:'';
    position:absolute;
    border:2px solid rgba(15,111,255,.12);
    border-radius:50%;
}
.incoming-call-rings::before{
    inset:-11px;
}
.incoming-call-rings::after{
    inset:-23px;
}
@keyframes incomingCallPulse{
    0%,100%{
        transform:scale(.92);
        opacity:.7;
    }
    50%{
        transform:scale(1.05);
        opacity:1;
    }
}
.incoming-call-popup h2{
    margin:0;
    font-size:27px;
}
.incoming-call-popup>p{
    margin:4px 0 17px;
    color:#64748b;
}
.incoming-call-type{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    color:#526079;
    font-size:14px;
}
.incoming-call-type svg{
    width:18px;
}
.incoming-call-ringing{
    display:block;
    margin:14px 0 25px;
    color:#0f6fff;
    font-size:14px;
}
.incoming-call-ringing span{
    display:inline-block;
    animation:incomingDots 1s infinite;
}
@keyframes incomingDots{
    0%,100%{opacity:.25}
    50%{opacity:1}
}
.incoming-call-actions{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.incoming-call-actions>button{
    padding:0;
    border:0;
    background:transparent;
    display:grid;
    justify-items:center;
    gap:8px;
    cursor:pointer;
}
.incoming-call-actions>button>span{
    width:58px;
    height:58px;
    border-radius:50%;
    color:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,.14);
    display:grid;
    place-items:center;
    transition:transform .18s ease;
}
.incoming-call-actions>button:hover>span{
    transform:scale(1.07);
}
.incoming-call-actions svg{
    width:25px;
}
.incoming-call-actions small{
    color:#526079;
    font-size:12px;
    font-weight:700;
}
.incoming-decline-button>span{
    background:#ef3340;
}
.incoming-audio-button>span{
    background:#fff;
    color:#0f172a!important;
    border:1px solid #dce3ed;
}
.incoming-accept-button>span{
    background:#22c55e;
}
@media(max-width:900px){
    .chat-call-actions{
        margin-left:auto;
        gap:5px;
    }
    .chat-call-actions>button,
    .chat-profile-link{
        width:39px;
        height:39px;
    }
    .webrtc-local-preview{
        width:145px;
    }
    .webrtc-stage-fullscreen{
        bottom:calc(16px + 96px);
    }
}
@media(max-width:700px){
    .chat-person-avatar{
        width:43px;
        height:43px;
    }
    .chat-person-avatar>img{
        width:43px!important;
        height:43px!important;
    }
    .chat-person>span:last-child{
        max-width:120px;
    }
    .chat-person strong,
    .chat-person small{
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    .chat-call-actions>button,
    .chat-profile-link{
        width:36px;
        height:36px;
        box-shadow:none;
    }
    .chat-call-actions svg,
    .chat-profile-link svg{
        width:18px;
    }
    .webrtc-call-stage{
        min-height:0;
    }
    .webrtc-call-controls{
        left:8px;
        right:8px;
        bottom:10px;
        min-height:59px;
        padding:6px;
        border-radius:17px;
        justify-content:space-between;
        transform:none;
    }
    .webrtc-call-controls>button{
        min-width:45px;
        height:47px;
        padding:0 5px;
        border-radius:12px;
    }
    .webrtc-call-controls span{
        display:none;
    }
    .webrtc-call-controls>.webrtc-end-call{
        min-width:51px;
    }
    .webrtc-local-preview{
        right:10px;
        bottom:82px;
        width:118px;
        border-radius:12px;
    }
    .webrtc-stage-fullscreen{
        right:10px;
        bottom:calc(82px + 78px);
        width:38px;
        height:38px;
    }
    .webrtc-call-status-card{
        left:10px;
        top:10px;
        min-width:112px;
        padding:8px 10px;
    }
    .incoming-call-popup{
        padding:30px 18px 23px;
        border-radius:20px;
    }
    .incoming-call-actions{
        gap:10px;
    }
    .incoming-call-actions>button>span{
        width:54px;
        height:54px;
    }
}

/* Real-time private messages */
.realtime-message-text{
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}
.realtime-message-arrival{
    animation:realtimeMessageArrival .2s ease;
}
@keyframes realtimeMessageArrival{
    from{
        opacity:0;
        transform:translateY(7px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.conversation-item.has-realtime-unread:not(.active){
    background:#f1f6ff;
}
.message-composer.sending-message{
    opacity:.72;
}
.message-composer.sending-message
.message-send-button{
    cursor:wait;
}
.message-send-button:disabled{
    opacity:.58;
    cursor:not-allowed;
}

@media(max-width:700px){
    .webrtc-call-chat-modal{
        position:fixed;
        inset:0;
        z-index:10050;
        padding:0;
        align-items:end;
    }
    .webrtc-call-chat-backdrop{
        background:rgba(3,7,13,.72);
    }
    .webrtc-call-chat-panel{
        width:100%;
        height:min(86dvh,760px);
        min-height:520px;
        max-height:none;
        border:0;
        border-radius:20px 20px 0 0;
        box-shadow:0 -18px 55px rgba(0,0,0,.34);
    }
    .webrtc-call-chat-header{
        min-height:66px;
        padding:10px 12px;
    }
    .webrtc-call-chat-content>.message-stream{
        padding:13px 9px;
    }
    .webrtc-call-chat-content>.message-composer{
        padding:
            8px
            7px
            max(8px,env(safe-area-inset-bottom));
    }
    .webrtc-call-chat-content
    .message-bubble{
        max-width:88%;
    }
    .webrtc-call-chat-content
    .emoji-picker{
        position:fixed;
        left:8px;
        right:8px;
        bottom:70px;
        width:auto;
        z-index:10070;
    }
}
@media(max-width:430px){
    .webrtc-call-chat-panel{
        height:100dvh;
        min-height:100dvh;
        border-radius:0;
    }
}

/* WebRTC camera framing and unread-badge visibility fixes */
.conversation-unread[hidden]{
    display:none!important;
}
.webrtc-remote-area>video{
    max-width:100%;
    max-height:100%;
}
.webrtc-local-preview>video{
    max-width:100%;
    max-height:100%;
}

/* Admin-controlled right sidebar widgets */
.right-sidebar-empty{
    display:none!important;
}
.app-shell:has(> .right-sidebar-empty){
    grid-template-columns:300px minmax(0,1fr);
}
.app-shell:has(> .right-sidebar-empty)>.feed-column{
    width:min(900px,100%);
    justify-self:center;
}
@media(max-width:1280px){
    .app-shell:has(> .right-sidebar-empty){
        grid-template-columns:260px minmax(0,1fr);
    }
    .app-shell:has(> .right-sidebar-empty)>.feed-column{
        width:100%;
    }
}
@media(max-width:760px){
    .app-shell:has(> .right-sidebar-empty){
        grid-template-columns:1fr;
    }
}

/* Profile Posts, Photos, Videos tabs and 12-item media gallery */
.profile-tabs{
    overflow-x:auto;
    scrollbar-width:none;
}
.profile-tabs::-webkit-scrollbar{
    display:none;
}
.profile-tabs a{
    min-width:max-content;
}
.profile-tabs a>span{
    display:inline;
}
.profile-tabs a>small{
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:999px;
    background:#edf1f6;
    color:#667085;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:800;
}
.profile-tabs a.active>small{
    background:#dceaff;
    color:#0f6fff;
}
.profile-media-gallery{
    overflow:hidden;
}
.profile-media-gallery-heading{
    min-height:76px;
    padding:14px 17px;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
}
.profile-media-gallery-heading>div{
    display:flex;
    align-items:center;
    gap:11px;
}
.profile-media-gallery-heading>div>span{
    width:44px;
    height:44px;
    border-radius:13px;
    background:#eaf2ff;
    color:#0f6fff;
    display:grid;
    place-items:center;
}
.profile-media-gallery-heading svg{
    width:21px;
}
.profile-media-gallery-heading h2{
    margin:0;
    font-size:19px;
}
.profile-media-gallery-heading p{
    margin:3px 0 0;
    color:var(--muted);
    font-size:13px;
}
.profile-media-grid{
    padding:4px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
}
.profile-media-item{
    min-width:0;
    aspect-ratio:1/1;
    background:#e9eef5;
    overflow:hidden;
}
.profile-media-item[hidden]{
    display:none!important;
}
.profile-media-item>a{
    position:relative;
    width:100%;
    height:100%;
    display:block;
    overflow:hidden;
}
.profile-media-item img,
.profile-media-item video{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    transition:transform .22s ease;
}
.profile-media-item:hover img,
.profile-media-item:hover video{
    transform:scale(1.035);
}
.profile-media-item>a::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        transparent 52%,
        rgba(4,9,16,.68) 100%
    );
    opacity:.78;
    transition:opacity .2s ease;
}
.profile-media-item:hover>a::after{
    opacity:1;
}
.profile-media-play{
    position:absolute;
    left:50%;
    top:50%;
    z-index:3;
    width:52px;
    height:52px;
    border:2px solid rgba(255,255,255,.9);
    border-radius:50%;
    background:rgba(7,10,15,.66);
    color:#fff;
    display:grid;
    place-items:center;
    transform:translate(-50%,-50%);
}
.profile-media-play svg{
    width:23px;
    margin-left:3px;
}
.profile-media-stats{
    position:absolute;
    left:10px;
    right:10px;
    bottom:9px;
    z-index:3;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:11px;
    font-size:12px;
    font-weight:750;
}
.profile-media-stats>span{
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.profile-media-stats svg{
    width:15px;
}
.profile-media-more-footer{
    padding:13px;
    border-top:1px solid var(--border);
}
.profile-media-more-footer[hidden]{
    display:none!important;
}
.profile-media-more-button{
    width:100%;
    min-height:50px;
    padding:0 15px;
    border:1px solid #d8e2f0;
    border-radius:13px;
    background:#f8faff;
    color:#344054;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font:inherit;
    font-weight:780;
    cursor:pointer;
}
.profile-media-more-button:hover{
    border-color:#9fc2ff;
    background:#eef5ff;
    color:#0f6fff;
}
.profile-media-more-button>svg{
    width:19px;
}
.profile-media-more-button>small{
    padding:4px 7px;
    border-radius:999px;
    background:#e8edf5;
    color:#667085;
    font-size:11px;
}
.profile-media-empty{
    margin-top:0;
}
.profile-hero+.composer{
    margin-top:0;
}
@media(max-width:700px){
    .profile-tabs{
        justify-content:flex-start;
        padding:0 7px;
    }
    .profile-tabs a{
        flex:0 0 auto;
        min-height:51px;
        padding:0 10px;
        gap:5px;
    }
    .profile-tabs a>small{
        min-width:20px;
        height:20px;
        padding:0 5px;
        font-size:10px;
    }
    .profile-media-grid{
        gap:2px;
        padding:2px;
    }
    .profile-media-play{
        width:44px;
        height:44px;
    }
    .profile-media-stats{
        left:7px;
        right:7px;
        bottom:7px;
        gap:8px;
    }
}
@media(max-width:430px){
    .profile-tabs a{
        padding:0 9px;
    }
    .profile-tabs a svg{
        width:17px;
    }
    .profile-media-play{
        width:39px;
        height:39px;
    }
    .profile-media-play svg{
        width:19px;
    }
    .profile-media-stats{
        font-size:10px;
    }
    .profile-media-stats svg{
        width:13px;
    }
}


/* Auto-dismiss success/error notification */
.flash{
    max-width:min(420px,calc(100vw - 32px));
    display:flex;
    align-items:center;
    gap:12px;
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.flash>span{
    min-width:0;
    flex:1;
    line-height:1.4;
}

.flash>button{
    width:28px;
    min-width:28px;
    height:28px;
    padding:0;
    border:0;
    border-radius:8px;
    color:inherit;
    background:rgba(255,255,255,.16);
    display:grid;
    place-items:center;
    cursor:pointer;
}

.flash>button:hover{
    background:rgba(255,255,255,.26);
}

.flash>button svg{
    width:16px;
    height:16px;
    pointer-events:none;
}

.flash.is-hiding{
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px) scale(.98);
    pointer-events:none;
}


/* Manage VIP subscription inside Profile Settings */
.vip-subscription-heading{align-items:center}.vip-subscription-status{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:850}.vip-subscription-status svg{width:17px;height:17px}.vip-subscription-status.active{background:#eaf8ef;color:#087735}.vip-subscription-status.inactive{background:#f1f3f6;color:#667085}.vip-subscription-overview{display:grid;gap:15px}.vip-current-plan-card{padding:20px;border:1px solid #e0e7f0;border-radius:17px;background:linear-gradient(135deg,#111b2d,#172740);color:#fff;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:16px;align-items:center}.vip-current-plan-icon{width:58px;height:58px;border-radius:17px;background:linear-gradient(135deg,#f8d875,#d79a25);color:#553900;display:grid;place-items:center;box-shadow:0 12px 28px rgba(189,128,15,.25)}.vip-current-plan-icon svg{width:29px;height:29px}.vip-current-plan-copy{min-width:0}.vip-current-plan-copy small{color:#f7d98e;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.vip-current-plan-copy h3{margin:4px 0 5px;color:#fff;font-size:23px}.vip-current-plan-copy p{margin:0;color:#c7d2e2}.vip-manage-plan-button{white-space:nowrap}.vip-subscription-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.vip-subscription-detail-grid article{padding:15px;border:1px solid #e0e7f0;border-radius:14px;background:#f8fafd;display:grid;grid-template-columns:38px minmax(0,1fr);gap:3px 10px;align-items:center}.vip-subscription-detail-grid article>span{grid-row:1/3;width:38px;height:38px;border-radius:11px;background:#eaf2ff;color:#176bff;display:grid;place-items:center}.vip-subscription-detail-grid article>span svg{width:19px;height:19px}.vip-subscription-detail-grid small{color:#758298}.vip-subscription-detail-grid strong{font-size:14px}.vip-subscription-note{margin-top:16px;padding:14px 16px;border:1px solid #dce5f1;border-radius:14px;display:flex;gap:12px;align-items:flex-start}.vip-subscription-note>svg{width:22px;height:22px;flex:none}.vip-subscription-note strong{display:block;margin-bottom:4px}.vip-subscription-note p{margin:0;color:#66758b;line-height:1.5}.vip-subscription-note.points-note{background:#fff9e9;border-color:#efd18d;color:#8a5a00}.vip-subscription-note.manual-note{background:#eef5ff;border-color:#cfe0fb;color:#175aa8}.vip-subscription-note.payment-note{background:#f5f8fc;color:#44546c}.vip-paid-total{padding:8px 11px;border-radius:999px;background:#eef4ff;color:#176bff;font-size:12px;font-weight:850}.vip-history-table-wrap{overflow:auto;border:1px solid #e0e7f0;border-radius:14px}.vip-history-table{width:100%;min-width:780px;border-collapse:collapse}.vip-history-table th{padding:12px 14px;text-align:left;color:#758298;background:#f7f9fc;border-bottom:1px solid #e0e7f0;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.vip-history-table td{padding:14px;border-bottom:1px solid #e7ecf3;vertical-align:middle}.vip-history-table tr:last-child td{border-bottom:0}.vip-history-table td:first-child strong,.vip-history-table td:first-child small{display:block}.vip-history-table td:first-child small{margin-top:3px;color:#7a8799}.vip-history-table code{padding:5px 7px;border-radius:7px;background:#f0f3f8;color:#526078}.vip-history-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:850}.vip-history-status.completed{background:#eaf8ef;color:#087735}.vip-history-status.test_completed{background:#eef4ff;color:#176bff}.vip-history-status.pending{background:#fff5df;color:#9a6500}.vip-history-empty{padding:36px;text-align:center;border:1px dashed #ccd6e4;border-radius:15px;background:#f8fafd}.vip-history-empty>svg{width:42px;height:42px;color:#176bff}.vip-history-empty h3{margin:12px 0 6px}.vip-history-empty p{margin:0 0 16px;color:#6c798d}.vip-member-status>a{margin-left:auto;color:#f8d16f;font-weight:850;text-decoration:underline;text-underline-offset:3px}.vip-plan-card.current-plan{border-color:#176bff;box-shadow:0 0 0 3px rgba(23,107,255,.12)}.vip-plan-card .current-plan-label{background:#176bff;color:#fff}
@media(max-width:1050px){.vip-subscription-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vip-current-plan-card{grid-template-columns:58px minmax(0,1fr)}.vip-manage-plan-button{grid-column:1/-1;justify-self:start}}
@media(max-width:650px){.settings-tabs{overflow-x:auto;justify-content:flex-start}.settings-tabs a{white-space:nowrap}.vip-subscription-detail-grid{grid-template-columns:1fr}.vip-current-plan-card{grid-template-columns:48px minmax(0,1fr);padding:17px}.vip-current-plan-icon{width:48px;height:48px}.vip-current-plan-copy h3{font-size:19px}.vip-paid-total{align-self:flex-start}.vip-member-status{align-items:flex-start;flex-wrap:wrap}.vip-member-status>a{width:100%;margin-left:54px}}


/* VIP subscription cancellation controls */
.vip-manage-subscription-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.vip-manage-subscription-actions form{margin:0}.vip-cancel-subscription-button,.vip-resume-subscription-button{min-height:44px;padding:0 15px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:800;cursor:pointer}.vip-cancel-subscription-button{border:1px solid #f1b9b9;background:#fff1f1;color:#b42318}.vip-cancel-subscription-button:hover{background:#ffe2e2;border-color:#e59696}.vip-resume-subscription-button{border:1px solid #b9ddc5;background:#eaf8ef;color:#087735}.vip-resume-subscription-button:hover{background:#dff4e7;border-color:#8fcba3}.vip-cancel-subscription-button svg,.vip-resume-subscription-button svg{width:18px;height:18px}.vip-subscription-note.cancellation-note{background:#fff5e8;border-color:#efc785;color:#8a5600}.vip-subscription-note.cancellation-note p{color:#7c6540}.vip-subscription-status.active:has(svg[data-lucide="badge-check"]){white-space:nowrap}@media(max-width:1050px){.vip-manage-subscription-actions{grid-column:1/-1;justify-content:flex-start}}@media(max-width:650px){.vip-manage-subscription-actions{width:100%;display:grid}.vip-manage-subscription-actions a,.vip-manage-subscription-actions button{width:100%}}

.notification-avatar-wrap>small.boost_started,
.notification-avatar-wrap>small.boost_progress,
.notification-avatar-wrap>small.boost_completed{
    background:#176bff;
    color:#fff;
}
.notification-avatar-wrap>small.boost_completed{
    background:#159447;
}

/* Administrator user impersonation */
.admin-impersonation-bar {
    position: relative;
    z-index: 80;
    width: 100%;
    padding: 8px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #0d5ee8, #287cff);
    box-shadow: 0 8px 24px rgba(13, 94, 232, 0.22);
}

.admin-impersonation-content {
    width: min(1180px, 100%);
    min-height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-impersonation-message,
.admin-impersonation-bar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-impersonation-message {
    min-width: 0;
    font-size: 14px;
}

.admin-impersonation-message svg,
.admin-impersonation-bar button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.admin-impersonation-bar form {
    margin: 0;
}

.admin-impersonation-bar button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 9px;
    color: #0b4fbd;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 34, 94, 0.18);
}

.admin-impersonation-bar button:hover {
    background: #eef5ff;
}

@media (max-width: 600px) {
    .admin-impersonation-bar {
        padding: 7px 10px;
    }

    .admin-impersonation-content {
        min-height: 36px;
        gap: 8px;
    }

    .admin-impersonation-message {
        font-size: 12px;
    }

    .admin-impersonation-message > svg {
        display: none;
    }

    .admin-impersonation-bar button {
        padding: 7px 9px;
        font-size: 12px;
    }
}
