* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  background: #1a1a2e;
  color: #eee;
  font-family: system-ui, sans-serif;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Red bands mark the safe-area insets on all four edges so the cutout side is
   obvious after a rotation. */
.edge-indicator { position: fixed; background: #e94560; z-index: 1000; }
.edge-top { top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); }
.edge-bottom { bottom: 0; left: 0; right: 0; height: env(safe-area-inset-bottom, 0px); }
.edge-left { top: 0; bottom: 0; left: 0; width: env(safe-area-inset-left, 0px); }
.edge-right { top: 0; bottom: 0; right: 0; width: env(safe-area-inset-right, 0px); }

.content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 12px;
}

.card {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 12px;
  padding: 14px;
  width: min(460px, 100%);
}

h1 { color: #e94560; font-size: 20px; margin-bottom: 8px; text-align: center; }

.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #0f3460;
  font-size: 14px;
}

.metric:last-child { border-bottom: 0; }
.label { color: #aaa; }
.value { color: #4ecca3; font-weight: bold; }
.value.fail { color: #e94560; }
.hint { font-size: 12px; color: #9ca3af; line-height: 1.5; }
a { color: #93c5fd; }
