/* ============================================================================
   MILLVATO — DASHBOARD ("Mill Control Room")
   Builds on theme.css tokens + primitives. Dark, dense, alive.
   ============================================================================ */

body { overflow-y: scroll; }

/* layered, palette-rich ambient wash bleeding down from the top of the canvas:
   signal-green crown, grain-amber top-right, and faint blue/violet pools low-left
   so the whole control room reads as lit by its own data, not flat black. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 50% at 50% -8%, rgba(0,224,138,0.085), transparent 60%),
    radial-gradient(60% 42% at 100% 0%, rgba(255,178,62,0.05), transparent 55%),
    radial-gradient(55% 45% at 0% 92%, rgba(91,200,255,0.04), transparent 60%),
    radial-gradient(50% 40% at 88% 96%, rgba(185,140,255,0.035), transparent 60%);
}

.dash { position: relative; z-index: 1; padding-bottom: 56px; }

/* ============================================================================
   TOP BAR
   ============================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(11,15,13,0.96), rgba(11,15,13,0.82));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 72px; padding-top: 12px; padding-bottom: 12px;
}
.topbar__hair {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-2) 18%, var(--hair-2) 82%, transparent);
}
.topbar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__mark { filter: drop-shadow(0 0 14px rgba(0,224,138,0.35)); flex: none; }
.topbar__mill { min-width: 0; }
.topbar__name-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.topbar__name {
  font-size: clamp(19px, 2.1vw, 27px); letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__live { height: 26px; padding: 0 11px; font-size: 11px; gap: 6px; }
.pill__sig {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.topbar__place {
  margin: 3px 0 0; font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted);
  text-transform: uppercase;
}

.topbar__clock { text-align: right; flex: none; }
.clock__time {
  font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1;
  letter-spacing: 0.01em; color: var(--text);
  font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
}
.clock__sec { font-size: 0.5em; color: var(--green); margin-left: 2px; vertical-align: 0.18em; }
.clock__sub {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  margin-top: 5px; font-size: 12px; color: var(--muted);
}
.clock__refresh { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); }
.clock__refresh svg { color: var(--green); opacity: .8; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   LOAD REVEALS (staggered)
   ============================================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================================
   HEARTBEAT STRIP
   ============================================================================ */
.heartbeat { margin-top: 22px; }
.heartbeat__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.hb {
  --hbc: var(--muted);                  /* per-metric accent (set per card) */
  position: relative; overflow: hidden;
  padding: 18px 20px 16px;
  background:
    radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--hbc) 9%, transparent), transparent 52%),
    radial-gradient(120% 120% at 100% 100%, rgba(255,255,255,0.022), transparent 55%),
    var(--card);
  border: 1px solid var(--hair); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* a faint accent hairline at the top edge of each card */
.hb::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hbc) 55%, transparent), transparent);
  opacity: .55;
}
.hb:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--hbc) 30%, var(--hair-2));
  box-shadow: var(--shadow), 0 16px 44px -28px color-mix(in srgb, var(--hbc) 60%, transparent);
}
.hb--received  { --hbc: var(--blue); }
.hb--packed    { --hbc: var(--green); }
.hb--delivered { --hbc: var(--amber); }
.hb__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hb__ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--hbc) 12%, rgba(255,255,255,0.02));
  color: color-mix(in srgb, var(--hbc) 85%, var(--text));
  border: 1px solid color-mix(in srgb, var(--hbc) 26%, var(--hair));
}
.hb__ico svg { width: 17px; height: 17px; }
.hb__label { font-size: 11px; }
.hb__num {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1;
  color: var(--text); letter-spacing: -0.02em;
  font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
  transition: text-shadow .45s var(--ease-out), color .45s var(--ease-out);
}
/* brief soft glow pulse when a live value updates */
.hb__num.is-pulse { animation: hbPulse 1.1s var(--ease-out); }
@keyframes hbPulse {
  0%   { text-shadow: 0 0 0 transparent; }
  22%  { text-shadow: 0 0 18px color-mix(in srgb, var(--hbc) 70%, transparent); }
  100% { text-shadow: 0 0 0 transparent; }
}
.hb__unit { font-size: 13px; color: var(--muted); margin-left: 6px; letter-spacing: 0.04em; }
.hb__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.hb__spark { width: 86px; height: 28px; flex: none; overflow: visible; }
.hb__pace { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.hb__pace svg { width: 13px; height: 13px; }
.hb__pace--up { color: var(--green); }
.hb__pace--down { color: var(--red); }

/* the emphasized closing card — a deeper, layered green glow with a slow breathe */
.hb--accent {
  --hbc: var(--green);
  background:
    radial-gradient(130% 135% at 100% 0%, rgba(0,224,138,0.18), transparent 56%),
    radial-gradient(120% 120% at 0% 100%, rgba(0,224,138,0.07), transparent 55%),
    var(--card-2);
  border-color: rgba(0,224,138,0.32);
  box-shadow:
    inset 0 0 0 1px rgba(0,224,138,0.07),
    inset 0 0 40px -22px rgba(0,224,138,0.6),
    0 20px 56px -28px rgba(0,224,138,0.5);
  animation: hbAccentBreathe 6s var(--ease) infinite;
}
@keyframes hbAccentBreathe {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(0,224,138,0.07), inset 0 0 40px -22px rgba(0,224,138,0.55), 0 20px 56px -28px rgba(0,224,138,0.42); }
  50%      { box-shadow: inset 0 0 0 1px rgba(0,224,138,0.12), inset 0 0 52px -20px rgba(0,224,138,0.8), 0 24px 64px -26px rgba(0,224,138,0.6); }
}
.hb--accent::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--green), var(--green-2), transparent);
  box-shadow: 0 0 16px -2px var(--green-glow);
}
.hb--accent .hb__ico { background: rgba(0,224,138,0.14); color: var(--green); border-color: rgba(0,224,138,0.34); }
.hb--accent .hb__num { color: var(--green); }
.hb--accent .hb__label { color: var(--green); }
/* leading dot that rides the sparkline draw-in */
.hb__spark .spark-dot { filter: drop-shadow(0 0 4px currentColor); }

/* ============================================================================
   MAIN GRID
   ============================================================================ */
.grid {
  margin-top: var(--gap);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--gap);
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* ============================================================================
   SECTION SHELL
   ============================================================================ */
.sect {
  padding: 18px 20px 20px;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255,255,255,0.022), transparent 50%),
    radial-gradient(120% 140% at 0% 0%, rgba(0,224,138,0.04), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.025);
}
.sect__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sect__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sect__ico { color: var(--muted); flex: none; }
.sect--attention .sect__ico { color: var(--amber); }
.sect--activity .sect__ico { color: var(--green); }
/* open-lots tally reads as a secondary (violet) figure, distinct from the
   green/amber flow numbers around it */
.sect--activity .sect__hint { color: var(--violet); opacity: .92; }
.sect__count {
  min-width: 28px; height: 26px; padding: 0 9px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  background: rgba(255,178,62,0.12); color: var(--amber);
  border: 1px solid rgba(255,178,62,0.3);
}
.sect__hint { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================================
   NEEDS ATTENTION
   ============================================================================ */
.sect--attention {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,178,62,0.05), transparent 45%),
    var(--panel);
}
.sect--attention.accent-top::before {
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.attention__list { display: flex; flex-direction: column; gap: 12px; }
.att {
  position: relative; display: flex; gap: 14px;
  padding: 14px 16px 14px 18px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sev) 7%, transparent), transparent 30%),
    var(--card);
  border: 1px solid var(--hair); border-radius: var(--r-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.att::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--sev, var(--muted)), color-mix(in srgb, var(--sev) 55%, transparent));
  box-shadow: 0 0 16px -1px var(--sev, transparent);
}
/* critical + warn edges breathe gently so they read as "watch me" */
.att--critical::before { animation: attEdge 2.6s var(--ease) infinite; }
.att--warn::before     { animation: attEdge 3.4s var(--ease) infinite; }
@keyframes attEdge {
  0%, 100% { box-shadow: 0 0 12px -2px var(--sev); }
  50%      { box-shadow: 0 0 22px 0 var(--sev); }
}
.att:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--sev) 30%, var(--hair-2)); background: var(--card-2); }

/* staged entrance for attention cards */
.att--reveal { opacity: 0; transform: translateY(10px); }
.att--reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.att__ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--sev) 14%, transparent);
  color: var(--sev); border: 1px solid color-mix(in srgb, var(--sev) 30%, transparent);
}
.att__ico svg { width: 18px; height: 18px; }
.att__body { min-width: 0; flex: 1; }
.att__title { font-weight: 700; font-size: 15.5px; color: var(--text); line-height: 1.25; }
.att__detail { margin-top: 3px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.att__meta {
  margin-top: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--muted-2); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
}
.att__sevdot { width: 6px; height: 6px; border-radius: 50%; background: var(--sev); flex: none; }
.att--critical { --sev: var(--red); }
.att--warn { --sev: var(--amber); }
.att--info { --sev: var(--blue); }

/* ============================================================================
   DAYS OF COVER
   ============================================================================ */
.cover__list { display: flex; flex-direction: column; gap: 14px; }
.cover__row { display: grid; grid-template-columns: 1fr; gap: 7px; }
.cover__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cover__label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.cover__label--lead { color: var(--text); }
.cover__days { font-size: 14px; font-weight: 600; }
.cover__days .u { font-size: 11px; color: var(--muted); margin-left: 2px; }
.cover__bar {
  position: relative; height: 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05); overflow: hidden;
}
.cover__safety {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--hair-2);
}
.cover__safety::after {
  content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, var(--muted) 0 3px, transparent 3px 6px);
  width: 2px;
}
.cover__fill {
  position: relative; height: 100%; border-radius: var(--r-pill); width: 0;
  transition: width 1.1s var(--ease-out);
}
/* a soft moving sheen rides each fill so the bars feel "flowing", not static */
.cover__fill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  background-size: 220% 100%; background-position: 200% 0;
  opacity: .5; animation: coverSheen 3.6s var(--ease) infinite;
}
@keyframes coverSheen { to { background-position: -120% 0; } }
.cover__fill--low {
  background: linear-gradient(90deg, var(--red), var(--red-2));
  box-shadow: 0 0 14px -2px var(--red-glow);
  animation: coverPulseLow 2.2s var(--ease) infinite;
}
@keyframes coverPulseLow {
  0%, 100% { box-shadow: 0 0 12px -3px var(--red-glow); }
  50%      { box-shadow: 0 0 20px 0 var(--red-glow); }
}
.cover__fill--warn { background: linear-gradient(90deg, var(--amber), var(--amber-2)); box-shadow: 0 0 12px -4px var(--amber-glow); }
.cover__fill--ok { background: linear-gradient(90deg, var(--green), var(--green-2)); box-shadow: 0 0 12px -5px var(--green-glow); }
.cover__fill--piling {
  background: repeating-linear-gradient(45deg, var(--amber) 0 7px, rgba(255,178,62,0.45) 7px 14px);
  animation: coverPulsePiling 2.8s var(--ease) infinite;
}
@keyframes coverPulsePiling {
  0%, 100% { box-shadow: 0 0 10px -4px var(--amber-glow); }
  50%      { box-shadow: 0 0 22px -1px var(--amber-glow); }
}
/* the sheen would fight the diagonal hatch; piling rows skip it */
.cover__fill--piling::after { display: none; }
.cover__sub {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.cover__tag {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1px 7px; border-radius: var(--r-pill);
}
.cover__tag--low { color: var(--red); background: rgba(255,92,92,0.1); border: 1px solid rgba(255,92,92,0.3); }
.cover__tag--piling { color: var(--amber); background: rgba(255,178,62,0.1); border: 1px solid rgba(255,178,62,0.3); }

/* ============================================================================
   7-DAY FLOW (stacked bars)
   ============================================================================ */
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend__i { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.legend__sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.week {
  position: relative;
  display: flex; gap: clamp(6px, 1.4vw, 16px); align-items: flex-end; height: 188px; padding-top: 6px;
}
/* thin baseline the bars sit on */
.week::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-2), transparent);
}
.week__col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; min-width: 0; }
.week__stack {
  width: 100%; max-width: 46px; display: flex; flex-direction: column; justify-content: flex-end;
  flex: 1; border-radius: 7px; overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.week__seg { width: 100%; height: 0; transition: height .95s var(--ease-out); }
.week__seg--received  { background: linear-gradient(180deg, var(--blue), color-mix(in srgb, var(--blue) 62%, transparent)); }
.week__seg--packed    { background: linear-gradient(180deg, var(--green-2), var(--green)); }
.week__seg--delivered { background: linear-gradient(180deg, var(--amber-2), var(--amber)); }
.week__col:hover .week__seg { filter: brightness(1.14) saturate(1.05); }
.week__col:hover .week__stack {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 22px -8px rgba(0,224,138,0.5);
}
.week__lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.week__col--today .week__lbl { color: var(--green); font-weight: 600; }
.week__col--today .week__stack { box-shadow: 0 0 0 1px rgba(0,224,138,0.38), 0 0 22px -6px var(--green-glow); }

/* ============================================================================
   TEMPO
   ============================================================================ */
.tempo__last { font-size: 11.5px; color: var(--muted); text-align: right; }
.tempo { display: flex; flex-direction: column; gap: 18px; }
.tempo__gauge { display: flex; flex-direction: column; gap: 9px; }
.tempo__grow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tempo__grow-l { font-size: 13px; color: var(--text-2); }
.tempo__delta { font-size: 17px; font-weight: 700; }
.tempo__bar {
  position: relative; height: 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05); overflow: visible;
}
.tempo__typical {
  position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-2);
  border-radius: 2px;
}
.tempo__typical::after {
  content: "typical"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap;
}
.tempo__actual {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--green), var(--green-2));
  box-shadow: 0 0 16px -4px var(--green-glow);
  transition: width 1.1s var(--ease-out);
}
.tempo__actual--behind { background: linear-gradient(90deg, var(--amber), var(--amber-2)); box-shadow: 0 0 16px -4px var(--amber-glow); }
.tempo__nums { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tempo__nums b { color: var(--text); font-weight: 600; }

.tempo__row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.tempo__cell {
  --tc: var(--blue);                    /* secondary accent for the cell */
  position: relative; overflow: hidden;
  padding: 12px 14px; border-radius: var(--r-sm);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tc) 8%, transparent), transparent 55%),
    var(--card);
  border: 1px solid var(--hair);
}
.tempo__cell--idle { --tc: var(--amber); }
.tempo__cell-h { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.tempo__cell-h svg { width: 14px; height: 14px; color: color-mix(in srgb, var(--tc) 80%, var(--muted)); flex: none; }
.tempo__cell--idle .tempo__cell-h svg { color: var(--amber); }
.tempo__cell-v { margin-top: 6px; font-size: 22px; font-weight: 600; color: var(--text); }
.tempo__cell-v.is-amber { color: var(--amber); }
.tempo__cell-v.is-green { color: var(--green); }
.tempo__cell-v small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.tempo__cell-s { margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.tempo__forecast {
  position: relative; padding: 14px; border-radius: var(--r-sm);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(0,224,138,0.07), transparent 55%),
    var(--card);
  border: 1px solid var(--hair); overflow: hidden;
  box-shadow: inset 0 0 30px -20px rgba(0,224,138,0.55);
}
.tempo__forecast-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tempo__forecast-l { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.tempo__forecast-v { font-size: 20px; font-weight: 600; color: var(--green); }
.tempo__forecast svg { width: 100%; height: 56px; margin-top: 4px; display: block; overflow: visible; }

/* ============================================================================
   YIELD
   ============================================================================ */
.yield { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.yield__arc { position: relative; width: 132px; height: 132px; flex: none; }
.yield__arc svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.yield__arc-bg { fill: none; stroke: rgba(255,255,255,0.06); }
.yield__arc-val {
  fill: none; stroke: var(--green); stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--green-glow));
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.yield__arc-target { fill: none; stroke: var(--amber); stroke-linecap: round; filter: drop-shadow(0 0 4px var(--amber-glow)); }
.yield__arc-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.yield__pct { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.yield__pct .s { font-size: 16px; color: var(--muted); }
.yield__lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.yield__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.yield__stat { display: flex; align-items: baseline; gap: 8px; }
.yield__stat-k { font-size: 12px; color: var(--muted); width: 64px; flex: none; }
.yield__stat-v { font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.yield__target { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.yield__target .sw { width: 10px; height: 2px; background: var(--amber); border-radius: 2px; }
.yield__flag {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: var(--r-sm); background: rgba(255,178,62,0.08);
  border: 1px solid rgba(255,178,62,0.25); font-size: 12.5px; color: var(--amber-2);
}
.yield__flag svg { width: 16px; height: 16px; color: var(--amber); flex: none; }
.yield__flag b { color: var(--amber); font-family: var(--mono); }
.yield__trend { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
.yield__trend-l { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; flex: none; }
.yield__trend svg { flex: 1; height: 34px; overflow: visible; }

/* ============================================================================
   FLOW BY PRODUCT TABLE
   ============================================================================ */
.items__scroll { overflow-x: auto; margin: 0 -4px; }
.items { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.items thead th {
  text-align: right; padding: 0 10px 10px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500; border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.items__th-name { text-align: left !important; }
.items__th-close { color: var(--green) !important; }
.items tbody td {
  padding: 11px 10px; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); text-align: right; color: var(--text-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.items tbody tr { transition: background .2s var(--ease); }
.items tbody tr:hover { background: rgba(255,255,255,0.025); }
.items tbody tr:last-child td { border-bottom: none; }
.items__name { text-align: left !important; }
.items__name .n { font-family: var(--body); font-weight: 600; color: var(--text); font-size: 14px; display: block; }
.items__name .b { font-size: 11px; color: var(--muted); letter-spacing: 0.03em; }
.items__close { color: var(--green) !important; font-weight: 600; position: relative; }
.items__zero { color: var(--muted-2); }

/* ============================================================================
   LIVE ACTIVITY
   ============================================================================ */
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--hair);
}
.act:last-child { border-bottom: none; }
.act__time { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; flex: none; }
.act__ico {
  width: 28px; height: 28px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--kc) 13%, transparent);
  color: var(--kc); border: 1px solid color-mix(in srgb, var(--kc) 26%, transparent);
}
.act__ico svg { width: 15px; height: 15px; }
.act--pack { --kc: var(--green); }
.act--deliver { --kc: var(--amber); }
.act--receive { --kc: var(--blue); }
.act__text { min-width: 0; }
.act__text .t { font-size: 14px; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act__text .w { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.act__qty { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--kc); text-align: right; flex: none; }

.act--enter { animation: actIn .66s var(--ease-out); }
@keyframes actIn {
  0%   { opacity: 0; transform: translateY(-12px); background: color-mix(in srgb, var(--kc) 12%, transparent); }
  55%  { background: color-mix(in srgb, var(--kc) 7%, transparent); }
  100% { opacity: 1; transform: none; background: transparent; }
}
/* the icon chip flares briefly as a new row lands */
.act--enter .act__ico { animation: actIcoFlare .9s var(--ease-out); }
@keyframes actIcoFlare {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kc) 45%, transparent); }
  100% { box-shadow: 0 0 0 7px transparent; }
}

/* staged entrance for the initial activity + dispatch rows on load */
.row--reveal { opacity: 0; transform: translateX(-8px); }
.row--reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

/* ============================================================================
   RECENT DISPATCHES
   ============================================================================ */
.sect--dispatch .sect__ico { color: var(--amber); }
.dispatch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.disp {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--hair);
}
.disp:last-child { border-bottom: none; }
.disp__sl {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--amber); flex: none;
  min-width: 46px; height: 26px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255,178,62,0.10); border: 1px solid rgba(255,178,62,0.26);
}
.disp__body { min-width: 0; }
.disp__party {
  font-size: 14px; color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.disp__sub {
  margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.disp__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); flex: none; }
.disp__right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.disp__bags { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }
.disp__bags small { font-size: 10.5px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.disp__time { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .heartbeat__grid { grid-template-columns: repeat(2, 1fr); }
  .topbar__in { flex-wrap: wrap; min-height: 0; gap: 10px; }
  .topbar__clock { text-align: left; }
  .clock__sub { justify-content: flex-start; }
  .yield { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .yield__side { width: 100%; }
  .week { height: 150px; }
}
@media (max-width: 440px) {
  .heartbeat__grid { grid-template-columns: 1fr; }
  .tempo__row { grid-template-columns: 1fr; }
}

/* tall wall-TV: let it breathe wider */
@media (min-width: 1500px) {
  .dash { max-width: 1480px; }
  .topbar__in { max-width: 1480px; }
}

/* ============================================================================
   REDUCED MOTION — jump to final state
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cover__fill, .tempo__actual, .week__seg, .yield__arc-val { transition: none !important; }
  .clock__refresh svg { animation: none !important; }
  /* collapse every enrichment animation to its calm final state */
  .act--enter,
  .act--enter .act__ico,
  .hb__num.is-pulse,
  .hb--accent,
  .att--critical::before,
  .att--warn::before,
  .cover__fill::after,
  .cover__fill--low,
  .cover__fill--piling { animation: none !important; }
  .cover__fill::after { display: none !important; }
  /* staged-reveal rows appear immediately, fully placed */
  .att--reveal, .row--reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
