html {
  position: relative;
  min-height: 100%;
  font-size: 15px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f7fb;
  color: #172033;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.app-nav {
  background: #ffffff;
  border-bottom: 1px solid #dde3ee;
  box-shadow: 0 8px 24px rgba(30, 42, 62, 0.06);
}

.navbar-brand {
  color: #20245a;
  font-weight: 800;
}

.nav-link {
  color: #5d6680;
  font-weight: 600;
}

.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.dashboard-shell {
  display: grid;
  gap: 24px;
}

.dashboard-topbar,
.panel-header,
.job-row,
.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #172033;
  font-weight: 800;
}

.service-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #146b3a;
  font-weight: 800;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.btn-primary {
  background: #20245a;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  border-color: #ccd5e4;
  color: #20245a;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20b26b;
  box-shadow: 0 0 0 0 rgba(32, 178, 107, 0.45);
  animation: pulse 1.8s infinite;
}

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

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
}

.summary-tile,
.panel {
  background: #ffffff;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 42, 62, 0.07);
}

.summary-tile {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
}

.summary-tile strong {
  color: #20245a;
  font-size: 2rem;
  line-height: 1;
}

.summary-tile span {
  color: #667085;
}

.summary-tile.critical strong {
  color: #b42318;
}

.tile-label {
  color: #30374f;
  font-weight: 800;
}

.panel {
  padding: 20px;
}

.registry-lookup-form {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.registry-lookup-form label {
  color: #30374f;
  font-weight: 800;
}

.registry-lookup-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
}

.registry-lookup-controls input {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #ccd5e4;
  border-radius: 8px;
  color: #172033;
  font: inherit;
}

.registry-lookup-controls input:focus {
  border-color: #3538a8;
  box-shadow: 0 0 0 3px rgba(53, 56, 168, 0.12);
  outline: none;
}

.registry-result {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #b7e3c9;
  border-radius: 8px;
  background: #f3fbf6;
}

.registry-result.missing {
  border-color: #f4c7c7;
  background: #fff7f7;
}

.registry-result > div {
  display: grid;
  align-content: start;
  gap: 5px;
}

.registry-result span {
  color: #667085;
}

.registry-result strong {
  color: #172033;
}

.registry-presence {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.registry-register-form {
  margin-left: auto;
}

.module-list,
.job-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.module-row,
.job-row {
  min-height: 72px;
  padding: 14px;
  border: 1px solid #e6ebf4;
  border-radius: 8px;
  background: #fbfcff;
}

.module-row > div:last-child,
.job-row > div:first-child {
  display: grid;
  gap: 3px;
}

.module-row span,
.job-row span {
  color: #667085;
}

.module-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #20245a;
  color: #ffffff;
  font-weight: 900;
}

.status-chip {
  background: #eef2ff;
  color: #3538a8;
  white-space: nowrap;
}

.domains-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table-shell {
  width: 100%;
  margin-top: 18px;
  overflow: auto;
  border: 1px solid #dde3ee;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e6ebf4;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #20245a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

.data-table tbody tr:nth-child(even) {
  background: #fbfcff;
}

.data-table tbody tr:hover {
  background: #eef2ff;
}

.domain-chip,
.email-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.domain-chip.ok,
.email-chip.ready {
  background: #e8f7ef;
  color: #146b3a;
}

.domain-chip.warning {
  background: #fff6db;
  color: #8a5700;
}

.domain-chip.urgent {
  background: #fff0e6;
  color: #b54708;
}

.domain-chip.critical,
.email-chip.missing {
  background: #fde8e8;
  color: #b42318;
}

.domain-chip.muted {
  background: #eef2f6;
  color: #475467;
}

.footer {
  padding: 16px 0;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(32, 178, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 178, 107, 0);
  }
}

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

@media (max-width: 760px) {
  .app-container {
    padding: 18px;
  }

  .dashboard-topbar,
  .panel-header,
  .job-row,
  .module-row,
  .toolbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .registry-lookup-controls,
  .registry-result {
    grid-template-columns: 1fr;
  }

  .registry-register-form {
    width: 100%;
    margin-left: 0;
  }
}
