/* 统一邮箱 · 「墨与纸」：深墨侧栏、暖纸列表、白纸读信；收件地址用等宽标签，未读用朱红。零外部字体。 */
:root {
  --ink: #16171b;
  --ink-2: #23252b;
  --ink-3: #31343c;
  --ink-text: #b9b5ab;
  --ink-strong: #f3efe6;
  --paper: #f5f2eb;
  --paper-2: #ece7dc;
  --sheet: #fffefb;
  --line: #e2dccf;
  --line-soft: #ece7dd;
  --text: #1c1b18;
  --muted: #7a7466;
  --accent: #c2410c;        /* 朱红：未读、主按钮 */
  --accent-soft: #fbe9df;
  --addr: #1f5f5b;          /* 收件地址：深青 */
  --addr-bg: #e3efec;
  --danger: #b42318;
  --ok: #2f7d4f;
  --select: #fff6dc;
  --shadow: 0 1px 2px rgba(28, 27, 24, .06), 0 8px 24px -12px rgba(28, 27, 24, .18);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fast: 120ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0e0f12; --ink-2: #1a1c21; --ink-3: #2a2d34;
    --paper: #17181c; --paper-2: #1f2126; --sheet: #1d1f24;
    --line: #2d3037; --line-soft: #25272d;
    --text: #ece8de; --muted: #9a9486;
    --accent: #f07a3d; --accent-soft: #3a2418;
    --addr: #7cc7bd; --addr-bg: #1c3533;
    --select: #2e2a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--sheet); border-radius: 7px; padding: 5px 11px; transition: border-color var(--fast), background var(--fast), color var(--fast); }
button:hover { border-color: var(--muted); }
button:active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { filter: brightness(1.06); }
button.danger { color: var(--danger); }
button.danger:hover { border-color: var(--danger); }
button.link { border: 0; background: none; padding: 0; color: inherit; }
.icon-btn { padding: 3px 9px; font-size: 16px; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--danger); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }

.brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 15px; }
.brand-mark.big { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }

/* ---------- 登录 ---------- */
.login { display: grid; place-items: center; min-height: 100%; padding: 24px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--paper-2), transparent), var(--paper); }
.login-card { width: min(400px, 100%); background: var(--sheet); padding: 34px 32px 28px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.login-card h1 { margin: 4px 0 0; font: 600 30px/1.2 var(--serif); letter-spacing: .02em; }
.login-card p { margin: 0; font-size: 13px; line-height: 1.7; }
.login-card label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.login-card input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.login-card button { padding: 10px; margin-top: 4px; }

/* ---------- 框架 ---------- */
.app { display: grid; grid-template-columns: 264px minmax(340px, 410px) 1fr; height: 100vh; }

.sidebar { background: var(--ink); color: var(--ink-text); display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 18px 10px; color: var(--ink-strong); font: 600 18px/1.2 var(--serif); letter-spacing: .04em; }
.brand-sub { flex-basis: 100%; font: 11px/1 var(--sans); letter-spacing: .06em; color: #7d796f; padding-left: 36px; margin-top: -4px; }
#nav { flex: 1; overflow-y: auto; padding: 6px 10px 16px; scrollbar-color: var(--ink-3) transparent; }
.nav-section { font-size: 11px; letter-spacing: .14em; color: #6f6b62; padding: 18px 10px 6px; }
.nav-row { display: flex; align-items: center; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; color: var(--ink-text); text-decoration: none; min-width: 0; flex: 1; transition: background var(--fast), color var(--fast); }
.nav-item:hover { background: var(--ink-2); color: var(--ink-strong); }
.nav-item.active { background: var(--ink-strong); color: var(--ink); font-weight: 600; }
.nav-item.active .badge { background: var(--accent); color: #fff; }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.domain { padding-left: 4px; }
.nav-item.lv1 { padding-left: 32px; font-size: 13px; }
.nav-item.lv2 { padding-left: 50px; font-size: 13px; }
.nav-item.addr .nav-label { font-family: var(--mono); font-size: 12px; }
.nav-item.subdomain .nav-label { font-family: var(--mono); font-size: 12px; color: #e8c9a9; }
.nav-item.subdomain.active .nav-label { color: var(--ink); }
.addr-tree { position: relative; margin: 2px 0 6px; }
.addr-tree::before { content: ""; position: absolute; left: 21px; top: 4px; bottom: 6px; width: 1px; background: var(--ink-3); }
.badge { font: 600 11px/18px var(--sans); min-width: 20px; text-align: center; background: var(--ink-3); color: var(--ink-strong); border-radius: 10px; padding: 0 6px; }
.caret { border: 0; background: none; padding: 0; width: 22px; height: 28px; color: #6f6b62; font-size: 11px; transition: transform var(--fast), color var(--fast); flex-shrink: 0; }
.caret:hover { color: var(--ink-strong); }
.caret.open { transform: rotate(90deg); }
.nav-note { padding: 4px 32px; font-size: 12px; color: #6f6b62; }
.sidebar-foot { border-top: 1px solid var(--ink-2); padding: 12px 16px 14px; display: flex; gap: 6px 13px; flex-wrap: wrap; font-size: 12.5px; }
.sidebar-foot .link, .sidebar-foot a { color: #8f8b81; text-decoration: none; }
.sidebar-foot .link:hover, .sidebar-foot a:hover { color: var(--ink-strong); }

/* ---------- 列表 ---------- */
.list-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); position: relative; }
.list-head { padding: 18px 18px 10px; display: grid; gap: 10px; grid-template-columns: auto 1fr; }
.list-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; grid-column: 1 / -1; }
.list-title h2 { margin: 0; font: 600 22px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-title span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.search { grid-column: 1 / -1; }
.search input { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); transition: border-color var(--fast), box-shadow var(--fast); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toolbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.toolbar > .check { padding-left: 2px; display: flex; }
.toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; }
.batch { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.batch button { padding: 3px 9px; font-size: 12px; }
#batch-count { font-size: 12px; margin-right: 2px; }
#refresh-btn { margin-left: auto; }

.progress { height: 2px; background: transparent; overflow: hidden; }
.loading .progress { background: var(--line-soft); }
.loading .progress::after { content: ""; display: block; height: 100%; width: 40%; background: var(--accent); animation: slide 0.9s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loading .list { opacity: .45; pointer-events: none; transition: opacity var(--fast); }

.list { list-style: none; margin: 0; padding: 4px 10px 10px; overflow-y: auto; flex: 1; }
.row { display: flex; align-items: flex-start; border-radius: 10px; margin-bottom: 2px; position: relative; transition: background var(--fast); }
.row:hover { background: var(--paper-2); }
.row.checked { background: var(--select); }
.row.current { background: var(--sheet); box-shadow: var(--shadow); }
.row .check { padding: 14px 4px 0 10px; display: flex; }
.row-main { flex: 1; min-width: 0; text-align: left; border: 0; border-radius: 0; background: none; padding: 11px 12px 12px 8px; display: grid; gap: 3px; }
.row-main:active { transform: none; }
.row-top { display: flex; gap: 8px; align-items: baseline; }
.from { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.row time { font-size: 12px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.preview { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.unread .from { color: var(--text); font-weight: 600; }
.row.unread .subject { font-weight: 700; }
.row.unread::before { content: ""; position: absolute; left: -2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.star { color: #d99a00; }
.clip { color: var(--muted); }
.addr-chip { display: inline-block; max-width: 100%; font: 11.5px/1.6 var(--mono); color: var(--addr); background: var(--addr-bg); border-radius: 5px; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.addr-chip.big { font-size: 13px; padding: 1px 8px; font-weight: 600; }
.to { min-width: 0; display: flex; }
.list-foot { padding: 8px 18px 12px; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.list-foot button { font-size: 12px; }

/* ---------- 读信 ---------- */
.reader { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 14px 18px 18px; }
.empty { margin: auto; text-align: center; color: var(--muted); padding: 40px; }
.empty p { margin: 6px 0 0; }
.empty-mark { font-size: 34px; color: var(--line); line-height: 1; }
.empty.error { color: var(--danger); }
.reader-actions { display: flex; gap: 6px; padding: 2px 0 12px; flex-wrap: wrap; position: sticky; top: -14px; z-index: 1; background: var(--paper); }
.reader-actions button { font-size: 13px; }
.mail { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 30px 28px; display: flex; flex-direction: column; flex: 1 0 auto; }
.mail-subject { font: 600 24px/1.35 var(--serif); margin: 0 0 16px; overflow-wrap: anywhere; letter-spacing: .01em; }
.meta { display: grid; gap: 6px; font-size: 13px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); }
.meta-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.from-line { font-size: 14px; }
.from-line time { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.meta-k { color: var(--muted); min-width: 44px; font-size: 12px; }
.notice { background: var(--select); border: 1px solid var(--line); padding: 9px 14px; border-radius: 9px; margin-bottom: 12px; font-size: 13px; }
.notice p { margin: 0 0 8px; }
.notice button.link { color: var(--accent); margin-left: 8px; font-weight: 600; }
.row .spoof { color: var(--danger); font-weight: 700; cursor: help; }
.mail-frame { width: 100%; flex: 1; min-height: 58vh; border: 0; border-radius: 8px; background: #fff; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); align-items: center; }
.attachment { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--line); background: var(--paper); padding: 7px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 13px; transition: border-color var(--fast); }
.attachment:hover { border-color: var(--accent); }
.attachment .muted { font-size: 11px; }

/* ---------- 域名管理 ---------- */
.domains-page { grid-column: 2 / -1; overflow-y: auto; padding: 22px 34px 40px; }
.domains-head { display: flex; align-items: center; gap: 12px; }
.domains-head h2 { margin: 0; font: 600 26px/1.2 var(--serif); flex: 1; }
.add-domain { display: flex; gap: 8px; margin: 18px 0 10px; max-width: 680px; }
.add-domain input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); font-family: var(--mono); font-size: 13px; }
.add-domain input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.domains-table { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 920px; font-size: 13px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.domains-table th, .domains-table td { padding: 7px 14px; text-align: left; }
.domains-table th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--paper-2); }
.domains-table tr.root td { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.domains-table tr.root:first-child td { border-top: 0; }
.domains-table tr.subrow td:first-child { padding-left: 32px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.domains-table .num { text-align: right; font-variant-numeric: tabular-nums; }
td.ok, td.bad { font-weight: 700; }
td.ok { color: var(--ok); }
td.bad { color: var(--danger); }
.dns-table td { padding: 3px 14px 3px 0; font-family: var(--mono); font-size: 12px; }

/* ---------- 人员 ---------- */
.tree-label { padding: 6px 0 2px 32px; font-size: 10.5px; letter-spacing: .14em; color: #6f6b62; }
.nav-item.person .nav-label { color: var(--ink-strong); }
.nav-item.person.active .nav-label { color: var(--ink); }
.addr-chip.person b { font-family: var(--sans); font-weight: 600; margin-right: 2px; }
.person-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 18px; max-width: 920px; }
.person-form input, .person-form select { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); }
.person-form > input[name=name] { flex: 1 1 160px; }
.person-form > input[name=note] { flex: 2 1 200px; }
.person-form input:focus, .person-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.addr-input { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 13px; }
.addr-input input { width: 120px; font-family: var(--mono); }
.addr-input select { font-family: var(--mono); font-size: 12.5px; max-width: 230px; }
.people-group { margin-bottom: 26px; max-width: 920px; }
.people-group h3 { font: 600 18px/1.3 var(--serif); margin: 0 0 8px; }
.people-group h3 .muted { font: 12px var(--sans); }
.people-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.people-table th, .people-table td { padding: 7px 12px; text-align: left; border-top: 1px solid var(--line-soft); }
.people-table th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--paper-2); border-top: 0; }
.people-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 52px; }
.people-table td.edit input { width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px; }
.people-table td.edit input:hover { border-color: var(--line); }
.people-table td.edit input:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.people-table .row-actions { white-space: nowrap; text-align: right; }
.people-table .row-actions a { color: var(--accent); text-decoration: none; margin-right: 12px; }
.people-table .row-actions .danger { color: var(--danger); }
.badge.hot { background: var(--accent); color: #fff; }

/* ---------- 提示 ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-strong); padding: 9px 18px; border-radius: 10px; z-index: 20; box-shadow: var(--shadow); font-size: 13px; }
.toast.error { background: var(--danger); color: #fff; }
.mobile-only, .nav-backdrop { display: none; }

@media (max-width: 1180px) { .app { grid-template-columns: 230px minmax(300px, 350px) 1fr; } .mail { padding: 20px 22px; } }
@media (max-width: 760px) {
  .mobile-only { display: inline-block; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 22% 0 0; z-index: 6; transform: translateX(-102%); transition: transform 200ms ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 5; }
  .list-head { padding: 14px 14px 8px; }
  .list-title { grid-column: 2; }
  .list { padding: 4px 6px 10px; }
  .reader { display: none; }
  body.reading .reader { display: flex; position: fixed; inset: 0; z-index: 4; background: var(--paper); padding: 10px; }
  .mail { padding: 18px 16px; border-radius: 12px; }
  .mail-subject { font-size: 20px; }
  .domains-page { grid-column: 1; padding: 14px; }
  .domains-table th:nth-child(2), .domains-table td:nth-child(2) { display: none; }
  .people-table th:nth-child(3), .people-table td:nth-child(3), .people-table th:nth-child(5), .people-table td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 链接列表（安全备注里）与链接名单 ---------- */
.lk-all { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: none; }
.lk-all:hover { color: var(--accent); }
.lk-list { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.lk-list .lk:first-child { border-top: 0; }
.lk { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line-soft); }
.lk-state { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lk-safe .lk-state { color: var(--ok); }
.lk-danger .lk-state, .lk-danger .lk-host > span:first-child { color: var(--danger); }
.lk-suspect .lk-state { color: #a15c00; }
.lk-danger { background: #fdf0ed; }
.lk-suspect { background: #fffaea; }
.lk-host { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font: 600 13px/1.5 var(--mono); }
.lk-tag { font: 500 11px/1.6 var(--sans); color: var(--muted); background: var(--paper-2); border-radius: 4px; padding: 0 6px; }
.lk-suspect .lk-tag, .lk-danger .lk-tag { color: #8f1d12; background: #fbe1db; }
.lk-url { font: 11.5px/1.5 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-actions { display: flex; gap: 6px; }
.lk-actions .mark { padding: 3px 10px; font-size: 12px; }
.lk-actions .mark.safe { color: var(--ok); }
.lk-actions .mark.safe.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.lk-actions .mark.danger.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.add-domain select { padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); }
.links-table { max-width: 820px; }
.links-table td { border-top: 1px solid var(--line-soft); }
@media (prefers-color-scheme: dark) {
  .lk-danger { background: #2b1714; }
  .lk-suspect { background: #2a2414; }
  .lk-suspect .lk-tag, .lk-danger .lk-tag { background: #4a221c; color: #f6b3a7; }
}
@media (max-width: 760px) {
  .lk { grid-template-columns: minmax(0, 1fr) auto; }
  .lk-state { grid-column: 1 / -1; }
}

/* ---------- 安全栏（正文上方一条）与安全备注（正文后面）---------- */
.sec-bar { flex-shrink: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 10px 7px 8px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 13px; }
.sec-verdict { white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; color: var(--muted); background: var(--paper-2); }
.sec-ok .sec-verdict { color: var(--ok); background: #e3f1e8; }
.sec-warn { background: #fffaeb; border-color: #f1dfa8; }
.sec-warn .sec-verdict { color: #fff; background: #b7791f; }
.sec-danger { background: #fdf2ef; border-color: #f2c6bc; }
.sec-danger .sec-verdict { color: #fff; background: var(--danger); }
.sec-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.sec-tag { font-size: 12px; line-height: 1.7; padding: 0 8px; border-radius: 5px; }
.sec-tag.danger { color: #8f1d12; background: #fadcd5; }
.sec-tag.warn { color: #6f4b00; background: #fbecc0; }
.sec-quiet { font-size: 12px; color: var(--muted); }
.sec-actions { display: flex; gap: 14px; margin-left: auto; white-space: nowrap; }
.sec-actions button.link, .note-block button.link { color: var(--accent); font-weight: 600; font-size: 12.5px; }
.sec-actions button.link:hover, .note-block button.link:hover { text-decoration: underline; }

.mail-notes { flex-shrink: 0; margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.mail-notes > h2 { margin: 0 0 14px; font: 600 17px/1.3 var(--serif); }
.note-block { margin-bottom: 20px; }
.note-block > h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.note-block > h3 .lk-all { margin-left: auto; letter-spacing: 0; }
.note-block > p { margin: 0 0 6px; font-size: 13.5px; }
.note-block > p button.link { margin-left: 8px; }
.note-block > p.small { font-size: 12px; margin-bottom: 8px; }
.note-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.note-items li { position: relative; padding-left: 16px; }
.note-items li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.note-items li.ok::before { background: var(--ok); }
.note-items li.warn::before { background: #d69e2e; }
.note-items li.danger::before { background: var(--danger); }
.note-items li.danger { color: #8f1d12; }
.auth-line { margin-top: 8px; font: 11.5px/1.5 var(--mono); color: var(--muted); }
.note-block .more { display: block; padding: 8px 2px 0; color: var(--accent); font-weight: 600; font-size: 12.5px; }
@media (prefers-color-scheme: dark) {
  .sec-ok .sec-verdict { background: #1d3326; color: #7fd1a0; }
  .sec-warn { background: #2a2414; border-color: #4d3f1a; }
  .sec-danger { background: #2b1714; border-color: #5a2a22; }
  .sec-tag.danger { background: #4a221c; color: #f6b3a7; }
  .sec-tag.warn { background: #3e3214; color: #f3d58a; }
  .note-items li.danger { color: #f6b3a7; }
}
@media (max-width: 760px) {
  .sec-actions { margin-left: 0; }
}
