@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #f6f1e7;
  --bg-2: #e7f0f3;
  --ink: #1c2a31;
  --muted: #5c6a73;
  --accent: #0f6b5f;
  --accent-2: #c26c2f;
  --card: #ffffff;
  --border: #d8d2c6;
  --shadow: 0 12px 30px rgba(29, 35, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Mono", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, var(--bg-2), var(--bg));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 107, 95, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 107, 95, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(15, 107, 95, 0.08), rgba(194, 108, 47, 0.1));
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--accent);
  color: #fff;
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
}

.brand-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.userbox {
  font-size: 14px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 12px;
  margin: 18px 0 8px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-spacer {
  flex: 1;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-header h1 {
  margin: 8px 0 0;
  font-size: 28px;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.card.narrow {
  max-width: 420px;
  margin: 0 auto;
}

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

.section-title {
  margin: 18px 0 8px;
  color: var(--accent-2);
}

.details {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 8px 16px;
  margin: 0;
}

.details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.details dd {
  margin: 0;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

button:hover,
.button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

button.primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

button.primary:hover,
.button.primary:hover {
  background: #0b5a50;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 10px;
}

tbody td {
  padding: 10px;
  border-top: 1px solid var(--border);
}

tbody tr:nth-child(even) {
  background: rgba(15, 107, 95, 0.04);
}

.domain-cell {
  max-width: 260px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 95, 0.12);
  color: var(--accent);
  font-size: 12px;
}

.alert {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(194, 108, 47, 0.12);
  color: var(--accent-2);
  margin-bottom: 12px;
}

.alert.success {
  background: rgba(15, 107, 95, 0.15);
  color: var(--accent);
}

.alert.warning {
  background: rgba(255, 193, 7, 0.2);
  color: #8a5a00;
}

.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

tbody tr.row-red {
  background: rgba(255, 0, 0, 0.06) !important;
}

tbody tr.row-yellow {
  background: rgba(255, 215, 0, 0.15) !important;
}

tbody tr.row-green {
  background: rgba(0, 128, 0, 0.08) !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(15, 107, 95, 0.12);
  color: var(--accent);
}

.pill.warn {
  background: rgba(194, 108, 47, 0.16);
  color: var(--accent-2);
}

.result {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.result:last-child {
  border-bottom: none;
}

.mail-body {
  white-space: pre-wrap;
  background: #f7f7f7;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.split {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

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

.footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    flex-wrap: wrap;
  }
}
