/* Lobby notifications: exact totals are private; badges cap at +99. */
.notification-badge{display:inline-flex!important;align-items:center;gap:5px;padding:3px 7px;border:1px solid #aaff3550;border-radius:20px;background:#aaff3518;color:var(--green,#aaff35);font-size:11px;line-height:1.3;white-space:nowrap}
.notification-badge[hidden]{display:none!important}
.notification-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px #aaff3560}
.notification-badge b{font-size:inherit!important;color:inherit!important;line-height:inherit}
[data-notification]{display:inline-flex;align-items:center;margin-left:5px}
.profile-stat-row [data-notification]{margin:4px 0 0}
.profile-stat-row .notification-badge b{font-size:11px!important}
.profile-social-tabs a,.directory-tabs a{display:inline-flex;align-items:center;gap:4px}
.blocked-user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.inbox-layout{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:18px;align-items:start}
.inbox-layout>main{min-width:0}
.conversation-list{padding:0;overflow:auto;max-height:800px}
.conversation-list>h2{font-size:19px;padding:22px;margin:0;border-bottom:1px solid #334333}
.conversation-row{display:flex;align-items:center;gap:12px;padding:17px 15px;border-bottom:1px solid #2c3c2d;color:var(--text);min-width:0}
.conversation-row:hover,.conversation-row.active{background:#aaff3510}
.conversation-row.is-unread{border-left:3px solid var(--green,#aaff35);background:#aaff3509}
.conversation-row .avatar{width:42px;height:42px;min-width:42px}
.conversation-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.conversation-copy>b{font-size:13px;overflow:hidden;text-overflow:ellipsis}
.conversation-copy>small{font-size:10px;color:#b7c3b1}
.conversation-copy>span{font-size:11px;color:#8fa68a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.conversation-meta{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.conversation-meta time{font-size:10px;color:#9caa95;white-space:nowrap}
.inbox-empty{padding:20px;font-size:13px;line-height:1.7}
.inbox-start{min-height:580px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.inbox-layout .profile-dialog{margin:0}
.dialog-head-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.dialog-head-actions>.text-button{color:#d9b1a2;font-size:11px}
.dialog-peer-profile{display:block;padding:8px 24px;font-size:11px;border-bottom:1px solid #2c3b30}
.direct-history-more{padding:12px;text-align:center;background:#132018;font-size:11px}
.direct-history-more[hidden]{display:none}
.dm-delete-controls{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;margin-top:7px}
.dm-delete-controls .text-button{font-size:9px;color:#a8bda3;padding:3px 0}
.dm-delete-controls .text-button:hover{color:var(--green)}
.profile-dialog-form[hidden]{display:none!important}
.chat-screen-open{overflow:hidden;overscroll-behavior:none}
.chat-screen{position:fixed!important;z-index:200!important;top:var(--chat-screen-top,0)!important;left:0!important;right:0!important;bottom:auto!important;width:100%!important;height:var(--chat-screen-height,100dvh)!important;min-height:0!important;max-height:none!important;box-sizing:border-box;border:0!important;border-radius:0!important;margin:0!important;background:#0c1511!important;padding:0!important;overflow:hidden!important}
.chat-screen-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-left)) 8px max(12px,env(safe-area-inset-right));border-bottom:1px solid #354930;background:#101e16;flex:0 0 auto;grid-column:1/-1}
.chat-screen-bar>b{font-size:15px;color:#e5eddf}
.chat-screen-bar .text-button{font-size:10px;max-width:140px}
.chat-screen-bar .button{min-height:34px;font-size:11px}
.chat-workspace.chat-screen{display:flex!important;flex-direction:column}
.chat-workspace.chat-screen .chat-panel{display:flex;flex:1;flex-direction:column;min-height:0}
.chat-workspace.chat-screen .messages{height:auto!important;flex:1;min-height:0}
.chat-screen .chat-form{padding-bottom:max(10px,env(safe-area-inset-bottom))}
.inbox-layout.chat-screen{display:flex!important;flex-direction:column;gap:0}
.inbox-layout.chat-screen>.conversation-list{width:100%;max-height:none;flex:1;min-height:0;border:0;border-radius:0}
.inbox-layout.chat-screen[data-owner-id]:not([data-owner-id="0"])>.conversation-list{display:none}
.inbox-layout.chat-screen>main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
.inbox-layout.chat-screen[data-owner-id="0"]>main{display:none}
.inbox-layout.chat-screen .profile-dialog{height:auto!important;flex:1;min-height:0!important;border-radius:0;overflow:hidden}
.profile-dialog.chat-screen{display:flex!important;flex-direction:column}
.chat-screen .profile-dialog-messages{flex:1;min-height:0}
.chat-screen .profile-dialog-form{flex-shrink:0;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
@media(max-width:760px){
  .inbox-layout{grid-template-columns:1fr}
  .inbox-layout[data-owner-id]:not([data-owner-id="0"])>.conversation-list{display:none}
  .profile-dialog-heading{gap:8px;align-items:flex-start}
  .profile-dialog-heading h2{font-size:16px;overflow-wrap:anywhere}
  .dialog-head-actions{gap:7px}
  .dialog-head-actions .button{font-size:10px!important;min-height:30px!important}
  .chat-screen .profile-dialog-heading [data-chat-expand],.profile-dialog.chat-screen .profile-dialog-heading [data-chat-expand]{display:none}
  .chat-workspace.chat-screen.profile-open>.member-sidebar{inset:58px 8px 8px;height:auto!important}
  .blocked-user-row{flex-wrap:wrap}
}
