/* EMRW Community + Ranks: unify standalone page styling with Overview.
   No account data, payment state or business logic changes. */
:root{--emrw-c-mint:#73e4c1;--emrw-c-bg:#142236;--emrw-c-panel:#18283b;--emrw-c-line:rgba(136,177,203,.22)}
#sidebar .main-nav a.emrw-community-nav-link{box-sizing:border-box!important;min-width:0;gap:9px;display:flex;align-items:center;}
#sidebar .main-nav a.emrw-community-nav-link > .nav-icon{
  position:relative!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;
  flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  border-radius:50%!important;overflow:hidden!important;padding:0!important;
  background:radial-gradient(circle at 35% 25%,rgba(115,228,193,.26),rgba(26,51,70,.91) 72%)!important;
  border:1px solid rgba(129,232,199,.4)!important;color:#bbf8e5;
  box-shadow:inset 0 1px 0 rgba(231,255,244,.1),0 3px 10px rgba(0,0,0,.18)!important;
  font-size:19px!important;line-height:1!important;text-align:center;
}
#sidebar .main-nav a.emrw-community-nav-link .emrw-community-glyph{
  position:relative;display:block;line-height:1;transform-origin:50% 60%;
  filter:drop-shadow(0 2px 3px rgba(2,15,24,.24));animation:emrwCommunityFloat 3s ease-in-out infinite;
}
#sidebar .main-nav a.emrw-community-nav-link > .emrw-community-title{
  display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#sidebar .main-nav a.emrw-community-nav-link > :is(.emrw-community-count,.emrw-nav-chat-count,.emrw-chat-online-badge){
  position:static!important;inset:auto!important;transform:none!important;
  flex:0 0 auto!important;display:inline-flex!important;align-items:center;justify-content:center;
  margin-left:auto!important;width:auto!important;min-width:29px!important;max-width:55px!important;
  height:23px!important;min-height:23px!important;padding:3px 7px!important;
  font:800 11px/1 system-ui!important;border:1px solid rgba(107,230,182,.38)!important;border-radius:99px!important;
  background:#244b43!important;color:#b2f5d8!important;white-space:nowrap;
}
#sidebar .main-nav a.emrw-community-nav-link.active .nav-icon{border-color:#a8f6d8!important;box-shadow:0 0 14px rgba(99,232,182,.18)!important}
@keyframes emrwCommunityFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@media (max-width:900px){
 #sidebar .main-nav a.emrw-community-nav-link{min-height:45px;overflow:hidden}
 #sidebar .main-nav a.emrw-community-nav-link > .emrw-community-title{font-size:12px}
}
@media (prefers-reduced-motion:reduce){#sidebar .emrw-community-glyph{animation:none!important}}
/* Common Overview card language for Chat and Ranks */
body.emrw-chat-body,body.emrw-ranks-body{--emrw-ui-surface:#18283b;--emrw-ui-text:#f1f7fd;--emrw-ui-mint:#73e4c1;--emrw-ui-line:rgba(136,177,203,.2)}
body.emrw-chat-body :is(.chat-intro,.chat-card,.chat-side-card),
body.emrw-ranks-body :is(.emrw-ranks-hero,.emrw-ranks-panel,.emrw-ranks-stat){
  box-sizing:border-box;border-radius:18px;border:1px solid var(--emrw-c-line);
  background:linear-gradient(145deg,rgba(24,40,59,.96),rgba(20,34,53,.98));
  box-shadow:0 9px 27px rgba(5,12,22,.12);min-width:0;
}
body.emrw-chat-body .chat-intro,body.emrw-ranks-body .emrw-ranks-hero{
  border-color:rgba(113,221,190,.26);
  background:radial-gradient(ellipse at 92% 0%,rgba(38,171,143,.18),transparent 44%),linear-gradient(115deg,#172b40,#172538 60%,#18363f);
}
body.emrw-chat-body :is(.chat-intro h1,.chat-side-heading h2,.chat-card-head strong),
body.emrw-ranks-body :is(.emrw-ranks-hero h1,.emrw-ranks-section-head h2){color:#f4fcff;letter-spacing:-.025em}
body.emrw-chat-body :is(.chat-room-tab,.chat-submit,.chat-archive-link,.chat-input-area,.chat-lang-field select),
body.emrw-ranks-body :is(.emrw-ranks-tabs a,.emrw-ranks-toolbar select){border-radius:11px}
body.emrw-chat-body .chat-room-tab.active,body.emrw-ranks-body .emrw-ranks-tabs a.active{border-color:#73e4c1;box-shadow:inset 0 0 0 1px rgba(115,228,193,.2)}
body.emrw-chat-body .chat-side-card{border-color:var(--emrw-c-line)}
body.emrw-chat-body .chat-shell,body.emrw-ranks-body .emrw-ranks-main{max-width:1280px;margin-left:auto;margin-right:auto;min-width:0}
body.emrw-ranks-body .emrw-ranks-table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:600px){
 body.emrw-chat-body .chat-intro,body.emrw-ranks-body .emrw-ranks-hero{border-radius:16px;padding:16px!important}
 body.emrw-chat-body .chat-card,body.emrw-ranks-body .emrw-ranks-panel{border-radius:14px}
 body.emrw-chat-body .chat-side-card{border-radius:14px}
}
