.gpu-pool-widget {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 1050;
  width: min(336px, calc(100vw - 28px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.94), rgba(5, 7, 13, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
  color: #e5edf7;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.gpu-pool-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.gpu-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.gpu-pool-title {
  color: #f8fbff;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.gpu-pool-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22d3ee;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gpu-pool-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

.gpu-pool-gpu {
  color: #f8fbff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.28;
}

.gpu-pool-meta,
.gpu-pool-status,
.gpu-pool-muted {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.gpu-pool-meta a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 800;
}

.gpu-pool-action {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  color: #02131a;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.gpu-pool-action:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.gpu-pool-action:disabled {
  cursor: not-allowed;
  background: rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.gpu-pool-my {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.13);
  color: #c9f7ff;
  font-size: 12px;
  font-weight: 800;
}

.gpu-pool-board {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.gpu-pool-board h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gpu-pool-ranks {
  display: grid;
  gap: 6px;
}

.gpu-pool-rank {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.gpu-pool-rank span {
  color: #22d3ee;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.gpu-pool-rank strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e5edf7;
  font-size: 12px;
}

.gpu-pool-rank em {
  grid-column: 2;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

@media (max-width: 900px) {
  .gpu-pool-widget {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: min(360px, calc(100vw - 24px));
    max-height: 46vh;
  }
}
