/* Speed test tool page */
.st-panel { display: flex; flex-direction: column; gap: 18px; }
.st-honest {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-soft, #eef0ff);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid var(--border);
}
.st-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  font-size: 0.92rem;
}
.st-meta-label { display: block; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.st-meta strong { font-size: 1rem; overflow-wrap: anywhere; }
.st-start-btn {
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .28);
  width: 100%;
  max-width: 420px;
  align-self: center;
}
.st-start-btn:hover { filter: brightness(1.05); color: #fff; }
.st-start-btn:disabled { opacity: .7; cursor: wait; filter: none; }
.st-start-btn.st-stop-btn {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  box-shadow: 0 8px 22px rgba(225, 29, 72, .28);
}
.st-start-btn.st-stop-btn:hover { filter: brightness(1.06); color: #fff; }
.st-phase { margin: 0; text-align: center; font-weight: 700; color: var(--primary); min-height: 1.3em; }
.st-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-weight: 600; }
html[data-theme="dark"] .st-error { background: #3f1d1d; color: #fecaca; }
.st-results { display: grid; gap: 16px; }
.st-meter-top, .st-pill { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.st-meter-label { font-weight: 700; color: var(--text-muted); font-size: 0.88rem; }
.st-meter-read { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.st-meter-read strong { font-size: 2rem; }
.st-unit { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-left: 4px; }
.st-bar { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 8px; }
.st-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4f46e5, #06b6d4); transition: width .2s ease; }
.st-bar-up > span { background: linear-gradient(90deg, #0891b2, #34d399); }
.st-bar-sm { height: 6px; margin-top: 6px; }
.st-ping-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-pill { flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
@media (max-width: 560px) {
  .st-meta { grid-template-columns: 1fr; }
  .st-meter-read, .st-meter-read strong { font-size: 1.55rem; }
  .st-start-btn { max-width: none; min-height: 52px; }
}
