* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  font-family: "DM Sans", "Microsoft YaHei", system-ui, sans-serif;
  color: #25343e;
  background: #edf1f4;
  font-size: 14px;
}
body,
p,
h1,
h2,
h3 {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.btn {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button,
a,
select,
input,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #4389ba;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
button svg,
a svg {
  flex: none;
}
a {
  color: #245f89;
}
.brand,
.login-context-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f6f7f9;
}
.brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #536878;
  border-radius: 2px;
  color: #dbe7ef;
  background: #1d2c37;
  font:
    700 14px/1 Arial,
    sans-serif;
}
.brand-mark::before {
  content: "N";
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font:
    700 15px/1 Arial,
    sans-serif;
  letter-spacing: 2.3px;
}
.brand small {
  margin-top: 4px;
  color: #8c9aa6;
  font:
    600 8px/1 Arial,
    sans-serif;
  letter-spacing: 3px;
}
.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #17232d;
  color: #aebbc6;
  padding: 24px 14px 16px;
  border-right: 1px solid #2d3e4c;
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow-y: auto;
}
.sidebar .brand {
  padding: 0 10px 30px;
}
.nav-label {
  margin: 0 10px 10px;
  color: #8ea1af;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  gap: 12px;
  padding: 0 11px;
  color: #acbac5;
  text-decoration: none;
  font-size: 13px;
  border-radius: 2px;
}
.nav-item:hover {
  color: #fff;
  background: #1d2e3a;
}
.nav-item.selected {
  color: #fff;
  background: #253846;
  box-shadow: inset 3px 0 #55a2cf;
}
.nav-item.selected svg {
  color: #77bde6;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.main {
  margin-left: 220px;
  min-height: 100vh;
}
.topbar,
.toolbar,
.panel-head,
.page-heading,
.actions,
.status,
.breadcrumb {
  display: flex;
  align-items: center;
}
.topbar {
  height: 58px;
  padding: 0 30px;
  background: white;
  border-bottom: 1px solid #cfd7dd;
  justify-content: space-between;
  gap: 15px;
}
.status,
.actions {
  gap: 8px;
  flex-wrap: wrap;
}
.status {
  color: #4d6473;
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c9b7e;
  flex: none;
}
.status i {
  height: 13px;
  width: 1px;
  margin: 0 4px;
  background: #d8dfe3;
}
.muted,
.help {
  color: #6b7d87;
}
.help {
  font-size: 12px;
  line-height: 1.7;
}
.btn,
.icon-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #c1ccd4;
  background: white;
  color: #3c5362;
  border-radius: 2px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover,
.icon-button:hover {
  border-color: #6e94ad;
  color: #205779;
  background: #f6fafc;
}
.btn.primary {
  background: #245f89;
  border-color: #245f89;
  color: white;
}
.btn.primary:hover {
  background: #194c70;
}
.btn.danger {
  color: #9b403c;
}
.icon-button {
  width: 32px;
  padding: 0;
}
.menu-toggle {
  display: none;
}
.content {
  padding: 23px 30px 44px;
  max-width: 1650px;
  margin: auto;
}
.breadcrumb {
  font-size: 11px;
  color: #708391;
  gap: 7px;
  margin-bottom: 17px;
}
.page-heading {
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #cbd4da;
  gap: 16px;
}
.eyebrow {
  font:
    700 9px/1.4 Arial,
    sans-serif;
  letter-spacing: 1.8px;
  color: #567585;
  margin-bottom: 6px;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.4px;
  line-height: 1.4;
}
.page-heading .help {
  margin-top: 4px;
}
.panel {
  background: white;
  border: 1px solid #cbd4da;
  margin-bottom: 16px;
  min-width: 0;
}
.panel-head,
.toolbar {
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f8fa;
  border-bottom: 1px solid #d4dce1;
  gap: 12px;
  min-height: 54px;
  flex-wrap: wrap;
}
.panel-head h2,
.toolbar h2 {
  font-size: 14px;
}
.panel-head p {
  margin-top: 4px;
  color: #657987;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #e7edf1;
  color: #536977;
  padding: 11px 15px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 14px 15px;
  border-top: 1px solid #dce3e7;
  color: #445b69;
  overflow-wrap: anywhere;
}
tbody tr:hover {
  background: #f8fafb;
}
.zone-row {
  cursor: pointer;
}
.zone-row.selected {
  background: #edf5fa;
  box-shadow: inset 3px 0 #245f89;
}
.zone-link {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: #245f89;
  text-align: left;
  font: inherit;
  font-weight: 600;
}
.zone-link:hover {
  text-decoration: underline;
}
.provider-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #dce3e7;
}
.provider-entry h3 {
  font-size: 14px;
}
td .actions {
  gap: 5px;
}
td .btn {
  font-size: 11px;
  height: 27px;
  padding: 0 8px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.identity b {
  font-size: 13px;
  color: #263946;
}
.identity small {
  display: block;
  color: #708390;
  margin-top: 3px;
}
.project-logo,
.empty-icon {
  background: #e8eef2;
  color: #35566d;
  border: 1px solid #c1ced6;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #647985;
}
.empty-icon {
  margin-bottom: 13px;
  width: 40px;
  height: 40px;
}
.empty strong {
  display: block;
  font-size: 14px;
  color: #3c5362;
  margin-bottom: 5px;
}
.footer {
  padding: 11px 16px;
  border-top: 1px solid #d6dfe5;
  color: #6a7e8b;
  font-size: 11px;
}
.search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  height: 34px;
  background: white;
  border: 1px solid #c1ccd4;
  color: #66808f;
}
.search-wrap input {
  border: 0;
  background: none;
  font-size: 12px;
  width: 185px;
  outline: none;
}
.pill {
  border: 1px solid #cbd5db;
  background: #f4f7f9;
  color: #566c7b;
  padding: 3px 7px;
  font-size: 11px;
  display: inline-block;
  white-space: nowrap;
}
.pill.ok {
  background: #edf6f1;
  border-color: #c2ded0;
  color: #307250;
}
.pill.warn {
  background: #fff7e8;
  border-color: #e8d6ab;
  color: #88601d;
}
.pill.bad {
  background: #fbefed;
  border-color: #e6c8c1;
  color: #9a433b;
}
.fields {
  display: grid;
  gap: 13px;
}
.field {
  display: grid;
  gap: 6px;
  color: #415763;
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.toolbar select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #bdcbd4;
  border-radius: 2px;
  padding: 7px 10px;
  background: white;
  color: #243947;
  font-weight: 400;
  font-size: 13px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid #547d96;
}
.field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: #245f89;
}
.field.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.toolbar select {
  width: auto;
  max-width: 100%;
}
dialog {
  max-width: min(500px, 95vw);
  width: 500px;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #a7b7c2;
  border-radius: 3px;
  box-shadow: 0 18px 50px #12212e33;
  color: #263b49;
}
dialog::backdrop {
  background: #101d2b75;
}
.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 20px;
  background: #f5f8fa;
}
.modal-head {
  border-bottom: 1px solid #d4dce1;
}
.modal-head h2 {
  font-size: 17px;
}
.modal-body {
  padding: 20px;
}
.modal-body > .help {
  margin-bottom: 15px;
}
.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid #d4dce1;
}
.form-error,
.error-box {
  background: #fcf1ee;
  border: 1px solid #e6cbc4;
  color: #9e4133;
  padding: 10px 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.spaced {
  padding: 16px;
}
.spaced > .actions {
  margin-top: 14px;
}
#notice {
  position: fixed;
  z-index: 12;
  right: 24px;
  bottom: 24px;
  max-width: min(460px, 90vw);
  padding: 14px 20px;
  color: white;
  background: #263e4f;
  box-shadow: 0 3px 16px #18293528;
  font-size: 13px;
}
#notice:empty {
  display: none;
}
dl {
  display: grid;
  grid-template-columns: minmax(85px, 145px) 1fr;
  margin: 0;
  font-size: 13px;
}
dt,
dd {
  margin: 0;
  border-bottom: 1px solid #e2e9ed;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
dt {
  color: #6d818f;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.7 Consolas,
    monospace;
  background: #f2f6f8;
  padding: 16px;
  border: 1px solid #d1dce3;
}
.loading {
  padding: 32px;
  color: #627988;
  font-size: 13px;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-field {
  display: block;
  position: relative;
}
.auth-field span {
  display: block;
}
.auth-field input {
  width: 100%;
}
.auth-field button {
  position: absolute;
  font-size: 10px;
}
.auth-submit {
  color: white;
  cursor: pointer;
}
.login-context-version {
  display: block;
}
@media (max-width: 850px) {
  .sidebar {
    width: 185px;
  }
  .main {
    margin-left: 185px;
  }
  .content {
    padding: 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .status .muted,
  .status i {
    display: none;
  }
}
@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.15s;
    box-shadow: 4px 0 12px #132d4414;
  }
  .sidebar.open {
    transform: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    padding: 0 12px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .content {
    padding: 15px 12px 32px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .toolbar .actions {
    flex-wrap: wrap;
  }
  .search-wrap {
    width: 100%;
  }
  .search-wrap input {
    width: 100%;
  }
  .wide {
    display: none;
  }
  .status {
    gap: 6px;
  }
  .btn {
    padding: 0 9px;
  }
  .page-heading .help {
    font-size: 11px;
  }
}
.simple-login {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  background: #e9edef;
}

.simple-login-panel {
  width: min(920px, 100%);
  min-height: 560px;
  padding: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid #cbd3d8;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.login-context {
  min-width: 0;
  padding: 38px 36px 30px;
  display: flex;
  flex-direction: column;
  color: #f2f5f7;
  border-right: 1px solid #172737;
  background: #1b2b3b;
}

.login-context-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-context-brand .brand-mark {
  width: 38px;
  height: 38px;
  color: #1b2b3b;
  border: 0;
  border-radius: 2px;
  background: #f2f5f7;
}

.login-context-brand strong,
.login-context-brand small {
  display: block;
  font-family: "DM Sans", sans-serif;
}

.login-context-brand strong {
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.22em;
}

.login-context-brand small {
  margin-top: 5px;
  color: #91a7b7;
  font-size: 7px;
  letter-spacing: 0.34em;
}

.login-context-copy {
  margin: 78px 0 48px;
}

.login-context-kicker,
.login-form-kicker {
  display: block;
  color: #7fa6bd;
  font:
    700 8px/1 "DM Sans",
    sans-serif;
  letter-spacing: 0.16em;
}

.login-context-copy h1 {
  max-width: 300px;
  margin-top: 17px;
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.login-context-copy p {
  max-width: 310px;
  margin-top: 17px;
  color: #aebdc7;
  font-size: 10px;
  line-height: 1.8;
}

.login-context-status {
  display: grid;
  gap: 1px;
  border: 1px solid #334858;
  background: #334858;
}

.login-context-status > div {
  min-height: 58px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #223545;
}

.login-context-status > div > svg {
  color: #76a2bb;
}

.login-context-status b,
.login-context-status small {
  display: block;
}

.login-context-status b {
  color: #e8eef1;
  font-size: 9px;
}

.login-context-status small {
  margin-top: 4px;
  color: #829aaa;
  font-size: 8px;
}

.login-context-version {
  margin-top: auto;
  padding-top: 24px;
  color: #647f91;
  font:
    600 7px/1 "DM Sans",
    sans-serif;
  letter-spacing: 0.14em;
}

.simple-login-panel .login-card {
  width: 100%;
  max-width: none;
  min-height: 560px;
  padding: 50px 58px 38px;
  align-self: stretch;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.simple-login-panel .login-nova {
  display: none;
}

.login-form-kicker {
  color: #58778a;
}

.simple-login-panel .login-card h2 {
  margin: 14px 0 8px;
  text-align: left;
  color: #24323b;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.simple-login-panel .login-subtitle {
  min-height: 34px;
  margin: 0 0 18px;
  color: #7d8990;
  font-size: 9px;
  line-height: 1.7;
}

.simple-login-panel .first-user-notice {
  margin: 0 0 17px;
  padding: 9px 10px;
  color: #526873;
  border-color: #d4dde1;
  border-radius: 2px;
  background: #f4f7f8;
  box-shadow: none;
}

.simple-login-panel .auth-field {
  margin-top: 14px;
}

.simple-login-panel .auth-field > span {
  margin-bottom: 7px;
  color: #485a65;
  font-size: 9px;
}

.simple-login-panel .auth-field input {
  height: 40px;
  padding: 0 48px 0 11px;
  color: #273740;
  border: 1px solid #cbd4d9;
  border-radius: 2px;
  background: #fff;
  font-size: 10px;
  box-shadow: none;
}

.simple-login-panel .auth-field input::placeholder {
  color: #a4adb2;
}

.simple-login-panel .auth-field input:focus {
  border-color: #52758a;
  box-shadow: 0 0 0 2px rgba(49, 95, 124, 0.08);
}

.simple-login-panel .auth-field button {
  right: 11px;
  bottom: 12px;
  color: #315f7c;
}

.simple-login-panel .auth-error {
  margin-top: 12px;
  border-radius: 2px;
  box-shadow: none;
}

.simple-login-panel .auth-submit {
  height: 40px;
  margin-top: 18px;
  border: 1px solid #315f7c;
  border-radius: 2px;
  background: #315f7c;
  box-shadow: none;
  font-size: 10px;
}

.simple-login-panel .auth-submit:hover {
  background: #264f68;
}

.simple-login-panel .auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.simple-login-panel .auth-mode-switch {
  margin-top: 13px;
  color: #496b7f;
  font-size: 8px;
}

@media (max-width: 760px) {
  .simple-login {
    padding: 16px;
    place-items: start center;
  }

  .simple-login-panel {
    grid-template-columns: 1fr;
  }

  .login-context {
    min-height: auto;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid #172737;
  }

  .login-context-copy {
    margin: 34px 0 22px;
  }

  .login-context-copy h1 {
    max-width: 480px;
    font-size: 20px;
  }

  .login-context-copy p,
  .login-context-status,
  .login-context-version {
    display: none;
  }

  .simple-login-panel .login-card {
    min-height: auto;
    padding: 32px 24px 28px;
  }
}
[hidden] {
  display: none !important;
}
.detail-actions {
  margin-top: 16px;
}
.documentation h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}
.documentation h3:first-child {
  margin-top: 0;
}
.documentation p {
  margin: 5px 0;
  line-height: 1.75;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.documentation code {
  background: #f0f4f6;
  padding: 1px 4px;
  border-radius: 2px;
}
.login-context-status svg {
  color: #81a8c0;
}
.login-card .form-error {
  margin-top: 12px;
}
.dialog-status {
  padding: 12px 20px;
  border-top: 1px solid #d4dce1;
  background: #edf4f8;
  font-size: 13px;
}
.documentation table {
  margin: 12px 0;
  border: 1px solid #d1dce3;
}
.documentation .table-scroll {
  max-width: 100%;
}
.dns-filter > .field { max-width: 420px; margin: 14px 18px; }
.dns-no-match { padding: 12px 18px; }
.domain-choices { max-height: min(45vh, 420px); overflow-y: auto; border-top: 1px solid #d6dfe5; }
.domain-choice { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #e0e6eb; cursor: pointer; }
.domain-choice input { width: auto; }
.domain-choice strong, .domain-choice small { display: block; overflow-wrap: anywhere; }
.domain-choice small { color: #536777; margin-top: 3px; }

.project-name-link {color:inherit;text-decoration:none;display:inline-block}
#project-table tbody tr {cursor:pointer}
#project-table tbody tr:hover {background:#f2f7fa}
.project-controls,.project-tabs {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.project-tabs {margin-bottom:16px;gap:4px;border-bottom:1px solid #c7d2d9}
.project-tabs a {padding:10px 14px;color:#344e60;text-decoration:none}
.project-tabs a[aria-current=page] {border-bottom:3px solid #315f7c;font-weight:700}
.drop-zone {border:1px dashed #99acb8;background:#f6f9fb;display:grid;justify-items:center;gap:10px;padding:26px 14px;color:#405969}
.drop-zone.dragging {outline:2px solid #315f7c}
.directory-button {position:relative;overflow:hidden;cursor:pointer}
.directory-button input {position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.project-controls .btn {white-space:nowrap}

.remember-login{display:flex;align-items:center;gap:8px;font-size:14px;margin:12px 0;color:var(--muted,#526579)}.remember-login input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;accent-color:#315f78}
