:root {
  --brand-ink: #172033;
  --brand-muted: #667085;
  --brand-blue: #275dff;
  --brand-blue-dark: #1744c8;
  --brand-teal: #12a594;
  --brand-amber: #d99021;
  --brand-rose: #d94d5c;
  --surface-page: #f5f7fb;
  --surface-card: #ffffff;
  --surface-soft: #eef2f7;
  --line-soft: #d9e0ea;
  --shadow-soft: 0 16px 38px rgba(23, 32, 51, .08);
  --shadow-tight: 0 8px 20px rgba(23, 32, 51, .08);
}

html {
  min-height: 100%;
  position: relative;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--brand-ink);
  background: var(--surface-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--brand-blue);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--brand-blue-dark);
}

.app-main h1:not(.page-title),
.app-main h2:not(.accordion-header),
.app-main h3 {
  color: var(--brand-ink);
  font-weight: 760;
  letter-spacing: 0;
}

.app-main h1:not(.page-title) {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.app-main h2:not(.accordion-header) {
  font-size: 1.45rem;
}

.app-shell,
.marketing-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-main {
  width: 100%;
  flex: 1 0 auto;
  padding: 1.5rem .9rem 2rem;
}

.app-main > :where(.row, .card, .table-responsive, .alert, form, h1, h2, h3, p, .page-shell, .container, .container-fluid) {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-shell {
  background: #f7f9fc;
}

.app-header,
.marketing-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(217, 224, 234, .85);
  box-shadow: 0 8px 26px rgba(23, 32, 51, .05);
  backdrop-filter: blur(18px);
}

.app-navbar {
  min-height: 70px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--brand-ink);
  font-weight: 750;
  letter-spacing: 0;
}

.app-brand img {
  border-radius: 8px;
}

.app-brand:hover,
.app-brand:focus {
  color: var(--brand-ink);
}

.app-nav {
  gap: .25rem;
}

.app-nav .nav-link,
.marketing-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 8px;
  color: #3b4658;
  font-weight: 650;
  padding: .55rem .75rem;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus,
.marketing-header .nav-link:hover,
.marketing-header .nav-link:focus {
  background: var(--surface-soft);
  color: var(--brand-blue-dark);
}

.app-nav .nav-link.active {
  background: #e9efff;
  color: var(--brand-blue-dark);
}

.dropdown-menu {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-tight);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-radius: 6px;
  color: #384254;
}

.dropdown-menu .dropdown-item {
  margin: .1rem .35rem;
  width: calc(100% - .7rem);
}

.dropdown-item:active {
  background: var(--brand-blue);
}

.org-switcher,
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-ink);
  font-weight: 650;
  padding: .35rem .55rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.org-switcher:hover,
.org-switcher:focus,
.user-menu-toggle:hover,
.user-menu-toggle:focus {
  border-color: #b8c5d8;
  color: var(--brand-blue-dark);
}

.org-switcher-label {
  display: block;
  color: var(--brand-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.org-switcher-name {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #172033;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}

.user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell {
  width: 100%;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-eyebrow {
  color: var(--brand-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--brand-ink);
  font-size: 2rem;
  font-weight: 760;
  line-height: 1.08;
}

.page-subtitle {
  max-width: 760px;
  margin: .45rem 0 0;
  color: var(--brand-muted);
  font-size: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.15rem;
}

.metric-card {
  min-height: 112px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.metric-label {
  color: var(--brand-muted);
  font-size: .8rem;
  font-weight: 750;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: .4rem;
  color: var(--brand-ink);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.metric-hint {
  margin-top: .35rem;
  color: #667085;
  font-size: .88rem;
}

.metric-card.is-teal {
  border-top: 4px solid var(--brand-teal);
}

.metric-card.is-blue {
  border-top: 4px solid var(--brand-blue);
}

.metric-card.is-amber {
  border-top: 4px solid var(--brand-amber);
}

.metric-card.is-rose {
  border-top: 4px solid var(--brand-rose);
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-card);
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.card-header {
  border-bottom: 1px solid var(--line-soft);
  border-radius: 8px 8px 0 0 !important;
  background: #fff;
  color: var(--brand-ink);
  font-weight: 760;
  padding: .95rem 1.1rem;
}

.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-warning,
.card-header.bg-info {
  background: #fff !important;
  color: var(--brand-ink) !important;
}

.card-body {
  padding: 1.1rem;
}

.table-responsive {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.card .table-responsive {
  border: 0;
  box-shadow: none;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: #f2f5fa;
  margin-bottom: 0;
  color: #263145;
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  padding: .78rem .8rem;
}

.table thead th,
.table tbody > tr:first-child > th {
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
  color: #475467;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody tr {
  border-color: #e7ecf3;
}

.table tfoot td,
.table tfoot th {
  border-top: 1px solid var(--line-soft);
  background: #f8fafc;
  font-weight: 760;
}

.table-success {
  --bs-table-bg: #eefaf4;
  --bs-table-border-color: #d7f0e4;
}

.table-danger {
  --bs-table-bg: #fff0f1;
  --bs-table-border-color: #f7d4d8;
}

.table-warning {
  --bs-table-bg: #fff8e8;
  --bs-table-border-color: #f5e3bd;
}

.table-secondary {
  --bs-table-bg: #f2f5f9;
}

.btn {
  --bs-btn-border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 38px;
  font-weight: 720;
  letter-spacing: 0;
}

.btn-sm {
  min-height: 32px;
}

.btn-lg {
  min-height: 48px;
}

.btn-primary {
  --bs-btn-bg: var(--brand-blue);
  --bs-btn-border-color: var(--brand-blue);
  --bs-btn-hover-bg: var(--brand-blue-dark);
  --bs-btn-hover-border-color: var(--brand-blue-dark);
  --bs-btn-active-bg: #113799;
  --bs-btn-active-border-color: #113799;
}

.btn-success {
  --bs-btn-bg: #11856f;
  --bs-btn-border-color: #11856f;
  --bs-btn-hover-bg: #0b6f5e;
  --bs-btn-hover-border-color: #0b6f5e;
}

.btn-warning {
  --bs-btn-color: #33250b;
  --bs-btn-bg: #f1b844;
  --bs-btn-border-color: #f1b844;
  --bs-btn-hover-color: #241800;
  --bs-btn-hover-bg: #dda125;
  --bs-btn-hover-border-color: #dda125;
}

.btn-danger {
  --bs-btn-bg: #d94d5c;
  --bs-btn-border-color: #d94d5c;
  --bs-btn-hover-bg: #bd3343;
  --bs-btn-hover-border-color: #bd3343;
}

.btn-default {
  --bs-btn-color: var(--brand-ink);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--line-soft);
  --bs-btn-hover-bg: var(--surface-soft);
  --bs-btn-hover-border-color: #b8c5d8;
}

.btn-check:checked + .btn-default {
  border-color: var(--brand-blue);
  background: #e9efff;
  color: var(--brand-blue-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #85a5ff;
  box-shadow: 0 0 0 .22rem rgba(39, 93, 255, .18);
}

.badge {
  border-radius: 6px;
  font-weight: 750;
  letter-spacing: 0;
}

.text-bg-info,
.bg-info {
  background-color: #d9f3ff !important;
  color: #12536b !important;
}

.text-bg-success,
.bg-success {
  background-color: #dbf5e9 !important;
  color: #126143 !important;
}

.text-bg-warning,
.bg-warning {
  background-color: #fff1cc !important;
  color: #775314 !important;
}

.text-bg-danger,
.bg-danger {
  background-color: #ffe1e5 !important;
  color: #9a2533 !important;
}

.form-control,
.form-select {
  min-height: 42px;
  border-color: #cfd8e6;
  border-radius: 8px;
}

.form-label {
  color: #344054;
  font-weight: 740;
}

.form-text,
.text-muted,
.text-body-secondary {
  color: var(--brand-muted) !important;
}

.validation-summary-errors,
.field-validation-error,
.text-danger {
  color: #bd3343 !important;
}

.alert {
  border-radius: 8px;
  border-width: 1px;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.alert-success {
  --bs-alert-bg: #ecfdf5;
  --bs-alert-border-color: #b8ead2;
  --bs-alert-color: #155c43;
}

.alert-danger {
  --bs-alert-bg: #fff1f2;
  --bs-alert-border-color: #f4c6cd;
  --bs-alert-color: #9a2533;
}

.alert-secondary {
  --bs-alert-bg: #f4f7fb;
  --bs-alert-border-color: var(--line-soft);
  --bs-alert-color: #475467;
}

.dns-record,
code {
  color: #263145;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  word-break: break-word;
}

.dns-record {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #f8fafc;
  padding: .28rem .45rem;
}

.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.table .action-stack {
  align-items: center;
  gap: .35rem;
  min-width: 190px;
}

.table .action-stack .btn {
  min-height: 30px;
  border-radius: 6px;
  box-shadow: none;
  font-size: .78rem;
  line-height: 1;
  padding: .36rem .55rem;
}

.table .action-stack .btn-primary,
.table .action-stack .btn-success,
.table .action-stack .btn-warning,
.table .action-stack .btn-secondary {
  border-color: #cfd8e6;
  background: #fff;
  color: #344054;
}

.table .action-stack .btn-primary {
  border-color: #9db2ff;
  background: #eef3ff;
  color: #1744c8;
}

.table .action-stack .btn-primary:hover,
.table .action-stack .btn-primary:focus {
  border-color: #7893ff;
  background: #e2e9ff;
  color: #113799;
}

.table .action-stack .btn-success:hover,
.table .action-stack .btn-success:focus,
.table .action-stack .btn-warning:hover,
.table .action-stack .btn-warning:focus,
.table .action-stack .btn-secondary:hover,
.table .action-stack .btn-secondary:focus {
  border-color: #aebbd0;
  background: #f4f7fb;
  color: #172033;
}

.table .action-stack .btn-danger,
.table .action-stack .btn-outline-danger {
  border-color: #e8a6ae;
  background: #fff;
  color: #b42332;
}

.table .action-stack .btn-danger:hover,
.table .action-stack .btn-danger:focus,
.table .action-stack .btn-outline-danger:hover,
.table .action-stack .btn-outline-danger:focus {
  border-color: #d94d5c;
  background: #fff1f2;
  color: #9a2533;
}

.summary-metric {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: .85rem;
  background: #fff;
}

.summary-dashboard {
  display: grid;
  gap: 1rem;
}

.summary-hero,
.summary-record-panel,
.summary-filter-panel,
.source-panel,
.server-detail-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.summary-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-left: 4px solid var(--brand-blue);
  padding: 1.2rem;
}

.summary-hero-copy {
  min-width: 0;
}

.summary-hero-actions,
.summary-hero-tags,
.summary-filter-actions,
.summary-source-tabs,
.source-status-list,
.policy-pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.summary-hero-actions {
  justify-content: flex-end;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 32px;
  border: 1px solid #d4ddea;
  border-radius: 999px;
  background: #f8fafc;
  color: #42526a;
  font-size: .84rem;
  font-weight: 760;
  padding: .28rem .65rem;
}

.status-chip.is-good {
  border-color: #abe5cb;
  background: #ecfdf5;
  color: #126143;
}

.status-chip.is-risk {
  border-color: #f1b8c0;
  background: #fff1f2;
  color: #9a2533;
}

.status-chip.is-watch {
  border-color: #f1d493;
  background: #fff8e8;
  color: #775314;
}

.summary-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.summary-kpi {
  min-height: 136px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.summary-kpi.is-blue {
  border-top: 4px solid var(--brand-blue);
}

.summary-kpi.is-teal {
  border-top: 4px solid var(--brand-teal);
}

.summary-kpi.is-rose {
  border-top: 4px solid var(--brand-rose);
}

.summary-kpi.is-amber {
  border-top: 4px solid var(--brand-amber);
}

.summary-kpi-label,
.summary-section-kicker,
.summary-panel-heading span,
.summary-policy-grid span,
.record-outcome-grid span {
  color: var(--brand-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summary-kpi strong {
  display: block;
  margin-top: .35rem;
  color: var(--brand-ink);
  font-size: 1.9rem;
  font-weight: 820;
  line-height: 1;
}

.summary-kpi-hint {
  display: block;
  margin-top: .48rem;
  color: var(--brand-muted);
  font-size: .88rem;
  line-height: 1.35;
}

.summary-record-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr);
  gap: 1rem;
  padding: 1rem;
}

.summary-panel-heading h2 {
  margin: .2rem 0 0;
  color: var(--brand-ink);
  font-size: 1.25rem;
  font-weight: 780;
  line-height: 1.2;
}

.dmarc-record-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .85rem;
}

.dmarc-record-line code {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #d4ddea;
  border-radius: 8px;
  background: #f8fafc;
  padding: .65rem .75rem;
}

.summary-alert-list {
  display: grid;
  gap: .45rem;
  margin-top: .8rem;
}

.summary-alert-list span {
  display: flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid #f1b8c0;
  border-radius: 8px;
  background: #fff1f2;
  color: #9a2533;
  font-weight: 700;
  padding: .55rem .65rem;
}

.summary-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.summary-policy-grid div,
.record-outcome-grid div {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: .7rem;
}

.summary-policy-grid strong,
.record-outcome-grid strong {
  display: block;
  margin-top: .18rem;
  color: var(--brand-ink);
  font-size: 1rem;
  font-weight: 800;
}

.summary-filter-panel {
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.summary-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: .7rem;
}

.summary-source-tabs {
  align-items: center;
}

.summary-source-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 760;
  padding: .45rem .8rem;
  text-decoration: none;
}

.summary-source-tab:hover,
.summary-source-tab:focus {
  border-color: #b8c5d8;
  background: #f4f7fb;
  color: var(--brand-blue-dark);
}

.summary-source-tab.active {
  border-color: #9db2ff;
  background: #eef3ff;
  color: var(--brand-blue-dark);
}

.summary-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  color: var(--brand-muted);
  font-size: .9rem;
  font-weight: 720;
}

.server-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.server-detail-card {
  padding: 1rem;
}

.summary-definition-list {
  display: grid;
  gap: .55rem;
  margin: .85rem 0 0;
}

.summary-definition-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: .7rem;
  border-top: 1px solid #edf1f6;
  padding-top: .55rem;
}

.summary-definition-list dt {
  color: var(--brand-muted);
  font-weight: 760;
}

.summary-definition-list dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.server-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .85rem;
}

.server-outcome-grid span {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  padding: .7rem;
}

.server-outcome-grid strong {
  display: block;
  color: var(--brand-ink);
  font-size: 1.15rem;
}

.source-panel {
  overflow: hidden;
}

.source-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem;
}

.source-panel-count {
  flex: 0 0 auto;
  border: 1px solid #d4ddea;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-size: .84rem;
  font-weight: 780;
  padding: .28rem .68rem;
}

.summary-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.summary-source-table {
  min-width: 980px;
  table-layout: fixed;
}

.summary-source-table th:nth-child(1),
.summary-source-table td:nth-child(1) {
  width: 24%;
}

.summary-source-table th:nth-child(2),
.summary-source-table td:nth-child(2) {
  width: 10%;
}

.summary-source-table th:nth-child(3),
.summary-source-table td:nth-child(3) {
  width: 26%;
}

.summary-source-table th:nth-child(4),
.summary-source-table td:nth-child(4) {
  width: 16%;
}

.summary-source-table th:nth-child(5),
.summary-source-table td:nth-child(5) {
  width: 14%;
}

.summary-source-table th:nth-child(6),
.summary-source-table td:nth-child(6) {
  width: 10%;
}

.summary-source-table tbody tr > td:first-child {
  border-left: 4px solid transparent;
}

.summary-source-table tbody tr.is-good > td:first-child {
  border-left-color: var(--brand-teal);
}

.summary-source-table tbody tr.is-watch > td:first-child {
  border-left-color: var(--brand-amber);
}

.summary-source-table tbody tr.is-risk > td:first-child {
  border-left-color: var(--brand-rose);
}

.source-identity-cell {
  min-width: 260px;
}

.source-name {
  display: inline-flex;
  align-items: center;
  color: var(--brand-blue-dark);
  font-size: .98rem;
  font-weight: 800;
  text-decoration: none;
}

.source-name:visited {
  color: var(--brand-blue-dark);
}

.source-name:hover,
.source-name:focus {
  color: #113799;
  text-decoration: underline;
}

.source-meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .2rem;
  color: var(--brand-muted);
  font-size: .86rem;
}

.country-code-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05rem;
  min-height: 1.35rem;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #eef3ff;
  color: #344054;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  padding: .1rem .35rem;
  text-transform: uppercase;
}

.summary-number {
  color: var(--brand-ink);
  font-size: 1.05rem;
  font-weight: 820;
}

.policy-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 780;
  padding: .22rem .55rem;
}

.policy-pill.is-monitor {
  background: #e4f7ef;
  color: #126143;
}

.policy-pill.is-quarantine {
  background: #fff1cc;
  color: #775314;
}

.policy-pill.is-reject {
  background: #ffe1e5;
  color: #9a2533;
}

.source-health {
  display: grid;
  gap: .4rem;
  min-width: 170px;
}

.source-health strong {
  color: var(--brand-ink);
  font-size: 1.05rem;
  font-weight: 820;
}

.source-health span {
  display: block;
  color: var(--brand-muted);
  font-size: .82rem;
}

.compliance-meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecf3;
}

.compliance-meter span {
  display: block;
  width: var(--meter-value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-teal), #33b7cf);
}

.auth-mini-grid {
  display: grid;
  gap: .35rem;
  min-width: 150px;
}

.auth-mini-grid span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: .84rem;
  padding: .45rem .55rem;
}

.source-status-list {
  align-items: center;
}

.auth-mini-grid strong {
  color: var(--brand-ink);
}

.source-record-list {
  display: grid;
  gap: .85rem;
  padding: 1rem;
}

.source-record-card {
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--brand-amber);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.source-record-card.is-good {
  border-left-color: var(--brand-teal);
}

.source-record-card.is-risk {
  border-left-color: var(--brand-rose);
}

.source-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.source-record-head h3 {
  margin: .2rem 0 0;
  color: var(--brand-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.record-volume {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e9efff;
  color: var(--brand-blue-dark);
  font-weight: 800;
  padding: .35rem .68rem;
}

.record-outcome-grid,
.record-detail-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .85rem;
}

.record-outcome-grid p {
  margin: .25rem 0 0;
  color: var(--brand-muted);
  font-size: .86rem;
}

.record-detail-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-detail-columns > div {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  padding: .75rem;
}

.record-detail-columns h4,
.summary-reason-list h4 {
  margin: 0 0 .55rem;
  color: #344054;
  font-size: .9rem;
  font-weight: 800;
}

.summary-detail-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-detail-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  color: #475467;
  font-size: .86rem;
}

.summary-detail-list strong {
  color: var(--brand-ink);
}

.summary-reason-list {
  display: grid;
  gap: .4rem;
  margin-top: .85rem;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: .75rem;
}

.summary-reason-list span {
  color: #475467;
}

.summary-help-panel {
  margin-top: .25rem;
}

.summary-help-panel > .row {
  margin-left: 0;
  margin-right: 0;
}

.summary-help-panel > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.settings-dashboard {
  display: grid;
  gap: 1rem;
}

.settings-hero,
.settings-dns-card,
.settings-record-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.settings-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-left: 4px solid var(--brand-blue);
  padding: 1.2rem;
}

.settings-hero-tags,
.settings-hero-actions,
.settings-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.settings-hero-actions {
  justify-content: flex-end;
}

.settings-status-grid,
.settings-dns-grid {
  display: grid;
  gap: .85rem;
}

.settings-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-dns-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-status-card {
  min-height: 132px;
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--brand-amber);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.settings-status-card.is-good {
  border-top-color: var(--brand-teal);
}

.settings-status-card.is-risk {
  border-top-color: var(--brand-rose);
}

.settings-status-card span,
.dns-record-details dt {
  color: var(--brand-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-status-card strong {
  display: block;
  margin-top: .28rem;
  color: var(--brand-ink);
  font-size: 1.35rem;
  font-weight: 820;
}

.settings-status-card p,
.settings-dns-card p {
  margin: .45rem 0 0;
  color: var(--brand-muted);
}

.settings-dns-card,
.settings-record-panel {
  padding: 1rem;
}

.settings-card-header {
  align-items: flex-start;
  justify-content: space-between;
}

.settings-card-header h2 {
  margin: .2rem 0 0;
  color: var(--brand-ink);
  font-size: 1.25rem;
  font-weight: 780;
  line-height: 1.2;
}

.settings-dns-card {
  border-left: 4px solid var(--brand-rose);
}

.settings-dns-card.is-good {
  border-left-color: var(--brand-teal);
}

.dns-record-details {
  display: grid;
  gap: .65rem;
  margin: .95rem 0;
}

.dns-record-details div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: .75rem;
  border-top: 1px solid #edf1f6;
  padding-top: .65rem;
}

.dns-record-details dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  margin: 0;
}

.dns-record-details .dns-record {
  flex: 1 1 320px;
}

.published-record-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .95rem;
}

.published-record-line code {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #d4ddea;
  border-radius: 8px;
  background: #f8fafc;
  padding: .65rem .75rem;
}

.settings-empty-record {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .95rem;
  border: 1px dashed #e8a6ae;
  border-radius: 8px;
  background: #fff1f2;
  color: #9a2533;
  padding: .9rem;
}

.settings-empty-record i {
  font-size: 1.45rem;
}

.settings-empty-record strong,
.settings-empty-record span {
  display: block;
}

.settings-empty-record span {
  color: #9a2533;
  font-size: .9rem;
}

.settings-error-list {
  display: grid;
  gap: .45rem;
  margin-top: .85rem;
}

.settings-error-list span {
  display: flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid #f1b8c0;
  border-radius: 8px;
  background: #fff1f2;
  color: #9a2533;
  font-weight: 700;
  padding: .55rem .65rem;
}

.settings-tag-table-wrap {
  margin-top: 1rem;
}

.settings-tag-table {
  min-width: 880px;
}

.settings-tag-table code {
  display: inline-block;
  max-width: 360px;
}

.settings-help-panel {
  margin-top: .25rem;
}

.settings-help-panel > .row {
  margin-left: 0;
  margin-right: 0;
}

.settings-help-panel > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.section-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.section-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 1px solid var(--line-soft);
  padding: .95rem 1.1rem;
}

.section-card-header h2,
.section-card-header h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1.15rem;
  font-weight: 780;
}

.section-card-body {
  padding: 1.1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.detail-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item {
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: .75rem;
}

.detail-item span {
  display: block;
  color: var(--brand-muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  margin-top: .2rem;
  color: var(--brand-ink);
  font-weight: 800;
  word-break: break-word;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #f1b8c0;
  border-radius: 999px;
  background: #fff1f2;
  color: #9a2533;
  font-size: .78rem;
  font-weight: 800;
  padding: .24rem .58rem;
}

.form-shell {
  width: min(100%, 920px);
}

.form-shell.is-narrow {
  width: min(100%, 680px);
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.check-panel {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 72px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: .8rem;
}

.check-panel .form-check-input {
  margin-top: .22rem;
}

.check-panel label {
  color: var(--brand-ink);
  font-weight: 760;
}

.check-panel span {
  display: block;
  color: var(--brand-muted);
  font-size: .88rem;
}

.inline-chip-list,
.plain-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-stack-list {
  display: grid;
  gap: .35rem;
}

.inline-chip-list li,
.plain-stack-list li {
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  background: #f8fafc;
  color: #475467;
  font-size: .84rem;
  font-weight: 700;
  padding: .28rem .5rem;
  word-break: break-word;
}

.id-pill {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #d4ddea;
  border-radius: 6px;
  background: #f8fafc;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
  padding: .22rem .42rem;
  word-break: break-all;
}

.table-compact {
  font-size: .9rem;
}

.table-compact .btn {
  white-space: nowrap;
}

.table-note {
  color: var(--brand-muted);
  font-size: .86rem;
}

.log-message {
  max-width: 560px;
  color: #344054;
  line-height: 1.4;
  word-break: break-word;
}

.log-exception {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  border: 1px solid #f1b8c0;
  border-radius: 8px;
  background: #fff8f9;
  color: #7a2030;
  font-size: .82rem;
  padding: .75rem;
  white-space: pre-wrap;
}

.pagination-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.pagination {
  margin-bottom: 0;
}

.page-link {
  border-color: var(--line-soft);
  color: var(--brand-blue-dark);
  font-weight: 720;
}

.page-item.active .page-link {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.settings-form-grid .span-3 {
  grid-column: 1 / -1;
}

.empty-state {
  border: 1px dashed #b8c5d8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 2rem;
  text-align: center;
}

.copy-button.copied {
  border-color: #11856f;
  background: #ecfdf5;
  color: #126143;
}

.database-overview {
  display: grid;
  gap: 1.05rem;
}

.database-page-header {
  align-items: flex-start;
}

.database-header-actions,
.database-jumpbar,
.schema-pill-row,
.schema-table-meta,
.schema-table-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.database-header-actions {
  justify-content: flex-end;
}

.schema-chip,
.schema-count,
.schema-note {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 32px;
  border: 1px solid #d4ddea;
  border-radius: 999px;
  background: #f8fafc;
  color: #42526a;
  font-size: .84rem;
  font-weight: 760;
  padding: .28rem .68rem;
}

.database-warning ul {
  margin: .45rem 0 0;
  padding-left: 1.1rem;
}

.database-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
}

.database-metric-grid .metric-value {
  font-size: 1.55rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.database-jumpbar {
  position: sticky;
  top: 86px;
  z-index: 5;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  padding: .55rem;
  box-shadow: 0 10px 24px rgba(23, 32, 51, .06);
  backdrop-filter: blur(14px);
}

.database-jumpbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: .88rem;
  font-weight: 760;
  padding: .34rem .65rem;
  text-decoration: none;
}

.database-jumpbar a:hover,
.database-jumpbar a:focus {
  border-color: #cfd8e6;
  background: #f4f7fb;
  color: var(--brand-blue-dark);
}

.database-context-grid,
.schema-table-split,
.schema-migration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem;
}

.detail-item.span-2 {
  grid-column: 1 / -1;
}

.schema-section {
  scroll-margin-top: 144px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.schema-section-header,
.schema-table-card-header,
.schema-subsection-title,
.schema-stack-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.schema-section-header {
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 1.1rem;
}

.schema-section-header h2 {
  margin: .15rem 0 0;
  color: var(--brand-ink);
  font-size: 1.24rem;
  font-weight: 800;
}

.schema-table-summary {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.schema-table-summary .table {
  min-width: 1060px;
}

.schema-table-link {
  display: grid;
  gap: .12rem;
  color: var(--brand-ink);
  text-decoration: none;
}

.schema-table-link span,
.schema-table-name span,
.schema-inline-note,
.schema-stack-head span,
.schema-facts-grid span,
.schema-subsection-title span {
  color: var(--brand-muted);
  font-size: .8rem;
  font-weight: 720;
}

.schema-table-link:hover strong,
.schema-table-link:focus strong {
  color: var(--brand-blue-dark);
}

.schema-table-list {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.schema-table-card {
  scroll-margin-top: 144px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.schema-table-card-header {
  align-items: center;
  border-left: 4px solid var(--brand-blue);
  border-bottom: 1px solid #e7ecf3;
  background: #fbfcfe;
  padding: 1rem;
}

.schema-table-name {
  display: grid;
  gap: .1rem;
}

.schema-table-name strong {
  color: var(--brand-ink);
  font-size: 1.2rem;
  font-weight: 820;
}

.schema-table-meta {
  margin-top: .45rem;
}

.schema-table-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #536174;
  font-size: .85rem;
  font-weight: 700;
}

.schema-table-stats {
  justify-content: flex-end;
}

.schema-table-stats span {
  min-width: 92px;
  border: 1px solid #d4ddea;
  border-radius: 8px;
  background: #fff;
  color: #536174;
  font-size: .8rem;
  font-weight: 720;
  padding: .45rem .55rem;
  text-align: right;
}

.schema-table-stats strong {
  display: block;
  color: var(--brand-ink);
  font-size: 1rem;
  font-weight: 820;
}

.schema-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  border-bottom: 1px solid #e7ecf3;
  padding: .9rem 1rem;
}

.schema-facts-grid div {
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: .65rem;
}

.schema-facts-grid strong {
  display: block;
  margin-top: .16rem;
  color: var(--brand-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.schema-subsection {
  display: grid;
  gap: .65rem;
  padding: 1rem;
}

.schema-subsection + .schema-subsection,
.schema-table-split + .schema-subsection {
  border-top: 1px solid #e7ecf3;
}

.schema-table-split {
  border-top: 1px solid #e7ecf3;
}

.schema-table-split .schema-subsection + .schema-subsection {
  border-top: 0;
  border-left: 1px solid #e7ecf3;
}

.schema-subsection-title {
  align-items: center;
}

.schema-subsection-title h3 {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1rem;
  font-weight: 800;
}

.schema-detail-table-wrap {
  border-radius: 8px;
}

.schema-columns-table {
  min-width: 1120px;
}

.schema-index-table {
  min-width: 1180px;
}

.schema-inline-note {
  display: block;
  margin-top: .18rem;
  line-height: 1.35;
}

.schema-pill-row {
  align-items: center;
}

.schema-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #d4ddea;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
  padding: .18rem .48rem;
  white-space: nowrap;
}

.schema-status-pill.is-required,
.schema-status-pill.is-index {
  border-color: #abe5cb;
  background: #ecfdf5;
  color: #126143;
}

.schema-status-pill.is-key {
  border-color: #9db2ff;
  background: #eef3ff;
  color: #1744c8;
}

.schema-status-pill.is-fk {
  border-color: #f1d493;
  background: #fff8e8;
  color: #775314;
}

.schema-stack-list {
  display: grid;
  gap: .65rem;
}

.schema-stack-item {
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  padding: .75rem;
}

.schema-stack-head {
  align-items: center;
  margin-bottom: .45rem;
}

.schema-stack-head strong {
  min-width: 0;
  color: var(--brand-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.schema-sql {
  display: block;
  max-height: 122px;
  overflow: auto;
  margin-top: .5rem;
  border: 1px solid #d4ddea;
  border-radius: 8px;
  background: #f8fafc;
  padding: .55rem;
  white-space: pre-wrap;
}

.schema-relation-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.schema-empty {
  border: 1px dashed #c9d3e2;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--brand-muted);
  font-weight: 700;
  padding: .85rem;
}

.schema-migration-grid {
  padding: 1rem;
}

.schema-migration-panel {
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.schema-migration-list {
  display: grid;
  gap: .35rem;
  max-height: 360px;
  overflow: auto;
  margin: .75rem 0 0;
  padding-left: 1.2rem;
}

.schema-migration-list li {
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .86rem;
  word-break: break-word;
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 1rem 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--brand-ink);
  font-weight: 760;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.footer-nav a {
  border-radius: 8px;
  color: #4f5c6f;
  font-size: .9rem;
  font-weight: 700;
  padding: .4rem .65rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--surface-soft);
  color: var(--brand-blue-dark);
}

.marketing-hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111827 url("/images/hero-dmarc-dashboard.png") center right / cover no-repeat;
  color: #fff;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 23, .92) 0%, rgba(8, 13, 23, .78) 38%, rgba(8, 13, 23, .24) 78%),
    linear-gradient(0deg, rgba(8, 13, 23, .2), rgba(8, 13, 23, .08));
}

.marketing-hero .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 680px;
  padding: 5.25rem 0 6rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #dce7ff;
  font-size: .83rem;
  font-weight: 800;
  padding: .42rem .75rem;
}

.hero-title {
  margin: 1rem 0 .9rem;
  color: #fff;
  font-size: 3.6rem;
  font-weight: 820;
  line-height: .98;
}

.hero-lede {
  max-width: 620px;
  color: #d8e2ef;
  font-size: 1.16rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.55rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 690px;
  margin-top: 2rem;
}

.hero-proof-item {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: .85rem;
}

.hero-proof-item strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
}

.hero-proof-item span {
  display: block;
  margin-top: .18rem;
  color: #cbd8ea;
  font-size: .88rem;
}

.marketing-section {
  padding: 4.25rem 0;
}

.marketing-section.alt {
  background: #fff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  color: var(--brand-ink);
  font-size: 2rem;
  font-weight: 780;
}

.section-heading p {
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.feature-card,
.workflow-step,
.auth-panel {
  height: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e9efff;
  color: var(--brand-blue-dark);
  font-size: 1.25rem;
}

.feature-card h3,
.workflow-step h3,
.auth-panel h1,
.auth-panel h2 {
  color: var(--brand-ink);
  font-weight: 760;
}

.auth-wrap {
  width: min(100%, 560px);
  margin: 3rem auto;
}

.auth-panel {
  box-shadow: var(--shadow-tight);
}

.auth-panel h1 {
  font-size: 1.8rem;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin: 1.25rem 0 1.5rem;
}

.step-indicator .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-muted);
  font-weight: 800;
}

.step-indicator .step.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.step-indicator .step.completed {
  border-color: #11856f;
  background: #11856f;
  color: #fff;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1rem;
}

.record-table td,
.record-table th {
  vertical-align: top;
}

.soft-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: .8rem;
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.15rem;
  border: 1px solid #cfd8e6;
  border-radius: 3px;
  background: linear-gradient(135deg, #f8fafc 0%, #e3e9f2 100%);
  vertical-align: -.15rem;
}

@media (min-width: 992px) {
  .app-main {
    padding: 2rem 1.5rem 2.5rem;
  }
}

@media (max-width: 1199.98px) {
  .metric-grid,
  .summary-metric-grid,
  .database-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-layout,
  .summary-record-panel,
  .server-detail-grid,
  .settings-dns-grid,
  .database-context-grid,
  .schema-table-split,
  .schema-migration-grid {
    grid-template-columns: 1fr;
  }

  .schema-table-split .schema-subsection + .schema-subsection {
    border-top: 1px solid #e7ecf3;
    border-left: 0;
  }

  .record-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-detail-columns {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .settings-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: .75rem 0;
  }

  .navbar-nav.align-items-lg-center {
    align-items: stretch !important;
  }

  .org-switcher,
  .user-menu-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .table-responsive > .table {
    min-width: 820px;
  }

  .summary-filter-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .detail-grid,
  .detail-grid.is-two,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-form-grid .span-3 {
    grid-column: auto;
  }

  .settings-status-grid {
    grid-template-columns: 1fr;
  }

  .dmarc-record-line,
  .published-record-line {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-source-table {
    min-width: 940px;
  }

  .database-jumpbar {
    position: static;
  }

  .database-header-actions {
    justify-content: flex-start;
  }

  .schema-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .page-title {
    font-size: 1.65rem;
  }

  .metric-grid,
  .database-metric-grid,
  .summary-metric-grid,
  .summary-policy-grid,
  .record-outcome-grid,
  .server-outcome-grid,
  .schema-facts-grid {
    grid-template-columns: 1fr;
  }

  .summary-hero,
  .settings-hero,
  .source-panel-header,
  .source-record-head,
  .schema-section-header,
  .schema-table-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-hero-actions,
  .settings-hero-actions,
  .summary-source-tabs,
  .summary-source-tab,
  .source-panel-count {
    width: 100%;
  }

  .summary-hero-actions .btn,
  .settings-hero-actions .btn,
  .summary-source-tab {
    justify-content: center;
  }

  .summary-definition-list div,
  .dns-record-details div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .database-jumpbar a,
  .schema-chip,
  .schema-count,
  .schema-note {
    width: 100%;
  }

  .database-jumpbar a,
  .schema-chip,
  .schema-count,
  .schema-note,
  .schema-table-stats span {
    justify-content: center;
  }

  .schema-table-stats span {
    width: 100%;
    text-align: center;
  }

  .schema-table-list {
    padding: .75rem;
  }

  .marketing-hero {
    min-height: auto;
    background-position: 62% center;
  }

  .marketing-hero::before {
    background: rgba(8, 13, 23, .82);
  }

  .hero-copy {
    padding: 4rem 0 4.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-lede {
    font-size: 1rem;
  }
}
