:root {
  color-scheme: light;
  --ink: #152043;
  --muted: #5b6683;
  --blue: #263cb4;
  --blue-dark: #182b96;
  --line: #dce2f2;
  --canvas: #f4f6fd;
  --white: #fff;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
:focus-visible { outline: 3px solid #7383ea; outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 64px, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fbfcff; }
.masthead, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.masthead { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.035em; }
.brand-accent { color: var(--blue); }
.brand-dot { color: #bd5b21; }
.header-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.header-link .icon { width: 17px; height: 17px; }
.header-link:hover, .site-footer a:hover { color: var(--blue); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr .95fr; align-items: center; min-height: 313px; padding-block: 34px; gap: 36px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: var(--blue); font: 700 11px/1.4 var(--mono); letter-spacing: .13em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffbd83; border: 1px solid #ac5523; }
.hero h1 { margin: 0; font-size: clamp(45px, 6vw, 74px); letter-spacing: -.071em; line-height: .99; font-weight: 760; }
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 365px; margin: 19px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-art { position: relative; isolation: isolate; min-height: 231px; border: 1px solid #d5dffa; border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 55% 50%, #cdd7fd 0, #e8edff 66%, #edf1ff 100%); }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(#9eaee53d 1px, transparent 1px), linear-gradient(90deg, #9eaee53d 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 75%, transparent); }
.radar { position: absolute; left: 52%; top: 50%; width: 244px; aspect-ratio: 1; transform: translate(-50%, -50%); }
.radar-ring { position: absolute; inset: 0; border: 1px solid #899ce98a; border-radius: 50%; }
.radar-ring.r2 { inset: 26px; border-style: dashed; }
.radar-ring.r3 { inset: 52px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #899eea00 0deg, #8097eb44 63deg, #8097eb00 64deg); }
.radar-core { position: absolute; inset: 92px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); box-shadow: 0 5px 18px #4055b944; }
.radar-core .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.radar-marker { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #364cbd; border: 2px solid #e8edff; box-shadow: 0 0 0 2px #7b8ee371; }
.m1 { top: 32px; right: 49px; }
.m2 { bottom: 45px; right: 43px; }
.m3 { bottom: 57px; left: 37px; background: #c06730; }
.art-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #2c3d85; border: 1px solid #cbd6fc; border-radius: 9px; background: #fbfcff; box-shadow: 0 4px 12px #4055b91a; font: 700 13px/1.1 var(--mono); }
.art-tag i { width: 6px; height: 6px; background: #7187ed; border-radius: 50%; }
.tag-com { left: 12%; top: 26%; }
.tag-net { right: 12%; top: 16%; }
.tag-org { right: 11%; bottom: 22%; }
.tag-dev { left: 20%; bottom: 17%; }
.tag-dev i { background: #c4723c; }
.art-coordinate { position: absolute; inset: auto 14px 9px; display: flex; justify-content: space-between; color: #5266a7; font: 700 9px/1 var(--mono); letter-spacing: .11em; }

.checker { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px #202c6d0a; overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px; gap: 4px; background: #eef1fa; border-bottom: 1px solid var(--line); }
.tabs button { display: flex; align-items: center; justify-content: center; min-height: 46px; gap: 8px; padding: 9px 7px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 650; font-size: 14px; }
.tabs button:hover { background: #e5eafa; color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--blue); border-color: #d9e0f2; box-shadow: 0 2px 5px #223c8711; }
.tabs button:focus-visible { outline-offset: -3px; }
.search-panel { padding: clamp(19px, 3.2vw, 33px); }
.form-heading h2, .data-intro h2 { margin: 0; font-size: clamp(23px, 3vw, 29px); letter-spacing: -.042em; line-height: 1.15; }
.form-heading p { margin: 6px 0 21px; color: var(--muted); font-size: 14px; }
.form-fields { display: flex; gap: 12px; align-items: flex-start; }
.field { min-width: 0; }
.primary-field { flex: 1 1 0; }
.extension-field { flex: 0 1 226px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.field label span { color: var(--muted); font-weight: 400; margin-left: 5px; }
input, textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #cbd5ee; border-radius: 10px; background: #fbfcff; color: var(--ink); }
input { min-height: 49px; }
textarea { display: block; min-height: 114px; font-family: var(--mono); font-size: 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #737e9c; opacity: 1; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; top: 14px; left: 12px; color: #7180b1; pointer-events: none; }
.input-wrap input { padding-left: 39px; }
.field-hint, .form-example { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; align-items: center; }
.field-hint { justify-content: space-between; margin-top: 6px; }
.form-example { margin-top: 11px; }
.example-button { border: 1px solid var(--line); border-radius: 6px; background: #f6f8ff; color: var(--blue); padding: 3px 8px; font: 600 11px/1.35 var(--mono); text-align: left; }
.example-button:hover { background: #e9eeff; }
.primary-button { margin-top: 26px; min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: white; font-size: 14px; font-weight: 700; white-space: nowrap; }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); }
.notice { margin: 16px 0 0; border: 1px solid #efc9bd; border-radius: 10px; padding: 10px 12px; color: #8a331f; background: #fff6f2; font-size: 14px; }
.result-area { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.empty-state { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.empty-state p { margin: 0; }
.empty-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #e4e8f7; border-radius: 9px; background: #f6f8fe; color: #6274bb; }
.empty-icon .icon { width: 17px; height: 17px; }
.result-heading { margin: 0 0 5px; font-size: 19px; font-weight: 740; letter-spacing: -.02em; overflow-wrap: anywhere; }
.result-meta { margin: 0 0 13px; font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; font-weight: 700; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.delegated { color: #14634e; background: #e5f5ed; }
.missing { color: #3249a0; background: #eaf0ff; }
.unobserved { color: #80511d; background: #fdf1de; }
.invalid { color: #8a331f; background: #fff0e9; }
.result-card { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fbfcff; }
.result-card-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 11px; }
.nameservers { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.nameservers li, .extension-chip { border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; background: white; font: 12px/1.5 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.subhead { margin: 13px 0 0; font-weight: 700; font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); background: #f5f7fe; font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; overflow-wrap: anywhere; min-width: 150px; }
td .nameservers { margin: 0; }
.secondary-button { margin-top: 12px; border: 1px solid #cbd5ee; border-radius: 9px; padding: 7px 12px; color: var(--blue); background: #f6f8ff; font-size: 13px; font-weight: 700; }
.secondary-button:hover { background: #e9eeff; }
.extension-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.extension-group { padding: 10px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.extension-group summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.extension-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; max-height: 200px; overflow: auto; }
.bulk-results { display: grid; gap: 7px; }
.bulk-item { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.bulk-item > summary { cursor: pointer; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.bulk-item > summary span { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 7px; }
.bulk-item .extension-groups { margin-top: 9px; }

.data-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 45px; margin: 48px 0 37px; scroll-margin-top: 22px; }
.data-intro p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 365px; }
.legend { margin: 0; display: grid; gap: 7px; }
.legend div { display: grid; grid-template-columns: 109px 1fr; align-items: baseline; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; }
.legend dd { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); background: #fbfcff; font-size: 13px; color: var(--muted); }
.footer-inner { min-height: 61px; }
.footer-inner > span { color: var(--ink); font-weight: 720; }
.footer-inner a { text-decoration: none; }
.noscript { margin: 0 25px 20px; }

@media (max-width: 850px) {
  .shell { width: min(100% - 40px, 1120px); }
  .hero { gap: 22px; min-height: 276px; }
  .hero-art { min-height: 207px; }
  .tabs button { gap: 5px; font-size: 12px; }
  .tabs .icon { width: 17px; height: 17px; }
  .extension-field { flex-basis: 170px; }
  .data-section { gap: 22px; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .masthead { min-height: 60px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .header-link { font-size: 12px; gap: 5px; }
  .hero { display: block; min-height: 0; padding-block: 27px 21px; }
  .hero h1 { font-size: clamp(38px, 9vw, 52px); letter-spacing: -.06em; }
  .hero-break, .hero-art { display: none; }
  .hero-description { margin-top: 11px; font-size: 14px; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; }
  .tabs button { justify-content: flex-start; min-height: 39px; border-radius: 8px; padding: 6px; }
  .search-panel { padding: 16px; }
  .form-heading p { margin-bottom: 15px; }
  .form-fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .primary-button { margin-top: 0; width: 100%; }
  .extension-groups, .data-section { grid-template-columns: 1fr; }
  .data-section { margin: 31px 0 25px; gap: 16px; }
  .footer-inner { min-height: 62px; flex-wrap: wrap; align-content: center; gap: 3px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
