:root {
  --bg: #0b0d10;
  --bg-2: #12151a;
  --bg-3: #1a1e25;
  --line: #262c36;
  --fg: #e8ecf1;
  --fg-dim: #9aa5b4;
  --fg-dim2: #6b7684;
  --accent: #ff5a5f;
  --accent-2: #4dd4ac;
  --warn: #f0b429;
  --err: #ff5a5f;
  --ok: #4dd4ac;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--fg); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 600; line-height: 1.35; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; color: var(--fg-dim); font-weight: 500; }
code, .mono { font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 18px; background: var(--bg-2);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.topbar .brand { font-weight: 700; letter-spacing: .5px; }
.topbar .brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  padding: 6px 12px; border-radius: 8px; color: var(--fg-dim);
  font-size: 13px; transition: .15s;
}
.topbar nav a:hover { background: var(--bg-3); color: var(--fg); }
.topbar nav a.active { background: var(--bg-3); color: var(--fg); }
.topbar .spacer { flex: 1; }

/* 全局「返回首页」：置于各页顶栏最左，样式统一，箭头带一点位移反馈 */
.home-btn {
  color: var(--fg-dim); background: transparent; border-color: transparent;
  padding: 5px 10px; font-weight: 500;
}
.home-btn:hover { color: var(--fg); background: var(--bg-3); border-color: var(--line); }
.home-btn .arw { display: inline-block; transition: transform .16s ease; }
.home-btn:hover .arw { transform: translateX(-3px); }

/* ---------------------------------------------------------------- 通用 */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  background: var(--bg-3); color: var(--fg); border: 1px solid var(--line);
  font-size: 13px; font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #3a4351; background: #202630; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12px; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-3); color: var(--fg-dim); font-size: 11px;
  border: 1px solid var(--line); white-space: nowrap;
}
.tag.ok { color: var(--ok); border-color: #1f4a3d; background: #10231d; }
.tag.err { color: var(--err); border-color: #4a2027; background: #2a1216; }
.tag.warn { color: var(--warn); border-color: #4a3c18; background: #2a2312; }
.tag.happy { color: #7ee0a8; } .tag.tragic { color: #ff8a8f; }
.tag.open { color: #8ab4ff; } .tag.bittersweet { color: #f0b429; } .tag.dark { color: #b98aff; }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 10px; }
.dim { color: var(--fg-dim); }
.dim2 { color: var(--fg-dim2); font-size: 12px; }

label.field { display: block; margin-bottom: 10px; }
label.field > span { display: block; font-size: 12px; color: var(--fg-dim); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 7px 9px; border-radius: 7px; font-family: inherit; font-size: 13px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #4a5f7d; box-shadow: 0 0 0 3px rgba(90, 140, 220, .13); }
textarea { resize: vertical; min-height: 60px; font-size: 12px; }

/* ---------------------------------------------------------------- 播放器 */
.player-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.player-head {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.player-head .title { font-weight: 600; }
.player-head .spacer { flex: 1; }

.stage-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 0; }
.stage {
  position: relative; width: 100%; max-width: min(1600px, calc((100vh - 190px) * 16 / 9));
  aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* 占位画面（视频尚未生成时，让整条流程可演示） */
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(120% 120% at 20% 10%, #1b2740 0%, #0d1017 55%, #080a0e 100%);
  transition: filter .4s;
}
.placeholder .beat { font-size: 12px; letter-spacing: 3px; color: var(--fg-dim2); text-transform: uppercase; }
.placeholder .head { font-size: clamp(20px, 2.4vw, 34px); font-weight: 700; }
.placeholder .perf { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 70%; }
.placeholder .scene {
  font-size: 13px; color: var(--fg-dim); white-space: pre-line; max-width: 78%;
  line-height: 1.9; text-align: center;
}
.placeholder .ph-note {
  position: absolute; top: 12px; left: 14px; font-size: 11px; color: var(--fg-dim2);
  border: 1px dashed var(--line); padding: 3px 8px; border-radius: 999px;
}

/* 选择卡 */
.choices {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 12px; padding: 0 6% 5%;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 70%);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.choices.show { opacity: 1; pointer-events: auto; }
/* 抉择倒计时：10 秒内可选，超时按第 1 项继续 */
.choice-timer {
  display: flex; align-items: center; gap: 10px; margin-bottom: 2px;
  padding: 6px 12px; border-radius: 999px; background: rgba(18, 21, 26, .86);
  border: 1px solid #4a2027; backdrop-filter: blur(10px);
}
.choice-timer .lbl { font-size: 12px; color: var(--fg-dim); letter-spacing: .5px; }
.choice-timer .num {
  font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent);
  min-width: 30px; text-align: center; font-variant-numeric: tabular-nums;
}
.choice-timer .track { width: 120px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.choice-timer .track > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #ff8a5f); }
.choice-timer.urgent { border-color: var(--accent); }
.choice-timer.urgent .num { color: #fff; }
.choices .prompt { font-size: 13px; color: var(--fg-dim); letter-spacing: 1px; }
.choice-grid { display: flex; gap: 14px; width: 100%; max-width: 1100px; }
.choice-card {
  flex: 1; text-align: left; padding: 16px 18px; border-radius: 12px; cursor: pointer;
  background: rgba(18, 21, 26, .82); border: 1px solid #333c49; color: var(--fg);
  backdrop-filter: blur(12px); transition: .18s; font-family: inherit;
  transform: translateY(8px);
}
.choices.show .choice-card { transform: translateY(0); }
.choices.show .choice-card:nth-child(2) { transition-delay: .06s; }
.choice-card:hover { border-color: var(--accent); background: rgba(255, 90, 95, .12); }
.choice-card .k { font-size: 11px; color: var(--accent); letter-spacing: 2px; }
.choice-card .l { font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.choice-card .s { font-size: 12px; color: var(--fg-dim); }
.choice-card .meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; opacity: .0; transition: .15s; }
.choice-card:hover .meta { opacity: 1; }

/* 进度 / 时间轴 */
.timeline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .12);
}
.timeline .bar { height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.hud {
  position: absolute; top: 12px; right: 14px; display: flex; gap: 8px;
  font-family: var(--mono); font-size: 11px;
}
.hud .chip { background: rgba(0, 0, 0, .6); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.hud .chip b { color: var(--accent-2); }

/* 底部：路径面包屑 */
.player-foot {
  padding: 8px 18px 12px; border-top: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; gap: 6px; min-height: 56px;
}
.player-foot .foot-row { display: flex; align-items: center; gap: 10px; }

/* 分镜同步条：随播放进度高亮当前格 */
.sb-strip { display: flex; align-items: center; gap: 10px; }
.sb-strip-row { display: flex; gap: 5px; flex: 1; min-width: 0; overflow-x: auto; padding: 2px 0; }
.sb-strip-row .th {
  position: relative; flex: 0 0 auto; width: 62px; height: 35px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); cursor: pointer; background: #0b0d10; padding: 0; transition: .12s;
}
.sb-strip-row .th img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .62; transition: .12s; }
.sb-strip-row .th:hover img { opacity: .9; }
.sb-strip-row .th.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,90,95,.28); }
.sb-strip-row .th.on img { opacity: 1; }
.sb-strip-row .th .n {
  position: absolute; left: 3px; top: 2px; font-family: var(--mono); font-size: 9px;
  padding: 0 3px; border-radius: 3px; background: rgba(0,0,0,.66); color: #fff;
}
.sb-strip-ctl { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.sb-strip-ctl .t { font-size: 11px; color: var(--fg-dim2); }
/* 没有分镜图时：分镜条里直接显示文字提示（不留空白） */
.sb-strip-row .sb-none {
  font-size: 11px; color: var(--fg-dim2); line-height: 1.7;
  padding: 6px 10px; border: 1px dashed var(--line); border-radius: 7px; background: var(--bg-3);
}

/* 分镜主画面（animatic） */
.anim { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.anim img { width: 100%; height: 100%; object-fit: contain; display: block; }
.anim-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.anim-badges .ab { padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.66); font-size: 11px; color: #fff; }
.anim-badges .ab.move { background: rgba(255,90,95,.88); font-weight: 600; }
.anim-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px 14px; text-align: center;
  font-size: 15px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.85);
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}
.crumbs { display: flex; gap: 6px; overflow-x: auto; flex: 1; }
.crumb {
  white-space: nowrap; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--fg-dim); cursor: pointer;
}
.crumb:hover { color: var(--fg); border-color: #3d4a5c; }
.crumb.now { color: var(--fg); border-color: var(--accent); }

/* 覆盖层：结局 / 图鉴 */
.modal {
  position: fixed; inset: 0; background: rgba(4, 6, 9, .82); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.modal.show { display: flex; }
.modal .box {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 30px; max-width: 760px; width: 100%; box-shadow: var(--shadow);
  max-height: 86vh; overflow: auto;
}
.ending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ending-card { padding: 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.ending-card.locked { opacity: .4; }
.ending-card .l { font-weight: 600; margin-bottom: 4px; }
.ending-card .d { font-size: 12px; color: var(--fg-dim); }

/* ---------------------------------------------------------------- 编辑器 */
.editor-page { display: grid; grid-template-columns: 1fr 400px; grid-template-rows: auto 1fr; height: 100vh; }
.editor-page .topbar { grid-column: 1 / -1; gap: 10px; flex-wrap: wrap; row-gap: 8px; }
.editor-page #storyPick { flex: 0 1 250px; min-width: 150px; }

/* 顶栏分组：把「故事 / 状态 / 动作」三类目分开，扫一眼就知道点哪里 */
.tb-sep { flex: none; width: 1px; height: 22px; background: var(--line); }
.tb-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-group .tag { cursor: default; }
.tb-actions { margin-left: auto; }

/* ------------------------------------------------ 画布 */
.canvas { overflow: auto; padding: 18px 22px 64px; background: var(--bg); }

/* 每一拍成一块卡：和相邻拍有明确边界，滚动时能数得清第几拍 */
.beat-row {
  position: relative; margin-bottom: 12px; padding: 12px 14px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #14181e 0%, #101419 100%);
  transition: border-color .15s;
}
.beat-row:hover { border-color: #313a47; }
.beat-row.is-endings { background: linear-gradient(180deg, #101a18 0%, #0e1514 100%); border-color: #1f3a33; }
.beat-row.is-endings .beat-head .t { color: var(--accent-2); }

.beat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.beat-head .b {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .3px;
  color: var(--accent); background: rgba(255, 90, 95, .1);
  border: 1px solid rgba(255, 90, 95, .28); padding: 2px 8px; border-radius: 6px;
}
.beat-head .t { font-weight: 600; font-size: 14px; }
.beat-head .rule { flex: 1; height: 1px; background: var(--line); min-width: 12px; }

.variant-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }

.node-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px 11px 15px; cursor: pointer; transition: .15s; position: relative; overflow: hidden;
}
/* 左侧色条：常态透明，hover 显灰、选中显红、终局显绿 —— 不靠颜色堆信息 */
.node-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent; transition: background .15s;
}
.node-card:hover { border-color: #3d4a5c; transform: translateY(-1px); background: #151a21; }
.node-card:hover::before { background: #3d4a5c; }
.node-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 90, 95, .18); background: #1a1418; }
.node-card.sel::before { background: var(--accent); }
.node-card.final::before { background: var(--accent-2); }
.node-card.start { border-color: #2c4a42; }
.node-card .id { font-family: var(--mono); font-size: 11px; color: var(--fg-dim2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.node-card .sum { font-size: 13px; margin: 6px 0 5px; line-height: 1.5; }
.node-card .perf { font-size: 11px; color: var(--fg-dim); min-height: 17px; }
.node-card .nexts { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; }
.node-card .next { font-size: 11px; color: var(--fg-dim2); display: flex; gap: 6px; align-items: baseline; }
.node-card .next b { color: var(--accent); font-weight: 600; font-family: var(--mono); }
.node-card .edge { font-family: var(--mono); color: var(--fg-dim); margin-left: auto; }

.err-line { font-size: 12px; padding: 6px 9px; border-radius: 7px; margin-bottom: 6px; }
.err-line.e { background: #2a1216; color: #ff9ea2; border: 1px solid #4a2027; }
.err-line.w { background: #2a2312; color: #ffd479; border: 1px solid #4a3c18; }

/* 检查器：标签栏常驻顶部，滚到表单深处也能换页 */
.inspector { border-left: 1px solid var(--line); background: var(--bg-2); overflow: auto; }
.ins-bar {
  position: sticky; top: 0; z-index: 6; background: var(--bg-2);
  padding: 8px 12px 0; border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 14px -10px rgba(0, 0, 0, .8);
}
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.tabs button {
  position: relative; background: none; border: none; color: var(--fg-dim);
  padding: 7px 4px; cursor: pointer; font-family: inherit; font-size: 12.5px;
  border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; transition: .12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.tabs button:hover { color: var(--fg); background: var(--bg-3); }
.tabs button.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.tab-badge {
  display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 999px;
  font-size: 10px; line-height: 15px; text-align: center; font-weight: 600;
  background: var(--bg-3); color: var(--fg-dim); border: 1px solid var(--line);
}
.tab-badge.err { background: #4a2027; color: #ff9ea2; border-color: #6b2a33; }
.tab-badge.warn { background: #4a3c18; color: #ffd479; border-color: #6b5620; }

#panel { padding: 14px; }
#panel h2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 17px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
#panel h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 10px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--fg);
}
#panel h3::before { content: ''; flex: none; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); opacity: .85; }
#panel > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* 顶栏里可点跳转的状态标签 */
#healthTag, #costTag { cursor: pointer; }
#healthTag:hover, #costTag:hover { color: var(--fg); border-color: #3d4a5c; }

/* 模拟器 */
.sim-stage { background: var(--bg-3); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.sim-choices { display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------- 埋点后台 */
.dash { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi .v { font-size: 26px; font-weight: 700; font-family: var(--mono); }
.kpi .k { font-size: 12px; color: var(--fg-dim); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 70px; gap: 10px; align-items: center; font-size: 12px; }
.bar-track { height: 16px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ff8a5f); border-radius: 5px; }
.bar-fill.alt { background: linear-gradient(90deg, #3a6df0, #4dd4ac); }
.bar-fill.dim { background: #3a4351; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); }
th { color: var(--fg-dim); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
tbody tr:hover { background: var(--bg-3); }

.choice-bars { margin-top: 6px; }
.choice-bars .bar-row { grid-template-columns: 150px 1fr 54px; }

.empty { padding: 40px; text-align: center; color: var(--fg-dim2); }

/* 同步角标：不动手也能一眼看到上游有没有变化 */
.btn.sync-ok { color: var(--ok); border-color: #1f4a3d; }
.btn.sync-warn { color: var(--warn); border-color: #4a3c18; background: #2a2312; }
.btn.sync-bad { color: var(--err); border-color: #4a2027; background: #2a1216; }
.btn.sync-ok b, .btn.sync-warn b, .btn.sync-bad b { font-weight: 700; }

/* ---------------- 九宫格分镜播放器（覆盖层） ---------------- */
.sb-overlay {
  position: fixed; inset: 0; z-index: 120; display: none;
  flex-direction: column; background: rgba(4, 6, 9, .96); backdrop-filter: blur(8px);
}
.sb-overlay.show { display: flex; }
.sb-top { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sb-title { font-weight: 600; }
.sb-meta { color: var(--fg-dim); font-size: 12px; }
.sb-spacer { flex: 1; }
.sb-stage {
  position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.sb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); background: #000; }
.sb-idx {
  position: absolute; left: 28px; top: 28px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
}
.sb-cap {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; padding: 26px 40px 10px;
  font-size: 17px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.85);
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
}
.sb-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.sb-dots { display: flex; flex: 1; gap: 5px; align-items: center; }
.sb-dot { position: relative; height: 6px; flex: 1; border-radius: 99px; background: #2b3240; overflow: hidden; cursor: pointer; }
.sb-dot > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); display: block; }
.sb-hint { color: var(--fg-dim2); font-size: 11px; white-space: nowrap; }


/* 分支图：跳转逻辑表（点边可定位到行） */
#routingBox table { font-size: 12px; }
#routingBox th { position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
#routingBox input, #routingBox select {
  font-family: inherit; font-size: 12px; padding: 3px 6px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--fg);
}
#routingBox tr.route-hit td { background: rgba(255, 90, 95, .14); }
#routingBox tr.route-hit input { border-color: var(--accent); }
