/* CodaMail — Swiss / editorial control panel
   暖白纸底 · 纯黑硬边 · 方角 · 等宽数字 · 单一强调色 */

:root {
  /* 兼容旧变量名（JS 内联样式引用） */
  --bg: #f2f1ec;
  --bg-soft: #eae8e1;
  --panel: #ffffff;
  --panel-2: #faf9f5;
  --panel-3: #efece4;
  --border: #cfcdc6;
  --border-soft: #e2e0d8;
  --text: #12120f;
  --text-dim: #4a4844;
  --muted: #8a8781;
  --accent: #12120f;
  --accent-2: #d9421c;
  --ok: #1f6b46;
  --warn: #9a6415;
  --err: #b52a18;

  --paper: #f2f1ec;
  --ink: #12120f;
  --ink-2: #4a4844;
  --ink-3: #8a8781;
  --rule: #12120f;
  --hair: #dbd9d1;
  --hot: #d9421c;

  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;
  --nav: 208px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 13.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--rule);
  z-index: 60;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
a:hover { color: var(--hot); border-color: var(--hot); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ 登录 */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-brand {
  background: var(--ink);
  color: #f2f1ec;
  padding: 48px 46px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(242, 241, 236, .07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(242, 241, 236, .07) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.auth-brand::after {
  content: "@";
  position: absolute;
  right: -28px;
  bottom: -110px;
  font-family: var(--mono);
  font-size: 420px;
  line-height: 1;
  color: rgba(242, 241, 236, .045);
  pointer-events: none;
}
.auth-brand h1 {
  position: relative;
  margin: auto 0 14px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
}
.auth-brand .kicker {
  position: relative;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(242, 241, 236, .55);
  border-top: 1px solid rgba(242, 241, 236, .2);
  padding-top: 14px;
}
.auth-brand .lede {
  position: relative;
  margin: 0 0 26px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(242, 241, 236, .62);
  max-width: 30ch;
}
.auth-brand .stack {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(242, 241, 236, .45);
  margin-bottom: auto;
}
.auth-form {
  display: flex;
  align-items: center;
  padding: 48px 56px;
  background: var(--panel);
  border-left: 1px solid var(--rule);
}
.auth-form form { width: 100%; max-width: 340px; }
.auth-form .form-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.auth-form .hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
}

.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 600;
  text-transform: uppercase;
}
.wordmark span { color: var(--hot); }

/* ------------------------------------------------------------ 框架 */
.shell { display: flex; min-height: 100vh; }

.rail {
  width: var(--nav);
  flex: 0 0 var(--nav);
  background: var(--panel);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0;
}
.rail-head {
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--rule);
}
.rail-ver {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-top: 4px;
}
.rail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 18px 16px 7px;
}
nav#nav { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.nav-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-left: 3px solid transparent;
  user-select: none;
}
.nav-item i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #b3b0a9;
  width: 16px;
  flex: 0 0 16px;
}
.nav-item:hover { background: var(--panel-3); color: var(--ink); }
.nav-item.active {
  background: var(--ink);
  color: #f2f1ec;
  border-left-color: var(--hot);
}
.nav-item.active i { color: rgba(242, 241, 236, .55); }
.nav-item .badge:empty { display: none; }
.nav-item .badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  padding: 0 4px;
  border: 1px solid var(--border);
  color: var(--ink-2);
}
.nav-item.active .badge { border-color: rgba(242, 241, 236, .35); color: #f2f1ec; }

.rail-foot {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.rail-host { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.rail-host span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-out { display: inline-block; margin-top: 8px; border-bottom: 1px solid var(--ink-3); }
.dot { width: 6px; height: 6px; background: var(--ok); display: inline-block; flex: 0 0 6px; }

.stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.stage-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 26px 34px 16px;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.stage-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stage-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 5px;
}
.stage-act { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
.stage-index {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  padding-right: 2px;
}

.view { padding: 26px 34px 60px; width: 100%; max-width: 1240px; }

/* ------------------------------------------------------------ 组件 */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}
.card-head h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.card-head .spacer { margin-left: auto; }
.card-body { padding: 16px; }

.grid { display: grid; gap: 0; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; }
.grid.two > .card { margin-top: 0; min-width: 0; }
@media (max-width: 1040px) { .grid.two { grid-template-columns: 1fr; } }

.grid.stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--border);
  background: var(--panel);
  margin-bottom: 18px;
}
.stat {
  padding: 16px 18px 15px;
  border-left: 1px solid var(--hair);
}
.stat:first-child { border-left: none; }
.stat .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat .v {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.stat .f { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.stat.accent .v { color: var(--hot); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: 500 12.5px/1 var(--font);
  letter-spacing: .01em;
  transition: background .1s linear, color .1s linear;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: #f2f1ec; }
.btn.primary { background: var(--ink); color: #f2f1ec; }
.btn.primary:hover { background: var(--hot); border-color: var(--hot); }
.btn.danger { color: var(--err); border-color: var(--err); }
.btn.danger:hover { background: var(--err); color: #fff; }
.btn.ghost { border-color: var(--border); color: var(--ink-2); }
.btn.ghost:hover { background: var(--ink); color: #f2f1ec; border-color: var(--ink); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }
.btn:disabled { opacity: .35; cursor: not-allowed; background: var(--panel); color: var(--ink); }

input, select, textarea {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background: var(--panel);
  border: 1px solid #c8c6be;
  color: var(--ink);
  font: 13px/1.4 var(--font);
  outline: none;
  border-radius: 0;
  transition: border-color .1s linear;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
select { appearance: none; padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 13px) 15px, calc(100% - 8px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
textarea {
  height: auto;
  min-height: 110px;
  padding: 9px 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
}
label.field { display: block; margin-bottom: 14px; }
label.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.row > .btn { flex: 0 0 auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 9px 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  background: var(--panel-2);
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--panel-2); }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 5px; }
td .mono, td.mono { font-variant-numeric: tabular-nums; }
td.num { font-family: var(--mono); text-align: right; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  border: 1px solid var(--border);
  color: var(--ink-2);
  background: transparent;
  text-transform: lowercase;
}
.tag.ok { color: var(--ok); border-color: #a9c4b5; }
.tag.warn { color: var(--warn); border-color: #d5c19a; }
.tag.err { color: var(--err); border-color: #d8b0a9; }
.tag.info { color: var(--ink); border-color: var(--ink-3); }

.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }

/* ------------------------------------------------------------ 收件箱 */
.mail-layout { display: grid; grid-template-columns: 176px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .mail-layout { grid-template-columns: 1fr; } }
.folders { display: flex; flex-direction: column; }
.folder-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--hair);
}
.folder-item:last-child { border-bottom: none; }
.folder-item:hover { background: var(--panel-2); }
.folder-item.active { background: var(--ink); color: #f2f1ec; border-left-color: var(--hot); }
.folder-item .cnt { margin-left: auto; font-size: 11px; color: var(--ink-3); }

.mail-list { display: flex; flex-direction: column; }
.mail-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.mail-row:last-child { border-bottom: none; }
.mail-row:hover { background: var(--panel-2); }
.mail-row.active { background: var(--panel-3); border-left-color: var(--hot); }
.mail-row .who {
  width: 168px;
  flex: 0 0 168px;
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-row .subj { flex: 1; min-width: 0; }
.mail-row .subj b { font-weight: 500; color: var(--ink); display: block; font-size: 13px; }
.mail-row .snip {
  color: var(--ink-3);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.mail-row .when {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 10.5px;
  white-space: nowrap;
}
.mail-row.unseen .subj b { font-weight: 700; }
.mail-row.unseen .subj b::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--hot);
  margin-right: 7px;
  vertical-align: 2px;
}
.mail-view { padding: 20px 22px 26px; }
.mail-view h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.meta-line {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.9;
}
.meta-line b { color: var(--ink-2); font-weight: 500; }
.mail-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 78ch;
}
.mail-body iframe { width: 100%; min-height: 420px; border: 1px solid var(--hair); background: #fff; }

/* ------------------------------------------------------------ 其他 */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast .item {
  min-width: 240px;
  max-width: 420px;
  padding: 11px 14px;
  background: var(--ink);
  color: #f2f1ec;
  font-size: 12.5px;
  border-left: 3px solid var(--hot);
}
.toast .item.err { border-left-color: #ff6a4d; }
.toast .item.ok { border-left-color: #4fd39a; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 18, 15, .38);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: 460px;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--rule);
}
.modal header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.modal .body { padding: 18px; }
.modal footer { padding: 12px 16px; border-top: 1px solid var(--hair); display: flex; justify-content: flex-end; gap: 8px; }

.code-block {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ink);
  padding: 11px 13px;
  word-break: break-all;
  color: var(--ink-2);
}
.records td { font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.records td.type { color: var(--hot); font-weight: 600; letter-spacing: .02em; }

.check-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.check-row:last-child { border-bottom: none; }
.check-row .name {
  width: 148px;
  flex: 0 0 148px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
}
.check-row .detail { flex: 1; color: var(--ink-2); font-size: 12.5px; }
.check-row .val {
  margin-top: 5px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

.score {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
}
.score.high { color: var(--ok); }
.score.mid { color: var(--warn); }
.score.low { color: var(--err); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 7px 14px; font-size: 12.5px; }
.kv .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

.spin {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink-3);
  border-top-color: transparent;
  display: inline-block;
  animation: spin .7s linear infinite;
  vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 4px; background: var(--panel-3); border: 1px solid var(--hair); }
.progress > i { display: block; height: 100%; background: var(--ink); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 1px solid var(--hair); }
::-webkit-scrollbar-thumb { background: #c3c1b9; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

details summary { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
details summary:hover { color: var(--ink); }

/* 概览页事件流 */
.event-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 12.5px;
  align-items: baseline;
}
.event-row:last-child { border-bottom: none; }
.event-row .ts { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); flex: 0 0 104px; }
.event-row .kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink-2);
  border: 1px solid var(--hair);
  padding: 0 5px;
  flex: 0 0 auto;
}
.event-row .detail {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ------------------------------------------------------------ DNS 指导表 */
.dns-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: dnsstep; }
.dns-steps li {
  counter-increment: dnsstep;
  position: relative;
  padding: 0 0 9px 34px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.8;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 9px;
}
.dns-steps li:last-child { border-bottom: none; margin-bottom: 14px; }
.dns-steps li::before {
  content: counter(dnsstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--hot);
}
.dns-steps b { color: var(--ink); font-weight: 600; }
.dns-steps u { text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.dns-steps code, .dns-notes code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--panel-3);
  padding: 0 4px;
  color: var(--ink);
}

.dns-ip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ok);
  background: var(--panel-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.dns-ip.warn { border-left-color: var(--warn); }
.dns-ip b { color: var(--ink); font-weight: 600; }
.lamp { width: 6px; height: 6px; background: var(--ok); flex: 0 0 6px; }
.dns-ip.warn .lamp { background: var(--warn); }

.dns-table { table-layout: fixed; }
.dns-table th { background: var(--panel-2); }
.dns-table td { vertical-align: top; padding: 12px 14px; }
.dns-table td.type {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--hot);
}
.dns-table .prio {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ink-3);
  white-space: nowrap;
}
.dns-table .cell-val {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink);
  word-break: break-all;
  border-left: 2px solid var(--panel-3);
  padding-left: 8px;
  max-height: 62px;
  overflow: hidden;
}
.dns-table td.val-cell .cell-val { max-height: none; border-left-color: var(--hair); padding-left: 9px; }
.dns-table .cell-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 5px;
  word-break: break-all;
}
.dns-table .host-cell .btn, .dns-table .val-cell .btn { margin-top: 7px; }
.dns-table td.ttl { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.dns-table td.why { font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.dns-table .why-label { font-weight: 600; color: var(--ink); font-size: 12px; }
.dns-table td.why .cell-sub {
  font-family: var(--font);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-3);
  word-break: normal;
  overflow-wrap: break-word;
}

.dns-notes { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 12px; }
.dns-notes-body dl { margin: 14px 0 0; }
.dns-notes-body dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 14px;
}
.dns-notes-body dt:first-child { margin-top: 0; }
.dns-notes-body dd { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }


/* 收发地址 vs 服务器主机名 */
.dns-host {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border: 1px solid var(--hair);
  margin-bottom: 14px;
  background: var(--panel-2);
}
.dns-host > div {
  padding: 11px 14px;
  border-left: 1px solid var(--hair);
  font-size: 12.5px;
  color: var(--ink-2);
}
.dns-host > div:first-child { border-left: none; }
.dns-host .k {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.dns-host b { font-family: var(--mono); font-size: 12.5px; color: var(--ink); font-weight: 600; }
.dns-host .sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
}
.dns-host .btn { margin-left: 8px; }


/* 品牌标记 */
.brand-row { display: flex; align-items: center; gap: 9px; }
.brand-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--hot);
}
.brand-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-logo:has(img) { background: transparent; }
.brand-logo:has(img)::after { display: none; }
.auth-brand .brand-logo { width: 24px; height: 24px; flex-basis: 24px; background: #f2f1ec; }
.auth-brand .brand-logo::after { inset: 6px; }
.brand-logo.lg { width: 56px; height: 56px; flex-basis: 56px; }
.rail-brand {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  line-height: 1.5;
}
.logo-picker { display: flex; align-items: center; gap: 12px; }
.logo-picker input[type="file"] {
  height: auto;
  padding: 6px;
  font-size: 12px;
  border: 1px dashed var(--border);
  background: var(--panel-2);
  width: auto;
  flex: 1;
}


/* 出站自检结果 */
.test-concl {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-left: 3px solid var(--ink-3);
  background: var(--panel-2);
}
.test-concl.ok { border-left-color: var(--ok); color: var(--ok); }
.test-concl.bad { border-left-color: var(--err); color: var(--err); }
#out-test .check-row { padding: 7px 0; }
#out-test .check-row .name { font-size: 11.5px; color: var(--ink-2); }
#out-test .check-row .detail { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
