:root {
  color-scheme: light;
  --brand: #1769e0;
  --ink: #172033;
  --line: #e5edf8;
  --canvas: #f4f8fd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(79, 145, 246, .12), transparent 25rem),
    radial-gradient(circle at 94% 22%, rgba(111, 183, 255, .11), transparent 24rem),
    var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
summary { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

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

.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.site-header {
  height: 4rem;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #dfebfa;
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 2rem, 72rem);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; }

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25rem;
  overflow: hidden;
  border-radius: .65rem;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }

.brand strong { display: block; font-size: 1.05rem; line-height: 1; letter-spacing: -.02em; }
.brand small { display: block; margin-top: .28rem; color: #8a96a8; font-size: .68rem; }
.auxiliary-header { justify-content: space-between; }
.header-menu-button {
  height: 2.25rem;
  padding: 0 .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  color: #49698f;
  background: #fff;
  border: 1px solid #d8e5f5;
  border-radius: .68rem;
  font-size: .72rem;
  font-weight: 600;
}
.header-menu-button:hover { color: var(--brand); border-color: #bcd4f3; }
.header-menu-button:focus-visible { outline: 3px solid rgba(23, 105, 224, .16); outline-offset: 2px; }

.page-shell {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 3.2rem 0 3.5rem;
}

.hero { max-width: 48rem; margin: 0 auto 2rem; text-align: center; }
.hero h1 { margin: 0; color: #111827; font-size: clamp(1.8rem, 5vw, 2.45rem); line-height: 1.2; letter-spacing: -.035em; }

.auxiliary-shell { min-height: calc(100vh - 8.5rem); max-width: 52rem; }
.auxiliary-hero { margin: 0 auto 1.5rem; text-align: center; }
.auxiliary-hero h1 { margin: 0; color: #111827; font-size: clamp(1.55rem, 5vw, 2rem); letter-spacing: -.025em; }
.auxiliary-hero p { margin: .6rem 0 0; color: #8491a4; font-size: .78rem; }
.auxiliary-back-link {
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: #6280a8;
  font-size: .72rem;
  font-weight: 600;
}
.auxiliary-back-link:hover { color: var(--brand); }
.page-navigation { display: grid; gap: .85rem; }
.page-navigation-card {
  min-width: 0;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: 0 12px 34px rgba(31, 76, 129, .07);
}
.page-navigation-card:hover { border-color: #c8dbf3; }
.page-navigation-icon,
.statistic-summary-icon,
.statistics-chart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: #eaf3ff;
}
.page-navigation-icon { width: 2.7rem; height: 2.7rem; flex: 0 0 2.7rem; border-radius: .75rem; }
.page-navigation-content { min-width: 0; flex: 1; }
.page-navigation-content strong { display: block; color: #1b283b; font-size: .88rem; }
.page-navigation-content small { display: block; margin-top: .3rem; color: #8a96a8; font-size: .7rem; }
.page-navigation-arrow { color: #9aa9bc; font-size: .7rem; }
.statistics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.statistic-summary-card {
  min-width: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: 0 12px 34px rgba(31, 76, 129, .07);
}
.statistic-summary-icon { width: 2.55rem; height: 2.55rem; flex: 0 0 2.55rem; border-radius: .72rem; font-size: .9rem; }
.statistic-summary-card > div { min-width: 0; }
.statistic-summary-card p { margin: 0 0 .3rem; color: #7b899e; font-size: .68rem; line-height: 1.3; }
.statistic-summary-card strong { color: #172033; font-size: 1.18rem; line-height: 1.15; overflow-wrap: anywhere; }
.statistic-summary-card small { margin-left: .18rem; color: #8b98aa; font-size: .64rem; }
.statistic-summary-whois .statistic-summary-icon { color: #1769e0; background: #eaf3ff; }
.statistic-summary-rdap .statistic-summary-icon { color: #0878a8; background: #e8f7fc; }
.statistic-summary-tld .statistic-summary-icon { color: #5556c8; background: #efefff; }
.statistics-chart-card {
  margin-top: 1rem;
  padding: 1.3rem 1.4rem 1.45rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 34px rgba(31, 76, 129, .07);
}
.statistics-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.statistics-chart-heading h2 { margin: 0; color: #1c293c; font-size: .9rem; }
.statistics-chart-heading p { margin: .35rem 0 0; color: #8a96a8; font-size: .68rem; }
.statistics-chart-icon { width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; border-radius: .65rem; font-size: .78rem; }
.horizontal-statistics-chart { margin-top: 1.35rem; display: grid; gap: 1rem; }
.horizontal-statistic-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, .85fr) minmax(10rem, 3fr) minmax(3.6rem, auto);
  align-items: center;
  gap: .85rem;
}
.horizontal-statistic-label { color: #53637a; font-size: .72rem; font-weight: 600; }
.horizontal-statistic-track { height: .72rem; overflow: hidden; background: #edf3fb; border-radius: 999px; }
.horizontal-statistic-bar { width: var(--bar-width); height: 100%; display: block; background: linear-gradient(90deg, #4d94f2, #1769e0); border-radius: inherit; }
.horizontal-statistic-rdap .horizontal-statistic-bar { background: linear-gradient(90deg, #45b7de, #0878a8); }
.horizontal-statistic-tld .horizontal-statistic-bar { background: linear-gradient(90deg, #898ae8, #5556c8); }
.horizontal-statistic-row > strong { color: #283750; font-size: .74rem; text-align: right; overflow-wrap: anywhere; }

.search-card,
.card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(31, 76, 129, .07);
}

.search-card {
  max-width: 56rem;
  margin: 0 auto 1.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.search-form {
  display: flex;
  gap: .45rem;
  padding: .45rem;
  background: #fff;
  border: 1px solid #d6e4f5;
  border-radius: 1.05rem;
  box-shadow: 0 18px 50px rgba(34, 82, 139, .12);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form:focus-within { border-color: #75aaf0; box-shadow: 0 18px 50px rgba(34, 82, 139, .12), 0 0 0 4px rgba(44, 124, 230, .1); }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field-icon { position: absolute; left: .5rem; top: 50%; width: 2.35rem; height: 2.35rem; display: inline-flex; align-items: center; justify-content: center; color: #2878e6; background: #eaf3ff; border-radius: .7rem; transform: translateY(-50%); pointer-events: none; }

.search-field input {
  width: 100%;
  height: 3.35rem;
  padding: 0 1rem 0 3.35rem;
  color: #192235;
  background: transparent;
  border: 0;
  outline: none;
}

.search-field input::placeholder { color: #9ba8b8; }

.primary-button {
  height: 3.35rem;
  padding: 0 1.55rem;
  color: #fff;
  background: linear-gradient(135deg, #267cf0, #0c58c9);
  border: 0;
  border-radius: .78rem;
  box-shadow: 0 8px 18px rgba(23, 105, 224, .2);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.primary-button i { margin-right: .45rem; }
.primary-button:hover:not(:disabled) { background: linear-gradient(135deg, #1d72e7, #094fae); box-shadow: 0 10px 22px rgba(23, 105, 224, .26); }
.primary-button:disabled { opacity: .7; cursor: wait; }

.card-heading-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  margin-right: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: #eaf3ff;
  border-radius: .62rem;
}

.results { scroll-margin-top: 1rem; }
.result-meta { min-height: 2rem; margin: 0 .2rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #7b8798; }
.result-meta-main { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; }
.result-meta p { min-width: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: .78rem; line-height: 1.35; }
.result-meta p > i { width: 1rem; flex: 0 0 1rem; color: var(--brand); text-align: center; }
.result-meta .mono { color: #405069; font-weight: 600; line-height: 1.35; }
#source-server,
#ip-source-server { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.result-meta-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.source-cache-group { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; line-height: 1.35; }
.source-cache-group > i { color: #5f8ecb; }
.source-query-button { padding: .3rem .55rem; line-height: 1.2; }

.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.result-column { display: grid; gap: 1.25rem; min-width: 0; }

.card { padding: 1.35rem 1.45rem; border-radius: 1rem; }
.card-heading { min-height: 2.15rem; margin-bottom: .35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-heading h2 { margin: 0; display: flex; align-items: center; color: #172033; font-size: .98rem; }

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .68rem;
  color: #2469c8;
  background: #f7faff;
  border: 1px solid #dce8f8;
  border-radius: .55rem;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.soft-button i { margin-right: .35rem; }
.soft-button:hover { background: #eaf3ff; border-color: #bdd5f6; }
.soft-button:disabled { opacity: .6; cursor: wait; }

.field-row { padding: .88rem 0; border-top: 1px solid #edf2f8; }
.card-heading + .field-row { border-top: 0; }
.field-label { margin-bottom: .35rem; color: #7b899e; font-size: .72rem; line-height: 1.2; }
.field-value { color: #1d293d; font-size: .82rem; line-height: 1.55; font-weight: 600; overflow-wrap: anywhere; }
.date-main,
.date-relative { display: block; }
.date-relative { margin-top: .18rem; color: #7b899e; font-size: .7rem; font-weight: 400; line-height: 1.35; }
.field-detail { margin-top: .35rem; color: #77869a; font-size: .72rem; line-height: 1.55; white-space: pre-line; }
.multiline-value { white-space: pre-line; }
.domain-name { color: #172033; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.domain-code { margin-left: .35rem; color: var(--brand); font-size: .76rem; font-weight: 700; }
.date-grid,
.registrant-grid,
.registrar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.registrant-grid .field-row { border-top: 0; }

.data-list { display: grid; gap: .65rem; margin-top: .85rem; }
.empty-message { margin: .8rem 0 0; padding: .7rem 0; color: #8e9aac; font-size: .78rem; }

.dns-row,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .82rem .95rem;
  border: 1px solid #e1ebf8;
  border-radius: .8rem;
}

.dns-row { background: #f8fbff; }

.dns-info { min-width: 0; flex: 1; }
.dns-meta { margin-bottom: .28rem; color: #8795a9; font-size: .66rem; line-height: 1; font-weight: 400; }
.dns-name { display: block; color: #23324a; font-size: .8rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
#tld-nameserver-list { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.tld-dns-row { display: block; min-width: 0; padding: .75rem; }
.tld-dns-value-row,
.tld-dns-address-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.tld-dns-addresses { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #e8eff8; color: #8190a4; font-size: .68rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.tld-dns-address-row { max-width: 100%; padding: .22rem .28rem .22rem .48rem; background: #fff; border: 1px solid #e4edf8; border-radius: .5rem; }
.tld-dns-address-row > span { min-width: 0; }

.tld-contact,
.ip-contact { padding: .9rem 0; border-top: 1px solid #edf2f8; }
.card-heading + .tld-contact,
#ip-contact-list .ip-contact:first-child { border-top: 0; }
.tld-contact-title { margin: 0 0 .65rem; color: #245fba; font-size: .76rem; font-weight: 700; }
.tld-contact-grid,
.ip-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem 1.2rem; }
.tld-contact-item { min-width: 0; }
.tld-contact-item-wide { grid-column: 1 / -1; }

.icon-button {
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #3978cf;
  background: #fff;
  border: 1px solid #dce8f8;
  border-radius: 50%;
  font-size: .72rem;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.icon-button:hover { color: #fff; background: #2879e4; border-color: #2879e4; }
.icon-button.tld-copy-button { width: 1.75rem; height: 1.75rem; flex-basis: 1.75rem; font-size: .64rem; }

.status-row { min-height: 3.65rem; background: #fff; border-left: 3px solid #4a8dea; }
.status-content { min-width: 0; line-height: 1.65; }
.status-title { color: #24334a; font-size: .82rem; font-weight: 600; }
.status-code { margin-left: .4rem; color: var(--brand); font-size: .7rem; font-weight: 600; overflow-wrap: anywhere; }
.status-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; }

.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-pop {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + .6rem);
  width: 17rem;
  padding: .7rem .8rem;
  color: #fff;
  background: #17243a;
  border-radius: .6rem;
  box-shadow: 0 12px 28px rgba(13, 31, 56, .2);
  font-size: .72rem;
  line-height: 1.6;
  text-align: left;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: .15s ease;
  pointer-events: none;
}

.tooltip-wrap:hover .tooltip-pop,
.tooltip-wrap > .icon-button:focus-visible + .tooltip-pop { opacity: 1; visibility: visible; transform: translateY(0); }


.unregistered-card {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 34px rgba(31, 76, 129, .07);
}

.unregistered-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: .75rem;
}

.unregistered-card h2 { margin: 0 0 .25rem; font-size: .95rem; }
.unregistered-card p { margin: 0; color: #6b7280; font-size: .75rem; font-weight: 600; }

.raw-card {
  margin-top: 1.25rem;
  padding: 0;
  overflow: hidden;
}

.raw-card summary {
  padding: 1.2rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #172033;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.raw-card summary::-webkit-details-marker { display: none; }
.raw-card summary > span { display: flex; align-items: center; }
.chevron { color: #6f8198; transition: transform .18s ease; }
details[open] .chevron { transform: rotate(180deg); }

.raw-data {
  max-height: 32rem;
  margin: 0;
  padding: 1.35rem 1.45rem;
  overflow: auto;
  color: #34435a;
  background: #f7faff;
  border-top: 1px solid #e6eef8;
  font: .74rem/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer { padding: 0 1rem 2rem; color: #98a4b5; font-size: .68rem; text-align: center; }
footer span { margin: 0 .35rem; color: #c0c9d5; }
footer a { color: #6d8fbc; font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--brand); text-decoration: underline; }

.notification-container {
  position: fixed;
  z-index: 100;
  top: .75rem;
  right: .75rem;
  width: min(18rem, calc(100vw - 1.5rem));
  display: grid;
  gap: .5rem;
  pointer-events: none;
}

.notification {
  --notification-color: #6b7280;
  position: relative;
  overflow: hidden;
  color: #273142;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: .65rem;
  box-shadow: 0 10px 24px rgba(17, 29, 49, .14);
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}

.notification-error { --notification-color: #dc2626; color: #991b1b; background: #fff1f2; border-color: #fecdd3; }
.notification-warning { --notification-color: #d97706; color: #92400e; background: #fffbeb; border-color: #fde68a; }
.notification-info { --notification-color: #6b7280; color: #374151; background: #f3f4f6; border-color: #d1d5db; }
.notification-success { --notification-color: #16a34a; color: #166534; background: #f0fdf4; border-color: #bbf7d0; }

.notification-body {
  min-height: 2.75rem;
  padding: .58rem .7rem .68rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.notification-icon {
  width: 1rem;
  flex: 0 0 1rem;
  color: var(--notification-color);
  font-size: .85rem;
  text-align: center;
}

.notification-text { font-size: .73rem; line-height: 1.4; overflow-wrap: anywhere; }

.notification-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--notification-color);
  transform: scaleX(0);
  transform-origin: left;
  animation: notification-progress linear forwards;
}

.notification.is-visible { opacity: 1; transform: translateX(0); }
.notification.is-leaving { opacity: 0; transform: translateX(1.25rem); }

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 1rem;
  display: grid;
  place-items: center;
  background: rgba(18, 35, 58, .48);
  backdrop-filter: blur(3px);
}

.rate-limit-dialog {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.75rem;
  color: #25334a;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(17, 40, 72, .24);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #75849a;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close:hover { color: #244d83; background: #eff5fc; }
.rate-limit-icon { width: 3rem; height: 3rem; margin: 0 auto .8rem; display: inline-flex; align-items: center; justify-content: center; color: #d97706; background: #fff7df; border-radius: .8rem; font-size: 1.2rem; }
.rate-limit-dialog h2 { margin: 0 0 .65rem; color: #1b2a40; font-size: 1.05rem; }
.rate-limit-dialog > p { margin: 0; color: #6f7e92; font-size: .78rem; line-height: 1.65; }
.rate-limit-countdown { margin-top: .65rem !important; color: #a56508 !important; font-weight: 600; }
.turnstile-container { min-height: 4.1rem; margin-top: 1rem; display: flex; justify-content: center; overflow-x: auto; }
.turnstile-message { margin-top: .65rem !important; color: #b42318 !important; }
.modal-verify-button { height: 2.75rem; margin-top: 1rem; padding: 0 1rem; font-size: .78rem; }

@keyframes notification-progress { to { transform: scaleX(1); } }
.loading-spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .page-shell { padding-top: 2.25rem; }
  .statistics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form { flex-direction: column; padding: .55rem; }
  .primary-button { width: 100%; }
  .results-grid { grid-template-columns: 1fr; }
  .card-heading { flex-wrap: wrap; }
  .result-meta { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .result-meta-main { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .result-meta-actions { width: 100%; justify-content: flex-start; padding-left: 1.55rem; }
  .tooltip-pop { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; width: auto; }
}

@media (max-width: 430px) {
  .page-shell,
  .header-inner { width: min(100% - 1.25rem, 72rem); }
  .page-shell { padding-top: 1.8rem; }
  .auxiliary-shell { padding-top: 1.5rem; }
  .statistics-summary { grid-template-columns: 1fr; }
  .horizontal-statistic-row { grid-template-columns: 5.8rem minmax(0, 1fr) minmax(2.5rem, auto); gap: .55rem; }
  .horizontal-statistic-label { font-size: .66rem; }
  .statistics-chart-card { padding: 1.1rem; }
  .hero { margin-bottom: 1.4rem; }
  .search-card { padding: 0; }
  .card { padding: 1.1rem; }
  .search-field input { font-size: 1rem; }
  .date-grid,
  .registrant-grid,
  .tld-contact-grid,
  .ip-contact-grid,
  .registrar-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tld-contact-item-wide { grid-column: auto; }
  .card-heading { align-items: flex-start; }
  .card-heading .soft-button { min-height: 2.5rem; }
  .domain-code { display: block; margin: .3rem 0 0; }
  .result-meta-actions { padding-left: 0; }
  .source-cache-group { width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
  .source-query-button { min-height: 2.5rem; }
  #tld-nameserver-list { grid-template-columns: 1fr; }
  .dns-row,
  .status-row { align-items: flex-start; }
  .dns-row { padding: .75rem; }
  .icon-button { width: 2.5rem; height: 2.5rem; flex-basis: 2.5rem; }
  .icon-button.tld-copy-button { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; }
  .status-actions { padding-top: .05rem; }
  .modal-backdrop { padding: .6rem; }
  .rate-limit-dialog { padding: 1.4rem .9rem; }
  .turnstile-container { overflow-x: visible; }
  .raw-card summary,
  .raw-data { padding-left: 1.1rem; padding-right: 1.1rem; }
  .raw-data { max-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
