:root {
  color-scheme: dark;
  --type-section: 1rem;
  --type-label: .75rem;
  --type-value: .875rem;
  --ink: #f8f7ff;
  --muted: #d0cce3;
  --line: #e6dcff25;
  --accent: #ccb7ff;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #101026;
  scroll-padding-bottom: calc(var(--notice-height, 0px) + 20px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100svh;
  display: flow-root;
  overflow-wrap: anywhere;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) calc(var(--notice-height, 0px) + 16px) env(safe-area-inset-left, 0px);
  background: radial-gradient(ellipse at 20% 18%, #7837cf90, transparent 57%), radial-gradient(ellipse at 87% 25%, #087fa878, transparent 58%), radial-gradient(ellipse at 47% 100%, #a6357c80, transparent 53%), linear-gradient(145deg, #222047, #13172e 70%);
  background-attachment: fixed;
}
main { width: min(calc(100% - 48px), 1080px); margin: 28px auto 0; }
h1, h2, p, dl { margin: 0; }
p { color: var(--muted); }
a { color: #e0d4ff; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.masthead { min-width: 0; }
.brand-logo { display: block; width: 210px; max-width: 100%; height: auto; padding: 0; background: transparent; border: 0; border-radius: 0; }
.top-nav { --track-width: 64px; --thumb-travel: 30px; display: grid; grid-template-columns: auto var(--track-width) auto; align-items: center; gap: 10px; padding: 4px 10px; max-width: 100%; border: 1px solid #c8ddff45; border-radius: 999px; background: linear-gradient(125deg, #e1d2ff12, #8cddff08), #101c3c66; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); box-shadow: inset 0 1px 0 #ffffff28, 0 6px 22px #090e2926; }
.top-nav .tool-option { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 38px; padding: 6px 3px; font-size: var(--type-value); line-height: 1.3; font-weight: 600; color: #bfc8e3; pointer-events: none; }
.top-nav .tool-option svg { width: 17px; height: 17px; color: #9db4da; }
.top-nav .tool-option[aria-current] { color: #fff; }
.top-nav .tool-option[aria-current] svg { color: #b8eaff; }
.tool-track { position: relative; display: block; width: var(--track-width); height: 34px; border: 1px solid #d5e6ff55; border-radius: 999px; background: #8f7ad85c; box-shadow: inset 0 2px 5px #07142c44, 0 1px 0 #ffffff14; pointer-events: none; }
.tool-thumb { position: absolute; top: 3px; left: 3px; display: block; width: 26px; height: 26px; border: 1px solid #ffffffd9; border-radius: 50%; background: linear-gradient(145deg, #fff, #e7f1ff); box-shadow: 0 2px 5px #050f324d, inset 0 1px 1px #fff; transform: translateX(0); }
.top-nav[data-view="speed"] .tool-track { background: #23a8d2a6; border-color: #94ecff88; }
.top-nav[data-view="speed"] .tool-thumb { transform: translateX(var(--thumb-travel)); }
.top-nav:hover:not(:disabled) { border-color: #d0e6ff80; background: linear-gradient(125deg, #e1d2ff1c, #8cddff12), #101c3c66; }
.top-nav:focus-visible { outline: 2px solid #a7efff; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .tool-thumb { transition: transform .5s ease-in-out; }
  .tool-track { transition: background-color .5s ease-in-out, border-color .5s ease-in-out; }
}
.intro { text-align: center; padding: 0 0 26px; }
h1 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -.045em; line-height: 1.14; font-weight: 680; text-wrap: balance; }
.intro p { margin-top: 9px; font-size: .95rem; }
.hero, .card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  border: 1px solid #ede4ff40;
  border-radius: 22px;
  background: radial-gradient(ellipse at var(--glass-x, 12%) var(--glass-y, 0%), #e4d6ff14, transparent 65%), linear-gradient(120deg, #c7bbff12, #96c8e50b);
  box-shadow: inset 0 1px 0 #fff3, 0 16px 38px #0c07271c;
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}
.hero:has(#ip-query[open]) { z-index: 3; }
.hero-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.query-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#ip-query { position: relative; font-size: var(--type-label); }
#ip-query > summary { cursor: pointer; padding: 2px 8px; border-radius: 8px; color: var(--ink); }
#query-form { position: absolute; top: calc(100% + 8px); right: 0; width: min(360px, calc(100vw - 76px)); padding: 16px; background: #25243fee; backdrop-filter: blur(24px); border: 1px solid #d4c5ff65; border-radius: 14px; box-shadow: 0 16px 40px #09082066; }
.query-entry { display: flex; gap: 8px; margin-top: 8px; }
#query-ip { min-width: 0; width: 100%; padding: 10px; font: inherit; font-size: var(--type-value); color: var(--ink); background: #ffffff0b; border: 1px solid #ffffff50; border-radius: 8px; }
#query-error:not(:empty) { margin-top: 8px; color: #ffcedb; }
#query-submit, #own-ip { min-height: 34px; padding: 6px 10px; font-size: var(--type-label); }
#query-submit { flex: none; white-space: nowrap; }
.auxiliary-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 10px; }
.auxiliary-panels > details[open] { grid-column: 1 / -1; }
#ip-query summary:focus-visible, #query-ip:focus-visible { outline: 2px solid #d7c6ff; outline-offset: 3px; }
@media (max-width: 760px) {
  .query-controls { position: relative; width: 100%; }
  #ip-query { position: static; }
  #query-form { right: auto; left: 0; width: min(360px, calc(100vw - 76px)); }
  .auxiliary-panels { grid-template-columns: 1fr; }
}
.hero { padding: 28px 30px 20px; border-color: #d3bdff65; background-color: #b3a1ff06; }
.hero-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #e1d9f6; font-size: .85rem; font-weight: 600; }
#version { font-size: .67rem; font-weight: 650; letter-spacing: .04em; border: 1px solid #b2e5ed50; border-radius: 6px; padding: 2px 7px; color: #c6f3f3; background: #68c0d012; }
#version:empty, #status:empty, #checked-at:empty { display: none; }
.hero-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.ip-readout { min-width: 0; display: flex; align-items: center; gap: 14px; }
#ip { min-width: 0; font-family: inherit; font-size: clamp(1.5rem, 4.5vw, 3.35rem); font-weight: 600; line-height: 1.12; font-variant-numeric: tabular-nums; letter-spacing: -.04em; overflow-wrap: anywhere; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; max-width: 100%; }
button, #open-map { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 10px 14px; font: inherit; line-height: 1.3; border: 1px solid #e6dcff40; border-radius: 11px; background: #d2c9ff0d; color: #f3eeff; cursor: pointer; text-decoration: none; box-shadow: inset 0 1px 0 #ffffff18; }
button { font-size: var(--type-value); font-weight: 600; }
button:hover:not(:disabled), #open-map:hover { background: #c4b2ff22; border-color: #e6dcff70; }
button:disabled { opacity: .5; cursor: default; }
:is(button, a):focus-visible { outline: 2px solid #d7c6ff; outline-offset: 4px; }
#copy { width: 44px; flex: none; padding: 0; }
.provenance { display: flex; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.provenance p { font-size: .75rem; color: #c9c5dc; }
.detail-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.device-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-left: auto; color: #bcb6d2; font-size: .7rem; }
.device-strip > span { display: none; }
.device-strip dl { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.device-strip dl > div { display: flex; align-items: baseline; gap: 7px; }
.device-strip dt { font-size: var(--type-label); }
.device-strip dd { margin: 0; font-size: var(--type-label); font-weight: 500; }
.device-strip [data-device="screen"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.registration-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #c7bbff05; }
.registration-panel > summary { padding: 10px 14px; cursor: pointer; font-size: var(--type-value); color: #ded4f2; }
.registration-panel > summary:focus-visible { outline: 2px solid #d7c6ff; outline-offset: 3px; border-radius: 12px; }
.registration-content { padding: 0 18px 18px; }
.registration-content p { font-size: var(--type-label); margin: 10px 0; }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-block: 18px; }
.registration-grid > div { min-width: 0; }
#registration-source { display: inline-block; font-size: .78rem; margin: 0 14px 12px 0; }
#registration-refresh { min-height: 36px; }
@media (max-width: 590px) { .registration-grid { grid-template-columns: 1fr; } }
.card { padding: 22px; }
.section-title { display: flex; align-items: center; gap: 11px; font-size: var(--type-section); font-weight: 650; letter-spacing: -.02em; }
.section-title > span:last-child { min-width: 0; }
.section-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: #e4d5ff; border: 1px solid #cdb1ff50; background: linear-gradient(145deg, #b282ff24, #7f6dc40a); box-shadow: inset 0 1px 0 #ffffff24; }
.card[aria-labelledby="connection"] .section-icon { color: #c9edff; border-color: #9dd4ff40; background: linear-gradient(145deg, #63b8e324, #5f9cd00a); }
.detail-cards dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 16px; }
.detail-cards dl > div { min-width: 0; padding-top: 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-cards .section-title { min-height: 36px; }
.detail-cards dl { padding-top: 8px; border-top: 1px solid var(--line); }
.unavailable { color: #b7b2cc; font-weight: 400; }
dd[data-ip-field="asn"] { font-variant-numeric: tabular-nums; }
.location-help { position: relative; flex: none; }
.location-help summary { display: grid; place-items: center; width: 32px; height: 32px; color: #cbc4e2; border-radius: 50%; cursor: pointer; list-style: none; }
.location-help summary::-webkit-details-marker { display: none; }
.location-help summary:hover, .location-help[open] summary { background: #c4b2ff18; color: #fff; }
.location-help p { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(270px, calc(100vw - 84px)); padding: 14px 16px; background: #24223e; border: 1px solid #cdb1ff60; border-radius: 12px; box-shadow: 0 8px 28px #07051c50; color: #e1dced; font-size: .8rem; line-height: 1.55; }
.card:has(.location-help[open]) { z-index: 2; }
.location-help summary:focus-visible { outline: 2px solid #d7c6ff; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.detail-wide { grid-column: 1 / -1; }
dt { color: #c5bfd9; font-size: var(--type-label); line-height: 1.4; }
dd { margin: 4px 0 0; font-family: inherit; font-size: var(--type-value); line-height: 1.5; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.map-cell { display: flex; align-items: center; justify-content: flex-start; }
.family-address { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.family-address > span { min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.family-address > .unavailable { font-family: inherit; }
.family-copy { flex: none; width: 36px; min-height: 36px; padding: 0; border-color: transparent; box-shadow: none; }
.family-copy svg { width: 15px; height: 15px; }
#reverse-name { font-size: var(--type-value); }
.network-flags { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--type-label); margin-top: 7px; }
.network-flags > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 4px 7px; border: 1px solid #e6dcff20; border-radius: 7px; font-weight: 500; color: #d2cce4; }
.network-flags strong { font-size: inherit; font-weight: 500; }
.network-flags .flag-detected { color: #f8d7a2; }
.network-flags .flag-clear { color: #b8e7dc; }
[data-network-field="prefix"] { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .family-copy { width: 44px; min-height: 44px; } }
#open-map { min-height: 40px; padding: 8px 12px; background: #a1b5f012; color: #e1e7ff; font-size: var(--type-value); }
#details-status:not(:empty) { font-size: .8rem; margin: 12px 4px 0; }
.site-footer { color: #c3bdd8; margin-top: 20px; padding: 12px 0 0; text-align: center; }
.site-footer small { font-size: var(--type-label); }
.disclosure-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.disclosure-panels:has(#registration-panel[hidden]) { grid-template-columns: minmax(0, 1fr); }
.disclosure-panels > details[open] { grid-column: 1 / -1; }
.disclosure-panels:has(#registration-panel[open]) .privacy-panel { grid-column: 1 / -1; }
.disclosure-panels .registration-panel { margin-top: 6px; }
@media (max-width: 760px) { .disclosure-panels { grid-template-columns: minmax(0, 1fr); } }
.privacy-content { display: grid; gap: 20px; padding-bottom: 20px; }
.privacy-content section { min-width: 0; }
.privacy-content h2 { font-size: var(--type-section); margin-bottom: 6px; }
.privacy-content p { font-size: var(--type-value); line-height: 1.65; }
.privacy-content p + p { margin-top: 7px; }
.privacy-date { color: var(--muted); }
.license-text { margin-top: 10px; }
.license-text > summary { cursor: pointer; color: var(--ink); padding-block: 8px; }
.license-text pre { max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .75rem; line-height: 1.5; background: #0a102b33; }
.privacy-notice { position: fixed; z-index: 5; inset: auto 0 0; background: #13162edb; border-top: 1px solid #cfc5f526; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.privacy-notice-inner { width: min(calc(100% - 28px), 1120px); margin: auto; padding: 9px 0 calc(9px + env(safe-area-inset-bottom, 0px)); }
.privacy-notice p { text-align: center; font-size: .72rem; color: #c8c4dc; }
.speed-panel { padding: 26px; }
.speed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.speed-grid > div { min-width: 0; text-align: center; border: 1px solid var(--line); padding: 20px 8px; border-radius: 14px; background: #c7bbff06; }
.speed-grid dd { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.speed-grid small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.speed-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 16px; }
#speed-start { min-width: min(180px, 100%); background: linear-gradient(120deg, #8254d4, #4269ad); border-color: #cbb7ff80; color: #fff; }
#speed-start:hover:not(:disabled) { filter: brightness(1.12); }
#speed-status { min-height: 1.5em; text-align: center; font-size: .85rem; }
#speed-progress { display: block; width: min(100%, 360px); height: 4px; margin: 16px auto; accent-color: #b9a0ff; }
.speed-note { margin-top: 26px; font-size: .76rem; }
.speed-credit { margin-top: 12px; font-size: .7rem; }

@media (max-width: 760px) {
  main { width: calc(100% - 28px); margin-top: 18px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .brand-logo { width: 185px; }
  .top-nav { --track-width: 54px; --thumb-travel: 20px; width: 100%; grid-template-columns: minmax(0, .7fr) var(--track-width) minmax(0, 1.3fr); gap: 6px; padding-inline: 6px; }
  .top-nav .tool-option { padding-inline: 0; font-size: 12px; gap: 5px; }
  .hero { padding: 22px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ip-readout { width: 100%; gap: 10px; }
  .actions { width: 100%; }
  #refresh { flex: 1; }
  .detail-cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
  .speed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 761px) {
  body { padding-bottom: calc(var(--notice-height, 0px) + 8px); }
  main { margin-top: clamp(8px, 1.5vh, 20px); }
  .site-header { margin-bottom: clamp(8px, 1.3vh, 16px); }
  .intro { padding-bottom: clamp(10px, 1.5vh, 18px); }
  h1 { font-size: clamp(1.85rem, 3.2vw, 2.15rem); }
  .hero { padding: 12px 22px 8px; }
  .hero-row { margin-top: 8px; }
  #ip { font-size: clamp(1.5rem, 4.2vw, 2.7rem); }
  .provenance { margin-top: 10px; padding-top: 8px; }
  .card { padding: 12px 20px; }
  .detail-cards dl { row-gap: 5px; margin-top: 10px; padding-top: 5px; }
  .card[aria-labelledby="connection"] dl { row-gap: 0; }
  .detail-cards dl > div { padding-top: 5px; }
  .registration-panel { margin-top: 6px; }
  .registration-panel > summary { padding-block: 4px; }
  .site-footer { margin-top: 6px; padding-top: 6px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  main { margin-top: 6px; }
  .site-header { margin-bottom: 8px; }
  .intro { padding-bottom: 10px; }
  h1 { font-size: 1.75rem; }
  .intro p { margin-top: 6px; }
  #ip { font-size: 2.4rem; }
  dt { line-height: 1.3; }
  .hero { padding-top: 10px; }
  .hero-row { margin-top: 6px; }
  .provenance { margin-top: 8px; padding-top: 6px; }
  .card { padding-block: 12px; }
  .site-footer { margin-top: 4px; padding-top: 4px; }
  .detail-cards { margin-top: 12px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .card { padding: 8px 16px; }
  .detail-cards { margin-top: 8px; }
}
@media (max-width: 760px) { .device-strip { margin-left: 0; } .device-strip dl { gap: 5px 16px; } }
@media (max-width: 359px) { .detail-cards dl { grid-template-columns: 1fr; } .map-cell { justify-content: flex-start; } }
@media (prefers-reduced-motion: no-preference) { button, #open-map, .top-nav .tool-option { transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hero, .card { background: #292948; } }
