:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --bg: #fafafa;
  --panel: #fff;
  --text: #171717;
  --muted: #666;
  --line: #e5e5e5;
  --hover: #f2f2f2;
  --strong: #171717;
  --on-strong: #fff;
  --green: #147d43;
  --green-bg: #f0faf3;
  --green-line: #cdebd5;
  --amber: #996000;
  --amber-bg: #fff8eb;
  --amber-line: #f2dca6;
  --red: #c12e2e;
  --red-bg: #fff3f3;
  --red-line: #f3d0d0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
main:focus { outline: none; }
.shell { max-width: 1088px; margin: auto; padding: 0 40px; }
.topbar { display: flex; align-items: center; gap: 32px; min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { flex: none; font-size: 20px; font-weight: 650; letter-spacing: -.7px; white-space: nowrap; }
.nav { display: flex; align-self: stretch; align-items: stretch; gap: 24px; }
.nav a { display: flex; align-items: center; padding: 0 2px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); border-color: var(--text); font-weight: 550; }
select { margin-left: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; color: var(--text); font-size: 12px; }
.breadcrumbs { margin: 30px 0 20px; color: var(--muted); font-size: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.breadcrumbs li[aria-current] { color: var(--text); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 30px; font-weight: 600; letter-spacing: -.9px; line-height: 1.25; margin: 0 0 12px; }
.page-header p { max-width: 760px; font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 28px 0 12px; }
.section-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.section-head > span { font-size: 12px; color: var(--muted); text-align: right; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.status-banner { margin: 0 0 32px; padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 8px; }
.status-banner strong { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 550; }
.signal { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); }
.status-banner.unknown { background: var(--panel); border-color: var(--line); }
.status-banner.unknown .signal { background: var(--muted); }
.status-banner.degraded { background: var(--amber-bg); border-color: var(--amber-line); }
.status-banner.degraded .signal { background: var(--amber); }
.status-banner.outage { background: var(--red-bg); border-color: var(--red-line); }
.status-banner.outage .signal { background: var(--red); }
.stamp { font-size: 12px; color: var(--muted); }
time { font-variant-numeric: tabular-nums; }
.product { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.product-head > div { min-width: 0; }
.product h3 { font-size: 14px; font-weight: 550; margin: 0 0 6px; }
.subtext { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.mono, code, pre { font-family: var(--mono); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 8px; background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 5px; white-space: nowrap; color: var(--green); }
.badge::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.badge.planned, .badge.unknown { background: var(--bg); border-color: var(--line); color: var(--muted); }
.badge.outage { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.badge.degraded { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.bars { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 3px; margin: 18px 0 8px; }
.bar { height: 24px; background: var(--green); border-radius: 2px; }
.bar.unknown, .bar.planned, .legend-mark.unknown { background: repeating-linear-gradient(135deg, var(--line), var(--line) 2px, var(--bg) 2px, var(--bg) 4px); }
.bar.outage, .legend-mark.outage { background: var(--red); }
.bar.degraded, .legend-mark.degraded { background: var(--amber); }
.timeline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 0; margin: 14px 0 28px; font-size: 11px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.mobile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mobile-card { min-width: 0; padding: 22px 24px 8px; }
.mobile-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.mobile-details { margin: 0; }
.mobile-details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mobile-details > div:last-child { border-bottom: 0; }
.mobile-details dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.mobile-details dd { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.mobile-details .subtext { display: block; font-size: 11px; margin-top: 3px; }
.mobile-explanation { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 16px 0 8px; max-width: 820px; }
.mobile-checked { font-size: 11px; line-height: 1.9; color: var(--muted); margin: 0; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.note { min-width: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.note h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.note p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.note a, .page-note a { text-decoration: underline; text-underline-offset: 3px; }
.api-links { display: flex; gap: 20px; margin-top: 12px; font-size: 12px; }
pre { max-width: 100%; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin: 14px 0 0; padding: 12px; font-size: 12px; line-height: 1.5; }
.page-note { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer a { margin-left: auto; }
.footer a:hover { color: var(--text); }
.ip-card { padding: 24px; }
.address-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pill { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; font: 11px var(--mono); padding: 4px 7px; }
.big-ip { font-size: clamp(22px, 4vw, 36px); font-family: var(--mono); letter-spacing: -.8px; line-height: 1.4; font-weight: 550; margin: 14px 0 10px; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin: 22px 0 0; }
.detail dt { font-size: 11px; line-height: 1.5; color: var(--muted); margin-bottom: 8px; }
.detail dd { font: 12px/1.6 var(--mono); margin: 0; overflow-wrap: anywhere; }
.observation { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.measurements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 0; }
.measurement { padding: 0 24px; border-right: 1px solid var(--line); }
.measurement:last-child { border-right: 0; }
.measurement > span { font-size: 12px; color: var(--muted); }
.measurement strong { display: block; font: 500 30px/1.3 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -1px; margin: 14px 0 4px; }
.measurement small { color: var(--muted); font-size: 11px; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 4px 24px 20px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 6px; padding: 8px 14px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.primary { background: var(--strong); color: var(--on-strong); border: 1px solid var(--strong); }
.primary:hover:not(:disabled) { opacity: .85; }
.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.secondary:hover:not(:disabled) { background: var(--hover); }
.copy-button { min-height: 32px; font-size: 11px; }
.message { font-size: 12px; color: var(--muted); line-height: 1.6; }
.test-limits { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; padding: 12px 24px; }
.access-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--muted); margin: 0 0 24px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool { display: block; min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; }
.tool:hover { border-color: var(--muted); }
.tool-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool h2 { font-size: 14px; font-weight: 600; margin: 0; }
.tool p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 12px 0 20px; }
.tool code, .tool-path { font-size: 11px; color: var(--muted); }
.tool-path { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.skip-link:focus { top: 12px; }
@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .topbar { gap: 12px; flex-wrap: wrap; padding: 18px 0 0; }
  .brand { font-size: 19px; }
  .nav { order: 3; width: 100%; min-height: 44px; gap: 24px; }
  select { font-size: 12px; }
  .breadcrumbs { margin: 24px 0 18px; }
  .page-header h1 { font-size: 26px; letter-spacing: -.7px; }
  .page-header { margin-bottom: 26px; }
  .section-head { align-items: flex-start; }
  .section-head > span { max-width: 45%; line-height: 1.6; font-size: 11px; }
  .status-banner { padding: 14px 16px; gap: 10px; }
  .stamp { font-size: 11px; line-height: 1.7; }
  .product, .ip-card { padding: 20px 16px; }
  .product-head { gap: 10px; align-items: flex-start; }
  .product h3 { font-size: 13px; }
  .badge { font-size: 10px; padding: 4px 6px; }
  .bars { gap: 2px; }
  .bar { height: 22px; }
  .timeline { font-size: 10px; }
  .bottom-grid, .tools { grid-template-columns: 1fr; gap: 4px; }
  .mobile-grid { grid-template-columns: 1fr; }
  .mobile-card { padding: 20px 16px 4px; }
  .note { padding: 18px 0; }
  .tools { gap: 12px; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .measurements { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; padding: 20px 0; }
  .measurement { padding: 0 16px; }
  .measurement:nth-child(2) { border-right: 0; }
  .measurement strong { font-size: 27px; }
  .controls { padding: 4px 16px 20px; }
  .message { flex-basis: 100%; }
  .test-limits { padding: 12px 16px; }
  .footer { gap: 12px; margin-top: 28px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --panel: #111;
    --text: #ededed;
    --muted: #a1a1a1;
    --line: #292929;
    --hover: #1c1c1c;
    --strong: #ededed;
    --on-strong: #0a0a0a;
    --green: #4cce8b;
    --green-bg: #10271a;
    --green-line: #20462e;
    --amber: #f1b54a;
    --amber-bg: #291e0d;
    --amber-line: #57421b;
    --red: #ff8383;
    --red-bg: #2c1515;
    --red-line: #552929;
  }
}
