:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #17211b;
  --muted: #5f6f64;
  --line: #dfe7e1;
  --surface: #ffffff;
  --canvas: #f5f8f6;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --gray-100: #eef2ef;
  --gray-700: #4b5d50;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -18rem, rgba(22, 163, 74, 0.12), transparent 36rem),
    var(--canvas);
}

button { font: inherit; }

.page-shell {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-950);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--green-900);
  color: white;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero {
  padding: 70px 16px 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1, h2, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ip-address {
  margin: 20px 0 6px;
  color: var(--green-900);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.06em;
  word-break: break-all;
}

.ip-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(21, 128, 61, 0.25); outline-offset: 2px; }
.button-primary { background: var(--green-900); color: white; }
.button-primary:hover { background: var(--green-950); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--green-950); }
.button-secondary:hover { border-color: #b9c9bd; }

.copy-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 650;
}

.card {
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(5, 46, 22, 0.035);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  color: var(--green-950);
  font-size: 18px;
  letter-spacing: -0.015em;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.status-dot-neutral { background: var(--green-700); box-shadow: 0 0 0 5px var(--green-100); }

.details { margin: 0; }
.details > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.2fr);
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.details > div:first-child { border-top: 0; padding-top: 0; }
.details > div:last-child { padding-bottom: 0; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; text-align: right; }
.details-compact > div { grid-template-columns: 1fr auto; }

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.badge-unknown { background: var(--gray-100); color: var(--gray-700); }
.badge-ok { background: var(--green-100); color: var(--green-900); }
.badge-warning { background: var(--amber-100); color: var(--amber-800); }

.notice, .hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.hint { margin-top: 18px; }

.support-note {
  display: flex;
  gap: 15px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green-950);
}
.support-note h2 { margin-bottom: 6px; font-size: 16px; }
.support-note p { margin: 0; font-size: 14px; line-height: 1.55; }
.support-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--green-900);
  color: white;
  font-family: Georgia, serif;
  font-weight: 700;
}

footer {
  padding: 24px 12px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .page-shell { width: min(100% - 20px, 780px); padding-top: 18px; }
  .hero { padding: 52px 4px 36px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .card { padding: 20px; border-radius: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .details > div { grid-template-columns: 1fr; gap: 5px; }
  .details dd { text-align: left; }
}

@media print {
  :root { background: white; }
  body { background: white; }
  .page-shell { width: 100%; padding: 0; }
  .hero { padding: 34px 0 28px; }
  .actions, .copy-status { display: none; }
  .card { break-inside: avoid; box-shadow: none; }
  footer { color: #333; }
}
