/* 酿酒之星 · 电脑端控制台
   颜色沿用门户那套（深底 + 青色点缀），这样从首页点进控制台不会有割裂感。
   纯静态、零依赖，没有构建步骤：改完传上去就是所见即所得。 */

:root {
  --bg: #0a0d10;
  --bg2: #0e141a;
  --card: #101820;
  --line: rgba(24, 224, 255, 0.14);
  --line-strong: rgba(24, 224, 255, 0.32);
  --cyan: #18e0ff;
  --cyan-dim: #7fe6f7;
  --amber: #ffb242;
  --green: #07c160;
  --red: #ff6b6b;
  --text: #e7eef3;
  --muted: #8d9aa5;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性必须真的能藏住东西。
   这条不能省：下面给 .login-mask / .layout / .chart-empty / .qr-state 都写了 display，
   作者样式优先级高于浏览器默认的 [hidden]{display:none} —— 少了这条，
   el.hidden = true 完全不生效，登录遮罩会一直盖在控制台上（实测踩过）。 */
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
b, strong { color: #fff; font-weight: 600; }

.link {
  background: none; border: 0; padding: 0;
  color: var(--cyan-dim); font-size: 13px; cursor: pointer; font-family: inherit;
}
.link:hover { color: #fff; text-decoration: underline; }

/* 「看看酿造进度演示」入口：侧栏里一个不起眼的文字按钮（不是导航项，不参与高亮）。
   它进 #/demo —— 假数据把一锅压成 63 秒循环播，专门给人看酿造进度长什么样。 */
.demo-link { display: block; margin: 14px 0 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(24, 224, 255, 0.9), rgba(24, 224, 255, 0.35));
  color: #04202a; font-weight: 800; font-size: 17px;
  box-shadow: 0 0 20px rgba(24, 224, 255, 0.32);
}
.brand-text { font-size: 16px; font-weight: 700; letter-spacing: 0.4px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }

/* ============ 登录层 ============ */
.login-mask {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(820px 520px at 50% 26%, rgba(24, 224, 255, 0.14), transparent 64%),
    radial-gradient(600px 420px at 20% 90%, rgba(255, 178, 66, 0.08), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 30px 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h2 { font-size: 21px; letter-spacing: 0.5px; }
.login-sub { color: var(--muted); font-size: 13px; margin-top: 8px; }

.qr-box {
  width: 216px; height: 216px; margin: 22px auto 0;
  border-radius: 16px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  position: relative;
}
.qr-box img { width: 100%; height: 100%; display: block; }
.qr-state {
  color: #4a5561; font-size: 13px; line-height: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 18px;
  width: 100%; height: 100%;
}
.qr-state .link { color: #0a7c93; }

.login-foot {
  margin-top: 16px; min-height: 20px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; color: var(--muted);
}
.login-note { margin-top: 18px; font-size: 12px; color: #6f7c86; }
.login-note a { color: var(--cyan-dim); }

/* ============ 布局 ============ */
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

.side {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0c1218, #0a0d10);
  padding: 20px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh;
}
.side-title { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-top: 6px; }
.dev-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.side-empty { flex: 1; color: #6f7c86; font-size: 13px; line-height: 1.9; text-align: center; padding-top: 40px; }

.dev {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 13px; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.dev:hover { border-color: var(--line); }
.dev.on { border-color: var(--line-strong); background: rgba(24, 224, 255, 0.07); }
.dev-top { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.dev-top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-bot { margin-top: 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.dev-bot .val { color: var(--cyan-dim); }

.side-foot {
  border-top: 1px solid var(--line); padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.me-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--line);
}
.avatar-fallback {
  display: grid; place-items: center;
  background: rgba(24, 224, 255, 0.12); color: var(--cyan-dim);
  font-size: 13px; font-weight: 600;
}

.main { padding: 24px 30px 44px; min-width: 0; }

.topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin-bottom: 20px;
}
.topbar h1 { font-size: 24px; letter-spacing: 0.5px; }
.dev-meta { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--cyan-dim); font-size: 12px;
}

.conn { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 6px; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #5b6771; }
.conn.on i { background: var(--green); box-shadow: 0 0 8px rgba(7, 193, 96, 0.8); }
.conn.off i { background: var(--red); box-shadow: 0 0 8px rgba(255, 107, 107, 0.7); }

/* ============ KPI 卡片 ============ */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.kpi-label { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.kpi-value {
  margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1.15;
  font-variant-numeric: tabular-nums; letter-spacing: 0.5px;
}
.kpi-value em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.kpi-value.sm { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.kpi-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.kpi-sub.warn { color: var(--amber); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #5b6771; flex: 0 0 auto; }
.dot.on { background: var(--green); box-shadow: 0 0 8px rgba(7, 193, 96, 0.75); }
.dot.off { background: #5b6771; }

/* ============ 曲线 ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; }

.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  font-family: inherit; cursor: pointer; font-size: 13px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.03);
  color: #c4ced6; transition: all 0.18s;
}
.tab:hover { border-color: var(--line); }
.tab.on { border-color: var(--line-strong); background: rgba(24, 224, 255, 0.1); color: #fff; }
.tabs-sm .tab { font-size: 12px; padding: 4px 10px; }

.chart-wrap { position: relative; height: 320px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #6f7c86; font-size: 13px; pointer-events: none;
}
.chart-foot { margin-top: 8px; font-size: 12px; color: var(--muted); min-height: 18px; }

.foot-note { margin-top: 18px; font-size: 12px; color: #6f7c86; line-height: 1.9; }
.foot-note a { color: var(--cyan-dim); }

/* ============ 窄屏 ============ */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .dev-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .dev { min-width: 200px; }
  .side-empty { padding: 12px 0; }
  .main { padding: 18px 16px 36px; }
  .topbar h1 { font-size: 20px; }
  .chart-wrap { height: 240px; }
}

/* ===========================================================================
   2026-10-09：控制台从「单设备实时监控」扩成多视图（总览 / 我的记录 / 我的配方 / 横向对比）。
   下面这些是新增视图的样式；上面那套（布局、KPI、曲线、登录层）一个字没改。
   =========================================================================== */

/* ============ 侧边栏导航 ============ */
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  font-family: inherit; font-size: 14px; text-align: left; cursor: pointer;
  padding: 9px 12px; border-radius: 10px; color: #c4ced6;
  background: none; border: 1px solid transparent; transition: all 0.18s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.nav-item.on { background: rgba(24, 224, 255, 0.1); border-color: var(--line-strong); color: #fff; font-weight: 600; }

/* 实时连接状态原来在 topbar 里；多视图之后放侧栏底部才一直看得见 */
.side .conn { padding-top: 0; justify-content: center; }

/* ============ 总览：按设备类型分块（一体机 / 发酵罐 / 无线比重计）============
   2026-10-10 改。用户原话："总览这里面也要分一下，一体机，发酵罐，比重计这三个区域，
   参考小程序端的设计风格就行，不要照搬，要更适合网页端的显示方式"。
   · 分区与卡片形态照小程序 `pages/devices` 的思路：一体机通常一两台 ⇒ **横向宽卡**（图左数据右）；
     发酵罐会越加越多 ⇒ **竖向小卡网格**（图上字下）；比重计是"一根插在酒里的胶囊" ⇒ **一行一个**。
   · 网页端自己的东西：分区标题右边拉一条发丝线（"分区到底"这种分隔小程序里不好做）、
     卡片沿用控制台的深色青边材质（跟驾驶舱那套玻璃面板是一家）、每张卡点进去就是设备页。
   ============================================================ */
.ov { display: flex; flex-direction: column; gap: 24px; }
.ov-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ov-title { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.ov-count { font-size: 12px; color: var(--muted); }
.ov-rule { flex: 1; height: 1px; background: var(--line); }
.ov-empty { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 卡片本体 */
.ov-card {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.ov-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }

/* 比重计那行末尾的"看历史数据 ›"：告诉用户这一行是能点进去的
   （整行可点、但没有任何按钮，不给个提示没人知道要点） */
.ov-more { color: var(--cyan-dim); }

.ov-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ov-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-badge {
  flex: 0 0 auto; font-size: 11px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.ov-badge.run { border-color: rgba(7, 193, 96, 0.5); color: var(--green); }
.ov-l2 { margin-top: 5px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.ov-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: #6f7c86;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ov-nums { margin-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ov-num b { display: block; font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ov-num b em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.ov-num span { font-size: 12px; color: var(--muted); }

/* ---- 小图：**直接复用设备页那两种图形的 DOM**（app.js 的 mchInnerHtml / ferInnerHtml），
   整块缩小塞进固定框里。所以总览上的机器和罐子跟点进去看到的**是同一台东西**，不会两套画法。
   ⚠️ 倍数写死是**对的**：总览的图大小固定，不像驾驶舱要"能放多大放多大"。
   ⚠️ `overflow: hidden` 不能省 —— 缩放的只是视觉，元素在布局上还是 150×260 / 300×460，不裁会顶出去。
   ⚠️ 缩小后**不带动画**（总览每几秒整体重建一次 DOM，动画会不停从头播）—— 见 app.js 的 animate 参数。 */
.ov-fig { position: relative; overflow: hidden; flex: 0 0 auto; }
.ov-fig .mch, .ov-fig .fer { transform-origin: 0 0; }
.ov-fig-mch { width: 66px; height: 115px; }
.ov-fig-mch .mch { transform: scale(0.44); }
.ov-fig-fer { width: 84px; height: 129px; }
.ov-fig-fer .fer { transform: scale(0.28); }

/* ---- 一体机：横向宽卡 ---- */
.ov-brews { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
.ov-brew { display: flex; gap: 16px; align-items: center; }
.ov-main { flex: 1; min-width: 0; }

/* ---- 发酵罐：竖向小卡网格（图上、字下、居中）---- */
.ov-tanks { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.ov-tank { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 14px 14px; }
.ov-tank .ov-fig { margin-bottom: 10px; }
.ov-tank .ov-l1, .ov-tank .ov-l2, .ov-tank .ov-foot { justify-content: center; }
.ov-tank .ov-name { max-width: 100%; }
.ov-tank-temp { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.ov-tank-temp b { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ov-tank-temp b em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.ov-tank-temp span { font-size: 12px; color: var(--muted); }

/* ---- 无线比重计：一行一个 ---- */
.ov-hyds { display: flex; flex-direction: column; gap: 10px; }
.ov-hyd { display: flex; align-items: center; gap: 16px; }
.ov-read { flex: 0 0 auto; text-align: right; min-width: 88px; }
.ov-read b { display: block; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-read span { font-size: 11px; color: var(--muted); }
.ov-state {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 7px;
  min-width: 148px; font-size: 12px; color: var(--muted);
}
.ov-state.on { color: var(--green); }

/* 比重计那根胶囊（底下圆头、顶拧盖），绕自身中心斜 14° —— 跟小程序同一套画法。
   底下那层淡酒液 + 液面线不能省：光一根管子看不出它是"泡在酒里测比重"的，只像一根空试管。
   ⚠️ 别把 transform-origin 往下挪（改成绕底部转）：那样管子的下摆会甩出框、盖到下一行上。 */
.ov-fig-hyd { position: relative; width: 44px; height: 70px; }
.ov-fig-hyd::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 21px;
  background: rgba(255, 178, 66, 0.12); border-radius: 0 0 4px 4px;
}
.ov-fig-hyd::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 21px; height: 1px;
  background: rgba(255, 178, 66, 0.40);
}
.hyd-tube {
  position: absolute; left: 50%; top: 6px; width: 21px; height: 57px; margin-left: -11px;
  box-sizing: border-box;
  border: 1.5px solid var(--amber);
  border-radius: 4px 4px 11px 11px;
  transform: rotate(-14deg);
}
.hyd-tube::before {
  content: ''; position: absolute; left: -4px; right: -4px; top: -2px; height: 8px;
  background: var(--amber); border-radius: 3px 3px 1px 1px;
}
.hyd-tube::after {
  content: ''; position: absolute; left: -2px; right: -2px; top: 10px; height: 1px;
  background: rgba(255, 178, 66, 0.55);
}

/* ============ 记录 / 配方列表 ============ */
.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color 0.2s, background 0.2s;
}
/* 勾选模式（横向对比页的选择区）才多出最前面那列复选框。
   ⚠️ 记录列表里没有复选框，所以默认**不能**留那 26px 的空列，否则内容会挤进窄列。 */
.rec.pick { grid-template-columns: 26px minmax(0, 1fr) auto; cursor: pointer; }
.rec:hover { border-color: var(--line); }
.rec.on { border-color: var(--line-strong); background: rgba(24, 224, 255, 0.05); }
.rec-check { width: 18px; height: 18px; accent-color: #18e0ff; }
/* 复选框只是"显示选中"，点了由整张卡片的 click 处理 —— 所以别让它自己吃点击（会双触发） */
.rec.pick .rec-check { pointer-events: none; }

/* 列表页的卡片右侧多一个「下发到设备」按钮（`.rec.act`，见 views.js 的 renderRecordCard）。
   ⚠️ 只有列表页的卡片带 `act`，对比页的选择区是 `.rec.pick`（三列含复选框）—— 两者不会同时出现，
      真同时出现时这条在后面、会赢，也不影响（`.rec.act` 的列定义照样容得下复选框那一列）。 */
.rec.act { grid-template-columns: minmax(0, 1fr) auto auto; }
.rec-side { display: flex; align-items: center; }
.rec-act {
  font-family: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(24, 224, 255, 0.08); border: 1px solid var(--line-strong); color: var(--cyan-dim);
}
.rec-act:hover { background: rgba(24, 224, 255, 0.18); color: #fff; }
/* 收藏的社区配方卡片：内容那块不是按钮（网页端没有配方详情页，故意不做成可点） */
.rec-main { min-width: 0; }

/* ============ 「下发到设备」的选设备弹层（2026-10-10 加）============
   规则照小程序 `utils/devicePicker.js`：一体机收糖化那半、发酵罐收发酵那半，
   没有发酵步骤时发酵罐那行置灰（逻辑在 views.js 的 openDevPicker）。
   ⚠️ 下发结果（成功/失败）**就地显示在弹层底部**（`.dp-tip`），别用 alert ——
      弹层还开着，结果跟着弹层走最清楚。 */
.dp-mask {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 8, 12, 0.74);
}
.dp-card {
  width: min(520px, 94vw); padding: 18px 20px 14px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.dp-title { margin-bottom: 12px; font-size: 15px; }
.dp-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.dp-row {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 14px; border-radius: 10px; font-family: inherit;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--text);
}
.dp-row:hover:not(:disabled) { background: rgba(24, 224, 255, 0.08); border-color: var(--line-strong); }
.dp-row:disabled { opacity: 0.45; cursor: not-allowed; }
.dp-n { display: block; font-size: 14px; font-weight: 600; }
.dp-r { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.dp-tip { min-height: 18px; margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.dp-tip.ok { color: var(--green); }
.dp-tip.bad { color: var(--amber); }
.dp-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.dp-close {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 13px;
  background: none; border: 1px solid var(--line-strong); color: var(--cyan-dim);
}
.dp-close:hover { background: rgba(24, 224, 255, 0.12); color: #fff; }

/* ---- 手动判沸（2026-10-12 加）：驾驶舱里那个键 + 它的确认弹层 ----
   跟小程序一个口径：这个键是"最后一条线"，故意做成**橙色描边**、不是主操作按钮，
   免得被当成普通按钮顺手点。 */
.ck-force { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ck-force-btn {
  width: 100%; padding: 9px 0; cursor: pointer; font-family: inherit; font-size: 13px;
  background: rgba(255, 178, 66, 0.08); color: var(--amber);
  border: 1px solid rgba(255, 178, 66, 0.55); border-radius: 10px;
}
.ck-force-btn:hover:not(:disabled) { background: rgba(255, 178, 66, 0.18); }
.ck-force-btn:disabled { opacity: 0.6; cursor: default; }
.ck-force-hint { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); text-align: center; }

.fb-body { margin-bottom: 8px; font-size: 13px; line-height: 1.75; color: var(--text); }
.fb-body b { color: var(--cyan-dim); }
.fb-warn {
  margin: 10px 0; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; line-height: 1.7; color: var(--amber);
  background: rgba(255, 178, 66, 0.10); border: 1px solid rgba(255, 178, 66, 0.35);
}
.fb-foot { gap: 10px; }
.fb-ok { border-color: var(--amber); color: var(--amber); }
.fb-ok:hover { background: rgba(255, 178, 66, 0.16); color: #fff; }

/* 配方库里的两个 tab：「我酿过的 / 我收藏的」，后面跟一个条数 */
.lib-tabs { margin-bottom: 14px; }
.lib-tabs .tab em {
  margin-left: 6px; font-style: normal; font-size: 11px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.lib-tabs .tab.on em { color: var(--cyan-dim); }
.warn-txt { color: var(--amber); }

.rec-open {
  font-family: inherit; text-align: left; cursor: pointer; color: inherit;
  background: none; border: 0; padding: 0; min-width: 0;
}
.rec-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rec-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-meta { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.rec-nums { display: flex; gap: 22px; }
.rec-num span { display: block; font-size: 12px; color: var(--muted); }
.rec-num b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-num b em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 3px; }

.grade {
  flex: 0 0 auto; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--cyan-dim); white-space: nowrap;
}

/* ============ 对比：选择区（2026-10-09 从"记录列表的勾选条"搬到这里）============
   用户要的是：点「横向对比」先把名下记录列出来，再挑 2~3 条比。
   给个最大高度 + 内部滚动 —— 不然 100 条记录会把曲线和对照表挤到屏幕外。 */
.cmp-pick-card { margin-bottom: 16px; }
.cmp-pick-list { max-height: 300px; overflow-y: auto; padding-right: 4px; }

/* ============ 对比：图例 + 参数表 ============ */
/* 对比页头部右侧两行小切换：① 按什么对齐 X 轴 ② 曲线按什么上色 */
.cmp-head-tabs { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cmp-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cmp-legend i, .cmp-table .swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: middle;
}
.cmp-table-card { margin-top: 16px; }
.card-title { font-size: 15px; font-weight: 600; }

/* ============ 小程序「手动判沸」演示（#/boildemo，2026-10-11 加）============
   左边一个手机框，里面**照抄小程序设备详情页**的视觉（深色卡片 + 青色大数字 +
   橙色描边按键）；右边是阶段切换和"发生了什么事"。
   ⚠️ 手机屏里那些颜色**故意不用上面 :root 那套变量** —— 它复刻的是小程序（另一套配色），
      以后调控制台的 --cyan 之类不该把这个"小程序的样"跟着改掉。 */
.bd-wrap { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .bd-wrap { grid-template-columns: 1fr; } }

.bd-phone {
  width: 360px; max-width: 100%;
  padding: 10px; border-radius: 40px;
  background: #1b1f24;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.bd-screen {
  position: relative;
  min-height: 560px;
  border-radius: 30px;
  background: #121212;
  overflow: hidden;
}
/* 刘海（纯装饰，让"这是个手机"一眼看出来） */
.bd-screen::before {
  content: ''; position: absolute; z-index: 3;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 18px; border-radius: 0 0 12px 12px;
  background: #1b1f24;
}

/* ---- 手机屏里的"小程序页面" ---- */
.bdc-page { padding: 40px 16px 22px; }
.bdc-hero { background: #1e1e1e; border-radius: 12px; padding: 16px 16px 22px; margin-bottom: 16px; }
.bdc-hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bdc-name { font-size: 13px; font-weight: 700; color: #d0d0d0; }
.bdc-online { font-size: 12px; padding: 3px 10px; border-radius: 12px; color: #07c160; background: rgba(7, 193, 96, 0.15); }
.bdc-hero-value {
  font-size: 44px; font-weight: 700; line-height: 1;
  text-align: center; color: #18e0ff;
  text-shadow: 0 0 16px rgba(24, 224, 255, 0.45);
}
.bdc-hero-cap { font-size: 12px; color: #9e9e9e; text-align: center; margin-top: 10px; }
.bdc-smart {
  background: linear-gradient(135deg, rgba(24, 224, 255, 0.08), rgba(0, 140, 255, 0.12));
  border: 1px solid rgba(24, 224, 255, 0.45); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px;
  font-size: 13px; color: #bfefff;
}
.bdc-sec { font-size: 14px; color: #d0d0d0; margin: 0 2px 8px; }
.bdc-card { background: #1e1e1e; border-radius: 12px; padding: 4px 14px; }
.bdc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #2c2c2c;
}
.bdc-row:last-child { border-bottom: none; }
.bdc-label { font-size: 13px; color: #9e9e9e; flex-shrink: 0; margin-right: 12px; }
.bdc-value { font-size: 13px; color: #fff; text-align: right; }
.bdc-value.strong { font-size: 16px; font-weight: 700; color: #07c160; }

/* 手动判沸按键：照抄小程序 `.force-boil-btn`（橙色描边、不填色 —— 它是"最后一条线"，
   故意做得不像主按钮，免得被顺手点到） */
.bdc-force { padding: 14px 0 10px; }
.bdc-force-btn {
  width: 100%; padding: 11px 0; cursor: pointer;
  background: #2a2418; color: #e6a23c;
  border: 1px solid #e6a23c; border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.bdc-force-btn:hover { background: #38301e; }
.bdc-force-hint { display: block; margin-top: 8px; font-size: 11px; color: #7a7a7a; text-align: center; }

/* 二次确认弹窗：照抄 `wx.showModal` 的样子（浅色卡片、左取消右确定、确定键橙色） */
.bdm-mask {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  display: grid; place-items: center; padding: 22px;
}
.bdm-card { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; }
.bdm-title { padding: 20px 18px 8px; font-size: 16px; font-weight: 700; color: #111; text-align: center; }
.bdm-body { padding: 0 18px 18px; font-size: 13px; line-height: 1.6; color: #444; }
.bdm-foot { display: flex; border-top: 1px solid #e5e5e5; }
.bdm-btn { flex: 1; padding: 13px 0; background: none; border: none; font-size: 15px; font-family: inherit; cursor: pointer; }
.bdm-btn:hover { background: #f5f5f5; }
.bdm-cancel { color: #666; border-right: 1px solid #e5e5e5; }
.bdm-ok { color: #e6a23c; font-weight: 700; }

/* ---- 右边：阶段切换 + "发生了什么事" ---- */
.bd-side { display: flex; flex-direction: column; gap: 16px; }
.bd-note { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.bd-note code { color: var(--cyan-dim); font-size: 12px; }
.bd-log { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.8; color: var(--text); }
.bd-log li::marker { color: var(--cyan); }
.bd-reset {
  margin-top: 14px; padding: 8px 16px; cursor: pointer;
  background: transparent; color: var(--cyan-dim);
  border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; font-family: inherit;
}
.bd-reset:hover { background: rgba(24, 224, 255, 0.08); }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td {
  padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left; white-space: nowrap;
}
.cmp-table thead th { color: #fff; font-weight: 600; }
.cmp-table td.k, .cmp-table th.k { color: var(--muted); font-weight: 400; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td.best { color: var(--green); font-weight: 700; }

/* 分组标题行（配方 / 曲线 / 手填 / 其它）—— 一行跨满，不要边框，只当分隔 */
.cmp-table tr.grp td {
  padding: 18px 14px 6px;
  border-bottom: 0;
  color: var(--cyan-dim); font-size: 12px; letter-spacing: 0.6px;
}
.cmp-table tr:first-child.grp td { padding-top: 4px; }

/* ============ 阶段条 / 阶段图例（2026-10-09 加）============
   颜色跟 views.js 的 PHASE_META 一一对应，曲线下方那条彩色段和这个图例是同一套：
   糖化水升温=蓝 · 等待加麦芽=灰 · 糖化=绿 · 洗糖=黄 · 煮沸=橙 · 酸化=紫 · 收尾=浅灰 */
.phase-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.phase-legend .pl { display: inline-flex; align-items: center; gap: 5px; }
.phase-legend .pl i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.phase-legend:empty { display: none; }

/* 曲线画布加高：X 轴下面多了一/几条阶段条（上下都留够）。
   2026-10-09：400 → 450（阶段条 16→24px）→ **520**（阶段条 24→48px）。
   不加高的话，三条 48px 的阶段条一占，绘图区就没地方了。 */
.chart-wrap-lg { height: 520px; }

/* ============ 记录卡片：配方标签 + 阶段耗时条 ============ */
.rec-tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.rec-tags > span {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.02);
}

/* 卡片上的迷你阶段条：样式跟图里那条对齐（半透明分段 + 圆角 + 段间留缝）。
   ⚠️ 段的颜色是 JS 里 inline 给的（views.js 的 fillPhaseBar 用 hexA 压了透明度） */
.rec-phases {
  display: flex; height: 14px; margin-top: 11px;
  border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.05);
  padding: 2px;
}
.rec-phases:empty { display: none; }
.rec-phases i { display: block; min-width: 2px; border-radius: 3px; }
.rec-phases i + i { margin-left: 2px; }

.rec-phase-txt { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }
.rec-phase-txt:empty { display: none; }

@media (max-width: 880px) {
  .rec { grid-template-columns: minmax(0, 1fr); }
  .rec.pick { grid-template-columns: 26px minmax(0, 1fr); }
  .rec-nums { grid-column: 1 / -1; gap: 16px; margin-top: 10px; }
  .chart-wrap-lg { height: 440px; }
}

/* ============================================================
   一体机：纯 CSS 桶身图 + 实时工序（2026-10-09 加）
   ------------------------------------------------------------
   移植自 miniprogram/pages/rankings/rankings.wxss 里的 `.mch-*`（澳式单桶 SG 那一段）。
   换算规则：**rpx → px 按 1:1**（小程序里整机 150rpx，在 375px 屏上约 75px；
   这里直接给 150px），再按"这块地方能放多大"整体缩放 —— 倍数由 JS 的 `fitMachine()` 现算
   （网页端要的是"特别大、占满一屏"，见下面那节「驾驶舱」）。

   ⚠️ 只移植了澳式（SG）。SC（中式单桶）/ SA（双桶全自动）还没上市，
      等有真机再照小程序那两段补 —— 认不出的机型一律按 SG 画
      （跟 server/src/brewModel.js 的兜底一致）。
   ⚠️ 别改成 canvas / SVG 重画：这段跟小程序是**同一套绝对定位坐标**，
      以后小程序改外形，这边对着改数值就行，不用重新设计。
   🔵 **材质跟小程序刻意不一样**：小程序是"不锈钢实心桶"（深灰渐变），网页端这套是
      **半透明玻璃 + 青色描边 + 内高光 + 发光**（用户 2026-10-09："这个一体机画的不好看，
      看着比较笨重，想要玻璃透明那种科技感"）。**只换材质、坐标一个没动。**
   ⚠️ 各零件默认全藏（见下面那组 display:none），只有 `.mch-sg` 显式打开它有的零件。

   图上"活"的东西全部来自真实上报（一个装饰都没有）：
     液面高度 = volume ÷ 额定容量 · 液体颜色 = 温度（跟发酵罐共用同一份 tone 色板）·
     蒸汽 = 煮沸中 · 麦芽篮 = 糖化/洗糖段 · 加热盘橙光 = 正在加热 ·
     泵叶轮转 + 管里跑光点 = 循环泵在转 · 待机/暂停 → 上面这些标记全不带（机器静止）
   ============================================================ */

/* 桶身的舞台。⚠️ **放大倍数不写死** —— 由 JS 的 fitMachine() 按这块地方的实际宽高算
   （右边那列是固定宽的，舞台宽度随窗口变，写死就会在宽屏上留一大片空白） */
.ck-stage {
  position: relative; flex: 1; min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
/* 桶身背后的青色辉光：科技感的一半靠它（另一半是右边那列玻璃面板）。
   玻璃桶是半透明的，这层辉光会**透过桶身**显出来 —— 所以调亮一点 */
.ck-stage::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 70%; height: 70%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(24, 224, 255, 0.20), rgba(24, 224, 255, 0) 68%);
  pointer-events: none;
}
.ck-stage .mch,
.ck-stage .fer { filter: drop-shadow(0 0 30px rgba(24, 224, 255, 0.30)); }

.mch { position: relative; width: 150px; height: 260px; }
/* ⚠️ 原来这里有一条 `.mch::after`（机器脚下那圈**横向的椭圆青光**，我 2026-10-09 做玻璃版时
   加的）—— 用户看了说"下面横着那个也去掉"，删掉了：他那台机器下面没有这东西，
   而且它本来就是纯装饰。 */

/* ---- 共用零件 ----
   ⚠️ 2026-10-09：**网页端刻意不跟小程序一样**。小程序那版是"不锈钢实心桶"（深灰渐变、
   银灰管件），在这么大一块屏幕上看着笨重。用户要的是"玻璃透明那种科技感"，所以这里整段
   换成 半透明玻璃 + 青色描边 + 内高光 + 发光。**几何尺寸一个都没动**（跟小程序同一套坐标），
   只换材质 —— 以后小程序改外形，把尺寸同步过来即可。 */
.mch-body {
  position: absolute; overflow: hidden;
  background: none;
  border: 1px solid rgba(90, 235, 255, 0.75);
  box-shadow: 0 0 22px rgba(24, 224, 255, 0.35), inset 0 0 30px rgba(24, 224, 255, 0.07);
}
/* 桶身内壁的细横纹（全息感）。很淡，只是让玻璃面有"屏幕"的质感，不抢液面 */
.mch-body::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background-image: repeating-linear-gradient(0deg,
    rgba(140, 235, 255, 0.10) 0, rgba(140, 235, 255, 0.10) 1px, transparent 1px, transparent 9px);
  pointer-events: none;
  opacity: 0.45;   /* 线框版里横纹只是"提示有面"，别抢轮廓线 */
}
/* 桶里的液面：高度由行内 style 给（%），颜色由 tone-* 给。
   顶上那条白亮线是"液面反光"—— 玻璃桶里看得见，不加就像一坨色块 */
.mch-liq {
  position: absolute; left: 0; right: 0; bottom: 0;
  transition: height 0.6s ease;
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.28);
}
.mch-liq::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15));
}
/* ⚠️ 原来这里有一条 `.mch-shine`（桶身左侧那道竖向反光条）——
   2026-10-09 用户看图后说"左侧立柱式啥？去掉"，他那台机器上没有这个东西。
   删掉了（竖条 + JS 模板里那个 `<i class="mch-shine">` 一起删的）。 */
/* 桶盖：线框版就是一圈发光的轮廓 */
.mch-lid {
  position: absolute;
  background: none;
  border: 1px solid rgba(90, 235, 255, 0.85);
  box-shadow: 0 0 16px rgba(24, 224, 255, 0.45);
}

/* 泵（壳 + 转动的叶轮）—— 壳也是线框，叶轮保留发光圆盘（"在转"要看得见） */
.mch-pump {
  position: absolute; border-radius: 5px;
  background: none;
  border: 1px solid rgba(90, 235, 255, 0.75);
  box-shadow: 0 0 12px rgba(24, 224, 255, 0.30);
}
.mch-fan {
  position: absolute; left: 5px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 255, 255, 0.95) 0%, rgba(24, 224, 255, 0.45) 70%);
  box-shadow: 0 0 8px rgba(24, 224, 255, 0.70);
}
/* 两道十字叶片：不画它们的话，一个圆转起来根本看不出来（对称图形） */
.mch-fan::before, .mch-fan::after {
  content: ''; position: absolute; left: 4px; top: 0; width: 2px; height: 10px;
  background: rgba(235, 255, 255, 0.95);
}
.mch-fan::after { transform: rotate(90deg); }
.mch-live .mch-fan { animation: mchSpin 0.9s linear infinite; }
@keyframes mchSpin { to { transform: rotate(360deg); } }

/* 回流立管：线框版就是一根发光的空管（里面跑的光点见下面的 .mch-flow） */
.mch-pipe {
  position: absolute; border-radius: 3px;
  background: none;
  border: 1px solid rgba(90, 235, 255, 0.80);
  box-shadow: 0 0 14px rgba(24, 224, 255, 0.50);
}
/* ⚠️ 2026-10-09：原来这里有个 `.mch-pipe::before`（跑在立管里的绿光点）——
   用户要的是"从水泵那里出来、一直到最上面"，光点现在挂在 `.mch` 上（见下面的 `.mch-flow`），
   沿"泵 → 立管 → 顶部弯管 → 桶盖"整条路走。这个 ::before 和 `@keyframes mchFlow` 都删了。 */

/* ============ 麦汁循环：一绿点从**水泵**出来，走完整条回路 ============
   2026-10-09 用户："绿色圆点那个代表麦汁循环的要从水泵那里出来，然后到最上面"。
   路径（坐标都是相对 `.mch` 这个 150×260 的盒子，跟零件同一套坐标）：
     水泵中心 (54,218) → 横着到立管 (139,218) → 顺着立管上到顶 (139,75)
     → 沿顶部弯管往左 (101,75) → 弯下去插进桶盖 (101,108)
   四段长度 85 / 143 / 38 / 33（共 299），关键帧百分比就按长度分配 ⇒ 看着是匀速走的。
   ⚠️ 用 `transform: translate` 而不是 `offset-path`：translate 哪都能跑，
      `offset-path: path()` 在老一点的浏览器里会退化成一动不动。
   ⚠️ `margin: -3px` 是把落点对准圆点的**中心**（元素左上角在 0,0，translate 移的是左上角）。
   ⚠️ 只在 `.mch-live`（run_state===1）时跑 —— 待机/暂停时机器是静止的。 */
.mch-flow {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #8bffb0;
  box-shadow: 0 0 10px rgba(139, 255, 176, 0.95);
  opacity: 0;
}
/* 后面跟两个更小更暗的，凑成一小串"水流"（一个孤零零的点看不出在流动） */
.mch-flow.d2 {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: rgba(139, 255, 176, 0.70); box-shadow: 0 0 7px rgba(139, 255, 176, 0.60);
}
.mch-flow.d3 {
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: rgba(139, 255, 176, 0.45); box-shadow: none;
}
/* ⚠️ 拖尾用**正**延时（不是常见的负延时）：负延时是"提前跑"，那会让两个小点跑到
   亮点**前面**去（看着像小人领路）。正延时才是跟在后面 —— 亮点在前、越后越小越淡。 */
.mch-live .mch-flow { animation: mchFlowRun 4.6s linear infinite; }
.mch-live .mch-flow.d2 { animation-delay: 0.16s; }
.mch-live .mch-flow.d3 { animation-delay: 0.32s; }
@keyframes mchFlowRun {
  0%    { transform: translate(54px, 218px); opacity: 0; }
  4%    { opacity: 1; }
  28.4% { transform: translate(139px, 218px); }
  76.3% { transform: translate(139px, 75px); }
  89%   { transform: translate(101px, 75px); }
  93%   { opacity: 1; }
  100%  { transform: translate(101px, 108px); opacity: 0; }
}

/* 桶身上那块屏（澳式是圆形、装在上部）：默认藏起来，各机型自己打开。
   屏里那条亮杠 = "在跑"，正在跑时整块屏发光 */
.mch-screen {
  position: absolute; display: none; box-sizing: border-box;
  background: radial-gradient(circle at 50% 45%, rgba(24, 224, 255, 0.50) 0%, rgba(4, 20, 28, 0.85) 70%);
  box-shadow: 0 0 16px rgba(24, 224, 255, 0.30);
}
.mch-screen::after {
  content: ''; position: absolute; left: 25%; right: 25%; top: 42%; height: 4px; border-radius: 2px;
  background: rgba(140, 255, 190, 0.90);
  box-shadow: 0 0 8px rgba(140, 255, 190, 0.80);
}
.mch-live .mch-screen { box-shadow: 0 0 16px rgba(24, 224, 255, 0.55), 0 0 28px rgba(24, 224, 255, 0.35); }

/* 顶上那个弯管：线框版 = 横的一截 + 从桶盖穿下去的那截（::after），都只描边 */
.mch-arm {
  position: absolute; display: none; height: 6px; border-radius: 3px;
  background: none;
  border: 1px solid rgba(90, 235, 255, 0.80);
  box-shadow: 0 0 14px rgba(24, 224, 255, 0.45);
}
.mch-arm::after {
  content: ''; position: absolute; left: 0; top: 0; width: 6px; border-radius: 3px;
  background: none; border: 1px solid rgba(90, 235, 255, 0.80);
}

/* ⚠️ 设备仓那块面板（`.mch-bay`）**整个删了**：
   原来它顶沿那条亮线就是用户说的"水泵上面那个横线"，用户让把它改成**加热盘**
   （见 `.mch-sg .mch-plate`）。面板本身在线框风里没东西可画，所以连 CSS 规则带
   标记里那个 `<i class="mch-bay">` 一起删了 —— 别照着小程序那份又加回来。 */

/* 麦芽篮（只在糖化/洗糖段挂进去）：线框版用虚线框，麦芽还是麦芽色（那是原料） */
.mch-basket {
  position: absolute; border-radius: 3px 3px 6px 6px;
  background: none;
  border: 1px dashed rgba(90, 235, 255, 0.50);
}
.mch-grain {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, rgba(232, 192, 130, 0.95), rgba(160, 115, 60, 0.95));
  box-shadow: 0 0 12px rgba(220, 160, 80, 0.35);
}

/* 蒸汽（三缕）：只有煮沸之后才冒 */
.mch-steam {
  position: absolute; width: 12px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(200, 245, 255, 0.02), rgba(200, 245, 255, 0.45));
  opacity: 0;
}
.mch-boil .mch-steam { animation: mchSteam 2.8s ease-in-out infinite; }
.mch-boil .mch-steam.s2 { animation-delay: 0.9s; }
.mch-boil .mch-steam.s3 { animation-delay: 1.8s; }
@keyframes mchSteam {
  0% { transform: translateY(8px) scaleY(0.6); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translateY(-18px) scaleY(1.3); opacity: 0; }
}

/* 零件默认藏起来，各机型只把自己要的打开。
   ⚠️ 后面那批零件（console / hx / hose / leg / shelf / foot …）的 display:none
      分别写在各自那条规则里或这里 —— 漏一个就会在容器左上角留下一截莫名其妙的横梁 */
.mch-b2, .mch-handle, .mch-port, .mch-plate, .mch-basket, .mch-tube, .mch-valve,
.mch-foot, .mch-console, .mch-hx, .mch-hose, .mch-leg, .mch-shelf { display: none; }

/* ---------------- 澳式 / 德式单桶（SG40 / SG70，在售）----------------
   ⚠️ 桶底那个小凳子撤掉了，整台机器下移 —— 桶的真实桶底直接落在地面线上 */
.mch-sg .mch-steam { left: 56px; top: 52px; }
.mch-sg .mch-steam.s2 { left: 70px; }
.mch-sg .mch-steam.s3 { left: 84px; }

.mch-sg .mch-lid { left: 20px; right: 20px; top: 80px; height: 14px; border-radius: 7px 7px 2px 2px; }

.mch-sg .mch-body.mch-b1 { left: 24px; right: 24px; top: 94px; height: 146px; border-radius: 6px 6px 16px 16px; }

/* 麦汁坐在**内胆底**上（不是真桶底），所以液面从内胆底那条线上量（比真桶底高 38px）。
   百分比仍是相对整个桶身高度算的（= 麦汁量 ÷ 机型容量）。
   ⚠️ 那 38px 原来被 `.mch-bay`（设备仓面板）盖着；线框版不画那块面板了，
      所以现在直接能看到桶里下半段的泵和加热盘 —— 用户要的就是这个。 */
.mch-sg .mch-b1 .mch-liq { bottom: 38px; border-radius: 0 0 6px 6px; }

.mch-sg.mch-mash .mch-basket { display: block; }
.mch-sg .mch-basket { left: 9px; right: 9px; top: 5px; height: 76px; }
.mch-sg .mch-grain { height: 24px; }

/* ⚠️ 原来这里有一条 `.mch-sg .mch-tube`（桶身正中那根溢流管）——
   2026-10-09 用户看图后说"中间溢流管也去掉，我们没有溢流管"，删掉了
   （规则 + JS 模板里那个 `<i class="mch-tube">` 一起删的；元素名还留在下面那组
   display:none 里，别的机型将来要用还能用）。 */

/* 加热盘：**在水泵上面那条横线**（内胆底那条线上）—— 2026-10-09 用户"水泵上面那个横线
   改成加热盘、水泵下面这个横线去掉"。
   位置：`.mch-b1` 的 padding box 高 144，bottom:33 ⇒ 落在机器坐标 y≈202~206，
   正好压在泵（y208~228）上沿。正在加热时发橙光（见 `.mch-heat`） */
.mch-sg .mch-plate {
  position: absolute;
  display: block; left: 6px; right: 6px; bottom: 33px; height: 4px; border-radius: 2px;
  background: rgba(130, 220, 255, 0.22);
}

/* 桶身上部那块**圆屏**（设备自己的操作面板）—— 线框版：一圈亮环 + 里面发光的屏 */
.mch-sg .mch-screen {
  display: block; left: 52px; top: 104px; width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid rgba(90, 235, 255, 0.90);
  background: radial-gradient(circle at 50% 45%, rgba(24, 224, 255, 0.50) 0%, rgba(4, 20, 28, 0.85) 70%);
  box-shadow: 0 0 16px rgba(24, 224, 255, 0.45), inset 0 0 10px rgba(24, 224, 255, 0.35);
}

/* ⚠️ 原来这里有一条 `.mch-sg .mch-valve`（桶底左下那个小排液阀）——
   2026-10-09 用户看图后问"左侧最底部那个是支腿吗？都去掉吧"，删掉了
   （规则 + JS 模板里那个 `<i class="mch-valve">` 一起删的）。 */

/* ⚠️ 水泵在**桶里下面那一段（设备仓）**，不是挂在真桶底下 —— 双层桶身 */
.mch-sg .mch-pump { left: 34px; top: 208px; width: 40px; height: 20px; }
.mch-sg .mch-fan { left: 5px; top: 4px; width: 12px; height: 12px; }
.mch-sg .mch-fan::before, .mch-sg .mch-fan::after { left: 5px; height: 12px; }

/* 侧面上到顶、再从桶盖弯下去的那根循环管。
   ⚠️ `width: 6px` 不能漏 —— 绝对定位元素没宽度就跟内容一样宽（= 0），整根看不见
   ⚠️ 立管要离桶身留出 10px（桶身右沿 126，管子在 136~142）
   🔴 **2026-10-10 修「拐弯处出头」**（用户原话："从水泵出来这个横管和右侧竖管交界处不完美，
      都出头了"）。原因有两层，都要记住：
      ① **每段管子都是一个"四面描边"的矩形框**。横管的右端只要越过立管的**左沿**，
         它的**上边**就会从立管内部横穿出去、立管的**左边**也会从横管内部竖穿出去 ⇒
         交界处出现一个"十"字残迹。所以横管右端一律**停在立管左沿并取消 border-right**
         （那一侧的框线由立管自己提供），接缝那头做**直角**、另一头才留圆角。
      ② 伪元素（`::after`）**不吃 `* { box-sizing: border-box }`**（`*` 不匹配伪元素），
         默认是 content-box ⇒ `width` 会把 2px 边框加在外面、右端又多冒出去 2px。
         所以下面每条都**显式写了 `box-sizing: border-box`**。
      ③ 接缝处的 `left / top / bottom` 是相对立管的 **padding box（内边）** 算的，
         不是外框 —— 要拿"目标坐标 − 内边坐标"自己折算，别拿外框直接减（会差 1px）。
   目标坐标（机器坐标，含边框）：立管 x136~142/y72~220 · 底横管 x74~136/y214~220 ·
   顶横管 x98~136/y72~78 · 伸进桶里那截 x98~104/y78~110。 */
.mch-sg .mch-pipe {
  left: 136px; top: 72px; width: 6px; height: 148px;
  box-sizing: border-box; border-radius: 0;      /* 两头都接横管 ⇒ 上下都直角 */
}
/* 泵 → 立管的那截连接管（在设备仓里横着穿出去）。
   左边 74 顶在泵的右沿、右边 136 顶在立管的左沿；底边跟立管底边齐平。 */
.mch-sg .mch-pipe::after {
  content: ''; position: absolute; box-sizing: border-box;
  left: -63px; bottom: -1px; width: 62px; height: 6px;
  background: none; border: 1px solid rgba(90, 235, 255, 0.80); border-right: 0;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 14px rgba(24, 224, 255, 0.45);
}

/* 顶上那个弯管：横的一截在桶盖上方，右端同样停在立管的左沿（同上面那条的道理）。 */
.mch-sg .mch-arm {
  display: block; left: 98px; top: 72px; width: 38px;
  box-sizing: border-box; border-right: 0; border-radius: 3px 0 0 3px;
}
/* 伸进桶里那截：**从横管的下边往下**（不是从横管顶边往下，那样会在横管内部留一道竖线头），
   而且 `border-top: 0` —— 那一条正是横管的底边，再描一遍就成了 2px 双线。 */
.mch-sg .mch-arm::after {
  box-sizing: border-box; left: -1px; top: 5px; width: 6px; height: 32px;
  border-top: 0; border-radius: 0 0 3px 3px;
}

/* ---- 加热发光：桶底那条加热盘，加热时发橙光（玻璃版里这抹橙是整台机器唯一的暖色，最显眼） ---- */
.mch-heat .mch-plate {
  background: linear-gradient(90deg, rgba(255, 122, 45, 0.95), rgba(255, 208, 138, 1), rgba(255, 122, 45, 0.95));
  box-shadow: 0 0 16px rgba(255, 140, 60, 0.75);
}
.mch-heat .mch-plate::after {
  content: ''; position: absolute; left: -24px; right: -24px; bottom: 0; height: 26px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 150, 60, 0.45), rgba(255, 150, 60, 0) 70%);
}

/* ---- 液体颜色 = 温度。⚠️ 色板**只有这一份**，跟发酵罐共用：
   同一锅麦汁在桶里和罐里不许显示成两种颜色。
   （糖化/煮沸都在 60~100℃，所以酿造中基本都是 hot 那档橙色 —— 那是对的，
     麦汁本来就有那么烫；到了发酵温度才会变成 cool/warm。）
   玻璃版里再给液面加一圈同色外发光 —— 隔着玻璃看"里面在发光"，这才有科技感。
   ⚠️ 外发光写在这里就必须**把 .mch-liq 基础那圈内阴影一起重复写上**
      （这条选择器更具体，会把基础规则整条盖掉） */
.tone-ice .mch-liq, .tone-ice .fer-liquid {
  background: linear-gradient(180deg, #a8e8ff, #2f8fd0);
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.28), 0 0 22px rgba(70, 180, 255, 0.55);
}
.tone-cool .mch-liq, .tone-cool .fer-liquid {
  background: linear-gradient(180deg, #a9e6dc, #2f9e86);
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.28), 0 0 22px rgba(60, 210, 180, 0.55);
}
.tone-warm .mch-liq, .tone-warm .fer-liquid {
  background: linear-gradient(180deg, #ffd98a, #d98a1f);
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.28), 0 0 22px rgba(255, 190, 90, 0.55);
}
.tone-hot .mch-liq, .tone-hot .fer-liquid {
  background: linear-gradient(180deg, #ffb066, #d1560f);
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 140, 50, 0.60);
}
.tone-unk .mch-liq, .tone-unk .fer-liquid { background: linear-gradient(180deg, #6a6a6a, #474747); }

/* ============================================================
   发酵罐罐身（纯 CSS，2026-10-09 加）
   ------------------------------------------------------------
   用户原话："我的一体机这个图做好了，界面也合理，发酵罐也做成这样吧"。
     · 外形**跟小程序 fermenter-detail.wxss 的 `.fer-*` 同一套几何**（rpx→px 1:1，
       300×460）。三层同 polygon 叠出带光边的罐形 + 锥底，容器尺寸别改 ——
       改了就和小程序那台罐子长得不一样了。
     · 材质刻意跟小程序不同：小程序是"实心不锈钢罐 + 亮边"，这里跟一体机桶身一样
       用**线框全息**（深色半透罐腔 + 青色亮边 + 细横纹），排在一起才是一套设备。
     · 罐腔留透明（不是实心深色）：用户在控制台要的是科技感，能看见里面在发光。
   ============================================================ */
.fer { position: relative; width: 300px; height: 460px; }

/* 三层用**同一个** polygon：外发光 / 亮边 / 罐腔。
   66% 处开始收锥、底口留 12%（44%~56%）当排液口 —— 三层严丝合缝 */
.fer-glow, .fer-rim, .fer-inner {
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 56% 100%, 44% 100%, 0 66%);
}
.fer-glow {
  left: -14px; right: -14px; top: -14px; bottom: -14px;
  background-color: rgba(24, 224, 255, 0.16);
  transition: background-color 0.5s ease;
}
/* 亮边：罐腔比它内缩 3px ⇒ 露出的就是 3px 宽的轮廓（跟桶身那 1px 描边同一套语言） */
.fer-rim {
  left: 0; right: 0; top: 0; bottom: 0;
  background-color: rgba(90, 235, 255, 0.80);
  transition: background-color 0.5s ease;
}
.fer-inner {
  left: 3px; right: 3px; top: 3px; bottom: 3px;
  background: linear-gradient(180deg, rgba(6, 20, 28, 0.62), rgba(4, 12, 18, 0.88));
  box-shadow: inset 0 0 40px rgba(24, 224, 255, 0.10);
  overflow: hidden;
}
/* 罐腔内壁的细横纹（跟桶身 `.mch-body::after` 同一手法，间距大一点，
   因为罐子比桶高 —— 间距一样会显得密） */
.fer-inner::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg,
    rgba(140, 235, 255, 0.10) 0, rgba(140, 235, 255, 0.10) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
  opacity: 0.5;
}

/* 加热 / 制冷时整罐换色，一眼看出温控在干什么（跟小程序同一套换色） */
.fer.heat-on .fer-rim { background-color: rgba(255, 150, 70, 0.85); }
.fer.heat-on .fer-glow { background-color: rgba(255, 140, 60, 0.22); }
.fer.cool-on .fer-rim { background-color: rgba(185, 232, 255, 0.95); }
.fer.cool-on .fer-glow { background-color: rgba(120, 200, 255, 0.26); }

/* 麦汁：高度由行内 style 给（%），颜色由 tone-* 给（跟桶身共用一份色板） */
.fer-liquid { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; transition: height 0.6s ease; }
/* 液面顶上那条白亮线 —— 不加就像一坨色块（跟 `.mch-liq::after` 是同一种反光） */
.fer-surface {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15));
}
/* 发酵中才有的上浮气泡（只在 run_state===1 时跑）。飘到液面就被 `.fer-liquid`
   的 overflow:hidden 裁掉 —— 所以气泡只出现在酒液里，符合直觉 */
.fer-bubble {
  position: absolute; bottom: -12px; border-radius: 50%;
  background-color: rgba(255, 240, 200, 0.9);
  opacity: 0;
}
.fer-run .fer-bubble { animation: ferRise 5s linear infinite; }
.fer-bubble.b1 { left: 18%; width: 8px; height: 8px; animation-duration: 5.2s; }
.fer-bubble.b2 { left: 42%; width: 6px; height: 6px; animation-duration: 6.6s; animation-delay: 1.2s; }
.fer-bubble.b3 { left: 64%; width: 10px; height: 10px; animation-duration: 4.4s; animation-delay: 2.4s; }
.fer-bubble.b4 { left: 80%; width: 6px; height: 6px; animation-duration: 5.8s; animation-delay: 0.6s; }
@keyframes ferRise {
  0%   { transform: translateY(0) scale(0.7); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translateY(-380px) scale(1.15); opacity: 0; }
}

/* ============================================================
   「驾驶舱」：一屏看完，不滚动（2026-10-09 改）
   ------------------------------------------------------------
   ⚠️ 2026-10-09 起**一体机和发酵罐共用这一套**（用户："发酵罐也做成这样吧"）：
      左边 `.ck-stage` 放设备图形（一体机是 `.mch` 桶身、发酵罐是 `.fer` 罐身），
      右边一律是 `.ck-side` 那列玻璃面板 —— 两个机型的面板长得一模一样。
   ------------------------------------------------------------
   用户原话："画的这个太小了，我想要特别大的，就是全屏幕的最好，然后要有科技感的半透明
   那种状态的感觉，最好是一个页面不用滑动下拉就可以看见全部的设备运行状态各种数据"。
     · `body.ck` = "进入驾驶舱"的开关（app.js 在 route()/renderDevLive 里切）：
       把 .layout 钉成 100vh、.main 变成 flex 列 ⇒ **整页不再滚动**；
       顺带藏掉自己的 KPI 网格和页脚（那些数都搬进右边的玻璃面板了）。
     · 左边 `.ck-stage` 放设备图形，放大倍数由 JS 现算（fitMachine）—— 能放多大就多大。
     · 右边 `.ck-side` 一列玻璃面板：状态条 + 4 个大数字 + 进度面板。
     · 最下面那条曲线高度压到 220px（普通模式 520px），否则一屏塞不下。
   ============================================================ */
body.ck .layout { height: 100vh; overflow: hidden; }
body.ck .main {
  height: 100vh; overflow: hidden;
  padding: 16px 22px 18px;
  display: flex; flex-direction: column;
}
/* 驾驶舱的骨架用**网格**摆（2026-10-10 改；同日又把左右对调了一次）：
       ┌─────────────── topbar ───────────────┐
       │   左列：面板  │        机器           │
       │  （跨两行）   │ ───────────────────── │
       │              │        曲线           │
       └─────────────────────────────────────┘
   ⚠️ 为什么不用"整宽的曲线卡摆在最下面"：那样曲线卡**固定吃掉 333px 高度**
   （`.chart-card{flex:0 0 auto}`），而它整宽铺在最下面 ⇒ 面板那一列只能捡剩下的。
   2026-10-10 实测：1366×768 上 `.ck-side` 只剩 **233px**（内容需要 756px），
   酿造进度面板被挤成 **18px 一条缝** —— 用户原话："曲线太长了，给右面状态信息栏目
   都挡住了，别挡着"。改成网格后面板**跨第 2~3 行＝整高**、曲线退到自己那一格，
   同一块屏幕上右列从 233px 变成 578px（实测值）。
   ⚠️ **面板放左还是放右是用户 2026-10-10 定的**（他选左边："右侧的布局放在左侧会不会
   好点？"）。两边尺寸完全一样，纯位置区别 —— 面板贴左是为了紧挨导航，视线从导航出来
   直接落到"第几步 / 还剩多久"上，酿酒时"瞄一眼"不用横扫到屏幕最右。
   ⚠️ `.dev-ck` 用 `display: contents` 把它那两个子元素（`.ck-stage` / `.ck-side`）
      直接交给这个网格来摆 —— 一行 DOM / JS 都不用改。窄屏（≤880px）在文件末尾
      把它复原成 flex（见那条 media query）。 */
body.ck #viewDevice {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 386px minmax(0, 1fr);   /* 左：状态面板（宽度跟 .ck-side 原值一致） */
  grid-template-rows: auto minmax(0, 1fr) auto;  /* 顶栏 / 中间能缩 / 曲线 */
  gap: 12px;
}
body.ck #viewDevice > .topbar { grid-column: 1 / -1; grid-row: 1; }
body.ck #viewDevice > .dev-ck { display: contents; }
body.ck #viewDevice .ck-side { grid-column: 1; grid-row: 2 / 4; }   /* ← 跨两行＝整高 */
body.ck #viewDevice .ck-stage { grid-column: 2; grid-row: 2; }
body.ck #viewDevice > .chart-card { grid-column: 2; grid-row: 3; }
body.ck .topbar { flex: 0 0 auto; margin-bottom: 0; align-items: center; }
body.ck .topbar h1 { font-size: 20px; }
body.ck .dev-meta { margin-top: 4px; }
body.ck #kpis { display: none; }
body.ck .main > .foot-note { display: none; }
/* 曲线卡：现在摆在左列（比原来窄），所以高度也降下来 —— 省下的都归右边那列。
   220 → 170 是量出来的：1366×768 上把机器从 118×205 救回 147×255。 */
body.ck .chart-card { padding: 12px 16px 10px; }
body.ck .chart-card .chart-head { margin-bottom: 6px; }
body.ck .chart-wrap-lg { height: 170px; }

/* ============================================================
   「配方设计」（`body.rcp`）：把 /recipe/ 嵌进来（2026-10-10 加）
   ------------------------------------------------------------
   跟上面 `body.ck`（驾驶舱）是同一个套路：把 `.layout` 钉成 100vh、`.main` 变成 flex 列 ——
   这样里面的 iframe 才能用 `flex: 1` 撑满。不这么做的话得给 iframe 写死高度，
   而 `.main` 的上下内边距、页脚那行字都会变，写死的高度迟早对不上。
   ⚠️ 这个类只由 app.js 的 `route()` 里一句 `classList.toggle('rcp', view === 'recipe')` 切
      （跟 ck 一样）—— 别在别的地方加，否则切页时会摘不掉。
   ⚠️ 配方工具是**同源**的（`/recipe/`），所以它读得到控制台的登录票据
      `localStorage.bs_token` —— 「一键下发」就是靠这个接通的，不用再传 token。 */
body.rcp .layout { height: 100vh; overflow: hidden; }
body.rcp .main {
  height: 100vh; overflow: hidden;
  padding: 16px 22px 18px;
  display: flex; flex-direction: column;
}
body.rcp #viewRecipe { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.rcp .main > .foot-note { display: none; }
.recipe-frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: var(--bg); }

.dev-ck { flex: 1; min-height: 0; display: flex; gap: 18px; }

/* 玻璃面板：科技感就靠这套（半透明 + 背景模糊 + 青色描边 + 内高光 + 外投影） */
.ck-glass {
  background: linear-gradient(160deg, rgba(24, 224, 255, 0.07), rgba(14, 22, 30, 0.55));
  border: 1px solid rgba(24, 224, 255, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ck-side {
  flex: 0 0 386px; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
}

/* 状态条：一个会呼吸的圆点 + 当前工序 */
.ck-status { padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.ck-pulse { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: #4a5560; }
.ck-pulse.on { background: var(--green); animation: ckPulse 2s ease-out infinite; }
@keyframes ckPulse {
  0% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(7, 193, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0); }
}
.ck-phase { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.ck-phase-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* 四个大数字（温度 / 桶内液量 / 加热功率 / 循环流量） */
.ck-tiles { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-tile { padding: 12px 14px; }
.ck-tile > span { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.ck-tile b {
  display: block; margin-top: 3px; color: #fff;
  font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.ck-tile b em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.ck-tile small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ck-tile.warn small { color: var(--amber); }

/* 酿造进度面板（2026-10-10 起里面是「酿造进度时间线」，见下面 .tl-* 那一段） */
/* 🔴 2026-10-16：**加 overflow-y** —— 这块面板是"钉死一屏"的（父级 .ck-side 不给翻页），
   内容一多就**直接溢出玻璃面板外面**（用户当天反馈："放的位置超出栏目了不好看"）。
   原来没有 overflow ⇒ 溢出部分落在圆角边框之外。加 auto 之后最差是面板内部滚动，
   内容永远留在框里。 */
.ck-rows {
  flex: 1 1 auto; min-height: 0; padding: 4px 16px 12px;
  overflow-y: auto; scrollbar-width: thin;
}
.ck-rows::-webkit-scrollbar { width: 6px; }
.ck-rows::-webkit-scrollbar-thumb {
  background: rgba(24, 224, 255, 0.22); border-radius: 3px;
}
.ck-rows h3 {
  padding: 10px 0 8px; font-size: 12px; font-weight: 600;
  color: var(--cyan-dim); letter-spacing: 1px;
}
.lv-row { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lv-k { display: block; font-size: 12px; color: var(--muted); }
.lv-v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-row.warn .lv-v { color: var(--amber); }
.lv-bar {
  display: block; margin-top: 7px; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.lv-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(24, 224, 255, 0.95), rgba(24, 224, 255, 0.45));
  transition: width 0.5s ease;
}
.lv-empty { padding: 10px 0 4px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   酿造进度时间线（.tl-*，2026-10-10 加）
   ------------------------------------------------------------
   HTML 由 app.js 的 brewPanelHtml() 生成，塞进 `.ck-rows > .lv-body`。
   五块：① .tl-now    "现在这一步"——大字 + 进度条 + 倒计时
        ② .tl-steps  整锅糖化步骤清单（竖线 + 圆点，done/cur/next/todo 四态）
        ③ .tl-next   "下一步"横条（设备直报的和推算的都走这里）
        ④ .tl-hop    每次酒花（done / now / soon 三态）
        ⑤ .tl-aux    辅助读数（复用 .lv-row，见 ckRowsHtml）
        ⑥ .tl-endvol "煮沸后预计剩余麦汁量"——单行**强调条**（值用青色大字），见下面那段注释
   配色口径跟驾驶舱一致：青 = 正在做、琥珀 = 该看一眼了、灰 = 做完或还没到。
   ⚠️ 样式是**后加的**：app.js 先有类名、CSS 后补。以后再加类名记得一起补这里，
      不然页面上会是"有内容、没样子"的一坨（不报错，很难察觉）。
   ============================================================ */

/* ① 现在这一步 */
.tl-now {
  margin: 8px 0 2px; padding: 11px 13px;
  background: rgba(24, 224, 255, 0.06);
  border: 1px solid rgba(24, 224, 255, 0.20);
  border-radius: 12px;
}
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-head b {
  color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.tl-head span { flex: 0 0 auto; color: var(--cyan-dim); font-size: 12px; letter-spacing: 1px; }
.tl-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.tl-bar { margin-top: 9px; }
.tl-foot {
  margin-top: 9px; display: flex; align-items: baseline;
  justify-content: space-between; gap: 10px;
}
.tl-foot b { color: var(--cyan-dim); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-foot span { flex: 0 0 auto; font-size: 12px; color: var(--muted); }

/* ② 糖化步骤清单：一条竖线串起所有步骤，圆点在线上 */
.tl-steps { margin-top: 10px; }
.tl-step-row {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 8px 6px 8px 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tl-step-row:first-child { border-top: 0; }
/* 竖线（第一条从中间起、最后一条到中间止 —— 两头不要探头） */
.tl-step-row::before {
  content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.10);
}
.tl-step-row:first-child::before { top: 50%; }
.tl-step-row:last-child::before { bottom: 50%; }
.tl-dot {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #1b242c; border: 1px solid rgba(255, 255, 255, 0.16);
}
.tl-t { flex: 0 0 auto; min-width: 62px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-d { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--muted); }
.tl-s { flex: 0 0 auto; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; white-space: nowrap; }

/* 已完成：压灰、打勾色圆点 */
.tl-step-row.done .tl-t { color: var(--muted); font-weight: 500; }
.tl-step-row.done .tl-dot { background: rgba(7, 193, 96, 0.30); border-color: rgba(7, 193, 96, 0.55); }
.tl-step-row.done .tl-s { color: rgba(7, 193, 96, 0.75); }
/* 进行中：青色实心点 + 光圈 + 行底青色渐隐 */
.tl-step-row.cur {
  background: linear-gradient(90deg, rgba(24, 224, 255, 0.11), rgba(24, 224, 255, 0));
  border-radius: 8px;
}
.tl-step-row.cur .tl-dot {
  background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 224, 255, 0.16);
}
.tl-step-row.cur .tl-t { color: #fff; }
.tl-step-row.cur .tl-s { color: var(--cyan-dim); font-weight: 700; }
/* 下一步：琥珀描边空心点（一眼看出"下一拍是它"） */
.tl-step-row.next .tl-dot { background: transparent; border: 2px solid var(--amber); }
.tl-step-row.next .tl-t { color: var(--text); }
.tl-step-row.next .tl-s { color: var(--amber); font-weight: 700; }
/* 还没到 */
.tl-step-row.todo .tl-t { color: var(--muted); font-weight: 500; }

.tl-note {
  margin-top: 6px; padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px; color: var(--muted); line-height: 1.6;
}

/* ③ "下一步"横条 */
.tl-next {
  margin-top: 9px; padding: 9px 12px;
  background: rgba(255, 178, 66, 0.09);
  border: 1px solid rgba(255, 178, 66, 0.28);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  color: #f0dcb8; font-size: 13px; font-weight: 600; line-height: 1.6;
}

/* ④ 酒花提醒 */
.tl-hop {
  margin-top: 7px; padding: 8px 11px;
  display: flex; align-items: baseline; gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.tl-hop b { flex: 0 0 auto; font-size: 13px; font-weight: 600; }
.tl-hop span { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--muted); }
.tl-hop em {
  flex: 0 0 auto; font-style: normal; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-hop.done { opacity: 0.55; }
.tl-hop.done em { color: rgba(7, 193, 96, 0.85); }
.tl-hop.soon { background: rgba(255, 178, 66, 0.10); border-color: rgba(255, 178, 66, 0.42); }
.tl-hop.soon em { color: var(--amber); font-weight: 700; }
.tl-hop.now {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.55);
  animation: tlFlash 1.6s ease-in-out infinite;
}
.tl-hop.now em { color: var(--red); font-weight: 700; }
@keyframes tlFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14); }
}

/* ⑤ 辅助读数：只是给上面几块留点间距，行本身复用 .lv-row */
.tl-aux { margin-top: 8px; }

/* ⑥ 「煮沸后预计剩余麦汁量」——**单行强调条**（2026-10-16 加）
   为什么不复用 .lv-row（用户当天两条反馈驱动的）：
     · "不够明显" ⇒ .lv-row 是"12px 灰标签 + 16px 值"的两行式、值还是白色，混在一堆读数里
       看不出来；这里改成**单行 + 值用青色大字 + 淡青底色/描边**，一眼就能抓到。
     · "超出栏目了" ⇒ .ck-rows 那块是"钉死一屏"的（见上面 .ck-rows 的 overflow 注释），
       每多一行都有溢出风险；单行比 .lv-row 少约 14px。
   ⚠️ 标签用 flex 可收缩 + 值不收缩：窄屏上宁可标签被压、也不能让数字换行。 */
.tl-endvol {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-top: 10px; padding: 7px 12px;
  background: rgba(24, 224, 255, 0.08);
  border: 1px solid rgba(24, 224, 255, 0.28);
  border-radius: 9px;
}
.tl-endvol-k { min-width: 0; font-size: 12px; color: var(--muted); }
.tl-endvol-v {
  flex: none; font-size: 19px; font-weight: 700;
  color: var(--cyan); font-variant-numeric: tabular-nums;
}

/* 窄屏 / 手机：驾驶舱那套"钉死一屏"的做法在窄屏上会把内容裁掉，
   所以这里整个退回**可滚动的普通布局**（机器在上、数据在下）—— 别指望手机上也能一屏看全 */
@media (max-width: 880px) {
  body.ck .layout { height: auto; overflow: visible; }
  body.ck .main {
    height: auto; overflow: visible;
    padding: 18px 16px 36px; display: block;
  }
  body.ck #kpis { display: grid; }
  body.ck .main > .foot-note { display: block; }
  body.ck .chart-wrap-lg { height: 240px; }
  /* ⚠️ 窄屏要把上面那套「网格驾驶舱」**整个复原**：`#viewDevice` 回到块级、
     `.dev-ck` 回到 flex（不然 `display: contents` 会让机器/面板变成 `#viewDevice`
     的块级子元素，`.ck-side` 那些 `flex: none` / `width: 100%` 全部失效）。 */
  body.ck #viewDevice { display: block; }
  body.ck #viewDevice > .dev-ck { display: flex; }
  /* ⚠️ `flex: none` 不能省：`.dev-ck` 基础样式是 `flex: 1`（= flex-basis 0 + min-height 0），
     在窄屏这里 `.main` 已经不是 flex 容器了，#viewDevice 高度是 auto ⇒ 那一坨会**塌成 0 高**，
     里面 420px 的桶身就会溢出去压住下面的 KPI 和曲线 */
  .dev-ck { flex: none; flex-direction: column; gap: 12px; }
  .ck-side { flex: none; width: 100%; overflow: visible; }
  .ck-rows { flex: none; }   /* 同上：`flex: 1` 的 basis 是 0，在 auto 高的父级里会塌掉 */
  .ck-stage { flex: none; height: 420px; }
}

