.switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #4b4b4b;
  cursor: pointer;
}

.switch span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 120ms ease;
}

.switch.is-on {
  background: #48e6cf;
}

.switch.is-on span {
  transform: translateX(20px);
}

.list-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.list-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 340px) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.list-toolbar h1 {
  margin: 0;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.list-toolbar h1 span {
  font-family: var(--font-body);
  font-size: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 42px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--grey4txt);
  background: transparent;
  font: inherit;
}

.search-box img {
  width: 24px;
  height: 24px;
}

.detail-button img {
  width: 16px;
  height: 16px;
}

.client-stats {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: var(--grey4txt);
  white-space: nowrap;
}

.client-stats strong {
  font-weight: 800;
}

.client-stats .pink {
  color: var(--accent-pink);
}

.client-table {
  display: grid;
  grid-auto-rows: 46px;
  gap: 2px;
  overflow: hidden auto;
}

.client-table-head,
.client-row {
  display: grid;
  grid-template-columns: 80px 1.45fr 1.55fr 1.4fr 1.45fr 128px 136px 78px 42px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.client-table-head {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  color: var(--dark4txt);
  background: var(--white);
  font-weight: 700;
}

.client-row {
  padding: 0 16px;
  border-radius: var(--radius-sm);
  color: var(--grey4txt);
  background: rgba(255, 255, 255, 0.6);
}

.client-row.is-alt {
  background: rgba(255, 255, 255, 0.3);
}

.client-row:hover {
  background: var(--white);
}

.client-row > span,
.client-table-head > span {
  padding: 0 8px;
}

.client-row > span,
.client-table-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--accent-pink);
  vertical-align: middle;
}

.tiny-dot.green {
  background: var(--accent-green);
}

.table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.table-icon img {
  width: 22px;
  height: 22px;
}

.servers-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.server-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: 10px;
  overflow-x: hidden;
}

.streamer-card {
  min-height: 395px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
}

.streamer-card.is-expanded {
  min-height: 728px;
}

.streamer-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.streamer-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.server-meta,
.temporarily-off {
  min-height: 66px;
  margin: 10px 0 24px;
  line-height: 19px;
}

.streamer-health {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 18px;
}

.server-metric {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.server-metric i,
.speed-row div {
  display: block;
  height: 4px;
  background: rgba(3, 5, 34, 0.08);
}

.server-metric b,
.speed-row i {
  display: block;
  height: 4px;
  background: var(--green-darker);
}

.streamer-pie-block {
  font-size: 12px;
  line-height: 13px;
}

.small-pie {
  width: 72px;
  height: 64px;
  margin: 10px 0 8px;
  border-radius: 50%;
  background: conic-gradient(var(--green-darker) 0 88%, var(--accent-pink) 88% 94%, #71d2c6 94% 100%);
  box-shadow: 0 7px 0 #168875;
}

.streamer-pie-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.streamer-pie-block li {
  display: flex;
  gap: 5px;
}

.streamer-pie-block li i {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--green-darker);
}

.streamer-pie-block li:nth-child(2) i {
  background: #71d2c6;
}

.streamer-pie-block li:nth-child(3) i {
  background: var(--accent-pink);
}

.server-expand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: var(--grey4txt);
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.server-expand-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.streamer-expanded {
  display: none;
}

.streamer-card.is-expanded .streamer-compact {
  display: none;
}

.streamer-card.is-expanded .streamer-expanded {
  display: block;
}

.expanded-title {
  margin: 0 0 16px;
}

.speed-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.speed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 72px;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}

.speed-row i.pink {
  background: var(--accent-pink);
}

.speed-row strong.pink {
  color: var(--accent-pink);
}
