:root {
  color-scheme: light;
  --bg-top: #f4f7fb;
  --bg-bottom: #eef2f0;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #132033;
  --muted: #5c6b7f;
  --accent: #0f766e;
  --accent-strong: #2563eb;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(730px, 100%);
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel__headline {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.4;
}

.status {
  min-height: 1.5rem;
  margin: 16px 0 24px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.server-panel {
  margin-top: 22px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.server-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.9);
}

.server-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.server-chip__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flag {
  position: relative;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.flag--nl {
  background: linear-gradient(180deg, #ae1c28 0 33.33%, #ffffff 33.33% 66.66%, #21468b 66.66% 100%);
}

.flag--ru {
  background: linear-gradient(180deg, #ffffff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.flag--generic {
  background: linear-gradient(180deg, #cbd5e1 0 50%, #94a3b8 50% 100%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--online {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.status-pill--offline {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.status--subtle {
  margin-top: 14px;
  margin-bottom: 0;
}

.mini-chart-group {
  display: grid;
  gap: 10px;
}

.mini-chart-block {
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.mini-chart-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mini-chart-block__header--right {
  justify-content: flex-end;
}

.mini-chart-block__summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mini-chart-block__summary--right {
  justify-content: flex-end;
  text-align: right;
}

.mini-chart-block__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-chart-block__value {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.mini-chart-block__value--traffic {
  width: 100%;
  margin-left: auto;
  text-align: right;
}

.chart {
  width: 100%;
  height: 104px;
  display: block;
}

.chart__background {
  fill: #f8fafc;
  rx: 12px;
}

.chart__grid {
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1;
}

.chart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart__point {
  stroke: white;
  stroke-width: 2;
}

.chart__empty {
  fill: var(--muted);
  font-size: 14px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.card {
  padding: 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.card--summary {
  padding: 24px;
}

.card__value {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.card__meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .panel {
    padding: 20px;
    border-radius: 20px;
  }

  .server-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }
}