﻿/* slide-restore UI */
:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --brand: #1e3a5f;
  --brand-2: #2563eb;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --err: #b91c1c;
  --err-bg: #fee2e2;
  --run: #1d4ed8;
  --run-bg: #dbeafe;
  --muted-bg: #f1f5f9;
  --intr: #6d28d9;
  --intr-bg: #ede9fe;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: 20px; }
h3.section-title { margin: 22px 0 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- topbar ---------- */
.topbar { background: var(--brand); color: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 60; }
.topbar-inner {
  max-width: 1560px; margin: 0 auto; padding: 0 22px; height: 54px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; background: #2f5d8a;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav-link { color: #cbd5e1; padding: 7px 12px; border-radius: 7px; font-size: 14px; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,.14); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.env-badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.env-mock { background: rgba(250, 204, 21, .16); color: #fde68a; }
.env-real { background: rgba(34, 197, 94, .16); color: #bbf7d0; }
.global-active { font-size: 12px; color: #fde68a; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 13px; color: #e2e8f0; }
.inline-form { display: inline; margin: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1560px; margin: 0 auto; padding: 22px; flex: 1; }
.footer {
  max-width: 1560px; margin: 0 auto; padding: 14px 22px 22px; width: 100%;
  color: var(--ink-3); font-size: 12px; display: flex; justify-content: space-between;
}
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.page-head .sub { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.head-side { display: flex; align-items: center; gap: 8px; }
.head-sep { color: #cbd5e1; margin: 0 4px; }
.crumb { margin-bottom: 10px; font-size: 13px; }

/* ---------- cards ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px;
}
.table-card { padding: 0; overflow: hidden; }
.narrow-card { max-width: 480px; }
.case-card { padding: 14px 16px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 22px; }
.kv-grid > div { display: flex; flex-direction: row; align-items: baseline; gap: 10px; min-width: 0; }
.kv-grid > div.wide { grid-column: span 2; }
.kv-grid .k { flex: 0 0 96px; font-size: 12px; color: var(--ink-3); text-align: right; }
.kv-grid .v { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink); }
.kv-grid .v.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- filters ---------- */
.filters {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group.grow { flex: 1 1 220px; min-width: 200px; }
.filter-label { font-size: 12px; color: var(--ink-3); }
.checks { display: flex; gap: 12px; padding-top: 5px; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.date-range { display: flex; align-items: center; gap: 6px; }
.date-range input { cursor: pointer; }
.filter-actions { display: flex; gap: 8px; }

input[type="text"], input[type="password"], input[type="date"], input[type="time"],
input[type="number"], input[type="datetime-local"], input:not([type]), select {
  height: 32px; padding: 0 9px; border: 1px solid #cfd6e0; border-radius: 7px;
  font: inherit; color: var(--ink); background: #fff; outline: none;
}
.filter-group input:not([type="checkbox"]):not([type="hidden"]):not([type="date"]) { min-width: 150px; }
input:focus, select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
select { min-width: 120px; }

/* ---------- 输入框快速清空 ---------- */
.input-clear { position: relative; display: flex; align-items: center; }
.input-clear input { width: 100%; padding-right: 26px; }
.clear-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: 0; border-radius: 50%; padding: 0;
  background: #e2e8f0; color: #475569; font-size: 14px; line-height: 18px;
  cursor: pointer; display: none;
}
.input-clear.has-value .clear-btn { display: inline-flex; align-items: center; justify-content: center; }
.clear-btn:hover { background: #cbd5e1; }

/* ---------- 医院下拉 ---------- */
.hospital-picker { position: relative; min-width: 200px; }
.hospital-picker .input-clear { width: 100%; }
.hp-list {
  position: absolute; z-index: 30; top: calc(100% + 3px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .28); padding: 4px;
}
.hp-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; padding: 6px 8px; border: 0; border-radius: 6px;
  background: transparent; font: inherit; font-size: 13px; color: var(--ink);
  text-align: left; cursor: pointer;
}
.hp-item:hover { background: #eff6ff; }
.hp-sub { font-size: 11px; color: var(--ink-3); }
.hp-empty { padding: 10px; color: var(--ink-3); font-size: 12px; text-align: center; }

.table-empty { text-align: center !important; color: var(--ink-3); padding: 44px 12px !important; }

/* ---------- 快速复制 ---------- */
.copyable {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border-radius: 4px; padding: 0 2px; max-width: 100%;
}
.copyable:hover { background: #eef2ff; }
.copy-text { min-width: 0; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  opacity: .45; vertical-align: middle;
}
.copy-btn svg { display: block; }
.copyable:hover .copy-btn, .copyable-block:hover .copy-btn { opacity: 1; color: var(--brand-2); }
.copy-btn:hover { background: #e2e8f0; }
.copyable-block { cursor: pointer; }
.copyable-block:hover { background: #eef2ff; }
.copyable-block .copy-btn { margin-left: 4px; }
.copy-toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(6px);
  background: #111827; color: #fff; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; z-index: 99; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.copy-toast.show { opacity: .92; transform: translateX(-50%) translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid #cfd6e0;
  background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: #f8fafc; border-color: #b9c2cf; text-decoration: none; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: #e2e8f0; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: transparent; }
.btn-sm { height: 27px; padding: 0 9px; font-size: 12px; }
.btn-block { width: 100%; height: 38px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- table ---------- */
.table-wrap { width: 100%; overflow: auto; max-height: calc(100vh - 330px); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th, .data-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table thead th {
  background: #f8fafc; color: var(--ink-2); font-weight: 600; font-size: 12px;
  position: sticky; top: 0; z-index: 3; white-space: nowrap;
}
.data-table tbody tr:hover { background: #f9fbff; }
.data-table .num { text-align: right; }
.data-table .ops { white-space: nowrap; }
.data-table .ops .btn { margin-left: 4px; }
.data-table td.ops, .data-table th.ops {
  position: sticky; right: 0; background: #fff; z-index: 2;
  box-shadow: -6px 0 8px -6px rgba(15, 23, 42, .18);
}
.data-table thead th.ops { background: #f8fafc; z-index: 4; }
.data-table tbody tr:hover td.ops { background: #f9fbff; }
.data-table .pick { width: 34px; }
.data-table .ellipsis, .ellipsis { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .path { max-width: 320px; }
.records-table { min-width: 1780px; }
.records-table th, .records-table td { white-space: nowrap; }
.records-table .ellipsis { max-width: 150px; }

/* 切片表：固定列宽，路径列换行显示，避免遮挡大小列 */
.slice-table { table-layout: fixed; min-width: 1460px; }
.slice-table th:nth-child(1),  .slice-table td:nth-child(1)  { width: 36px; }
.slice-table th:nth-child(2),  .slice-table td:nth-child(2)  { width: 64px; }
.slice-table th:nth-child(3),  .slice-table td:nth-child(3)  { width: 150px; }
.slice-table th:nth-child(4),  .slice-table td:nth-child(4)  { width: 410px; }
.slice-table th:nth-child(5),  .slice-table td:nth-child(5)  { width: 78px; }
.slice-table th:nth-child(6),  .slice-table td:nth-child(6)  { width: 72px; }
.slice-table th:nth-child(7),  .slice-table td:nth-child(7)  { width: 56px; }
.slice-table th:nth-child(8),  .slice-table td:nth-child(8)  { width: 92px; }
.slice-table th:nth-child(9),  .slice-table td:nth-child(9)  { width: 72px; }
.slice-table th:nth-child(10), .slice-table td:nth-child(10) { width: 120px; }
.slice-table th:nth-child(11), .slice-table td:nth-child(11) { width: 130px; }
.slice-table th:nth-child(12), .slice-table td:nth-child(12) { width: 180px; }
.slice-table td.path {
  white-space: normal; word-break: break-all; overflow-wrap: anywhere;
  overflow: hidden; vertical-align: top; line-height: 1.5;
}
.slice-table td:nth-child(12) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slice-table th, .slice-table td { overflow: hidden; }

/* 固定列到「患者姓名」（前 6 列：主键/类型/报告ID/医院/病理号/患者姓名） */
.records-table thead th:nth-child(-n+6),
.records-table tbody td:nth-child(-n+6) {
  position: sticky; background: #fff; z-index: 2;
}
.records-table thead th:nth-child(-n+6) { background: #f8fafc; z-index: 5; }
.records-table tbody tr:hover td:nth-child(-n+6) { background: #f9fbff; }
.records-table th:nth-child(1), .records-table td:nth-child(1) { left: 0;     width: 64px;  min-width: 64px; }
.records-table th:nth-child(2), .records-table td:nth-child(2) { left: 64px;  width: 82px;  min-width: 82px; }
.records-table th:nth-child(3), .records-table td:nth-child(3) { left: 146px; width: 78px;  min-width: 78px; }
.records-table th:nth-child(4), .records-table td:nth-child(4) { left: 224px; width: 150px; min-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.records-table th:nth-child(5), .records-table td:nth-child(5) { left: 374px; width: 132px; min-width: 132px; overflow: hidden; text-overflow: ellipsis; }
.records-table th:nth-child(6), .records-table td:nth-child(6) {
  left: 506px; width: 112px; min-width: 112px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .18);
}
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }
.row-disabled { color: var(--ink-3); background: #fbfcfe; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-run { background: var(--run-bg); color: var(--run); }
.badge-muted { background: var(--muted-bg); color: var(--ink-3); }
.badge-intr { background: var(--intr-bg); color: var(--intr); }
.type { display: inline-flex; padding: 1px 7px; border-radius: 5px; font-size: 12px; background: #eef2f7; color: var(--ink-2); }
.type-frozen { background: #e0f2fe; color: #0369a1; }
.type-he { background: #ede9fe; color: #6d28d9; }
.type-tct { background: #dcfce7; color: #15803d; }
.count-pill { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.slice-count { font-family: Consolas, monospace; font-size: 12px; color: var(--ink-3); }
.slice-count.has-restorable { color: var(--brand-2); font-weight: 600; }

/* ---------- action bar / job ---------- */
.action-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px;
}
.action-buttons { margin-left: auto; display: flex; gap: 8px; }
.sel-info { color: var(--ink-3); font-size: 13px; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.job-stats { color: var(--ink-2); font-size: 13px; }
.progress { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { height: 100%; width: 0; background: var(--brand-2); transition: width .3s; }
.job-items { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; }
.job-item { font-size: 12px; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; background: #f8fafc; }
.job-item-success { background: var(--ok-bg); color: var(--ok); }
.job-item-failed { background: var(--err-bg); color: var(--err); }
.job-item-skipped { background: var(--warn-bg); color: var(--warn); }
.job-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- states ---------- */
.empty-state { padding: 48px 16px; text-align: center; color: var(--ink-3); }
.empty-state p { margin: 0 0 12px; }
.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-mock { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.error-card { max-width: 620px; margin: 40px auto; text-align: center; }
.error-message { color: var(--ink-2); }
.error-detail { text-align: left; background: #f8fafc; padding: 10px; border-radius: 8px; font-size: 12px; overflow-x: auto; }
.actions { margin-top: 14px; }
.hidden { display: none !important; }

/* ---------- pager ---------- */
.pager {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 0 0 18px; padding: 10px 14px;
  background: rgba(244, 246, 250, .97); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 -6px 14px -10px rgba(15, 23, 42, .35);
}
.pager-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 12px; }
.pager-current { padding: 3px 10px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; }
.pager-gap { color: var(--ink-3); padding: 0 2px; }
.page-size { display: inline-flex; align-items: center; gap: 5px; }
.page-size select { height: 28px; min-width: 64px; }
.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- retention ---------- */
.required { color: var(--err); font-style: normal; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid #cfd6e0;
  background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: #b9c2cf; background: #f8fafc; }
.chip.active { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.retention-bar { gap: 12px; }
.retention-hint { color: var(--ink-3); font-size: 12px; }
.retention-hint.hint-error { color: var(--err); }
.conflict { color: var(--err); font-size: 12px; }

/* ---------- login ---------- */
.login-body { background: linear-gradient(135deg, #1e3a5f 0%, #2f5d8a 55%, #3b82f6 140%); align-items: center; justify-content: center; }
.login-card {
  width: 360px; max-width: calc(100vw - 32px); background: #fff; border-radius: 14px;
  padding: 28px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); margin: auto;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login-brand h1 { font-size: 19px; }
.login-brand p { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.login-form input { height: 36px; }
.login-hint { margin: 16px 0 0; text-align: center; color: var(--ink-3); font-size: 12px; }

/* ---------- forms ---------- */
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.stack-form label.check, .stack-form .check, .setting-block .check {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink);
}
.stack-form input { height: 34px; }
.stack-form .btn { align-self: flex-start; }

/* ---------- 切片恢复记录 ---------- */
.slice-records-table { min-width: 2040px; }
.slice-records-table th, .slice-records-table td { white-space: nowrap; }
.slice-records-table .ellipsis { max-width: 190px; }
.slice-records-table td.path {
  width: 240px; max-width: 240px; white-space: normal; word-break: break-all;
  overflow-wrap: anywhere; overflow: hidden; vertical-align: top;
}

/* ---------- 查看日志 ---------- */
.log-card { padding: 0; }
.log-meta {
  display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 16px;
  border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12px;
}
.log-meta code { font-size: 12px; color: var(--ink-2); }
.log-view {
  max-height: calc(100vh - 300px); overflow: auto; padding: 12px 16px;
  background: #0f172a; color: #e2e8f0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px; line-height: 1.65;
}
.log-line { white-space: pre-wrap; word-break: break-all; }
.log-error { color: #fca5a5; }
.log-warning { color: #fcd34d; }
.log-debug { color: #94a3b8; }
.log-info { color: #cbd5e1; }

/* ---------- 系统设置 ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.stat span { font-size: 12px; color: var(--ink-3); }
.stat b { font-size: 15px; color: var(--ink); }
.text-ok { color: var(--ok) !important; }
.text-muted { color: var(--ink-3) !important; }
.settings-card { max-width: 860px; }
.settings-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px; align-items: start; margin-bottom: 16px;
}
.settings-grid .settings-card { max-width: none; margin-bottom: 0; }
.setting-block { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line); }
.inline-field { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.inline-field input[type="number"] { width: 90px; }
.form-actions { display: flex; gap: 10px; padding-top: 6px; }
.run-form { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.settings-card .hint { color: var(--ink-3); font-size: 12px; margin: 8px 0 0; }
.switch { font-size: 14px; color: var(--ink); }

/* ---------- cron 调度 ---------- */
.cron-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.cron-field { display: flex; flex-direction: column; gap: 4px; }
.cron-field select { width: 108px; }
.cron-field .cron-label { font-size: 12px; color: var(--ink-2); }
.cron-field .cron-tip { font-size: 11px; color: var(--ink-3); max-width: 120px; line-height: 1.35; }
.cron-preview {
  margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: #f8fafc;
  border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.cron-preview code { color: var(--brand-2); font-size: 13px; }
.cron-preview .cron-desc { margin-left: 8px; color: var(--ink-3); }
.cron-preview .cron-pending { display: block; margin-top: 4px; color: var(--warn); font-size: 12px; }

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv-grid > div.wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 12px; padding: 0 12px; }
  .container { padding: 12px; }
  .kv-grid { grid-template-columns: 1fr; }
  .kv-grid > div.wide { grid-column: span 1; }
}


