:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e6e8eb;
  --text: #1f2328;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
h1,h2,h3,h4 { font-weight: 600; margin: 0 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--text); }
.brand-mark { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang-wrap { position: relative; }
.lang-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer; color: var(--text); font-size: 13px; }
.lang-menu { display: none; position: absolute; right: 0; top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); min-width: 110px; padding: 4px; }
.lang-menu.show { display: block; }
.lang-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.lang-menu a:hover { background: var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; background: #f1f3f5; color: var(--text); white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-xs { padding: 4px 8px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.hero { text-align: center; padding: 90px 20px 70px; background: linear-gradient(180deg, #eff4ff 0%, var(--bg) 100%); }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-block; background: #dbeafe; color: #1d4ed8; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 44px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: var(--muted); margin-bottom: 28px; }
.features { max-width: 1000px; margin: 0 auto; padding: 40px 20px 80px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-card h3 { font-size: 16px; }
.feature-card p { color: var(--muted); margin: 0; }
.auth-wrap { min-height: calc(100vh - 60px); display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
label.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); }
input[type=checkbox] { width: auto; flex: 0 0 auto; padding: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--primary); }
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.divider { text-align: center; margin: 20px 0; color: var(--muted); font-size: 12px; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.divider span { background: var(--surface); padding: 0 10px; position: relative; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; margin: 4px 0 0; }
.label-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.label-row .hint { margin: 0; }
.label-row .hint code { color: var(--primary); }
.mini-copy { border: none; background: transparent; cursor: pointer; color: var(--muted); padding: 1px 4px; font-size: 13px; border-radius: 4px; }
.mini-copy:hover { background: #eef2f7; color: #1d4ed8; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
/* 操作列：宽度由按钮内容决定（比按钮略宽即可），表头与按钮均右对齐 */
.data-table th.row-actions-head { text-align: right; width: 1%; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
.panel-layout { display: flex; min-height: calc(100vh - 60px); }
.sidebar { width: 230px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 12px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 20px; font-size: 16px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.side-nav a:hover { background: var(--bg); color: var(--text); }
.side-nav a.active { background: #eff6ff; color: var(--primary); }
.side-foot { padding: 12px; border-top: 1px solid var(--border); }
.panel-main { flex: 1; padding: 28px 32px; min-width: 0; }
.page-title { font-size: 24px; margin-bottom: 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-head .page-title { margin: 0; line-height: 1.2; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 24px; }
.stat-grid-3 { grid-template-columns: repeat(3,1fr); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 30px; font-weight: 700; line-height: 1.3; }
.stat-sub { font-size: 12px; color: var(--muted); }
.stat-value.success { color: var(--success); }
.stat-value.danger { color: var(--danger); }
.stat-accent { border-color: #bfdbfe; background: #eff6ff; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel-card h2 { font-size: 15px; margin: 0 0 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 12px 14px; background: #fafbfc; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 500; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #f0f1f2; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }
.endpoint-cell { white-space: nowrap; }
.endpoint-cell code { white-space: nowrap; }
.endpoint-cell .copy-endpoint, .endpoint-cell .copy-url { vertical-align: middle; margin-left: 6px; }
.copy-endpoint, .copy-url { border: none; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); padding: 2px 5px; border-radius: 4px; }
.copy-endpoint:hover, .copy-url:hover { background: #eef2f7; color: #1d4ed8; }
/* bi-link 字形偏细小，加大字号以匹配 bi-copy 的视觉大小 */
.copy-url .bi { font-size: 18px; vertical-align: -0.15em; }
.bi { vertical-align: -0.125em; }
.reveal-close .bi, .lang-btn .bi { vertical-align: middle; }
.kv-del .bi, .btn .bi { pointer-events: none; }
/* 创建按钮的加号图标放大，与文字视觉匹配 */
.btn .bi-plus { font-size: 17px; line-height: 1; }
/* 开关标签文字保持单行 */
label.inline { white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 30px; }
.masked { letter-spacing: 1px; }
.method { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; background: #eef2ff; color: #4338ca; }
.method-POST { background: #ecfdf5; color: #047857; }
.method-PUT, .method-PATCH { background: #fffbeb; color: #b45309; }
.method-DELETE { background: #fef2f2; color: #b91c1c; }
.event-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; background: #eff6ff; color: #1d4ed8; white-space: nowrap; }
.event-upstream_proxy { background: #f5f3ff; color: #6d28d9; }
.event-upstream_transmission { background: #ecfdf5; color: #047857; }
.status { font-weight: 600; }
.status.ok { color: var(--success); }
.status.bad { color: var(--danger); }
.tag { padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #475569; }
.tag-transmission { background: #f5f3ff; color: #6d28d9; }
.note-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-reveal { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chart { width: 100%; height: 200px; }
/* 图表标题行：标题 + 柱状/折线切换 */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.chart-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.chart-toggle-btn { border: none; background: var(--surface); color: var(--muted); padding: 5px 14px; font-size: 12px; cursor: pointer; font-family: inherit; }
.chart-toggle-btn + .chart-toggle-btn { border-left: 1px solid var(--border); }
.chart-toggle-btn:hover { background: #f1f3f5; }
.chart-toggle-btn.active { background: var(--primary); color: #fff; }
/* 图表悬浮提示 */
.chart-tooltip { position: absolute; display: none; pointer-events: none; z-index: 10; background: #1f2937; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; box-shadow: 0 4px 12px rgba(0,0,0,.2); white-space: nowrap; }
.chart-tooltip b { display: block; font-weight: 600; }
.chart-tooltip span { color: #93c5fd; }
.panel-card { position: relative; }
.chart-bar, .chart-dot { cursor: pointer; }
.chart-bar:hover, .chart-dot:hover { fill: #1d4ed8; }
.top-list { list-style: none; padding: 0; margin: 0; }
.top-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f1f2; }
.top-list li:last-child { border: none; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input { max-width: 240px; }
.filters select { width: auto; min-width: 130px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-box { background: var(--surface); border-radius: 14px; padding: 24px; width: 100%; max-width: 440px; max-height: 85vh; overflow: auto; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.modal-wide { max-width: 720px; }
.modal-reveal { background: rgba(0,0,0,.70); }
.reveal-box { position: relative; max-width: 520px; text-align: center; padding: 32px 28px 28px; }
.reveal-box h3 { font-size: 18px; margin-bottom: 6px; }
.reveal-box .hint { margin-bottom: 18px; }
.reveal-close { position: absolute; top: 12px; left: 14px; width: 30px; height: 30px; border: none; background: #f1f3f5; color: var(--muted); border-radius: 8px; font-size: 15px; line-height: 1; cursor: pointer; }
.reveal-close:hover { background: #e4e7eb; color: var(--text); }
.reveal-key { background: #f1f3f5; border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; word-break: break-all; }
.reveal-key code { background: none; font-size: 15px; letter-spacing: .5px; user-select: all; }
.recovery-box { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.recovery-box h3 { font-size: 14px; }
.recovery-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 16px 0; }
.recovery-list code { display: block; text-align: center; padding: 10px; font-size: 14px; letter-spacing: 1px; user-select: all; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.form-section h2 { font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 12px; }
.form-grid .span2 { grid-column: span 2; }
.auth-help { margin-top: 8px; font-size: 13px; color: var(--muted); }
.auth-help li { margin-bottom: 6px; }
.kv-section { margin: 18px 0; }
.kv-section h3 { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kv-list { display: flex; flex-direction: column; gap: 6px; }
.kv-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; }
.kv-row input { font-size: 12px; }
.body-controls { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; flex-wrap: wrap; }
.body-controls select { width: auto; }
.body-controls #formatJsonBtn { padding: 9px 16px; font-size: 13px; }
.body-forward { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; margin: 0 0 0 auto; white-space: nowrap; }
.body-forward select { width: auto; }
/* 代码编辑框：行号 + 当前行高亮 */
.code-editor { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.code-gutter { flex: 0 0 42px; padding: 10px 8px 10px 0; text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 21px; color: var(--muted); background: #f8fafc; border-right: 1px solid var(--border); user-select: none; white-space: pre; overflow: hidden; }
.code-layer { position: relative; flex: 1; min-width: 0; }
.code-active-line { position: absolute; left: 0; right: 0; height: 21px; top: 10px; background: #e0f2fe; pointer-events: none; z-index: 0; }
.code-layer textarea { position: relative; z-index: 1; width: 100%; min-height: 260px; border: 0; border-radius: 0; padding: 10px 12px; margin: 0; resize: vertical; line-height: 21px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: transparent; outline: none; white-space: pre; }
.code-layer textarea:focus { outline: none; }
.time-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.time-item { display: flex; align-items: center; gap: 4px; }
.time-item input { width: 90px; }
.day-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mapping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.mapping-col { border: 1px solid var(--border); border-radius: 8px; padding: 12px; min-height: 220px; }
.mapping-col h3 { font-size: 13px; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tab { border: none; background: none; padding: 4px 10px; cursor: pointer; font-size: 12px; border-radius: 6px; color: var(--muted); }
.tab.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.field-list { display: flex; flex-direction: column; gap: 6px; min-height: 100px; }
.field-pill { background: #f1f5f9; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: grab; display: flex; justify-content: space-between; align-items: center; }
.field-pill:active { cursor: grabbing; }
.field-pill.dragging { opacity: .5; }
.dropzone { border: 2px dashed var(--border); border-radius: 8px; padding: 8px; }
.dropzone.over { border-color: var(--primary); background: #eff6ff; }
.target-row { display: flex; align-items: center; gap: 6px; }
.target-row input { flex: 1; font-size: 12px; }
.target-row .mapped { font-size: 11px; color: var(--primary); background: #eff6ff; padding: 2px 6px; border-radius: 4px; }
.history-box { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; font-size: 12px; }
.history-box h4 { font-size: 12px; }
.history-box div { max-height: 100px; overflow: auto; color: var(--muted); }
.result-pre { background: #1f2328; color: #e5e7eb; border-radius: 8px; padding: 14px; max-height: 260px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.form-actions { display: flex; gap: 10px; }
.inline-row { display: flex; gap: 6px; align-items: center; }
.inline-row input { flex: 1; min-width: 0; }
.inline-row select { width: 90px; flex: 0 0 auto; }
/* ============ TRANS 模块 ============ */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar .btn-primary { margin-left: auto; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > label { flex: 1; min-width: 180px; }
label.full { display: block; margin-bottom: 12px; }
label.full input { width: 100%; }
.kv-title { font-size: 13px; font-weight: 500; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.kv-box { display: flex; flex-direction: column; gap: 8px; }
.kv-box .kv-row { display: flex; align-items: center; gap: 8px; }
.kv-box .kv-row input.kv-k, .kv-box .kv-row input.kv-v { flex: 1 1 0; min-width: 0; }
/* 键值对行的按钮：正方形，与文本框同高（文本框 padding9+border1+行高≈38px） */
.kv-box .kv-row .btn, .time-list .kv-row .btn, .mapping-item .btn { width: 38px; height: 38px; min-width: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex: 0 0 auto; }
.tag-list { background: #fef3c7; color: #b45309; }
.tag-trans { background: #ede9fe; color: #6d28d9; }
.tag-transmission { background: #f5f3ff; color: #6d28d9; }
.list-items { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.list-items .kv-row { grid-template-columns: 1fr auto; }
.day-box { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.time-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.time-list .kv-row { grid-template-columns: 160px 36px; align-items: center; }
.time-list .kv-row .btn { width: 38px; height: 38px; min-width: 38px; padding: 0; }
.group-tree { display: flex; flex-direction: column; gap: 12px; }
.group-block { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.group-head { padding: 10px 14px; background: #fafbfc; cursor: pointer; font-size: 13px; user-select: none; }
.group-head .bi { transition: transform .15s; margin-right: 6px; }
.group-body.collapsed { display: none; }
.group-head:has(+ .group-body.collapsed) .bi { transform: rotate(-90deg); }
.muted { color: var(--muted); }
.url-cell { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.fetch-area { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fetch-area .btn { width: auto; }
.fetch-result { display: flex; flex-wrap: wrap; gap: 8px; }
.field-pill { display: flex; align-items: center; gap: 8px; background: #dcfce7; border: 1px solid #86efac; border-radius: 8px; padding: 8px 10px; min-width: 130px; }
.field-pill-text { display: flex; flex-direction: column; }
.field-pill-text b { font-size: 12px; color: #14532d; }
.field-pill-text span { font-size: 11px; color: #166534; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #16a34a; background: #16a34a; cursor: pointer; flex: 0 0 auto; }
.dot.off { background: #86efac; border-color: #86efac; }
.schema-views { display: flex; gap: 12px; flex-wrap: wrap; }
.sheet-views { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.schema-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px; min-width: 200px; background: var(--surface); }
.schema-title { font-weight: 500; font-size: 13px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.schema-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; cursor: grab; }
.mapping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.mapping-target { border: 1px dashed var(--border); border-radius: 8px; padding: 10px; min-height: 100px; }
.mapping-target h3 { font-size: 13px; margin-bottom: 8px; }
.drop-zone { min-height: 60px; }
.mapping-item { display: flex; gap: 6px; align-items: center; background: #eff6ff; border-radius: 6px; padding: 5px 8px; margin-bottom: 6px; font-size: 12px; }
.mapping-item .src-field { flex: 0 0 auto; color: #1d4ed8; }
.mapping-item .alias-input { flex: 1; min-width: 80px; font-size: 12px; padding: 3px 6px; }
.sheets-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.sheet-opt { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.progress { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.precheck-log { max-height: 220px; overflow: auto; font-size: 12px; }
.log-err { background: #fef2f2; color: #b91c1c; padding: 6px 8px; border-radius: 4px; margin-bottom: 4px; }
/* 表单类 panel-card：所有区块统一 16px 垂直间距 */
.panel-card > label, .panel-card > .form-row, .panel-card > .kv-section, .panel-card > .form-grid, .panel-card > .day-box, .panel-card > .fetch-area, .panel-card > .sheet-views, .panel-card > .hint { margin: 0 0 16px; }
.panel-card > label:last-child, .panel-card > .form-row:last-child, .panel-card > .kv-section:last-child, .panel-card > .form-grid:last-child, .panel-card > .day-box:last-child, .panel-card > .fetch-area:last-child, .panel-card > .sheet-views:last-child, .panel-card > .hint:last-child { margin-bottom: 0; }
.panel-card > .kv-section > .kv-title { margin: 0 0 8px; }
@media (max-width: 900px) {
  .features, .stat-grid, .stat-grid-3, .form-grid, .mapping-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .sidebar { width: 180px; }
  .hero h1 { font-size: 32px; }
}
