:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #2563eb;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero {
  padding: 32px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.hero__content {
  max-width: 1100px;
  margin: 0 auto;
}

.subhead {
  margin-top: 6px;
  max-width: 640px;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.topbar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 20px;
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark--logo {
  background: transparent;
  padding: 2px;
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.brand-logo--inverse {
  filter: brightness(0) invert(1);
}

.brand-name {
  font-weight: 700;
  color: var(--text);
}

.brand-tag {
  font-size: 13px;
  color: var(--muted);
}

.form {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 820px) {
  .form {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

input,
select {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.actions {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s, box-shadow 0.18s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.alert {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #ef4444;
  background: #fef2f2;
  border-radius: 10px;
  color: #b91c1c;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
}

.logo.google { background: linear-gradient(135deg, #4285f4, #34a853); }
.logo.cloudflare { background: linear-gradient(135deg, #f37321, #f8b130); }
.logo.quad9 { background: linear-gradient(135deg, #7c3aed, #9333ea); }
.logo.opendns { background: linear-gradient(135deg, #f97316, #fb923c); }
.logo.level3 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.logo.dnswatch { background: linear-gradient(135deg, #059669, #16a34a); }
.logo.cleanbrowsing { background: linear-gradient(135deg, #2563eb, #22c55e); }
.logo.yandex { background: linear-gradient(135deg, #ef4444, #dc2626); }
.logo.neustar { background: linear-gradient(135deg, #22c55e, #10b981); }

.resolver-title {
  font-weight: 700;
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #075985;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.pill-flag {
  background: #eef2ff;
  color: #312e81;
}

.pill-flag span {
  font-weight: 700;
  letter-spacing: 0.03em;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  color: #111827;
  flex: 1;
}

.placeholder {
  text-align: center;
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f9fafb;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 18px;
  color: var(--muted);
}

.loading[hidden] {
  display: none !important;
}

.footer-panel .brand-name {
  color: var(--text);
}

.footer-panel .brand-mark {
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #dbeafe;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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