/* GrowtopiaTools homepage — official server status.
   Uses actual in-repo Growtopia icons. Live values remain API owned.
   Keep everything scoped to the Home Server Status card. */
body[data-current-view="home"] #content .h162-primary .h162-card.h162-status {
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  gap:0!important;
  padding:20px!important;
  min-width:0;
  height:auto!important;
  box-sizing:border-box;
  text-align:left!important;
  overflow:hidden;
  container-type:inline-size;
  background:
    radial-gradient(ellipse at 0% 0%,rgba(103,174,245,.13),transparent 48%),
    linear-gradient(150deg,rgba(25,60,103,.94),rgba(11,32,62,.95))!important;
}
body[data-current-view="home"] #content .h162-status .h245-server-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:11px;
  width:100%;
  margin-bottom:16px;
  min-width:0;
}
body[data-current-view="home"] #content .h162-status .h245-server-identity{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 225px;
}
body[data-current-view="home"] #content .h162-status .h245-server-icon,
body[data-current-view="home"] #content .h162-status .h245-stat-icon{
  display:grid;
  place-items:center;
  box-sizing:border-box;
  flex:0 0 56px;
  width:56px;
  height:56px;
  border-radius:15px;
  border:1px solid rgba(184,227,253,.42);
  background:
    radial-gradient(circle at 28% 4%,rgba(245,254,255,.28),transparent 45%),
    linear-gradient(140deg,rgba(96,163,237,.26),rgba(38,76,133,.26));
  box-shadow:inset 0 1px 1px rgba(245,252,255,.20),
    0 6px 16px rgba(2,16,40,.17);
}
body[data-current-view="home"] #content .h162-status .h245-server-icon img{
  width:44px;
  height:44px;
  object-fit:contain;
  image-rendering:pixelated;
}
body[data-current-view="home"] #content .h162-status .h245-server-heading{
  display:grid;
  gap:4px;
  min-width:0;
}
body[data-current-view="home"] #content .h162-status .h245-server-kicker{
  font-size:10px;
  font-weight:850;
  letter-spacing:.12em;
  color:#8abfe7;
}
body[data-current-view="home"] #content .h162-status .h245-server-heading h2{
  font-size:clamp(17px,1.5vw,22px)!important;
  margin:0!important;
  line-height:1.15;
  letter-spacing:-.025em;
  color:#f1f9ff;
}
body[data-current-view="home"] #content .h162-status .h245-server-heading small{
  display:block;
  font-size:10px!important;
  color:#9bbfe1!important;
  line-height:1.3;
}
body[data-current-view="home"] #content .h162-status .h245-server-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  min-height:35px;
  margin:0;
  padding:7px 11px;
  box-sizing:border-box;
  border:1px solid rgba(115,226,186,.34);
  background:rgba(46,151,123,.13);
  border-radius:10px;
  color:#aeefce;
  font-size:12px;
}
body[data-current-view="home"] #content .h162-status .h245-server-badge strong{
  color:inherit!important;
  font-size:12px!important;
  font-weight:850;
  line-height:1.2;
}
body[data-current-view="home"] #content .h162-status .h245-server-badge .h162-status-dot{
  width:9px;
  height:9px;
  flex:0 0 9px;
  margin:0;
}
body[data-current-view="home"] #content .h162-status .h245-server-badge.h162-maintenance{
  color:#ffccac;
  background:rgba(217,118,74,.12);
  border-color:rgba(250,160,109,.36);
}
body[data-current-view="home"] #content .h162-status .h245-server-badge.h162-maintenance .h162-status-dot{
  background:#ffac7a;
  box-shadow:0 0 0 4px rgba(239,153,103,.12);
}
body[data-current-view="home"] #content .h162-status .h245-server-badge.h162-unknown{
  color:#c2d5e8;
  background:rgba(108,144,181,.12);
  border-color:rgba(162,193,224,.27);
}
body[data-current-view="home"] #content .h162-status .h245-server-badge.h162-unknown .h162-status-dot{
  background:#93acc6;
  box-shadow:none;
}
body[data-current-view="home"] #content .h162-status .h245-server-summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  width:100%;
  min-width:0;
  margin:0 0 12px;
}
body[data-current-view="home"] #content .h162-status .h245-server-primary,
body[data-current-view="home"] #content .h162-status .h245-server-source{
  box-sizing:border-box;
  min-width:0;
  min-height:116px;
  padding:12px 13px;
  border:1px solid rgba(147,207,252,.22);
  border-radius:13px;
  background:linear-gradient(150deg,rgba(56,120,184,.18),rgba(14,40,76,.28));
}
body[data-current-view="home"] #content .h162-status .h245-server-primary{
  display:flex;
  align-items:center;
  gap:11px;
}
body[data-current-view="home"] #content .h162-status .h245-stat-icon{
  flex-basis:45px;
  width:45px;
  height:45px;
  border-radius:12px;
}
body[data-current-view="home"] #content .h162-status .h245-stat-icon img{
  width:32px;height:32px;object-fit:contain;image-rendering:pixelated;
}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  gap:3px;
}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text small{
  font-size:9px!important;
  font-weight:800;
  color:#9ebbd6!important;
  letter-spacing:.06em;
  line-height:1.3;
}
body[data-current-view="home"] #content .h162-status .h245-server-number{
  display:block;
  color:#f0fbff;
  font-size:clamp(26px,2.6vw,38px);
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1.12;
  font-variant-numeric:tabular-nums;
}
body[data-current-view="home"] #content .h162-status .h245-server-primary-text > span{
  font-size:10px;
  color:#9cbedb;
}
body[data-current-view="home"] #content .h162-status .h245-server-source{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
}
body[data-current-view="home"] #content .h162-status .h245-source-top{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  font-weight:800;
  color:#e0f2ff;
}
body[data-current-view="home"] #content .h162-status .h245-source-top img{
  width:26px;height:26px;object-fit:contain;image-rendering:pixelated;
}
body[data-current-view="home"] #content .h162-status .h245-source-checked{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:4px 7px;
  font-size:10px;
  color:#99bedc;
}
body[data-current-view="home"] #content .h162-status .h245-source-checked strong{
  font-size:10px;
  color:#d4ebfd;
  font-variant-numeric:tabular-nums;
}
body[data-current-view="home"] #content .h162-status .h245-server-source small{
  font-size:9px!important;
  line-height:1.4;
  color:#91b5d2!important;
}
body[data-current-view="home"] #content .h162-status .h165-server-history.h245-server-history{
  width:100%!important;
  min-width:0;
  max-width:none!important;
  margin:0!important;
  padding:13px 14px 12px!important;
  box-sizing:border-box;
  border:1px solid rgba(145,205,249,.29);
  border-radius:14px;
  background:linear-gradient(160deg,rgba(7,28,57,.40),rgba(15,44,82,.48));
}
body[data-current-view="home"] #content .h162-status .h245-server-history .h165-history-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:#e5f5ff;
}
body[data-current-view="home"] #content .h162-status .h245-server-history .h165-history-head > span{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-weight:850;
}
body[data-current-view="home"] #content .h162-status .h245-server-history .h165-history-head small{
  font-size:9px!important;
  font-weight:650;
  color:#91b9d7!important;
}
body[data-current-view="home"] #content .h162-status .h245-server-history #h165-history-latest{
  font-size:17px;
  font-weight:850;
  color:#d9f9ff;
  font-variant-numeric:tabular-nums;
}
body[data-current-view="home"] #content .h162-status .h245-server-history #h165-server-chart{
  width:100%;
  height:138px;
  margin:12px 0 5px!important;
  overflow:hidden;
}
body[data-current-view="home"] #content .h162-status .h245-server-chart-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:2px 0 8px;
}
body[data-current-view="home"] #content .h162-status .h245-chart-stat{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-start;
  min-width:0;
  padding:8px 9px;
  border:1px solid rgba(137,198,243,.17);
  border-radius:8px;
  background:rgba(84,152,216,.06);
}
body[data-current-view="home"] #content .h162-status .h245-chart-stat span{
  font-size:9px;
  font-weight:800;
  letter-spacing:.07em;
  color:#93b6d5;
}
body[data-current-view="home"] #content .h162-status .h245-chart-stat strong{
  font-size:14px;
  line-height:1.15;
  color:#ecf8ff;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
body[data-current-view="home"] #content .h162-status #h165-history-note{
  display:block;
  margin:0!important;
  font-size:9px!important;
  line-height:1.3;
  color:#8fb0ce!important;
  text-align:center;
}
@media(max-width:1170px){
  body[data-current-view="home"] #content .h162-status .h245-server-summary{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-current-view="home"] #content .h162-status .h245-server-primary,
  body[data-current-view="home"] #content .h162-status .h245-server-source{min-height:0}
}
@media(max-width:860px){
 body[data-current-view="home"] #content .h162-primary .h162-card.h162-status{
   padding:15px!important;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-top{
   gap:12px;margin-bottom:12px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-identity{
   flex-basis:180px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-summary{
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body[data-current-view="home"] #content .h162-status .h245-server-number{
   font-size:clamp(23px,5vw,34px);
 }
}
@media(max-width:520px){
 body[data-current-view="home"] #content .h162-status .h245-server-summary{
   grid-template-columns:minmax(0,1fr);
 }
 body[data-current-view="home"] #content .h162-status .h245-server-identity{
   flex-basis:100%;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-icon{
   flex-basis:50px;width:50px;height:50px;border-radius:13px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-icon img{
   width:40px;height:40px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-badge{
   min-height:31px;padding:5px 10px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-primary{
   min-height:90px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-history #h165-server-chart{
   height:116px;
 }
 body[data-current-view="home"] #content .h162-status .h245-server-history.h165-server-history{
   padding:11px 10px!important;
 }
 body[data-current-view="home"] #content .h162-status .h245-chart-stat{
   padding:7px 6px;
 }
 body[data-current-view="home"] #content .h162-status .h245-chart-stat strong{
   font-size:12px;
 }
}
/* When the Server Status occupies the narrow right column of Home on a
   desktop monitor, stack its statistics based on CARD width, not viewport. */
@container (max-width:540px){
  .h245-server-summary{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .h245-server-top{
    flex-direction:column;
    align-items:flex-start!important;
  }
  .h245-server-primary,.h245-server-source{
    min-height:0!important;
  }
}
@media(prefers-reduced-motion:reduce){
 body[data-current-view="home"] #content .h162-status *{animation:none!important;transition:none!important}
}
