:root {
  font:
    14px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #29251f;
  background: #faf8f5;
  --accent: #ef731e;
  --line: #eee6dd;
  --muted: #827469;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 9px 13px;
  cursor: pointer;
  color: #51453b;
  transition: background 0.15s;
}
button:hover {
  background: #fff0e4;
  border-color: #efc09e;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #d86112;
  color: white;
}
.full {
  width: 100%;
}
input,
select {
  background: #fff;
  border: 1px solid #e6ded5;
  border-radius: 9px;
  padding: 10px 12px;
  min-width: 0;
  color: inherit;
  width: 100%;
}
input:focus,
select:focus {
  outline: 2px solid #ffcda9;
  outline-offset: 1px;
}
input[readonly] {
  background: #fff8f0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  font-weight: 600;
}
label small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 17px;
}
.muted,
small {
  color: var(--muted);
}
.muted {
  margin: 6px 0 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #9c816a;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand strong {
  display: block;
  font-size: 19px;
}
.brand small {
  display: block;
  font-size: 11px;
}
.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  font-size: 26px;
  font-weight: 800;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 24px;
}
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
}
.sidebar {
  padding: 8px 0;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}
.sidebar button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 11px 14px;
  font-weight: 500;
}
.sidebar button.active {
  color: #d9600d;
  background: #ffede0;
  border-color: #f9dcc7;
  font-weight: 700;
}
.sidebar-note {
  border-top: 1px solid var(--line);
  margin: 22px 12px 0;
  padding-top: 16px;
  font-size: 12px;
  color: #9b8b7d;
}
.content {
  min-width: 0;
}
.page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.content section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-head .muted {
  margin-bottom: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  min-width: 0;
}
.project-card .section-head {
  margin-bottom: 10px;
}
.project-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.sender-line {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-actions button {
  font-size: 12px;
  padding: 7px 10px;
}
.keys {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  min-width: 0;
}
.key-row small {
  display: block;
  font-size: 10px;
}
.key-row button {
  padding: 5px 8px;
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f3f1ee;
  color: #76675b;
  white-space: nowrap;
}
.good,
.status-accepted_by_recipient {
  background: #eaf6ee;
  color: #2c7b4d;
}
.status-queued,
.status-submitted {
  background: #eaf0fc;
  color: #41679b;
}
.warn,
.status-deferred {
  background: #fff2dc;
  color: #a47016;
}
.bad,
.status-failed,
.status-bounced {
  background: #fdecec;
  color: #b34b4b;
}
.status-expired {
  background: #f3f1ee;
  color: #76675b;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffcf8;
  padding: 17px;
  font-size: 12px;
  color: var(--muted);
}
.card strong {
  display: block;
  font-size: 30px;
  color: #30271f;
  line-height: 1.3;
  margin-top: 9px;
}
.card:first-child {
  border-color: #f5c49d;
  background: #fff5eb;
}
.card:first-child strong {
  color: #d66b1c;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 17px;
}
.filters input {
  flex: 2;
}
.filters select {
  flex: 1;
  max-width: 220px;
}
.filters button {
  flex-shrink: 0;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #958579;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid #f4eee7;
  font-size: 12px;
  vertical-align: top;
}
td:first-child {
  min-width: 200px;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
td button {
  padding: 6px 9px;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.pagination .muted {
  margin: 0;
}
.pagination button {
  padding: 7px 12px;
}
.empty {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 24px;
  color: #a18c7d;
  font-size: 13px;
}
.item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  overflow-wrap: anywhere;
}
.item button {
  flex-shrink: 0;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.diagnostic-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  min-width: 0;
}
.diagnostic-card pre {
  font-size: 11px;
  color: #8b7c70;
  margin: 10px 0 0;
}
.audit-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.audit-row small {
  overflow-wrap: anywhere;
}
.login-card {
  max-width: 430px;
  margin: 60px auto;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 15px 50px #71533a08;
}
.login-card h1 {
  margin: 12px 0;
  font-size: 28px;
}
.login-card form {
  margin-top: 20px;
}
.login-card button {
  margin-top: 8px;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(520px, 94vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #492b1b30;
}
dialog::backdrop {
  background: #35291d60;
  backdrop-filter: blur(3px);
}
dialog .section-head {
  margin-bottom: 12px;
}
.preview-dialog {
  width: min(850px, 95vw);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 15px 0;
}
.tabs .selected {
  background: #ffede0;
  color: #c8621b;
}
iframe {
  width: 100%;
  height: 450px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 24px;
  max-width: min(430px, 90vw);
  padding: 14px 18px;
  border-radius: 11px;
  background: #352d27;
  color: white;
  box-shadow: 0 8px 30px #34281b26;
  z-index: 100;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 15px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    flex-basis: 100%;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 12px 16px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 10px;
  }
  .top-actions .badge {
    display: none;
  }
  main {
    padding: 15px 12px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    padding: 0;
    margin-bottom: 18px;
  }
  .sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    margin: 0;
    padding-bottom: 5px;
  }
  .sidebar button {
    white-space: nowrap;
    padding: 9px 11px;
    font-size: 12px;
  }
  .page-bar {
    margin-bottom: 14px;
  }
  .page-bar h1 {
    font-size: 21px;
  }
  .page-bar button {
    font-size: 11px;
    padding: 8px;
  }
  .content section {
    padding: 14px;
  }
  .section-head {
    align-items: flex-start;
    gap: 8px;
  }
  .section-head button {
    font-size: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 8px;
  }
  .card {
    padding: 13px;
  }
  .card strong {
    font-size: 27px;
  }
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
  .audit-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .login-card {
    margin: 30px auto;
    padding: 24px;
  }
  .filters select {
    max-width: none;
    flex-basis: calc(50% - 8px);
  }
  .filters button {
    width: 100%;
  }
  dialog {
    padding: 18px;
  }
  .form-grid {
    gap: 8px;
  }
}

.domain-card {border:1px solid #f0e3d6; border-radius:12px; padding:16px; margin:14px 0;}
.dns-value {max-width:480px; overflow-wrap:anywhere; min-width:180px;}

.docs-download {display:inline-block; background:var(--accent,#ef741b);color:#fff;padding:11px 14px;border-radius:10px;text-decoration:none;}
#documentationContent pre {background:#fff8f0;padding:14px;border-radius:10px;overflow:auto;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;}
#documentationContent td {overflow-wrap:anywhere;}
#documentationContent details {border:1px solid #f0e3d6;border-radius:10px;padding:12px;margin:12px 0;}
#documentationContent summary {cursor:pointer;font-weight:600;}
.docs-base {font-weight:600;overflow-wrap:anywhere;}
