:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #162b32;
  background: #f2f5f4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
}
aside {
  width: 238px;
  background: #102f32;
  color: #dfebe8;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 38px 25px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: Georgia, serif;
  font-size: 48px;
  color: #c7e8cc;
}
.brand span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 5px;
}
.workspace {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #9cb7b2;
  margin-top: 60px;
}
aside a {
  color: #eff9f6;
  text-decoration: none;
  padding: 16px 12px;
  background: #244448;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}
.side-note {
  margin-top: auto;
  font-size: 12px;
  line-height: 2;
  color: #a9c1bb;
}
main {
  margin-left: 238px;
  padding: 44px 48px;
  width: calc(100% - 238px);
  max-width: 1700px;
}
header,
.section-head,
.actions,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #65817b;
  margin: 0 0 13px;
}
h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.3px;
  margin: 0;
}
h2 {
  font-size: 23px;
  margin: 0;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.subtitle,
.muted {
  color: #657b77;
  font-size: 13px;
  line-height: 1.6;
}
.pill {
  white-space: nowrap;
  background: #e2ece4;
  color: #42644b;
  border: 1px solid #c9dbce;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 11px;
}
.notice {
  border: 1px solid #d6dfca;
  background: #edf0e3;
  padding: 16px 20px;
  margin: 25px 0;
  display: flex;
  gap: 20px;
  font-size: 12px;
  line-height: 1.5;
}
.notice strong {
  white-space: nowrap;
  color: #566639;
}
.servers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.server {
  background: #fff;
  border: 1px solid #dde5e1;
  border-radius: 12px;
  padding: 23px;
  position: relative;
}
.server .number {
  font-size: 11px;
  letter-spacing: 2px;
  color: #69817b;
}
.server h2 {
  font-size: 19px;
  margin: 14px 0;
}
.server .status {
  font-size: 11px;
  color: #697b78;
  position: absolute;
  top: 23px;
  right: 20px;
}
.server p {
  font-size: 12px;
  color: #72817d;
  margin-bottom: 0;
}
.panel {
  background: white;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  padding: 26px;
  margin-top: 24px;
}
.zone-form {
  display: flex;
  align-items: end;
  gap: 15px;
  border-bottom: 1px solid #e6ebe8;
  padding: 25px 0;
}
.zone-form label:first-child {
  flex: 1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #4f6961;
}
input,
select,
textarea {
  font: inherit;
  font-size: 14px;
  background: #fafcfb;
  border: 1px solid #cddbd5;
  border-radius: 6px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  color: #18372f;
}
textarea {
  min-height: 80px;
}
button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  background: #1c5c4c;
  color: white;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #f5f8f6;
  border-color: #d5dfd9;
  color: #30564a;
}
.danger {
  color: #924542;
  background: #fff4f0;
  border-color: #eddad5;
}
.zone-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.zone-tabs button {
  background: #eef3f0;
  color: #426152;
}
.zone-tabs button.selected {
  background: #214f43;
  color: #fff;
}
.empty {
  text-align: center;
  padding: 45px;
  color: #718279;
}
.empty p {
  font-size: 13px;
  line-height: 1.8;
}
.table-wrap {
  overflow: auto;
  margin: 22px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  background: #f4f7f5;
  color: #657a72;
  font-weight: 500;
  padding: 13px;
}
td {
  padding: 15px 13px;
  border-bottom: 1px solid #e9eeeb;
  max-width: 330px;
  overflow-wrap: anywhere;
}
td button {
  padding: 7px 9px;
  margin: 2px;
  font-size: 11px;
}
.type {
  font-family: monospace;
  font-size: 11px;
  background: #eaf0fa;
  color: #486188;
  border-radius: 4px;
  padding: 5px 8px;
}
.record-grid {
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  gap: 15px;
  margin-top: 18px;
}
#data-fields {
  grid-column: 1/-1;
  display: flex;
  gap: 15px;
}
#data-fields label {
  flex: 1;
}
#record-form {
  background: #f7faf8;
  border: 1px solid #e0e9e3;
  border-radius: 8px;
  padding: 20px;
}
#record-form .actions {
  justify-content: flex-start;
}
details {
  margin-top: 22px;
  font-size: 12px;
  color: #5a7267;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
footer {
  font-size: 10px;
  color: #7d8b84;
  margin-top: 22px;
}
#feedback {
  font-size: 13px;
  margin-top: 15px;
  min-height: 16px;
}
#feedback.error {
  color: #a22e2e;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #8dad60;
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  aside {
    width: 180px;
    padding: 25px 16px;
  }
  main {
    margin-left: 180px;
    width: calc(100% - 180px);
    padding: 30px 22px;
  }
  .notice {
    display: block;
  }
  .notice strong {
    display: block;
    margin-bottom: 5px;
  }
  header {
    align-items: start;
    flex-direction: column;
  }
  .zone-form {
    flex-wrap: wrap;
  }
  .zone-form label {
    flex: 1;
  }
  .record-grid {
    grid-template-columns: 1fr 1fr;
  }
  .record-grid > label:last-of-type {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 30px;
  }
  .brand span {
    font-size: 8px;
  }
  .workspace,
  .side-note,
  aside a {
    display: none;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 24px 16px;
  }
  h1 {
    font-size: 30px;
  }
  .servers {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 16px;
  }
  .zone-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: start;
    flex-wrap: wrap;
  }
  .actions {
    flex-wrap: wrap;
  }
  #data-fields {
    flex-direction: column;
  }
  footer {
    align-items: start;
    line-height: 1.8;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  td {
    min-width: 80px;
  }
}

.auth-screen {
  max-width: 560px;
  width: 100%;
  margin: 65px auto;
  padding: 36px;
  background: white;
  border: 1px solid #dce5e0;
  border-radius: 16px;
}
.auth-brand {
  font: 42px Georgia;
  color: #225b49;
  margin-bottom: 40px;
}
.auth-brand span {
  font: 11px Arial;
  letter-spacing: 2px;
}
.auth-screen h1 {
  font-size: 30px;
}
.auth-screen form {
  display: grid;
  gap: 18px;
  margin-top: 25px;
}
.auth-screen .notice {
  display: block;
  margin: 0 0 15px;
}
.auth-screen button {
  margin-top: 4px;
}
.error {
  color: #a22e2e;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.stats > div {
  background: #e7eeea;
  padding: 19px 24px;
  border-radius: 8px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.stats strong {
  font-size: 28px;
}
.stats span {
  font-size: 12px;
  color: #5f786b;
}
.user-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.wide {
  grid-column: 1/-1;
}
.settings-grid button {
  justify-self: start;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 25px;
}
.two-columns form {
  display: grid;
  gap: 16px;
  align-content: start;
}
.two-columns button {
  justify-self: start;
}
.two-columns h3 {
  margin-bottom: 0;
}
.replica {
  padding: 20px;
  background: #f2f6f3;
  border: 1px dashed #bfcfc4;
  border-radius: 10px;
}
.spaced {
  margin-top: 28px;
}
.log-row {
  display: flex;
  gap: 10px 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid #e4eae6;
  font-size: 12px;
}
.log-row span {
  flex: 1;
  min-width: 170px;
  color: #5c7266;
}
.log-row small {
  width: 100%;
  color: #60766a;
}
.scroll-list {
  max-height: 370px;
  overflow: auto;
}
.audit-line {
  font:
    11px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #eef1ef;
  padding: 10px 0;
}
.warning {
  color: #856319;
  font-size: 12px;
  line-height: 1.7;
}
.warning:empty {
  display: none;
}
dialog {
  max-width: 1050px;
  width: 94%;
  max-height: 90vh;
  border: 1px solid #cfdbd3;
  border-radius: 14px;
  padding: 28px;
  color: #18382c;
}
dialog::backdrop {
  background: #0b292bcc;
}
dialog pre {
  background: #f1f5f2;
  padding: 18px;
  max-height: 380px;
  overflow: auto;
  font-size: 12px;
}
dialog .notice {
  display: block;
}
section[id] {
  scroll-margin-top: 24px;
}
aside a {
  margin-top: 9px;
}
#feedback:not(:empty) {
  position: sticky;
  top: 12px;
  z-index: 3;
  background: #e6f1e9;
  border: 1px solid #bdd5c4;
  padding: 14px;
  border-radius: 6px;
}
#feedback.error {
  background: #fff0ea;
  border-color: #ecc5b9;
}
details summary {
  cursor: pointer;
}
#recovery-codes {
  background: #f0f4ed;
  padding: 18px;
  letter-spacing: 2px;
}
@media (max-width: 1050px) {
  .stats > div {
    padding: 14px;
    display: block;
  }
  .stats span {
    display: block;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .user-controls {
    margin-top: 15px;
  }
}
@media (max-width: 650px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 8px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 23px;
  }
  .auth-screen {
    margin: 20px 12px;
    width: calc(100% - 24px);
    padding: 24px;
  }
  .user-controls {
    gap: 8px;
  }
  dialog {
    padding: 18px;
  }
  .replica h3 {
    font-size: 15px;
  }
  .table-wrap table {
    min-width: 700px;
  }
}

.field-help { font-size: 14px; line-height: 1.6; color: #435e57; margin: 4px 0 18px; }
.dns-guide { background: #f2f6f3; border-left: 3px solid #205e50; padding: 10px 18px; margin: 18px 0; line-height: 1.65; }
.dns-guide p { margin: 10px 0; }
/* Keep each explanation directly below its full-width field. */
#data-fields { flex-direction: column; gap: 4px; }
#data-fields label { flex: none; width: 100%; }
:root .registrar-main { margin: 0 auto; max-width: 1000px; padding: 24px; }
