:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-accent:
    radial-gradient(circle at 0% 0%, rgba(33, 150, 243, 0.18), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(17, 194, 168, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 138, 76, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  --panel: rgba(255, 255, 255, 0.8);
  --panel-border: rgba(52, 88, 163, 0.12);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --inner-panel:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(241, 246, 255, 0.88) 100%);
  --inner-panel-border: rgba(83, 58, 31, 0.12);
  --text: #10203a;
  --muted: #5d6f90;
  --good: #107a52;
  --warn: #c56a00;
  --bad: #c7384c;
  --accent: #2667ff;
  --accent-soft: #e8efff;
  --shadow: 0 24px 70px rgba(25, 54, 116, 0.12);
  --radius: 12px;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-accent);
}

.shell {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.hero {
  padding: 12px 8px 14px;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(52, 88, 163, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  font-family: "Segoe UI", "Avenir Next", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(25, 54, 116, 0.08);
}

.top-nav a:hover,
.top-nav a:focus {
  border-color: rgba(38, 103, 255, 0.28);
  color: var(--accent);
  outline: 0;
}

.top-nav a[aria-current="page"] {
  border-color: rgba(38, 103, 255, 0.24);
  background: rgba(219, 234, 254, 0.9);
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-subtitle {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.65vw, 1.12rem);
  font-weight: 600;
  line-height: 1.05;
}

.brand-title:hover .brand-name,
.brand-title:focus .brand-name,
.brand-title:hover .brand-subtitle,
.brand-title:focus .brand-subtitle {
  color: var(--accent);
}

.brand-title:focus {
  outline: 2px solid rgba(38, 103, 255, 0.38);
  outline-offset: 6px;
  border-radius: 8px;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-heading {
  padding-bottom: 4px;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 22px;
}

.shell > .panel {
  position: relative;
  overflow: hidden;
}

.shell > .panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #2667ff 0%, #11c2a8 52%, #ff8a4c 100%);
}

.lookup-heading {
  margin-bottom: 10px;
}

.lookup-intro {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.lookup-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lookup-issue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.lookup-issue-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.4;
}

.lookup-issue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2667ff, #11c2a8);
}

.development-note {
  padding: 10px 12px;
  border: 1px solid rgba(52, 88, 163, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.development-note a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
}

.development-note a:hover,
.development-note a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.lookup-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lookup-form label span {
  color: var(--muted);
  font-weight: 500;
}

.lookup-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: end;
}

.lookup-submit-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.lookup-submit-row button {
  min-width: 132px;
  min-height: 64px;
}

input,
button,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(52, 88, 163, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.45;
}

button {
  padding: 15px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2667ff 0%, #11c2a8 100%);
  color: #f7fbff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 26px rgba(38, 103, 255, 0.22);
}

button:hover {
  filter: brightness(1.04);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.18);
  opacity: 0.62;
  box-shadow: none;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.secondary-action {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(38, 103, 255, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #244ed7;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(25, 54, 116, 0.06);
}

.secondary-action:hover,
.secondary-action:focus {
  color: var(--accent);
  outline: 0;
  filter: none;
  border-color: rgba(38, 103, 255, 0.32);
  background: rgba(255, 255, 255, 0.9);
}

.export-download-notice {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(17, 132, 95, 0.24);
  border-left: 4px solid #20d980;
  border-radius: 8px;
  background: #dcfce7;
  color: #0f6d4c;
  font-weight: 700;
}

.status {
  margin: 12px 2px 0;
  font-weight: 600;
}

.status.idle,
.muted {
  color: var(--muted);
}

.status.busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warn);
}

.status.busy.is-animated::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(190, 92, 0, 0.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: status-spin 0.8s linear infinite;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

.status.good {
  color: var(--good);
}

.status.warn {
  color: var(--warn);
}

.status.bad,
.error-text {
  color: var(--bad);
}

.results {
  margin-top: 0;
}

.report-stack {
  display: grid;
  gap: 16px;
}

.report-overview {
  display: grid;
  gap: 16px;
}

.results .panel.report,
.results .panel.report-overview {
  position: relative;
  overflow: hidden;
}

.results .panel.report::before,
.results .panel.report-overview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #2667ff 0%, #11c2a8 52%, #ff8a4c 100%);
}

.hidden {
  display: none;
}

.headline-row,
.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.headline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.domain-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.report {
  display: grid;
  gap: 16px;
}

.summary-flags {
  display: grid;
  gap: 12px;
}

.section-verdict {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(52, 88, 163, 0.14);
  border-radius: 8px;
  background: rgba(38, 103, 255, 0.06);
  color: var(--muted);
  line-height: 1.45;
}

.section-verdict.good {
  color: var(--good);
  border-color: rgba(16, 122, 82, 0.14);
  background: rgba(16, 122, 82, 0.08);
}

.section-verdict.warn {
  color: var(--warn);
  border-color: rgba(197, 106, 0, 0.16);
  background: rgba(197, 106, 0, 0.08);
}

.section-verdict.bad {
  color: var(--bad);
  border-color: rgba(199, 56, 76, 0.16);
  background: rgba(199, 56, 76, 0.08);
}

.external-analysis-link {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(52, 88, 163, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  line-height: 1.45;
}

.external-analysis-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.external-analysis-link a:hover,
.external-analysis-link a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.report-card-summary {
  display: grid;
  gap: 12px;
}

.report-card-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.report-panel {
  padding: 14px;
  border: 1px solid var(--inner-panel-border);
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--inner-panel);
  display: grid;
  gap: 10px;
  align-content: start;
}

.report-panel.good {
  border-color: rgba(16, 122, 82, 0.18);
  border-left-color: var(--good);
}

.report-panel.bad {
  border-color: rgba(199, 56, 76, 0.18);
  border-left-color: var(--bad);
}

.report-panel.warn {
  border-color: rgba(190, 92, 0, 0.18);
  border-left-color: var(--warn);
}

.report-panel.neutral {
  border-color: rgba(52, 88, 163, 0.12);
  border-left-color: rgba(52, 88, 163, 0.42);
}

.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  align-content: start;
}

.report-title {
  display: flex;
  align-items: center;
}

.report-item {
  padding: 8px 10px;
  border: 1px solid rgba(52, 88, 163, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.94rem;
  line-height: 1.4;
}

.report-item.good {
  color: var(--good);
}

.report-item.bad {
  color: var(--bad);
}

.report-item.warn {
  color: var(--warn);
}

.report-item.neutral {
  color: var(--muted);
}

.report-item.is-linked,
.report-item[role="button"] {
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.report-item.is-linked *,
.report-item[role="button"] * {
  cursor: pointer;
}

.report-item.is-linked:hover,
.report-item.is-linked:focus,
.report-item[role="button"]:hover,
.report-item[role="button"]:focus {
  border-color: rgba(38, 103, 255, 0.28);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(25, 54, 116, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.card {
  padding: 18px;
  background: var(--panel-strong);
}

.terms-panel {
  display: grid;
  gap: 18px;
}

.term-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.term-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(52, 88, 163, 0.12);
  border-radius: 8px;
  background: rgba(38, 103, 255, 0.08);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.term-jump-nav a:hover,
.term-jump-nav a:focus {
  border-color: rgba(38, 103, 255, 0.28);
  color: var(--accent);
  outline: 0;
}

.term-section-heading {
  margin-top: 6px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.terms-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.terms-menu-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--inner-panel-border);
  border-radius: 8px;
  background: var(--inner-panel);
}

.terms-menu-card-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.terms-menu-card-title:hover,
.terms-menu-card-title:focus {
  color: var(--accent);
  outline: 0;
}

.terms-menu-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.terms-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-menu-list li {
  min-width: 0;
  border-top: 1px solid rgba(52, 88, 163, 0.1);
}

.terms-menu-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.terms-menu-list a:hover,
.terms-menu-list a:focus {
  color: var(--accent);
  outline: 0;
  text-decoration: underline;
}

.content-panel {
  display: grid;
  gap: 18px;
}

.content-form {
  display: grid;
  gap: 16px;
}

.content-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.content-form label span {
  color: var(--muted);
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-actions {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-submit-row button {
  min-width: 156px;
  min-height: 64px;
}

#contact-form .turnstile-note {
  margin: -2px 0 6px;
}

#lookup-form .turnstile-note {
  margin: 14px 0 16px;
}

.turnstile-note {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-status {
  margin: 0 0 2px;
  padding: 14px 16px;
  border: 1px solid rgba(52, 88, 163, 0.16);
  border-left: 4px solid rgba(52, 88, 163, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.form-status.busy {
  border-color: rgba(197, 106, 0, 0.22);
  border-left-color: var(--warn);
  background: #fff8eb;
  color: var(--warn);
}

.form-status.warn {
  border-color: rgba(197, 106, 0, 0.22);
  border-left-color: var(--warn);
  background: #fff8eb;
  color: var(--warn);
}

.form-status.bad {
  border-color: rgba(199, 56, 76, 0.22);
  border-left-color: var(--bad);
  background: #fff1f3;
  color: var(--bad);
}

.form-status.good {
  border-color: rgba(16, 122, 82, 0.18);
  border-left-color: #22c55e;
  background: #dcfce7;
  color: #166534;
}

.turnstile-slot {
  min-height: 72px;
  padding: 12px;
  border: 1px dashed rgba(52, 88, 163, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
}

.inline-turnstile-slot,
.contact-turnstile-slot {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inline-turnstile-slot {
  margin-top: 0;
}

.term-entry,
.content-entry {
  display: grid;
  gap: 7px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(52, 88, 163, 0.1);
}

.term-entry:last-child,
.content-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.term-entry h2,
.content-entry h2 {
  font-size: 1.08rem;
}

.term-category {
  scroll-margin-top: 16px;
  padding: 18px 14px 12px;
  border: 1px solid rgba(52, 88, 163, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(38, 103, 255, 0.1) 0%, rgba(17, 194, 168, 0.08) 100%);
}

.term-jump-nav + .term-category {
  margin-top: 8px;
  border-top: 1px solid rgba(52, 88, 163, 0.16);
}

.term-category h2 {
  color: var(--text);
  font-size: 1.28rem;
  letter-spacing: 0;
}

.term-entry h3 {
  margin: 0;
  font-size: 1.02rem;
}

.term-entry p,
.content-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.term-entry strong,
.content-entry strong {
  color: var(--text);
}

.term-entry a,
.content-entry a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.term-entry a:hover,
.term-entry a:focus,
.content-entry a:hover,
.content-entry a:focus {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  margin-left: auto;
  order: 2;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  order: 1;
}

.site-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.flow-card {
  padding: 14px;
}

.root-referral,
.parent-delegation {
  display: grid;
  gap: 6px;
}

.chain-step {
  display: grid;
  gap: 6px;
  position: relative;
}

.chain-step > .chain-step-header {
  padding-right: 112px;
}

.root-referral .chain-step > .chain-step-header,
.parent-delegation .chain-step > .chain-step-header {
  min-height: 34px;
}

.chain-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chain-step .muted {
  margin: 0;
  line-height: 1.35;
}

.chain-step-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
}

.chain-glue-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.chain-glue-list p {
  margin: 0;
}

.chain-table {
  overflow-x: hidden;
  padding: 10px 14px 12px;
  border: 1px solid var(--inner-panel-border);
  border-radius: 8px;
  background: var(--inner-panel);
}

.server-table {
  overflow-x: hidden;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid rgba(52, 88, 163, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.summary-table th,
.summary-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(52, 88, 163, 0.1);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.summary-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.summary-table tbody th {
  font-weight: 700;
}

.summary-table tbody tr.row-good,
.summary-table tbody tr.row-warn,
.summary-table tbody tr.row-bad {
  background: transparent;
}

.summary-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.18);
}

.summary-table .cell-bad {
  color: var(--bad);
  font-weight: 700;
}

.summary-table .cell-warn {
  color: var(--warn);
  font-weight: 700;
}

.summary-table .cell-note {
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
}

.summary-table .cell-line + .cell-line {
  margin-top: 4px;
}

.summary-table .ip-cell,
.summary-table .ip-line,
.summary-table .hostname-cell,
.summary-table .hostname-line,
.summary-table .hostname-lines .cell-line {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.summary-table .status-lines .cell-line {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.authoritative-detail-table th:first-child,
.authoritative-detail-table td:first-child {
  padding-right: 18px;
}

.authoritative-table,
.email-auth-table {
  table-layout: fixed;
}

.authoritative-detail-table {
  table-layout: fixed;
}

.authoritative-table .auth-col-nameserver {
  width: 20%;
}

.authoritative-table .auth-col-resolves,
.authoritative-table .auth-col-queried {
  width: 17%;
}

.authoritative-table .auth-col-serial {
  width: 11%;
}

.authoritative-table .auth-col-answer {
  width: 23%;
}

.authoritative-table .auth-col-status {
  width: 12%;
}

.authoritative-table td:nth-child(5) {
  padding-right: 20px;
}

.authoritative-table td:nth-child(6),
.authoritative-table th:nth-child(6) {
  padding-left: 10px;
}

.authoritative-table .hostname-lines .cell-line {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.authoritative-detail-table .auth-detail-col-ip {
  width: 140px;
}

.authoritative-detail-table .auth-detail-col-ns {
  width: 190px;
}

.authoritative-detail-table .auth-detail-col-a {
  width: 130px;
}

.authoritative-detail-table .auth-detail-col-mx {
  width: auto;
}

.authoritative-detail-table .auth-detail-col-serial {
  width: 105px;
}

.authoritative-detail-table .auth-detail-col-status {
  width: 120px;
}

.email-auth-table .email-col-record {
  width: 76px;
}

.email-auth-table .email-col-name {
  width: 18%;
}

.email-auth-table .email-col-server {
  width: 22%;
}

.email-auth-table .email-col-status {
  width: 100px;
}

.email-auth-table .record-cell,
.authoritative-detail-table .serial-cell,
.authoritative-detail-table .status-cell {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.email-auth-table .status-cell {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.email-auth-table .record-name-cell {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.email-auth-table td:nth-child(4) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.authoritative-issues {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.authoritative-issue {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--inner-panel-border);
  background: var(--inner-panel);
}

.authoritative-checks {
  display: grid;
  gap: 10px;
  position: relative;
}

.returned-ns-validation {
  display: grid;
  gap: 10px;
  position: relative;
}

.mx-checks,
.email-auth-checks,
.glue-checks,
.dnssec-checks,
.timing-checks {
  display: grid;
  gap: 10px;
  position: relative;
}

.authoritative-checks > .card-title,
.returned-ns-validation > .card-title,
.mx-checks > .card-title,
.email-auth-checks > .card-title,
.glue-checks > .card-title,
.dnssec-checks > .card-title,
.timing-checks > .card-title,
.chain-step > .section-verdict {
  padding-right: 112px;
}

.authoritative-checks > .card-title + .section-verdict,
.returned-ns-validation > .card-title + .section-verdict,
.mx-checks > .card-title + .section-verdict,
.email-auth-checks > .card-title + .section-verdict,
.glue-checks > .card-title + .section-verdict,
.dnssec-checks > .card-title + .section-verdict,
.timing-checks > .card-title + .section-verdict,
.chain-step > .chain-step-header + .details-disclosure {
  margin-top: 8px;
}

.authoritative-checks .server-table,
.returned-ns-validation .server-table,
.mx-checks .server-table,
.email-auth-checks .server-table,
.glue-checks .server-table,
.dnssec-checks .server-table,
.timing-checks .server-table {
  padding: 14px;
  border: 1px solid var(--inner-panel-border);
  border-radius: 8px;
  background: var(--inner-panel);
}

.details-disclosure {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.details-disclosure:not([open]) {
  margin-top: -10px;
}

.chain-step > .chain-step-header + .details-disclosure:not([open]) {
  margin-top: 8px;
}

.details-disclosure summary {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 1;
  cursor: pointer;
  list-style: none;
  padding: 6px 11px;
  border: 1px solid rgba(52, 88, 163, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.details-disclosure summary::-webkit-details-marker {
  display: none;
}

.details-disclosure summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  margin-right: 5px;
  color: var(--accent);
}

.details-disclosure[open] summary::before {
  content: "-";
}

.details-disclosure summary:hover,
.details-disclosure summary:focus {
  border-color: rgba(38, 103, 255, 0.28);
  color: var(--accent);
  outline: 0;
}

.details-content {
  display: grid;
  gap: 10px;
}

.returned-ns-validation > .token-list:last-child {
  margin-bottom: 6px;
}

.compact-table {
  margin-top: 12px;
}

.authoritative-checks .authoritative-issues {
  margin-top: 0;
}

.authoritative-issue .server-table {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.authoritative-issue h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.authoritative-issue p {
  margin: 10px 0 0;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.token {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(38, 103, 255, 0.08);
  color: var(--text);
  font-size: 0.86rem;
  border: 1px solid rgba(52, 88, 163, 0.08);
}

.token.neutral {
  order: 3;
  background: rgba(38, 103, 255, 0.08);
  color: var(--text);
}

.token.good {
  order: 4;
  background: rgba(16, 122, 82, 0.12);
  color: var(--good);
}

.token.warn {
  order: 2;
  background: rgba(197, 106, 0, 0.12);
  color: var(--warn);
}

.token.bad {
  order: 1;
  background: rgba(199, 56, 76, 0.12);
  color: var(--bad);
}

.dns-term {
  display: inline-block;
  cursor: pointer;
}

.dns-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(280px, calc(100vw - 32px));
  padding: 9px 10px;
  border: 1px solid rgba(52, 88, 163, 0.16);
  border-radius: 8px;
  background: #10203a;
  color: #f7fbff;
  box-shadow: 0 18px 34px rgba(25, 54, 116, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.dns-term:focus {
  outline: 2px solid rgba(38, 103, 255, 0.38);
  outline-offset: 2px;
}

.tooltip-glossary {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1080px);
    padding-top: 20px;
  }

  .lookup-fields,
  .lookup-issue-list,
  .headline-row,
  .server-header,
  .result-actions,
  .report-card-grid,
  .terms-menu,
  .terms-menu-list,
  .form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  button {
    width: 100%;
  }

  .lookup-submit-row {
    align-items: stretch;
  }

  .contact-submit-row {
    align-items: stretch;
  }
}
