/* 管理后台补充样式（共用部分在 /assets/site.css）。 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.login label, .form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 7px 10px; min-width: 0; }
textarea { min-height: 64px; }
.msg { min-height: 1.2em; margin: 0; font-size: 13px; color: var(--bad); }
.msg.ok { color: var(--ok); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
main h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input { flex: 1 1 200px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; }
.tile .k { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .v.small { font-size: 14px; font-weight: 600; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
th { font-weight: 600; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; min-width: 180px; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--primary-soft); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border);
        background: var(--surface-2); color: var(--text-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form label { flex: 1 1 160px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 14px 0; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: inherit;
               font-size: 14px; color: var(--text-2); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tree { list-style: none; padding-left: 0; margin: 0; }
.tree ul { list-style: none; padding-left: 20px; margin: 4px 0 6px; border-left: 1px dashed var(--border-strong); }
.tree li { margin: 4px 0; }
.node { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 10px; background: var(--surface);
        border: 1px solid var(--border); border-radius: var(--radius); }
.node .t { font-weight: 600; }
.modal { position: fixed; inset: 0; background: rgba(9, 9, 11, 0.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-box { width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.secret { font-family: var(--font-mono); font-size: 18px; padding: 10px 12px; border: 1px dashed var(--primary);
          border-radius: var(--radius); background: var(--primary-soft); user-select: all; word-break: break-all; }
pre.content { white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow: auto; background: var(--surface-2);
              padding: 10px; border-radius: var(--radius); font-size: 13px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .side-foot { margin-top: 0; flex-direction: row; align-items: center; }
  .side-foot p { display: none; }
}

.mt { margin-top: 16px; }
.form label.chk { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; }
