/* 审单台 · 设计系统（4 套主题：构成 / 夜航 / 纸墨 / 终端） */
/* 简约：瑞士极简 —— 墨黑主色 + 发丝边框 + 零阴影，直角利落 */
:root {
  --bg: #f6f6f7;
  --panel: #ffffff;
  --panel-2: #f9f9fa;
  --text: #17181c;
  --text-2: #55575e;
  --muted: #9094a0;
  --border: #e7e8eb;
  --primary: #1f2328;
  --primary-2: #000000;
  --primary-soft: #eef0f3;
  --ok: #16a34a;
  --ok-soft: #e7f7ee;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --warn: #d97706;
  --warn-soft: #fdf3e3;
  --shadow: none;
  --radius: 10px;
  --radius-sm: 6px;
}
html[data-theme="starry"] {
  --bg: #0e1424; --panel: #161d31; --panel-2: #1b2340;
  --text: #eaf0ff; --text-2: #a9b6d4; --muted: #7b88a8;
  --border: #262f4d; --primary: #1FA98A; --primary-2: #33C6A2; --primary-soft: #123A34;
  --ok: #34d399; --ok-soft: #14322a; --danger: #f87171; --danger-soft: #3a1f22;
  --warn: #fbbf24; --warn-soft: #3a2f16;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
}
/* 复古：老印刷纸感 —— 牛皮纸底 + 深褐墨字 + 皮革棕主色，衬线标题 + 硬偏移阴影 */
html[data-theme="retro"] {
  --bg: #efe6d0; --panel: #faf5e8; --panel-2: #f3ecda;
  --text: #3b2f20; --text-2: #6a5a44; --muted: #96866a;
  --border: #d8c9a4; --primary: #9c5a22; --primary-2: #7f4818; --primary-soft: #f1e2cc;
  --ok: #6d8f3f; --ok-soft: #eef2dd; --danger: #b5443c; --danger-soft: #f8e6e0;
  --warn: #b07d1f; --warn-soft: #f6ecd6;
  --shadow: none; --radius: 12px; --radius-sm: 8px;   /* 2026-11-12 去硬阴影凸角 + 圆角兜底 */
}
/* ins风：柔粉悬浮 —— 无边框卡片 + 大圆角 + 胶囊按钮 + 品红主色 */
html[data-theme="ins"] {
  --bg: #fdf6f8; --panel: #ffffff; --panel-2: #fef9fb;
  --text: #2b2430; --text-2: #6d5f70; --muted: #a296a6;
  --border: #f6e3ec; --primary: #e1306c; --primary-2: #c13584; --primary-soft: #fdeaf1;
  --ok: #2fb380; --ok-soft: #e4f7ef; --danger: #e5484d; --danger-soft: #fdecec;
  --warn: #e07b39; --warn-soft: #fdeee2;
  --shadow: 0 4px 16px rgba(225,48,108,.07), 0 12px 32px rgba(225,48,108,.10);
  --radius: 20px; --radius-sm: 12px;
}

/* ===== 主题画面级差异化（不止换色：形状 / 边框 / 阴影 / 侧栏 / 字体气质） ===== */
/* 简约：纯白侧栏 + 发丝分隔，冷静无装饰 */
html[data-theme="light"] .sidebar { background: #ffffff; border-right: 1px solid var(--border); }
html[data-theme="light"] .topbar { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); }
html[data-theme="light"] .brand-logo { border-radius: 6px; }

/* 复古：衬线标题 + 虚线分隔 + 硬偏移阴影 + 深纸侧栏，老印刷质感 */
html[data-theme="retro"] .topbar-title,
html[data-theme="retro"] .card-head h3,
html[data-theme="retro"] .brand-text strong,
html[data-theme="retro"] h1, html[data-theme="retro"] h2, html[data-theme="retro"] h3 {
  font-family: Georgia, "Times New Roman", "STZhongsong", "SimSun", serif;
  letter-spacing: .5px;
}
html[data-theme="retro"] .sidebar { background: #e9dfc6; }
html[data-theme="retro"] .topbar { background: #f6efdd; border-bottom: 2px solid #cdbd97; }
html[data-theme="retro"] .card { border: 1px solid #cdbd97; }
html[data-theme="retro"] .card-head { border-bottom: 1px dashed #cdbd97; }
html[data-theme="retro"] .brand-logo { border-radius: 4px; }

/* ins风：卡片去边框纯阴影悬浮 + 胶囊按钮 + 大圆角，柔和通透 */
html[data-theme="ins"] .sidebar { background: #ffffff; border-right: 1px solid #f8ecf2; }
html[data-theme="ins"] .topbar { background: rgba(255,255,255,.9); border-bottom: 1px solid #f8ecf2; }
html[data-theme="ins"] .card { border: 0; }
html[data-theme="ins"] .card-head { border-bottom: 1px solid #f8ecf2; }
html[data-theme="ins"] .btn { border-radius: 999px; padding: 8px 18px; }
html[data-theme="ins"] .brand-logo { border-radius: 14px; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
.muted { color: var(--muted); font-size: 12.5px; }
.price { color: var(--danger); }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex: 0 0 216px; background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px;
  /* 2026-11-13：徽标即主题切换入口；视觉尺寸不变，用伪元素把触摸热区扩到 ≥44px */
  cursor: pointer; position: relative;
}
.brand-logo::after { content: ""; position: absolute; inset: -7px; }
.brand-logo.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 24px; margin: 0 auto 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14px; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px;
}
.nav-item i { font-style: normal; width: 16px; text-align: center; opacity: .8; }
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; position: relative; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary); }
.sidebar-foot { padding: 12px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px; background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; min-width: 0; }
/* 顶栏构建版本号：改动代码/规则/样式后自动更新，方便核对是否已生效 */
.build-v { font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel-2); white-space: nowrap; cursor: default; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
/* 顶栏刷新按钮（账号管理页）：3D 图标按钮 —— 渐变色块 + 顶部高光 + 双层投影，
   点一下整页强制重载，用来「看到刚部署的新页面」。 */
.topbar-refresh {
  --rf-1: #7c8cff; --rf-2: #5138d8; --rf-glow: rgba(90, 69, 224, .5);
  position: relative; width: 40px; height: 40px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 13px; cursor: pointer;
  color: #fff; background: linear-gradient(155deg, var(--rf-1) 0%, var(--rf-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),      /* 顶面高光 */
    inset 0 -2px 4px rgba(0, 0, 0, .28),          /* 底部内阴影，做出厚度 */
    0 6px 14px var(--rf-glow),                    /* 落地投影 */
    0 2px 3px rgba(0, 0, 0, .3);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.topbar-refresh::after {                          /* 上半部弧面反光 */
  content: ''; position: absolute; left: 3px; right: 3px; top: 2px; height: 46%;
  border-radius: 11px 11px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.topbar-refresh .rf-ico {
  position: relative; z-index: 1; font-size: 21px; line-height: 1; font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 -1px 0 rgba(255, 255, 255, .3);
  display: inline-block;
}
.topbar-refresh:hover { transform: translateY(-1px); filter: brightness(1.07); }
.topbar-refresh:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .18),
              0 2px 6px var(--rf-glow);
}
.topbar-refresh:focus-visible { outline: 2px solid rgba(124, 140, 255, .9); outline-offset: 2px; }
.topbar-refresh.spinning .rf-ico { animation: rfspin .9s linear infinite; }
@keyframes rfspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.user-chip:hover { background: var(--panel-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 600;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta strong { font-size: 13px; }
.user-meta small { font-size: 11px; color: var(--muted); }
.content { padding: 20px 22px 40px; }
/* 超宽屏不再把表格拉到无限宽，内容居中更好读 */
@media (min-width: 1600px) { .content { max-width: 1560px; margin: 0 auto; } }

/* ---------------- 组件 ---------------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card, .stat-grid > .card { margin-top: 0; }   /* 栅格内部不再叠加相邻卡片间距（会让卡片错位变矮） */
/* 统计卡栅格：卡片数量不固定时也始终平分整行，不留下空列 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 14.5px; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.stat { padding: 16px; }
.stat .stat-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.stat .stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.4px; }
.stat .stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat.accent .stat-value { color: var(--primary); }
.stat.ok .stat-value { color: var(--ok); }
.stat.danger .stat-value { color: var(--danger); }

.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px;
  cursor: pointer; background: var(--panel-2); color: var(--text); font-family: inherit; transition: .15s;
}
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); filter: none; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-warn { background: var(--warn-soft); color: var(--warn); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-xs { padding: 3px 9px; font-size: 12px; }
.btn-block { width: 100%; display: block; margin-top: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.form-input, select.form-input, textarea.form-input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--text); font-size: 13.5px; font-family: inherit; outline: none;
}
.form-input:focus { border-color: var(--primary); background: var(--panel); }
textarea.form-input { resize: vertical; min-height: 72px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.form-error { color: var(--danger); font-size: 12.5px; margin: 6px 0; }
.form-hint { font-size: 12px; color: var(--text-3, var(--text-2)); margin-top: 5px; opacity: .8; }

/* 复选框选中 = 主题绿（启用/驳回等勾选框统一用 --ok，深浅主题自动跟随） */
input[type="checkbox"] { accent-color: var(--ok); width: 15px; height: 15px; cursor: pointer; vertical-align: -2px; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel);
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.chip.active { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--panel-2); white-space: nowrap; }
tbody tr:hover { background: var(--panel-2); }
td.mono, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.table-wrap { overflow-x: auto; }

/* 表格观感：数字列右对齐 + 等宽数字（不再左右参差），操作列靠右、按钮不换行 */
th.num, td.num, th.act, td.act { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
th.num, td.num { text-align: right; }
th.act, td.act { text-align: right; white-space: nowrap; }
td.act .btn + .btn { margin-left: 6px; }
tbody tr:last-child > td { border-bottom: none; }   /* 末尾不再和卡片底边形成双线 */
.empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.stat .stat-value, .price, .mono { font-variant-numeric: tabular-nums; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-info { background: var(--primary-soft); color: var(--primary); }
.tag-muted { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
/* 结果列可点击的详情入口：用 › 箭头给出「可点开」暗示，hover 给出反馈（不堆装饰，四主题自动适配） */
.tag-click { position: relative; padding-right: 15px; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.tag-click::after { content: "\203A"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; line-height: 1; opacity: .6; }
.tag-click:hover, .tag-click:active { filter: brightness(.94); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; font-size: 13px; color: var(--text-2); }

/* 平台卡 */
.plat-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.plat-top { display: flex; align-items: center; gap: 10px; }
.plat-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.plat-name { font-weight: 600; font-size: 13.5px; }
.plat-meta { font-size: 12px; color: var(--muted); }
.plat-stats { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-2); }
/* 平台小窗（比例 172×90） */
.plat-mini { aspect-ratio: 172 / 90; padding: 8px 12px; gap: 5px; overflow: hidden; min-width: 0; }
.plat-mini .plat-avatar { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.plat-mini .plat-name { font-size: 12.5px; line-height: 1.2; }
.plat-mini .plat-meta { font-size: 11px; }
.plat-mini .tag { padding: 1px 7px; font-size: 10.5px; }
.plat-mini .form-input { padding: 4px 8px; font-size: 12px; }
.plat-mini .btn-sm { padding: 4px 0; font-size: 12px; }
.plat-mini .btn-xs { padding: 2px 8px; font-size: 11px; }
.plat-mini .ocr-balance { padding: 4px 8px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.plat-mini .switch-line { font-size: 11px; gap: 5px; margin: 0; }
.plat-mini .form-group { margin: 0; }
.switch { display: inline-block; position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--border); cursor: pointer; transition: .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch.on { background: var(--ok); }
.switch.on::after { left: 21px; }
/* 小问号：点击弹出说明 */
.q-mark { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: 1px; user-select: none; }
.q-mark:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
/* 深色主题下关闭态轨道加亮，与开启态绿形成明确对比 */
html[data-theme="starry"] .switch:not(.on) { background: #1E5B4E; box-shadow: inset 0 0 0 1px #2E9C82; }

/* 关键词组编辑器 */
.group-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 10px; background: var(--panel-2); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; color: var(--text-2); }
.group-head > span:first-child { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.group-head .toolbar { flex-wrap: wrap; }
.kw-list { display: flex; gap: 6px; flex-wrap: wrap; }
.kw { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.kw b { cursor: pointer; color: var(--muted); font-weight: 400; }
.kw b:hover { color: var(--danger); }

/* 待审数据截图缩略图 */
.pend-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; vertical-align: middle; }
.pend-thumb:hover { border-color: var(--accent); }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(16,22,38,.74); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal.open { display: flex; }
/* 2026-11-30：日志页「未通过」原地看图——日志页自带看图组件铺满全屏，零跳页零 iframe。
   复用 #modalPending.rv-fs 那套尺寸，仅把选择器换成 #modalReviewEmbed。 */
.rv-embed-modal { padding: 0; background: #0C101C; backdrop-filter: none; display: none; }
.rv-embed-modal.open { display: flex; }
.rv-embed-modal .rv-full { display: flex; width: 100%; max-width: 520px; height: 92vh; max-height: none; }
@media (max-width: 640px) {
  .rv-embed-modal { padding: 12px 10px; }
  .rv-embed-modal .rv-full { max-width: none; height: auto; max-height: 86dvh; }
}
.modal-box { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 860px; }
/* iOS 风格时间滚轮：底部弹出面板 + 两列可滚动数字，中间选中带高亮 */
.tp-sheet { background: var(--panel); width: 100%; max-width: 340px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tp-btn { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 8px; }
.tp-btn.tp-ok { color: var(--primary); font-weight: 700; }
.tp-wheels { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 200px; padding: 0 24px; }
.tp-wheels::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 40px; transform: translateY(-50%); background: var(--panel-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 8px; pointer-events: none; }
.tp-sep { font-size: 22px; font-weight: 700; color: var(--text); z-index: 1; margin-top: -1px; }
.tp-col { position: relative; z-index: 1; height: 200px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; -ms-overflow-style: none; width: 72px; text-align: center; }
.tp-col::-webkit-scrollbar { display: none; }
.tp-item { height: 40px; line-height: 40px; scroll-snap-align: center; font-size: 17px; color: var(--muted); cursor: pointer; transition: color .12s, font-size .12s; }
.tp-item.cur { color: var(--text); font-weight: 700; font-size: 20px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 15px; }
.modal-close { border: none; background: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 16px; overflow: auto; }
/* 规则配置弹窗：整体比例收敛（不再铺满屏幕），内容区内部滚动、底部按钮常驻 */
#modalTpl .modal-box { max-width: 700px; max-height: 70vh; }
/* 规则配置：左「核验环节」占宽并拉满高度，右「固定校验 + 截图时段检测」紧凑堆叠 */
.tpl-two-col { display: flex; gap: 12px; align-items: stretch; margin-top: 12px; }
.tpl-two-col > .card { margin-top: 0; flex: 1.45 1 0; min-width: 0; }
.tpl-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tpl-side > .card { margin-top: 0; }
/* 固定校验 + 截图时段检测：合并为一卡内左右两栏，每栏再套一个 group-box 同款小框（手机也保持左右排列） */
.tpl-duo { display: flex; gap: 10px; }
.tpl-duo-box { flex: 1 1 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--panel-2); }
.tpl-duo-h { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.tpl-duo-h .grow { flex: 1; }
.tpl-duo .form-group { margin-bottom: 8px; }
.tpl-duo .form-group label { font-size: 11.5px; }
.tpl-duo .form-input { padding: 6px 8px; font-size: 12.5px; }
/* 截图时段检测：自动比对区间的说明行 */
.scr-note { font-size: 12px; line-height: 1.65; color: var(--text); background: var(--primary-soft);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 10px; }
.scr-note .muted { display: block; font-size: 11.5px; margin-top: 2px; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
/* 截图预览弹层：图片居中自适应，点遮罩关闭 */
/* 2026-12-01：放大预览弹窗必须盖住「整屏看图」弹层——两者同为 z-index:60，
   而 modalImg 在 DOM 里排在 modalReviewEmbed 之前，导致点图放大后预览被整屏层遮住，
   表现为「点了没反应」。抬高层级彻底解决。 */
#modalImg { z-index: 90 !important; }
.modal-img .modal-body { display: flex; align-items: center; justify-content: center; }
.zoom-img { max-width: 100%; max-height: 74vh; object-fit: contain; display: block; cursor: pointer; }
@media (max-width: 768px) {
  .modal-img .modal-box { max-width: 100%; }
  .zoom-img { max-height: 70vh; }
}
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card { border: 1px solid var(--border); background: var(--panel-2); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); font-family: inherit; }
.theme-card span { font-size: 20px; }
.theme-card:hover { border-color: var(--primary); color: var(--primary); }

/* Toast */
.toast-wrap { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; min-width: 200px; animation: slideIn .2s ease; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* 登录页 */
.auth-body { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(1200px 600px at 20% -10%, var(--primary-soft), transparent), var(--bg); }
.auth-shell { width: 100%; max-width: 420px; padding: 24px; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 26px; }
.auth-header { text-align: center; margin-bottom: 18px; }
.auth-header h2 { margin: 0 0 4px; font-size: 18px; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-links { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.auth-links a { margin: 0 6px; }
.auth-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* 支付 */
.pay-body { text-align: center; }
.qr-placeholder { width: 168px; height: 168px; margin: 0 auto 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); font-size: 12.5px; background: var(--panel-2); }
.pay-row { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.pay-countdown { margin: 10px 0; font-size: 13px; }
.pay-countdown b { color: var(--danger); font-family: ui-monospace, monospace; }

/* 图表 */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding: 8px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-stack { display: flex; flex-direction: column-reverse; width: 26px; border-radius: 6px 6px 0 0; overflow: hidden; }
.bar-seg { width: 100%; }
.bar-seg.pass { background: var(--ok); }
.bar-seg.reject { background: var(--danger); }
.bar-seg.other { background: var(--primary); }
.bar-label { font-size: 11.5px; color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); padding: 0 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* 日志详情 */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 13px;
      align-content: start; }   /* 容器被拉高时各行保持原高，不摊开成大片行距 */
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; word-break: break-all; overflow-wrap: anywhere; }

/* 审核日志详情：右侧放提交验证图（无底色无边框，裁切填满整列、多图左右切换）；纯文本提交时文本居中显示 */
.log-detail-wrap { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.log-detail-wrap.has-shot { position: relative; }
.log-detail-wrap.has-shot .kv { padding-right: 144px; margin: 0; }
.log-shots { position: absolute; top: 0; right: 0; bottom: 0; width: 132px; min-width: 0; }
.log-shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: top center;   /* 2026-12-02：超高整页截图按顶部对齐裁切，先看到状态栏时间 */
  cursor: zoom-in; transition: filter .15s;
}
.log-shot:hover { filter: brightness(.92); }
/* 多图左右切换：两枚按钮等宽等高、垂直居中 */
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 40px; border: none; border-radius: 6px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0;
}
.shot-nav.prev { left: 4px; }
.shot-nav.next { right: 4px; }
.shot-count {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 4px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 11px;
}
/* 纯文本提交：无图时提交内容居中显示 */
.log-text-submit {
  padding: 14px; text-align: center; border: 1px dashed var(--border); border-radius: 8px;
  color: var(--muted); font-size: 12.5px; word-break: break-all;
}
pre.code { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; overflow: auto; font-size: 12px; max-height: 300px; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } }

/* 识别平台（平台管理页内嵌） */
.acct-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.acct-row .acct-field { flex: 1 1 320px; margin-bottom: 12px; }
.acct-row .btn { margin-bottom: 12px; }
.ocr-balance {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); word-break: break-all;
}
.ocr-balance.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--text); }
.ocr-balance.err { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* 真实对接（平台管理页内嵌） */
.switch-line {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.switch-line input { width: auto; }

/* 平台管理工具栏：开关行 / 操作行 分组（桌面同行，手机端分层对齐） */
.pf-switches { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: 6px; }
.pf-actions .chip { display: inline-flex; align-items: center; }
.pf-actions .chip b { margin-left: 4px; font-weight: 700; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------- 平台管理 · 大卡片 ---------------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.pcard-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pcard-title { font-weight: 700; font-size: 14.5px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcard-ava { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; overflow: hidden;
  background: linear-gradient(135deg, #4f6ef7, #7b5cf0); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pcard-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-info { flex: 1; min-width: 0; }
.pcard-btn { min-width: 76px; }   /* 桌面按钮等宽，右侧不参差；手机端由媒体查询放开 */
.pcard-nick { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-nick-t { display: inline; }
.pcard-nick-sep { color: var(--muted); font-weight: 500; }
.pcard-nick-off { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.pcard-money { color: var(--ok); font-weight: 700; margin-left: 6px; }
.pcard-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pcard-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding-top: 6px; margin-top: auto; }   /* 按钮靠右，正好落在右上角状态标的正下方 */
.pcard-foot .msg { flex: 1; min-width: 0; color: var(--muted); font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot .switch-line { font-size: 11.5px; gap: 5px; margin: 0; white-space: nowrap; }

/* 多账号分组框（米多赚家族）：框内每张卡就是普通平台卡，尺寸与上面完全一致 */
.pcard-group { grid-column: 1 / -1; }
.pgroup-count { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: auto; }
.pgroup-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .pgroup-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 框内卡片底色比外层浅一档，形成“框套卡”的层次，避免内外同色糊成一片 */
.pcard-group .pcard { background: var(--panel-2); box-shadow: none; }
/* 扫码登录弹窗 */
.qr-box { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2);
  display: grid; place-items: center; padding: 8px; min-height: 300px; }
.qr-box img { max-width: 100%; max-height: 420px; border-radius: 6px; display: block; }
.qr-loading { color: var(--muted); font-size: 13px; padding: 40px 0; }
.lg-msg { min-height: 20px; font-size: 12.5px; margin-top: 8px; color: var(--muted); }
.lg-msg.ok { color: var(--ok); }
.lg-msg.err { color: var(--danger); }
.lg-msg.warn { color: var(--warn); }

/* ---------------- 移动端适配（≤768px：侧边栏抽屉 + 单列布局） ---------------- */
.menu-btn { display: none; }          /* 桌面端不显示 ☰ */
.sidebar-mask { display: none; }

@media (max-width: 768px) {
  /* 侧边栏 → 左侧抽屉，默认移出屏幕 */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100%; z-index: 70;
    width: 240px; flex: none; transform: translateX(-100%);
    transition: transform .25s ease; box-shadow: 0 0 40px rgba(16, 22, 38, .28);
  }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open { overflow: hidden; }   /* 抽屉展开时锁定背景滚动 */
  .sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(16, 22, 38, .45); z-index: 65; }
  body.sidebar-open .sidebar-mask { display: block; }
  .menu-btn { display: inline-flex; align-items: center; padding: 5px 9px; font-size: 18px; line-height: 1; }

  /* 顶栏压缩：隐藏用户名文字，只留头像 */
  .topbar { padding: 7px 12px; gap: 8px; }
  .topbar-title { font-size: 14.5px; flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .build-v { flex: none; font-size: 10.5px; padding: 1px 6px; }
  .topbar .user-meta { display: none; }
  .topbar .user-chip { padding: 2px; }
  .topbar-actions { gap: 4px; }
  /* 手机顶栏空间紧：刷新按钮略缩一号，仍保持 3D 层次 */
  .topbar-refresh { width: 34px; height: 34px; border-radius: 12px; }
  .topbar-refresh .rf-ico { font-size: 18px; }
  .content { padding: 12px 12px 36px; }

  /* 卡片与网格：统计卡保持 2 列，平台卡单列 */
  .card-head, .card-body { padding: 12px; }
  .grid { gap: 10px; }
  .stat-grid { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }   /* 一行两个平台卡 */
  .split { grid-template-columns: 1fr; }
  .stat { padding: 12px; }
  .stat .stat-value { font-size: 22px; }

  /* 账号卡：窄卡竖排——头像+平台名+状态 / 昵称+余额 / 操作按钮贴底 */
  .pcard { padding: 10px 11px; gap: 6px; }
  .pcard-top { gap: 6px; }
  .pcard-ava { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; border-radius: 7px; }
  .pcard-title { font-size: 12.5px; flex: 1 1 auto; }
  .pcard-nick { font-size: 12px; }
  .pcard-money { font-size: 12px; margin-left: 4px; }
  .tag { font-size: 10px; padding: 1px 5px; line-height: 15px; }
  .tag-click::after { right: 4px; font-size: 11px; }
  .pcard-foot { padding-top: 6px; }
  .pcard-btn { min-width: 0; }
  .pcard .btn { padding: 3px 10px; font-size: 11.5px; }

  /* 米多赚分组框：框内 2 列，每张卡与上面普通卡同宽同高 */
  .pgroup-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* 表格：缩小内边距，横向滚动由 .table-wrap 兜底 */
  table { font-size: 12.5px; }
  th, td { padding: 8px 8px; }
  .pager { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .toolbar { gap: 6px; }
  .toolbar .spacer { flex: none; }
  .chip { padding: 4px 9px; }
  .chip-group { gap: 5px; }

  /* 平台管理工具栏：手机端上下分层、同组对齐、整齐不参差 */
  .pf-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .pf-switches { gap: 16px; }
  .pf-switches .switch-line { margin-bottom: 0; }   /* 去除基类 12px 下边距，行间不空一截 */
  .pf-actions { margin-left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  /* 状态 chip 与操作按钮统一为等高、居中、等宽，不再长短不一 */
  .pf-actions .chip, .pf-actions .btn {
    justify-content: center; text-align: center; height: 34px; padding: 0 4px;
    display: inline-flex; align-items: center; white-space: nowrap;
  }
  .pf-toolbar .form-input#taskKeyword { margin-left: 0; max-width: none; width: 100%; }

  /* 弹窗：近满屏，避免小屏被截断 */
  .modal { padding: 10px; }
  .modal-box { max-width: 100%; max-height: 90vh; }
  .modal-header, .modal-body, .modal-foot { padding: 12px; }
  .qr-box { min-height: 220px; }
  .qr-box img { max-height: 260px; }

  /* 规则弹窗：整体上移并收敛尺寸，确保「保存 / 取消」按钮在小屏始终可见（不再被顶出屏幕底部） */
  #modalTpl { align-items: flex-start; padding: 10px 8px; }
  #modalTpl .modal-box { max-width: 100%; max-height: 75vh; }
  /* 小屏改为单列堆叠（与全站 ≤768px 单列一致）：左核验环节、右固定校验 + 截图检测上下排列，
     避免在手机窄屏上两栏被挤成一团 */
  .tpl-two-col { flex-direction: column; gap: 10px; }
  .tpl-two-col > .card { flex: 1 1 auto; }
  .tpl-side { gap: 10px; }
  .tpl-duo { gap: 9px; }
  .tpl-duo-h { font-size: 12px; margin-bottom: 6px; }
  .tpl-duo .form-group { margin-bottom: 7px; }
  .tpl-duo .form-input { padding: 5px 7px; font-size: 12px; }
  #modalTpl .card-head { padding: 9px 10px; }
  #modalTpl .card-head h3 { font-size: 13px; }
  #modalTpl .card-body { padding: 10px; }
  #modalTpl .scr-note { font-size: 11.5px; line-height: 1.5; padding: 7px 8px; }
  #modalTpl .scr-note .muted { font-size: 10.5px; }
  #modalTpl .form-group { margin-bottom: 9px; }
  #modalTpl .group-box { padding: 8px; }
  #modalTpl .btn-xs { padding: 2px 6px; font-size: 11px; }
  #modalTpl .group-head, #modalTpl .group-box, #modalTpl .kw,
  #modalTpl .form-group label, #modalTpl .toolbar .muted { font-size: 11.5px; }
  #modalTpl .kw { padding: 2px 8px; }

  /* Toast：顶部横幅铺满，避免溢出小屏 */
  .toast-wrap { top: 10px; left: 12px; right: 12px; }
  .toast { min-width: 0; width: 100%; }

  /* 日志详情键值表：左侧标签收窄；右侧放缩略图后再收窄一点，保证日期不折行 */
  .kv { grid-template-columns: 92px 1fr; font-size: 12.5px; }
  #logDetail .kv { grid-template-columns: 68px minmax(0,1fr); }
  .log-detail-wrap.has-shot .kv { padding-right: 128px; }
  .log-shots { width: 118px; }
  .shot-nav { width: 22px; height: 34px; font-size: 15px; }
  pre.code { font-size: 11.5px; max-height: 220px; }

  /* 表单：字号 ≥16px 防止 iOS 聚焦时自动放大页面 */
  .form-input, select.form-input { font-size: 16px; }
  textarea.form-input { font-size: 13px; }

  /* 图表：柱子变窄，6 小时趋势正好放得下 */
  .bars { height: 130px; gap: 6px; }
  .bar-stack { width: 20px; }
  .legend { flex-wrap: wrap; gap: 10px; }

  /* 登录页 */
  .auth-shell { padding: 16px; }
  .auth-card { padding: 22px 16px; }
}

/* 超窄屏（≤430px）：分组框内卡片收紧内边距，保证「按钮」不被挤出去 */
@media (max-width: 430px) {
  .pgroup-body { gap: 8px; }
  .pcard-group > .pcard-top { margin-bottom: 2px; }
}

/* 超窄屏（≤400px）：统计卡退回单列；日志详情标签列收窄，把宽度让给「时间串不拆行」 */
@media (max-width: 400px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}


/* 达标下架规则表：窄屏防标签竖排、防操作按钮裁切/逐字折行 */
#modalDownRules .tag { display: inline-block; white-space: nowrap; }
#modalDownRules .dr-mode { font-size: 11px; white-space: nowrap; margin-top: 3px; }
#modalDownRules td.act { white-space: nowrap; }
#modalDownRules td:first-child b {
  display: inline-block; max-width: 108px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom;
}
/* 副行独占一行，避免窄屏下「规则名 在架：sbz,zql」并排粘连 */
#modalDownRules td:first-child .muted {
  display: block; max-width: 108px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 底部同组按钮等宽，避免「关闭 / 保存规则」长短不一 */
#modalDownRules .modal-foot .btn { width: 100px; }
@media (max-width: 768px) {
  #modalDownRules th, #modalDownRules td { padding: 6px 5px; font-size: 12px; }
  /* 手机端隐藏「匹配在架」列（副行已列出在架平台），为操作按钮腾宽度 */
  #modalDownRules th:nth-child(3), #modalDownRules td:nth-child(3) { display: none; }
  #modalDownRules td.act .btn { white-space: nowrap; padding: 4px 5px; font-size: 11px; margin: 1px 0; }
  #modalDownRules td:first-child b,
  #modalDownRules td:first-child .muted { max-width: 96px; }
  /* 规则卡片三列两行：左(任务名/在架) 中(计数/循环) 右(4按钮2×2)，四主题统一 */
  #modalDownRules table.dr-table { display: block; table-layout: auto !important; }
  #modalDownRules table.dr-table thead { display: none !important; }
  #modalDownRules table.dr-table tbody { display: block; }
  #modalDownRules table.dr-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center; row-gap: 3px; column-gap: 12px; padding: 8px 8px;
    border-bottom: 1px solid var(--border);
  }
  /* 上下卡片之间留缝隙 */
  #modalDownRules table.dr-table tbody tr + tr { margin-top: 6px; }
  #modalDownRules table.dr-table td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; text-align: left; background: transparent !important; }
  /* 关键词格拆成两项：任务名→行1，在架→行2 */
  #modalDownRules table.dr-table td:nth-child(1) { display: contents !important; }
  #modalDownRules table.dr-table td:nth-child(1) b { grid-column: 1; grid-row: 1; }
  #modalDownRules table.dr-table td:nth-child(1) .muted {
    display: inline-block !important; grid-column: 1; grid-row: 2;
    max-width: 120px; margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* 计数→中列行1，循环模式→中列行2；其它状态小字隐藏 */
  #modalDownRules table.dr-table td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: center; }
  #modalDownRules table.dr-table td:nth-child(3) { display: none !important; }
  #modalDownRules table.dr-table td:nth-child(4) { display: contents !important; }
  #modalDownRules table.dr-table td:nth-child(4) .dr-mode {
    grid-column: 2; grid-row: 2; display: block !important; text-align: center; margin: 0;
  }
  #modalDownRules table.dr-table td:nth-child(4) > div:not(.dr-mode) { display: none !important; }
  /* 操作格：开关+编辑+重置+删除 2×2，等宽等高，跨两行；行列留 6px 缝，按钮压到 24px 高 */
  #modalDownRules table.dr-table td.act {
    grid-column: 3; grid-row: 1 / span 2;
    display: grid !important; grid-template-columns: repeat(2, 52px);
    grid-template-rows: repeat(2, 24px); gap: 6px; justify-content: end;
  }
  #modalDownRules table.dr-table td[colspan] { grid-column: 1 / -1; display: block !important; }
  #modalDownRules table.dr-table td.act .btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 24px !important; min-height: 0 !important; max-height: 24px !important;
    line-height: 1 !important; box-sizing: border-box !important; margin: 0; padding: 0; font-size: 11px;
  }
}

/* ==================== 未通过复核（四主题共用同一套紧凑行骨架） ==================== */
/* 密度优先：一行一条，单屏 5~6 条；同组按钮固定宽高，数字等宽右对齐，零横向溢出 */
.rq-note { font-size: 11.5px; line-height: 1.45; margin-bottom: 6px; }
.rq-filters {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px; margin-bottom: 7px;
}
.rq-filters .form-input {
  width: 100%; min-width: 0; box-sizing: border-box;
  font-size: 12.5px; padding: 6px 8px;
}
.rq-filters .rq-search { grid-column: span 2; }
.rq-list { display: block; }
.rq-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 8px; }
.rq-row {
  padding: 6px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel);
  margin-bottom: 5px; min-width: 0;
}
.rq-row.is-done { opacity: .72; }
.rq-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rq-name {
  flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 700;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rq-plat {
  flex: 0 0 auto; font-size: 11px; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.rq-mid { display: flex; gap: 8px; margin-top: 4px; min-width: 0; }
.rq-thumb {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 4px;
  overflow: hidden; background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: zoom-in;
}
.rq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-noimg { font-size: 10px; color: var(--muted); }
.rq-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rq-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  font-size: 11.5px; color: var(--text-2); min-width: 0;
}
.rq-meta > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rq-time {
  flex: 0 0 auto; font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum"; white-space: nowrap; color: var(--muted);
}
/* 24 小时复核窗口：固定宽度 + 等宽数字，同列基线对齐、不因位数变化而参差 */
.rq-window {
  flex: 0 0 48px; width: 48px; box-sizing: border-box;
  text-align: right; white-space: nowrap; line-height: 1;
  font-size: 10.5px; font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum"; color: var(--muted);
}
.rq-window.is-expired { color: var(--danger); font-weight: 700; }
.rq-reason {
  font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: break-all;
}
.rq-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 4px; min-width: 0;
}
.rq-tags { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.rq-tags .tag { display: inline-block; white-space: nowrap; flex: 0 0 auto; font-size: 10.5px; }
.rq-btns { display: flex; gap: 5px; flex: 0 0 auto; }
.rq-btn {
  width: 54px; height: 27px; flex: 0 0 54px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--text); font-size: 11.5px;
  letter-spacing: 0; white-space: nowrap; cursor: pointer;
}
.rq-btn-main { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.rq-btn-main.is-disabled { background: var(--panel-2); border-style: dashed; color: var(--muted); }
.rq-foot-btn { width: 100px; height: 35px; flex: 0 0 100px; box-sizing: border-box; }
.rq-pass-info { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.rq-warn {
  background: var(--danger-soft); border: 1px solid var(--danger);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 12.5px; line-height: 1.65; color: var(--text);
}
.rq-hint { font-size: 11.5px; line-height: 1.6; margin-top: 8px; }
.rq-win {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 10px;
  font-size: 11px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  background: #fff4e0; color: #b97700; border: 1px solid #e8c98a; vertical-align: middle; line-height: 1.25;
}
.rq-win.expired { background: #ffe9e9; color: #cc2b3a; border-color: #f0b4ba; }
/* 待审数据·未通过复核 卡片（手机端紧凑，避免 6 列表格在窄屏把操作列挤掉） */
.rv-card { padding: 11px 2px; border-bottom: 1px solid var(--border); }
.rv-card:last-child { border-bottom: 0; }
.rv-top { display: flex; gap: 10px; align-items: flex-start; }
.rv-thumb { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; }
.rv-thumb.rv-noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); background: var(--panel-2); }
.rv-meta { flex: 1 1 auto; min-width: 0; }
.rv-line1 { display: flex; align-items: center; gap: 6px; line-height: 1.25; }
.rv-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.25; }
.rv-line2 { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.rv-ocr { margin-top: 7px; font-size: 11.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-acts { display: flex; gap: 8px; margin-top: 9px; }
.rv-act { flex: 1 1 0; min-width: 0; padding-left: 0; padding-right: 0; }
.rv-gate { font-size: 11.5px; line-height: 1.5; }
/* 同类任务分组头：聚合视图把相同任务堆在一起，头里显示任务名 + 该任务条数 */
.rv-group {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 0 4px; padding: 7px 10px;
  background: var(--primary-soft); border-left: 3px solid var(--primary);
  border-radius: 6px;
}
.rv-g-name { font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rv-g-count { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--primary);
  background: var(--panel); padding: 2px 8px; border-radius: 10px; }
.rq-copy {
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text-2);
  border-radius: 4px; font-size: 11px; padding: 1px 6px; cursor: pointer;
}
.rq-bigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rq-big { display: block; text-align: center; color: var(--muted); font-size: 11px; }
.rq-big img {
  display: block; width: 100%; max-height: 420px; object-fit: contain;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.rq-big small { display: block; margin-top: 4px; }
.rq-fullhint { display: block; white-space: pre-wrap; word-break: break-word; line-height: 1.65; }

@media (max-width: 768px) {
  .rq-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rq-filters .rq-search { grid-column: span 2; }
  .rq-row { padding: 6px 10px; }
  .rq-tags .tag:nth-child(2) { display: none; }  /* 窄屏只留主类型标签，状态去详情里看 */
  .rq-row.is-done .rq-tags .tag:first-child { display: none; }
  .rq-row.is-done .rq-tags .tag:nth-child(2) { display: inline-block; }
  .rq-btn { width: 50px; flex-basis: 50px; height: 27px; font-size: 11px; }
  .rq-window { flex-basis: 44px; width: 44px; font-size: 10px; }
  .rq-meta { gap: 4px; }
  .kv { grid-template-columns: 88px 1fr; }
  #logDetail .kv { grid-template-columns: 68px minmax(0,1fr); }
  .log-detail-wrap.has-shot .kv { padding-right: 128px; }
  .log-shots { width: 118px; }
  .shot-nav { width: 22px; height: 34px; font-size: 15px; }
  .rq-bigs { grid-template-columns: 1fr; }
}

/* 审核日志（生产在跑的 6 列旧版表格）：窄屏禁止把「赚钱了」「2026-11-08」挤成竖排，
   也不允许结果标签被横向滚动切半截。时间列收进详情弹窗，5 列整屏放得下、零横向滚动。 */
@media (max-width: 768px) {
  body.page-logs .table-wrap table { min-width: 0; width: 100%; }
  body.page-logs .table-wrap th,
  body.page-logs .table-wrap td {
    white-space: nowrap; padding: 6px 6px; font-size: 11.5px;
  }
  body.page-logs .table-wrap th:nth-child(5),
  body.page-logs .table-wrap td:nth-child(5) { display: none; }
  body.page-logs .table-wrap .act .btn { padding: 2px 6px; font-size: 10.5px; }
  /* 2026-11-18 用户圈全列表要求「文字和排列居中对齐」：手机端各列文字（含表头）
     在列内水平居中，整行均匀分布；覆盖 08 块对时间列的右对齐，需 !important 压同级特异度 */
  body.page-logs .table-wrap th,
  body.page-logs .table-wrap td { text-align: center !important; }
  body.page-logs .card-head .toolbar .btn {
    width: 76px; height: 30px; padding: 0; flex: 0 0 76px;
  }
  /* 计数独占一行，三个控件在同一行靠右对齐，消除按钮分两行的锯齿 */
  body.page-logs .card-head .toolbar > span { flex: 1 1 100%; }
  body.page-logs .card-head .toolbar { justify-content: flex-start; gap: 6px; }
}

/* 超窄屏（≤400px）日志详情：标签列收窄，把宽度让给「时间串不拆行」。
   必须放在 768 断点之后，否则会被上面同特异度的规则覆盖。 */
@media (max-width: 400px) {
  #logDetail .kv { grid-template-columns: 58px minmax(0,1fr); }
  .log-detail-wrap.has-shot .kv { padding-right: 116px; }
  .log-shots { width: 106px; }
}

/* 审核日志顶部统计 · 四套骨架按主题各显一套（同一份数据，默认全隐藏，只开对应主题）
   构成 light → 方案13 图标块 / 刺绣 starry → 方案30 堆叠条
   纸墨 retro → 方案15 竖排标签 / 终端 ins   → 方案5  两行表格 */
.log-summary { margin-bottom: 10px; display: none; }

/* ---------- A. 构成：图标块 + 数值（方案13，三块等宽铺满整行） ---------- */
.sum-icon { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html[data-theme="light"] .sum-icon { display: grid; }
.si-t { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
        border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); min-width: 0; }

/* 统计块筛选（四主题通用）：可点块有指针 + 按下反馈；选中时描边加重 */
.si-t.clickable, .su-c.clickable, .sv-t.clickable, .hd-t.clickable {
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.si-t.clickable:active, .su-c.clickable:active, .sv-t.clickable:active, .hd-t.clickable:active { opacity: .85; }
.su-c.clickable { border-radius: 0; }
.sfl-on-ok { border-color: var(--ok) !important; box-shadow: 0 0 0 1px var(--ok) inset; }
.sfl-on-danger { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger) inset; }
.sv-t.sfl-on-ok { box-shadow: 0 0 0 1px var(--ok) inset; }
.sv-t.sfl-on-danger { box-shadow: 0 0 0 1px var(--danger) inset; }
.hd-t.sfl-on-ok { box-shadow: 0 0 0 1px var(--ok) inset, 0 0 8px rgba(49,208,118,.35); }
.hd-t.sfl-on-danger { box-shadow: 0 0 0 1px var(--danger) inset, 0 0 8px rgba(224,96,127,.35); }

.si-ic { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; display: flex;
         align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
         background: var(--primary-soft); color: var(--text); }
.si-ok .si-ic { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.si-danger .si-ic { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.si-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.si-lb { font-size: 10px; color: var(--muted); }
.si-n { font-size: 18px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.si-ok .si-n { color: var(--ok); }
.si-danger .si-n { color: var(--danger); }
.si-s { font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- B. 刺绣：纯上下居中（方案49） ---------- */
.sum-updown { display: none; border: 1px solid var(--border); border-radius: 10px;
              overflow: hidden; background: var(--panel-2); }
html[data-theme="starry"] .sum-updown { display: flex; }
.su-c { flex: 1; padding: 8px 6px; text-align: center; min-width: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.su-c + .su-c { border-left: 1px solid var(--border); }
.su-k { font-size: 11px; color: var(--muted); line-height: 1.1; }
.su-n { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.su-ok .su-n { color: var(--ok); }
.su-danger .su-n { color: var(--danger); }
.su-d { font-size: 10.5px; color: var(--text-2); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- C. 纸墨：竖排标签 + 双列数字（方案15） ---------- */
.sum-vert { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-theme="retro"] .sum-vert { display: grid; }
.sv-t { display: flex; align-items: center; gap: 8px; padding: 7px 10px; height: 58px;
        border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); min-width: 0; }
.sv-lb { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; height: 36px;
         writing-mode: vertical-rl; letter-spacing: 2px; line-height: 1.1; }
/* 两列数字各占一半、中间细线分隔；只做线性对齐（两列 label 落在同一水平线），
   不改主题原本的字号/字体/配色——数字仍用主题自己的字体渲染 */
.sv-cols { flex: 1; display: flex; gap: 0; min-width: 0; margin-left: 4px; }
.sv-col { flex: 1; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.sv-col b { display: block; line-height: 21px; text-align: right; font-family: inherit;
            font-size: 14.5px; font-weight: 600; color: var(--text-2);
            font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-col i { display: block; line-height: 12px; text-align: right; font-family: inherit;
            font-size: 10px; color: var(--text-2); font-style: normal; white-space: nowrap; }
.sv-col:first-child b { font-size: 19px; line-height: 21px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.sv-ok .sv-col:first-child b { color: var(--ok); }
.sv-danger .sv-col:first-child b { color: var(--danger); }
/* 纸墨：数字保留该主题的衬线体 + 细字重（不套用无衬线加粗的通用外观） */
html[data-theme="retro"] .sv-col b { font-weight: 400; letter-spacing: .2px; }
html[data-theme="retro"] .sv-col:first-child b { font-weight: 600; letter-spacing: 0; }
/* 两列中间的细分隔线 */
.sv-col + .sv-col { border-left: 1px solid var(--border); padding-left: 10px; }

/* ---------- D. 终端：HUD-A（左侧发光竖条 + 等宽读数 + 同色辉光 + 右上角标） ---------- */
.sum-hud { display: none; gap: 10px; }
html[data-theme="ins"] .sum-hud { display: flex; }
.hd-t { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 1px;
        padding: 8px 10px 9px; border: 1px solid var(--border); background: var(--panel-2); }
/* 左侧 2px 发光竖条：按指标上色，呼应终端霓虹语义 */
.hd-t::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
                background: var(--muted); }
.hd-ok::before { background: var(--ok); box-shadow: 0 0 8px rgba(49,208,118,.6); }
.hd-danger::before { background: var(--danger); box-shadow: 0 0 8px rgba(224,96,127,.6); }
.hd-neutral::before { background: var(--primary); box-shadow: 0 0 8px rgba(51,194,217,.6); }
/* 右上角 1px 切角标记，呼应终端面板切面风格 */
.hd-t::after { content: ""; position: absolute; right: -1px; top: -1px; width: 7px; height: 7px;
               border-top: 1px solid var(--primary); border-right: 1px solid var(--primary); opacity: .5; }
.hd-k { font-size: 9.5px; letter-spacing: 1.6px; color: var(--muted); line-height: 1.2; }
.hd-n { font-size: 21px; font-weight: 700; letter-spacing: .5px; line-height: 1.15;
        color: var(--text); font-variant-numeric: tabular-nums; }
.hd-ok .hd-n { color: var(--ok); text-shadow: 0 0 14px rgba(49,208,118,.45); }
.hd-danger .hd-n { color: var(--danger); text-shadow: 0 0 14px rgba(224,96,127,.45); }
.hd-neutral .hd-n { color: var(--primary); text-shadow: 0 0 14px rgba(51,194,217,.45); }
.hd-d { font-size: 10.5px; letter-spacing: 1px; color: var(--text-2); font-variant-numeric: tabular-nums;
        white-space: nowrap; }
.hd-d s { text-decoration: none; color: var(--muted); opacity: .9; margin-right: 3px; font-size: 9.5px; }

@media (max-width: 1080px) {
  .si-t { padding: 8px 8px; gap: 7px; }
  .si-n { font-size: 15px; }
  .si-s { font-size: 8.5px; }
  .si-ic { width: 40px; height: 40px; flex: 0 0 40px; font-size: 16px; }
  .su-c { padding: 7px 5px; }
  .su-n { font-size: 18px; }
  .su-d { font-size: 9px; }
  .sv-t { padding: 7px 9px; gap: 6px; height: 56px; }
  .sv-col:first-child b { font-size: 18px; line-height: 20px; }
  .sv-col b { font-size: 13.5px; line-height: 20px; }
  .sv-col i { font-size: 9px; line-height: 11px; }
  .sv-lb { font-size: 11px; height: 34px; }
  .sum-hud { gap: 7px; }
  .hd-t { padding: 7px 8px 8px; }
  .hd-n { font-size: 18px; }
  .hd-k { font-size: 9px; letter-spacing: 1px; }
  .hd-d { font-size: 8.5px; }
}

/* ===== 未通过复核 · 大图模式：可下拉分组 + 中间大图左右切换 ===== */
.rv-toggle { cursor: pointer; user-select: none; }
.rv-toggle:active { opacity: .85; }
.rv-toggle .rv-g-name { flex: 1 1 auto; }
.rv-caret {
  flex: 0 0 8px; width: 8px; height: 8px; box-sizing: border-box; margin-right: 2px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg); transition: transform .2s ease;
}
.rv-toggle.open .rv-caret { transform: rotate(45deg); }
.rv-gal-body { display: none; }
.rv-gal-body.open { display: block; animation: rvDrop .22s ease-out; }
@keyframes rvDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rv-gal {
  margin: 4px 0 2px; padding: 10px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
}
.rv-stage { position: relative; }
.rv-shot {
  width: 100%; max-height: 40vh; min-height: 120px;
  display: block; text-align: center;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px;
}
.rv-shot-img { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; }
.rv-shot-img:not([src]) { display: none; }
.rv-noimg { display: block; padding: 28px 0; font-size: 12px; color: var(--muted); }
.rv-switch { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rv-switch .rv-idx {
  flex: 1 1 auto; min-width: 0; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rv-nav {
  flex: 0 0 56px; width: 56px; height: 38px; box-sizing: border-box; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel); color: var(--text); font-size: 22px; line-height: 1;
  font-family: inherit; cursor: pointer;
}
.rv-nav:disabled { opacity: .3; cursor: default; }
.rv-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 9px; min-height: 22px;
}
.rv-idx {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rv-who {
  flex: 1 1 auto; min-width: 0; font-size: 11.5px; color: var(--muted);
  word-break: break-word; line-height: 1.5;
}
.rv-who .tag { font-size: 10.5px; }
.rv-reason {
  margin-top: 6px; font-size: 11.5px; line-height: 1.55; color: var(--muted);
  white-space: normal; word-break: break-word;
}
.rv-reason:empty, .rv-note:empty { display: none; }
.rv-gal .rv-acts { display: flex; gap: 8px; margin-top: 10px; }
.rv-acts .rv-act {
  flex: 1 1 0; width: 0; min-width: 0; height: 38px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; white-space: nowrap; padding: 0 4px;
}
.rv-note { margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 768px) {
  .rv-gal { padding: 8px; }
  .rv-shot { max-height: 40vh; }
  .rv-switch { gap: 6px; }
  .rv-nav { flex-basis: 52px; width: 52px; height: 40px; }
  .rv-gal .rv-acts { gap: 6px; }
  .rv-gal .rv-acts .rv-act { height: 42px; font-size: 13px; }
}

/* ===== 整屏审核视图：一次一任务，图片完整显示，通过按钮常驻底部 ===== */
/* 整屏审核缩成卡片后，遮罩加实：上下不再透出底层页面的彩色块 */
#modalPending.rv-fs { padding: 0; background: #0C101C; backdrop-filter: none; }
#modalPending.rv-fs .modal-box {
  width: 100%; max-width: 520px; height: 92vh; max-height: none; border-radius: 12px;
}
#modalPending.rv-fs .modal-header,
#modalPending.rv-fs .modal-body,
#modalPending.rv-fs .modal-foot { display: none; }
.rv-full { display: none; flex-direction: column; height: 100%; min-height: 0; background: var(--bg); }
#modalPending.rv-fs .rv-full { display: flex; }
.rv-f-head {
  flex: 0 0 auto; height: 50px; box-sizing: border-box; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel); border-bottom: 1px solid var(--border);
}
.rv-f-title { font-size: 15px; font-weight: 700; color: var(--text); }
/* 2026-11-28 · 顶部标题右侧时间：紧贴「未通过」，等宽数字、横向不换行 */
.rv-f-title-wrap { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.rv-f-head-time {
  font-size: 11.5px; font-weight: 400; color: var(--muted);
  white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.rv-f-head-time:empty { display: none; }
.rv-f-back {
  width: 82px; height: 32px; box-sizing: border-box; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel-2); color: var(--text);
  font-family: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
.rv-f-info { flex: 0 0 auto; padding: 10px 12px 6px; }
.rv-f-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rv-f-line b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 2026-11-14 · 未通过页平台名：亮填充胶囊突出（四主题用各自主色） */
.rv-f-plat {
  flex: 0 0 auto; max-width: 96px; box-sizing: border-box;
  padding: 2px 8px; border: 1px solid transparent; border-radius: 4px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; letter-spacing: .2px;
}
.rv-f-plat:empty { display: none; }
/* 列表卡片 / 画廊大图也补平台名，与整屏一致亮填充 */
.rv-c-plat {
  display: inline-block; flex: 0 0 auto; max-width: 80px; box-sizing: border-box;
  padding: 1px 7px; border: 1px solid transparent; border-radius: 4px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.rv-c-plat:empty { display: none; }
/* 终端主题主色是霓虹青，深色字才看得清 */
html[data-theme="ins"] .rv-f-plat, html[data-theme="ins"] .rv-c-plat { color: #04121A; }
/* 2026-11-13 · 整屏审核：任务名行中间显示提交时间，等宽数字、不换行、空值不占位 */
.rv-f-submit {
  flex: 0 0 auto; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rv-f-submit:empty { display: none; }
.rv-f-meta {
  flex: 1 1 auto; min-width: 0; text-align: right; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv-f-reason { margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.rv-f-reason:empty { display: none; }
.rv-f-stage {
  flex: 1 1 auto; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 44px;
}
.rv-f-shot {
  flex: 0 0 auto; min-width: 0;
  width: auto; height: auto; max-width: 88vw;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  overflow: visible;
}
.rv-f-shot .rv-f-img {
  display: block; width: auto; height: auto;
  max-width: min(68vw, 268px); max-height: min(52vh, 448px);
  object-fit: contain; cursor: zoom-in;
}
/* 2026-12-01：滑动翻单区域不足——图几乎占满舞台，手指落在图上滑动被 img 挡住。
   让图片对触摸"透明"（touch 事件穿透到 stage 的 ontouchstart/ontouchend），
   保留 cursor:zoom-in 与点击放大；滑动翻单在图片上也能生效。 */
.rv-f-shot .rv-f-img { touch-action: pan-y; pointer-events: auto; }
.rv-f-shot.is-duo .rv-f-img { max-width: min(41vw, 160px); }
.rv-f-noimg { font-size: 12px; color: var(--muted); padding: 48px 20px; }
.rv-f-round {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  -webkit-tap-highlight-color: transparent;
  width: 36px; height: 36px; box-sizing: border-box; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer;
}
.rv-f-round:disabled { opacity: .3; cursor: default; }
.rv-f-prev { left: 4px; }
.rv-f-next { right: 4px; }
.rv-f-idx {
  flex: 0 0 auto; padding: 8px 0 4px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.rv-f-acts {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 8px 12px 14px;
  background: var(--bg); border-top: 1px solid var(--border);
}
.rv-f-acts .rv-f-btn {
  flex: 1 1 0; width: 0; min-width: 0; height: 46px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; white-space: nowrap; padding: 0 4px;
  border-radius: 8px; cursor: pointer;
}
@media (max-width: 768px) {
  /* 2026-11-12：整屏审核不再整页填充 —— 内容自适应高度居中卡片，上下缩短、操作区上移 */
  #modalPending.rv-fs { padding: 12px 10px; }
  #modalPending.rv-fs .modal-box {
    max-width: none; height: auto; max-height: 86dvh; border-radius: 14px;
  }
  #modalPending.rv-fs .rv-full { height: auto; }
  .rv-f-head { height: 44px; }
  /* 2026-11-12：切换图片时舞台与信息区尺寸恒定，卡片不塌陷、整窗不闪 */
  .rv-f-info { padding: 8px 12px 4px; min-height: 58px; }
  .rv-f-stage { padding: 8px 42px; }
  .rv-f-shot { min-width: min(68vw, 268px); min-height: min(52dvh, 448px); }
  .rv-f-idx { padding: 6px 0 2px; }
  .rv-f-acts { padding: 6px 12px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .rv-f-shot .rv-f-img { max-height: min(52dvh, 448px); }
}

/* ===================== 2026-11-30 13:06 · 日志页看图信息区「9号印章」方案 =====================
   仅作用于日志页弹层 #modalReviewEmbed；平台页整屏看图（modalPending）不受影响。
   信息卡固定白底深字（四主题下观感一致），未通过改右上斜盖章，元信息图标化。 */
#modalReviewEmbed .rv-f-head.rv9-head { justify-content: flex-end; }
#modalReviewEmbed .rv9-info {
  position: relative; overflow: hidden; flex: 0 0 auto;
  background: #FFFFFF; color: #1B2233; padding: 13px 16px 10px;
}
#modalReviewEmbed .rv9-stamp {
  position: absolute; right: 10px; top: 10px; transform: rotate(9deg);
  border: 2.5px solid rgba(184, 69, 59, .75); color: rgba(184, 69, 59, .88);
  border-radius: 8px; padding: 2px 10px;
  font-weight: 900; font-size: 14px; letter-spacing: 3px; line-height: 1.5;
  pointer-events: none;
}
#modalReviewEmbed .rv9-taskrow { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 92px; }
#modalReviewEmbed .rv9-taskrow b {
  font-size: 16.5px; font-weight: 900; color: #1B2233;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#modalReviewEmbed .rv9-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px;
  font-size: 12.5px; font-weight: 700; color: #33415C;
  font-variant-numeric: tabular-nums;
}
#modalReviewEmbed .rv9-g { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
#modalReviewEmbed .rv9-g span { white-space: nowrap; }
#modalReviewEmbed .rv9-ic {
  width: 13px; height: 13px; flex: none;
  stroke: #7A86A0; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
#modalReviewEmbed .rv9-info .rv-f-reason {
  margin-top: 9px; border-top: 1px solid #E3E8EF; padding-top: 7px;
  font-size: 13px; line-height: 1.5; color: #7A5A2E;
}
#modalReviewEmbed .rv9-info.is-empty .rv9-stamp,
#modalReviewEmbed .rv9-info.is-empty .rv9-meta { display: none; }

/* ===================== 识别模式选择（账号设置） ===================== */
.om-card { padding: 14px 16px; margin-bottom: 16px; }
.om-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.om-txt { min-width: 0; }
.om-txt h3 { margin: 0 0 4px; font-size: 14px; }
.om-txt .muted { font-size: 12.5px; }
.om-switch { width: 84px; height: 34px; flex: 0 0 84px; }
.om-tip { margin-top: 10px; font-size: 11.5px; line-height: 1.5; }
.om-list { display: flex; flex-direction: column; gap: 10px; }
.om-item {
  box-sizing: border-box; width: 100%; height: 128px;
  padding: 12px 13px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel-2); cursor: pointer;
  display: flex; flex-direction: column;
}
.om-item.active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.om-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.om-item-top b { font-size: 13.5px; color: var(--text); white-space: nowrap; }
.om-tag {
  box-sizing: border-box; height: 22px; line-height: 20px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.om-tag.on { color: var(--primary); border-color: var(--primary); }
.om-desc { margin-top: 7px; font-size: 12px; line-height: 1.6; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.om-check { margin-top: auto; padding-top: 6px; font-size: 11.5px; color: var(--muted); }
.om-item.active .om-check { color: var(--primary); font-weight: 600; }
.om-status { margin-top: 12px; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; min-height: 18px; }
/* 智能混合卡片因内嵌阈值输入，需要更高（用类名而非 :has()，兼容微信 X5 老内核） */
.om-item.om-item-hybrid { height: auto; min-height: 128px; }
.om-hybrid-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 7px; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel-2);
  font-size: 11px; line-height: 1.4; color: var(--muted);
}
.om-hybrid-row label { color: var(--text); white-space: nowrap; }
.om-hybrid-row input[type=number] {
  width: 64px; height: 28px; padding: 0 6px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text); font-size: 12px;
}
.om-btn { width: 108px; height: 36px; flex: 0 0 108px; }
@media (max-width: 768px) {
  .om-card { padding: 12px 13px; margin-bottom: 14px; }
  .om-switch { width: 76px; height: 34px; flex-basis: 76px; }
  .om-item { height: 128px; }
  .om-item.om-item-hybrid { height: auto; min-height: 128px; }
  .om-btn { width: 0; flex: 1 1 0; }
}

/* ===================== 2026-11-18 · 副行「平台名 · 模板标签」圆点分隔符移除 =====================
   用户圈红框点名去掉任务名下方副行里平台名与模板标签之间的「·」，模板标签贴到平台名后，
   仅留 4px 呼吸间距（间距在 style.css 共用段，分隔符在 platforms.html 渲染处删除）。
   其余状态标签（截止到期等）的分隔点不受影响。 */
.cat-sub .cat-tpl { margin-left: 4px; }
/* 平台名边框标签：边框紧贴文字，四主题通用；只作用于任务卡副行平台名 */
.cat-plat.tag-muted {
  display: inline-flex !important; align-items: center; justify-content: center;
  height: 20px; padding: 0 5px !important; box-sizing: border-box;
  letter-spacing: 0 !important; white-space: nowrap;
}

/* ===================== 2026-11-23 21:18 · 纸墨主题平台名骑边框正中·无底色（仅 retro 手机） =====================
   用户要求：① 不要背景垫色，纯文字；② 字骑在卡片左边框正中，一半在卡片外、一半在卡片内。
   此前真机裁字根因是目录表容器 .table-wrap 的 overflow-x:auto 把超出表格左缘的部分剪掉；
   此处对该容器放开裁剪（目录表手机端为卡片网格，无需横向滚动），字即可安全骑线。
   仅 retro 主题手机端生效，其余主题与桌面端零改动。平台名文本/接口/审核逻辑不变。 */
@media (max-width: 768px) {
  html[data-theme="retro"] body.page-platforms .card-body > .table-wrap { overflow: visible; }
  html[data-theme="retro"] table.catalog-cards tbody tr {
    position: relative !important;
  }
  html[data-theme="retro"] table.catalog-cards .cat-plat.tag-muted {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--text-2) !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    z-index: 2 !important;
  }
  /* 22:45 纸墨主题：竖排平台名统一醒目砖红加粗（方案2），纯文字无底色、骑边框不变 */
  html[data-theme="retro"] table.catalog-cards .cat-plat.tag-muted {
    color: #9A3B2E !important; font-weight: 800 !important;
  }
  /* 21:35 边框在竖排平台名处开缺口：只擦掉字后那 1px 线，保留圆角与其它边框 */
  html[data-theme="retro"] table.catalog-cards tbody tr::before {
    content: ""; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
    width: 1px; height: 54px; background: var(--panel); z-index: 1; pointer-events: none;
  }
}

/* ===================== 2026-11-23 21:18 · 构成主题平台名骑边框正中·无底色（仅 light 手机） =====================
   同 retro：无底色纯文字、骑边框正中一半在外一半在内；放开目录表容器裁剪。
   仅 light 主题手机端生效（与 retro 同步），starry/ins 与桌面端零改动。 */
@media (max-width: 768px) {
  html[data-theme="light"] body.page-platforms .card-body > .table-wrap { overflow: visible; }
  html[data-theme="light"] table.catalog-cards tbody tr {
    position: relative !important;
  }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--text-2) !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    z-index: 2 !important;
  }
  /* 22:45 构成主题：竖排平台名按平台固定配色、每个平台一个醒目色（方案1），纯文字无底色、骑边框不变 */
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted { font-weight: 800 !important; }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted.plat-color-0 { color: #C0392B !important; }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted.plat-color-1 { color: #1565C0 !important; }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted.plat-color-2 { color: #00897B !important; }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted.plat-color-3 { color: #7B1FA2 !important; }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted.plat-color-4 { color: #E65100 !important; }
  html[data-theme="light"] table.catalog-cards .cat-plat.tag-muted.plat-color-5 { color: #2E7D32 !important; }
  /* 21:35 边框在竖排平台名处开缺口：只擦掉字后那 1px 线，保留圆角与其它边框 */
  html[data-theme="light"] table.catalog-cards tbody tr::before {
    content: ""; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
    width: 1px; height: 54px; background: var(--panel); z-index: 1; pointer-events: none;
  }
}

/* ===================== 2026-11-22 · 纸墨主题任务列表恢复全横排 =====================
   撤销 11-09「纸墨左列平台名竖排」的专属重排：删掉 retro .cat-wrap 的 grid +
   .cat-plat 的 writing-mode:vertical-rl。现在四主题共用同一套默认横排排版：
   任务名一行、副行「平台名 · 模板标签 · 状态」一行。其它三主题本就没有这段规则，不受影响。 */

/* ==========================================================================
   2026-11-12 · B 类界面整改（码道接续）
   B1 平台手机筛选区压缩 / B5 审核日志桌面列宽 / B9 模板桌面列宽
   纯布局与间距调整，颜色只用主题变量，四主题通用；整段可回滚。
   ========================================================================== */

/* B1 · 平台管理手机端：压缩筛选区垂直占用，首屏多看约一行任务（筛选层级不变） */
@media (max-width: 768px) {
  body.page-platforms .card-head { gap: 6px !important; padding: 8px 10px !important; }
  body.page-platforms .card-head .chip { padding: 3px 8px; font-size: 11.5px; }
  body.page-platforms .pf-toolbar { margin-bottom: 8px !important; gap: 6px; }
  body.page-platforms .pf-switches .switch-line { font-size: 11.5px; gap: 5px; }
  body.page-platforms .pf-actions { gap: 5px; }
  body.page-platforms .pf-actions .btn { height: 30px; }
  body.page-platforms #taskKeyword { height: 30px; font-size: 12px; }
}

/* B5 · 审核日志桌面端：固定列宽，提交人列不再吞掉半屏、时间列前移 */
@media (min-width: 769px) {
  body.page-logs .table-wrap table { table-layout: fixed; width: 100%; }
  /* 2026-11-23：必须 nowrap，否则 text-overflow:ellipsis 不生效、长任务名/时间换行成两行导致行高参差。
     与手机端（max-width:768 块）的 nowrap 保持一致：任何视口下日志表都单行省略号、行高统一。 */
  body.page-logs .table-wrap td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.page-logs .table-wrap th:nth-child(1), body.page-logs .table-wrap td:nth-child(1) { width: 10% !important; }
  body.page-logs .table-wrap th:nth-child(2), body.page-logs .table-wrap td:nth-child(2) { width: 22% !important; }
  body.page-logs .table-wrap th:nth-child(3), body.page-logs .table-wrap td:nth-child(3) { width: 26% !important; }
  body.page-logs .table-wrap th:nth-child(4), body.page-logs .table-wrap td:nth-child(4) { width: 10% !important; }
  body.page-logs .table-wrap th:nth-child(5), body.page-logs .table-wrap td:nth-child(5) { width: 20% !important; }
  body.page-logs .table-wrap th:nth-child(6), body.page-logs .table-wrap td:nth-child(6) { width: 12% !important; }
}

/* B9 · 模板管理桌面端：名称列加宽，空的关键词列与步骤列收窄 */
@media (min-width: 769px) {
  body.page-templates .table-wrap table { table-layout: fixed; width: 100%; }
  body.page-templates .table-wrap td { overflow: hidden; text-overflow: ellipsis; }
  body.page-templates .table-wrap th:nth-child(1), body.page-templates .table-wrap td:nth-child(1) { width: 34% !important; }
  body.page-templates .table-wrap th:nth-child(2), body.page-templates .table-wrap td:nth-child(2) { width: 30% !important; }
  body.page-templates .table-wrap th:nth-child(3), body.page-templates .table-wrap td:nth-child(3) { width: 10% !important; }
  body.page-templates .table-wrap th:nth-child(4), body.page-templates .table-wrap td:nth-child(4) { width: 26% !important; }
}

/* 2026-11-12 · 验证步骤改为「步骤①②标签切换」：标题行胶囊标签，点哪个只显示哪个步骤卡片 */
.step-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 16px 0; }
/* 2026-11-13：标签移进「删除步骤」那一行后，行内由 .card-head 负责留白，这里不再叠一层 */
#modalTpl .step-head .step-tabs { padding: 0; }
.step-tab { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
  color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 1.2;
  -webkit-tap-highlight-color: transparent; outline: none; }
.step-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.step-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#stepsBox { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start; }
#stepsBox > .steps-empty-wrap { grid-column: 1 / -1; }
@media (max-width: 768px) { .step-tabs { padding: 8px 12px 0; } }

/* 2026-11-13 · 压缩模板编辑弹窗内的空白（只作用于 #modalTpl，不动其它页面） */
#modalTpl .card-head { padding: 10px 12px; }
#modalTpl .card-body { padding: 10px 12px; }
#modalTpl .group-box { padding: 8px 9px; margin-bottom: 8px; }
#modalTpl .group-head { margin-bottom: 6px; }
#modalTpl .form-group { margin-bottom: 7px; }
#modalTpl .tpl-duo-box { padding: 7px 9px; }
#modalTpl .tpl-duo-h { margin-bottom: 6px; }
#modalTpl .step-tabs { padding: 8px 12px 0; }
