:root {
  color-scheme: light;
  --ink: #172848;
  --muted: #68758c;
  --blue: #3155e7;
  --blue-dark: #2342c0;
  --blue-wash: #eef2ff;
  --line: #e5eaf2;
  --green: #147a5f;
  --canvas: #f5f7fb;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8ca3ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.shell { width: min(1216px, calc(100% - 88px)); margin: 0 auto; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 43px; height: 43px; background: var(--blue); border-radius: 13px; display: grid; place-items: center; color: white; }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.brand-name { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.brand-domain { font-size: 11px; font-weight: 400; letter-spacing: .035em; color: var(--muted); margin-top: 5px; }
.topbar-right { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.header-tag { color: var(--muted); padding-left: 22px; border-left: 1px solid #d9e0ed; }
.live-status { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #3155e710; }
.status-dot.connected { background: var(--green); box-shadow: 0 0 0 4px #147a5f10; }
.status-dot.error { background: #c57a24; box-shadow: 0 0 0 4px #c57a2410; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 39px 0 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 650; line-height: 1.45; letter-spacing: -.03em; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.actions { display: flex; align-items: center; gap: 12px; }
.button { min-height: 39px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 3px 8px #3155e717; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-quiet { color: #52617b; background: transparent; }
.button-quiet:hover:not(:disabled) { background: #e9edf5; }
.button-secondary { color: var(--blue); background: #fff; border-color: #dbe3fc; }
.button-secondary:hover:not(:disabled) { background: var(--blue-wash); border-color: #afc0ff; }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); border: 1px solid #dce4f2; border-radius: 20px; background: white; overflow: hidden; box-shadow: 0 5px 24px #1a315706; }
.hero-main { min-width: 0; padding: 32px 38px 29px; }
.hero-label { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.protocol-pill { color: var(--blue); background: var(--blue-wash); padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.ip-line { display: flex; align-items: center; gap: 15px; margin: 13px 0 15px; }
.ip-address { min-width: 0; color: var(--blue); font-family: "Bahnschrift", "SFMono-Regular", "Cascadia Code", Consolas, monospace; font-size: clamp(30px, 3.6vw, 51px); font-weight: 550; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ip-address.ipv6 { font-size: clamp(24px, 2.65vw, 36px); }
.ip-address.loading, .ip-address.failed { color: #8d9ab0; font-family: var(--sans); font-size: 34px; letter-spacing: 0; }
.copy-button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #7d8ba3; }
.copy-button:hover:not(:disabled) { color: var(--blue); border-color: #b3c1f4; background: #f7f9ff; }
.identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--green); margin: 0 0 18px; padding: 9px 12px; border: 1px solid #b9e4d5; background: #f0faf6; border-radius: 8px; font-size: 12px; }
.identity strong { font-weight: 650; }
.identity span { font-size: 11px; color: #49816e; }
.hero-location { display: flex; align-items: center; gap: 6px; color: #3d4d6b; font-size: 13px; }
.hero-location .icon { width: 15px; height: 15px; color: #8493ab; }
.hero-provider { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 7px 0 20px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.asn-pill { font-size: 10px; background: #f2f5fa; color: #66758e; border-radius: 4px; padding: 2px 6px; }
.hero-note { font-size: 11px; color: var(--muted); line-height: 1.8; }
.route-panel { min-width: 0; margin: 19px; padding: 17px 22px 14px; border-radius: 12px; background: #f4f7ff; }
.route-panel h2 { font-size: 11px; font-weight: 500; color: #7c8baa; margin-bottom: 14px; }
.route-stop { position: relative; display: flex; gap: 12px; min-height: 63px; align-items: flex-start; }
.route-stop:not(:last-child)::after { position: absolute; content: ""; left: 16px; top: 35px; width: 1px; height: 26px; background: #d6dff4; }
.route-stop:last-child { min-height: 38px; }
.route-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #e0e7f7; background: #fff; border-radius: 9px; color: #8c9ec2; flex-shrink: 0; }
.route-icon .icon { width: 16px; height: 16px; }
.route-icon-filled { color: white; background: var(--blue); border-color: var(--blue); }
.route-label { display: block; color: #657492; font-size: 10px; line-height: 1.2; margin: 1px 0 5px; }
.route-stop strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.route-connected { color: var(--green); background: #e7f4ef; font-size: 9px; white-space: nowrap; padding: 1px 5px; border-radius: 4px; margin: 15px 0 0 auto; }
.hero-metrics { grid-column: 1 / -1; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 0; background: #fcfdff; }
.hero-metrics > div { padding: 0 28px; border-right: 1px solid var(--line); }
.hero-metrics > div:first-child { padding-left: 38px; }
.hero-metrics > div:last-child { border: 0; }
.hero-metrics span { display: block; color: var(--muted); font-size: 10px; }
.hero-metrics small { color: #97a3b5; font-size: 9px; margin-left: 4px; }
.hero-metrics strong { display: block; font-family: var(--mono); font-size: 17px; font-weight: 500; margin-top: 4px; color: #2c4062; }
.observation-note { display: flex; gap: 7px; align-items: flex-start; padding: 15px 2px 20px; color: var(--muted); font-size: 11px; }
.observation-note .icon { width: 13px; height: 13px; margin-top: 3px; color: #7a8fac; }
.updated { margin-left: auto; flex-shrink: 0; }
.section-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 29px; border-bottom: 1px solid #dfe5f0; background: var(--canvas); padding: 0 1px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { position: relative; flex-shrink: 0; padding: 15px 0 16px; font-size: 12px; color: var(--muted); }
.section-nav a:hover, .section-nav a.active { color: var(--blue); }
.section-nav a.active::after { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; content: ""; background: var(--blue); border-radius: 2px 2px 0 0; }
.info-section { margin-top: 33px; scroll-margin-top: 76px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.section-heading h2 .icon { width: 17px; height: 17px; color: #6a7da2; }
.section-heading > span { font-size: 11px; color: #8c97a9; }
.card-grid { display: grid; gap: 17px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 21px 22px 19px; }
.info-card h3, .capabilities-card h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: #384965; margin-bottom: 17px; }
.small-tag { font-weight: 400; color: #8c99af; background: #f2f5fa; font-size: 9px; padding: 1px 5px; border-radius: 4px; }
dl { margin: 0; }
.data-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 1.5fr); gap: 16px; padding: 8px 0; align-items: start; border-bottom: 1px solid #f1f3f8; font-size: 12px; line-height: 1.7; }
.data-row:first-child { padding-top: 0; }
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; color: #43516a; overflow-wrap: anywhere; min-width: 0; }
dd.mono { font-family: var(--mono); font-size: 11px; }
dd.unavailable { color: var(--muted); font-size: 11px; }
dd .subvalue { display: block; font-size: 10px; color: #99a3b4; margin-top: 1px; }
.card-note { margin-top: 15px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.capabilities-card { margin-top: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 20px 22px; }
.capabilities-card h3 { margin-bottom: 13px; }
.capabilities { display: flex; flex-wrap: wrap; gap: 8px; }
.capability { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; padding: 4px 9px; border-radius: 5px; background: #f3f6fa; color: #7c8aa0; }
.capability::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #bcc5d2; }
.capability.available { background: #edf7f3; color: #548975; }
.capability.available::before { background: #5ca98a; }
.diagnostic-card { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.diagnostic-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #7184bd; background: #f0f3fd; margin-bottom: 16px; }
.diagnostic-card h3 { font-size: 13px; margin-bottom: 7px; }
.diagnostic-card > p { font-size: 11px; line-height: 1.9; color: var(--muted); margin-bottom: 19px; flex: 1; }
.diagnostic-card > .button { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.diagnostic-result { margin-top: 15px; font-size: 10px; color: var(--muted); width: 100%; overflow-wrap: anywhere; }
.diagnostic-result dl { margin-top: 2px; }
.diagnostic-result .data-row { font-size: 10px; }
.raw-section { margin-top: 30px; }
.raw-details { background: white; border: 1px solid var(--line); border-radius: 12px; }
.raw-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; cursor: pointer; list-style: none; }
.raw-details summary::-webkit-details-marker { display: none; }
.raw-details summary > span { display: flex; align-items: center; gap: 10px; }
.raw-details summary .icon { color: #7b8ca9; width: 16px; height: 16px; }
.raw-details summary strong { font-size: 12px; font-weight: 550; }
.summary-note { font-size: 10px; color: #9aa5b7; margin-left: 8px; }
.chevron { transition: transform .15s; }
.raw-details[open] .chevron { transform: rotate(90deg); }
.raw-body { padding: 0 22px 22px; }
.raw-toolbar { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #8e9cb2; padding-top: 7px; border-top: 1px solid var(--line); }
.raw-toolbar .button { font-size: 10px; min-height: 30px; padding: 4px 7px; }
pre { max-height: 530px; padding: 20px; margin: 7px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.8; color: #4e6083; background: #f5f7fc; border: 1px solid #eaf0f7; border-radius: 8px; overflow: auto; tab-size: 2; }
footer { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: #98a4b5; border-top: 1px solid var(--line); padding: 25px 0 34px; margin-top: 42px; }
footer > div { display: flex; gap: 16px; }
.footer-brand { color: #657997; font-weight: 600; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); background: #21385a; box-shadow: 0 6px 24px #17284820; color: white; border-radius: 9px; padding: 11px 19px; font-size: 12px; }
.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 16px; background: #fff6e4; border: 1px solid #e8cf9c; border-radius: 9px; z-index: 25; }
.noscript a { text-decoration: underline; }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1060px) {
  .shell { width: calc(100% - 56px); }
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); }
  .hero-main { padding: 29px 28px; }
  .route-panel { margin: 16px 16px 16px 0; padding: 17px; }
  .hero-metrics > div:first-child { padding-left: 28px; }
  .info-card { padding: 20px 18px; }
  .data-row { gap: 10px; grid-template-columns: minmax(65px, 1fr) minmax(0, 1.45fr); }
}
@media (max-width: 850px) {
  .three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-tag { display: none; }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr); }
  .hero-main { padding: 26px; }
  .ip-address { font-size: 34px; }
  .ip-address.ipv6 { font-size: 25px; }
  .hero-metrics > div { padding: 0 20px; }
  .hero-metrics small { display: none; }
  .updated { display: none; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 82px; gap: 16px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 11px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .brand-name { font-size: 16px; }
  .brand-domain { font-size: 10px; }
  .topbar-right { font-size: 10px; }
  .page-heading { align-items: flex-end; margin: 27px 0 20px; gap: 8px; }
  h1 { font-size: 23px; }
  .page-heading p { font-size: 11px; max-width: 20em; line-height: 1.8; margin-top: 4px; }
  .actions { gap: 5px; }
  .actions .button { min-height: 35px; gap: 5px; padding: 7px 10px; font-size: 11px; }
  .actions .button-quiet { width: 32px; padding: 6px; }
  .actions .button-quiet span { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .hero-main { padding: 25px 22px 23px; }
  .hero-label { font-size: 11px; }
  .ip-address { font-size: clamp(27px, 7.8vw, 44px); }
  .ip-address.ipv6 { font-size: clamp(23px, 6.2vw, 33px); }
  .ip-line { gap: 9px; margin: 15px 0 15px; }
  .copy-button { width: 30px; height: 30px; }
  .copy-button .icon { width: 15px; height: 15px; }
  .hero-location { font-size: 12px; }
  .hero-provider { font-size: 11px; margin-bottom: 14px; }
  .hero-note { font-size: 10px; }
  .route-panel { display: flex; align-items: flex-start; gap: 8px; margin: 0 14px 15px; padding: 16px 10px; border-radius: 9px; }
  .route-panel h2 { display: none; }
  .route-stop, .route-stop:last-child { min-height: 0; width: 33.333%; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .route-stop:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 15px); top: 16px; width: auto; height: 1px; }
  .route-icon { position: relative; z-index: 1; width: 31px; height: 31px; border-radius: 8px; }
  .route-stop strong { font-size: 10px; max-width: 100%; }
  .route-label { font-size: 9px; margin: 0 0 5px; line-height: 1.4; }
  .route-stop > div { min-width: 0; width: 100%; }
  .route-connected { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .hero-metrics > div, .hero-metrics > div:first-child { padding: 15px 22px; }
  .hero-metrics > div:nth-child(2) { border-right: 0; }
  .hero-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-metrics strong { font-size: 16px; }
  .hero-metrics small { display: inline; font-size: 8px; }
  .observation-note { font-size: 10px; padding: 13px 1px 16px; line-height: 1.8; }
  .observation-note .icon { width: 12px; height: 12px; flex-shrink: 0; }
  .section-nav { gap: 23px; margin-top: 0; }
  .section-nav a { font-size: 11px; padding: 13px 0; }
  .info-section { margin-top: 27px; scroll-margin-top: 64px; }
  .section-heading { margin-bottom: 12px; align-items: flex-start; }
  .section-heading h2 { font-size: 14px; gap: 6px; flex-shrink: 0; }
  .section-heading > span { font-size: 9px; text-align: right; max-width: 46%; padding-top: 3px; }
  .three-columns { grid-template-columns: minmax(0, 1fr); }
  .card-grid { gap: 12px; }
  .info-card { border-radius: 10px; padding: 20px; }
  .info-card h3 { margin-bottom: 15px; font-size: 12px; }
  .data-row { font-size: 12px; padding: 9px 0; gap: 16px; grid-template-columns: minmax(85px, 1fr) minmax(0, 1.7fr); }
  dd.mono { font-size: 11px; }
  .capabilities-card { margin-top: 12px; padding: 20px; border-radius: 10px; }
  .capabilities { gap: 7px; }
  .diagnostic-card { padding: 22px; }
  .diagnostic-card > p { max-width: 32em; }
  .diagnostic-card > .button { min-height: 38px; }
  .diagnostic-result { font-size: 10px; margin-top: 13px; }
  .diagnostic-result .data-row { font-size: 11px; }
  .raw-details summary { padding: 19px; }
  .summary-note { display: none; }
  .raw-body { padding: 0 15px 15px; }
  pre { padding: 13px; font-size: 10px; }
  footer { flex-direction: column; gap: 8px; font-size: 9px; margin-top: 30px; padding: 23px 1px; }
  footer > div { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
