/* MagicCore 产品级界面基础样式（深色设备感，第 5 版：器件化）：Spell/魔核、Fuel 这类每天给企业用户用的产品。
   工具级（内部后台、临时工具）用 base.css。规则见 SKILL.md 第 3 节，每个器件长什么样见 references/components.html。
   用法：<link> 本文件（fonts/ 一起带上），页面只写自己的布局。类名和变量名与魔核代码（magiccore-spell/app/src/styles/tokens.css、
   ui/ui.module.css）一样：稿上写的类名就是代码里的类名，落代码不用改名。本文件和魔核的 tokens.css 是同一套值，改一边要同步另一边。 */

@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
/* 中文是 MiSans VF（小米，免费商用，要署名）。字体文件 4.6MB 不放 skill 里，正式产品自带（魔核 app/public/fonts/misans/）；
   稿要看到它就在页面里加一行 <link rel="stylesheet" href="file:///D:/MagicCore/10-产品/magiccore-spell/app/public/fonts/misans/MiSansVF.min.css">，不加就回落系统字 */

:root {
  /* ── 三种面：机壳/电路板（最低）、面板（凸起一级）、键（凸起的小面）。带一点蓝的深灰，不是纯黑 ── */
  --bg: #0a0a0e;
  --board: #0d0d12;
  --surface: #121318;
  --surface-2: #17181e;
  --surface-3: #1c1d24;
  --surface-hover: #202128;
  --surface-active: #26272f;
  --tile-top: #1c1d24;   /* 器件的面：上亮下暗 */
  --tile-bot: #121318;
  --plate: linear-gradient(180deg, #16171d, #111218);
  --plate-2: linear-gradient(180deg, #1b1c23, #15161c);
  --plate-edge: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.4);
  --plate-edge-flat: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --key: linear-gradient(180deg, #24252d, #18191f);
  --key-hover: linear-gradient(180deg, #2b2c35, #1d1e26);
  --key-edge: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 5px rgba(0, 0, 0, 0.45);
  --key-down: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
  /* 主键：深洋红的面、白字、一圈洋红边光，按下才通电（整面洋红）；一屏最多一个 */
  --key-primary: linear-gradient(180deg, #5c2140, #3d152b);
  --key-primary-edge: 0 0 0 1px rgba(255, 45, 111, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 16px rgba(255, 45, 111, 0.22), 0 2px 5px rgba(0, 0, 0, 0.45);
  --key-primary-hover: linear-gradient(180deg, #74294f, #4b1a35);
  --key-primary-hover-edge: 0 0 0 1px rgba(255, 92, 143, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(255, 45, 111, 0.32), 0 2px 5px rgba(0, 0, 0, 0.45);
  --key-primary-down: linear-gradient(180deg, var(--accent-hover), var(--accent-active));
  /* 凹槽：输入框、读数窗、波形、轨道、分段的底。铣进面板，内阴影，下沿一线高光；聚焦时槽底亮一线洋红 */
  --slot: #08080b;
  --slot-edge: inset 0 1px 2px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.045);
  --slot-hover: inset 0 1px 2px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08);
  --slot-focus: inset 0 1px 2px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 -1.5px 0 var(--accent), 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 14px rgba(255, 45, 111, 0.12);
  /* 刻线：两块面之间的接缝，上一道暗、下一道亮，代替 1 像素白线 */
  --sep-b: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.035);
  --sep-t: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 -1px 0 rgba(0, 0, 0, 0.6);
  --sep-r: inset -1px 0 0 rgba(0, 0, 0, 0.6), 1px 0 0 rgba(255, 255, 255, 0.035);
  --sep-l: inset 1px 0 0 rgba(255, 255, 255, 0.035), -1px 0 0 rgba(0, 0, 0, 0.6);
  /* 细线：只给器件的 1 像素硬边和旧式分隔用，7% 和 13% 的白；面之间的分隔优先用刻线 */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  /* 舞台底：电路板带一点上亮下暗、顶部一团极弱的运转色光晕；稀的点阵（流水线那条是密的） */
  --stage-bg: radial-gradient(1200px 600px at 55% -10%, rgba(77, 163, 255, 0.06), transparent 60%), linear-gradient(180deg, #0e0f14, #0c0c11 45%, #0b0b0f);
  --dots-faint: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1.3px);
  --grid-dot: rgba(255, 255, 255, 0.075);
  --grid-size: 18px;

  /* ── 字：四档灰 ── */
  --text: #f2f0f4;
  --text-muted: #b8b4c0;
  --text-2: #7c7886;
  --text-3: #4e4a58;

  /* ── 撞色：标签洋红 × 值青色（老板 11-05 定）。洋红是"你的落点"：标签、参数名、当前项竖线、输入槽底线、主键、分组名前的灯；
     青是"机器给你的值"：填进去或选中的值、名字、版本、用时、步数、时码、媒体。两色永远一个在左一个在右、一个小一个亮，不混用 ── */
  --accent: #ff2d6f;
  --accent-hover: #ff5c8f;
  --accent-active: #d91856;
  --accent-soft: rgba(255, 45, 111, 0.14);
  --accent-line: rgba(255, 45, 111, 0.35);
  --accent-ink: #ff5c8f;
  --media: #2ee6d6;
  --media-ink: #6cf0e5;
  --media-soft: rgba(46, 230, 214, 0.45);
  /* 运转：电光蓝。机器在干哪 */
  --run: #4da3ff;
  --run-soft: rgba(77, 163, 255, 0.18);
  --run-line: rgba(77, 163, 255, 0.35);
  --run-glow: rgba(77, 163, 255, 0.45);
  --run-ink: #7cbcff;
  /* 状态灯：-soft 浅底，-line 边线，-ink 亮档（发光字用） */
  --good: #3ddc84;
  --good-soft: rgba(61, 220, 132, 0.12);
  --good-line: rgba(61, 220, 132, 0.6);
  --good-ink: #6fe8a5;
  --warn: #f5b041;
  --warn-soft: rgba(245, 176, 65, 0.12);
  --warn-line: rgba(245, 176, 65, 0.6);
  --warn-ink: #ffc86b;
  --bad: #ff5a5f;
  --bad-soft: rgba(255, 90, 95, 0.12);
  --bad-line: rgba(255, 90, 95, 0.6);
  --bad-ink: #ff8286;
  --info: #4da3ff;
  --info-soft: rgba(77, 163, 255, 0.12);
  --info-line: rgba(77, 163, 255, 0.6);
  --info-ink: #7cbcff;
  /* 金：金额；标注的淡金线也是它 */
  --money: #d4a24c;
  --money-ink: #e8bb6a;
  --mark: #d4a24c;
  --mark-soft: rgba(212, 162, 76, 0.16);
  /* 紫：只给 AI（AI 栏、AI 正在处理的那一步） */
  --violet: #c084fc;
  --violet-hi: #d4a6ff;
  --violet-glow: rgba(192, 132, 252, 0.45);
  --violet-soft: rgba(192, 132, 252, 0.14);
  /* 代号色：主区里几方的代号（一方、另一方、其他）和别的代号按出现顺序取；只上小标签、色块、竖条，避开状态色和洋红 */
  --side-1: #7c9cff;
  --side-2: #ff9f5a;
  --side-other: #8fa3b8;
  --tone-1: #b18cff;
  --tone-2: #5fd4c4;
  --tone-3: #f0a6d0;
  --tone-4: #d9c27a;
  --tone-5: #8ec5ff;

  /* ── 发光字（老板 11-05 定为设计语言）：值和读数用发光的等宽字——金额金、值和媒体青、运转蓝、完成绿、等人琥珀、AI 紫、读数白；
     只有字和灯发光，面和边不发光。用法：color 用 -ink 档，text-shadow 用这里的光；现成类 .lit-* ── */
  --glow-gold: 0 0 10px rgba(212, 162, 76, 0.55), 0 0 22px rgba(212, 162, 76, 0.18);
  --glow-teal: 0 0 10px rgba(46, 230, 214, 0.5), 0 0 22px rgba(46, 230, 214, 0.16);
  --glow-blue: 0 0 10px rgba(77, 163, 255, 0.55), 0 0 22px rgba(77, 163, 255, 0.18);
  --glow-green: 0 0 10px rgba(61, 220, 132, 0.5), 0 0 22px rgba(61, 220, 132, 0.16);
  --glow-amber: 0 0 10px rgba(245, 176, 65, 0.5), 0 0 22px rgba(245, 176, 65, 0.16);
  --glow-violet: 0 0 10px rgba(192, 132, 252, 0.5), 0 0 22px rgba(192, 132, 252, 0.16);
  --glow-magenta: 0 0 10px rgba(255, 45, 111, 0.5), 0 0 22px rgba(255, 45, 111, 0.16);
  --glow-white: 0 0 8px rgba(255, 255, 255, 0.35);
  /* 键盘焦点：白圈（洋红留给落点）；选中的器件也是白色双圈（老板 10-25：洋红圈和出错的红分不开） */
  --focus: 0 0 0 1.5px rgba(255, 255, 255, 0.75), 0 0 0 4px rgba(255, 255, 255, 0.12);
  --glow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 0 0 5px rgba(255, 255, 255, 0.12);

  /* ── 字体与字号 ── */
  --font: "IBM Plex Sans", "MiSans VF", -apple-system, "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "MiSans VF", "SF Mono", Consolas, monospace;
  --fs-2xs: 10px;   /* 小标签，600 加字距 */
  --fs-xs: 11px;    /* 等宽小字、说明 */
  --fs-sm: 12.5px;  /* 窄带、输入值 */
  --fs-md: 13px;    /* 正文 */
  --fs-lg: 14px;    /* 标题，500 */
  --fs-xl: 22px;    /* 一句大字 */
  --fs-xxl: 30px;   /* 大数字，300 */
  --fs-page: 22px;
  --fs-title: 14px;
  --fs-node: 12px;
  --track-label: 0.14em;

  /* ── 间距：组内 8、组间 20、区块间 36 到 40 ── */
  --sp-1: 4px; --sp-1h: 6px; --sp-2: 8px; --sp-2h: 10px; --sp-3: 12px; --sp-3h: 14px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 36px; --sp-10: 40px;
  --pad-y: 18px; --pad-x: 24px; --pad-home-y: 22px; --pad-home-x: 24px; --pad-narrow: 16px;

  /* ── 圆角：键 7、面板 10、画面 12、器件 15 ── */
  --r-xs: 5px; --r-sm: 7px; --r: 10px; --r-lg: 15px; --r-pill: 9999px;

  /* ── 投影：分层靠影和光，不靠框 ── */
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  --shadow-tile: 0 12px 28px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 0 0 1px var(--border-strong), 0 24px 60px rgba(0, 0, 0, 0.7);
  --edge: 0 0 0 1px var(--border-strong), 0 12px 28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);  /* 器件的边、影、顶部高光 */
  --hilite: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  /* ── 尺寸 ── */
  --node-tile: 66px; --node-w: 108px; --node-icon: 26px; --node-badge: 20px;   /* 流水线器件 */
  --rail-w: 64px; --side-w: 236px; --side-w-narrow: 64px; --side-top-h: 48px;  /* 左导轨、窄带 */
  --topbar-h: 48px; --pipe-h: 200px; --readouts-w: 284px; --ai-w: 340px; --drawer-rules-w: 420px;
  --btn-h: 34px; --btn-h-sm: 28px; --btn-pad-x: 24px; --icon-btn: 40px; --icon-btn-sm: 28px; --dot: 6px; --spin-sm: 10px;

  /* ── 动效：机器的节奏，匀速不停 ── */
  --spin: 1s;      /* 运转弧光转一圈 */
  --flow: 0.6s;    /* 连线流一格 */
  --lamp: 1.6s;    /* 指示灯呼吸 */
  --breathe: 2.4s;
}

/* ---------- 色板（老板 10-23："颜色单个都好，不要规定必须 X 配 Y；亮一点的可以多用，但不能乱"）----------
   每种两档：基础色给边、线、章；-hi 亮档只给小面积发光件（灯、弧光、流光、字）。上面已经定了用途的（洋红、青、蓝、绿、琥珀、红、金、紫）照上面用，这里是备用的 */
:root {
  --blue: #4da3ff;     --blue-hi: #7cbcff;
  --cobalt: #3b7ddd;   --cobalt-hi: #5f98ec;   /* 数据、链接 */
  --sapphire: #2f5bd8; --sapphire-hi: #5a7fe8; /* 宝石感的深蓝 */
  --indigo: #7c8cff;   --indigo-hi: #9fabff;   /* 旧工作台血统 */
  --teal: #2ee6d6;     --teal-hi: #6cf0e5;
  --celadon: #7fb7c9;  --celadon-hi: #a4d0de;  /* 青瓷：安静的仪器面板色 */
  --steel: #4f93a8;    --steel-hi: #72b0c3;    /* 钢青：冷的次要强调 */
  --green: #3ddc84;    --green-hi: #6fe8a5;
  --emerald: #2bb57c;  --emerald-hi: #4fcf98;  /* 示波器绿 */
  --jade: #1f9d6a;     --jade-hi: #3fb886;     /* 翡翠：通过 */
  --amber: #f5b041;    --amber-hi: #ffc86b;
  --gold: #d4a24c;     --gold-hi: #e8bb6a;
  --copper: #d98b3a;   --copper-hi: #eba65a;   /* 暖机壳的运转色 */
  --orange: #ff8a3d;   --orange-hi: #ffa868;   /* 强提醒，少用 */
  --red: #ff5a5f;      --red-hi: #ff8286;
  --magenta: #ff2d6f;  --magenta-hi: #ff5c8f;
  --rose: #c9798a;     --rose-hi: #dc97a6;     /* 灰玫瑰：安静版的品牌色 */
  --graphite: #6f8fc9; --graphite-hi: #93abd9; /* 高级灰的蓝 */
  --lime: #d9f24f;     --lime-hi: #e6f77d;     /* 边界色，几乎不用 */
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 var(--fs-md)/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-synthesis: none; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul { margin: 0; } ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: rgba(212, 162, 76, 0.28); color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
svg.icon, .icon svg, .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.cap { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--track-label); color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: var(--sp-2); }
.col { display: flex; flex-direction: column; gap: var(--sp-2); }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 发光字：值和读数用，等宽、按意义上色、带一圈光 */
.lit { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.lit-gold { color: var(--money-ink); text-shadow: var(--glow-gold); }
.lit-teal { color: var(--media-ink); text-shadow: var(--glow-teal); }
.lit-blue { color: var(--run-ink); text-shadow: var(--glow-blue); }
.lit-green { color: var(--good-ink); text-shadow: var(--glow-green); }
.lit-amber { color: var(--warn-ink); text-shadow: var(--glow-amber); }
.lit-violet { color: var(--violet-hi); text-shadow: var(--glow-violet); }
.lit-white { color: var(--text); text-shadow: var(--glow-white); }
/* 折叠块的小箭头：不用系统的三角，画一个 5 像素的折线，展开时转下来 */
summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 5px; height: 5px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(-45deg); flex: none; transition: transform 160ms; margin-left: 1px; }
details[open] > summary::before { transform: rotate(45deg); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- 器件（类名同魔核 app/src/ui/ui.module.css） ---------- */

/* 键：普通键是凸起的小面（上亮下暗、暗边、顶部一线高光、一点投影），按下去凹进面板；
   主键 .primary：深洋红的面、白字、一圈边光，按下才通电；一屏最多一个；
   文字键 .ghost：没有面，灰字，悬停变亮；.danger 悬停变红，一律配二次确认 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--btn-h); padding: 0 var(--sp-4); border-radius: var(--r-sm);
  border: 0; background: var(--key); box-shadow: var(--key-edge); color: var(--text-muted);
  font-size: var(--fs-md); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 120ms, color 120ms, box-shadow 120ms, transform 80ms;
}
.btn:hover:not(:disabled) { color: var(--text); background: var(--key-hover); }
.btn:active:not(:disabled) { background: linear-gradient(180deg, #15161c, #1b1c23); box-shadow: var(--key-down); transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn small { font-weight: 400; opacity: 0.8; font-size: var(--fs-xs); }
.sm { height: var(--btn-h-sm); padding: 0 var(--sp-3); font-size: var(--fs-node); }
.primary { color: #fff; padding: 0 var(--btn-pad-x); background: var(--key-primary); box-shadow: var(--key-primary-edge); }
.primary.sm { padding: 0 var(--sp-4); }
.primary:hover:not(:disabled) { color: #fff; background: var(--key-primary-hover); box-shadow: var(--key-primary-hover-edge); }
.primary:active:not(:disabled) { color: #fff; background: var(--key-primary-down); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-active), 0 0 28px rgba(255, 45, 111, 0.45); }
.primary:disabled { opacity: 1; color: var(--text-3); background: var(--key); box-shadow: var(--key-edge); }
.ghost, .danger { background: none; box-shadow: none; color: var(--text-2); padding: 0 var(--sp-1); font-size: var(--fs-node); font-weight: 400; }
.ghost:hover:not(:disabled), .danger:hover:not(:disabled) { background: none; }
.ghost:hover:not(:disabled) { color: var(--text); }
.danger:hover:not(:disabled) { color: var(--bad); }
.ghost:active:not(:disabled), .danger:active:not(:disabled) { background: none; box-shadow: none; transform: none; }

/* 图标键：导轨上 40×40（当前页是立起来的键 .iconOn），"⋯"和关闭是 28×28 的小键 .iconSm；右上角琥珀小点 .iconDot 表示有事要去看 */
.iconBtn {
  position: relative; width: var(--icon-btn); height: var(--icon-btn); flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r); background: transparent; color: var(--text-2); cursor: pointer; padding: 0;
  transition: background 120ms, color 120ms, box-shadow 120ms;
}
.iconBtn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-muted); }
.iconSm { width: var(--icon-btn-sm); height: var(--icon-btn-sm); border-radius: var(--r-sm); background: var(--key); box-shadow: var(--key-edge); }
.iconSm:hover { background: var(--key-hover); }
.iconSm:active { box-shadow: var(--key-down); }
.iconOn, .iconOn:hover { color: var(--text); background: var(--key); box-shadow: var(--key-edge); }
.iconDot { position: absolute; top: 6px; right: 6px; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--warn); box-shadow: 0 0 6px rgba(245, 176, 65, 0.5); }

/* 指示灯：在跑蓝灯 1.6 秒一次呼吸，完成绿，等人琥珀，出错红，停下灰 */
.mark { width: var(--dot); height: var(--dot); flex: none; display: inline-flex; }
.markDot { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--text-3); }
.mark-ok .markDot { background: var(--good); }
.mark-warn .markDot { background: var(--warn); box-shadow: 0 0 6px rgba(245, 176, 65, 0.45); }
.mark-bad .markDot { background: var(--bad); box-shadow: 0 0 6px rgba(255, 90, 95, 0.45); }
.mark-run .markDot { background: var(--run); box-shadow: 0 0 8px var(--run-glow); animation: lamp var(--lamp) ease-in-out infinite; }
.lamp { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--text-3); flex: none; }
.lamp.run { background: var(--run); box-shadow: 0 0 8px var(--run-glow); animation: lamp var(--lamp) ease-in-out infinite; }
.lamp.ok { background: var(--good); } .lamp.warn { background: var(--warn); } .lamp.bad { background: var(--bad); }

/* 分组名（撞色）：10/600 加字距的青字，前面一盏洋红灯 */
.section { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--track-label); color: var(--media-ink); margin: 0 0 var(--sp-3); }
.section::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent-line); flex: none; }

/* 分段：一条凹槽里排开，选中的那一格是立起来的键，字青色发光；选项名前可以带一个琥珀小点 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--slot); box-shadow: var(--slot-edge); max-width: 100%; }
.segBtn {
  display: inline-flex; align-items: center; gap: var(--sp-1h); height: 26px; padding: 0 var(--sp-3); border-radius: 6px;
  border: 0; background: transparent; color: var(--text-2); font-size: var(--fs-node); cursor: pointer; white-space: nowrap;
  transition: background 120ms, color 120ms;
}
.segBtn:hover { color: var(--text-muted); }
.segOn, .segOn:hover { color: var(--media-ink); text-shadow: var(--glow-teal); background: var(--key); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 4px rgba(0, 0, 0, 0.5); }
.segDot { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--warn); flex: none; }

/* 状态字 .badge 和小标签 .tag：一盏小灯加灰字，不描边、不上彩色底 */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.t-accent .dot, .t-info .dot { background: var(--run); box-shadow: 0 0 8px var(--run-glow); }
.t-good .dot { background: var(--good); } .t-warn .dot { background: var(--warn); } .t-bad .dot { background: var(--bad); }
.pulse { animation: lamp var(--lamp) ease-in-out infinite; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 20px; font-size: var(--fs-xs); white-space: nowrap; color: var(--text-2); }
.g-accent::before, .g-good::before, .g-warn::before, .g-bad::before, .g-info::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; }
.g-accent { color: var(--text-muted); } .g-accent::before { background: var(--accent); box-shadow: 0 0 6px var(--accent-line); }
.g-good::before { background: var(--good); } .g-warn::before { background: var(--warn); } .g-bad::before { background: var(--bad); } .g-info::before { background: var(--run); }

/* 读数：名称灰，值等宽青色发光（撞色里的"值"） */
.readout { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.readout b { font-family: var(--mono); font-weight: 400; color: var(--media-ink); text-shadow: var(--glow-teal); }
.r-good b { color: var(--good-ink); } .r-bad b { color: var(--bad-ink); } .r-warn b { color: var(--warn-ink); }

/* 读数窗：铣进面板的小凹槽，里面一行等宽数（时码、步数、金额），值白色发光 */
.win {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 5px;
  background: var(--slot); box-shadow: var(--slot-edge); font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-muted);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap;
}
.win b { font-weight: 400; color: var(--text); text-shadow: var(--glow-white); }

/* 面板：比电路板凸起一级的面，暗边加顶部高光，分层靠影；头部和身体之间一道刻线 */
.panel { background: var(--plate); border-radius: var(--r); box-shadow: var(--plate-edge); min-width: 0; }
.panelHead { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); min-height: 40px; padding: var(--sp-2) var(--sp-4); box-shadow: var(--sep-b); }
.panelTitle { font-size: var(--fs-lg); font-weight: 500; flex: 1; min-width: 0; }
.panelBody { padding: var(--sp-4); }
.content { padding: var(--pad-y) var(--pad-x) var(--sp-9); display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.narrow { max-width: 960px; width: 100%; }

/* 页签：选中的白字加洋红下划线 */
.tabs { display: flex; gap: var(--sp-5); box-shadow: var(--sep-b); }
.tab { position: relative; padding: var(--sp-2) 0; background: none; border: none; color: var(--text-2); cursor: pointer; font-size: var(--fs-md); transition: color 160ms; }
.tab:hover { color: var(--text-muted); }
.tabOn { color: var(--text); }
.tabOn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-line); }
.count { margin-left: 6px; color: var(--text-3); font-size: var(--fs-xs); font-family: var(--mono); }

/* 空状态：设备待机——板子还在、一盏暗灯、一句话；不画插图、不放大按钮 */
.empty { padding: var(--sp-8) var(--sp-4); color: var(--text-2); font-size: var(--fs-sm); }
.emptyTitle { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); color: var(--text-muted); margin-bottom: var(--sp-2); font-weight: 400; }
.emptyTitle::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }

/* 操作结果的一句：灯加灰字，不上彩色底 */
.note { display: flex; gap: var(--sp-2); align-items: baseline; font-size: var(--fs-sm); color: var(--text-muted); white-space: pre-wrap; word-break: break-word; }
.note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; transform: translateY(-1px); background: var(--text-3); }
.n-good::before { background: var(--good); } .n-bad::before { background: var(--bad); } .n-warn::before { background: var(--warn); }

/* 进度：说明加百分比一行（百分比蓝色发光），6 像素的凹槽里一段运转蓝的光；总量不知道时一段光来回走 */
.progress { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.progressHead { display: flex; align-items: baseline; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); min-width: 0; }
.progressLabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progressHead b { font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--run-ink); text-shadow: var(--glow-blue); }
.progressBar { height: 6px; border-radius: 3px; background: var(--slot); box-shadow: var(--slot-edge); overflow: hidden; }
.progressFill { height: 100%; border-radius: 3px; background: var(--run); box-shadow: 0 0 8px var(--run-glow); transition: width 400ms; }
.progressBusy { width: 40%; animation: sweep 1.6s linear infinite; }
.progressMore { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.spinner { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid var(--run-line); border-top-color: var(--run); animation: spin var(--spin) linear infinite; }

/* 表单：标签灰 12；控件是铣进面板的凹槽，悬停下沿亮一点，聚焦时槽底亮一线洋红。
   在单子 .sheet 里标签在左一列右对齐、洋红；填进去的值青色 */
.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.label { font-size: var(--fs-node); color: var(--text-2); }
.required { color: var(--text-3); margin-left: 2px; }
.hint { font-size: var(--fs-xs); color: var(--text-2); }
.input {
  width: 100%; height: 32px; padding: 0 var(--sp-2h); border-radius: var(--r-sm); font-size: var(--fs-sm);
  background: var(--slot); border: 0; box-shadow: var(--slot-edge); color: var(--text); transition: box-shadow 160ms;
}
.input:hover:not(:disabled):not(:focus) { box-shadow: var(--slot-hover); }
.input:focus { outline: none; box-shadow: var(--slot-focus); }
.input:disabled { opacity: 0.5; }
.input::placeholder { color: var(--text-3); }
.inlineProblem { font-size: var(--fs-xs); color: var(--bad-ink); }
textarea.input { height: auto; min-height: 64px; padding: var(--sp-2) var(--sp-2h); resize: vertical; line-height: 1.6; }
.sheet { display: flex; flex-direction: column; gap: var(--sp-3h); min-width: 0; }
.sheet .field { display: grid; grid-template-columns: var(--sheet-label, 128px) minmax(0, 1fr); gap: 4px var(--sp-4); align-items: start; }
.sheet .label { padding-top: 8px; text-align: right; line-height: 1.4; color: var(--accent-ink); font-weight: 500; }
.sheet .hint { grid-column: 2; }
.sheet .field > :not(.label):not(.hint) { grid-column: 2; min-width: 0; }
@media (max-width: 700px) {
  .sheet .field { grid-template-columns: minmax(0, 1fr); }
  .sheet .label { padding-top: 0; text-align: left; }
  .sheet .hint, .sheet .field > :not(.label):not(.hint) { grid-column: 1; }
}

/* 下拉选择（不用系统的 select）：触发器是一条凹槽加小箭头，选中的值青色发光；列表 .pickMenu 是浮在舞台上的面板，一项一行，选中的那项前面一盏洋红灯 */
.pick {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 32px; padding: 0 8px 0 var(--sp-2h); border: 0; border-radius: var(--r-sm);
  background: var(--slot); box-shadow: var(--slot-edge); color: var(--media-ink); text-shadow: var(--glow-teal); font-size: var(--fs-sm); text-align: left; cursor: pointer; transition: box-shadow 160ms;
}
.pick:hover:not(:disabled) { box-shadow: var(--slot-hover); }
.pick:focus-visible, .pick[aria-expanded="true"] { outline: none; box-shadow: var(--slot-focus); }
.pick:disabled { opacity: 0.5; cursor: default; }
.pickEmpty { color: var(--text-3); text-shadow: none; }
.pickCaret { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pickMenu {
  position: fixed; z-index: 130; max-height: 268px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 1px;
  background: var(--plate); border-radius: 10px; box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.07); animation: pop 160ms cubic-bezier(.34, 1.4, .64, 1) both;
}
.pickItem {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 22px; border: 0; border-radius: var(--r-sm); background: transparent; position: relative;
  color: var(--text-muted); font-size: var(--fs-sm); text-align: left; cursor: pointer; white-space: nowrap;
}
.pickItem::before { content: ""; position: absolute; left: 9px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.pickHot { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.pickOn { color: var(--media-ink); }
.pickOn::before { background: var(--accent); box-shadow: 0 0 6px var(--accent-line); }
/* 带联想的输入（不用系统的 datalist）：候选面板贴在输入槽下面 */
.suggest { position: relative; display: block; width: 100%; min-width: 0; }
.suggestMenu {
  position: absolute; z-index: 130; left: 0; right: 0; top: calc(100% + 4px); max-height: 268px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 1px;
  background: var(--plate); border-radius: 10px; box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.07); animation: pop 160ms cubic-bezier(.34, 1.4, .64, 1) both;
}
.suggestItem { justify-content: space-between; gap: 16px; }
.suggestAlt { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); color: var(--text-3); }
/* 勾选框：一格小凹槽，勾上了亮一盏洋红灯加对勾 */
.check { width: 16px; height: 16px; flex: none; padding: 0; border: 0; border-radius: 4px; display: grid; place-items: center; cursor: pointer; background: var(--slot); box-shadow: var(--slot-edge); color: transparent; transition: box-shadow 120ms, color 120ms; }
.check svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check:hover:not(:disabled) { box-shadow: var(--slot-hover); }
.checkOn { color: #fff; background: linear-gradient(180deg, #4a1d33, #2c1320); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 45, 111, 0.7), 0 0 8px rgba(255, 45, 111, 0.3); }
.check:disabled { opacity: 0.35; cursor: default; }
/* 数字（不用系统的上下小箭头）：凹槽里一行等宽青数，右边减、加两枚小键 */
.num { display: inline-flex; align-items: center; gap: 3px; width: 100%; max-width: 220px; height: 32px; padding: 0 3px 0 var(--sp-2h); border-radius: var(--r-sm); background: var(--slot); box-shadow: var(--slot-edge); transition: box-shadow 160ms; }
.num:focus-within { box-shadow: var(--slot-focus); }
.numOff { opacity: 0.5; }
.numIn { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0; font-family: var(--mono); font-size: var(--fs-sm); color: var(--media-ink); text-shadow: var(--glow-teal); font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.numIn::-webkit-inner-spin-button, .numIn::-webkit-outer-spin-button { appearance: none; margin: 0; }
.numIn:focus-visible { box-shadow: none; }
.numIn::placeholder { color: var(--text-3); }
.numKey {
  width: 24px; height: 24px; flex: none; padding: 0; border: 0; border-radius: 5px; display: grid; place-items: center; cursor: pointer;
  background: var(--key); box-shadow: var(--key-edge); color: var(--text-muted); font-family: var(--mono); font-size: 13px; line-height: 1; transition: background 120ms, color 120ms;
}
.numKey:hover:not(:disabled) { color: var(--text); background: var(--key-hover); }
.numKey:active:not(:disabled) { box-shadow: var(--key-down); }
.numKey:disabled { opacity: 0.35; cursor: default; }

/* 物理开关（不是 iOS 拨杆）：槽里一枚键，推到右边就通电——键上那点灯亮起来，槽里透出一点洋红 */
.toggle { width: 38px; height: 22px; border-radius: 11px; background: var(--slot); border: 0; box-shadow: var(--slot-edge); position: relative; cursor: pointer; flex: none; transition: box-shadow 200ms; }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--key); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: transform 220ms cubic-bezier(.34, 1.4, .64, 1), background 200ms;
}
.toggle::before { content: ''; position: absolute; top: 9px; left: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); opacity: 0.7; transition: transform 220ms cubic-bezier(.34, 1.4, .64, 1), background 200ms, box-shadow 200ms; z-index: 1; }
.toggle:hover::after { background: var(--key-hover); }
.toggleOn { box-shadow: var(--slot-edge), inset 0 0 10px rgba(255, 45, 111, 0.22); }
.toggleOn::after { transform: translateX(16px); background: linear-gradient(180deg, #332630, #1e171c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 45, 111, 0.25); }
.toggleOn::before { transform: translateX(16px); opacity: 1; background: var(--accent-hover); box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent-line); }

/* 对话框和浮层：浮在舞台上的一块面板（暗边、顶部高光、大投影，带一点弹性地出现）；底下的舞台压暗 */
.backdrop { position: fixed; inset: 0; background: rgba(5, 5, 8, 0.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.modal { width: min(440px, 100%); max-height: 85vh; overflow: auto; background: var(--plate); border-radius: 12px; box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.07); animation: pop 240ms cubic-bezier(.34, 1.4, .64, 1) both; }
.modalWide { width: min(720px, 100%); }
.modalHead { padding: var(--sp-5) var(--sp-5) 0; font-size: var(--fs-lg); font-weight: 500; }
.modalBody { padding: var(--sp-3) var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-sm); }
.modalFoot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) var(--sp-4); }
.popover { background: var(--plate); border-radius: 12px; box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.07); animation: pop 240ms cubic-bezier(.34, 1.4, .64, 1) both; }

/* ---------- 骨架：左导轨 · 窄带 · 舞台（任务页的版面，魔核 shell/ 和 pages/job/） ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) var(--side-w) minmax(0, 1fr); height: 100vh; overflow: hidden; }
.rail { display: flex; flex-direction: column; align-items: center; padding: 14px 0 16px; gap: 6px; background: var(--bg); box-shadow: var(--sep-r); }
.rail .mark { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 14px; }
.rail .spacer { flex: 1; }
.band { background: var(--surface); box-shadow: var(--sep-r); display: flex; flex-direction: column; min-height: 0; }
.band-head { height: var(--topbar-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--sep-b); }
.band-head b { font-size: 13px; font-weight: 500; }
.band-group { padding: 14px 16px 4px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--track-label); color: var(--text-3); }
.band .list { overflow: auto; min-height: 0; }
.band-foot { margin-top: auto; padding: 12px 16px 14px; display: flex; justify-content: space-between; box-shadow: var(--sep-t); font-size: var(--fs-xs); color: var(--text-3); }
/* 窄带里的一项：灯 + 两行 + 右端一个数；当前项左侧一条洋红落点竖线 */
.job { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 0 10px; align-items: start; padding: 8px 16px 8px 14px; color: var(--text-muted); position: relative; transition: background 160ms; }
.job:hover { background: rgba(255,255,255,0.03); }
.job .lamp { margin-top: 7px; }
.job > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.job .t { font-size: var(--fs-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .s { font-size: var(--fs-xs); color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .r { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.job.is-current { background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent); }
.job.is-current::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-line); border-radius: 2px; }

.stage { display: grid; grid-template-rows: var(--topbar-h) auto minmax(0, 1fr); min-height: 0; background: var(--stage-bg); }
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 24px; box-shadow: var(--sep-b); }
.topbar h1 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: 0.01em; }
.topbar .sep { width: 1px; height: 14px; background: var(--border-strong); }
.topbar .sp { flex: 1; }

/* ---------- 流水线：立在点阵电路板上的器件（老板点名的基准，魔核 pages/job/pipeline.module.css） ---------- */
.pipe-wrap { position: relative; padding: 22px 24px 0; overflow: hidden; height: var(--pipe-h);
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.3px); background-size: var(--grid-size) var(--grid-size); background-position: 9px 9px;
  box-shadow: var(--sep-b); }
.pipe-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,13,18,0.5), transparent 30%, transparent 70%, rgba(13,13,18,0.7)); }
.pipe { position: relative; z-index: 1; display: flex; align-items: flex-start; padding-left: 4px; }
.node { width: var(--node-w); flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tile { position: relative; width: var(--node-tile); height: var(--node-tile); border-radius: var(--r-lg); display: grid; place-items: center; color: var(--text-3);
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot)); box-shadow: var(--edge); transition: box-shadow 240ms; }
.tile svg { width: var(--node-icon); height: var(--node-icon); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node .name { font-size: var(--fs-node); font-weight: 600; color: var(--text-muted); }
.node .st { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: -4px; }
/* 完成：绿边绿图标、右下盖章，状态字绿色发光 */
.node.done .tile { color: var(--good-ink); box-shadow: 0 0 0 1px var(--good-line), 0 0 14px rgba(61,220,132,0.12), var(--shadow), var(--hilite); }
.node.done .name { color: var(--text); } .node.done .st { color: var(--good-ink); text-shadow: var(--glow-green); }
.seal { position: absolute; right: -7px; bottom: -7px; width: var(--node-badge); height: var(--node-badge); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--board); animation: seal-in 260ms cubic-bezier(.34,1.4,.64,1) both; }
.seal.ok { background: var(--good); } .seal.warn { background: var(--warn); } .seal.bad { background: var(--bad); }
.seal svg { width: 11px; height: 11px; stroke: #0a0a0e; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes seal-in { from { transform: scale(.4); opacity: 0 } to { transform: none; opacity: 1 } }
/* 运转中：蓝色弧光在转，器件呼吸，状态字蓝色发光 */
.node.run .tile { color: var(--run); animation: breathe var(--breathe) ease-in-out infinite; }
.node.run .tile::before { content: ""; position: absolute; inset: -7px; border-radius: calc(var(--r-lg) + 5px); border: 2px solid transparent; border-top-color: var(--run); border-right-color: var(--run-line); animation: spin var(--spin) linear infinite; }
.node.run .name { color: var(--text); } .node.run .st { color: var(--run-ink); text-shadow: var(--glow-blue); }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 1px rgba(77,163,255,0.75), 0 0 22px rgba(77,163,255,0.18), var(--shadow), var(--hilite) } 50% { box-shadow: 0 0 0 1px rgba(77,163,255,0.95), 0 0 40px rgba(77,163,255,0.34), var(--shadow), var(--hilite) } }
/* 等人：琥珀边 + 上沿"人审"小标签 */
.node.wait .tile { color: var(--warn); box-shadow: 0 0 0 1px rgba(245,176,65,0.7), var(--shadow), var(--hilite); }
.node .tagTop { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 5px; color: var(--warn); background: var(--board); box-shadow: 0 0 0 1px rgba(245,176,65,0.5); white-space: nowrap; }
/* 出错：红边 */
.node.bad .tile { color: var(--bad); box-shadow: 0 0 0 1px rgba(255,90,95,0.7), var(--shadow), var(--hilite); }
/* 选中（你在看哪）：白色双圈 */
.node.is-selected .tile { box-shadow: var(--glow), var(--shadow); }
/* 连线 */
.edge { flex: 1 1 30px; min-width: 22px; max-width: 70px; height: var(--node-tile); display: flex; align-items: center; margin: 0 -12px; }
.edge i { flex: 1; height: 1.5px; background: var(--border-strong); }
.edge b { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--border-strong); }
.edge.done i { background: rgba(61,220,132,0.45); } .edge.done b { border-left-color: rgba(61,220,132,0.45); }
.edge.run i { background: repeating-linear-gradient(90deg, var(--run) 0 7px, transparent 7px 13px); background-size: 13px 1.5px; animation: flow var(--flow) linear infinite; filter: drop-shadow(0 0 4px var(--run-glow)); }
.edge.run b { border-left-color: var(--run); }
@keyframes flow { to { background-position: 13px 0 } }

/* ---------- 产出区：大图 + 右侧读数窄带 ---------- */
.out { display: grid; grid-template-columns: minmax(0, 1fr) var(--readouts-w); min-height: 0; }
.viewer { display: flex; flex-direction: column; min-height: 0; padding: 18px 24px; gap: 10px; }
.viewer-head { display: flex; align-items: baseline; gap: 12px; }
.viewer-head .step { font-size: var(--fs-md); font-weight: 500; }
.viewer-head .step em { font-style: normal; color: var(--run-ink); text-shadow: var(--glow-blue); }
.viewer-head .sp { flex: 1; }
.screen { position: relative; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); }
.screen .live { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
.screen .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--run); box-shadow: 0 0 8px var(--run-glow); animation: lamp 1.2s ease-in-out infinite; }
/* 播放器：凹槽里的轨道，播过的青、没播的灰蓝，播放头白线；时码在读数窗里（.win） */
.scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.track { position: relative; height: 22px; border-radius: 4px; background: var(--slot); box-shadow: var(--slot-edge); }
.track .seg { position: absolute; top: 10px; height: 2px; background: rgba(124,140,170,0.42); border-radius: 2px; }
.track .done { position: absolute; left: 0; top: 10px; height: 2px; background: var(--media); border-radius: 2px; box-shadow: 0 0 8px var(--media-soft); }
.track .head { position: absolute; top: 4px; width: 2px; height: 14px; background: #fff; border-radius: 1px; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
.track .tick { position: absolute; top: 16px; width: 1px; height: 4px; background: var(--text-3); }
.play { width: 34px; height: 34px; border-radius: 50%; padding: 0; display: grid; place-items: center; }

.readouts { padding: 18px 22px 18px 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--sep-l); min-height: 0; overflow: hidden; }
.big { display: flex; flex-direction: column; gap: 2px; }
.big .v { font-size: var(--fs-xxl); font-weight: 300; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.big .v small { font-size: 12px; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }
.big .k { font-size: var(--fs-xs); color: var(--text-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meter { height: 3px; border-radius: 2px; background: var(--slot); box-shadow: var(--slot-edge); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--run); box-shadow: 0 0 8px var(--run-glow); transition: width 600ms cubic-bezier(.2,.8,.2,1); }
/* 四行 kv（撞色）：名称洋红、值青 */
.kv { display: grid; grid-template-columns: 56px 1fr; gap: 7px 10px; font-size: var(--fs-node); }
.kv .k { color: var(--accent-ink); } .kv .v { color: var(--text-muted); }
.kv .v.mono, .kv .vv { font-family: var(--mono); font-size: var(--fs-xs); color: var(--media-ink); text-shadow: var(--glow-teal); }
.log { display: flex; flex-direction: column; gap: 6px; }
.log div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.log div span:first-child { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.log div.now span { color: var(--text-muted); } .log div.now span:first-child { color: var(--run-ink); }

/* ---------- 数据控制台（Fuel 这类没有流水线的页；11-05 验收稿里长出来的） ---------- */
/* 没有窄带的页：导轨 + 舞台 */
.app.noband { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.stage.flat { grid-template-rows: var(--topbar-h) minmax(0, 1fr); }
.main { overflow: auto; padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 36px; min-width: 0; min-height: 0; }
/* 导轨项超过五个、或客户是小白：悬停在键右边浮出名字（不用系统 title） */
.rail { position: relative; z-index: 5; }
.rail .iconBtn[aria-label]:hover::after {
  content: attr(aria-label); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 60;
  padding: 5px 10px; border-radius: var(--r-sm); white-space: nowrap; font-size: var(--fs-node); color: var(--text);
  background: var(--plate); box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.07); animation: pop 160ms cubic-bezier(.34, 1.4, .64, 1) both; pointer-events: none;
}
/* 记录行：主区里的宽列表行（使用记录、充值记录、文件）。左一列等宽时间，中间两行（主字白、次信息灰），右端一个金额或数右对齐；
   当前行左侧一条洋红落点竖线（同窄带 .job）；行与行之间不画线，靠 8 像素的呼吸；列表里的金额只上色（-ink 档）不发光 */
.rows { padding: 6px 0; }
.rec { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 0 14px; align-items: start; padding: 8px 16px; position: relative; cursor: pointer; transition: background 160ms; }
.rec:hover { background: rgba(255, 255, 255, 0.03); }
.rec .tm { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.rec .tx { display: flex; flex-direction: column; min-width: 0; }
.rec .t { font-size: var(--fs-md); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .s { font-size: var(--fs-xs); color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .s i { font-style: normal; color: var(--text-3); margin: 0 6px; }
.amt { font-family: var(--mono); font-size: var(--fs-sm); color: var(--money-ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap; padding-top: 1px; text-align: right; }
.amt.zero { color: var(--text-3); }
.rec.is-current { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent); }
.rec.is-current::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-line); border-radius: 2px; }
/* 按天分组的小头：日期灰、右端等宽合计；组与组之间一道刻线 */
.dayHead { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 6px; font-size: var(--fs-xs); color: var(--text-2); }
.dayHead:not(:first-child) { box-shadow: var(--sep-t); margin-top: 6px; }
.dayHead span:last-child { font-family: var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
/* 读数带里的小清单：名字灰、金额右对齐 */
.mini { display: flex; flex-direction: column; gap: 8px; }
.mini div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-node); color: var(--text-muted); }
.mini div .amt { font-size: var(--fs-xs); }
/* 大数字里的货币符号和小数小一档；0 暗着 */
.big .v .cur { font-size: 14px; margin-right: 6px; letter-spacing: 0; }
.big .v .dec { font-size: 16px; letter-spacing: 0; }
.big .v.zero { color: var(--text-3); text-shadow: none; }
/* 走势图：铣进面板的读数窗，里面一排单色的柱（金额用金、用量用运转蓝，压暗到 30%），选中那根满亮、上方写数、日期下一盏洋红灯；
   只有整数刻度线和两端日期（等宽 10 号灰字），没有网格、图例、第二种颜色。每根柱是一个 .dcol，--h 是它的高度 */
.chart { position: relative; height: 216px; border-radius: var(--r-sm); background: var(--slot); box-shadow: var(--slot-edge); padding: 26px 18px 30px 58px; }
.chart .plot { position: relative; height: 100%; }
.chart .gl { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.045); }
.chart .gl span { position: absolute; right: calc(100% + 10px); top: -7px; font-family: var(--mono); font-size: 10px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart .gl.base { background: rgba(255, 255, 255, 0.1); }
.dcol { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer; }
.dcol .bar { width: 100%; min-height: 1px; height: var(--h); border-radius: 2px 2px 0 0; background: rgba(212, 162, 76, 0.3); transition: background 160ms; }
.dcol:hover .bar { background: rgba(212, 162, 76, 0.5); }
.dcol.on .bar { background: var(--money); }
.dcol .x { position: absolute; top: calc(100% + 8px); font-family: var(--mono); font-size: 10px; color: var(--text-3); white-space: nowrap; }
.dcol.on .x { color: var(--text-muted); }
.dcol.on .x::after { content: ""; position: absolute; left: 50%; top: calc(100% + 3px); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent-line); }
.dcol .tip { position: absolute; bottom: calc(var(--h) + 6px); font-size: var(--fs-xs); white-space: nowrap; }

/* 只有运转的东西在动；系统要求少动时全部停住 */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
