:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dce3ec;
  --surface: rgba(255, 255, 255, 0.92);
  --brand: #12233f;
  --accent: #e7aa43;
  --success: #16794b;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(231, 170, 67, 0.18), transparent 34rem), linear-gradient(155deg, #eef3f8 0%, #f8fafc 55%, #e9eff6 100%);
}
main { width: min(720px, 100%); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom)); }
.hero { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand); color: var(--accent); font: 800 24px/1 Georgia, serif;
  box-shadow: 0 10px 24px rgba(18, 35, 63, 0.2);
}
.hero div:nth-child(2) { flex: 1; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }
h1 { margin: 0; font-size: clamp(24px, 7vw, 34px); letter-spacing: -0.04em; }
h2 { margin: 0 0 12px; font-size: 18px; }
p { line-height: 1.6; }
.badge { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.badge.online { color: var(--success); border-color: #a9dfc6; }
.badge.offline-state { color: var(--danger); border-color: #f3b6b2; }
.card, .test-card {
  border: 1px solid rgba(196, 207, 221, 0.82); border-radius: 20px; background: var(--surface);
  box-shadow: 0 18px 50px rgba(41, 57, 78, 0.08); backdrop-filter: blur(14px);
}
.card { padding: 22px; margin-bottom: 18px; }
.intro > p { margin: 0 0 18px; color: var(--muted); }
dl { margin: 0; display: grid; gap: 10px; }
dl div { display: flex; justify-content: space-between; gap: 18px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.tests { display: grid; gap: 12px; margin: 26px 0; }
.tests > h2 { margin-bottom: 2px; }
.test-card {
  appearance: none; width: 100%; padding: 18px; color: inherit; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font: inherit; cursor: pointer;
}
.test-card:active { transform: scale(0.99); }
.test-card strong, .test-card small { display: block; }
.test-card small { margin-top: 5px; color: var(--muted); }
.result { flex: 0 0 auto; color: #365b8c; font-size: 13px; font-weight: 750; }
.result.ok { color: var(--success); }
.result.error { color: var(--danger); }
.install { border-color: rgba(231, 170, 67, 0.55); }
#install-button { border: 0; border-radius: 12px; padding: 12px 18px; background: var(--brand); color: white; font: inherit; font-weight: 750; }
.notifications > p { margin: 0 0 16px; color: var(--muted); }
.notification-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notification-actions button {
  border: 1px solid var(--brand); border-radius: 12px; padding: 11px 14px;
  background: var(--brand); color: white; font: inherit; font-weight: 750; cursor: pointer;
}
.notification-actions button:not(:first-child) { background: white; color: var(--brand); }
.notification-actions button:disabled { cursor: not-allowed; opacity: 0.45; }
.notifications .status { margin: 15px 0 4px; color: var(--ink); font-weight: 650; }
.notifications small { color: var(--muted); line-height: 1.5; }
.offline p, .install p { margin-bottom: 0; color: var(--muted); }
@media (display-mode: standalone) { .hero { padding-top: 4px; } .install { display: none; } }
@media (max-width: 480px) { .test-card { align-items: flex-start; flex-direction: column; } .result { align-self: flex-end; } }
