/* =========================================================
   银豹正餐 KDS · 控菜屏  公共样式（五屏共用）
   骨架：顶部汇总 90px + 内容 930px + 底部播报/翻页 60px
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { background: #04070A; }

body{
  margin: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 480px at 14% -12%, rgba(42, 166, 224, 0.09), transparent 66%),
    var(--bg);
}

.screen{ display: flex; flex-direction: column; height: 1080px; }
.ic{ width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
.mono{ font-variant-numeric: tabular-nums; }

/* ===================== 顶部汇总条 90px ===================== */
.topbar{
  flex: none;
  height: 90px;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: 0 var(--sp-7);
  background: rgba(14, 22, 29, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand{ display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo{
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--brand); color: #062230;
  font-size: var(--fs-sm); font-weight: 700;
  display: grid; place-items: center;
}
.brand-name{ font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.brand-sub{ font-size: var(--fs-label); color: var(--text-3); margin-top: 1px; }

.tabs{ display: flex; align-items: center; gap: 6px; flex: none; }
.tab{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 20px;
  color: var(--text-2);
  white-space: nowrap;
}
.tab-n{ font-size: var(--fs-label); color: var(--text-3); }
.tab.is-on{ background: var(--brand-tint); border-color: var(--brand-line); color: #FFFFFF; font-weight: 600; }
.tab.is-on .tab-n{ color: var(--brand-bright); }

.metrics-mini{ display: flex; align-items: center; flex: none; }
.mk{ display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 18px; border-left: 1px solid var(--line); }
.mk:first-child{ border-left: 0; padding-left: 0; }
.mk-label{ font-size: var(--fs-label); color: var(--text-2); line-height: 1.2; white-space: nowrap; }
.mk-val{ font-size: var(--fs-num); font-weight: 650; line-height: 1.1; letter-spacing: -0.01em; }
.mk-val small{ font-size: var(--fs-label); font-weight: 400; color: var(--text-3); margin-left: 3px; }
.mk-val.is-red{ color: var(--st-red); }
.mk-val.is-amber{ color: var(--st-amber); }
.mk-val.is-blue{ color: var(--st-blue); }
.mk-val.is-cool{ color: var(--st-cool); }

.clock{ margin-left: auto; text-align: right; flex: none; }
.clock-time{ font-size: 40px; font-weight: 600; line-height: 1.1; }
.clock-date{ font-size: var(--fs-label); color: var(--text-3); }

/* ===================== 内容区 ===================== */
.main{ flex: 1; min-height: 0; padding: var(--sp-2) var(--sp-7); }

/* ===================== 通用标签 ===================== */
.badge{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px;
  border-radius: var(--r-xs);
  border: 1px solid var(--st-gray-line);
  background: var(--st-gray-tint);
  color: var(--st-gray);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  flex: none;
}
.badge .ic{ width: 15px; height: 15px; }
.badge.is-red{ color: var(--st-red); background: var(--st-red-tint); border-color: var(--st-red-line); }
.badge.is-amber{ color: var(--st-amber); background: var(--st-amber-tint); border-color: var(--st-amber-line); }
.badge.is-green{ color: var(--st-green); background: var(--st-green-tint); border-color: var(--st-green-line); }
.badge.is-blue{ color: var(--st-blue); background: var(--st-blue-tint); border-color: var(--st-blue-line); }
.badge.is-cool{ color: var(--st-cool); background: var(--st-cool-tint); border-color: var(--st-cool-line); }
/* 叫起：整块高亮，桌卡边框也是实心品牌色 */
.badge.is-fire{ background: var(--brand); border-color: var(--brand-bright); color: #04202B; font-weight: 700; }

/* ===================== 桌台卡（密度版） ===================== */
.tbl{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 6px 7px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.tbl::before{
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--st, var(--line-strong));
}
.tbl.is-red{ --st: var(--st-red); border-color: var(--st-red-line); background: linear-gradient(180deg, rgba(242, 99, 95, 0.10), rgba(242, 99, 95, 0) 60%), var(--surface-2); }
.tbl.is-red::before{ background: repeating-linear-gradient(135deg, var(--st-red) 0 5px, #8E3B37 5px 10px); }
.tbl.is-amber{ --st: var(--st-amber); border-color: var(--st-amber-line); background: linear-gradient(180deg, rgba(242, 163, 60, 0.08), rgba(242, 163, 60, 0) 60%), var(--surface-2); }
.tbl.is-green{ --st: var(--st-green); }
.tbl.is-blue{ --st: var(--st-blue); }
.tbl.is-fire{ --st: var(--brand-bright); border-color: var(--brand); box-shadow: inset 0 0 0 1px rgba(42, 166, 224, 0.55), 0 0 18px rgba(42, 166, 224, 0.16); background: linear-gradient(180deg, rgba(42, 166, 224, 0.10), rgba(42, 166, 224, 0) 62%), var(--surface-2); }
.tbl.is-hold{ --st: var(--st-cool); border: 1px dashed var(--st-cool-line); background: linear-gradient(180deg, rgba(127, 168, 200, 0.07), rgba(127, 168, 200, 0) 62%), var(--surface-2); }
.tbl.is-hold::before{ background: repeating-linear-gradient(180deg, var(--st-cool) 0 6px, transparent 6px 12px); }

.tbl-top{ display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tbl-id{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.tbl-no{ font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.tbl-zone{ font-size: var(--fs-label); color: var(--text-2); background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 0 5px; line-height: 1.45; white-space: nowrap; flex: none; }

.tbl-meta{ display: flex; align-items: center; gap: 10px; font-size: var(--fs-label); color: var(--text-2); line-height: 1.35; white-space: nowrap; }
.tbl-meta .sep{ width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); flex: none; }
.tbl-meta b{ font-weight: 600; color: var(--text); }
.tbl-meta b.is-late{ color: var(--st-red); }
.tbl-meta .big{ margin-left: auto; font-size: var(--fs-label); color: var(--st-amber); border: 1px solid var(--st-amber-line); background: var(--st-amber-tint); border-radius: var(--r-xs); padding: 0 4px; line-height: 1.45; flex: none; }

.tbl-prog{ display: flex; align-items: center; gap: 5px; line-height: 1.2; }
.bar{ flex: 1; height: 6px; border-radius: var(--r-pill); background: #263642; overflow: hidden; min-width: 32px; }
.bar > i{ display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--st-green); }
.bar.is-red > i{ background: var(--st-red); }
.bar.is-amber > i{ background: var(--st-amber); }
.bar.is-blue > i{ background: var(--st-blue); }
.bar.is-cool > i{ background: var(--st-cool); }
.prog-num{ font-size: var(--fs-label); color: var(--text-2); white-space: nowrap; flex: none; }
.prog-num b{ font-size: var(--fs-dish); font-weight: 650; color: var(--text); }
.prog-rest{ font-size: var(--fs-label); color: var(--st-amber); white-space: nowrap; flex: none; }

.dishes{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.dish{ display: flex; align-items: center; gap: 1px; font-size: var(--fs-dish); line-height: 1.25; min-width: 0; }
.dish-name{ flex: 1; min-width: 0; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station{ font-size: var(--fs-label); color: var(--text-3); flex: none; line-height: 1.2; }
.d-tag{ font-size: var(--fs-label); line-height: 1.45; padding: 0 4px; border-radius: var(--r-xs); flex: none; border: 1px solid transparent; }
.d-tag.is-red{ color: var(--st-red); background: var(--st-red-tint); border-color: var(--st-red-line); }
.d-tag.is-amber{ color: var(--st-amber); background: var(--st-amber-tint); border-color: var(--st-amber-line); }
.call-time{ flex: none; width: 73px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: var(--fs-label); color: var(--text-3); line-height: 1.2; white-space: nowrap; }
.ic-mini{ width: 14px; height: 14px; }
.call-time.is-late{ color: var(--st-red); font-weight: 600; }
.call-time.is-hold{ color: var(--st-cool); }

/* 菜品标记：超 / 催 / 等 / 起，可叠加 */
.flags{ display: inline-flex; align-items: center; gap: 1px; flex: none; }
.flags i{
  font-style: normal;
  font-size: var(--fs-label);
  line-height: 1.2;
  width: 18px;
  text-align: center;
  border-radius: var(--r-xs);
  border: 0;
  flex: none;
}
.f-red{ color: var(--st-red); background: var(--st-red-tint); }
.f-amber{ color: var(--st-amber); background: var(--st-amber-tint); }
.f-cool{ color: var(--st-cool); background: var(--st-cool-tint); }
.f-fire{ color: #04202B; background: var(--brand-bright); font-weight: 700; }

/* 当前工序 + 紧凑进度：制作 2/3；超过 5 段折成 2/5 */
.step-name{ flex: none; font-size: var(--fs-label); color: var(--text-2); line-height: 1.2; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 0; }
.step-name em{ font-style: normal; color: var(--text); font-weight: 600; }
.step-name::before{ content: "工序"; color: var(--text-3); font-size: var(--fs-label); }
.dish.is-dense .step-name::before{ content: none; }
.dish.is-dense .flags{ margin-right: 3px; }
.step-name i{ font-style: normal; color: var(--text-3); }

/* ===================== 底部播报 + 翻页 60px ===================== */
.footbar{
  flex: none;
  height: 60px;
  margin: 0 var(--sp-7) var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bc-label{
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--st-red-tint);
  border: 1px solid var(--st-red-line);
  color: #FFFFFF;
  font-size: var(--fs-label); font-weight: 600;
}
.bc-label .ic{ color: var(--st-red); width: 16px; height: 16px; }
.bc-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--st-red); animation: live 1.8s ease-in-out infinite; }
.bc-items{ display: flex; align-items: center; gap: var(--sp-6); font-size: var(--fs-label); color: var(--text-2); white-space: nowrap; overflow: hidden; min-width: 0; flex: 1; }
.bc-item{ display: inline-flex; align-items: center; gap: 5px; }
.bc-item b{ color: var(--text); font-weight: 600; }
.bc-item .tag{ font-weight: 600; }
.bc-item .tag.red{ color: var(--st-red); }
.bc-item .tag.amber{ color: var(--st-amber); }
.bc-item .tag.cool{ color: var(--st-cool); }
.bc-item .tag.blue{ color: var(--st-blue); }
.bc-item .ic{ color: var(--st-amber); width: 16px; height: 16px; }

.pager{ margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; padding-left: var(--sp-4); border-left: 1px solid var(--line); }
.pager-text{ font-size: var(--fs-label); color: var(--text-2); white-space: nowrap; }
.pager-text b{ font-size: var(--fs-dish); color: var(--text); font-weight: 650; }
.pager-bar{ width: 150px; height: 6px; border-radius: var(--r-pill); background: #263642; overflow: hidden; }
.pager-bar i{ display: block; height: 100%; width: var(--p); background: var(--brand); border-radius: inherit; }
.pager-sec{ font-size: var(--fs-label); color: var(--text-3); width: auto; min-width: 96px; text-align: right; white-space: nowrap; }

@keyframes live{ 0%, 100%{ opacity: 1; } 50%{ opacity: 0.3; } }
@media (prefers-reduced-motion: reduce){ .bc-dot{ animation: none; } }

/* ===================== 图例 ===================== */
.legend{ display: flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-label); color: var(--text-2); flex-wrap: wrap; }
.legend-item{ display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot{ width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend-dot.red{ background: var(--st-red); }
.legend-dot.amber{ background: var(--st-amber); }
.legend-dot.green{ background: var(--st-green); }
.legend-dot.cool{ background: var(--st-cool); }
.legend-dot.blue{ background: var(--st-blue); }

/* ===================== 变体 B：紧急常驻 + 轮播 ===================== */
.b-wrap{ display: flex; gap: var(--sp-4); height: 100%; }
.b-left{ width: 596px; flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.b-left-head, .b-right-head{ flex: none; height: 26px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-label); color: var(--text-2); }
.b-left-head .strong{ color: var(--st-red); font-weight: 600; }
.b-left .tbl{ flex: 1; padding: 6px 8px 6px 12px; gap: 3px; }
.b-left .dish{ line-height: 1.15; }
.b-right{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.b-cols{ flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-col{ display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.b-col .tbl{ flex: 1; padding: 10px 12px 10px 16px; }
.b-cols .tbl-no{ font-size: 42px; }
.b-cols .tbl-meta{ font-size: 20px; }
.b-cols .dish{ font-size: 22px; gap: 4px; }
.b-cols .station, .b-cols .step-name, .b-cols .flags i{ font-size: 20px; }
.b-cols .dish-time{ font-size: 20px; width: 50px; }
.b-cols .badge{ font-size: 20px; }
.b-right-head .pager-mini{ margin-left: auto; color: var(--text-3); }
.b-right-head .pager-mini b{ color: var(--text); }

/* ===================== 详情屏 ===================== */
.panel{ background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.detail-wrap{ display: flex; gap: var(--sp-5); height: 100%; }
.table-panel{ width: 430px; flex: none; padding: 16px 22px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tp-head{ display: flex; align-items: center; justify-content: space-between; }
.tp-order{ font-size: var(--fs-label); color: var(--text-3); }
.tp-hero{ display: flex; align-items: center; justify-content: space-between; }
.tp-no{ font-size: var(--fs-mega); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.tp-meta{ font-size: var(--fs-label); color: var(--text-2); }
.tp-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-stat{ background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px; }
.tp-stat span{ display: block; font-size: var(--fs-label); color: var(--text-3); }
.tp-stat b{ font-size: 40px; font-weight: 650; line-height: 1.15; }
.tp-stat b small{ font-size: var(--fs-label); font-weight: 400; color: var(--text-2); margin-left: 3px; }
.tp-stat b.is-late{ color: var(--st-red); }
.tp-rule{ height: 1px; background: var(--line); }
.tp-done-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.tp-done-head > span:first-child{ font-size: var(--fs-label); color: var(--text-2); }
.tp-done-num{ font-size: var(--fs-label); color: var(--text-3); }
.tp-done-num b{ font-size: 40px; font-weight: 650; color: var(--text); line-height: 1.15; }
.tp-done .bar{ height: 10px; }
.tp-scale{ display: flex; justify-content: space-between; margin-top: 7px; font-size: var(--fs-label); color: var(--text-3); }
.tp-scale span{ display: inline-flex; align-items: center; gap: 5px; }
.tp-scale i{ width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.tp-chips{ display: flex; gap: 6px; flex-wrap: wrap; }
.tp-seq-title{ font-size: var(--fs-label); color: var(--text-3); margin-bottom: 4px; }
.seq-row{ display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 3px 0; }
.seq-name{ font-size: var(--fs-dish); font-weight: 600; }
.seq-name small{ font-size: var(--fs-label); font-weight: 400; color: var(--text-3); margin-left: 6px; }
.seq-val{ font-size: var(--fs-label); color: var(--text-2); align-self: center; }
.seq-row .bar{ grid-column: 1 / -1; height: 5px; margin-top: 3px; }
.tp-foot{ margin-top: auto; font-size: var(--fs-label); color: var(--text-3); border-top: 1px solid var(--line); padding-top: 8px; line-height: 1.4; }

.detail-panel{ flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 24px; }
.dp-head{ display: flex; align-items: center; gap: var(--sp-3); height: 36px; flex: none; }
.dp-title{ font-size: var(--fs-lead); font-weight: 600; }
.dp-sub{ font-size: var(--fs-label); color: var(--text-3); }
.dp-tags{ margin-left: auto; display: flex; align-items: center; gap: 8px; }
.row{ display: grid; grid-template-columns: 40px minmax(220px, 320px) minmax(0, 1fr) 96px 84px; align-items: center; gap: 12px; }
.col-head{ flex: none; height: 30px; font-size: var(--fs-label); color: var(--text-3); border-bottom: 1px solid var(--line); }
.col-head span:nth-child(4), .col-head span:nth-child(5){ text-align: right; }
.groups{ flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 4px; min-height: 0; }
.group-head{ height: 38px; display: flex; align-items: center; gap: 10px; }
.group-dot{ width: 6px; height: 20px; border-radius: 3px; background: var(--st-green); }
.group-dot.is-red{ background: var(--st-red); }
.group-name{ font-size: var(--fs-dish); font-weight: 650; }
.group-range{ font-size: var(--fs-label); color: var(--text-3); }
.group-sum{ margin-left: auto; font-size: var(--fs-label); color: var(--text-2); }
.group-sum b{ color: var(--text); }
.dish-row{ height: 54px; border-bottom: 1px solid rgba(35, 51, 62, 0.7); }
.row-no{ width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-label); color: var(--text-2); background: var(--surface-1); border: 1px solid var(--line); }
.dish-row.is-late .row-no{ color: var(--st-red); border-color: var(--st-red-line); background: var(--st-red-tint); }
.row-name{ font-size: var(--fs-body); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name small{ font-size: var(--fs-label); color: var(--text-3); font-weight: 400; margin-left: 8px; }
.row-name-wrap{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-name-wrap .flags i{ width: 20px; }
.row-stage{ display: flex; justify-content: flex-end; }
/* 详情：完整工序链，每段带耗时 */
.chain{ display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.step{
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  height: 44px; padding: 0 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  color: var(--text-3);
  background: transparent;
  overflow: hidden;
}
.step em{ font-style: normal; font-size: var(--fs-label); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step i{ font-style: normal; font-size: var(--fs-label); line-height: 1.2; color: var(--text-3); white-space: nowrap; }
.step.done{ color: var(--st-green); border-color: var(--st-green-line); background: var(--st-green-tint); }
.step.done i{ color: var(--text-2); }
.step.cur{ color: #04202B; background: var(--st-blue); border-color: var(--st-blue); font-weight: 700; }
.step.cur i{ color: rgba(4, 32, 43, 0.85); font-weight: 400; }
.step.cur.is-late{ background: var(--st-red); border-color: var(--st-red); color: #2A0808; }
.step.cur.is-late i{ color: rgba(42, 8, 8, 0.85); }
.row-time{ font-size: var(--fs-dish); color: var(--text-2); text-align: right; }
.dish-row.is-late .row-time{ color: var(--st-red); font-weight: 600; }
.dish-row.is-done .row-name{ color: var(--text-2); }
.dish-row.is-done .row-time{ color: var(--text-3); }
.row-at{ font-size: var(--fs-label); color: var(--text-3); text-align: right; }
.mini{ display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-label); padding: 0 6px; line-height: 1.5; border-radius: var(--r-xs); border: 1px solid var(--st-gray-line); color: var(--st-gray); background: var(--st-gray-tint); white-space: nowrap; }
.mini.is-red{ color: var(--st-red); background: var(--st-red-tint); border-color: var(--st-red-line); }
.mini.is-amber{ color: var(--st-amber); background: var(--st-amber-tint); border-color: var(--st-amber-line); }
.mini .ic{ width: 14px; height: 14px; }

/* ===================== 状态样例屏 ===================== */
.rule-panel{ width: 460px; flex: none; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.rule-title{ font-size: var(--fs-lead); font-weight: 600; }
.rule-sub{ font-size: var(--fs-label); color: var(--text-3); line-height: 1.5; }
.rule-group{ border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.rule-group-title{ font-size: var(--fs-label); color: var(--text-2); font-weight: 600; }
.rule-line{ display: flex; align-items: center; gap: 10px; font-size: var(--fs-label); color: var(--text-2); line-height: 1.5; }
.rule-line .chip-like{ flex: none; }
.rule-line .badge{ font-size: var(--fs-label); }
.rule-note{ font-size: var(--fs-label); color: var(--text-3); line-height: 1.5; }
.sample-grid{ flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sp-4); }
.sample-grid .tbl{ padding: 12px 14px 12px 18px; gap: 6px; }
.sample-grid .tbl-no{ font-size: 56px; }
.sample-grid .dish{ font-size: var(--fs-body); line-height: 1.2; gap: 6px; }
.sample-grid .dish-time{ font-size: var(--fs-label); width: 46px; }
.sample-grid .sample-grid .station{ font-size: var(--fs-label); }
.sample-grid .d-tag{ font-size: var(--fs-label); padding: 0 5px; }
.sample-grid .tbl-meta{ font-size: var(--fs-label); }
.sample-grid .tbl-done{ font-size: var(--fs-label); }
.sample-caption{ font-size: var(--fs-label); color: var(--text-3); margin-top: 2px; }

/* ===================== 只看超时（大卡） ===================== */
.timeout-grid{ display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 14px; height: 100%; }
.timeout-grid .tbl{ padding: 14px 16px 14px 22px; gap: 8px; }
.timeout-grid .tbl-no{ font-size: 44px; line-height: 1.2; }
.timeout-grid .tbl-zone{ font-size: var(--fs-label); padding: 1px 7px; }
.timeout-grid .badge{ font-size: var(--fs-label); padding: 2px 9px; }
.timeout-grid .badge .ic{ width: 18px; height: 18px; }
.timeout-grid .tbl-meta{ font-size: var(--fs-label); }
.timeout-grid .prog-num, .timeout-grid .prog-rest{ font-size: var(--fs-label); }
.timeout-grid .prog-num b{ font-size: var(--fs-body); }
.timeout-grid .dish{ font-size: var(--fs-sm); line-height: 1.2; gap: 5px; }
.timeout-grid .station{ font-size: var(--fs-label); }
.timeout-grid .d-tag{ font-size: var(--fs-label); padding: 0 5px; }
.timeout-grid .call-time{ font-size: var(--fs-label); width: 88px; }
.timeout-grid .timeout-grid .dishes{ gap: 7px; flex: 1; justify-content: space-between; }

/* ===================== 详情：逐菜工序卡 ===================== */
.dish-board{ flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; padding-top: 4px; }
.d-card{
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--st-green);
  border-radius: var(--r-md);
  overflow: hidden;
}
.d-card.is-late{ border-left-color: var(--st-red); background: linear-gradient(180deg, rgba(242, 99, 95, 0.07), rgba(242, 99, 95, 0) 60%), var(--surface-2); }
.d-head{ display: flex; align-items: center; gap: 6px; }
.d-seq{ width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-label); color: var(--text-2); background: var(--surface-1); border: 1px solid var(--line); }
.d-card.is-late .d-seq{ color: var(--st-red); border-color: var(--st-red-line); background: var(--st-red-tint); }
.d-name{ flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-station{ flex: none; font-size: var(--fs-label); color: var(--text-3); }
.d-meta{ display: flex; align-items: center; gap: 5px; font-size: var(--fs-label); color: var(--text-3); white-space: nowrap; }
.d-meta i{ font-style: normal; color: var(--text-3); }
.d-meta .d-late{ color: var(--st-red); font-weight: 600; }
.d-steps{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.s-row{ display: flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 4px; border-radius: var(--r-xs); font-size: var(--fs-label); line-height: 1.2; }
.s-name{ flex: 1; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-t{ flex: none; color: var(--text-3); white-space: nowrap; }
.s-tag{ flex: none; color: var(--st-red); font-weight: 650; }
.s-row.done .s-name{ color: var(--st-green); }
.s-row.cur{ background: var(--st-blue-tint); }
.s-row.cur .s-name{ color: var(--text); font-weight: 600; }
.s-row.cur .s-t{ color: var(--st-blue); }
.s-row.late{ background: var(--st-red-tint); box-shadow: inset 2px 0 0 var(--st-red); }
.s-row.late .s-name, .s-row.late .s-t{ color: var(--st-red); font-weight: 600; }
.s-row.todo .s-name, .s-row.todo .s-t{ color: var(--text-3); }
