:root {
  color-scheme: light;
  --ink: #182521;
  --muted: #6d7b76;
  --line: #e0e8e4;
  --surface: #ffffff;
  --canvas: #f6f8f7;
  --green: #146c52;
  --green-dark: #0e573f;
  --green-soft: #eaf5ef;
  --blue: #365f91;
  --blue-soft: #edf3fb;
  --amber: #996516;
  --amber-soft: #fff5df;
  --red: #a34b49;
  --red-soft: #fbefed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 320px; }
button { font: inherit; }
.topbar { height: 68px; padding: 0 6.1vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 750; }
.brand-light { font-weight: 480; color: #51625b; }
.brand-mark { width: 25px; height: 25px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 5px 4px; border-radius: 7px; background: var(--green); }
.brand-mark span { width: 3px; border-radius: 4px; background: #fff; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .7; }
.brand-mark span:nth-child(2) { height: 12px; }
.brand-mark span:nth-child(3) { height: 9px; opacity: .82; }
.service-label { color: var(--muted); font-size: 13px; }
.page { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 36px; }
.intro { margin-bottom: 32px; }
.eyebrow,.info-label { color: var(--green); font-weight: 700; font-size: 10px; letter-spacing: 1.1px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #47a87d; box-shadow: 0 0 0 4px #e1f1e8; }
h1 { margin: 0; max-width: 650px; font-size: 36px; line-height: 1.15; font-weight: 680; letter-spacing: 0; }
.intro-copy { margin: 14px 0 0; max-width: 570px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.check-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; box-shadow: 0 8px 28px rgba(33,63,49,.045); }
.network-info { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.network-main,.ip-block { display: flex; flex-direction: column; gap: 5px; }
.network-main strong { font-size: 16px; font-weight: 650; }
.muted { color: var(--muted); font-size: 13px; }
.ip-block { text-align: right; }
code { color: #344741; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.intro-controls { padding-top: 19px; }
.privacy-note { max-width: 610px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.primary-button,.secondary-button { min-height: 46px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; cursor: pointer; font-size: 14px; font-weight: 650; transition: background .16s, transform .16s; }
.primary-button { width: 100%; padding: 0 18px; color: #fff; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.primary-button:active,.secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .68; cursor: wait; }
.button-arrow { font-size: 17px; font-weight: 400; }
.testing-heading,.summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { margin: 5px 0 0; font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: 0; }
.progress-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.progress-track { height: 4px; margin: 19px 0 9px; border-radius: 4px; overflow: hidden; background: #e9efec; }
.progress-track span { display: block; width: 0; height: 100%; background: #35a178; transition: width .28s ease; }
.location-list,.result-list { margin-top: 8px; }
.location-row { min-height: 49px; display: grid; grid-template-columns: 1fr minmax(120px, auto); align-items: center; gap: 18px; border-bottom: 1px solid #edf1ef; }
.location-row:last-child { border-bottom: 0; }
.location-name { font-size: 14px; font-weight: 560; }
.location-state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 12px; text-align: right; }
.state-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #bac5c0; }
.status-fast .state-dot { background: #36a177; }
.status-medium .state-dot { background: #d29a3e; }
.status-down .state-dot { background: #c96b66; }
.status-running .state-dot { background: #5c8fc5; animation: blink 1.1s infinite; }
.status-fast { color: #287958; }
.status-medium { color: #916819; }
.status-down { color: #a34b49; }
.summary-heading { justify-content: flex-start; margin-bottom: 17px; }
.success-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; }
.recommendation { margin: 0 0 15px; padding: 14px 16px; border-radius: 6px; background: var(--green-soft); color: #285d48; font-size: 14px; }
.recommendation strong { font-weight: 700; }
.support-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.support-row strong { padding-left: 6px; color: #354b41; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.copy-button { width: 31px; height: 30px; margin-left: auto; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #53635c; cursor: pointer; font-size: 18px; }
.copy-button:hover { background: var(--canvas); }
.secondary-button { width: 100%; margin-top: 18px; border: 1px solid var(--line); background: #fff; color: #42554c; }
.secondary-button:hover { background: #f6f8f7; }
.vpn-warning,.error-state { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 6px; background: var(--amber-soft); color: #71571f; }
.error-state { background: var(--red-soft); color: #833f3d; }
.warning-icon { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 13px; font-weight: 700; }
.vpn-warning strong,.error-state strong { font-size: 14px; }
.vpn-warning p,.error-state p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.page-footer { display: flex; justify-content: space-between; margin-top: 22px; color: #87938e; font-size: 11px; }
[hidden] { display: none !important; }
@keyframes blink { 50% { opacity: .3; } }

@media (max-width: 600px) {
  .topbar { height: 60px; padding: 0 18px; }
  .service-label { font-size: 11px; }
  .page { width: calc(100% - 32px); padding-top: 39px; }
  h1 { font-size: 29px; }
  .desktop-break { display: none; }
  .intro-copy { font-size: 14px; }
  .check-panel { padding: 20px 17px; }
  .network-info { align-items: flex-start; }
  .network-main strong { max-width: 185px; overflow-wrap: anywhere; }
  .location-row { grid-template-columns: 1fr minmax(100px, auto); gap: 10px; }
  .location-state { font-size: 11px; }
  .page-footer { gap: 12px; font-size: 10px; }
}
