/* Trang đo tốc độ: /speedtest (trong layout) và /speed/ (đứng riêng). */

.speed { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.speed-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.speed-start { min-width: 200px; }

.speed-small, .speed-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 640px; }
.speed-stat, .speed-gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 14px 8px; border: 1px solid var(--hv-border); border-radius: 12px; }
.speed-name { font-size: 14px; font-weight: 600; color: var(--hv-text-strong); }
.speed-value { font-size: 32px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.speed-unit { font-size: 13px; color: var(--hv-text-subtle); }
.speed-gauge canvas { width: 100%; height: 140px; }
.speed-ip { font-size: 14px; color: var(--hv-text-muted); overflow-wrap: anywhere; }
.speed-status:empty { display: none; }

.speed-page { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px; }
.speed-page .speed { width: 100%; }
.speed-page h1 { font-size: 28px; }

@media (max-width: 480px) {
  .speed-value { font-size: 24px; }
  .speed-gauge canvas { height: 100px; }
  .speed-start { width: 100%; }
  .speed-actions { width: 100%; }
}
