/* ================================
   业务工作台 · 暗色霓虹数据大屏
   规范：pipelines/ai-office/ref/workbench-style.md
   青 #00E5FF 进行中 / 绿 #39FF14 完成 / 黄 等用户 / 红 阻塞 / 品红 超预算
   ================================ */

/* ---- 视图切换标签（办公室 / 业务流程） ---- */
.view-tabs {
  display: flex;
  gap: 6px;
  margin: -6px 0 14px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border-subtle);
}

.view-tab {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  min-height: 40px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.view-tab:hover {
  color: var(--text-primary);
}

.view-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2d3834, #4d5d56);
  box-shadow: 0 2px 8px rgba(24, 30, 27, 0.22);
}

.view-tab:focus-visible {
  outline: 2px solid #00b8d4;
  outline-offset: 2px;
}

/* 进入业务流程后整页转暗：直接重写变量，顶栏/按钮自动跟随 */
body.is-flow-view {
  --bg-page: #0b0f19;
  --bg-surface: rgba(255, 255, 255, 0.06);
  --bg-surface-soft: rgba(255, 255, 255, 0.04);
  --bg-topbar: rgba(11, 15, 25, 0.82);
  --border-subtle: rgba(0, 229, 255, 0.22);
  --border-strong: rgba(0, 229, 255, 0.4);
  --text-primary: #e8f6ff;
  --text-secondary: #9fb4c7;
  --text-muted: #6f8499;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 0, 255, 0.08), transparent 60%), #0b0f19;
}

body.is-flow-view .page-shell {
  max-width: 1480px;
}

body.is-flow-view .topbar {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.10);
}

body.is-flow-view .view-tabs {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.25);
}

body.is-flow-view .view-tab.is-active {
  color: #04121a;
  background: linear-gradient(135deg, #00e5ff, #39ff14);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

body.is-flow-view #attention-jump {
  display: none !important;
}

/* ---- 工作台外壳 ---- */
.wb {
  color: #e8f6ff;
  font-size: 14px;
}

.wb-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08) inset;
}

.wb-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.wb-title-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 10px #39ff14;
  animation: wb-pulse 1.8s ease-in-out infinite;
}

.wb-source {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

.wb-source.mode-sample {
  border-color: rgba(255, 214, 10, 0.55);
  color: #ffd60a;
}

.wb-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wb-stat b {
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px currentColor;
}

.wb-stat span {
  font-size: 11px;
  color: #9fb4c7;
}

.wb-stat.tone-all b { color: #e8f6ff; }
.wb-stat.tone-run b { color: #00e5ff; }
.wb-stat.tone-wait b { color: #ffd60a; }
.wb-stat.tone-block b { color: #ff4d5e; }
.wb-stat.tone-over b { color: #ff00ff; }
.wb-stat.tone-done b { color: #39ff14; }

.wb-clock {
  font-family: var(--font-mono);
  color: #9fb4c7;
  font-size: 13px;
}

.wb-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.wb-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.18);
}

.wb-side button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 56px;
  padding: 6px 2px;
  background: transparent;
  color: #9fb4c7;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.18s;
}

.wb-side button span { font-size: 20px; }
.wb-side button em { font-style: normal; font-size: 11px; }

.wb-side button:hover,
.wb-side button:focus-visible {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  outline: none;
}

.wb-main { min-width: 0; }

.wb-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 10, 0.45);
  background: rgba(255, 214, 10, 0.08);
  color: #ffe58a;
}

.wb-notice.is-loading {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
  color: #9eecff;
}

.wb-lanes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- 泳道模块卡 ---- */
.wb-lane {
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  scroll-margin-top: 96px;
}

.wb-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wb-lane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wb-lane-title h3 {
  margin: 0;
  font-size: 16px;
  color: #e8f6ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}

.wb-lane-no {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 6px;
  color: #04121a;
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.wb-lane-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9fb4c7;
  font-size: 12px;
}

.wb-lane-count { display: flex; flex-direction: column; align-items: flex-end; }
.wb-attn-n { color: #ffd60a; font-weight: 600; }

.wb-ring .bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 4; }
.wb-ring .fg {
  fill: none;
  stroke: #39ff14;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 3px #39ff14);
  transition: stroke-dashoffset 0.8s ease;
}
.wb-ring text { fill: #e8f6ff; font-size: 10px; font-family: var(--font-mono); }

/* ---- 流程图：节点 + 连线 ---- */
.wb-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}

.wb-node {
  position: relative;
  flex: 1 1 124px;
  min-width: 124px;
  max-width: 230px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: wb-breathe 3.2s ease-in-out infinite;
}

.wb-node.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  animation: none;
  opacity: 0.72;
}

.wb-node.has-attention {
  border-color: rgba(255, 214, 10, 0.7);
}

.wb-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb-node-head h4 {
  margin: 0;
  font-size: 14px;
  color: #e8f6ff;
}

.wb-node-no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #00e5ff;
  opacity: 0.85;
}

.wb-empty-node {
  color: #6f8499;
  font-size: 12px;
  padding: 14px 0 10px;
  text-align: center;
}

.wb-link {
  position: relative;
  flex: 0 0 32px;
  align-self: center;
  width: 32px;
  height: 40px;
}

.wb-link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wb-link svg.v { display: none; }

.wb-link path {
  fill: none;
  stroke: rgba(0, 229, 255, 0.35);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.6));
}

.wb-link.is-live path {
  stroke: #00e5ff;
  animation: wb-dash 1.2s linear infinite;
}

.wb-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14, 0 0 14px rgba(57, 255, 20, 0.7);
  offset-path: path("M0 20 C 11 4, 21 36, 32 20");
  offset-rotate: 0deg;
  opacity: 0;
}

.wb-link.is-live .wb-particle {
  animation: wb-flow 1.8s linear infinite;
}
.wb-link.is-live .wb-particle.p2 { animation-delay: 0.9s; background: #00e5ff; box-shadow: 0 0 8px #00e5ff; }

/* ---- 阶段卡 ---- */
.wb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wb-card.is-compact {
  padding: 8px 10px;
  min-width: 0;
}

.wb-card.tone-run { border-color: rgba(0, 229, 255, 0.55); box-shadow: 0 0 12px rgba(0, 229, 255, 0.2); }
.wb-card.tone-done { border-color: rgba(57, 255, 20, 0.5); box-shadow: 0 0 10px rgba(57, 255, 20, 0.14); }
.wb-card.tone-ready { border-color: rgba(120, 190, 255, 0.4); }
.wb-card.tone-review { border-color: rgba(190, 120, 255, 0.55); }

/* 高亮：等用户（黄脉冲）/ 阻塞（红）/ 超预算（品红闪边） */
.wb-card.is-waiting {
  border-color: #ffd60a;
  background: rgba(255, 214, 10, 0.08);
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.45);
  animation: wb-glow-yellow 1.6s ease-in-out infinite;
}
.wb-card.is-blocked {
  border-color: #ff4d5e;
  background: rgba(255, 77, 94, 0.1);
  box-shadow: 0 0 18px rgba(255, 77, 94, 0.55);
  animation: wb-glow-red 1.2s ease-in-out infinite;
}
.wb-card.is-over {
  border-color: #ff00ff;
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.55);
  animation: wb-glow-magenta 1.2s ease-in-out infinite;
}

/* 可能过期（stale.js）：只置灰并标注，不改状态；灰度压过高亮色，停掉脉冲 */
.wb-card.is-stale {
  filter: grayscale(0.85);
  opacity: 0.68;
  animation: none;
  box-shadow: none;
}
.wb-chip.wb-stale {
  color: #c3ccd6;
  border-color: rgba(195, 204, 214, 0.65);
  border-style: dashed;
}
.wb-card-foot time.is-stale { color: #c3ccd6; text-decoration: underline dotted; }
li.wb-card.is-stale,
.wb-more li.is-stale { opacity: 0.6; }

.wb-alert {
  position: absolute;
  top: -9px;
  left: 10px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 999px;
  color: #fff;
  background: #ff4d5e;
  box-shadow: 0 0 8px #ff4d5e;
}
.wb-card.is-over .wb-alert { background: #ff00ff; box-shadow: 0 0 8px #ff00ff; }
.wb-alert.wait { color: #1a1400; background: #ffd60a; box-shadow: 0 0 8px #ffd60a; }

.wb-card-top { display: flex; align-items: center; min-height: 28px; }

.wb-bot { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wb-bot-slot { display: inline-flex; width: 26px; height: 26px; flex: none; }
.wb-bot-slot img,
.wb-bot-slot .avatar-placeholder,
.wb-bot-slot .wb-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  font-size: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.wb-bot-name { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-bot-status { font-size: 13px; }

.wb-card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #00e5ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-card-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.wb-chip {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cfe3f2;
}
.wb-chip.tone-run { color: #00e5ff; border-color: rgba(0, 229, 255, 0.6); }
.wb-chip.tone-done { color: #39ff14; border-color: rgba(57, 255, 20, 0.6); }
.wb-chip.tone-wait { color: #ffd60a; border-color: rgba(255, 214, 10, 0.7); }
.wb-chip.tone-block { color: #ff4d5e; border-color: rgba(255, 77, 94, 0.7); }
.wb-chip.tone-review { color: #c58bff; border-color: rgba(190, 120, 255, 0.6); }
.wb-chip.gate.is-over { color: #ff7bff; border-color: #ff00ff; }

.wb-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  font-size: 11px;
  color: #7f95aa;
}

.wb-more { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wb-more li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb4c7;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.wb-more li em { font-style: normal; color: #6f8499; }
.wb-more-n { justify-content: center; }

/* ---- Agent 光球 ---- */
.wb-orb {
  position: absolute;
  top: -13px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--orb, #00e5ff) 38%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow: 0 0 12px var(--orb, #00e5ff), 0 0 24px var(--orb, #00e5ff);
  animation: wb-orb-float 2.6s ease-in-out infinite;
}
.wb-orb.tone-run, .wb-orb.tone-review, .wb-orb.tone-ready { --orb: #00e5ff; }
.wb-orb.tone-review { --orb: #c58bff; }
.wb-orb.tone-done { --orb: #39ff14; }
.wb-orb.tone-wait { --orb: #ffd60a; }
.wb-orb.tone-block { --orb: #ff4d5e; }

.wb-orb .eye {
  position: absolute;
  top: 10px;
  width: 4px;
  height: 4px;
  background: #06222b;
  border-radius: 1px;
}
.wb-orb .eye.l { left: 7px; }
.wb-orb .eye.r { right: 7px; }
.wb-orb .mouth {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 10px;
  height: 5px;
  margin-left: -5px;
  border-bottom: 2px solid #06222b;
  border-radius: 0 0 10px 10px;
}
.wb-orb.face-flat .mouth { height: 0; border-radius: 0; bottom: 9px; }
.wb-orb.face-dead .eye { height: 2px; width: 6px; top: 12px; transform: rotate(45deg); }
.wb-orb.face-dead .eye.r { transform: rotate(-45deg); }
.wb-orb.face-dead .mouth { height: 0; border-radius: 0; bottom: 8px; border-bottom-color: #3a0008; }
.wb-orb.face-smile .eye { animation: wb-blink 4.5s infinite; }

/* ---- 其它区块 ---- */
.wb-extra { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.wb-extra h5 { margin: 0 0 8px; font-size: 12px; color: #9fb4c7; font-weight: 500; }
.wb-extra-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 10px;
}
.wb-extra .wb-card.is-compact,
.wb-extra-list .wb-card.is-compact { min-width: 0; }
.wb-ok { margin: 0; color: #39ff14; text-shadow: 0 0 8px rgba(57, 255, 20, 0.6); }

.wb-reserved {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #9fb4c7;
}
.wb-reserved p { margin: 0; }
.wb-reserved-tag {
  padding: 2px 10px;
  border-radius: 999px;
  color: #ffd60a;
  border: 1px solid rgba(255, 214, 10, 0.6);
  font-size: 12px;
}

/* ---- 样例数据模块 ---- */
.wb-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.wb-widget {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wb-widget header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wb-widget h4 { margin: 0; font-size: 14px; color: #e8f6ff; flex: 1; }
.wb-sample-tag {
  font-size: 11px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffd60a;
  border: 1px solid rgba(255, 214, 10, 0.55);
}
.wb-spark, .wb-flights { width: 100%; height: auto; display: block; }
.wb-spark .line { fill: none; stroke: #00e5ff; stroke-width: 2; filter: drop-shadow(0 0 4px #00e5ff); }
.wb-spark .fill { fill: url(#wbSparkFill); }
.wb-spark rect.up { fill: rgba(57, 255, 20, 0.55); }
.wb-spark rect.down { fill: rgba(255, 77, 94, 0.55); }
.wb-flights .arc { fill: none; stroke-width: 1.4; stroke-dasharray: 3 3; opacity: 0.85; animation: wb-dash 1.5s linear infinite; }
.wb-flights .city { fill: #00e5ff; }
.wb-flights .city.home { fill: #ff4d5e; filter: drop-shadow(0 0 4px #ff4d5e); }
.wb-flights .lbl { fill: #9fb4c7; font-size: 8px; }
.wb-owner-row {
  display: grid;
  grid-template-columns: 84px 1fr 24px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 12px;
  color: #cfe3f2;
}
.wb-owner-row i {
  height: 6px;
  width: var(--w, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, #00e5ff, #39ff14);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}
.wb-owner-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- 动画 ---- */
@keyframes wb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes wb-breathe {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 229, 255, 0.15); }
  50% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.35); }
}
@keyframes wb-dash { to { stroke-dashoffset: -16; } }
@keyframes wb-flow {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes wb-orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes wb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes wb-glow-yellow { 0%, 100% { box-shadow: 0 0 8px rgba(255, 214, 10, 0.3); } 50% { box-shadow: 0 0 22px rgba(255, 214, 10, 0.75); } }
@keyframes wb-glow-red { 0%, 100% { box-shadow: 0 0 8px rgba(255, 77, 94, 0.35); } 50% { box-shadow: 0 0 24px rgba(255, 77, 94, 0.85); } }
@keyframes wb-glow-magenta { 0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 255, 0.35); } 50% { box-shadow: 0 0 24px rgba(255, 0, 255, 0.85); } }

@media (prefers-reduced-motion: reduce) {
  .wb *,
  .wb *::before,
  .wb *::after {
    animation: none !important;
  }
  .wb-particle { display: none; }
}

/* ---- 平板 / 手机竖屏：侧栏变顶部横条，流程图改竖排 ---- */
@media (max-width: 900px) {
  .wb-body { grid-template-columns: 1fr; }
  .wb-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .wb-side button { flex: 1 0 64px; min-height: 52px; }
}

@media (max-width: 640px) {
  .view-tabs { width: 100%; margin-top: 0; }
  .view-tab { flex: 1; padding: 8px 10px; }
  .wb-statusbar { padding: 10px 12px; }
  .wb-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .wb-stat { min-width: 0; }
  .wb-clock { width: 100%; }
  .wb-lane { padding: 12px; }

  .wb-flow {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
  }
  .wb-node { flex: none; min-width: 0; max-width: none; width: 100%; }
  .wb-link { flex: none; width: 40px; height: 48px; align-self: center; margin: 2px 0; }
  .wb-link svg.h { display: none; }
  .wb-link svg.v { display: block; }
  .wb-particle { offset-path: path("M20 0 C 4 16, 36 32, 20 48"); }
  .wb-extra-list { grid-template-columns: 1fr; }
  .wb-widgets { grid-template-columns: 1fr; }
}
