/* ============================================================
   报表任务系统 · 运营控制台样式（V0.1）
   设计基线：报表系统-运营控制台.html（清爽蓝白风）
   分节：tokens / 布局 / 通用元件 / 表格工具栏 / 弹窗表单 /
         字段绑定 / 试运行面板 / 登录 / 浮层
   ============================================================ */

:root {
  --page: #f4f7fb; --panel: #ffffff; --ink: #172033; --muted: #738096;
  --line: #e5eaf1; --soft: #f8fafc;
  --blue: #2563eb; --blue-bg: #eff6ff;
  --green: #15803d; --green-bg: #edf9f1;
  --amber: #a16207; --amber-bg: #fff8e6;
  --red: #c2413b; --red-bg: #fff1f0;
  --purple: #7c3aed; --purple-bg: #f5f0ff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* 关键：组件类样式 display 会覆盖 hidden 属性，必须强制 */
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--page); font-size: 13px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }
a { color: var(--blue); text-decoration: none; }
code { font-family: Consolas, "Courier New", monospace; }

/* ---------- 布局（运营控制台同款） ---------- */
.app { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
/* 侧栏 sticky 全高（2026-09-21）：页面下拉时侧栏固定，用户卡始终钉在屏幕左下角 */
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 12px 16px; border-right: 1px solid #dce3ec; background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.brand img { flex: none; width: 34px; height: 34px; border-radius: 7px; object-fit: contain; background: #fff; }
.sidebar-brand img { width: 36px; height: 36px; padding: 2px; border: 1px solid #e5eaf1; border-radius: 6px; }
/* 登录页品牌区：logo 徽章化 + 渐变主标题 + 英文小字 + 运营控制台徽章（2026-09-15 改版） */
.login-brand { display: grid; justify-items: center; text-align: center; padding: 0 0 2px; }
.login-brand img { width: 76px; height: 76px; padding: 6px; border: 1px solid #e8edf4; border-radius: 20px; object-fit: contain; background: #fff; box-shadow: 0 8px 22px rgba(30,58,138,.12); }
.login-title { display: block; margin-top: 16px; font-size: 21px; font-weight: 800; letter-spacing: .02em; color: #1e3a8a;
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@supports not (background-clip: text) { .login-title { background: none; -webkit-text-fill-color: currentColor; } }
.login-en { display: block; margin-top: 7px; color: #94a3b8; font-size: 10px; font-weight: 600; letter-spacing: .24em; }
.login-badge { display: inline-block; margin-top: 14px; padding: 3px 12px; border: 1px solid #cfe0ff; border-radius: 999px; color: var(--blue); background: var(--blue-bg); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; }
.brand strong { display: block; font-size: 15px; }
/* 英文主标题(侧栏品牌区)：重字重+宽字距+品牌蓝渐变字(降级深色)。
   侧栏 218px 下文字区约 148px, 14px/0.08em/nowrap 恰好单行不溢出(16px 会换行) */
.brand strong.brand-en { font-size: 14px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; color: #1e3a8a;
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@supports not (background-clip: text) { .brand strong.brand-en { background: none; -webkit-text-fill-color: currentColor; } }
.brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.sidebar-brand .brand-en + span { font-size: 12.5px; color: #5a6b85; letter-spacing: .12em; }  /* 中文副标题(叁柒报表系统)加宽字距呼应主标题 */
.nav-label { padding: 0 10px 8px; color: #9aa6b7; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.nav-label.management { margin: 13px 10px 0; padding: 13px 0 8px; border-top: 1px solid #e8edf4; }
.nav { display: grid; gap: 3px; }
.nav button { display: flex; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 6px; color: #526178; background: transparent; text-align: left; }
.nav button::before { width: 16px; margin-right: 11px; color: #8b98aa; content: attr(data-icon); text-align: center; font-size: 15px; }
.nav button:hover { color: var(--blue); background: #f5f8ff; }
.nav button.active { color: var(--blue); background: #eaf2ff; box-shadow: inset 3px 0 0 var(--blue); font-weight: 600; }
.nav button.active::before { color: var(--blue); }
.nav .count { margin-left: auto; padding: 1px 6px; border-radius: 10px; color: var(--red); background: var(--red-bg); font-size: 10px; }
.side-footer { margin-top: auto; padding: 11px 12px; border: 1px solid #e5eaf1; border-radius: 6px; background: rgba(255,255,255,.7); }
.service { display: flex; align-items: center; gap: 8px; color: #536177; font-size: 11px; font-weight: 600; }
.service-meta { margin: 7px 0 0 15px; color: var(--muted); font-family: Consolas, "Courier New", monospace; font-size: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.person { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1f5; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #1d4ed8; background: #dbeafe; font-size: 11px; font-weight: 700; }
.person strong, .person small { display: block; }
.person small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.topbar { position: sticky; top: 0; z-index: 4; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid rgba(220,227,236,.82); background: rgba(255,255,255,.88); box-shadow: 0 1px 8px rgba(23,32,51,.035); backdrop-filter: blur(10px); }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.crumb b { color: var(--ink); }
.live-status { display: inline-flex; align-items: center; gap: 6px; margin-left: 5px; padding-left: 13px; border-left: 1px solid var(--line); color: #4b6d5b; font-size: 11px; }
.live-status .dot { width: 6px; height: 6px; box-shadow: none; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #62718a; background: #fff; font-size: 15px; }
.icon-btn:hover { color: var(--blue); border-color: #bfdbfe; background: var(--blue-bg); }
/* 退出登录（顶栏）：内联 SVG 图标 + 文字（Unicode 电源符号缺字形曾渲染成方块）；
   组合 .button.danger 提供红字红边 / hover 红底的危险操作语义 */
.logout-btn { height: 32px; padding: 0 12px; font-size: 13px; }
.logout-btn svg { display: block; flex: none; }
.user-trigger { display: flex; align-items: center; gap: 7px; padding: 3px 4px 3px 3px; border: 0; border-radius: 6px; color: #46566f; background: transparent; font-size: 12px; }
.user-trigger:hover { background: var(--blue-bg); }
body.content-full .content { max-width: none; padding: 16px 20px 32px; }
.content { max-width: 1480px; margin: 0 auto; padding: 24px 32px 44px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h1 { margin: 0; font-size: 22px; }
.heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; align-items: center; }

/* ---------- 通用元件 ---------- */
.button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; color: #46566f; background: white; font-size: 12px; font-weight: 600; }
.button:hover:not(:disabled) { color: var(--blue); border-color: #bfdbfe; background: var(--blue-bg); }
.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.button.primary:hover:not(:disabled) { background: #1d4ed8; }
.button.danger { color: var(--red); border-color: #f3c7c4; }
.button.danger:hover:not(:disabled) { background: var(--red-bg); color: var(--red); }
.button.small { padding: 5px 8px; font-size: 11px; }
.link-button { padding: 3px; border: 0; color: var(--blue); background: transparent; font-size: 11px; }
.link-button:hover { text-decoration: underline; }
.link-button:disabled { color: var(--muted); cursor: not-allowed; opacity: .65; }   /* （三十）试运行进行中置灰 */
/* 数据量为0告警按钮（契约 §2.8）：红色描边 + 呼吸闪烁，引导用户点击确认 */
.zero-alert-btn {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600;
  color: var(--red); background: var(--red-bg); border: 1px solid var(--red);
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  animation: zero-alert-blink 1.1s ease-in-out infinite;
}
.zero-alert-btn:hover { background: var(--red); color: #fff; }
@keyframes zero-alert-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(220,38,38,0); } }
.panel { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge.success { color: var(--green); background: var(--green-bg); }
.badge.running { color: var(--blue); background: var(--blue-bg); }
.badge.failed { color: var(--red); background: var(--red-bg); }
.badge.pending { color: var(--amber); background: var(--amber-bg); }
.badge.unknown { color: var(--purple); background: var(--purple-bg); }
.badge.draft { color: #475569; background: #f1f5f9; }
@keyframes trial-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.trial-running { animation: trial-pulse 1.6s ease-in-out infinite; }   /* 任务列表"正在试运行中"呼吸态（2026-09-15） */
.platform { display: inline-block; padding: 3px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.platform.juguang { color: #b45309; background: #fff7ed; }
.platform.chengfeng { color: #0369a1; background: #eefaff; }
.empty { padding: 22px 16px; color: var(--muted); font-size: 11px; text-align: center; }
.chip { display: inline-flex; padding: 2px 7px; border-radius: 4px; background: var(--soft); color: #526178; font-size: 10px; font-family: Consolas, monospace; border: 1px solid var(--line); }
.chip.red { color: var(--red); background: var(--red-bg); border-color: #f3c7c4; font-weight: 700; }

/* ---------- 表格 + 工具栏（运营控制台同款） ---------- */
.toolbar { display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.search { position: relative; width: 230px; max-width: 100%; }
.search::before { position: absolute; top: 7px; left: 9px; color: #9aa6b7; content: "⌕"; font-size: 18px; line-height: 1; }
.search input { width: 100%; padding: 7px 9px 7px 29px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); font-size: 11px; }
.filter { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: #617089; background: #fff; font-size: 11px; }
.filter.active { color: var(--blue); border-color: #bfdbfe; background: var(--blue-bg); }
.toolbar .exe-sep { color: #526178; font-size: 11px; font-weight: 700; }
.toolbar .hint { margin-left: auto; color: #526178; font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
th { padding: 10px 18px; color: #33415c; background: #fafcff; font-size: 11px; font-weight: 700; white-space: nowrap; }
td { padding: 12px 18px; border-top: 1px solid #edf1f5; font-size: 12px; color: var(--ink); vertical-align: middle; }
tbody tr:hover td { background: #fbfdff; }
.pager { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid #edf1f5; font-size: 11px; color: #526178; }
/* 任务管理翻页行固定（2026-09-21 用户需求）：钉在视口底部不随滚动移位；
   面板 overflow:hidden 会废掉 sticky，故用 fixed + body.tasks-page 底部补偿空间 */
#task-pager, #exec-pager, #crawler-exec-pager { position: fixed; left: 218px; right: 0; bottom: 0; z-index: 3; background: var(--panel); border-top: 1px solid #edf1f5; padding: 10px 20px; box-shadow: 0 -3px 10px rgba(23,32,51,.05); }
body.tasks-page .content, body.exec-page .content { padding-bottom: 64px; }
body.crawler-exec-page .content { padding-bottom: 64px; }
@media (max-width: 720px) { #crawler-exec-pager { left: 58px; padding: 10px 18px; } }
@media (max-width: 720px) { #task-pager, #exec-pager { left: 58px; padding: 10px 18px; } }
.pager select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; color: var(--ink); }
.pager button { padding: 4px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; color: var(--ink); cursor: pointer; }
.pager button:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.pager button:disabled { color: var(--muted); cursor: not-allowed; opacity: .6; }
.list-table td.ops { max-width: none; overflow: visible; }

/* 任务区层次：统计卡片行（可点筛选） */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr !important; } }
.stat-card { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(23,32,51,.07); border-color: #c9d6ea; }
.stat-card.active { border-color: var(--blue); background: var(--blue-bg); box-shadow: 0 2px 8px rgba(37,99,235,.12); }
.stat-card b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.stat-card span { font-size: 11px; color: #526178; }
.stat-card.active b { color: var(--blue); }
.stat-card.green b { color: var(--green); }
.stat-card.purple b { color: var(--purple); }
.stat-card.amber b { color: var(--amber); }
.stat-card.red b { color: var(--red); }
.stat-card.blue b { color: var(--blue); }
/* 吸顶表头（表头行随页面滚动固定，顶栏 62px） */
.table-scroll { max-height: calc(100vh - 310px); min-height: 280px; overflow: auto; }
.table-scroll th { position: sticky; top: 0; z-index: 2; }
.list-table td { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-table th:nth-child(7), .list-table td:nth-child(7) { max-width: 130px; }   /* 最新执行时间 */
.list-table th:nth-child(8), .list-table td:nth-child(8) { max-width: 150px; }   /* 最新执行状态 */
.list-table td.ops { max-width: none; overflow: visible; }

/* 任务区层次：统计卡片行（可点筛选） */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr !important; } }
.stat-card { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(23,32,51,.07); border-color: #c9d6ea; }
.stat-card.active { border-color: var(--blue); background: var(--blue-bg); box-shadow: 0 2px 8px rgba(37,99,235,.12); }
.stat-card b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.stat-card span { font-size: 11px; color: #526178; }
.stat-card.active b { color: var(--blue); }
.stat-card.green b { color: var(--green); }
.stat-card.purple b { color: var(--purple); }
.stat-card.amber b { color: var(--amber); }
.stat-card.red b { color: var(--red); }
.stat-card.blue b { color: var(--blue); }
/* 吸顶表头（表头行随页面滚动固定，顶栏 62px） */
.table-scroll { max-height: calc(100vh - 310px); min-height: 280px; overflow: auto; }
.table-scroll th { position: sticky; top: 0; z-index: 2; }
.list-table td.ops .link-button, .list-table td.ops .more { padding-left: 4px; padding-right: 4px; }
.list-table td .task { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-table td .task small { overflow: hidden; text-overflow: ellipsis; }
.task { color: var(--ink); font-weight: 700; }
.task small { display: block; margin-top: 4px; color: #526178; font-size: 11px; font-weight: 400; }
.data { color: #33415c; font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.more { padding: 2px 6px; border: 0; border-radius: 4px; color: #4a5a74; background: transparent; font-size: 16px; }

/* 工作台增强：倒计时环、数据高亮、元数据 */
.dash-meta { color: #46566f; font-size: 11px; font-weight: 600; }
.heading #dash-countdown { width: 36px; height: 36px; }
.heading #dash-countdown circle:last-child { animation: dash-spin 0.3s linear; }
@keyframes dash-spin { from { stroke-dashoffset: calc(94px - (94px * var(--progress, 100%) / 100)); } }
.heading #dash-countdown text { font-size: 11px; }
/* 统计卡片数据强调：大字、阴影、渐变 */
.stat-card b { font-weight: 900; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.03); }
.stat-card.green b { background: linear-gradient(135deg, #15803d 0%, #22c55e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.red b { background: linear-gradient(135deg, #c2413b 0%, #ef4444 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.blue b { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* 零数据告警卡片脉冲 */
.stat-card.red { animation: dash-alert-pulse 1.8s ease-in-out infinite; }
@keyframes dash-alert-pulse { 0%, 100% { border-color: #f3c7c4; box-shadow: 0 0 0 0 rgba(194,65,59,.1); } 50% { box-shadow: 0 0 0 4px rgba(194,65,59,0); } }
.more:hover { color: var(--blue); background: var(--blue-bg); }

/* ---------- 弹窗（新建/编辑任务、试运行结果） ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 20px; background: rgba(23,32,51,.52); }
  /* 2026-10-14: qu mao bo li / suo duan dong hua - jian shao jie tu gong ju (WeChat Alt+A) zhua bu dao tan chuang de GIS ceng wenti */
/* 错误弹窗必须压过一切业务弹窗（编辑器/试运行结果 z-30/31）：提高选择器优先级 */
.modal-mask[data-err-modal] { z-index: 50 !important; display: grid; }
.modal-mask.show { display: grid; }
.trial-result-mask { position: fixed; inset: 0; z-index: 30; background: rgba(23,32,51,.42); backdrop-filter: blur(3px); }
.trial-result-dialog { position: fixed; inset: 20px; z-index: 31; display: grid; place-items: center; pointer-events: none; }
.trial-result-dialog .modal { max-height: calc(100vh - 40px); pointer-events: auto; }
.modal { width: min(880px, 100%); max-height: 90vh; min-height: 0; display: flex; flex-direction: column; border-radius: 10px; background: #fff; box-shadow: 0 24px 64px rgba(23,32,51,.22); animation: modalIn .08s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 0; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { min-height: 0; padding: 6px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 10px 10px; }
.modal-foot .note { margin-right: auto; color: var(--muted); font-size: 10px; align-self: center; max-width: 420px; line-height: 1.6; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; margin-top: 14px; }
.field { display: grid; gap: 6px; }
.field label { color: #46566f; font-size: 11px; font-weight: 600; }
.field label em { color: var(--muted); font-style: normal; font-size: 10px; font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid #b6c2d4; border-radius: 6px; background: #fbfcfe; color: var(--ink); font-size: 12px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8fa2bd; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.field textarea { resize: vertical; min-height: 56px; line-height: 1.7; }
.field .hint { color: var(--muted); font-size: 10px; }
.field { margin-bottom: 2px; }
.form-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dde5ef; }
.form-section > b { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.form-section > b::before { content: ""; width: 16px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 9px; align-items: end; }
.error-strip { margin-top: 12px; padding: 10px 13px; border: 1px solid #f3c7c4; border-radius: 6px; background: var(--red-bg); color: var(--red); font-size: 11px; line-height: 1.7; }

/* ---------- 字段绑定表 ---------- */
.bind-table { width: 100%; margin-top: 12px; }
.bind-table table { min-width: 620px; table-layout: fixed; }
.bind-table td, .bind-table th { padding: 7px 8px; }
.bind-table input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; }
.bind-table select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; background: #fff; }
.bind-table input[data-bind-field] { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; font-family: Consolas, monospace; }
.bind-table input[data-bind-field]:disabled { background: var(--soft); color: var(--muted); }
.bind-table th.hdr-col { width: 14%; }             /* 表头列压缩（用户要求：让位状态列） */
.bind-table th.bind-col { width: 24%; }
.bind-table th.rule-col { width: 8%; }
.bind-table th.status-col { width: 26%; }          /* 状态列加宽：显示字段中文名/规则摘要/未匹配提示 */
.bind-table td.hdr-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-table td.status-cell { font-size: 10px; line-height: 1.6; word-break: break-all; }
.bind-mark-auto { color: var(--green); font-size: 10px; font-weight: 700; }
.bind-mark-empty { color: var(--purple); font-size: 10px; font-weight: 700; }
.bind-mark-none { color: var(--red); font-size: 10px; }
.bind-rule-text { color: var(--purple); font-family: Consolas, monospace; }
.col-letter { color: var(--muted); font-family: Consolas, monospace; font-size: 10px; }
.bind-summary { margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.bind-summary b { color: #46566f; }

/* ---------- 试运行结果面板 ---------- */
.trial-result { border: 1px solid var(--line); border-radius: 7px; margin-top: 14px; overflow: hidden; }
.trial-sheet { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.trial-sheet:last-child { border-bottom: 0; }
.trial-sheet h4 { margin: 0; font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.trial-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 9px; margin-top: 11px; }
.trial-metric { padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.trial-metric small { display: block; color: var(--muted); font-size: 9px; }
.trial-metric b { display: block; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.trial-metric.ok small { color: var(--green); }
.trial-preview-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 15px; color: #46566f; font-size: 11px; }
.trial-preview-head span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.trial-preview-wrap { max-width: 100%; margin-top: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.trial-preview-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 10px; }
.trial-preview-table th, .trial-preview-table td { min-width: 110px; max-width: 260px; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; vertical-align: top; }
.trial-preview-table th:last-child, .trial-preview-table td:last-child { border-right: 0; }
.trial-preview-table tr:last-child td { border-bottom: 0; }
.trial-preview-table th { position: sticky; top: 0; z-index: 1; color: #46566f; background: #f5f8fc; font-weight: 600; }
.trial-preview-table th span { display: block; color: var(--muted); font-family: Consolas, monospace; font-size: 9px; font-weight: 400; }
.trial-preview-table th b { display: block; margin-top: 3px; color: #34445d; font-size: 10px; font-weight: 700; }
.trial-preview-table td { overflow: hidden; text-overflow: ellipsis; color: #34445d; }
.trial-preview-empty { margin-top: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.trial-review-foot { display: grid; gap: 12px; align-items: stretch; }
.trial-review-notice { padding: 11px 13px; border: 1px solid #e5ad47; border-left: 4px solid var(--amber); border-radius: 6px; color: #754f10; background: var(--amber-bg); font-size: 13px; font-weight: 700; line-height: 1.5; }
.trial-review-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }

.execution-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 18px; }
.execution-row { cursor: pointer; }
.execution-row.selected td { background: #eef5ff; }
.event-list { max-height: 620px; overflow: auto; }
.event-row { display: grid; grid-template-columns: 152px auto 1fr; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11px; }
.event-row time { color: var(--muted); font-family: Consolas, monospace; white-space: nowrap; }
.event-row p { grid-column: 1 / -1; margin: 0; color: #46566f; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 860px) { .execution-layout { grid-template-columns: 1fr; } }

/* ---------- 登录 ---------- */
/* ---------- 登录（2026-09-15 改版：层次背景 + 玻璃卡片） ---------- */
.login-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background:
    radial-gradient(640px 420px at 12% -8%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(560px 420px at 100% 108%, rgba(21,128,61,.08), transparent 60%),
    radial-gradient(900px 600px at 78% -18%, rgba(59,130,246,.07), transparent 65%),
    linear-gradient(160deg, #eef4fd 0%, #f7f9fc 55%, #eef7f2 100%); }
.login-wrap::before { content: ""; position: absolute; inset: 0;              /* 细网格：科技感底纹，径向遮罩只留卡片附近 */
  background-image: linear-gradient(rgba(23,32,51,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,32,51,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 520px at 50% 44%, #000 0%, transparent 78%);
  mask-image: radial-gradient(720px 520px at 50% 44%, #000 0%, transparent 78%); }
.login-card { position: relative; z-index: 1; width: 384px; max-width: calc(100vw - 32px);
  padding: 34px 34px 30px; border: 1px solid rgba(229,234,241,.9); border-radius: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(23,32,51,.12), 0 4px 16px rgba(23,32,51,.05); }
.login-card::before { content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #2563eb 30%, #3b82f6 50%, #2563eb 70%, transparent); }  /* 顶部品牌蓝渐变高光 */
.login-card .sub { margin: 16px 0 20px; color: #64748b; font-size: 12px; line-height: 1.75; text-align: center; }
.login-fields { display: grid; gap: 14px; }
.login-card .field input { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.login-card .button { width: 100%; justify-content: center; padding: 11px; margin-top: 18px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.login-error { margin-top: 14px; padding: 9px 12px; border: 1px solid #f3c7c4; border-radius: 6px; background: var(--red-bg); color: var(--red); font-size: 11px; display: none; }
.login-error.show { display: block; }

/* ---------- 浮层：行菜单 / toast / 加载 ---------- */
.row-menu { position: fixed; z-index: 50; display: none; width: 150px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 10px 28px rgba(23,32,51,.14); }
.row-menu.show { display: grid; }
.row-menu button { padding: 8px 9px; border: 0; border-radius: 4px; color: #46566f; background: transparent; text-align: left; font-size: 11px; }
.row-menu button:hover:not(:disabled) { color: var(--blue); background: var(--blue-bg); }
.row-menu button.danger:hover { color: var(--red); background: var(--red-bg); }
.row-menu .sep { height: 1px; margin: 4px 2px; background: var(--line); }
.toast { position: fixed; right: 26px; bottom: 22px; z-index: 60; padding: 11px 15px; border-left: 3px solid var(--blue); border-radius: 7px; color: #fff; background: #1f2937; box-shadow: 0 12px 30px rgba(23,32,51,.22); font-size: 12px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.warn { border-left-color: var(--red); }
.loading-line { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 2px; overflow: hidden; background: transparent; display: none; }
.loading-line.show { display: block; }
.loading-line::after { content: ""; display: block; height: 100%; width: 40%; background: var(--blue); border-radius: 2px; animation: slide 1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%);} 100% { transform: translateX(260%);} }

/* ---------- 任务向导（v0.3 四步：数据性质→存储→引擎→表单） ---------- */
.wizard-steps { display: flex; gap: 6px; margin: 14px 22px 0; }
.wizard-step { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--soft); font-size: 11px; }
.wizard-step .num { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 10px; font-weight: 700; }
.wizard-step.active { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.wizard-step.active .num { background: var(--blue); color: #fff; }
.wizard-step.done { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.wizard-step.done .num { background: var(--green); color: #fff; }
.wizard-page { display: grid; gap: 12px; padding: 18px 22px 6px; }
.wizard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wizard-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); text-align: left; transition: border-color .15s, box-shadow .15s; }
.wizard-card:hover:not(.off) { border-color: var(--blue); box-shadow: 0 4px 14px rgba(37,99,235,.10); }
.wizard-card.sel { border-color: var(--blue); background: var(--blue-bg); }
.wizard-card.off { opacity: .5; cursor: not-allowed; }
.wizard-card .t { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wizard-card .d { color: var(--muted); font-size: 11px; line-height: 1.7; }
.wizard-card .tag-soon { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: 10px; }
.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 22px 0; padding: 12px 0; border-top: 1px solid var(--line); }
.wizard-foot .sel-hint { color: var(--muted); font-size: 11px; }

/* ---------- 日历区间选择（数据日期维度，v0.3：T-N ~ T-M / 固定起始） ---------- */
.date-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.date-range .field { margin: 0; }
.range-mode { display: flex; gap: 8px; }
.range-mode button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; }
.range-mode button.active { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.range-calc { color: var(--muted); font-size: 11px; }
.range-calc b { color: var(--ink); }

/* ---------- 多 Sheet 标签（v0.3：一任务多工作表，对齐生成器 SheetPanel） ---------- */
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 12px; padding: 8px 0 2px; border-top: 1px dashed #e3eaf3; }
.sheet-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 11px; }
.sheet-tab.active { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 700; }
.sheet-tab .del { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 11px; line-height: 1; }
.sheet-tab .del:hover { background: var(--red-bg); color: var(--red); }
.sheet-tab .ok-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- 自定义字段规则弹窗（对齐生成器 eval_custom 四类） ---------- */
.opt-col { display: flex; flex-direction: column; gap: 7px; margin-top: 5px; }
.opt-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 5px; }
.opt-col label, .opt-row label { white-space: nowrap; line-height: 1.4; }
.opt-col input[type="checkbox"], .opt-row input[type="checkbox"] { accent-color: var(--blue); width: 14px; height: 14px; flex: none; }
.rule-kind-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.rule-kind-row button { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; }
.rule-kind-row button.active { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 700; }
.rule-pane { margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 7px; background: var(--soft); }
.rule-pane .field { margin: 0 0 8px; }
.rule-op { display: inline-block; min-width: 30px; text-align: center; font-weight: 700; color: var(--blue); }

/* ---------- 响应式（运营控制台同款断点） ---------- */
@media (max-width: 980px) { .form-grid-3 { grid-template-columns: 1fr; } .modal { width: 100%; } }
@media (max-width: 720px) {
  .app { grid-template-columns: 58px minmax(0, 1fr); }
  .sidebar { padding: 18px 7px; }
  .brand { justify-content: center; padding-bottom: 24px; }
  .sidebar-brand img { width: 30px; height: 30px; padding: 1px; }
  .brand div, .nav-label, .nav span, .side-footer { display: none; }
  .nav button { justify-content: center; padding: 10px; }
  .nav button::before { margin: 0; }
  .topbar, .content { padding-left: 18px; padding-right: 18px; }
  .live-status, .user-trigger > span:not(.avatar) { display: none; }
  .heading { align-items: flex-start; flex-direction: column; }
  .toolbar { flex-wrap: wrap; }
  .search { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .section-row { grid-template-columns: 1fr; }
}

/* ---------- 工作台 · 今日执行分布矩形图（9-21） ---------- */
.chart-legend { display: flex; gap: 12px; color: #33415c; font-size: 11px; font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 8px; height: 8px; border-radius: 2px; }
.lg-ok { background: linear-gradient(180deg, #34d399, #10b981); }
.lg-run { background: linear-gradient(180deg, #93c5fd, #60a5fa); }
.lg-fail { background: linear-gradient(180deg, #f87171, #ef4444); }
.bar-chart { display: flex; align-items: stretch; gap: 6px; height: 150px; padding: 14px 18px 10px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bar-wrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.bar-stack { width: min(30px, 72%); display: flex; flex-direction: column; border-radius: 3px 3px 0 0; overflow: hidden; transition: height .45s ease; }
.seg { width: 100%; min-height: 0; }
.seg-ok { background: linear-gradient(180deg, #34d399, #10b981); }
.seg-run { background: linear-gradient(180deg, #93c5fd, #60a5fa); }
.seg-fail { background: linear-gradient(180deg, #f87171, #ef4444); }
.bar-col > span { text-align: center; color: #33415c; font-size: 11px; font-weight: 600; font-family: Consolas, "Courier New", monospace; }
.bar-col:hover .bar-stack { filter: brightness(1.1); }
/* 窄面板下 24 小时标签会重叠：隔小时隐藏（偶数柱标签） */
@media (max-width: 760px) { .bar-col:nth-child(even) > span { visibility: hidden; } }
/* 工作台 · 队列健康警示条 + 慢耗时标记 */
.dash-banner { margin-bottom: 12px; padding: 10px 14px; border: 1px solid #f3c7c4; border-radius: 7px; color: var(--red); background: var(--red-bg); font-size: 12px; font-weight: 700; }
.chip.amber { color: var(--amber); background: var(--amber-bg); border-color: #ecd9a0; font-weight: 700; }
/* 顶栏服务状态探活：异常时红点红字（app.js startHealthProbe 切换 is-down） */
.live-status.is-down { color: var(--red); }
.live-status.is-down .dot { background: #ef4444; box-shadow: 0 0 0 3px var(--red-bg); animation: trial-pulse 1.6s ease-in-out infinite; }
/* 翻页行页码输入框（2026-09-21）：与翻页按钮同高 */
.page-no { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; color: var(--ink); text-align: center; }
.page-no:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* 执行记录（2026-09-21 完整版）：行选中态 + 右栏详情滚动 */
.execution-row { cursor: pointer; }
.execution-row.selected td { background: var(--blue-bg) !important; }
.execution-row.selected td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.execution-events > div:last-child { max-height: calc(100vh - 220px); overflow: auto; }
/* 执行记录工具栏：具体日期选择控件（与 .filter 按钮同高同风格） */
.filter-date { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: #617089; background: #fff; font-size: 11px; font-family: inherit; }
.filter-date:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
/* 工具栏筛选组：组内不拆行，换行时整组移动（执行记录 toolbar 用户反馈串行） */
.tool-group { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* 新建向导第①步 · 导入现有任务配置条（2026-09-22 用户定案） */
.import-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 16px; border: 1px dashed #c9d6ea; border-radius: 7px; background: var(--blue-bg); }
.import-bar .d { color: #46566f; font-size: 11px; }
.import-bar select { flex: 1; min-width: 160px; max-width: 260px; padding: 6px 8px; border: 1px solid #b6c2d4; border-radius: 5px; background: #fff; font-size: 11px; color: var(--ink); }
.import-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 0; border-radius: 6px;
  color: #fff; background: linear-gradient(120deg, #2563eb 0%, #3b82f6 100%);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(37,99,235,.28); transition: transform .12s, box-shadow .12s, filter .12s; }
.import-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,.34); }
.import-btn:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(37,99,235,.3); }
.import-btn svg { flex: none; }
/* 编辑器内联错误框（保存校验失败提示，2026-09-22 任务名重名复用） */
.error-box { margin-top: 10px; padding: 9px 12px; border: 1px solid #f3c7c4; border-radius: 6px; color: var(--red); background: var(--red-bg); font-size: 12px; font-weight: 600; }
/* 任务名重名实时提示（常驻直到改名；输入框红框由 JS 内联） */
.name-dup-hint { margin-top: 6px; padding: 6px 10px; border: 1px solid #f3c7c4; border-radius: 6px; color: var(--red); background: var(--red-bg); font-size: 11px; font-weight: 700; }
/* 聚合 Sheet 信息面板（编辑器只读展示） */
.agg-pane { padding: 14px 16px; border: 1px dashed #c9d6ea; border-radius: 7px; background: var(--blue-bg); }
.agg-title { margin: 0; font-weight: 700; font-size: 13px; color: #1e3a8a; }
.agg-sub { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
/* 计算规则操作数字段模糊下拉（输入 en/zh 片段实时过滤） */
.rule-field-menu { z-index: 60; max-height: 240px; overflow-y: auto; background: #fff; }
.rule-field-item { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; cursor: pointer; font-size: 11px; }
.rule-field-item:hover { background: var(--blue-bg); }
.rule-field-item b { color: var(--ink); font-family: Consolas, monospace; }
.rule-field-item span { color: var(--muted); }
.rule-field-item.none { cursor: default; color: var(--muted); }
/* 自定义规则弹窗（计算 N 操作数，2026-09-23 体验升级） */
.rule-modal .modal-body { padding-bottom: 10px; }
.rule-op-row { display: grid; grid-template-columns: 56px 92px minmax(0, 1fr) 28px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rule-op-type { height: 34px; border: 1px solid #b6c2d4; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink); }
.rule-op-input, .rule-operand-field input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #b6c2d4; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink); }
.rule-op-input:focus, .rule-operand-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.rule-operand-field { position: relative; min-width: 0; }
.rule-op-row .icon-btn { width: 28px; height: 28px; }
/* 计算操作数行：统一四列网格，首行与后续行完全对齐 */
.rule-op-row { display: grid; grid-template-columns: 56px 92px minmax(0, 1fr) 28px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rule-op-op { height: 34px; border: 1px solid #b6c2d4; border-radius: 6px; background: #fff; font-size: 13px; color: var(--ink); text-align: center; }
.rule-op-type { height: 34px; border: 1px solid #b6c2d4; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink); }
.rule-op-input, .rule-operand-field input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #b6c2d4; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink); }
.rule-op-input:focus, .rule-operand-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.rule-operand-field { position: relative; min-width: 0; }
.rule-op-row .icon-btn { width: 28px; height: 28px; }
/* 模糊下拉伸出弹窗：规则弹窗不裁剪，body 级浮层由 JS 定位（fixed） */
.rule-modal { overflow: visible; }
.rule-modal .modal-body { overflow: visible; }
.rule-field-menu { position: fixed; z-index: 60; max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid #b6c2d4; border-radius: 6px; box-shadow: 0 8px 22px rgba(23,32,51,.18); }
.rule-field-item { display: flex; gap: 8px; align-items: baseline; padding: 7px 12px; cursor: pointer; font-size: 12px; }
.rule-field-item:hover { background: var(--blue-bg); }
.rule-field-item b { color: var(--ink); font-family: Consolas, monospace; }
.rule-field-item span { color: var(--muted); font-size: 11px; }
.rule-field-item.none { cursor: default; color: var(--muted); }
