/* 0.5.1 – true zero-width notifications tray and full-width clickable imperial HUD. */
.game .commander-card{display:none!important}
.game .sidebar{padding-top:9px!important;gap:6px}
.game .command-tools{flex:none;margin:2px 0 11px!important}
.game .nav-main{flex:1 1 auto;min-height:0;gap:6px}
.game .nav-btn{min-height:36px;padding:6px 10px!important;font-size:11px;flex:0 0 auto}
.game .sidebar-head{margin:0 0 5px}
.game .sidebar-bottom{flex:0 0 auto}
/* No persistent right-hand strip when collapsed. The control floats over the edge. */
.game.messages-collapsed .layout{
  grid-template-columns:255px minmax(0,1fr) 0px!important;
  position:relative;
  overflow:visible;
}
.game.messages-collapsed .activity-bar{
  position:fixed!important;
  top:44dvh!important;
  right:0!important;
  left:auto!important;
  bottom:auto!important;
  width:28px!important;
  height:54px!important;
  padding:0!important;
  overflow:visible!important;
  z-index:34!important;
  display:flex!important;
  border:1px solid #7badd4!important;
  border-right:0!important;
  border-radius:10px 0 0 10px!important;
  background:linear-gradient(160deg,#283f63,#172844)!important;
  box-shadow:-3px 2px 19px #061029a6!important;
}
.game.messages-collapsed .activity-heading{
  padding:0!important;
  margin:0!important;
  width:100%!important;height:100%!important;
  min-height:0!important;
  background:none!important;border:0!important;
  display:flex!important;
  flex:1!important;
  writing-mode:horizontal-tb!important;
}
.game.messages-collapsed .activity-heading button{
  padding:0!important;
  width:100%!important;height:100%!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:center!important;
  display:flex!important;
  flex-direction:row!important;
  writing-mode:horizontal-tb!important;
  gap:0!important;
}
.game.messages-collapsed .messages-fold-icon{
  font-size:16px!important;width:27px!important;height:53px!important;
  transform:rotate(180deg)!important;
  display:grid;place-items:center;
  border:0!important;background:none!important;
  color:#e0f7ff;
}
.game.messages-collapsed .messages-heading-label,
.game.messages-collapsed .messages-unread-counter,
.game.messages-collapsed .messages-panel-content{display:none!important}
.game.messages-collapsed .activity-bar:hover{
  border-color:#b4f1ff!important;background:#305d87!important;
}
/* Increase available width for the main column at all desktop breakpoints. */
@media(min-width:761px) and (max-width:1320px){
 .game.messages-collapsed .layout{grid-template-columns:225px minmax(0,1fr) 0px!important}
}
@media(min-width:761px) and (max-width:1100px){
 .game.messages-collapsed .layout{grid-template-columns:207px minmax(0,1fr) 0px!important}
}
/* Homepage header contains planet and the five full-precision clickable stats. */
.game .screen.empire-dashboard>.home-planetline{
  display:flex!important;
  min-width:0;
  padding:8px 11px!important;
  gap:8px!important;
  justify-content:flex-start!important;
  max-height:none!important;
  min-height:64px!important;
}
.game .screen.empire-dashboard .home-planet-title{
  flex:0 0 auto!important;
  max-width:18%;
  min-width:110px;
}
.game .screen.empire-dashboard .home-command-hud{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.88fr) minmax(0,.83fr) minmax(0,.83fr);
  flex:1 1 0;
  min-width:0;
  gap:6px;
}
.game .screen.empire-dashboard .hud-chip{
  min-height:46px;min-width:0;
  display:flex;align-items:center;justify-content:flex-start;
  gap:7px;
  padding:8px 8px;
  background:linear-gradient(145deg,#1d3150,#14253b);
  border:1px solid #506d9c;
  border-radius:9px;
  text-align:left;
  color:#eaf6ff;
  box-shadow:inset 0 1px #e5fbff17,0 4px 9px #06102755;
  transition:border-color .18s,background .18s,transform .18s;
  cursor:pointer;
}
.game .screen.empire-dashboard .hud-chip:hover,
.game .screen.empire-dashboard .hud-chip:focus-visible{
  background:linear-gradient(140deg,#324c72,#21375b);
  border-color:#87e8fc;
  transform:translateY(-1px);
}
.game .screen.empire-dashboard .hud-chip-icon{flex:none;font-size:20px;color:#76d6ef}
.game .screen.empire-dashboard .hud-credits .hud-chip-icon{color:#ffd48c}
.game .screen.empire-dashboard .hud-energy .hud-chip-icon{color:#ffae74}
.game .screen.empire-dashboard .hud-colonies .hud-chip-icon{color:#a1efda}
.game .screen.empire-dashboard .hud-fleets .hud-chip-icon{color:#a5bffc}
.game .screen.empire-dashboard .hud-chip-data{display:flex;flex-direction:column;gap:2px;min-width:0}
.game .screen.empire-dashboard .hud-chip-data small{
  font-size:9px;line-height:1.1;font-weight:800;
  letter-spacing:.045em;color:#aabed7;
}
.game .screen.empire-dashboard .hud-chip-data strong{
  font-size:clamp(11px,1.06vw,17px);
  line-height:1.12;
  font-weight:900;color:#f5f8ff;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:clip;
  font-variant-numeric:tabular-nums;
}
.game .screen.empire-dashboard .home-planet-controls{
  flex:0 0 auto!important;
  gap:5px!important;
}
.game .screen.empire-dashboard .home-planet-controls .pill{
  padding:6px 8px!important;
  font-size:9px;
}
.game .screen.empire-dashboard .home-survey-count{
  font-size:9px;cursor:pointer;
  padding:5px 8px;
}
.game .screen.empire-dashboard .home-survey-count:hover{
  color:#fff;border-color:#a3eaf7;
}
.game .screen.empire-dashboard .home-mobile-hud{display:none!important}
@media (min-width:761px) and (max-width:1520px){
  .game .screen.empire-dashboard>.home-planetline{gap:5px!important;padding:6px 7px!important}
  .game .screen.empire-dashboard .home-command-hud{gap:4px}
  .game .screen.empire-dashboard .home-planet-title{max-width:15%;min-width:105px}
  .game .screen.empire-dashboard .hud-chip{gap:5px;padding:6px 6px}
  .game .screen.empire-dashboard .hud-chip-icon{font-size:15px}
  .game .screen.empire-dashboard .hud-chip-data strong{font-size:clamp(10px,1vw,14px)}
  .game .screen.empire-dashboard .home-planet-controls .pill{display:none}
}
@media (min-width:761px) and (max-width:1110px){
  .game .screen.empire-dashboard .home-survey-count{display:none}
  .game .screen.empire-dashboard .hud-chip-icon{display:none}
  .game .screen.empire-dashboard .hud-chip-data strong{font-size:12px}
}
@media(max-width:760px){
 .game.messages-collapsed .activity-bar{
   top:40dvh!important;
   right:0!important;bottom:auto!important;
   width:25px!important;height:47px!important;
   z-index:35!important;
 }
 .game.messages-collapsed .activity-heading button,
 .game.messages-collapsed .messages-fold-icon{height:45px!important;width:24px!important}
 .game .screen.empire-dashboard>.home-planetline{
   gap:5px!important;
   min-height:75px!important;
   max-height:145px!important;
   flex-wrap:wrap!important;
 }
 .game .screen.empire-dashboard .home-planet-title{
   flex:1 1 42%!important;min-width:0;max-width:55%;
 }
 .game .screen.empire-dashboard .home-command-hud{
   flex:1 0 100%;
   order:3;
   grid-template-columns:repeat(5,minmax(0,1fr))!important;
   gap:3px;
 }
 .game .screen.empire-dashboard .hud-chip{
   flex-direction:column;gap:1px;align-items:center;
   min-width:0;min-height:43px;padding:4px 2px;
 }
 .game .screen.empire-dashboard .hud-chip-data{align-items:center;gap:2px}
 .game .screen.empire-dashboard .hud-chip-data small{font-size:7px}
 .game .screen.empire-dashboard .hud-chip-data strong{font-size:clamp(8px,2.35vw,11px)}
 .game .screen.empire-dashboard .hud-chip-icon{font-size:12px}
 .game .screen.empire-dashboard .home-planet-controls{
   flex:0 0 auto;order:2;
 }
 .game .screen.empire-dashboard .home-survey-count{display:none}
 .game .screen.empire-dashboard .home-planet-controls .soft-btn{
   padding:4px 5px;font-size:9px;
 }
}
@media(max-width:760px) and (max-height:620px){
 .game .screen.empire-dashboard>.home-planetline{min-height:62px!important}
 .game .screen.empire-dashboard .hud-chip{min-height:30px;padding:2px 1px}
 .game .screen.empire-dashboard .hud-chip-icon{display:none}
}

.game .screen.empire-dashboard .compact-planet-icon{overflow:hidden;padding:0}
.game .screen.empire-dashboard .compact-planet-icon img{
 display:block;width:100%;height:100%;object-fit:contain;
 filter:drop-shadow(0 0 5px #98d5f4a0);
}
