:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1c2b3f; background: #f3f6fa; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(100% - 32px, 760px); margin: 40px auto; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(27px, 5vw, 36px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 14px; }
h2 { font-size: 21px; line-height: 1.3; margin-bottom: 4px; }
.eyebrow { color: #416287; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.intro { color: #536277; margin-bottom: 24px; }
.route-card, .results-card { background: #fff; border: 1px solid #dce4ee; border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.route-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.label { font-size: 12px; color: #536277; margin-bottom: 5px; }
.host { font-size: 13px; overflow-wrap: anywhere; margin-bottom: 0; }
.muted, .hint { color: #5d6c80; }
.hint { font-size: 13px; margin-bottom: 0; }
.badge { font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 30px; padding: 5px 10px; background: #edf1f7; }
.vpn-field { display: grid; gap: 8px; margin-top: 24px; }
label { font-size: 14px; font-weight: 600; }
select { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; color: #1c2b3f; background: #fff; border: 1px solid #b6c4d6; border-radius: 8px; }
.checks { margin: 20px 0 0; }
.checks > div { padding: 12px 0; border-top: 1px solid #edf0f5; display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; font-size: 14px; }
dt { color: #536277; }
dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
[data-state="success"] { color: #14633e; }
[data-state="error"] { color: #a83229; }
[data-state="pending"] { color: #536277; }
.badge[data-state="success"] { background: #e7f5ed; }
.badge[data-state="error"] { background: #fff0ed; }
.frame-container { margin-top: 4px; }
.frame-container iframe { width: 100%; height: 88px; display: block; border: 1px solid #dce4ee; border-radius: 8px; background: #f8fafc; }
.section-heading { align-items: center; margin-bottom: 12px; }
.section-heading h2 { font-size: 18px; }
.section-heading > span { font-size: 12px; white-space: nowrap; }
.attempts { padding: 0; margin: 0; list-style: none; }
.attempt { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #edf0f5; font-size: 14px; }
.attempt-number { color: #708096; }
.attempt-message { overflow-wrap: anywhere; }
.attempt-time { color: #536277; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary { border-radius: 10px; background: #f0f4f9; padding: 16px; margin-top: 20px; }
.summary[data-state="success"] { background: #eaf6ef; }
.summary[data-state="error"] { background: #fff1ee; }
.summary strong { display: block; font-size: 16px; }
.summary p { font-size: 14px; margin: 6px 0 0; }
#checked-at { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
button { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 11px 16px; border: 1px solid #245c98; border-radius: 8px; color: #fff; background: #245c98; }
button:hover:not(:disabled) { background: #184b80; }
button.secondary { color: #245c98; background: #fff; border-color: #b6c4d6; }
button.secondary:hover:not(:disabled) { background: #edf4fc; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #78a9df; outline-offset: 3px; }
#copy-status { min-height: 20px; margin-top: 8px; }
textarea { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #b6c4d6; border-radius: 8px; font: 13px/1.5 ui-monospace, monospace; resize: vertical; color: #1c2b3f; }
footer { font-size: 14px; padding: 8px 2px 0; }
footer p { margin-bottom: 12px; }
.frame-page { background: #f8fafc; padding: 12px 16px; font-size: 13px; }
.frame-page strong { display: block; color: #14633e; }
.frame-page p { margin: 2px 0 0; color: #536277; font-size: 12px; }
@media (max-width: 520px) {
  .page { margin: 24px auto; width: min(100% - 24px, 760px); }
  .route-card, .results-card { padding: 18px 16px; border-radius: 12px; }
  .route-heading { flex-wrap: wrap; gap: 12px; }
  .checks > div { grid-template-columns: 1fr; gap: 4px; }
  dd { text-align: left; }
  .actions { display: grid; grid-template-columns: 1fr; }
  button { width: 100%; }
}
