:root {
  color-scheme: light;
  --red: #b20d17;
  --ink: #202124;
  --muted: #74767d;
  --canvas: #f5f5f5;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dashboard {
  width: 100%;
  min-height: 100vh;
  padding: 12px;
}

.polo-grid {
  display: grid;
  min-height: calc(100vh - 24px);
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.polo-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.1vw, 20px);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(25, 25, 25, 0.07);
}

.polo-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.polo-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.polo-card__metrics div {
  min-width: 0;
}

.polo-card__metrics dt,
.engagement span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.polo-card__metrics dd {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.engagement {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 10px;
  margin-top: 10px;
}

.engagement strong {
  color: var(--red);
  font-size: 13px;
}

.engagement__track {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #ececee;
}

.engagement__bar {
  width: var(--engagement);
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

@media (max-width: 1400px) {
  .dashboard {
    padding: 8px;
  }

  .polo-grid {
    min-height: calc(100vh - 16px);
    gap: 7px;
  }

  .polo-card {
    padding: 10px;
    border-radius: 11px;
  }

  .polo-card h2 {
    font-size: 13px;
  }

  .polo-card__metrics {
    margin-top: 7px;
  }

  .polo-card__metrics dt,
  .engagement span {
    font-size: 8px;
  }

  .polo-card__metrics dd {
    font-size: 15px;
  }

  .engagement {
    margin-top: 7px;
  }
}

@media (max-width: 1099px) {
  .polo-grid {
    min-height: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .polo-card {
    min-height: 145px;
  }
}

@media (max-width: 640px) {
  .dashboard {
    padding: 8px;
  }

  .polo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .polo-card {
    min-height: 142px;
    padding: 12px;
  }

  .polo-card h2 {
    font-size: 13px;
  }
}
