/* Discord-like Game-Lab community server panel. */
body.signed-in header .gl-spaces-tab{
  display:inline-flex;align-items:center;border:1px solid #267762;
  border-radius:9px;background:#102b29;color:#9de9c8;
  font-size:12px;font-weight:800;padding:7px 12px;white-space:nowrap
}
body.signed-in header .gl-spaces-tab:hover{background:#164d3e;color:#f5fff9}
body.signed-in .gl-spaces-window[open]{position:fixed;inset:3vh 2vw;margin:auto;
  box-sizing:border-box;width:min(1180px,96vw);height:94dvh;max-width:none;max-height:none;
  padding:0;background:#0c1520;color:#e7f5ee;
  border:1px solid #327c65;border-radius:19px;overflow:hidden;
  box-shadow:0 30px 100px #000c}
.gl-spaces-window::backdrop{background:rgba(2,9,16,.84);backdrop-filter:blur(9px)}
.gl-spaces-shell{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);
  width:100%;height:100%;min-height:0}
.gl-spaces-sidebar{display:flex;flex-direction:column;min-height:0;padding:22px 16px;
  background:#101e2a;border-right:1px solid #294d4c}
.gl-spaces-overline{font-size:10px;font-weight:850;letter-spacing:.15em;color:#4db994}
.gl-spaces-sidebar h2{margin:11px 0 5px;font-size:26px;color:#f2fff7}
.gl-spaces-aside-note{font-size:13px;color:#9db7bf;line-height:1.6;margin:0 0 14px}
.gl-spaces-list{display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;overflow-y:auto;
  padding:3px 2px 15px}
.gl-spaces-list-item{display:flex;align-items:center;gap:12px;text-align:left;
  border:1px solid #34545d;border-radius:12px;padding:11px 10px;
  background:#172a35;color:#e9f4f4;min-height:66px;cursor:pointer}
.gl-spaces-list-item:hover{background:#1d3f40;border-color:#2bae84}
.gl-spaces-list-item.selected{background:#174839;border-color:#23c18a;box-shadow:inset 3px 0 #24d398}
.gl-spaces-card-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;
  border-radius:13px;background:linear-gradient(135deg,#0b966f,#2e6064);
  color:#effff9;font-size:21px;font-weight:900}
.gl-spaces-card-info{min-width:0;display:grid;gap:4px}
.gl-spaces-card-info strong{font-size:15px;font-weight:850;text-overflow:ellipsis;
  overflow:hidden;white-space:nowrap}
.gl-spaces-card-info small{font-size:11px;color:#a6d5c2}
.gl-spaces-create{display:grid;gap:10px;border:1px solid #3b7164;border-radius:13px;
  background:#132e31;padding:14px;margin-top:auto}
.gl-spaces-create strong{font-size:13px;color:#ccf6e4}
.gl-spaces-create input{min-width:0;min-height:43px;padding:9px 11px;
  background:#0c202c;color:#f4fff9;border:1px solid #3e7264;border-radius:9px}
.gl-spaces-create button{min-height:43px;background:#10b981;color:#06251d;
  border:0;border-radius:9px;font-weight:850;cursor:pointer}
.gl-spaces-detail{display:flex;min-width:0;min-height:0;flex-direction:column;background:#0b151e}
.gl-spaces-detail-header{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:16px 20px;border-bottom:1px solid #29464c;background:#142531;min-height:82px}
.gl-spaces-heading{display:flex;align-items:center;gap:12px;min-width:0}
.gl-spaces-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;
  border-radius:14px;background:#11644d;color:#b3ffe0;font-size:25px}
.gl-spaces-heading>div{min-width:0;display:grid;gap:5px}
.gl-spaces-heading strong{color:#f4fff9;font-size:20px;font-weight:850;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-spaces-heading small{color:#a1c5bd;font-size:11px}
.gl-spaces-tools{display:flex;align-items:center;gap:7px}
.gl-spaces-tools button{min-height:36px;border-radius:8px;border:1px solid #3b7165;
  background:#1c3940;color:#c6efe0;padding:6px 10px;cursor:pointer;font-weight:700}
.gl-spaces-tools button.gl-spaces-delete{background:#55242e;color:#ffe9ed;border-color:#9b4656}
.gl-spaces-tools button.gl-spaces-close{font-size:25px;line-height:1;padding:2px 11px}
.gl-spaces-tools button[hidden]{display:none}
.gl-spaces-empty{display:flex;flex:1;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;padding:40px;gap:14px;color:#b7cfce}
.gl-spaces-empty[hidden]{display:none}
.gl-spaces-empty-art{display:grid;place-items:center;width:88px;height:88px;
  background:#103c36;border:1px solid #288b6a;border-radius:29px;
  font-size:51px;color:#7cefc0}
.gl-spaces-empty strong{font-size:24px;color:#e2ffef}
.gl-spaces-empty p{max-width:470px;font-size:14px;line-height:1.7}
.gl-spaces-conversation{display:flex;flex-direction:column;flex:1;min-height:0}
.gl-spaces-conversation[hidden]{display:none}
.gl-spaces-thread-head{display:flex;align-items:center;justify-content:space-between;
  padding:17px 22px;border-bottom:1px solid #24454c}
.gl-spaces-thread-head strong{font-size:18px;color:#e2fff0}
.gl-spaces-thread-head span{font-size:12px;color:#86ccb2}
.gl-spaces-log{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0;
  overflow-y:auto;padding:24px 26px;background:linear-gradient(140deg,#0e1c28,#111b24)}
.gl-spaces-message{display:flex;gap:11px;max-width:830px}
.gl-spaces-avatar{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;
  border-radius:11px;background:#135e50;font-weight:900}
.gl-spaces-message-body{min-width:0;flex:1}
.gl-spaces-message-heading{display:flex;gap:12px;align-items:baseline}
.gl-spaces-message-heading strong{font-size:15px;font-weight:800;color:#baf5dd}
.gl-spaces-message-heading small{font-size:11px;color:#90b0be}
.gl-spaces-message-body p{font-size:var(--gl-client-message-size,17px);font-weight:600;
  line-height:1.6;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.gl-spaces-compose{display:flex;gap:10px;padding:14px 20px;background:#152833;
  border-top:1px solid #2b5154}
.gl-spaces-compose input{flex:1;min-width:0;min-height:48px;border:1px solid #3a5f63;
  border-radius:12px;background:#0b1c26;color:#f9fffa;padding:11px 15px;font-size:15px}
.gl-spaces-compose button{min-width:96px;border:0;border-radius:11px;
  background:#10b981;color:#06251c;font-weight:900}
.gl-spaces-compose button:disabled{opacity:.48}
.gl-spaces-milestone{font-size:11px;line-height:1.5;color:#87a9a7;
  margin:0;padding:8px 20px;border-top:1px solid #2c474c;background:#11222a}
body[data-gl-theme=light].signed-in .gl-spaces-window[open]{background:#f7fbfc;color:#244354}
body[data-gl-theme=light].signed-in .gl-spaces-sidebar,
body[data-gl-theme=light].signed-in .gl-spaces-detail-header{background:#eaf5f4;color:#243d49}
body[data-gl-theme=light].signed-in .gl-spaces-detail{background:#f8fcfc}
body[data-gl-theme=light].signed-in .gl-spaces-heading strong,
body[data-gl-theme=light].signed-in .gl-spaces-sidebar h2{color:#173a43}
body[data-gl-theme=light].signed-in .gl-spaces-log{background:#f3fafb}
body[data-gl-theme=light].signed-in .gl-spaces-message-body p{color:#193643}
@media(max-width:720px){
 body.signed-in .gl-spaces-window[open]{inset:1vh 1vw;width:98vw;height:98dvh}
 .gl-spaces-shell{grid-template-columns:1fr;grid-template-rows:190px minmax(0,1fr)}
 .gl-spaces-sidebar{padding:12px;border-right:0;border-bottom:1px solid #294d4c}
 .gl-spaces-sidebar h2{font-size:18px;margin:4px 0}
 .gl-spaces-overline,.gl-spaces-aside-note{display:none}
 .gl-spaces-list{display:flex;flex-direction:row;min-height:60px;padding:5px}
 .gl-spaces-list-item{flex:0 0 145px;min-height:55px}
 .gl-spaces-create{display:flex;gap:6px;padding:5px;margin:0}
 .gl-spaces-create strong{display:none}
 .gl-spaces-create input{flex:1}
 .gl-spaces-create button{flex:0 0 76px}
 .gl-spaces-detail-header{min-height:65px;padding:9px;gap:4px}
 .gl-spaces-heading strong{font-size:16px}
 .gl-spaces-tools button{font-size:11px;padding:6px}
 .gl-spaces-log{padding:12px}
 .gl-spaces-compose{padding:9px}
 .gl-spaces-compose button{min-width:66px}
 .gl-spaces-milestone{font-size:10px;padding:6px 9px}
}

/* Until a server is selected, the rail and welcome view remain visible. */
body.signed-in:not(.gl-space-active) header #rooms-tab,
body.signed-in:not(.gl-space-active) header #messages-tab,
body.signed-in:not(.gl-space-active):not(.gl-news-active) header #gl-dashboard-signal {
  display:none!important;
}
body.signed-in:not(.gl-space-active){min-height:100dvh;background:#09131a}
body.signed-in:not(.gl-space-active) #gl-spaces-tab{
  border-color:#20c58b;background:#11513f;box-shadow:0 0 17px #06b98133
}
.gl-spaces-join-label{margin-left:auto;padding:5px 7px;border-radius:8px;
  background:#126b4d;color:#c9ffeb;font-size:11px;font-weight:850}
.gl-spaces-tools .gl-spaces-invite{border-color:#20ad81;background:#135c48;
  color:#e2fff2;font-weight:850}
.gl-spaces-list-item:focus-visible{outline:2px solid #42e5ae;outline-offset:2px}
@media(max-width:720px){.gl-spaces-join-label{display:none}}


/* Fixed-width, Discord-like vertical server rail, integrated with existing Game Lab panels. */
body.signed-in main:has(> #gl-server-rail){
  grid-template-columns:72px 280px minmax(0,1fr)260px;
}
body.signed-in #gl-server-rail{
  grid-column:1;
  display:flex;flex-direction:column;align-items:center;
  min-height:0;min-width:0;overflow:hidden;
  background:#0b1016;border-right:1px solid #ffffff10;
  padding:14px 7px 12px;gap:10px;
}
.gl-server-rail-top,.gl-server-rail-bottom{
  display:flex;flex-direction:column;align-items:center;gap:11px;
  flex-shrink:0;width:100%;
}
.gl-server-rail-list{
  flex:1;min-height:0;width:100%;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  overflow-x:hidden;overflow-y:auto;padding:2px 0 12px;
  scrollbar-width:none;
}
.gl-server-rail-list::-webkit-scrollbar{display:none}
.gl-server-rail-divider{width:32px;height:2px;border-radius:9px;background:#333c46}
body.signed-in #gl-server-rail button{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;min-width:48px;min-height:48px;
  margin:0;padding:0;border:1px solid #ffffff12;border-radius:50%;
  background:#202934;color:#e6f4f7;
  cursor:pointer;flex:0 0 48px;
  transition:background .18s,border-radius .18s,border-color .18s,transform .18s,box-shadow .18s;
}
body.signed-in #gl-server-rail button:hover,
body.signed-in #gl-server-rail button:focus-visible{
  background:#236c58;border-radius:17px;
  border-color:#6ce5b26b;transform:translateY(-1px);
}
body.signed-in #gl-server-rail button:focus-visible{
  outline:2px solid #70edbd;outline-offset:3px;
}
body.signed-in #gl-server-rail .gl-server-rail-home{
  border-radius:16px;background:linear-gradient(135deg,#0fb785,#067d72);
  color:#fff;font-size:16px;font-weight:900;letter-spacing:-.07em;
  box-shadow:0 3px 16px #10b98125;
}
body.signed-in #gl-server-rail .gl-server-rail-home:hover{background:#0ea77d}
body.signed-in #gl-server-rail .gl-server-rail-home.active{
  border:1px solid #8df9ca;box-shadow:0 0 0 2px #1fa8793b;
}
body.signed-in #gl-server-rail .gl-server-rail-item.active{
  border-radius:16px;border-color:#7ce8c578;
  box-shadow:0 0 0 2px #24c99324;background:#246752;
}
body.signed-in #gl-server-rail .gl-server-rail-item.active::before{
  content:"";position:absolute;left:-12px;top:50%;
  height:34px;width:4px;border-radius:0 5px 5px 0;
  background:#d3fce9;transform:translateY(-50%);
}
body.signed-in #gl-server-rail .gl-server-rail-item:hover::before{
  content:"";position:absolute;left:-12px;top:50%;
  height:23px;width:4px;border-radius:0 5px 5px 0;
  background:#8ae1bc;transform:translateY(-50%);
}
body.signed-in #gl-server-rail .gl-server-rail-item.active:hover::before{
  height:34px;background:#d3fce9;
}
.gl-server-rail-avatar{font-size:15px;font-weight:900;letter-spacing:-.04em;
  max-width:42px;overflow:hidden;text-overflow:clip;white-space:nowrap}
body.signed-in #gl-server-rail .gl-server-rail-variant-0{background:#243e5e}
body.signed-in #gl-server-rail .gl-server-rail-variant-1{background:#463566}
body.signed-in #gl-server-rail .gl-server-rail-variant-2{background:#5b3d3a}
body.signed-in #gl-server-rail .gl-server-rail-variant-3{background:#224f54}
body.signed-in #gl-server-rail .gl-server-rail-variant-4{background:#414451}
body.signed-in #gl-server-rail .gl-server-rail-add{
  border-color:#317e62;background:#19362a;color:#75f1b0;
  font-size:31px;font-weight:500;line-height:1;
}
body.signed-in #gl-server-rail .gl-server-rail-add:hover{
  background:#087f58;color:#fff;border-color:#0ac784;
}
body.signed-in #gl-server-rail .gl-server-rail-bottom{
  padding-top:10px;border-top:1px solid #ffffff16;
}
body.signed-in #gl-server-landing{display:none}
body.signed-in:not(.gl-space-active) main:has(> #gl-server-rail){
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  min-height:0;flex:1;
}
body.signed-in:not(.gl-space-active) main > aside,
body.signed-in:not(.gl-space-active) main > .stage,
body.signed-in:not(.gl-space-active) main > .chat{
  display:none!important;
}
body.signed-in:not(.gl-space-active) #gl-server-landing{
  grid-column:2;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  gap:15px;min-height:0;padding:24px;
  background:radial-gradient(ellipse at 50% 38%,#14382e 0%,#101a23 42%,#080f16 90%);
  color:#d9efe4;
}
.gl-server-landing-symbol{
  display:grid;place-items:center;width:86px;height:86px;
  border:1px solid #27ad7a66;border-radius:25px;
  background:linear-gradient(145deg,#1b5545,#123329);
  font-size:46px;color:#81edbd;box-shadow:0 18px 60px #0bb7841a;
}
.gl-server-landing h2{
  margin:10px 0 0;font-size:clamp(22px,3vw,36px);font-weight:850;
  color:#f1fff8;letter-spacing:-.04em;
}
.gl-server-landing p{max-width:500px;color:#abc7bf;font-size:15px;
  line-height:1.75;margin:0}
.gl-server-landing-actions{display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:11px;margin-top:12px}
body.signed-in .gl-server-landing-actions button{
  border:1px solid #37685b;background:#162c30;color:#e6fff4;
  border-radius:10px;padding:12px 17px;min-height:44px;
  font-size:13px;font-weight:800;cursor:pointer;
}
body.signed-in .gl-server-landing-actions button.primary{
  background:#0c9167;color:#fff;border-color:#1ad89b;
}
body.signed-in .gl-server-landing-actions button:hover{filter:brightness(1.13)}
body[data-gl-theme=light].signed-in #gl-server-rail{
  background:#e8efef;border-right-color:#b9ceca;
}
body[data-gl-theme=light].signed-in:not(.gl-space-active) #gl-server-landing{
  background:radial-gradient(ellipse at 50% 38%,#e3f8ec,#f4f9fb 70%);
}
body[data-gl-theme=light].signed-in .gl-server-landing h2{color:#254f43}
body[data-gl-theme=light].signed-in .gl-server-landing p{color:#54766e}
@media(max-width:1180px){
  body.signed-in main:has(> #gl-server-rail){
    grid-template-columns:68px 250px minmax(0,1fr)218px;
  }
}
@media(max-width:940px){
  body.signed-in main:has(> #gl-server-rail){
    grid-template-columns:64px 245px minmax(0,1fr);
  }
}
@media(max-width:640px){
  body.signed-in main:has(> #gl-server-rail){
    grid-template-columns:58px 155px minmax(0,1fr);
  }
  body.signed-in #gl-server-rail{padding:9px 3px 7px;gap:7px}
  body.signed-in #gl-server-rail button{
    width:44px;min-width:44px;height:44px;min-height:44px;
    flex-basis:44px;
  }
  body.signed-in:not(.gl-space-active) main:has(> #gl-server-rail){
    grid-template-columns:58px minmax(0,1fr)!important;
  }
  body.signed-in .gl-server-landing-actions{gap:7px}
  body.signed-in #gl-server-landing{padding:14px}
  .gl-server-landing p{font-size:13px}
}


/* The former GL server-home control is now the real private-message shortcut. */
body.signed-in #gl-server-rail #messages-tab.gl-server-rail-home{
  font-size:16px!important;letter-spacing:.02em;
  font-weight:900!important;border-radius:16px;
  background:linear-gradient(145deg,#445ee7,#566aee);
  box-shadow:0 3px 16px #4e5ded2e;color:#fff;
}
body.signed-in #gl-server-rail #messages-tab.gl-server-rail-home:hover{
  background:linear-gradient(145deg,#5875fc,#667eff);
}
body.signed-in #gl-server-rail #messages-tab.gl-server-rail-home.active{
  border-color:#9bafff;box-shadow:0 0 0 2px #576afc55;
}
body.signed-in #gl-server-rail #messages-tab.has-unread::after{
  content:"";position:absolute;right:-2px;bottom:-2px;
  width:12px;height:12px;border-radius:50%;
  background:#ff4666;border:3px solid #0b1016;
  box-shadow:0 0 8px #ff466655;
}

/* Settings returns to the profile row. Logout occupies the old settings slot. */
body.signed-in #profile #settings{
  display:inline-flex!important;flex:0 0 32px;
  width:32px!important;height:32px!important;
  min-width:32px!important;margin-left:auto;
  padding:0!important;border-radius:9px!important;
  background:transparent!important;border:1px solid #39545a!important;
  align-items:center;justify-content:center;
  font-size:21px!important;line-height:1!important;
  color:#a5c8be!important;
}
body.signed-in #profile #settings:hover{
  color:#defff0!important;background:#15533d!important;
  border-color:#26a978!important;
}
body.signed-in .gl-dashboard-actions #logout{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:0;padding:6px 5px;
  font-size:10px!important;font-weight:800!important;
  line-height:1.2!important;white-space:nowrap;
  background:#232c38;color:#e8edf2;border-color:#495d6b;
}
body.signed-in .gl-dashboard-actions #logout:hover{
  background:#55343a;color:#fff0f1;border-color:#ce6675;
}
body[data-gl-theme=light].signed-in #profile #settings{
  background:#eff8f5!important;color:#285845!important;border-color:#9ec7b6!important;
}
body[data-gl-theme=light].signed-in .gl-dashboard-actions #logout{
  background:#eef0f4;color:#34485d;border-color:#b2c5cc;
}
body[data-gl-theme=light].signed-in .gl-dashboard-actions #logout:hover{
  background:#ffeaed;color:#9d2944;border-color:#dfa9b2;
}
body.signed-in .gl-server-landing-actions .gl-server-landing-logout{
  border-color:#6c4753;background:#30212a;color:#ffdfe5;
}
body.signed-in .gl-server-landing-actions .gl-server-landing-logout:hover{
  background:#53303b;
}

/* Category sections and uploaded community icons */
body.signed-in .gl-channel-category{margin:13px 4px 5px;padding:5px 8px;
  color:#a5b5c4;font-size:11px;font-weight:850;letter-spacing:.08em;
  text-transform:uppercase;border-bottom:1px solid #ffffff13}
body.signed-in .gl-server-rail-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
body.signed-in .gl-server-rail-avatar:has(.gl-server-rail-image){
  display:block;width:100%;height:100%;border-radius:inherit;overflow:hidden}
body.signed-in .gl-spaces-card-avatar .gl-server-rail-image{border-radius:inherit}

/* V2: DM-first application shell. Retain the real DM list and message handlers. */
body.signed-in.gl-dm-home main:has(> #gl-server-rail){
 display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;min-height:0;flex:1
}
body.signed-in.gl-dm-home main > aside,
body.signed-in.gl-dm-home main > .stage,
body.signed-in.gl-dm-home main > .chat,
body.signed-in.gl-dm-home #gl-server-landing,
body.signed-in.gl-dm-home footer{display:none!important}
body.signed-in.gl-dm-home #gl-spaces-tab{
 background:#17252b;border-color:#314940;box-shadow:none
}
body.signed-in.gl-dm-home main > .dm-window.gl-dm-workspace[open]{
 grid-column:2;grid-row:1;display:grid!important;
 grid-template-columns:minmax(230px,275px) minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 grid-template-areas:"recent conversation"!important;
 position:relative!important;inset:auto!important;margin:0!important;
 width:100%!important;height:100%!important;max-width:none!important;
 max-height:none!important;min-height:0!important;padding:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:#0c1620!important;overflow:hidden!important
}
body.signed-in.gl-dm-home:not(.gl-space-active) #dm-close{display:none!important}
body.signed-in.gl-dm-home #gl-server-rail .gl-server-rail-home.active{
 border-color:#b5c6ff;box-shadow:0 0 0 2px #6576fc66
}
@media(max-width:1110px){
 body.signed-in.gl-dm-home main > .dm-window.gl-dm-workspace[open]{
  grid-template-columns:minmax(205px,255px) minmax(0,1fr)!important;
  grid-template-areas:"recent conversation"!important
 }
 body.signed-in.gl-dm-home .gl-dm-workspace .gl-dm-directory{display:none!important}
}
@media(max-width:640px){
 body.signed-in.gl-dm-home main:has(> #gl-server-rail){
  grid-template-columns:58px minmax(0,1fr)!important
 }
 body.signed-in.gl-dm-home main > .dm-window.gl-dm-workspace[open]{
  grid-template-columns:minmax(112px,36%) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  grid-template-areas:"recent conversation"!important
 }
 body.signed-in.gl-dm-home .gl-dm-workspace .gl-dm-recent{
  border-top:0;border-right:1px solid #2d4953
 }
 body.signed-in.gl-dm-home .gl-dm-workspace .gl-dm-recent>div[id$="contacts"]{
  display:flex;flex-direction:column
 }
 body.signed-in.gl-dm-home .gl-dm-workspace .gl-dm-recent .person{
  min-width:0;font-size:11px!important
 }
 body.signed-in.gl-dm-home .gl-dm-workspace #dm-panel .composer{
  padding:7px;gap:5px
 }
 body.signed-in.gl-dm-home .gl-dm-workspace #dm-panel .composer input{
  min-width:0;padding:8px;font-size:12px
 }
 body.signed-in.gl-dm-home .gl-dm-workspace #dm-panel .composer button:not(.gl-emoji-trigger){
  min-width:45px;padding:6px;font-size:12px
 }
}

/* Hide the global directory in DM home; the conversation fills the freed width. */
body.signed-in.gl-dm-home .dm-window.gl-dm-workspace .gl-dm-directory{display:none!important}

/* Home-only session controls; retain the server sidebar's existing logout. */
#gl-home-logout{display:none!important}
body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #status{display:none!important}
body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #gl-home-logout{display:inline-flex!important;align-items:center;justify-content:center;margin-left:auto;flex:0 0 auto;min-height:34px;padding:7px 12px;border:1px solid #405c55;border-radius:9px;background:#172923;color:#c3e4d7;font-size:11px;font-weight:700;white-space:nowrap}
body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #gl-home-logout:hover{border-color:#b97a82;background:#3d252c;color:#ffd1d6}
body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #gl-home-logout:focus-visible{outline:2px solid #82cbb2;outline-offset:2px}
body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #gl-dashboard-signal{display:inline-flex!important;margin-left:0}
body[data-gl-theme=light].signed-in.gl-news-active header #gl-home-logout{background:#e4efe9;color:#245c49;border-color:#9ac0af}
@media(max-width:768px){body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #gl-home-logout{min-height:29px;padding:5px 8px;font-size:10px}body.signed-in.gl-news-active:not(.gl-dm-home):not(.gl-space-active) header #gl-dashboard-signal{max-width:100%;white-space:normal;min-width:0;font-size:10px}}
