:root {
  --ink: #0a2a36;
  --ink-2: #123744;
  --paper: #fff;
  --page: #eef2f4;
  --text: #1c2c33;
  --muted: #5a6b73;
  --line: #d7e0e4;
  --accent: #0e9aa8;
  --accent-hover: #0b8490;
  --ok: #1a7a48;
  --warn: #9a6b00;
  --fail: #c0392b;
  --nav: 56px;
  --bottom: 58px;
  --r: 10px;
  --shadow: 0 1px 0 rgba(10, 42, 54, 0.04), 0 8px 24px rgba(10, 42, 54, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font: 15px/1.55 "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom) + env(safe-area-inset-bottom, 0px));
  letter-spacing: -0.01em;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono, pre, .hash, .geo-value, .ip-num {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.topbar {
  background: var(--ink);
  color: #c5d4da;
  border-bottom: 1px solid #13404c;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav);
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand em { font-style: normal; color: var(--accent); }
.desk-nav {
  display: none;
  flex: 1;
  align-items: stretch;
  min-width: 0;
  height: 100%;
}
.nav-cats {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 12px;
}
.drop { position: relative; display: flex; align-items: stretch; }
.drop > button {
  background: none;
  border: 0;
  color: #b7c5cc;
  font: 500 13px/1 inherit;
  padding: 0 18px 0 12px;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  white-space: nowrap;
}
.drop > button::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.7;
}
.drop > button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
}
.drop.on > button::after { background: var(--accent); }
.drop.on > button,
.drop:hover > button,
.drop.open > button,
.drop:focus-within > button { color: #fff; }
.menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  background: #fff;
  border: 1px solid var(--line);
  min-width: 280px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 40;
  border-radius: 0 0 var(--r) var(--r);
}
.drop-wide .menu,
.menu-wide {
  width: min(520px, calc(100vw - 48px));
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}
.menu-kicker {
  grid-column: 1 / -1;
  margin: 0 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.drop:hover .menu,
.drop:focus-within .menu,
.drop.open .menu { display: grid; }
.drop-wide:last-child .menu,
.nav-cats .drop:nth-last-child(-n+2) .menu { left: auto; right: 0; }
.menu a {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  font-size: 14px;
  border-radius: 8px;
}
.menu a strong { display: block; font-size: 13px; font-weight: 600; }
.menu a span {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu a:hover,
.menu a.active { background: #f3f6f7; color: var(--text); text-decoration: none; }
.menu a.active strong { color: var(--accent-hover); }
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, transparent 5px, #062228 5.5px, transparent 6px),
    linear-gradient(#062228, #062228) center / 100% 1.5px no-repeat,
    linear-gradient(#062228, #062228) center / 1.5px 100% no-repeat,
    var(--accent);
  display: inline-block;
  margin-right: 10px;
}
.lang {
  color: #c5e4ea;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid #2a6570;
  border-radius: 8px;
}
.lang:hover { color: #fff; text-decoration: none; background: var(--ink-2); }
.mobile-lang { margin-left: auto; }
.cta {
  background: var(--accent);
  color: #062228;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
.cta:hover { background: var(--accent-hover); color: #062228; text-decoration: none; }
.mobile-cta { display: inline-flex; margin-left: 8px; }
.nav-account {
  color: #c5e4ea;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  white-space: nowrap;
}
.nav-account:hover { color: #fff; text-decoration: none; }
.mobile-account { margin-left: 4px; }

.home { padding: 0 0 48px; }
.hero-band {
  background:
    linear-gradient(180deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(165deg, #0a2a36 0%, #0e4452 58%, #0c5c66 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: #fff;
  padding: 44px 0 40px;
  margin-bottom: 24px;
}
.hero-band .wrap {
  text-align: left;
  max-width: 1120px;
  margin-inline: auto;
  width: min(1120px, calc(100% - 32px));
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd4dc;
}
.hero-band h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}
.hero-band .lede { color: #d2e8ec; margin: 0 0 20px; max-width: none; font-size: 16px; }
.rr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.rr-pills span {
  background: rgba(255,255,255,.1);
  color: #e8f7f9;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
}
.go-hero { max-width: none; margin: 0; background: transparent; border: 0; padding: 0; }
.go-hero .go-row {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.go-hero input { border: 0; height: 48px; font-size: 16px; }
.go-hero input:focus { outline: none; }
.go-hero button {
  background: var(--accent);
  color: #062228;
  min-width: 128px;
}
.go-hero button:hover { background: var(--accent-hover); color: #062228; }
.go-hero .hint { color: #b7d5db; text-align: left; padding: 8px 4px 0; }
.hero-example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #c5e4ea;
  font-size: 13px;
}
.hero-example a {
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  background: rgba(255,255,255,.1);
  padding: 4px 10px;
  border-radius: 6px;
}
.hero-example a:hover { text-decoration: none; background: rgba(255,255,255,.18); }

.ip-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 28px;
  color: inherit;
  box-shadow: var(--shadow);
}
.ip-strip:hover { text-decoration: none; border-color: #b7d0d6; }
.ip-strip .kicker { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ip-strip .ip-num { display: block; font-size: 20px; }
.ip-strip .ip-place { display: block; color: var(--muted); font-size: 13px; }
.ip-link { color: var(--accent); font-weight: 600; font-size: 13px; }

.home-seo { margin-top: 40px; }
.cat-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.cat-jump a {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}
.cat-jump a:hover { text-decoration: none; border-color: var(--accent); color: var(--ink); }

.go button {
  background: var(--accent);
  color: #062228;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
}
.go button:hover { background: var(--accent-hover); }

button[type=submit], .query > button, [data-pane] button[type=submit] {
  background: var(--accent);
  color: #062228;
}
button[type=submit]:hover { background: var(--accent-hover); color: #062228; }

.report-page { padding: 8px 0 48px; }
.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 16px;
}
.report-head h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.04em;
  word-break: break-all;
}
.report-search { flex: 1; min-width: min(100%, 280px); margin: 0; }
.go-inline { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); }
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.report-meta code {
  font-size: 12px;
  background: #e8eef0;
  padding: 1px 6px;
  border-radius: 4px;
}
.tally { font-weight: 600; }
.tally-ok { color: var(--ok); }
.tally-warn { color: var(--warn); }
.tally-fail { color: var(--fail); }
.report-grid {
  display: grid;
  gap: 28px;
}
.health-panel h2, .rr-panel h2 {
  margin: 0 0 12px;
  font-size: 15px;
}
.find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.find-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.find-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.find-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.find-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.find-lines {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}
.find-card.st-fail { border-color: #f0c4c0; }
.find-card.st-warn { border-color: #ead9a0; }
.rr-status {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rr-chip {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
}
.rr-chip em { font-style: normal; color: var(--muted); }
.rr-chip.is-on { border-color: #c5e4cc; background: #f4faf5; }
.rr-chip.is-off { color: var(--muted); background: transparent; }
.rr-chip .rr-type {
  font-size: 12px;
}
.rr-type {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.name-cell { font-size: 13px; color: var(--muted); max-width: 12rem; word-break: break-all; }
.report-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 24px 0 0;
  font-size: 13px;
}
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.mono-cell { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.info-cell { white-space: pre-wrap; font-size: 13px; }
.intodns td:first-child { font-weight: 600; white-space: nowrap; }
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 6px;
  text-align: center;
}
.pill-ok, .pill-info { background: #e5f6ea; color: var(--ok); }
.pill-warn { background: #fff4d6; color: var(--warn); }
.pill-fail { background: #fdecea; color: var(--fail); }
.intodns tr.st-fail { background: #fff8f7; }
.intodns tr.st-warn { background: #fffdf5; }
@media (min-width: 960px) {
  .report-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
}
.muted { color: var(--muted); font-size: 13px; }
.hero { display: grid; gap: 12px; margin-bottom: 28px; }
.ip-panel {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ip-copy { padding: 18px 18px 16px; }
.kicker {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ip-num {
  margin: 6px 0 4px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  word-break: break-all;
}
.ip-place { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.mini-map { margin: 0; background: #d5ddd0; min-height: 160px; }
.mini-map iframe { width: 100%; height: 180px; border: 0; display: block; }

.go {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
}
.go label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.go-row { display: flex; gap: 8px; }
.go input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c5ccd4;
  border-radius: 8px;
  font: inherit;
}
.go input:focus,
.finder input:focus,
.tools-head input:focus,
.row input:focus,
.row select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.tools-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.tools-head h2 { margin: 0; font-size: 20px; }
.tools-head input {
  margin-left: auto;
  width: min(280px, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.index { display: grid; gap: 28px; }
.catalog h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.catalog h3 span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.cat-lead {
  margin: 0 0 12px;
  width: 100%;
  max-width: none;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tool {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  color: inherit;
  box-shadow: var(--shadow);
}
.tool:hover {
  text-decoration: none;
  border-color: #9fd3d9;
  box-shadow: 0 0 0 1px #9fd3d9;
}
.tool strong { display: block; font-size: 14px; }
.tool span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool.hidden { display: none; }
.catalog[hidden] { display: none !important; }

.crumbs { padding: 16px 0 0; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b0b8c0; }
.crumbs a { color: var(--muted); }
.page-head { padding: 12px 0 16px; }
.page-head h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; }
.page-head p { margin: 0; color: var(--muted); }

.lookup-page { padding-bottom: 8px; }
.lookup-page .wrap {
  max-width: 1120px;
}
.page-hero {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(165deg, #0a2a36 0%, #0e4452 58%, #0c5c66 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: #fff;
  padding: 0 0 36px;
  margin-bottom: 24px;
}
.crumbs-on-dark { padding: 14px 0 10px; }
.crumbs-on-dark, .crumbs-on-dark a { color: #9ec9d0; }
.crumbs-on-dark a:hover { color: #fff; text-decoration: none; }
.crumbs-on-dark li:not(:last-child)::after { color: #5a8890; }
.crumbs-on-dark span[aria-current] { color: #fff; }
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
}
.page-hero h1.report-domain {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.04em;
  word-break: break-all;
}
.page-hero .lede { color: #d2e8ec; margin: 0 0 20px; max-width: none; }
.sheet, .dns-form {
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.sheet[hidden] { display: none; }
.page-hero .sheet, .page-hero .sheet-status { margin-top: 12px; }
.sheet h2 {
  margin: 0 0 12px;
  font-size: 15px;
}
.dns-go {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
  min-width: 0;
  flex-wrap: wrap;
}
.dns-form .dns-go:last-child { margin-bottom: 0; }
.dns-go button { flex: 0 0 auto; white-space: nowrap; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.hero-stats span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #e8f7f9;
}
.hero-stats code {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}
.hero-stats .tally-ok { color: #9ee0b0; }
.hero-stats .tally-warn { color: #f5d98a; }
.hero-stats .tally-fail { color: #f5b0a8; }
.lookup-page.is-report .sheet .find-card { background: #f8fafb; }
.sheet .rr-chip { background: #f8fafb; }
.sheet .rr-chip.is-on { background: #f4faf5; }
.sheet .rr-chip.is-off { background: transparent; }
.table-wrap.in-sheet {
  border: 0;
  margin: 0;
  background: #f8fafb;
  border-radius: 8px;
}
.dns-go input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c5ccd4;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}
.dns-go button {
  background: var(--accent);
  color: #062228;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  padding: 0 20px;
  min-height: 48px;
  font-weight: 600;
  font-size: 15px;
}
.dns-go button:hover { background: var(--accent-hover); }
.dns-go select {
  flex: 0 1 168px;
  min-width: 108px;
  height: 48px;
  border: 1px solid #c5ccd4;
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.dns-go input[type="number"] {
  flex: 0 0 7rem;
  max-width: 7.2rem;
}
.dns-form textarea {
  width: 100%;
  min-height: 120px;
  margin: 0 0 12px;
  border: 1px solid #c5ccd4;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}
.dns-form .tabs { margin: -2px 0 12px; }
.page-hero .hero-note { color: #c5e0e4; margin: 10px 0 0; }
.lead-answer {
  font-size: 1.05em;
}
.lookup-body .prose p:first-child { max-width: 68ch; }
.dns-field { margin-bottom: 12px; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.dns-form .hint { margin: 4px 2px 0; overflow-wrap: anywhere; }
.dns-form .chips { margin-top: 0; }
.chips.resolver-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.resolver-chips button em {
  display: block;
  font-style: normal;
  font-size: 10px;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 0;
}
.resolver-chips button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  text-align: left;
  line-height: 1.25;
  padding: 7px 10px;
}
@media (min-width: 560px) {
  .chips.resolver-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lookup-body { padding-bottom: 8px; }
.lookup-result {
  padding: 16px 18px;
}
.dkim-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.dkim-gen .grid-2 { margin-bottom: 8px; }
.dkim-sel-chips { margin: 0 0 6px; }
.dkim-gen .hint { margin: 0 0 14px; }
.dkim-bits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dkim-bits button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  height: auto;
  text-align: left;
  padding: 12px;
  font-family: inherit;
  line-height: 1.35;
  letter-spacing: 0;
}
.dkim-bits button strong {
  font-size: 14px;
  font-weight: 650;
}
.dkim-bits button em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.dkim-bits button span {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0;
}
.dkim-bits button.on em { color: #9ee0b0; }
.dkim-howto {
  margin: 0 0 14px;
  padding: 0 0 0 1.15em;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.dkim-howto li { margin: 0 0 6px; }
.dkim-out { display: grid; gap: 12px; }
.dkim-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: var(--fail);
  font-size: 13px;
  line-height: 1.45;
}
.dkim-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafb;
}
.dkim-block.is-secret {
  border-color: #e8c4c0;
  background: #fdf6f5;
}
.dkim-block header,
.dkim-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.dkim-subhead { margin-top: 12px; }
.dkim-block h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.dkim-block pre { margin: 0; }
.dkim-block .hint { margin: 8px 0 0; }
.dkim-copy {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dkim-copy:hover { border-color: var(--ink); }
.dkim-next {
  margin: 8px 0 0;
  padding: 0 0 0 1.15em;
  font-size: 13px;
  color: #3d4550;
  line-height: 1.5;
}
.dkim-next li { margin: 0 0 6px; }
.dkim-guide h2 {
  margin: 22px 0 8px;
  font-size: 17px;
}
.dkim-guide h2:first-child { margin-top: 0; }

.subnet-page .page-hero .dns-form + .dns-form { margin-top: 12px; }
.subnet-form h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
}
.subnet-select {
  width: 100%;
  height: 48px;
  border: 1px solid #c5ccd4;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.chips.subnet-class {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips.subnet-class button { min-width: 3.4rem; }
.chips.port-chips { gap: 6px; }
.port-chips button { font-size: 11px; }
.dns-go input.port-num {
  flex: 0 0 5.6rem;
  max-width: 6.2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dns-go input.cloud-users {
  flex: 0 0 6.8rem;
  max-width: 7.4rem;
}
.ssl-hero {
  display: grid;
  grid-template-columns: minmax(8rem, 30%) 1fr;
  gap: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ssl-hero-days {
  padding: 18px 12px;
  text-align: center;
}
.ssl-hero-days strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.ssl-hero-days span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
}
.ssl-hero-days.is-ok { background: #e8f6ee; color: var(--ok); }
.ssl-hero-days.is-warn { background: #fff8e8; color: var(--warn); }
.ssl-hero-days.is-fail { background: #fdecea; color: var(--fail); }
.cloud-hero-sku {
  font-size: 22px !important;
  letter-spacing: 0.02em;
  padding: 8px 0 2px;
}
.table tr.is-pick { background: #e8f6ee; }
.table tr.is-low td { color: var(--muted); }
.ssl-hero-issuer {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ssl-issuer-label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
}
.ssl-issuer-name {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
}
.ssl-hero-issuer .hint { margin: 4px 0 0; }
.ssl-hero-status { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.ssl-days { font-variant-numeric: tabular-nums; }
.ssl-days.is-ok { color: var(--ok); }
.ssl-days.is-warn { color: var(--warn); }
.ssl-days.is-fail { color: var(--fail); }
@media (max-width: 640px) {
  .ssl-hero { grid-template-columns: 1fr; }
}
.whois-raw {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 16px;
}
.whois-raw summary { cursor: pointer; font-weight: 600; }
.whois-raw pre {
  margin: 10px 0 0;
  max-height: 28rem;
  overflow: auto;
  font-size: 12px;
  white-space: pre-wrap;
}
.whois-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #062228;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 650;
  text-decoration: none;
  min-height: 42px;
}
.whois-buy:hover { background: var(--accent-hover); color: #062228; }
.ptr-hero-name {
  font-size: 18px !important;
  word-break: break-all;
  letter-spacing: 0;
}
.subnet-out-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.subnet-out-head h2 { margin: 0; }
.subnet-kv {
  display: grid;
  grid-template-columns: minmax(9.5rem, 36%) 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.subnet-kv dt,
.subnet-kv dd {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.subnet-kv dt {
  background: #f4f7f8;
  color: var(--muted);
  font-weight: 600;
}
.subnet-kv dd {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  word-break: break-all;
}
.subnet-kv dt:nth-last-of-type(1),
.subnet-kv dd:last-child { border-bottom: 0; }
.subnet-ref { margin: 28px 0 0; }
.subnet-ref h2 { font-size: 17px; margin: 0 0 8px; }
.subnet-ref > p { color: #3d4550; max-width: 68ch; }
.subnet-masks code {
  font-size: 12px;
  background: transparent;
  padding: 0;
  color: inherit;
}
.subnet-class-row th {
  background: #eef3f5;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
}
.mail-src-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
.mail-score { display: grid; gap: 12px; }
.mail-score-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafb;
}
.mail-score-hero.is-A .grade { background: #1f7a46; }
.mail-score-hero.is-B .grade { background: #2f6f7a; }
.mail-score-hero.is-C .grade { background: #8a6a12; }
.mail-score-hero.is-D .grade,
.mail-score-hero.is-F .grade { background: #a33b32; }
.mail-score-num {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}
.mail-score-hero .hint { margin: 4px 0 0; }
.mail-checks,
.mail-extras {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mail-check {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.mail-check:first-child { border-top: 0; }
.mail-check span:first-child {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}
.mail-check strong { display: block; margin-bottom: 2px; }
.mail-check.is-pass strong { color: var(--ok); }
.mail-check.is-warn strong { color: var(--warn); }
.mail-check.is-fail strong { color: var(--fail); }
.mail-extras { color: var(--muted); font-size: 13px; line-height: 1.45; padding-left: 1.1em; list-style: disc; }
.mail-score h3 { margin: 4px 0 0; font-size: 13px; }
.lookup-meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.lookup-meta code {
  font-size: 12px;
  background: #e8eef0;
  padding: 1px 6px;
  border-radius: 4px;
}
.rr-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.rr-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafb;
}
.rr-block header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.rr-block h3 {
  margin: 0;
  font-size: 13px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.rr-block header span { font-size: 12px; color: var(--muted); }
.rr-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.rr-block p { margin: 0; font-size: 13px; color: var(--muted); }
.rr-block.is-empty { background: transparent; }
.lookup-more {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
}
@media (min-width: 700px) {
  .rr-grid { grid-template-columns: 1fr 1fr; }
}

.val-board { padding: 0 0 28px; }
.val-sheet {
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 8px 28px rgba(10, 42, 54, 0.06);
}
.val-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f4;
}
.val-head h2 { margin: 0; font-size: 15px; }
.val-meta { margin: 0; font-size: 12px; color: var(--muted); }
.val-tests {
  list-style: none;
  margin: 0;
  padding: 10px 16px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.val-tests li {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f4;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: min(100%, 420px);
}
.val-tests li span {
  font-weight: 500;
  opacity: 0.88;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.val-tests li.pass { background: #e7f6ee; color: #157347; }
.val-tests li.warn { background: #fff4e5; color: #9a3412; }
.val-tests li.fail { background: #fde8e6; color: #9b1c1c; }
.val-consensus {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 13px;
}
.val-consensus code { font-size: 12px; }
.geo-dns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.geo-dns-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f4;
  cursor: pointer;
}
.geo-dns-row:nth-child(odd) { border-right: 1px solid #eef1f4; }
.geo-dns-row:hover { background: #f8fafc; }
.geo-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4f7f8;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
}
.geo-who { min-width: 0; }
.geo-who strong { display: block; font-size: 13px; font-weight: 600; color: #1d2b36; }
.geo-who span { display: block; font-size: 11px; color: #6b7a86; }
.geo-who span em {
  font-style: normal;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #8a97a3;
}
.geo-ans {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.geo-ans em {
  font-style: normal;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #5a6b73;
  text-align: right;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.geo-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f80ed;
  position: relative;
}
.geo-mark.is-idle::before,
.geo-mark.is-idle::after {
  content: "";
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.geo-mark.is-idle::before { width: 10px; height: 2px; }
.geo-mark.is-idle::after { width: 2px; height: 10px; }
.geo-mark.is-ok { background: #2f80ed; }
.geo-mark.is-ok::after {
  content: "";
  position: absolute;
  inset: 5px 0 7px 6px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.geo-mark.is-warn { background: #f0a202; }
.geo-mark.is-fail, .geo-mark.is-timeout { background: #e74c3c; }
.geo-mark.is-empty, .geo-mark.is-nx { background: #94a3b8; }
.geo-mark.is-wait {
  background: transparent;
  border: 2px solid #c5d4da;
  border-top-color: #2f80ed;
  animation: valspin 0.7s linear infinite;
}
@keyframes valspin { to { transform: rotate(360deg); } }
.geo-add {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #2f80ed;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.geo-add:hover { background: #1b6fd4; text-decoration: none; color: #fff; }
.val-map { margin: 12px 16px; border-radius: 4px; }
.val-map iframe { height: 220px; }
.val-provider-hint { margin: -4px 0 12px; }
.val-note { padding: 0 16px 16px; }
.geo-rm {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.val-modal {
  border: 0;
  padding: 0;
  border-radius: 8px;
  width: min(440px, calc(100% - 24px));
  box-shadow: 0 24px 60px rgba(10, 42, 54, 0.28);
}
.val-modal::backdrop { background: rgba(10, 42, 54, 0.45); }
.val-modal-card { padding: 18px 18px 16px; }
.val-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.val-modal-card h2 { margin: 0; font-size: 18px; }
.val-x {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.val-modal-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.val-modal-card input {
  font: inherit;
  font-weight: 500;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.val-modal-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.val-modal-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.val-save { background: #27ae60; color: #fff; }
.val-save:hover { filter: brightness(0.96); }
@media (max-width: 800px) {
  .geo-dns { grid-template-columns: 1fr; }
  .geo-dns-row:nth-child(odd) { border-right: 0; }
}
@media (max-width: 640px) {
  .geo-dns-row { grid-template-columns: 28px minmax(0, 1fr); }
  .geo-ans { grid-column: 2; justify-content: flex-start; }
  .val-modal-2 { grid-template-columns: 1fr; }
}

.query {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input, .row select, textarea, .grid-2 input, .grid-2 select {
  border: 1px solid #c5ccd4;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.row input, .row select { flex: 1; min-width: 140px; min-height: 42px; }
button[type=submit], .query > button, [data-pane] button[type=submit] {
  background: var(--accent);
  color: #062228;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0 18px;
  min-height: 42px;
  font-weight: 600;
  font-size: 14px;
}
textarea { width: 100%; margin: 8px 0; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.chips button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.chips button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chips.dkim-bits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chips.dkim-bits button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  height: auto;
  text-align: left;
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}
.chips.dkim-bits button strong { font-size: 14px; font-weight: 650; }
.chips.dkim-bits button em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.chips.dkim-bits button span {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0;
}
.chips.dkim-bits button.on em { color: #9ee0b0; }
.tabs { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: -1px;
}
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.grid-2 label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

.status {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
}
.status.err { background: #fdecea; color: var(--fail); }
.status.wait { background: #f4f5f7; color: var(--muted); }
.status.ok { background: #e8f6ee; color: var(--ok); }
.note { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

.result {
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}
.result[hidden] { display: none; }
.result h3 { font-size: 14px; margin: 18px 0 8px; }
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  padding: 4px 0;
}
.kv span { color: var(--muted); font-size: 13px; }
.mono, pre, .hash {
  font-size: 13px;
  background: var(--ink);
  color: #e8edf0;
  padding: 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tr:nth-child(even) td { background: #f7f8f9; }
.pass { color: var(--ok); }
.fail { color: var(--fail); }
.warn { color: var(--warn); }
.grade {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.geo { display: grid; gap: 16px; }
.geo-ip { padding-bottom: 4px; }
.geo-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.geo-value {
  margin: 4px 0 4px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  word-break: break-all;
}
.geo-place { margin: 0; color: var(--muted); font-size: 14px; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  gap: 12px 16px;
}
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-size: 14px; }
.map {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #d5ddd0;
}
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.map figcaption { padding: 8px 2px 0; font-size: 12px; color: var(--muted); }

.prose, .faq, .query, .home-seo {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
.prose { margin: 28px 0 0; }
.prose p { color: #3d4550; }
.home-seo h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}
.lookup-body .prose,
.lookup-body .faq,
.home-seo,
.home .faq {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.faq { margin: 28px 0; }
.faq h2 { font-size: 18px; }
@media (min-width: 800px) {
  .faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-items: start;
  }
  .faq h2 { grid-column: 1 / -1; }
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.lookup-body .faq details,
.home .faq details {
  margin-bottom: 0;
  box-shadow: none;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.related { margin: 8px 0 40px; }
.related h2 { font-size: 16px; }
.related ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 8px 24px; }
.related li { margin: 6px 0; break-inside: avoid; }
.related a { color: var(--text); }
.related a:hover { color: var(--accent); }

.site-foot {
  margin-top: 8px;
  background: var(--ink);
  color: #9aa3ad;
  font-size: 13px;
  padding: 32px 0 80px;
}
.foot-grid { display: grid; grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr)); gap: 20px 16px; }
.site-foot .brand { color: #fff; font-size: 15px; margin-bottom: 8px; letter-spacing: 0.08em; }
.site-foot .brand em { font-style: normal; color: var(--accent); }
.site-foot p { margin: 0; max-width: 22rem; }
.site-foot h3 {
  font-size: 11px;
  margin: 0 0 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 2px 0; }
.site-foot a {
  color: #9aa3ad;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.site-foot a:hover,
.site-foot a:focus-visible {
  color: #e8f7f9;
  text-decoration: none;
}
.foot-copy {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #2e3948;
}

.bottom-nav {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--bottom) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
  border-top: 1px solid #13404c;
}
.bottom-nav a, .bottom-nav button {
  flex: 1;
  background: none;
  border: 0;
  color: #9aa3ad;
  font-size: 11px;
  font-weight: 600;
}
.bottom-nav .active { color: var(--accent); }

.drawer { position: fixed; inset: 0; background: rgba(10, 42, 54, 0.5); z-index: 50; display: grid; align-items: end; }
.drawer[hidden] { display: none !important; }
.drawer-panel {
  background: #fff;
  max-height: 78vh;
  overflow: auto;
  padding: 12px 16px 28px;
  border-radius: 16px 12px 0 0;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-head button { background: none; border: 0; color: var(--accent); font-weight: 600; }
.drawer a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  border-bottom: 1px solid #eef0f3;
}
.drawer small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.miss { padding: 48px 0 80px; }
.miss h1 { margin: 0 0 8px; font-size: 24px; }
.miss p { color: var(--muted); }

@media (min-width: 800px) {
  .ip-panel { grid-template-columns: 1fr 1.15fr; }
  .mini-map iframe { height: 100%; min-height: 200px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .geo {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
  .geo-ip { grid-column: 1; }
  .facts { grid-column: 1; }
  .map { grid-column: 2; grid-row: 1 / span 3; }
  .map iframe { height: 100%; min-height: 360px; }
}
@media (min-width: 1100px) {
  .catalog .tools { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .desk-nav { display: flex; }
  .mobile-cta, .mobile-lang, .mobile-account, .bottom-nav { display: none; }
  .site-foot { padding-bottom: 32px; }
}
@media (min-width: 900px) and (max-width: 1040px) {
  .drop > button { padding: 0 16px 0 8px; font-size: 12px; }
  .cta { font-size: 12px; padding: 7px 10px; }
}
@media (min-width: 801px) and (max-width: 1099px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 800px) {
  .foot-grid, .grid-2, .kv { grid-template-columns: 1fr; }
  .subnet-kv { grid-template-columns: 1fr; }
  .subnet-kv dt { border-bottom: 0; padding-bottom: 2px; }
  .row { flex-direction: column; }
  .row button, .query > button { width: 100%; min-height: 44px; }
  .related ul { columns: 1; }
  .tools-head { flex-direction: column; align-items: stretch; }
  .tools-head input { margin-left: 0; width: 100%; }
  .geo-value, .ip-num { font-size: 22px; }
  .hero-band { padding: 28px 0 28px; }
  .health-item { grid-template-columns: auto 1fr; }
  .page-hero { padding-bottom: 20px; }
  .sheet, .dns-form { padding: 12px; }
  .dns-go { gap: 6px; margin-bottom: 12px; }
  .dns-go input { height: 46px; padding: 0 12px; flex: 1 1 auto; }
  .dns-go button { padding: 0 14px; min-height: 46px; font-size: 14px; }
  .go-hero button { min-width: 0; }
  .type-chips button { min-height: 36px; padding: 6px 10px; }
  .hero-stats { margin-top: 10px; }
  .hero-stats span { font-size: 12px; padding: 5px 8px; }
  .lookup-result { padding: 12px; }
  .chips.dkim-bits { grid-template-columns: 1fr; }
  .hero-example { flex-wrap: wrap; }
  .lookup-body .prose,
  .lookup-body .faq,
  .home-seo,
  .home .faq { padding: 12px; }
  .faq { grid-template-columns: 1fr; }
  .bl-page { padding: 18px 16px 28px; }
  .bl-head h1 { font-size: 24px; }
  .bl-status-row, .bl-monitor { flex-direction: column; align-items: flex-start; }
  .bl-monitor-btn, .bl-monitor form { width: 100%; }
  .bl-monitor-btn { justify-content: center; }
  .bl-cidr-form { flex-direction: column; align-items: stretch; }
}
@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-visual { padding: 28px 20px 20px; min-height: 220px; }
  .auth-globe { max-width: 240px; margin: 8px 0 8px; }
  .auth-side { padding: 24px 20px 40px; background: #fff; }
  .auth-shell .auth-card { max-width: none; }
}

.lock-ico {
  display: inline-block;
  width: 11px;
  height: 13px;
  margin-left: 6px;
  vertical-align: -1px;
  background:
    radial-gradient(circle at 50% 38%, transparent 2.5px, currentColor 3px, currentColor 4.2px, transparent 4.5px),
    linear-gradient(currentColor, currentColor) 50% 78% / 8px 7px no-repeat;
  opacity: 0.7;
}
.menu a.is-locked strong,
.tool.is-locked strong { display: inline-flex; align-items: center; gap: 0; }
.page-hero .gate-card {
  background: #fff;
  color: var(--text);
  margin-top: 8px;
}
.page-hero .gate-card .eyebrow { color: var(--accent-hover); }
.page-hero .gate-card h2 { color: var(--ink); }
.gate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  margin: 8px 0 20px;
}
.gate-card h2 { margin: 0 0 8px; font-size: 20px; }
.gate-card p { margin: 0 0 12px; color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.auth-page { padding: 32px 0 64px; }
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  max-width: 420px;
}
.auth-card h1 { margin: 0 0 8px; font-size: 26px; }
.auth-lede { margin: 0 0 16px; color: var(--muted); }
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
}
.auth-card input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.auth-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}
.auth-check input { width: auto; accent-color: var(--accent); }
.auth-card .text-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  width: auto;
}
body.is-auth { padding-bottom: 0; }
body.is-auth .site-foot,
body.is-auth .bottom-nav { display: none; }
body.is-admin { padding-bottom: 0; }
body.is-admin .site-foot,
body.is-admin .bottom-nav { display: none; }
body.is-member { padding-bottom: 0; }
body.is-member .site-foot,
body.is-member .bottom-nav { display: none; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 520px);
  min-height: calc(100vh - var(--nav));
}
.auth-visual {
  background:
    linear-gradient(180deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(165deg, #0a2a36 0%, #0e4452 58%, #0c5c66 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 40px 40px 48px;
}
.auth-visual-inner { width: min(440px, 100%); }
.auth-visual h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}
.auth-visual p { margin: 0; color: #d2e8ec; }
.auth-globe { width: 100%; max-width: 360px; height: auto; margin: 20px 0 12px; }
.auth-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.auth-pills li {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--page);
}
.auth-shell .auth-card {
  width: 100%;
  max-width: 400px;
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}
button.cta, .auth-submit {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}
.auth-switch { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.auth-meta { margin: 0 0 20px; display: grid; gap: 12px; }
.auth-meta dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.auth-meta dd { margin: 2px 0 0; font-weight: 600; }
.auth-logout {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--text);
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell { padding: 0 0 40px; }
.admin-hero {
  background:
    linear-gradient(180deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 54, 0.08) 1px, transparent 1px),
    linear-gradient(165deg, #0a2a36 0%, #0e4452 58%, #0c5c66 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: #fff;
  padding: 36px 0 28px;
  margin-bottom: 24px;
}
.admin-hero-inner h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}
.admin-hero-inner > p {
  margin: 0 0 18px;
  color: #d2e8ec;
  max-width: 62ch;
}
.admin-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 100%;
}
.admin-seg a {
  color: #d2e8ec;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
}
.admin-seg a:hover { text-decoration: none; color: #fff; }
.admin-seg a.on {
  background: #fff;
  color: var(--ink);
}
.admin-body { padding-bottom: 88px; }
.admin-body > .status { margin: 0 0 16px; }

.access-grid { display: grid; gap: 14px; }
.access-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.access-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f7fbfc, #fff);
  border-bottom: 1px solid var(--line);
}
.access-card-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.access-card-id h2 { margin: 0; font-size: 18px; }
.access-card-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.access-min-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.access-min {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.access-min select,
.access-rule select,
.inline-form select {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  min-width: 168px;
}
.access-min select:focus,
.access-rule select:focus,
.inline-form select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.access-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e6f4f6;
  display: grid;
  place-items: center;
}
.access-ico::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--ink);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.access-ico-globe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E"); }
.access-ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 7 9-7'/%3E%3C/svg%3E"); }
.access-ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E"); }
.access-ico-shield { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 3l8 3v6c0 5-3.4 8.4-8 9.8C7.4 20.4 4 16.6 4 12V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.access-ico-grid { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }

.access-tools { list-style: none; margin: 0; padding: 0; }
.access-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 200px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.access-tool:first-child { border-top: 0; }
.access-tool.is-override { background: #fbf8f0; }
.access-tool-name { min-width: 0; }
.access-tool-name a {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.access-tool-name a:hover { color: var(--accent-hover); }
.access-tool-name span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.access-rule { margin: 0; }

.lvl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lvl-guest { background: #eef2f4; color: #4a5c64; }
.lvl-member { background: #e6f4f6; color: #0b6b74; }
.lvl-pro { background: #eef3ff; color: #2b4bb3; }
.lvl-admin { background: #0a2a36; color: #fff; }
.lvl-warn { background: #fff4e5; color: #9a3412; }

.access-bar {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(10, 42, 54, 0.12);
}
.access-bar p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.access-bar .cta {
  width: auto;
  min-width: 132px;
  padding: 10px 22px;
}

.members-page { display: flex; flex-direction: column; gap: 12px; padding-bottom: 72px; }
.members-stats { margin: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-tile.is-warn { border-color: #ead7a8; background: #fffdf6; }
.members-toolbar {
  background: linear-gradient(180deg, #f7fbfc, #fff);
  border-bottom: 1px solid var(--line);
}
.members-toolbar .dt-bar {
  border: 0;
  background: transparent;
  padding: 10px 14px 6px;
}
.members-toolbar .pkg-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 14px 12px;
}
.pkg-seg button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.pkg-seg button:hover { color: var(--ink); }
.pkg-seg button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.mem-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mem-id > div { min-width: 0; }
.mem-id strong { display: block; font-size: 13px; }
.mem-id strong a { color: var(--ink); }
.mem-id span { display: block; font-size: 11px; color: var(--muted); }
.mem-ava {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e6f4f6;
  color: #0b6b74;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mem-ava-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 22px;
}
.members-table td:last-child { white-space: nowrap; }
.mem-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.btn-quiet {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-quiet:hover { text-decoration: none; background: #f4f7f8; }
.mem-assign select { min-width: 108px; }
.pending-card { border-color: #ead7a8; }
.pending-list { list-style: none; margin: 0; padding: 0; }
.pending-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.pending-row:first-child { border-top: 0; }
.mem-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: center;
  padding: 18px 20px;
}
.mem-profile-id h2 { margin: 0; font-size: 20px; }
.mem-profile-id p { margin: 2px 0 8px; color: var(--muted); }
.mem-profile-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mem-profile-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mem-profile-meta dt { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mem-profile-meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.pay-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.pay-paid, .pay-granted { background: #e6f4f6; color: #0b6b74; }
.pay-pending { background: #fff4e5; color: #9a3412; }
.pay-refunded { background: #eef2f4; color: #4a5c64; }
.members-page .bill-level button.is-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.bill-level label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.bill-level select {
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 160px;
}
.members-page .bill-form { padding: 14px 16px 16px; }
@media (max-width: 900px) {
  .members-stats, .mem-profile-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .members-stats, .mem-profile-meta { grid-template-columns: 1fr 1fr; }
  .mem-profile { grid-template-columns: 1fr; }
}
.member-list { list-style: none; margin: 0; padding: 0; }
.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.member-row:last-child { border-bottom: 0; }
.member-id strong { display: block; font-size: 14px; }
.member-id span { color: var(--muted); font-size: 12px; }
.member-row-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.inline-form { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.inline-form button {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #062228;
  cursor: pointer;
}
.inline-form button:hover { background: var(--accent-hover); }
.inline-form button.is-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.inline-form button.is-ghost:hover { background: #f4f7f8; }
.inline-form button.is-danger {
  background: #fff;
  color: var(--fail);
  border-color: #f0c7c7;
}
.inline-form button.is-danger:hover { background: #fff5f5; }
.members-card .hint { padding: 20px 18px; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.admin-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.admin-search input[type="search"] {
  width: 100%;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.admin-search input[type="search"]:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.admin-toolbar-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .access-tool,
  .member-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .access-rule { grid-column: 1; }
  .access-tool .lvl-pill { grid-column: 1; }
  .member-row-side,
  .inline-form { justify-content: stretch; }
  .inline-form select { flex: 1; min-width: 0; }
  .access-bar { flex-direction: column; align-items: stretch; bottom: 10px; }
  .access-bar .cta { width: 100%; }
  .access-min-wrap { width: 100%; justify-content: space-between; }
}

.admin-home-body {
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-home-body .stat-grid,
.admin-home-body .range-seg { margin-bottom: 0; }
.compact-head { padding: 10px 14px; }
.compact-head h2 { font-size: 15px; }
.compact-table th,
.compact-table td { padding: 7px 10px; vertical-align: top; }
.compact-table .cat-bar { margin: 6px 0 0; height: 6px; }
.compact-path { margin: 0; padding-left: 16px; }
.compact-path li { font-size: 12px; }
.visitor-table .hit-ref { display: block; max-width: 180px; }
.stat-when { font-size: 15px !important; letter-spacing: 0 !important; }
.dt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fbfc;
}
.dt-bar input[type="search"] {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 160px;
  flex: 1;
  max-width: 280px;
}
.dt-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.dt-meta { font-size: 12px; color: var(--muted); margin-left: auto; }
.dt-pager { display: flex; align-items: center; gap: 6px; }
.dt-pager button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.dt-pager button:disabled { opacity: 0.4; cursor: default; }
.dt-pager span { font-size: 12px; color: var(--muted); min-width: 3.5em; text-align: center; }
.bill-dl { padding-top: 8px; }
.bill-level { padding: 12px 18px 16px; display: flex; gap: 8px; align-items: end; }
.bill-level button {
  font: inherit;
  font-weight: 600;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  cursor: pointer;
}
.bill-form { padding-bottom: 16px; }
.bill-form .cta { grid-column: 1 / -1; width: auto; justify-self: start; }
.member-bill-stats .stat-tile strong { font-size: 16px; }
.bill-stats .dash-stat strong { font-size: 16px; }
.admin-home-body .stat-grid,
.admin-home-body .range-seg { margin-bottom: 0; }
.dash-split { margin-bottom: 0; }
.range-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 0 16px;
}
.range-seg a {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}
.range-seg a:hover { text-decoration: none; color: var(--ink); }
.range-seg a.on { background: var(--ink); color: #fff; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
}
.stat-tile span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-tile strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.cat-bars { list-style: none; margin: 0; padding: 8px 18px 16px; }
.cat-bars li { margin: 0 0 12px; }
.cat-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
}
.cat-bar-label span { color: var(--muted); }
.cat-bar {
  height: 8px;
  background: #eef2f4;
  border-radius: 999px;
  overflow: hidden;
}
.cat-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.dash-empty { padding: 16px 18px 20px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th,
.dash-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); }
.dash-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-table a { color: var(--ink); font-weight: 600; }
.settings-card .settings-fields {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
}
.settings-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.settings-fields input[type="text"],
.settings-fields input[type="email"],
.settings-fields input[type="password"],
.settings-fields input[type="number"],
.settings-fields select,
.settings-fields textarea {
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
}
.settings-fields textarea { resize: vertical; min-height: 72px; }
.settings-fields input:focus,
.settings-fields select:focus,
.settings-fields textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.settings-check { font-weight: 600; color: var(--text); }
.settings-fields-2 { grid-template-columns: 1fr 1fr; }
.settings-fields-2 .sec-note,
.settings-fields-2 .auth-check { grid-column: 1 / -1; }
.smtp-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
@media (max-width: 800px) {
  .settings-fields-2 { grid-template-columns: 1fr; }
}
.settings-form .access-card { margin-bottom: 14px; }
.maint-wrap { padding-top: 48px; padding-bottom: 48px; }
.maint-card { max-width: 560px; margin: 0 auto; padding: 28px 24px; }
.maint-card .cta { width: auto; padding: 10px 18px; }
.sec-list { margin: 0; padding: 8px 18px 18px; display: grid; gap: 14px; }
.sec-list > div { display: grid; gap: 6px; }
.sec-list dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.sec-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sec-note { font-size: 12px; font-weight: 500; color: var(--muted); }
.sec-path {
  font-size: 13px;
  background: #eef2f4;
  padding: 4px 8px;
  border-radius: 8px;
}
.dash-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hit-ref {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 500;
}
.kind-pill,
.source-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f4;
  color: var(--ink);
}
.source-pill.source-search { background: #e8eefc; color: #1d4ed8; }
.source-pill.source-direct { background: #eef2f4; }
.source-pill.source-internal { background: #f3e8fd; color: #6b21a8; }
.source-pill.source-other { background: #fff4e5; color: #9a3412; }
.stat-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-tile em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.source-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 14px;
}
.source-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.source-donut-hole {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  text-align: center;
}
.source-donut-hole strong { font-size: 22px; letter-spacing: -0.04em; }
.source-donut-hole span { font-size: 11px; color: var(--muted); font-weight: 600; }
.source-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 8px; }
.source-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.source-legend em { font-style: normal; color: var(--muted); font-size: 12px; }
.source-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}
.source-dot.source-search { background: #2563eb; }
.source-dot.source-direct { background: #64748b; }
.source-dot.source-internal { background: #7c3aed; }
.source-dot.source-other { background: #c2410c; }
.freq-wrap { padding: 10px 14px 14px; }
.split-bar {
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f4;
  margin-bottom: 14px;
}
.split-bar i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  min-width: 0;
}
.split-bar .one { background: #0e9aa8; }
.split-bar .many { background: #0a2a36; }
.freq-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.freq-stats li {
  background: #f7fbfc;
  border-radius: 12px;
  padding: 10px 12px;
}
.freq-stats span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.freq-stats strong { display: block; font-size: 20px; letter-spacing: -0.04em; }
.freq-stats em { font-style: normal; font-size: 12px; color: var(--muted); }
.tool-bars { list-style: none; margin: 0; padding: 8px 18px 16px; }
.tool-bars li { margin: 0 0 12px; }
.tool-bar i { background: #0a2a36; }
.visitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px 18px;
}
.visitor-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #f7fbfc, #fff);
}
.visitor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.visitor-ip {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.visitor-meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.visitor-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.visitor-when,
.visitor-counts { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.search-hit {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink);
}
.search-hit strong,
.search-q {
  font-weight: 700;
  color: #1d4ed8;
}
.search-miss,
.muted { color: var(--muted); font-size: 12px; }
.search-bars .search-q { font-size: 14px; }
.page-path {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  counter-reset: path;
}
.page-path li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px 8px;
  font-size: 13px;
}
.page-path li::before {
  counter-increment: path;
  content: counter(path);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  grid-row: span 2;
  margin-top: 2px;
}
.page-path a { font-weight: 600; color: var(--ink); grid-column: 2; }
.page-path span { grid-column: 2; font-size: 11px; color: var(--muted); }
.page-path .more { color: var(--muted); font-size: 12px; }
.page-path .more::before { background: #94a3b8; }
.hit-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.journey-table td { vertical-align: top; }
.journey-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.journey-steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.step-n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.journey-steps a { font-weight: 600; color: var(--ink); }
.journey-steps em { font-style: normal; color: var(--muted); font-size: 12px; }
.journey-counts { font-size: 12px; color: var(--accent); font-weight: 600; }
.kind-repeat { background: #0a2a36; color: #fff; }
.kind-once { background: #e8f7ee; color: #146c36; }

.bl-page {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 32px 40px;
  margin: 8px auto 40px;
  box-shadow: var(--shadow);
}
.bl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.bl-head h1 { margin: 0; font-size: 32px; color: var(--ink); }
.bl-info-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #8aa0a8;
  color: #8aa0a8;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.bl-status-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.bl-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  background: #fff;
  margin: 0 0 16px;
}
.bl-status-row.is-ignored { display: none; }
.bl-status-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bl-status-msg strong { font-weight: 600; }
.bl-x, .bl-ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.bl-x { background: var(--fail); }
.bl-ok { background: var(--ok); font-size: 12px; }
.bl-status-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}
.bl-ignore {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bl-ignore:hover { text-decoration: underline; }
.bl-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f3f5f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 8px;
}
.bl-monitor p { margin: 0; font-weight: 500; }
.bl-monitor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2e9e3e;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.bl-monitor-btn:hover { background: #278a35; color: #fff; text-decoration: none; }
.bl-monitor-btn.is-on {
  background: #fff;
  color: var(--fail);
  border: 1px solid #e2c4c0;
}
.bl-monitor-btn.is-disabled {
  background: #c5d0d4;
  color: #fff;
  cursor: not-allowed;
}
.bl-page .status { margin: 0 0 12px; }
.bl-price {
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.bl-price h2 { margin: 0 0 8px; font-size: 16px; }
.bl-price p { margin: 0 0 8px; }
.bl-quota { font-weight: 600; color: var(--ink); }
.bl-cidr-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.bl-cidr-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 180px;
}
.bl-cidr-form input {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.bl-cidr-form button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bl-reason { font-size: 13px; color: var(--muted); }
.bl-block { margin: 0 0 22px; }
.bl-block h2 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.bl-block p { margin: 0 0 10px; }
.bl-chevrons {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.bl-chevrons li {
  position: relative;
  padding: 0 0 10px 18px;
}
.bl-chevrons li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #e67e22;
  font-weight: 700;
  font-size: 16px;
}
.bl-official { font-size: 14px; }
.bl-back { margin: 28px 0 0; }
.auth-monitors { margin: 0 0 20px; }
.auth-monitors h2 { margin: 0 0 8px; font-size: 16px; }
.monitor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.monitor-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.monitor-list button {
  background: none;
  border: 0;
  color: var(--fail);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.member-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - var(--nav));
  background: var(--page);
}
.member-side {
  background: var(--ink);
  color: #c5d4da;
  padding: 20px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.member-who { margin: 0 8px 4px; }
.member-who strong { display: block; color: #fff; font-size: 14px; word-break: break-all; }
.member-who .lvl-pill { margin-top: 8px; }
.member-side nav { display: grid; gap: 4px; }
.member-side nav a {
  color: #c5d4da;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.member-side nav a:hover { color: #fff; text-decoration: none; background: #123744; }
.member-side nav a.on { background: var(--accent); color: #fff; }
.member-logout { margin-top: auto; }
.member-logout button {
  width: 100%;
  background: transparent;
  border: 1px solid #13404c;
  color: #c5d4da;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.member-logout button:hover { color: #fff; }
.member-main { padding: 28px 32px 48px; max-width: 1040px; }
.member-head { margin: 0 0 20px; }
.member-head h1 { margin: 0 0 6px; }
.member-head p { margin: 0; color: var(--muted); }
.member-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}
.member-card p { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.member-card strong { display: block; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.member-card span, .member-card a { font-size: 13px; }

.member-dash { max-width: 1040px; }
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 22px;
}
.dash-hero h1 { margin: 0 0 6px; font-size: 28px; }
.dash-hero p { margin: 0; color: var(--muted); }
.dash-hero-cta { flex-shrink: 0; padding: 10px 16px; font-size: 14px; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.dash-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
}
.dash-stat p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-stat strong {
  display: block;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.dash-stat strong em {
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.dash-stat-note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dash-stat a { font-size: 13px; font-weight: 600; margin-top: auto; }
.dash-stat.is-ok { border-color: #cfe8dc; }
.dash-stat.is-alert {
  border-color: #f0c9c4;
  background: #fff8f7;
}
.dash-meter {
  height: 6px;
  border-radius: 99px;
  background: #e8eef1;
  overflow: hidden;
}
.dash-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.dash-stat.is-alert .dash-meter span { background: var(--fail); }
.dash-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.dash-chip.is-ok { background: #e7f6ee; color: var(--ok); }
.dash-chip.is-bad { background: #fdecea; color: var(--fail); }
.dash-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 8px;
  margin: 0 0 20px;
  box-shadow: var(--shadow);
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 14px 12px;
}
.dash-panel-head h2 { margin: 0; font-size: 16px; }
.dash-panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.dash-panel-head a { font-weight: 600; font-size: 13px; }
.dash-empty {
  text-align: center;
  padding: 36px 20px 40px;
}
.dash-empty-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.dash-empty p { margin: 0 auto 16px; max-width: 42ch; color: var(--muted); }
.dash-mons { list-style: none; margin: 0; padding: 0; }
.dash-mon {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.7fr) minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.dash-mon.is-listed { background: #fff8f7; }
.dash-mon-id { display: grid; gap: 2px; min-width: 0; }
.dash-ip {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  background: none;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  white-space: normal;
  word-break: break-all;
}
.dash-mon-id a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  padding: 0;
}
.dash-mon-id a:hover { color: var(--accent); }
.dash-mon-id span { font-size: 12px; color: var(--muted); }
.dash-mon-status .scan-ok,
.dash-mon-status .scan-bad,
.dash-mon-status .scan-muted {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.dash-mon-status .scan-ok { background: #e7f6ee; }
.dash-mon-status .scan-bad { background: #fdecea; }
.dash-mon-status .scan-muted { background: #eef2f4; }
.dash-mon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-mon-del button,
.btn-remove {
  background: none;
  border: 0;
  color: var(--fail);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.btn-scan {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-scan:hover { background: #eef8f9; text-decoration: none; }
.btn-scan.is-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-scan.is-primary:hover { background: var(--accent-hover); color: #fff; }
.scan-now { margin: 0; }
.member-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.member-table .btn-scan { color: var(--accent); }
.member-table .btn-scan.is-primary { color: #fff; }
.member-back { margin: 0 0 8px; font-size: 13px; }
.member-back a { font-weight: 600; }
.mon-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.mon-detail-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}
.mon-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mon-detail-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.mon-result-table tr.is-listed { background: #fff8f7; }
.mon-result-table td:last-child a { font-weight: 600; font-size: 13px; }
.dash-upgrade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #eef8f9;
  border: 1px solid #c5e4e8;
  border-radius: 12px;
  padding: 20px 22px;
}
.dash-upgrade h2 { margin: 0 0 6px; font-size: 18px; }
.dash-upgrade p { margin: 0 0 10px; color: var(--text); }
.dash-upgrade ul { margin: 0; padding-left: 18px; color: var(--muted); }
.dash-upgrade .cta { flex-shrink: 0; }
.member-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px 20px;
  margin: 0 0 20px;
  box-shadow: var(--shadow);
}
.member-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.member-panel-head h2 { margin: 0; font-size: 16px; }
.member-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.member-table th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
}
.member-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.member-table td:last-child, .member-table th:last-child { text-align: right; }
.member-table button {
  background: none;
  border: 0;
  color: var(--fail);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.scan-ok { color: #0a7a5a; font-weight: 700; }
.scan-bad { color: var(--fail); }
.scan-muted { color: var(--muted); font-size: 13px; }
.scan-when { font-size: 11px; color: var(--muted); margin-top: 2px; }
.scan-lists { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.scan-lists a { color: var(--accent); }
.admin-scan-card { margin-bottom: 14px; }
.admin-scan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-scan-head .member-id { margin: 0; }
.admin-scan-actions .inline-form { justify-content: flex-start; flex-wrap: wrap; }
.scan-targets { list-style: none; margin: 0; padding: 0; }
.scan-target {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(120px, 0.7fr) minmax(0, 1.4fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.scan-target.is-listed { background: #fff8f7; }
.scan-target-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.scan-target-status { min-width: 0; }
.scan-target-lists { min-width: 0; }
.scan-target .inline-form { justify-content: flex-end; }
@media (max-width: 800px) {
  .scan-target { grid-template-columns: minmax(0, 1fr); }
  .scan-target .inline-form { justify-content: stretch; }
}
.member-add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 0 0 8px;
}
.member-add label { flex: 1; min-width: 220px; display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.member-add input, .member-form input, .member-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
}
.member-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}
.member-form h2 { margin: 0; font-size: 16px; }
.member-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.member-form .cta, .member-add .cta { width: auto; justify-self: start; }
.member-upgrade {
  background: #eef8f9;
  border: 1px solid #c5e4e8;
  border-radius: var(--r);
  padding: 18px 20px;
}
.member-upgrade h2 { margin: 0 0 8px; font-size: 18px; }
.member-upgrade ul { margin: 0 0 14px; padding-left: 18px; }
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 20px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.plan-card.is-pro { border-color: var(--accent); }
.plan-card.is-current { box-shadow: var(--shadow); }
.plan-card h2 { margin: 0 0 10px; }
.plan-card ul { margin: 0; padding-left: 18px; }

@media (max-width: 1100px) {
  .stat-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid-6 { grid-template-columns: 1fr 1fr; }
  .source-grid,
  .dash-split { grid-template-columns: 1fr; }
  .source-visual { flex-direction: column; align-items: flex-start; }
  .visitor-grid { grid-template-columns: 1fr; }
  .dash-table { font-size: 13px; }
  .dash-tools .dash-table th:nth-child(2),
  .dash-tools .dash-table td:nth-child(2) { display: none; }
  .member-shell { grid-template-columns: 1fr; }
  .member-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .member-side nav { display: flex; flex-wrap: wrap; flex: 1; }
  .member-logout { margin: 0; }
  .member-main { padding: 20px 16px 40px; }
  .member-cards, .plan-grid { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-mon {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "id actions"
      "status status"
      "lists lists";
  }
  .dash-mon-id { grid-area: id; }
  .dash-mon-status { grid-area: status; }
  .dash-mon-lists { grid-area: lists; }
  .dash-mon-actions { grid-area: actions; }
  .dash-upgrade { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .dash-stats { grid-template-columns: 1fr; }
}
