:root {
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text: #1f2328;
  --text-2: #4b5563;
  --text-3: #656e79;
  --line: #e3e5e8;
  --line-soft: #eef0f2;
  --line-strong: #cfd4da;
  --bg: #fff;
  --bg-soft: #f6f7f8;
  --accent: #24508f;
  --key: #a8501c;
  --ok: #2f7d4f;
  --warn: #9a6a00;
  --danger: #b42318;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--sans); color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.nowrap { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #1d4378; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8f1c13; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
form.inline { display: inline; }

.field { display: block; margin-bottom: 16px; }
.field .label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field .label em { font-style: normal; font-weight: 400; color: var(--text-3); margin-left: 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(36, 80, 143, .12); }
.hint { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.check input { margin-top: 4px; }
.form-actions { display: flex; gap: 8px; margin-top: 24px; }

.alert { padding: 10px 12px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.alert-error { background: #fdf3f2; border-color: #f1cdc8; color: #8a1f15; }
.alert-ok { background: #eff7f2; border-color: #c8e2d1; color: #1f5c37; }

.tag { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 12px; line-height: 20px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.tag-key { background: #fbf2ea; border-color: #efd7c4; color: var(--key); }
.tag-ok { background: #eff7f2; border-color: #c8e2d1; color: var(--ok); }
.tag-warn { background: #fdf7e6; border-color: #eedfae; color: var(--warn); }
.tag-bad { background: #fdf3f2; border-color: #f1cdc8; color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--text-3); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--line); color: var(--text-3); font-size: .8125rem; }
.site-footer-inner { max-width: 960px; margin: 0 auto; padding: 17px 24px 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; }
.site-footer-inner > :first-child { margin-right: auto; }
.site-footer a { color: var(--text-2); }
.admin-site .site-footer-inner { max-width: 1168px; }
@media (max-width: 720px) {
  .site-footer-inner { padding-inline: 16px; gap: 6px 16px; }
  .site-footer-inner > span { flex-basis: 100%; }
}
