/* 后台样式：对齐 v2（Ant Design Pro 6 / antd v5 light）
   token 取自 v2 的 config/defaultSettings.ts：navTheme=light, colorPrimary=#1677ff, layout=mix */
:root {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-bg: #e6f4ff;
  --primary-border: #91caff;

  --success: #52c41a;
  --success-bg: #f6ffed;
  --success-border: #b7eb8f;
  --warning: #faad14;
  --warning-bg: #fffbe6;
  --warning-border: #ffe58f;
  --error: #ff4d4f;
  --error-bg: #fff2f0;
  --error-border: #ffccc7;

  --text: rgba(0, 0, 0, .88);
  --text-2: rgba(0, 0, 0, .65);
  --muted: rgba(0, 0, 0, .45);
  --heading: rgba(0, 0, 0, .88);

  --border: #d9d9d9;
  --split: #f0f0f0;
  --hairline: #ebedf0;
  --bg-layout: #f7f8fa;
  --bg-container: #fff;
  --bg-hover: #fafafa;
  --header-bg: #001529;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px 0 rgba(0,0,0,.03), 0 1px 6px -1px rgba(0,0,0,.02), 0 2px 4px 0 rgba(0,0,0,.02);
  --shadow-hover: 0 6px 16px 0 rgba(0,0,0,.06), 0 3px 6px -4px rgba(0,0,0,.06), 0 9px 28px 8px rgba(0,0,0,.03);
  --shadow-pop: 0 6px 16px 0 rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05);
  --ring: 0 0 0 3px rgba(22,119,255,.12);
  --ease: cubic-bezier(.645,.045,.355,1);

  /* 旧变量名保留，值换成 antd 的，避免逐页改 */
  --bg: var(--bg-layout);
  --bg2: var(--bg-container);
  --panel: var(--bg-container);
  --line: var(--split);
  --accent: var(--primary);
  --coruna: var(--primary);
  --ds: var(--success);
  --warn: var(--warning);
  --danger: var(--error);
  --ok: var(--success);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg-layout); color: var(--text);
  font: 14px/1.5714 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: rgba(22,119,255,.16); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d5d8dd; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b8bcc4; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: none; }

/* ---------- ProLayout: mix（深色顶栏 + 浅色侧栏） ---------- */
.layout { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  height: 56px; background: linear-gradient(90deg, #001021 0%, var(--header-bg) 42%, #002247 100%);
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px 0 20px; position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0; white-space: nowrap; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 7px; color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 55%, #69b1ff 100%);
  box-shadow: 0 2px 8px rgba(22,119,255,.45), inset 0 1px 0 rgba(255,255,255,.28);
}
.brand span { color: rgba(255,255,255,.55); font-weight: 400; font-size: 13px; padding-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.topbar-right a { color: rgba(255,255,255,.75); }
.topbar-right a:hover { color: #fff; }
.topbar-right > span { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 7px; }
.topbar-right > span::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
}
.body-row { display: flex; flex: 1; min-height: 0; }
.side { width: 216px; background: var(--bg-container); border-right: 1px solid var(--hairline); padding: 10px 0 24px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex: 0 0 216px; }
.nav a { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 0 16px 0 20px; height: 38px; line-height: 38px; margin: 1px 8px; border-radius: var(--radius-sm); text-decoration: none; position: relative; font-size: 14px; transition: background .18s var(--ease), color .18s var(--ease); }
.nav a:hover { color: var(--text); background: var(--bg-hover); }
.nav a.on { color: var(--primary); background: linear-gradient(90deg, rgba(230,244,255,.9), rgba(230,244,255,.45)); font-weight: 500; }
.nav a.on::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 2px; background: var(--primary); }
.nav a svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .8; }
.nav a.on svg { opacity: 1; }
.nav .nav-group { color: var(--muted); font-size: 11px; font-weight: 500; padding: 16px 20px 7px; opacity: .9; }

.main { flex: 1; min-width: 0; padding: 24px 28px 56px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; }
.top h1 { font-size: 21px; margin: 0; font-weight: 600; color: var(--heading); line-height: 1.35; }
.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.btn-mnemonic-reveal { font-size: 13px; padding: 4px 12px; }
.muted { color: var(--muted); }
.user { color: var(--muted); font-size: 13px; }
.user a { margin-left: 12px; color: rgba(255,255,255,.75); }
.user a:hover { color: #fff; }

/* ---------- 卡片 / 表单 / 按钮 ---------- */
.card { background: var(--bg-container); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.card > h3:first-child { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.card-head h3 { font-size: 15px; font-weight: 600; color: var(--heading); }
.card-head-ico { width: 26px; height: 26px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; background: #f2f4f7; color: var(--text-2); flex: 0 0 26px; }
.card-head-ico svg { width: 15px; height: 15px; }
.card-head-more { margin-left: auto; font-size: 13px; color: var(--muted); }
.card-head-more:hover { color: var(--primary); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  background: var(--bg-container); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 11px; min-height: 32px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: auto; }
input::placeholder, textarea::placeholder { color: rgba(0,0,0,.25); }
input:hover, select:hover, textarea:hover { border-color: var(--primary-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--primary-hover); box-shadow: var(--ring); }
label { color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100%; min-width: 0; }
.field > span { font-size: 13px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; }
.callout { border: 1px solid var(--warning-border); background: var(--warning-bg); color: var(--text); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.7; }
.callout.info { border-color: var(--primary-border); background: var(--primary-bg); }
button, .btn {
  background: var(--bg-container); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 15px; height: 32px; font-weight: 400;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s var(--ease); line-height: 1; white-space: nowrap;
}
button:hover, .btn:hover { color: var(--primary); border-color: var(--primary-hover); }
button.primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 400; box-shadow: 0 2px 0 rgba(5,145,255,.1); }
button.primary:hover, .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; box-shadow: 0 4px 12px rgba(22,119,255,.28); }
button.primary:active, .btn.primary:active { background: var(--primary-active); border-color: var(--primary-active); box-shadow: none; }
button.ghost, .btn.ghost { background: var(--bg-container); color: var(--text); border: 1px solid var(--border); }
button.danger, .btn.danger { background: var(--error); color: #fff; border-color: var(--error); }
button.danger:hover, .btn.danger:hover { background: #ff7875; border-color: #ff7875; color: #fff; }
.table .btn.danger { padding: 1px 8px; font-size: 12px; height: 24px; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--bg-container); }
.table th, .table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.table th { color: var(--text-2); font-weight: 600; font-size: 13px; background: #fafbfc; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 4px; }
.table th:last-child, .table td:last-child { padding-right: 4px; }
.table tbody tr:first-child th { border-start-start-radius: 0; }
.table tbody tr { transition: background .16s var(--ease); }
.table tr:hover td { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table code { font-size: 12px; color: var(--text-2); }

/* ---------- Tag 风格徽章 ---------- */
.badge { display: inline-block; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; line-height: 20px; border: 1px solid transparent; white-space: nowrap; }
.badge.coruna { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-border); }
.badge.darksword { background: var(--success-bg); color: #389e0d; border-color: var(--success-border); }
.badge.on { background: var(--success-bg); color: #389e0d; border-color: var(--success-border); }
.badge.off { background: #fafafa; color: var(--text-2); border-color: #d9d9d9; }
.badge.pending { background: var(--warning-bg); color: #d89614; border-color: var(--warning-border); }
.badge.pl { background: var(--warning-bg); color: #d89614; border-color: var(--warning-border); }
.badge.combo { background: #f9f0ff; color: #722ed1; border-color: #d3adf7; }
.badge.sent { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-border); }
.badge.done { background: var(--success-bg); color: #389e0d; border-color: var(--success-border); }
.badge.likely { background: var(--error-bg); color: #cf1322; border-color: var(--error-border); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--split); }
.tabs a { padding: 10px 2px; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--primary-hover); }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* ---------- 描述列表 / 分页 ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; }
.kv b { color: var(--muted); font-weight: 400; }
.pager { margin-top: 16px; color: var(--muted); }
.pager a { margin-right: 8px; }
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-container); }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active span { border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ---------- 统计卡（仪表盘） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: minmax(0, 1fr); } }
.stat-card {
  position: relative; overflow: hidden; background: var(--bg-container);
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-card); transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--primary-border); }
.stat-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.stat-ico { width: 30px; height: 30px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; background: #f2f4f7; color: var(--text-2); flex: 0 0 30px; }
.stat-ico svg { width: 16px; height: 16px; }
.stat-card .stat-title { color: var(--muted); font-size: 13px; font-weight: 400; }
.stat-card .stat-value { font-size: 30px; line-height: 1.15; font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat-card .stat-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--muted); }
.stat-card .stat-value small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.stat-card.accent .stat-value { color: var(--primary); }
.stat-card.accent::before { background: var(--primary); }
.stat-card.accent .stat-ico { background: var(--primary-bg); color: var(--primary); }
.stat-card.ok .stat-value { color: #389e0d; }
.stat-card.ok::before { background: var(--success); }
.stat-card.ok .stat-ico { background: var(--success-bg); color: #389e0d; }
.stat-card.warn .stat-value { color: #d89614; }
.stat-card.warn::before { background: var(--warning); }
.stat-card.warn .stat-ico { background: var(--warning-bg); color: #d89614; }
.stat-card.err .stat-value { color: #cf1322; }
.stat-card.err::before { background: var(--error); }
.stat-card.err .stat-ico { background: var(--error-bg); color: #cf1322; }

/* ---------- 相册 ---------- */
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.photo-item { background: var(--bg-container); border: 1px solid var(--split); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.photo-thumb { position: relative; display: block; }
.photo-scan-badge { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 11px; padding: 1px 7px; box-shadow: 0 1px 4px rgba(0,0,0,.15); pointer-events: none; }
.photo-item img { width: 100%; height: 160px; object-fit: cover; display: block; }
.photo-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.photo-meta code { font-size: 11px; word-break: break-all; color: var(--text-2); }
.photo-cell { display: flex; flex-direction: column; gap: 4px; }
.photo-cell .btn-del-photo, .photo-meta .btn-del-photo { padding: 1px 10px; font-size: 12px; height: 26px; align-self: stretch; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photos a { display: block; background: var(--bg-container); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--split); }
.photos .photo-thumb { position: relative; }
.photos img { width: 100%; height: 140px; object-fit: cover; display: block; }

/* ---------- 备忘录 ---------- */
.note-list-tg { display: flex; flex-direction: column; gap: 2px; }
.note-row-tg { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); color: inherit; border: 1px solid var(--split); background: var(--bg-container); margin-bottom: 8px; }
.note-row-tg:hover { border-color: var(--primary-border); }
.note-row-device a { text-decoration: none; }
.note-row-device a:hover code { color: var(--primary); }
.note-row-meta .btn.ghost { padding: 1px 10px; font-size: 12px; white-space: nowrap; height: 26px; }
.note-detail-block p { margin: 0 0 10px; text-align: left; }
.note-detail-body { max-height: 420px; text-align: left; margin: 0; }
.note-row-device { flex: 0 0 auto; max-width: 28%; }
.note-row-device code { font-size: 11px; word-break: break-all; }
.note-row-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.note-row-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.note-item { background: var(--bg-container); border: 1px solid var(--split); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.note-item h3 { margin: 6px 0 10px; font-size: 15px; font-weight: 600; color: var(--heading); }

/* ---------- 代码块 / 密钥 ---------- */
.pre { white-space: pre-wrap; word-break: break-all; background: #fafafa; border: 1px solid var(--split); border-radius: var(--radius-sm); padding: 12px; font-size: 12px; color: var(--text-2); max-height: 280px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.secret { background: var(--error-bg); border: 1px solid var(--error-border); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.secret code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; color: #cf1322; font-size: 12px; }
.secret-cell { min-width: 280px; max-width: 560px; }
.wallet-group h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wallet-pair { border: 1px solid var(--split); border-radius: var(--radius); padding: 12px 14px 6px; margin-bottom: 16px; background: #fafafa; }
.wallet-pair .secret { margin-bottom: 10px; }
.wallet-pair .wallet-fold { margin-top: 0; }
.wallet-fold { border: 1px solid var(--split); border-radius: var(--radius-sm); margin: 10px 0; background: var(--bg-container); }
.wallet-fold summary { cursor: pointer; padding: 10px 12px; color: var(--text); list-style: none; display: flex; gap: 8px; align-items: center; }
.wallet-fold summary::-webkit-details-marker { display: none; }
.wallet-fold summary::before { content: "▸"; color: var(--muted); }
.wallet-fold[open] summary::before { content: "▾"; }
.wallet-fold .table { margin: 0 12px 12px; width: calc(100% - 24px); }

/* ---------- 推广链接 ---------- */
.promo-link-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.promo-url { display: block; font-size: 12px; line-height: 1.6; word-break: break-all; color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.promo-link-actions .btn.ghost { padding: 1px 11px; font-size: 12px; height: 28px; }
.promo-iframe-wrap { margin-top: 10px; max-width: 560px; }
.promo-iframe-snippet { display: block; font-size: 11px; line-height: 1.5; word-break: break-all; white-space: pre-wrap; padding: 10px 12px; background: #fafafa; border-radius: var(--radius-sm); border: 1px solid var(--split); color: var(--text-2); }
button.btn-toggle-iframe.on { border-color: var(--primary); color: var(--primary); }

/* ---------- 设备详情：命令 ---------- */
.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apps-all { display: none; margin-top: 12px; }
.apps-all.show { display: block; }
.tg-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 登录页（Ant Design Pro 风） ---------- */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #f7f8fa 0%, #eef1f6 100%); }
.login-box { width: 360px; background: transparent; border: 0; border-radius: 0; padding: 32px 0; box-shadow: none; }
.login-box h1 { margin: 0 0 32px; font-size: 26px; font-weight: 600; display: flex; align-items: center; gap: 12px; color: var(--heading); }
.login-box h1 .logo { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1677ff 0%, #4096ff 55%, #69b1ff 100%); box-shadow: 0 4px 14px rgba(22,119,255,.35), inset 0 1px 0 rgba(255,255,255,.28); }
.login-box p { margin: 0 0 24px; color: var(--muted); }
.login-box label { display: block; margin: 16px 0 8px; color: var(--text-2); }
.login-box input { width: 100%; height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); }
.login-box button { width: 100%; margin-top: 24px; height: 42px; background: var(--primary); color: #fff; border-color: var(--primary); font-size: 15px; border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(22,119,255,.3); }
.login-box button:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.login-foot { color: var(--muted); font-size: 12px; margin-top: 24px; }

.err { color: var(--error); margin: 0 0 12px; }
.ok { color: #389e0d; }

/* ---------- SweetAlert2 ---------- */
.swal2-popup.adm-swal { background: var(--bg-container); color: var(--text); border: 1px solid var(--split); border-radius: var(--radius); box-shadow: 0 6px 16px 0 rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12); }
.swal2-popup.adm-swal .swal2-title { color: var(--heading); font-size: 16px; font-weight: 600; }
.swal2-popup.adm-swal .swal2-html-container { color: var(--text-2); }
.swal2-popup.adm-swal .swal2-actions { gap: 8px; }
.swal-json {
  max-height: 70vh; overflow: auto; text-align: left;
  white-space: pre-wrap; word-break: break-word;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fafafa; border: 1px solid var(--split); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 0; color: var(--text);
}
.swal-json .jk { color: #0958d9; }
.swal-json .js { color: #389e0d; }
.swal-json .jn { color: #d89614; }
.swal-json .jl { color: #c41d7f; }

@media (max-width: 900px) {
  .body-row { display: block; }
  .side { width: auto; height: auto; position: relative; top: 0; flex: none; border-right: 0; border-bottom: 1px solid var(--split); }
  .nav { display: flex; flex-wrap: wrap; }
  .nav a.on::after { display: none; }
  .cmd-grid { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}
