/* Daniel's Innovations Hub — Tony Stark / JARVIS / Iron Man HUD */
:root {
  --bg: #05070a;
  --bg-elev: #0a0e14;
  --bg-card: rgba(10, 16, 24, 0.78);
  --bg-card-solid: #0c121a;
  --bg-kpi: rgba(4, 8, 12, 0.72);
  --border: rgba(0, 229, 255, 0.16);
  --border-strong: rgba(0, 229, 255, 0.42);
  --border-gold: rgba(255, 184, 28, 0.45);
  --text: #e8f4ff;
  --text-muted: #8aa4b8;
  --text-dim: #5a7188;
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --gold: #ffb81c;
  --amber: #f5a623;
  --green: #3dff9a;
  --red: #ff4d6a;
  --shadow: 0 0 24px rgba(0, 229, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow-cyan: 0 0 12px rgba(0, 229, 255, 0.35), 0 0 28px rgba(0, 229, 255, 0.12);
  --glow-gold: 0 0 10px rgba(255, 184, 28, 0.3);
  --clip-panel: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
  --clip-sm: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", "SF Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* —— HUD atmospheric layer —— */
.hud-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(0, 229, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 5%, rgba(255, 184, 28, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(0, 184, 212, 0.07), transparent 50%),
    var(--bg);
}

.hud-grid {
  display: none !important;
  /* Grid removed per wallboard feedback — solid radial atmosphere only */
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.hud-scanlines {
  display: none !important;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hud-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-48px, -48px); }
}

@media (prefers-reduced-motion: reduce) {
  .hud-grid,
  .ss-grid,
  .ss-bg,
  .ss-orb,
  .ss-logo,
  .section-card::after,
  .hud-letter,
  .ops-hud-scan,
  .ops-hud-title-text,
  .status-board-title-text,
  .pulse-chart-scan,
  .pulse-chart-glow,
  .hud-panel,
  .order-notice-dock,
  .ops-feed,
  .ship-kpi .kpi-value,
  .fulfill-value,
  .ops-feed-value b,
  .wx-icon,
  .wx-icon-svg,
  .printer-card-printing,
  .printer-card-glow-print,
  .printer-card-error,
  .printer-card-glow-error,
  .status-live-dot,
  .order-notice-dot,
  .farm-summary-chip,
  .pulse-health-chip {
    animation: none !important;
  }
  .hud-letter,
  .hud-panel,
  .order-notice-dock,
  .ops-feed,
  .wx-icon,
  .wx-icon-svg {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

/* —— Angular HUD panels —— */
.hud-panel {
  position: relative;
  clip-path: var(--clip-panel);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.06), transparent 40%),
    var(--bg-card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}
.hud-corner::before,
.hud-corner::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.hud-corner.tl { top: 6px; left: 6px; }
.hud-corner.tl::before { width: 12px; height: 2px; top: 0; left: 0; }
.hud-corner.tl::after { width: 2px; height: 12px; top: 0; left: 0; }
.hud-corner.tr { top: 6px; right: 6px; }
.hud-corner.tr::before { width: 12px; height: 2px; top: 0; right: 0; }
.hud-corner.tr::after { width: 2px; height: 12px; top: 0; right: 0; }
.hud-corner.bl { bottom: 6px; left: 6px; }
.hud-corner.bl::before { width: 12px; height: 2px; bottom: 0; left: 0; }
.hud-corner.bl::after { width: 2px; height: 12px; bottom: 0; left: 0; }
.hud-corner.br { bottom: 6px; right: 6px; }
.hud-corner.br::before { width: 12px; height: 2px; bottom: 0; right: 0; }
.hud-corner.br::after { width: 2px; height: 12px; bottom: 0; right: 0; }

/* —— Buttons —— */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  clip-path: var(--clip-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  border-color: var(--border-strong);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
  color: var(--text);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(255, 184, 28, 0.12));
  border-color: rgba(0, 229, 255, 0.5);
  color: #e8fbff;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.32), rgba(255, 184, 28, 0.18));
}
.btn-ghost { color: var(--text-muted); }

/* —— Brand zone (no KPIs) —— */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1.1rem;
  flex-wrap: nowrap;
  padding: 1.5rem 1.65rem 1.4rem;
  margin-bottom: 1.35rem;
  min-height: 140px;
  overflow: visible;
  z-index: 3;
}
.hero-brand-inner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 0 1 auto;
  min-width: 0;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.45)) drop-shadow(0 0 4px rgba(255, 184, 28, 0.25));
}
.hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}
.hero-copy h1 {
  margin: 0.25rem 0 0.3rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}
.hero-copy .tagline {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hero-actions { flex-shrink: 0; }

/* —— Status Board header (JARVIS wallboard) —— */
.status-board-brand { position: relative; }
.status-board-copy { min-width: 0; }
.status-board-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}
.status-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 255, 154, 0.85), 0 0 16px rgba(61, 255, 154, 0.35);
  animation: status-live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes status-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.status-board-title,
.ops-hud-title {
  margin: 0.2rem 0 0.15rem;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.15;
  position: relative;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}
.ops-hud-title-text,
.status-board-title-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  color: #eaf6ff;
  text-shadow:
    0 0 14px rgba(0, 229, 255, 0.45),
    0 0 28px rgba(0, 229, 255, 0.2),
    0 1px 0 rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2));
}
.hud-letter {
  display: inline-block;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #e8f4ff 35%,
    #7ef7ff 48%,
    #00e5ff 55%,
    #ffb81c 65%,
    #e8f4ff 80%,
    #ffffff 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hud-letter-write 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both,
             hud-letter-shimmer 4.8s ease-in-out infinite,
             status-title-sheen 5.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.028s), calc(0.7s + var(--i, 0) * 0.04s), calc(var(--i, 0) * 0.02s);
  will-change: transform, opacity, filter, background-position;
  text-shadow: none;
  font-weight: 800;
  /* Room-readable glow via parent filter + letter brightness pulse */
}
.hud-letter.hud-space {
  min-width: 0.28em;
  background: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hud-letter-write 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.028s);
}
.hud-letter.hud-dot {
  background: none;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(255, 184, 28, 0.75));
  animation: hud-letter-write 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both,
             hud-letter-shimmer 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.028s), calc(0.7s + var(--i, 0) * 0.04s);
}
.ops-hud-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 42%,
    rgba(0, 229, 255, 0.18) 50%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: ops-hud-scan-sweep 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
}
@keyframes status-title-sheen {
  0%, 68%, 100% { background-position: 100% 50%; }
  82% { background-position: 0% 50%; }
}
@keyframes hud-letter-write {
  from { opacity: 0; transform: translateY(0.45em) scale(0.92); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes hud-letter-shimmer {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.15); }
  55% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(0, 229, 255, 0.55)); }
  70% { filter: brightness(1.08); }
}
@keyframes ops-hud-scan-sweep {
  0%, 55%, 100% { background-position: 120% 50%; opacity: 0.25; }
  70% { background-position: -20% 50%; opacity: 0.9; }
}
.status-board-accent {
  position: relative;
  height: 2px;
  margin-top: 0.4rem;
  max-width: 22rem;
  background: rgba(0, 229, 255, 0.12);
  overflow: hidden;
  clip-path: var(--clip-sm);
}
.status-board-accent > span {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
  animation: status-scan-line 3.2s ease-in-out infinite;
}
@keyframes status-scan-line {
  0% { transform: translateX(-120%); opacity: 0.35; }
  40% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0.35; }
}

/* —— Datasheet —— */
.datasheet {
  padding: 1.35rem 1.35rem 1.6rem;
}
.datasheet-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.datasheet-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.datasheet-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.datasheet-sub {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.datasheet .banner-sample { margin-bottom: 1rem; }
.datasheet .meta-row { margin-bottom: 0; }
.datasheet .sections { margin-top: 0.25rem; }

.banner-sample {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  clip-path: var(--clip-sm);
  border: 1px dashed var(--border-gold);
  background: rgba(255, 184, 28, 0.08);
  color: #ffe7a8;
  font-size: 0.88rem;
}
.banner-sample strong {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.05);
  clip-path: var(--clip-sm);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* —— Section console cards —— */
.sections {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.section-card {
  grid-column: span 6;
  background:
    linear-gradient(160deg, rgba(0, 229, 255, 0.07), transparent 45%),
    rgba(8, 12, 18, 0.88);
  border: 1px solid var(--border);
  clip-path: var(--clip-panel);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.section-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow-cyan);
}
.section-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  opacity: 0.85;
}
.section-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.04), transparent);
  animation: holo-sweep 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holo-sweep {
  0%, 100% { transform: translateX(0); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: translateX(350%); opacity: 0; }
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.section-icon {
  width: 44px;
  height: 44px;
  clip-path: var(--clip-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.18), rgba(255, 184, 28, 0.08));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  flex-shrink: 0;
  box-shadow: var(--glow-cyan);
}
.section-icon svg { width: 24px; height: 24px; }
.section-icon-lg {
  width: 52px;
  height: 52px;
}
.section-icon-lg svg { width: 30px; height: 30px; }
.section-title h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-updated {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.section-notes {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* —— Status badges (HUD) —— */
.badges { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  clip-path: var(--clip-sm);
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}
.badge-live {
  color: var(--green);
  background: rgba(61, 255, 154, 0.1);
  border-color: rgba(61, 255, 154, 0.4);
}
.badge-coming {
  color: var(--gold);
  background: rgba(255, 184, 28, 0.1);
  border-color: rgba(255, 184, 28, 0.4);
}
.badge-login {
  color: #ff8a65;
  background: rgba(255, 138, 101, 0.1);
  border-color: rgba(255, 138, 101, 0.4);
}
.badge-sample {
  color: #94a8bc;
  background: rgba(148, 168, 188, 0.12);
  border-color: rgba(148, 168, 188, 0.35);
}

/* —— KPI holographic tiles (no overlap: stacked label → value → foot) —— */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}
.kpi {
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: none; /* clip-path was clipping stacked text on dense cards */
  border-radius: 4px;
  padding: 0.75rem 0.8rem 0.7rem;
  min-height: 108px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kpi:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}
.kpi-label {
  flex: 0 0 auto;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--cyan-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.6em;
  margin: 0;
  position: static;
}
.kpi-value {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  margin: 0;
  padding: 0.1rem 0 0;
  position: static;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.kpi-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.25rem;
  min-height: 1.35em;
  position: static;
}
.kpi-delta {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--cyan); }
.kpi-delta.flat { color: var(--text-dim); }
.kpi-note {
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
}

.footer {
  margin-top: 2rem;
  padding: 1rem 0.25rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.75rem 1rem;
  clip-path: var(--clip-sm);
  box-shadow: var(--shadow), var(--glow-cyan);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  font-size: 0.8rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* —— Screensaver —— */
#screensaver {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow: hidden;
  cursor: none;
  background: #030508;
  color: var(--text);
}
#screensaver.active { display: block; }

.ss-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 229, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(255, 184, 28, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 45% at 60% 85%, rgba(0, 184, 212, 0.12), transparent 50%),
    radial-gradient(circle at 50% 50%, #0a1018, #030508);
  animation: ss-breathe 14s ease-in-out infinite alternate;
}

.ss-grid {
  /* Minimal / off — prefer solid radial bg */
  display: none;
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.ss-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.ss-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: ss-drift 22s ease-in-out infinite alternate;
}
.ss-orb.a {
  width: 42vw; height: 42vw;
  left: -8%; top: 10%;
  background: rgba(0, 229, 255, 0.35);
}
.ss-orb.b {
  width: 36vw; height: 36vw;
  right: -5%; top: -5%;
  background: rgba(255, 184, 28, 0.22);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
.ss-orb.c {
  width: 30vw; height: 30vw;
  left: 35%; bottom: -10%;
  background: rgba(0, 184, 212, 0.22);
  animation-duration: 26s;
}

.ss-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.ss-logo {
  width: min(160px, 28vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.45)) drop-shadow(0 0 8px rgba(255, 184, 28, 0.25));
  animation: ss-float 6s ease-in-out infinite;
}
.ss-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
}
.ss-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ss-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 920px;
  margin-top: 0;
  min-height: 72px;
}
.ss-kpi {
  background: rgba(4, 8, 12, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.28);
  clip-path: var(--clip-sm);
  padding: 0.75rem 1rem;
  min-width: 140px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.04);
}
.ss-kpi.show { opacity: 1; transform: translateY(0); }
.ss-kpi .l {
  font-size: 0.62rem;
  color: var(--cyan-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.ss-kpi .v {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.2rem;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}
.ss-kpi .s {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  padding: 0.1rem 0.4rem;
}
.ss-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 0; right: 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

@keyframes ss-breathe {
  from { filter: brightness(0.95) saturate(1); }
  to { filter: brightness(1.08) saturate(1.12); }
}
@keyframes ss-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, -3vh) scale(1.12); }
}
@keyframes ss-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Screensaver layout: brand center, analytics dock bottom */
.ss-stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 2rem 2rem 4.5rem;
}
.ss-brand-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding-bottom: 2rem;
}
.ss-data-dock {
  justify-self: center;
  width: min(960px, 100%);
  padding: 1rem 1.15rem 1.15rem;
  background: rgba(4, 8, 12, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), var(--glow-cyan);
}
.ss-dock-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
  text-align: left;
  text-shadow: 0 0 10px var(--cyan-glow);
}
#screensaver .ss-content { display: none; }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .section-card { grid-column: span 12; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .app-shell { padding: 0.85rem 0.85rem 2.5rem; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-value { font-size: 1.15rem; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-brand { padding: 1.1rem; min-height: 0; }
}
@media (min-width: 1400px) {
  .section-card:nth-child(5) { grid-column: span 12; }
  .section-card:nth-child(5) .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .section-card:nth-child(5) .kpi { min-height: 100px; }
}

/* Legacy unused topbar (kept harmless if referenced) */
.topbar { display: none; }

/* —— Live HUD clock (brand header) —— */
.hero-clock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.35rem 0.55rem;
  text-align: center;
  margin-left: auto;
}
.hud-clock-time {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--cyan);
  text-shadow: 0 0 18px var(--cyan-glow), 0 0 40px rgba(0, 229, 255, 0.25);
}
.hud-clock-date {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Command strip (legacy mail layout helpers) —— */
.command-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
  align-items: stretch;
}
.command-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.mail-panel {
  padding: 1.15rem 1.25rem 1.25rem;
}

/* Grok as a free-floating futuristic globe (no square box) */
.grok-globe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 0.5rem 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  position: relative;
  min-height: 280px;
}

.grok-globe,
.jarvis-orb.grok-globe {
  position: relative;
  width: min(220px, 58vw);
  height: min(220px, 58vw);
  aspect-ratio: 1;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.grok-globe:hover { transform: scale(1.045); }
.grok-globe:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 50%;
}

.globe-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, rgba(0, 120, 180, 0.12) 42%, transparent 68%),
    radial-gradient(circle at 70% 30%, rgba(180, 120, 255, 0.18), transparent 50%);
  filter: blur(6px);
  animation: globe-breathe 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.globe-sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, transparent 22%),
    radial-gradient(circle at 50% 55%, #1a8cff 0%, #0066aa 28%, #003d66 55%, #021018 100%);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.35),
    0 0 28px rgba(0, 229, 255, 0.45),
    0 0 60px rgba(80, 140, 255, 0.28),
    inset -18px -22px 40px rgba(0, 0, 0, 0.55),
    inset 12px 14px 28px rgba(120, 220, 255, 0.25);
}

.globe-atmos {
  position: absolute;
  inset: -2%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(180, 255, 255, 0.2), transparent 45%);
  mix-blend-mode: screen;
  animation: globe-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

.globe-meridians {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 11%,
      rgba(0, 229, 255, 0.14) 11%,
      rgba(0, 229, 255, 0.14) 12%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 14%,
      rgba(140, 220, 255, 0.1) 14%,
      rgba(140, 220, 255, 0.1) 15%
    );
  mask-image: radial-gradient(circle, #000 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 78%);
  animation: globe-spin 28s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}

.globe-shine {
  position: absolute;
  top: 8%;
  left: 14%;
  width: 42%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.05) 60%, transparent);
  filter: blur(1px);
  animation: globe-shine-drift 5.5s ease-in-out infinite;
  pointer-events: none;
}

.globe-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.globe-wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3.2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: rgba(232, 252, 255, 0.92);
  text-shadow:
    0 0 12px rgba(0, 229, 255, 0.9),
    0 0 28px rgba(0, 180, 255, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  user-select: none;
}

.grok-globe.listening .globe-glow,
.jarvis-orb.listening .globe-glow {
  animation: globe-alert-glow 0.9s ease-in-out infinite;
}
.grok-globe.listening .globe-sphere {
  box-shadow:
    0 0 0 2px rgba(255, 184, 28, 0.65),
    0 0 36px rgba(0, 229, 255, 0.85),
    0 0 72px rgba(255, 184, 28, 0.35),
    inset -18px -22px 40px rgba(0, 0, 0, 0.45),
    inset 12px 14px 28px rgba(255, 255, 255, 0.28);
}
.grok-globe.listening .globe-meridians {
  animation-duration: 6s;
}

.jarvis-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.jarvis-transcript {
  margin: 0;
  max-width: 280px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 2.2em;
}
.jarvis-transcript.has-text {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.globe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@keyframes globe-spin {
  to { transform: rotate(360deg); }
}
@keyframes globe-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes globe-shimmer {
  0%, 100% { opacity: 0.55; transform: translate(0, 0); }
  50% { opacity: 0.95; transform: translate(4%, -3%); }
}
@keyframes globe-shine-drift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); opacity: 0.85; }
  50% { transform: translate(8%, 6%) rotate(4deg); opacity: 1; }
}
@keyframes globe-alert-glow {
  0%, 100% { opacity: 0.85; filter: blur(4px) brightness(1); }
  50% { opacity: 1; filter: blur(8px) brightness(1.35); }
}

/* —— NEW ORDER red alert overlay (wallboard / kiosk scale) —— */
#order-alert {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
#order-alert.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.order-alert-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(180, 0, 20, 0.72), rgba(12, 0, 0, 0.92)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 40, 0.1) 2px, rgba(255, 0, 40, 0.1) 5px);
  animation: alert-flash 0.45s ease-in-out infinite;
}
.order-alert-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(2.4rem, 6vw, 4.5rem);
  max-width: min(96vw, 920px);
  width: min(96vw, 920px);
  border: 3px solid #ff2a4a;
  background: rgba(18, 0, 4, 0.94);
  box-shadow:
    0 0 0 2px rgba(255, 80, 100, 0.45),
    0 0 60px rgba(255, 30, 60, 0.7),
    0 0 120px rgba(255, 0, 40, 0.45),
    inset 0 0 40px rgba(255, 0, 40, 0.12);
  clip-path: polygon(
    22px 0, calc(100% - 22px) 0, 100% 22px,
    100% calc(100% - 22px), calc(100% - 22px) 100%,
    22px 100%, 0 calc(100% - 22px), 0 22px
  );
  animation: alert-pop 0.35s ease-out;
}
.order-alert-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ff8a9a;
}
.order-alert-title {
  margin: 0;
  font-size: clamp(3.2rem, 14vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 22px rgba(255, 40, 70, 1),
    0 0 55px rgba(255, 0, 40, 0.85),
    0 6px 0 #8b0018;
  animation: alert-title-pulse 0.65s ease-in-out infinite;
}
.order-alert-detail {
  margin: 1.1rem 0 1.6rem;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #ffc4cc;
  letter-spacing: 0.04em;
}
.order-alert-dismiss {
  border: 1px solid rgba(255, 120, 140, 0.65);
  background: rgba(255, 40, 70, 0.28);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  cursor: pointer;
  clip-path: var(--clip-sm);
}
.order-alert-dismiss:hover {
  background: rgba(255, 40, 70, 0.5);
  box-shadow: 0 0 28px rgba(255, 40, 70, 0.55);
}

@keyframes alert-flash {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.78; filter: brightness(1.25); }
}
@keyframes alert-pop {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes alert-title-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.2); }
}

/* —— Live Orders / Incoming notice strip (ops board) —— */
.order-notice-dock,
.live-orders-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.45rem;
  padding: 0.65rem 1rem;
  min-height: 3.1rem;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.1), transparent 42%),
    rgba(6, 12, 18, 0.78);
  clip-path: var(--clip-sm);
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8c0d0;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.08), 0 0 18px rgba(0, 229, 255, 0.06);
}
.order-notice-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.65), 0 0 0 2px rgba(0, 229, 255, 0.2);
  flex-shrink: 0;
  animation: status-live-pulse 2s ease-in-out infinite;
}
.live-orders-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  white-space: nowrap;
}
.live-orders-ico {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.55));
}
.order-notice-label {
  font-weight: 700;
  color: #d6e6f2;
  letter-spacing: 0.08em;
}
.live-orders-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: 0.15rem;
}
.live-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  clip-path: var(--clip-sm);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.live-stat b {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.live-stat-awaiting.has-awaiting {
  border-color: rgba(255, 184, 28, 0.5);
  background: rgba(255, 184, 28, 0.1);
  color: #ffe0a0;
}
.live-stat-awaiting.has-awaiting b {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.55);
}
.live-stat-signal {
  color: var(--text-dim);
  border-style: dashed;
}
.live-stat-signal.signal-hot {
  border-color: rgba(255, 77, 106, 0.55);
  color: #ffb4bc;
  background: rgba(255, 40, 70, 0.12);
  animation: notice-dock-flash 0.9s ease-in-out infinite;
}
.order-notice-source {
  margin-left: auto;
  color: #9ca3af;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-notice-dock.alerting {
  border-color: #ff3355;
  background: rgba(90, 0, 14, 0.78);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 30, 60, 0.45);
  animation: notice-dock-flash 0.7s ease-in-out infinite;
}
.order-notice-dock.alerting .order-notice-dot {
  background: #ff3355;
  box-shadow: 0 0 10px rgba(255, 40, 70, 0.95);
  animation: none;
}
.order-notice-dock.alerting .live-orders-kicker {
  color: #ff8a9a;
  text-shadow: 0 0 12px rgba(255, 40, 70, 0.7);
}
.order-notice-dock.alerting .order-notice-label {
  color: #fff;
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(255, 40, 70, 0.9);
}
.order-notice-dock.alerting .live-stat {
  border-color: rgba(255, 120, 140, 0.45);
  background: rgba(0, 0, 0, 0.25);
  color: #ffc4cc;
}
.order-notice-dock.alerting .live-stat b { color: #fff; }
.order-notice-dock.alerting .order-notice-source {
  color: #ffc4cc;
}
@keyframes notice-dock-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

/* Mail panel */
.mail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.mail-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-new-mail {
  color: var(--gold);
  background: rgba(255, 184, 28, 0.14);
  border-color: rgba(255, 184, 28, 0.55);
  animation: mic-pulse 1.4s ease-in-out infinite;
}
.mail-address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}
.mail-addr-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}
.mail-addr {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.mail-stats {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.mail-stat {
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  padding: 0.55rem 0.7rem;
}
.mail-unread {
  font-size: 1.45rem !important;
}
.mail-latest {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-word;
}
.mail-subjects {
  margin: 0 0 0.65rem;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.mail-subjects .dim { color: var(--text-dim); list-style: none; margin-left: -1.1rem; }
.mail-notes {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.mail-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Live banner (replaces SAMPLE ONLY) */
.banner-live {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  clip-path: var(--clip-sm);
  border: 1px solid rgba(61, 255, 154, 0.35);
  background: rgba(61, 255, 154, 0.07);
  color: #c8ffe4;
  font-size: 0.88rem;
}
.banner-live strong {
  color: var(--green);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.datasheet .banner-live { margin-bottom: 1rem; }

/* Screensaver big clock */
.ss-clock {
  margin-top: 1.25rem;
  text-align: center;
}
.ss-clock-time {
  font-size: clamp(2.8rem, 8vw, 5.2rem) !important;
  letter-spacing: 0.08em;
}
.ss-clock-date {
  font-size: 0.95rem !important;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .globe-glow,
  .globe-atmos,
  .globe-meridians,
  .globe-shine,
  .grok-globe.listening .globe-glow,
  .badge-new-mail,
  .order-alert-backdrop,
  .order-alert-title,
  .order-notice-dock.alerting {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .command-strip { grid-template-columns: 1fr; }
  .hero-brand { flex-wrap: wrap; }
  .hero-wx-mid { order: 3; width: 100%; }
  .hero-clock { order: 4; width: 100%; padding-top: 0.35rem; margin-left: 0; }
  .hero-actions { order: 2; margin-left: auto; }
  .hud-clock-time { font-size: 2.4rem; }
  .grok-globe-wrap { min-height: 240px; }
}
@media (max-width: 720px) {
  .grok-globe, .jarvis-orb.grok-globe { width: min(180px, 70vw); height: min(180px, 70vw); }
  .mail-stats { grid-template-columns: 1fr; }
}


/* —— Richer mail message rows —— */
.mail-messages {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
}
.mail-msg {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  transition: border-color 0.15s, background 0.15s;
}
.mail-msg.is-unread {
  border-color: rgba(255, 184, 28, 0.45);
  background: rgba(255, 184, 28, 0.06);
}
.mail-msg.dim {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.mail-msg-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}
.mail-msg-from {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--cyan);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}
.mail-msg-time {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.mail-msg-subject {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.mail-msg-preview {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mail-sample-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 184, 28, 0.4);
  background: rgba(255, 184, 28, 0.1);
  vertical-align: middle;
}

/* —— ShipStation / section footer —— */
.section-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.section-footer-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--mono);
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* —— Condensed ops board layout —— */
.ops-board {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  grid-template-areas:
    "farm secondary";
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}
.ops-board .printers-panel { grid-area: farm; }
.ops-board .ops-secondary {
  grid-area: secondary;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
}

.ship-panel,
.pulse-panel,
.fulfill-desk {
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ship-panel { flex: 1.35 1 auto; }
.pulse-panel { flex: 1 1 auto; }
.fulfill-desk { flex: 1 1 auto; }
.fulfill-desk-body { min-height: 3rem; flex: 1 1 auto; }
.fulfill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.fulfill-cell {
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 3.2rem;
  min-width: 0;
}
.fulfill-cell.is-wide {
  grid-column: 1 / -1;
}
.fulfill-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.25;
}
.fulfill-value {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.15;
  text-shadow: 0 0 10px var(--cyan-glow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fulfill-value.is-muted {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 650;
  text-shadow: none;
}
.fulfill-value.is-soft {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 184, 28, 0.25);
  white-space: normal;
  line-height: 1.3;
}
.fulfill-cell.is-hot {
  border-color: rgba(255, 184, 28, 0.5);
  background: rgba(255, 184, 28, 0.1);
}
.fulfill-cell.is-hot .fulfill-value { color: var(--gold); }
.fulfill-sync {
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.ship-panel-body { min-height: 3rem; }
.ship-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}
.ship-kpi {
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 3.6rem;
}
.ship-kpi-seed {
  border-style: dashed;
  border-color: rgba(255, 184, 28, 0.28);
  opacity: 0.92;
}
.ship-kpi-live {
  border-color: rgba(0, 229, 255, 0.35);
}
.kpi-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
}
.ship-kpi .kpi-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.25;
}
.kpi-flag {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.08rem 0.28rem;
  clip-path: var(--clip-sm);
  flex-shrink: 0;
}
.kpi-flag-live {
  color: var(--green);
  border: 1px solid rgba(61, 255, 154, 0.45);
  background: rgba(61, 255, 154, 0.1);
}
.kpi-flag-seed {
  color: var(--gold);
  border: 1px solid rgba(255, 184, 28, 0.4);
  background: rgba(255, 184, 28, 0.08);
}
.ship-kpi .kpi-value {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
  text-shadow: 0 0 12px var(--cyan-glow);
}
.ship-kpi .kpi-note {
  font-size: 0.52rem;
  color: var(--text-dim);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ship-seed-note {
  margin: 0.4rem 0 0;
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.ship-footer {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.section-footer-hint {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.pulse-head { margin-bottom: 0.25rem; }
.pulse-subtitle {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.pulse-backlog {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 10px rgba(61, 255, 154, 0.35);
}
.pulse-health-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(61, 255, 154, 0.45);
  clip-path: var(--clip-sm);
  color: var(--green);
  background: rgba(61, 255, 154, 0.1);
  white-space: nowrap;
}
.pulse-health-chip.health-busy {
  color: var(--amber);
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(245, 166, 35, 0.12);
}
.pulse-health-chip.health-watch {
  color: var(--gold);
  border-color: rgba(255, 184, 28, 0.55);
  background: rgba(255, 184, 28, 0.1);
}
.pulse-health-chip.health-error {
  color: #ffb4bc;
  border-color: rgba(255, 77, 106, 0.7);
  background: rgba(255, 40, 70, 0.18);
}
.pulse-chart-wrap {
  flex: 1 1 auto;
  min-height: 240px;
  position: relative;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 229, 255, 0.12);
  clip-path: var(--clip-sm);
  padding: 0.4rem 0.3rem 0.2rem;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.06);
}
.pulse-chart-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.14), transparent 12%),
    linear-gradient(0deg, rgba(255, 184, 28, 0.08), transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: pulse-axis-glow 3.4s ease-in-out infinite;
}
.pulse-chart-scan { display: none !important; /* removed descending scan */ 
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 229, 255, 0.08) 40%,
    rgba(0, 229, 255, 0.18) 50%,
    rgba(0, 229, 255, 0.06) 60%,
    transparent 100%
  );
  animation: pulse-scan-line 4.2s linear infinite;
  mix-blend-mode: screen;
}
.pulse-chart-wrap canvas {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
}
@keyframes pulse-scan-line {
  0% { transform: translateY(0); opacity: 0.35; }
  15% { opacity: 0.85; }
  100% { transform: translateY(380%); opacity: 0.25; }
}
@keyframes pulse-axis-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.pulse-legend {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.55rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 229, 255, 0.2);
  clip-path: var(--clip-sm);
}
.pulse-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.pulse-legend-item i {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  clip-path: var(--clip-sm);
  flex-shrink: 0;
}
.pulse-legend-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 0 10px rgba(232, 244, 255, 0.25);
}
.pulse-legend-item.orders i {
  background: rgba(0, 229, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.65), 0 0 4px rgba(0, 229, 255, 0.9);
}
.pulse-legend-item.orders .pulse-legend-label {
  color: #7ef7ff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}
.pulse-legend-item.shipments i {
  background: rgba(255, 184, 28, 0.95);
  box-shadow: 0 0 12px rgba(255, 184, 28, 0.55), 0 0 4px rgba(255, 184, 28, 0.85);
}
.pulse-legend-item.shipments .pulse-legend-label {
  color: #ffd56a;
  text-shadow: 0 0 12px rgba(255, 184, 28, 0.4);
}
.pulse-meta {
  margin: 0.35rem 0 0;
  font-size: 0.58rem;
  color: var(--text-dim);
}

@media (max-width: 1100px) {
  .ops-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "farm"
      "secondary";
  }
  .ship-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ops-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "farm"
      "secondary";
  }
}



/* —— Shop Glance removed (duplicate of Ops Feed / Ship / Desk) —— */
.shop-glance {
  display: none !important;
}
.shop-glance-legacy-hidden {
  position: relative;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.75rem 0.55rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background:
    linear-gradient(105deg, rgba(0, 229, 255, 0.07), transparent 42%),
    linear-gradient(270deg, rgba(255, 184, 28, 0.05), transparent 35%),
    rgba(8, 10, 14, 0.82);
  clip-path: var(--clip-sm);
  overflow: hidden;
}
.shop-glance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.shop-glance-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}
.shop-glance-quiet {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(138, 164, 184, 0.28);
  background: rgba(0, 0, 0, 0.25);
  clip-path: var(--clip-sm);
}
.shop-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.35rem;
}
.glance-cell {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  clip-path: var(--clip-sm);
}
.glance-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.glance-value {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glance-value b {
  font-size: 1.15rem;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.glance-value-lg b { font-size: 1.45rem; }
.glance-value-sm {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glance-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.glance-cell.is-hot {
  border-color: rgba(255, 184, 28, 0.5);
  background: rgba(255, 184, 28, 0.1);
}
.glance-cell.is-hot .glance-value b,
.glance-cell.is-hot .glance-value-sm {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.45);
}
.glance-cell.is-error {
  border-color: rgba(255, 77, 106, 0.55);
  background: rgba(255, 40, 70, 0.12);
}
.glance-cell.is-error .glance-value-sm,
.glance-cell.is-error .glance-value b {
  color: #ffb4bc;
}
.glance-cell.is-clear .glance-value-sm {
  color: var(--green);
}
.glance-pack-item { white-space: nowrap; }
.glance-pack-item b {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan-dim);
  margin-right: 0.2rem;
}
.glance-pack-item.is-ok { color: var(--green); }
.glance-pack-item.is-error { color: #ff8a9a; }
.glance-pack-item.is-hot { color: var(--gold); }
.glance-pack-sep {
  margin: 0 0.25rem;
  opacity: 0.45;
}
.glance-cell[hidden],
.shop-glance-quiet[hidden] { display: none !important; }


/* legacy critical chips kept harmless if referenced */
.critical-ops-row { display: none !important; }

.farm-head-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.farm-summary-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  clip-path: var(--clip-sm);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  white-space: nowrap;
}
.farm-summary-chip.has-printing {
  border-color: rgba(61, 255, 154, 0.5);
  color: var(--green);
  background: rgba(61, 255, 154, 0.1);
}
.farm-summary-chip.has-error {
  border-color: rgba(255, 77, 106, 0.65);
  color: #ffb4bc;
  background: rgba(255, 40, 70, 0.14);
}
/* —— Print Farm panel —— */
.command-strip {
  grid-template-columns: minmax(180px, 0.65fr) minmax(220px, 0.95fr) minmax(280px, 1.35fr);
}
.printers-panel {
  padding: 0.95rem 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.printers-panel-body { min-height: 4rem; flex: 0 1 auto; }
.printer-farm-label {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}
.printer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.28rem;
  margin-bottom: 0.35rem;
}
.printer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  padding: 0.22rem 0.28rem 0.24rem;
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  min-height: 2.55rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.printer-card-error,
.printer-card-glow-error {
  border-color: rgba(255, 77, 106, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 40, 70, 0.35),
    0 0 18px rgba(255, 40, 70, 0.35),
    inset 0 0 18px rgba(255, 40, 70, 0.08);
}
.printer-card-printing,
.printer-card-glow-print {
  border-color: rgba(255, 184, 28, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.22),
    0 0 16px rgba(255, 184, 28, 0.28),
    0 0 22px rgba(0, 229, 255, 0.18);
  animation: printer-print-glow 2.8s ease-in-out infinite;
}
.printer-card-offline {
  opacity: 0.72;
  border-color: rgba(255, 77, 106, 0.35);
}
@keyframes printer-print-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 229, 255, 0.18),
      0 0 12px rgba(255, 184, 28, 0.22),
      0 0 18px rgba(0, 229, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 184, 28, 0.35),
      0 0 20px rgba(255, 184, 28, 0.38),
      0 0 26px rgba(0, 229, 255, 0.22);
  }
}
.printer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
}
.printer-card-head .printer-status { flex-shrink: 0; }
.printer-model-line {
  margin: 0;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.printer-brand {
  margin: 0.2rem 0 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.25;
}
.printer-name {
  margin: 0;
  font-size: clamp(0.88rem, 1.15vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.02;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.printer-card-status-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  margin-top: 0.06rem;
}
.printer-progress-indeterminate .printer-progress-bar {
  animation: printer-progress-pulse 1.4s ease-in-out infinite;
}
@keyframes printer-progress-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.printer-status {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.28rem;
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
}
.printer-timeleft {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  line-height: 1;
  white-space: nowrap;
}
.printer-status-printing,
.printer-status-running {
  color: var(--green);
  border-color: rgba(61, 255, 154, 0.45);
  background: rgba(61, 255, 154, 0.1);
  box-shadow: 0 0 10px rgba(61, 255, 154, 0.2);
}
.printer-status-ready,
.printer-status-standby {
  color: var(--amber);
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(245, 166, 35, 0.12);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.15);
}
.printer-status-idle {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}
.printer-status-error {
  color: #ffb4bc;
  border-color: rgba(255, 77, 106, 0.7);
  background: rgba(255, 40, 70, 0.22);
  box-shadow: 0 0 12px rgba(255, 40, 70, 0.28);
}
.printer-status-offline {
  color: #ff6b7a;
  border-color: rgba(255, 77, 106, 0.55);
  background: rgba(255, 40, 70, 0.14);
  box-shadow: 0 0 10px rgba(255, 40, 70, 0.18);
}
.printer-status-unknown {
  color: var(--text-muted);
}
.printer-job {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.printer-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 0.55rem;
}
.printer-progress {
  flex: 1 1 auto;
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.printer-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 999px;
}
.printer-progress-pct {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  min-width: 2.2rem;
  text-align: right;
}

.printer-job-empty {
  opacity: 0.45;
  font-style: italic;
}
.printer-error-msg {
  margin: 0;
  font-size: 0.62rem;
  color: #ffb4bc;
  line-height: 1.3;
}
.printer-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.printer-meta-sep { opacity: 0.5; }
.printer-ip {
  color: var(--cyan-dim);
}
.printer-last-updated {
  color: var(--text-dim);
}
.printer-progress-empty .printer-progress-bar {
  opacity: 0.25;
}
.printer-meta {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.printer-path {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  word-break: break-all;
}
.printer-path code {
  font-family: var(--mono);
  color: var(--cyan-dim);
  font-size: 0.68rem;
}
.printer-card-notes {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.printer-actions { margin-top: 0.35rem; }
.printer-launch-hint {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.74rem;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border: 1px dashed rgba(251, 191, 36, 0.35);
  clip-path: var(--clip-sm);
  white-space: pre-wrap;
  line-height: 1.4;
}
.office-printers {
  margin: 0.35rem 0 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.office-printers-label {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.office-printer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.office-printer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.3rem 0.45rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  clip-path: var(--clip-sm);
  font-size: 0.72rem;
}
.office-printer-name { font-weight: 600; }
.office-printer-meta { color: var(--text-muted); font-size: 0.65rem; }
.office-printer-row .printer-status {
  font-size: 0.58rem;
  padding: 0.15rem 0.35rem;
}
.office-printer-row.is-soon {
  border-style: dashed;
  border-color: rgba(255, 184, 28, 0.35);
  opacity: 0.88;
}
.office-printer-row.is-soon .office-printer-name { color: var(--gold); }
.printer-status-coming,
.printer-status-soon {
  color: var(--gold);
  border-color: rgba(255, 184, 28, 0.45);
  background: rgba(255, 184, 28, 0.08);
}

@media (max-width: 1100px) {
  .command-strip { grid-template-columns: 1fr 1fr; }
  .command-strip .grok-globe-wrap { grid-column: 1 / -1; }
  .printer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .command-strip { grid-template-columns: 1fr; }
  .command-strip .grok-globe-wrap { grid-column: auto; }
  .printer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .printer-grid { grid-template-columns: 1fr; }
}

/* —— Kiosk / wallboard mode (?kiosk=1 or kiosk.html) —— */
html.kiosk-mode,
body.kiosk-mode {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  margin: 0;
  overscroll-behavior: none;
}
body.kiosk-mode .hud-grid,
body.kiosk-mode .hud-scanlines {
  display: none !important;
}
body.kiosk-mode .hud-bg {
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(0, 229, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 5%, rgba(255, 184, 28, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(0, 184, 212, 0.07), transparent 50%),
    var(--bg);
}
body.kiosk-mode .footer,
body.kiosk-mode .banner-live,
body.kiosk-mode .datasheet-sub,
body.kiosk-mode .printer-actions,
body.kiosk-mode .printer-launch-hint,
body.kiosk-mode .section-footer,
body.kiosk-mode .mail-notes.printers-global-notes,
body.kiosk-mode .office-printers,
body.kiosk-mode .pulse-meta {
  display: none !important;
}
body.kiosk-mode .app-shell {
  max-width: none;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0.45rem 0.65rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
  box-sizing: border-box;
}
body.kiosk-mode .hero-brand {
  flex: 0 0 auto;
  margin-bottom: 0;
  min-height: 0;
  padding: 0.45rem 0.85rem;
}
body.kiosk-mode .order-notice-dock,
body.kiosk-mode .live-orders-strip {
  flex: 0 0 auto;
  margin-bottom: 0;
}
body.kiosk-mode .hero-logo { width: 44px; height: 44px; }
body.kiosk-mode .hero-copy h1,
body.kiosk-mode .status-board-title { font-size: clamp(0.95rem, 1.55vw, 1.25rem); }
body.kiosk-mode .hero-kicker,
body.kiosk-mode .tagline { opacity: 0.85; }
body.kiosk-mode .status-board-accent { max-width: 18rem; }
body.kiosk-mode .hud-clock-time {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}
body.kiosk-mode .hero-actions {
  display: flex !important;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
body.kiosk-mode .hero-actions .btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.58rem;
}
/* Keep Refresh + Test alert; hide wallpaper/screensaver chrome on wallboard */
body.kiosk-mode .hero-actions a[href="wallpaper.html"],
body.kiosk-mode .hero-actions a[href="?kiosk=1"],
body.kiosk-mode #btn-screensaver {
  display: none !important;
}
body.kiosk-mode .ops-board {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  grid-template-areas: "farm secondary";
}
body.kiosk-mode .printers-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.65rem 0.75rem 0.7rem;
}
body.kiosk-mode .printers-panel-body {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.kiosk-mode .now-printing {
  display: none !important;
}
body.kiosk-mode .ops-feed {
  flex: 0 0 auto;
}
body.kiosk-mode .printers-panel > .pulse-panel {
  flex: 2.2 1 0;
  min-height: 0;
}
body.kiosk-mode .printer-farm-label {
  font-size: 0.68rem;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}
body.kiosk-mode .printer-grid {
  flex: 0 0 auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(48px, auto);
  gap: 0.2rem;
  margin-bottom: 0.18rem;
  min-height: 0;
}
body.kiosk-mode .printer-card {
  min-height: 0;
  padding: 0.22rem 0.28rem;
  justify-content: flex-start;
  max-height: none; min-height: 90px;
}
body.kiosk-mode .shop-glance {
  flex: 0 0 auto;
  margin-bottom: 0;
}
body.kiosk-mode .shop-glance-hint { display: none !important; }
body.kiosk-mode .printer-name {
  font-size: clamp(1rem, 1.55vw, 1.35rem);
}
body.kiosk-mode .printer-status {
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  padding: 0.35rem 0.55rem;
}
body.kiosk-mode .printer-timeleft {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}
body.kiosk-mode .ops-secondary {
  gap: 0.4rem;
  min-height: 0;
}
body.kiosk-mode .ship-panel {
  flex: 1.35 1 0;
  min-height: 0;
  padding: 0.55rem 0.65rem 0.6rem;
  overflow: hidden;
}
body.kiosk-mode .fulfill-desk {
  flex: 1.15 1 0;
  min-height: 0;
  padding: 0.55rem 0.65rem 0.6rem;
  overflow: hidden;
}
body.kiosk-mode .printers-panel > .pulse-panel {
  flex: 2.4 1 0;
  min-height: 0;
  padding: 0.45rem 0.55rem 0.5rem;
  overflow: hidden;
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
}
body.kiosk-mode .printers-panel > .now-printing {
  display: none !important;
}
body.kiosk-mode .ship-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}
body.kiosk-mode .ship-kpi {
  min-height: 0;
  padding: 0.4rem 0.5rem;
}
body.kiosk-mode .ship-kpi .kpi-value {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
body.kiosk-mode .ship-kpi .kpi-note { display: none; }
body.kiosk-mode .ship-seed-note { font-size: 0.52rem; }
body.kiosk-mode .pulse-legend {
  font-size: 0.85rem;
  gap: 1rem;
  padding: 0.35rem 0.55rem;
  margin-top: 0.35rem;
}
body.kiosk-mode .pulse-legend-item i {
  width: 1rem;
  height: 1rem;
}
body.kiosk-mode .pulse-legend-label { font-size: 0.85rem; }
body.kiosk-mode .farm-summary-chip {
  font-size: 0.58rem;
  padding: 0.22rem 0.45rem;
}
body.kiosk-mode .printer-card-meta {
  font-size: 0.52rem;
}
body.kiosk-mode .pulse-chart-wrap {
  min-height: 160px;
  flex: 1 1 auto;
}
body.kiosk-mode .toast { display: none; }
body.kiosk-mode #screensaver { display: none !important; }

/* Fallback: html.kiosk-mode before body class is applied */
html.kiosk-mode body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* —— KIOSK COMPACT ~1521×855 —— */
/* Farm + pulse · ship + fulfillment desk */
@media (max-height: 0px) { /* DISABLED compact crunch — was crushing 855px wallboard */
  body.kiosk-mode,
  html.kiosk-mode {
    height: 100%;
    overflow: hidden;
  }
  body.kiosk-mode .app-shell {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important;
    padding: 0.28rem 0.4rem !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    grid-template-areas:
      "hero"
      "notice"
      "ops" !important;
    gap: 0.18rem !important;
  }
  body.kiosk-mode .order-notice-dock,
  body.kiosk-mode .live-orders-strip {
    grid-area: notice;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0.4rem 0.7rem !important;
    gap: 0.45rem 0.7rem !important;
    font-size: 0.72rem !important;
  }
  body.kiosk-mode .live-orders-kicker {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }
  body.kiosk-mode .live-orders-ico { width: 15px; height: 15px; }
  body.kiosk-mode .live-stat {
    padding: 0.18rem 0.42rem !important;
    font-size: 0.62rem !important;
  }
  body.kiosk-mode .live-stat b { font-size: 0.95rem !important; }
  body.kiosk-mode .order-notice-source {
    max-width: 32%;
    font-size: 0.58rem !important;
  }
  body.kiosk-mode .shop-glance {
    display: none !important;
  }
  body.kiosk-mode .shop-glance-kicker { font-size: 0.52rem !important; }
  body.kiosk-mode .shop-glance-grid {
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)) !important;
    gap: 0.22rem !important;
  }
  body.kiosk-mode .glance-cell { padding: 0.22rem 0.32rem !important; }
  body.kiosk-mode .glance-label { font-size: 0.45rem !important; }
  body.kiosk-mode .glance-value b { font-size: 0.95rem !important; }
  body.kiosk-mode .glance-value-lg b { font-size: 1.15rem !important; }
  body.kiosk-mode .glance-value-sm { font-size: 0.58rem !important; }
  body.kiosk-mode .glance-sub { font-size: 0.48rem !important; }
  body.kiosk-mode .shop-glance-quiet { font-size: 0.48rem !important; }
  body.kiosk-mode .ops-hud-title,
  body.kiosk-mode .status-board-title {
    font-size: clamp(0.95rem, 1.7vw, 1.2rem) !important;
    letter-spacing: 0.07em !important;
  }
  body.kiosk-mode .hero-brand {
    grid-area: hero;
    padding: 0.22rem 0.45rem !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
  body.kiosk-mode .hero-logo { width: 30px !important; height: 30px !important; }
  body.kiosk-mode .hero-copy h1,
  body.kiosk-mode .status-board-title,
  body.kiosk-mode .ops-hud-title { font-size: clamp(0.92rem, 1.65vw, 1.18rem) !important; margin: 0 !important; letter-spacing: 0.07em !important; }
  body.kiosk-mode .status-board-kicker { font-size: 0.48rem !important; gap: 0.3rem !important; }
  body.kiosk-mode .status-live-dot { width: 0.4rem; height: 0.4rem; }
  body.kiosk-mode .status-board-accent { margin-top: 0.18rem !important; max-width: 16rem; height: 1.5px; }
  body.kiosk-mode .hero-copy .tagline { display: none !important; }
  body.kiosk-mode .hud-clock-time { font-size: 1.35rem !important; line-height: 1.05 !important; }
  body.kiosk-mode .hud-clock-date { font-size: 0.55rem !important; }
  body.kiosk-mode .hero-actions .btn {
    padding: 0.22rem 0.4rem !important;
    font-size: 0.5rem !important;
  }

  body.kiosk-mode .ops-board {
    grid-area: ops !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.95fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-areas: "farm secondary" !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 100%;
  }

  body.kiosk-mode .printers-panel {
    padding: 0.35rem 0.4rem !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
  }
  /* Pulse flex/min-height set below after farm + ops feed */
  body.kiosk-mode .printers-panel .mail-head { margin-bottom: 0.25rem; }
  body.kiosk-mode .printers-panel .command-kicker { font-size: 0.48rem; }
  body.kiosk-mode .printers-panel h2 { font-size: 0.85rem !important; margin: 0; }
  body.kiosk-mode .printers-panel-body {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.kiosk-mode .now-printing {
    display: none !important;
  }
  body.kiosk-mode .now-printing-kicker { font-size: 0.55rem !important; }
  body.kiosk-mode .now-printing-next-value { font-size: 0.95rem !important; }
  body.kiosk-mode .now-printing-next-value .now-eta { font-size: 1.15rem !important; }
  body.kiosk-mode .now-print-name { font-size: 1.05rem !important; }
  body.kiosk-mode .now-print-pct { font-size: 1.05rem !important; }
  body.kiosk-mode .now-print-job { font-size: 0.62rem !important; }
  body.kiosk-mode .now-print-left { font-size: 0.78rem !important; }
  body.kiosk-mode .now-printing-idle-title { font-size: 1.05rem !important; }
  body.kiosk-mode .printer-grid {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(38px, auto) !important;
    gap: 0.12rem !important;
    margin-bottom: 0.08rem !important;
  }
  body.kiosk-mode .printer-card {
    padding: 0.1rem 0.14rem !important;
    min-height: 0 !important;
    max-height: 48px;
    overflow: hidden;
    gap: 0.02rem !important;
  }
  body.kiosk-mode .ops-feed {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0.08rem !important;
    padding: 0.12rem 0.18rem 0.14rem !important;
  }
  body.kiosk-mode .ops-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.12rem !important;
  }
  body.kiosk-mode .ops-feed-card { padding: 0.14rem 0.22rem !important; }
  body.kiosk-mode .ops-feed-label { font-size: 0.38rem !important; }
  body.kiosk-mode .ops-feed-value { font-size: 0.56rem !important; }
  body.kiosk-mode .ops-feed-value b { font-size: 0.7rem !important; }
  body.kiosk-mode .ops-feed-head { margin-bottom: 0.1rem !important; }
  body.kiosk-mode .ops-feed-kicker { font-size: 0.48rem !important; }
  /* Shop Glance permanently removed */
  body.kiosk-mode .shop-glance {
    display: none !important;
  }
  body.kiosk-mode .hero-brand {
    flex-wrap: nowrap !important;
    gap: 0.45rem 0.65rem !important;
  }
  body.kiosk-mode .hero-wx-mid {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    min-width: 0 !important;
    padding: 0 0.35rem !important;
    z-index: 5;
  }
  body.kiosk-mode .hero-clock {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
  body.kiosk-mode .hud-weather {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0.18rem 0.55rem 0.18rem 0.32rem !important;
    gap: 0.35rem !important;
    z-index: 6;
  }
  body.kiosk-mode .hud-weather[hidden] {
    display: inline-flex !important; /* still show loading / fallback chip */
  }
  body.kiosk-mode .wx-icon {
    width: 30px !important;
    height: 30px !important;
  }
  body.kiosk-mode .wx-icon-svg {
    width: 28px !important;
    height: 28px !important;
  }
  body.kiosk-mode .wx-temp { font-size: 1.28rem !important; }
  body.kiosk-mode .wx-cond,
  body.kiosk-mode .wx-wind { font-size: 0.58rem !important; }
  body.kiosk-mode .warn-chip {
    font-size: 0.42rem !important;
    padding: 0.1rem 0.28rem !important;
  }
  body.kiosk-mode .hud-warnings { gap: 0.18rem !important; max-width: min(360px, 40vw); }
  body.kiosk-mode .printers-panel-body {
    flex: 0 0 auto !important;
    max-height: none;
  }
  body.kiosk-mode .printer-name {
    font-size: 0.82rem !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.kiosk-mode .printer-model-line { font-size: 0.4rem !important; line-height: 1.1 !important; }
  /* Idle/ready boxes: drop model line for denser height */
  body.kiosk-mode .printer-card:not(.printer-card-printing):not(.printer-card-error) .printer-model-line {
    display: none !important;
  }
  body.kiosk-mode .printer-brand { display: none !important; }
  body.kiosk-mode .printer-status { font-size: 0.42rem !important; padding: 0.06rem 0.2rem !important; }
  body.kiosk-mode .printer-timeleft { font-size: 0.58rem !important; font-weight: 750; color: var(--cyan); }
  body.kiosk-mode .printer-job { display: none !important; }
  body.kiosk-mode .printer-card-meta,
  body.kiosk-mode .printer-error-banner { display: none !important; }
  body.kiosk-mode .printer-progress { height: 0.28rem !important; }
  body.kiosk-mode .printer-progress-pct { font-size: 0.52rem !important; min-width: 1.8rem !important; }
  body.kiosk-mode .section-icon-lg { width: 40px !important; height: 40px !important; }
  body.kiosk-mode .section-icon-lg svg { width: 26px !important; height: 26px !important; }
  body.kiosk-mode .printer-path,
  body.kiosk-mode .printer-card-notes,
  body.kiosk-mode .printer-actions,
  body.kiosk-mode .printer-launch-hint,
  body.kiosk-mode .printer-meta,
  body.kiosk-mode .office-printers,
  body.kiosk-mode .printer-farm-label { display: none !important; }

  body.kiosk-mode .ops-secondary {
    gap: 0.22rem !important;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.kiosk-mode .ship-panel,
  body.kiosk-mode .fulfill-desk {
    padding: 0.28rem 0.38rem !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  /* Left column: Pulse owns remaining height (Shop Glance + Now Printing gone) */
  body.kiosk-mode .ship-panel { flex: 1.35 1 0 !important; min-height: 0; }
  body.kiosk-mode .fulfill-desk { flex: 1.15 1 0 !important; min-height: 0; }
  body.kiosk-mode .printers-panel > .pulse-panel {
    flex: 3.2 1 0 !important;
    min-height: 240px !important;
    margin-top: 0.1rem !important;
    padding: 0.28rem 0.38rem !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
  }
  body.kiosk-mode .printers-panel > .now-printing {
    display: none !important;
  }
  body.kiosk-mode .fulfill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.18rem !important;
  }
  body.kiosk-mode .fulfill-cell {
    padding: 0.22rem 0.32rem !important;
    min-height: 0 !important;
  }
  body.kiosk-mode .fulfill-label { font-size: 0.42rem !important; }
  body.kiosk-mode .fulfill-value { font-size: 1.05rem !important; }
  body.kiosk-mode .fulfill-value.is-soft,
  body.kiosk-mode .fulfill-value.is-muted { font-size: 0.58rem !important; }
  body.kiosk-mode .fulfill-sync { font-size: 0.45rem !important; margin-top: 0.2rem !important; }
  body.kiosk-mode .fulfill-desk .command-kicker { font-size: 0.48rem; }
  body.kiosk-mode .fulfill-desk h2 { font-size: 0.82rem !important; margin: 0; }
  body.kiosk-mode .ship-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  body.kiosk-mode .ship-panel .command-kicker,
  body.kiosk-mode .pulse-panel .command-kicker { font-size: 0.48rem; }
  body.kiosk-mode .ship-panel h2,
  body.kiosk-mode .pulse-panel h2 { font-size: 0.82rem !important; margin: 0; }
  body.kiosk-mode .ship-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.22rem !important;
    flex: 1 1 auto;
    min-height: 0;
  }
  body.kiosk-mode .ship-kpi {
    padding: 0.28rem 0.35rem !important;
    min-height: 0 !important;
  }
  body.kiosk-mode .ship-kpi .kpi-label { font-size: 0.48rem !important; }
  body.kiosk-mode .ship-kpi .kpi-value { font-size: 1.25rem !important; }
  body.kiosk-mode .ship-kpi .kpi-note { display: none !important; }
  body.kiosk-mode .kpi-flag { font-size: 0.4rem !important; padding: 0.04rem 0.18rem !important; }
  body.kiosk-mode .ship-seed-note { font-size: 0.42rem !important; margin-top: 0.2rem !important; }
  body.kiosk-mode .pulse-subtitle { font-size: 0.55rem !important; }
  body.kiosk-mode .pulse-backlog { font-size: 0.55rem !important; }
  body.kiosk-mode .pulse-health-chip {
    font-size: 0.52rem !important;
    padding: 0.18rem 0.4rem !important;
  }
  body.kiosk-mode .pulse-legend {
    font-size: 0.78rem !important;
    margin-top: 0.22rem !important;
    padding: 0.32rem 0.5rem !important;
    gap: 0.9rem !important;
  }
  body.kiosk-mode .pulse-legend-item i {
    width: 1rem !important;
    height: 1rem !important;
  }
  body.kiosk-mode .pulse-legend-label { font-size: 0.78rem !important; }
  body.kiosk-mode .pulse-chart-wrap {
    min-height: 190px !important;
    max-height: none;
    padding: 0.22rem 0.28rem !important;
    flex: 1 1 auto;
  }
  body.kiosk-mode .pulse-chart-wrap canvas {
    min-height: 170px !important;
  }
  body.kiosk-mode .printers-panel > .pulse-panel .pulse-head {
    margin-bottom: 0.08rem !important;
  }
  body.kiosk-mode .printers-panel > .pulse-panel .pulse-subtitle {
    font-size: 0.5rem !important;
    margin: 0 0 0.08rem !important;
  }
  body.kiosk-mode .printers-panel > .pulse-panel .pulse-legend {
    font-size: 0.72rem !important;
    margin-top: 0.2rem !important;
    padding: 0.28rem 0.45rem !important;
    gap: 0.75rem !important;
    flex: 0 0 auto;
  }
  body.kiosk-mode .printers-panel > .pulse-panel .pulse-legend-label {
    font-size: 0.68rem !important;
  }
  body.kiosk-mode .printers-panel > .pulse-panel h2 {
    font-size: 0.78rem !important;
  }
  body.kiosk-mode .pulse-head { margin-bottom: 0.12rem !important; }
  body.kiosk-mode .pulse-subtitle { margin: 0 0 0.1rem !important; }
  body.kiosk-mode .farm-summary-chip {
    font-size: 0.48rem !important;
    padding: 0.12rem 0.32rem !important;
  }
  body.kiosk-mode .printer-card-meta { display: none !important; }
  body.kiosk-mode .badge { font-size: 0.42rem !important; padding: 0.04rem 0.22rem !important; }
}

/* —— Legacy Grok chat styles (unused; UI removed) —— */
#grok-chat {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s;
}
#grok-chat.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.grok-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 10, 0.72);
  backdrop-filter: blur(4px);
}
.grok-chat-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 22, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.2), 0 24px 60px rgba(0, 0, 0, 0.55);
  clip-path: var(--clip-panel);
  overflow: hidden;
}
.grok-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
}
.grok-chat-head h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.grok-chat-close {
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: transparent;
  color: var(--text);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  clip-path: var(--clip-sm);
}
.grok-chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 180px;
}
.grok-bubble {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.grok-bubble.user {
  align-self: flex-end;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.grok-bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.grok-bubble.system {
  align-self: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  border: 1px dashed rgba(255, 184, 28, 0.35);
  background: rgba(255, 184, 28, 0.06);
}
.grok-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.8rem;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}
.grok-chat-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  clip-path: var(--clip-sm);
  font: inherit;
}
.grok-chat-form button {
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 184, 28, 0.12));
  color: var(--text);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  clip-path: var(--clip-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}


.pulse-chart-glow {
  animation: pulse-glow-breathe 3.2s ease-in-out infinite;
  background: radial-gradient(ellipse at 50% 70%, rgba(0, 229, 255, 0.14), transparent 68%);
  opacity: 0.85;
  pointer-events: none;
}
@keyframes pulse-glow-breathe {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}



/* —— Header weather (gap between title and clock) + warnings —— */
.hero-wx-mid {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  max-width: none;
  padding: 0.1rem 0.75rem;
  position: relative;
  z-index: 5;
  overflow: visible;
}
.hud-weather {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.7rem 0.32rem 0.45rem;
  border: 1px solid rgba(0, 229, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 184, 28, 0.08));
  clip-path: var(--clip-sm);
  font-family: var(--mono);
  white-space: nowrap;
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.28), inset 0 0 18px rgba(0, 229, 255, 0.06);
}
.hud-weather[hidden] { display: none !important; }
/* Keep chip visible even if attribute races before weather.js runs */
.hud-weather:not([hidden]) { display: inline-flex !important; }
.wx-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 184, 28, 0.35));
}
.wx-icon-svg {
  width: 32px;
  height: 32px;
  display: block;
}
.hud-weather[data-kind="sun"] .wx-icon,
.hud-weather[data-kind="partly"] .wx-icon {
  filter: drop-shadow(0 0 10px rgba(255, 184, 28, 0.55));
}
.hud-weather[data-kind="rain"] .wx-icon,
.hud-weather[data-kind="thunder"] .wx-icon {
  filter: drop-shadow(0 0 8px rgba(94, 200, 255, 0.45));
}
.wx-text {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
.wx-temp {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wx-cond {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.wx-wind {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.hud-warnings {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: min(420px, 48vw);
}
.hud-warnings[hidden] { display: none !important; }
.hero-actions { margin-left: 0; flex-shrink: 0; }
.warn-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  clip-path: var(--clip-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.warn-red {
  color: #ffb4bc;
  border-color: rgba(255, 77, 106, 0.65);
  background: rgba(255, 40, 70, 0.18);
  box-shadow: 0 0 10px rgba(255, 40, 70, 0.25);
}
.warn-amber {
  color: #ffe0a0;
  border-color: rgba(255, 184, 28, 0.55);
  background: rgba(255, 184, 28, 0.12);
  box-shadow: 0 0 8px rgba(255, 184, 28, 0.2);
}

/* —— Ops Feed (under Print Farm) —— */
.ops-feed {
  margin-top: 0.45rem;
  padding: 0.4rem 0.45rem 0.5rem;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.05), transparent 55%),
    rgba(0, 0, 0, 0.18);
  clip-path: var(--clip-sm);
  flex: 0 0 auto;
}
.ops-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.ops-feed-kicker {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.ops-feed-quiet {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(138, 164, 184, 0.28);
  clip-path: var(--clip-sm);
}
.ops-feed-quiet[hidden] { display: none !important; }
.ops-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.3rem;
}
.ops-feed-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.32rem 0.42rem;
  border: 1px solid rgba(0, 229, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  clip-path: var(--clip-sm);
}
.ops-feed-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ops-feed-value {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-feed-value b {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.ops-feed-card.is-hot {
  border-color: rgba(255, 184, 28, 0.5);
  background: rgba(255, 184, 28, 0.1);
}
.ops-feed-card.is-hot .ops-feed-value b { color: var(--gold); }
.ops-feed-card.is-error {
  border-color: rgba(255, 77, 106, 0.55);
  background: rgba(255, 40, 70, 0.12);
}
.ops-feed-card.is-clear .ops-feed-value b { color: var(--green); }
.feed-sep {
  margin: 0 0.28rem;
  opacity: 0.45;
}
.feed-eta b { margin-right: 0.15rem; }
.feed-stat { white-space: nowrap; }
.feed-money { color: var(--gold); }
.feed-carriers { color: var(--text-muted); }
.shop-glance-hint {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-left: 0.35rem;
}

@media (max-width: 980px) {
  .hero-wx-mid { order: 3; width: 100%; max-width: none; }
  .hero-clock { margin-left: 0; }
  .ops-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .printer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}


/* Soft placeholders for future label printers */
.ops-feed-soon {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  opacity: 0.9;
}
.ops-feed-soon b { color: var(--gold); font-weight: 700; }

@media (max-height: 900px) {
  body.kiosk-mode .ops-feed-soon {
    font-size: 0.4rem !important;
    margin-top: 0.08rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.kiosk-mode .glance-cell .ops-feed-soon {
    font-size: 0.38rem !important;
  }
}


/* —— Business Pulse under Ops Feed (left column) —— */
.printers-panel > .pulse-panel {
  margin-top: 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
}
/* Now Printing panel removed — farm cards carry status/ETA */
.now-printing,
#now-printing {
  display: none !important;
}

.printers-panel > .ops-feed {
  flex: 0 0 auto;
}
.printers-panel > .now-printing {
  flex: 0 1 auto;
}

/* —— Now Printing hero (fills farm empty space) —— */
.now-printing {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background:
    linear-gradient(165deg, rgba(0, 229, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 184, 28, 0.05), transparent 55%),
    rgba(0, 0, 0, 0.28);
  clip-path: var(--clip-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 7.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.now-printing.is-idle {
  border-color: rgba(61, 255, 154, 0.28);
  background:
    linear-gradient(165deg, rgba(61, 255, 154, 0.07), transparent 50%),
    rgba(0, 0, 0, 0.22);
}
.now-printing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.now-printing-title-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}
.now-printing-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.now-printing-count {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  clip-path: var(--clip-sm);
  background: rgba(0, 229, 255, 0.08);
}
.now-printing-next {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  min-width: 0;
}
.now-printing-next-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.now-printing-next-value {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
}
.now-printing-next-value b {
  color: var(--cyan);
  font-weight: 800;
}
.now-printing-next-value .now-eta {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 184, 28, 0.4);
  font-variant-numeric: tabular-nums;
}
.now-printing-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.now-printing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
  align-content: stretch;
  flex: 1 1 auto;
}
.now-print-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.55rem 0.65rem 0.6rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.1), transparent 60%),
    rgba(0, 8, 16, 0.55);
  clip-path: var(--clip-sm);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}
.now-print-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}
.now-print-name {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf6ff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
.now-print-pct {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
.now-print-job {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.now-print-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.now-print-left {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 184, 28, 0.3);
  font-variant-numeric: tabular-nums;
}
.now-progress {
  height: 0.45rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  overflow: hidden;
  margin-top: 0.1rem;
}
.now-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.85), rgba(255, 184, 28, 0.9));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  transition: width 0.4s ease;
}
.now-progress-indeterminate .now-progress-bar {
  animation: now-progress-pulse 1.6s ease-in-out infinite;
}
@keyframes now-progress-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.now-printing-idle-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 0.85rem 1rem;
  text-align: center;
  border: 1px dashed rgba(61, 255, 154, 0.35);
  background: rgba(61, 255, 154, 0.05);
  clip-path: var(--clip-sm);
}
.now-printing-idle-title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--green);
  text-shadow: 0 0 12px rgba(61, 255, 154, 0.35);
}
.now-printing-idle-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.now-printing-idle-sub b {
  color: var(--cyan);
  font-weight: 800;
}
.now-printing-idle {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.75rem;
}

@media (max-width: 980px) {
  .now-printing-grid {
    grid-template-columns: 1fr;
  }
  .now-printing-next {
    align-items: flex-start;
  }
}

/* —— HUD polish animations (tasteful wallboard motion) —— */
@keyframes hud-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kpi-soft-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 229, 255, 0.35); filter: brightness(1); }
  50% { text-shadow: 0 0 16px rgba(0, 229, 255, 0.55); filter: brightness(1.08); }
}
@keyframes wx-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes farm-error-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 40, 70, 0.35),
      0 0 14px rgba(255, 40, 70, 0.28),
      inset 0 0 14px rgba(255, 40, 70, 0.06);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 40, 70, 0.55),
      0 0 22px rgba(255, 40, 70, 0.42),
      inset 0 0 18px rgba(255, 40, 70, 0.1);
  }
}
@keyframes chip-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.app-shell > .hero-brand.hud-panel {
  animation: hud-panel-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.order-notice-dock,
.live-orders-strip {
  animation: hud-panel-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s both;
}
.ops-board .printers-panel.hud-panel {
  animation: hud-panel-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}
.ops-board .ship-panel.hud-panel {
  animation: hud-panel-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.14s both;
}
.ops-board .fulfill-desk.hud-panel {
  animation: hud-panel-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both;
}
.printers-panel > .pulse-panel.hud-panel {
  animation: hud-panel-in 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) 0.16s both;
}
.ops-feed {
  animation: hud-panel-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

.ship-kpi .kpi-value,
.fulfill-value:not(.is-muted):not(.is-soft) {
  animation: kpi-soft-pulse 3.6s ease-in-out infinite;
}
.ops-feed-value b {
  animation: kpi-soft-pulse 4s ease-in-out infinite;
}

.wx-icon,
.wx-icon-svg {
  animation: wx-icon-float 4.2s ease-in-out infinite;
  transform-origin: center;
}

.printer-card-error,
.printer-card-glow-error {
  animation: farm-error-glow 2.4s ease-in-out infinite;
}

.farm-summary-chip,
.pulse-health-chip {
  animation: chip-breathe 3.2s ease-in-out infinite;
}

/* Nested pulse: flex column so chart + legend both fit */
.printers-panel > .pulse-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.printers-panel > .pulse-panel .pulse-chart-wrap {
  overflow: hidden;
  flex: 1 1 auto;
}
.printers-panel > .pulse-panel .pulse-legend {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell > .hero-brand.hud-panel,
  .order-notice-dock,
  .live-orders-strip,
  .ops-board .printers-panel.hud-panel,
  .ops-board .ship-panel.hud-panel,
  .ops-board .fulfill-desk.hud-panel,
  .printers-panel > .pulse-panel.hud-panel,
  .ops-feed,
  .ship-kpi .kpi-value,
  .fulfill-value,
  .ops-feed-value b,
  .wx-icon,
  .wx-icon-svg,
  .printer-card-error,
  .printer-card-glow-error,
  .farm-summary-chip,
  .pulse-health-chip {
    animation: none !important;
  }
}


/* —— Packing desk removed (merged into ShipStation) —— */
.fulfill-desk,
#fulfill-desk {
  display: none !important;
}

/* ShipStation packing printers strip */
.ship-packing {
  margin-top: 0.45rem;
  padding: 0.35rem 0.4rem 0.4rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.06), transparent 55%), rgba(0, 0, 0, 0.22);
  clip-path: var(--clip-sm);
  flex: 0 0 auto;
}
.ship-packing-head {
  margin-bottom: 0.25rem;
}
.ship-packing-kicker {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.ship-packing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}
.ship-pack-cell {
  background: var(--bg-kpi);
  border: 1px solid var(--border);
  clip-path: var(--clip-sm);
  padding: 0.32rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.ship-pack-cell.is-wide { grid-column: 1 / -1; }
.ship-pack-label {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ship-pack-value {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.15;
  text-shadow: 0 0 8px var(--cyan-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ship-pack-value.is-muted {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 650;
  text-shadow: none;
  white-space: normal;
}
.ship-pack-cell.is-ok .ship-pack-value { color: var(--green); text-shadow: 0 0 8px rgba(61, 255, 154, 0.35); }
.ship-pack-cell.is-hot .ship-pack-value { color: var(--gold); text-shadow: var(--glow-gold); }
.ship-pack-cell.is-error .ship-pack-value { color: #ff6b6b; }
.ship-pack-cell.is-soft .ship-pack-value { color: var(--text-dim); text-shadow: none; font-size: 0.78rem; }
.ship-pack-cell.is-soon {
  border-style: dashed;
  border-color: rgba(255, 184, 28, 0.28);
}

body.kiosk-mode .ship-packing {
  margin-top: 0.22rem !important;
  padding: 0.2rem 0.28rem 0.24rem !important;
}
body.kiosk-mode .ship-packing-kicker { font-size: 0.62rem !important; }
body.kiosk-mode .ship-packing-grid { gap: 0.16rem !important; }
body.kiosk-mode .ship-pack-cell { padding: 0.18rem 0.28rem !important; }
body.kiosk-mode .ship-pack-label { font-size: 0.62rem !important; }
body.kiosk-mode .ship-pack-value { font-size: 1.05rem !important; }
body.kiosk-mode .ship-pack-value.is-muted { font-size: 0.52rem !important; }
body.kiosk-mode .ship-pack-cell.is-soft .ship-pack-value { font-size: 0.58rem !important; }

/* Right column: ShipStation alone fills height */
.ops-secondary > .ship-panel {
  flex: 1 1 auto;
  min-height: 0;
}
body.kiosk-mode .ops-secondary > .ship-panel {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* Ops Feed permanently removed */
.ops-feed,
#ops-feed {
  display: none !important;
}

/* —— Inspire strip (logo ↔ quote) under Print Farm —— */
.inspire-panel {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  padding: 0.35rem 0.55rem;
  min-height: 5.5rem;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(168, 85, 247, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.85), rgba(4, 8, 16, 0.7));
  clip-path: var(--clip-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.08),
    inset 0 0 24px rgba(168, 85, 247, 0.06);
}
.inspire-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  animation: inspire-sheen 7s ease-in-out infinite;
}
@keyframes inspire-sheen {
  0%, 100% { transform: translateX(-30%); opacity: 0.3; }
  50% { transform: translateX(30%); opacity: 0.7; }
}
.inspire-stage {
  position: relative;
  width: 100%;
  min-height: 4.8rem;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.inspire-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
  pointer-events: none;
}
.inspire-face.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.inspire-logo-face {
  position: relative;
}
.inspire-logo-halo {
  position: absolute;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35), transparent 68%);
  filter: blur(6px);
  animation: inspire-halo 2.8s ease-in-out infinite;
  z-index: 0;
}
@keyframes inspire-halo {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.95; }
}
.inspire-logo {
  position: relative;
  z-index: 1;
  width: 5.4rem;
  height: 5.4rem;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.45)) drop-shadow(0 0 22px rgba(168, 85, 247, 0.3));
  transform-style: preserve-3d;
  will-change: transform;
}
.inspire-logo-face.is-spinning .inspire-logo {
  animation: inspire-spin-roll 1.35s cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
@keyframes inspire-spin-roll {
  0% { transform: rotate(0deg) rotateY(0deg) translateY(0) scale(1); }
  35% { transform: rotate(180deg) rotateY(90deg) translateY(-10px) scale(1.08); }
  70% { transform: rotate(300deg) rotateY(220deg) translateY(4px) scale(1.12); }
  100% { transform: rotate(360deg) rotateY(360deg) translateY(0) scale(1); }
}
.inspire-logo-face:not(.is-spinning) .inspire-logo {
  animation: inspire-float 3.2s ease-in-out infinite;
}
@keyframes inspire-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.inspire-logo-face.is-leaving {
  opacity: 0;
  transform: scale(0.7) rotateY(40deg);
}
.inspire-quote-face {
  padding: 0.2rem 0.8rem;
  text-align: center;
  max-width: 42rem;
}
.inspire-quote-face.is-entering {
  animation: inspire-quote-in 0.55s ease forwards;
}
@keyframes inspire-quote-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.inspire-quote-text {
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #e8f7ff;
  text-shadow:
    0 0 14px rgba(0, 229, 255, 0.35),
    0 0 28px rgba(168, 85, 247, 0.2);
}
.inspire-quote-attr {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.inspire-quote-attr[hidden] { display: none !important; }
.inspire-quote-face.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
}
.inspire-quote-face.is-fading {
  opacity: 0.25;
  transition: opacity 0.35s ease;
}

/* Reduced motion: static logo left + quote right */
.inspire-stage.inspire-reduced {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  perspective: none;
}
.inspire-stage.inspire-reduced .inspire-face {
  position: static;
  grid-area: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease;
}
.inspire-stage.inspire-reduced .inspire-logo-face {
  flex: 0 0 auto;
}
.inspire-stage.inspire-reduced .inspire-logo {
  width: 3.6rem;
  height: 3.6rem;
  animation: none !important;
}
.inspire-stage.inspire-reduced .inspire-logo-halo {
  width: 4.4rem;
  height: 4.4rem;
  animation: none;
  opacity: 0.5;
}
.inspire-stage.inspire-reduced .inspire-quote-face {
  flex: 1 1 auto;
  align-items: flex-start;
  text-align: left;
  padding: 0;
}
.inspire-stage.inspire-reduced .inspire-quote-text {
  font-size: clamp(0.92rem, 1.4vw, 1.15rem);
}

@media (prefers-reduced-motion: reduce) {
  .inspire-panel::before,
  .inspire-logo-halo,
  .inspire-logo {
    animation: none !important;
  }
}

/* Kiosk: compact inspire strip, taller Pulse */
body.kiosk-mode .inspire-panel {
  margin-top: 0.12rem !important;
  margin-bottom: 0.06rem !important;
  padding: 0.18rem 0.4rem !important;
  min-height: 3.6rem !important;
}
body.kiosk-mode .inspire-stage {
  min-height: 3.2rem !important;
}
body.kiosk-mode .inspire-logo {
  width: 3.35rem !important;
  height: 3.35rem !important;
}
body.kiosk-mode .inspire-logo-halo {
  width: 4.2rem !important;
  height: 4.2rem !important;
}
body.kiosk-mode .inspire-quote-text {
  font-size: clamp(0.95rem, 1.35vw, 1.2rem) !important;
}
body.kiosk-mode .inspire-quote-attr {
  font-size: 0.55rem !important;
  margin-top: 0.18rem !important;
}
body.kiosk-mode .inspire-quote-face {
  padding: 0.1rem 0.5rem !important;
  max-width: 36rem;
}

/* Pulse takes remaining left-column height after farm + inspire */
body.kiosk-mode .printers-panel > .pulse-panel {
  flex: 4 1 0 !important;
  min-height: 260px !important;
}
body.kiosk-mode .pulse-chart-wrap {
  min-height: 220px !important;
}
body.kiosk-mode .pulse-chart-wrap canvas {
  min-height: 200px !important;
}
@media (max-height: 0px) { /* DISABLED secondary compact — BREATHE owns short-height */
  body.kiosk-mode .printers-panel > .pulse-panel {
    flex: 4.2 1 0 !important;
    min-height: 250px !important;
  }
  body.kiosk-mode .pulse-chart-wrap {
    min-height: 210px !important;
  }
  body.kiosk-mode .pulse-chart-wrap canvas {
    min-height: 190px !important;
  }
  body.kiosk-mode .inspire-panel {
    min-height: 3.4rem !important;
  }
}

/* —— KIOSK BREATHE (~1521×855 monitor 2) —— */
/* Undo over-compact max-height:900px crunch: readable type, roomy cards, taller Pulse */
.ship-packing-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.ship-postage {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 184, 28, 0.4);
  background:
    linear-gradient(105deg, rgba(255, 184, 28, 0.14), transparent 55%),
    rgba(0, 0, 0, 0.28);
  clip-path: var(--clip-sm);
}
.ship-postage-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.ship-postage-value {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 850;
  color: #fff6d6;
  text-shadow: 0 0 14px rgba(255, 184, 28, 0.45);
  letter-spacing: 0.02em;
}
.ship-postage-note {
  flex: 1 1 auto;
  font-size: 0.58rem;
  color: var(--text-dim);
  min-width: 8rem;
}

@media (max-height: 900px) {
  body.kiosk-mode .app-shell {
    padding: 0.45rem 0.7rem 0.5rem !important;
    gap: 0.35rem !important;
  }
  body.kiosk-mode .hero-brand {
    padding: 0.4rem 0.7rem !important;
    gap: 0.55rem 0.85rem !important;
  }
  body.kiosk-mode .hero-logo { width: 40px !important; height: 40px !important; }
  body.kiosk-mode .hero-copy h1,
  body.kiosk-mode .status-board-title,
  body.kiosk-mode .ops-hud-title {
    font-size: clamp(1.05rem, 1.9vw, 1.35rem) !important;
    letter-spacing: 0.08em !important;
  }
  body.kiosk-mode .status-board-kicker { font-size: 0.58rem !important; }
  body.kiosk-mode .hud-clock-time { font-size: clamp(1.55rem, 2.8vw, 2rem) !important; }
  body.kiosk-mode .hud-clock-date { font-size: 0.62rem !important; }
  body.kiosk-mode .wx-temp { font-size: 1.4rem !important; }
  body.kiosk-mode .order-notice-dock,
  body.kiosk-mode .live-orders-strip {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.78rem !important;
    gap: 0.5rem 0.85rem !important;
  }
  body.kiosk-mode .live-stat { font-size: 0.68rem !important; padding: 0.22rem 0.48rem !important; }
  body.kiosk-mode .live-stat b { font-size: 1.05rem !important; }

  body.kiosk-mode .ops-board {
    gap: 0.5rem !important;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr) !important;
  }
  body.kiosk-mode .printers-panel {
    padding: 0.55rem 0.65rem !important;
  }
  body.kiosk-mode .printers-panel .command-kicker { font-size: 0.58rem !important; }
  body.kiosk-mode .printers-panel h2 { font-size: 1rem !important; }
  body.kiosk-mode .ship-panel h2,
  body.kiosk-mode .pulse-panel h2 { font-size: 1rem !important; }
  body.kiosk-mode .ship-panel .command-kicker,
  body.kiosk-mode .pulse-panel .command-kicker { font-size: 0.58rem !important; }

  body.kiosk-mode .printer-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
    grid-auto-rows: minmax(58px, auto) !important;
    gap: 0.28rem !important;
    margin-bottom: 0.28rem !important;
  }
  body.kiosk-mode .printer-card {
    padding: 0.28rem 0.35rem !important;
    max-height: none !important;
    min-height: 56px !important;
    gap: 0.12rem !important;
  }
  body.kiosk-mode .printer-name {
    font-size: clamp(0.78rem, 1.2vw, 0.95rem) !important;
  }
  body.kiosk-mode .printer-status {
    font-size: 0.55rem !important;
    padding: 0.12rem 0.28rem !important;
  }
  body.kiosk-mode .printer-timeleft { font-size: 0.72rem !important; }
  body.kiosk-mode .printer-progress { height: 0.35rem !important; }
  body.kiosk-mode .printer-progress-pct { font-size: 0.58rem !important; }
  body.kiosk-mode .farm-summary-chip {
    font-size: 0.58rem !important;
    padding: 0.18rem 0.4rem !important;
  }
  body.kiosk-mode .badge { font-size: 0.52rem !important; padding: 0.1rem 0.32rem !important; }
  body.kiosk-mode .section-icon-lg { width: 44px !important; height: 44px !important; }
  body.kiosk-mode .section-icon-lg svg { width: 28px !important; height: 28px !important; }

  body.kiosk-mode .inspire-panel {
    min-height: clamp(4.2rem, 9vh, 5.4rem) !important;
    padding: 0.35rem 0.55rem !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.2rem !important;
  }
  body.kiosk-mode .inspire-stage { min-height: clamp(3.6rem, 7.5vh, 4.6rem) !important; }
  body.kiosk-mode .inspire-logo {
    width: clamp(3.6rem, 6.5vh, 4.6rem) !important;
    height: clamp(3.6rem, 6.5vh, 4.6rem) !important;
  }
  body.kiosk-mode .inspire-logo-halo {
    width: clamp(4.6rem, 8vh, 5.8rem) !important;
    height: clamp(4.6rem, 8vh, 5.8rem) !important;
  }
  body.kiosk-mode .inspire-quote-text {
    font-size: clamp(1rem, 1.55vw, 1.28rem) !important;
  }
  body.kiosk-mode .inspire-quote-attr { font-size: 0.62rem !important; }

  body.kiosk-mode .printers-panel > .pulse-panel {
    flex: 3.6 1 0 !important;
    min-height: clamp(220px, 32vh, 360px) !important;
    padding: 0.45rem 0.55rem !important;
    margin-top: 0.25rem !important;
  }
  body.kiosk-mode .pulse-subtitle { font-size: 0.62rem !important; margin: 0 0 0.2rem !important; }
  body.kiosk-mode .pulse-health-chip { font-size: 0.58rem !important; padding: 0.2rem 0.45rem !important; }
  body.kiosk-mode .pulse-chart-wrap {
    min-height: clamp(160px, 24vh, 280px) !important;
    padding: 0.3rem 0.35rem !important;
  }
  body.kiosk-mode .pulse-chart-wrap canvas { min-height: clamp(140px, 22vh, 250px) !important; }
  body.kiosk-mode .pulse-legend {
    font-size: 0.78rem !important;
    padding: 0.32rem 0.5rem !important;
    margin-top: 0.28rem !important;
  }
  body.kiosk-mode .pulse-legend-label { font-size: 0.78rem !important; }
  body.kiosk-mode .printers-panel > .pulse-panel h2 { font-size: 1rem !important; }
  body.kiosk-mode .printers-panel > .pulse-panel .pulse-subtitle { font-size: 0.62rem !important; }

  body.kiosk-mode .ship-panel {
    padding: 0.5rem 0.6rem !important;
  }
  body.kiosk-mode .ship-kpi-grid {
    gap: 0.35rem !important;
  }
  body.kiosk-mode .ship-kpi {
    padding: 0.4rem 0.45rem !important;
  }
  body.kiosk-mode .ship-kpi .kpi-label { font-size: 0.55rem !important; }
  body.kiosk-mode .ship-kpi .kpi-value { font-size: clamp(1.15rem, 2vw, 1.45rem) !important; }

  body.kiosk-mode .ship-postage {
    margin: 0.4rem 0 0.35rem !important;
    padding: 0.4rem 0.55rem !important;
  }
  body.kiosk-mode .ship-postage-kicker { font-size: 0.58rem !important; }
  body.kiosk-mode .ship-postage-value { font-size: clamp(1.25rem, 2.2vw, 1.7rem) !important; }
  body.kiosk-mode .ship-postage-note { font-size: 0.55rem !important; }

  body.kiosk-mode .ship-packing {
    margin-top: 0.35rem !important;
    padding: 0.35rem 0.4rem 0.4rem !important;
  }
  body.kiosk-mode .ship-packing-kicker { font-size: 0.65rem !important; }
  body.kiosk-mode .ship-packing-grid { gap: 0.28rem !important; }
  body.kiosk-mode .ship-pack-cell { padding: 0.32rem 0.38rem !important; }
  body.kiosk-mode .ship-pack-label { font-size: 0.65rem !important; }
  body.kiosk-mode .ship-pack-value { font-size: 1.05rem !important; }
}
/* —— Pulse sales chips (SumUp + Squarespace) —— */
.pulse-sales {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0.2rem 0 0.35rem;
  flex: 0 0 auto;
}
.pulse-sales-chip {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.07), transparent 60%), rgba(0, 0, 0, 0.22);
  clip-path: var(--clip-sm);
  min-width: 0;
}
.pulse-sales-chip[data-status="needs_key"],
.pulse-sales-chip[data-status="error"] {
  border-style: dashed;
  border-color: rgba(255, 184, 28, 0.35);
  opacity: 0.92;
}
.pulse-sales-chip[data-status="live"] {
  border-color: rgba(61, 255, 154, 0.35);
}
.pulse-sales-kicker {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.pulse-sales-value {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 850;
  color: #e8f7ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-sales-chip[data-status="needs_key"] .pulse-sales-value,
.pulse-sales-chip[data-status="error"] .pulse-sales-value {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-shadow: none;
}
.pulse-sales-meta {
  font-size: 0.52rem;
  color: var(--text-dim);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.kiosk-mode .pulse-sales {
  gap: 0.28rem !important;
  margin: 0.15rem 0 0.25rem !important;
}
body.kiosk-mode .pulse-sales-chip {
  padding: 0.28rem 0.38rem !important;
}
body.kiosk-mode .pulse-sales-kicker { font-size: 0.5rem !important; }
body.kiosk-mode .pulse-sales-value { font-size: clamp(0.9rem, 1.5vw, 1.15rem) !important; }
body.kiosk-mode .pulse-sales-meta { font-size: 0.48rem !important; }
@media (max-height: 900px) {
  body.kiosk-mode .pulse-sales {
    gap: 0.28rem !important;
    margin: 0.12rem 0 0.22rem !important;
  }
  body.kiosk-mode .pulse-sales-chip { padding: 0.28rem 0.35rem !important; }
  body.kiosk-mode .pulse-sales-value { font-size: 0.95rem !important; }
}

/* ==== KIOSK FORCE BREATHE v15 (monitor 2 ~1521x855) ==== */
/* Compact max-height:900px rules DISABLED above; these own short-height layout. */
@media (max-height: 900px) {
  html.kiosk-mode body.kiosk-mode,
  body.kiosk-mode {
    font-size: 15px !important;
  }
  html.kiosk-mode body.kiosk-mode .app-shell,
  body.kiosk-mode .app-shell {
    padding: 0.5rem 0.75rem 0.55rem !important;
    gap: 0.4rem !important;
  }
  html.kiosk-mode body.kiosk-mode .printer-card,
  body.kiosk-mode .printer-card {
    min-height: 90px !important;
    max-height: none !important;
    padding: 0.4rem 0.45rem !important;
  }
  html.kiosk-mode body.kiosk-mode .printer-name,
  body.kiosk-mode .printer-name {
    font-size: clamp(0.85rem, 1.35vw, 1.05rem) !important;
  }
  html.kiosk-mode body.kiosk-mode .printer-status,
  body.kiosk-mode .printer-status {
    font-size: 0.65rem !important;
  }
  html.kiosk-mode body.kiosk-mode .printer-timeleft,
  body.kiosk-mode .printer-timeleft {
    font-size: 0.85rem !important;
  }
  html.kiosk-mode body.kiosk-mode .farm-summary-chip,
  body.kiosk-mode .farm-summary-chip {
    font-size: 0.7rem !important;
    padding: 0.22rem 0.5rem !important;
    min-height: 1.6rem !important;
  }
  html.kiosk-mode body.kiosk-mode .printer-grid,
  body.kiosk-mode .printer-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    grid-auto-rows: minmax(90px, auto) !important;
    gap: 0.35rem !important;
  }
  html.kiosk-mode body.kiosk-mode .hero-copy h1,
  html.kiosk-mode body.kiosk-mode .status-board-title,
  html.kiosk-mode body.kiosk-mode .ops-hud-title,
  body.kiosk-mode .hero-copy h1,
  body.kiosk-mode .status-board-title,
  body.kiosk-mode .ops-hud-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  }
  html.kiosk-mode body.kiosk-mode .status-board-kicker,
  html.kiosk-mode body.kiosk-mode .command-kicker,
  body.kiosk-mode .status-board-kicker,
  body.kiosk-mode .command-kicker,
  body.kiosk-mode .printers-panel .command-kicker,
  body.kiosk-mode .ship-panel .command-kicker,
  body.kiosk-mode .pulse-panel .command-kicker {
    font-size: 0.7rem !important;
  }
  html.kiosk-mode body.kiosk-mode .ship-pack-label,
  body.kiosk-mode .ship-pack-label {
    font-size: 0.65rem !important;
  }
  html.kiosk-mode body.kiosk-mode .ship-pack-value,
  body.kiosk-mode .ship-pack-value {
    font-size: 1.05rem !important;
  }
  html.kiosk-mode body.kiosk-mode .ship-packing-kicker,
  body.kiosk-mode .ship-packing-kicker {
    font-size: 0.65rem !important;
  }
  html.kiosk-mode body.kiosk-mode .ops-feed-label,
  body.kiosk-mode .ops-feed-label,
  html.kiosk-mode body.kiosk-mode .glance-label,
  body.kiosk-mode .glance-label {
    font-size: 0.6rem !important;
  }
  html.kiosk-mode body.kiosk-mode .printers-panel > .pulse-panel,
  body.kiosk-mode .printers-panel > .pulse-panel {
    min-height: clamp(240px, 34vh, 380px) !important;
  }
  html.kiosk-mode body.kiosk-mode .pulse-chart-wrap,
  body.kiosk-mode .pulse-chart-wrap {
    min-height: clamp(170px, 26vh, 300px) !important;
  }
  html.kiosk-mode body.kiosk-mode .pulse-legend-label,
  body.kiosk-mode .pulse-legend-label {
    font-size: 0.85rem !important;
  }
  html.kiosk-mode body.kiosk-mode .ship-kpi .kpi-value,
  body.kiosk-mode .ship-kpi .kpi-value {
    font-size: clamp(1.2rem, 2.1vw, 1.5rem) !important;
  }
  html.kiosk-mode body.kiosk-mode .ship-kpi .kpi-label,
  body.kiosk-mode .ship-kpi .kpi-label {
    font-size: 0.65rem !important;
  }
  html.kiosk-mode body.kiosk-mode .hud-clock-time,
  body.kiosk-mode .hud-clock-time {
    font-size: clamp(1.6rem, 3vw, 2.1rem) !important;
  }
}
.ship-packing-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.ship-pack-cell.is-office .ship-pack-label { color: var(--text-dim); }

/* ==== KIOSK FILL v15b — always on for kiosk, fill 855px height ==== */
html.kiosk-mode,
body.kiosk-mode {
  font-size: 16px !important;
}
body.kiosk-mode .app-shell {
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0.55rem 0.8rem 0.6rem !important;
  gap: 0.45rem !important;
  overflow: hidden !important;
}
body.kiosk-mode .ops-board {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0.55rem !important;
}
body.kiosk-mode .printers-panel,
body.kiosk-mode .ops-secondary,
body.kiosk-mode .ship-panel {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
body.kiosk-mode .printer-card {
  min-height: 96px !important;
  max-height: none !important;
  padding: 0.45rem 0.5rem !important;
}
body.kiosk-mode .printer-name {
  font-size: 1rem !important;
}
body.kiosk-mode .printer-status {
  font-size: 0.72rem !important;
}
body.kiosk-mode .printer-timeleft {
  font-size: 0.95rem !important;
}
body.kiosk-mode .printer-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  grid-auto-rows: minmax(96px, auto) !important;
  gap: 0.4rem !important;
}
body.kiosk-mode .farm-summary-chip {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.55rem !important;
}
body.kiosk-mode .hero-copy h1,
body.kiosk-mode .status-board-title,
body.kiosk-mode .ops-hud-title,
body.kiosk-mode .printers-panel h2,
body.kiosk-mode .ship-panel h2,
body.kiosk-mode .pulse-panel h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem) !important;
}
body.kiosk-mode .command-kicker,
body.kiosk-mode .status-board-kicker,
body.kiosk-mode .ship-packing-kicker {
  font-size: 0.72rem !important;
}
body.kiosk-mode .ship-pack-label {
  font-size: 0.7rem !important;
}
body.kiosk-mode .ship-pack-value {
  font-size: 1.1rem !important;
}
body.kiosk-mode .ship-pack-cell {
  padding: 0.4rem 0.45rem !important;
}
body.kiosk-mode .ship-kpi .kpi-value {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem) !important;
}
body.kiosk-mode .ship-kpi .kpi-label {
  font-size: 0.7rem !important;
}
body.kiosk-mode .hud-clock-time {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem) !important;
}
body.kiosk-mode .printers-panel > .pulse-panel {
  flex: 3.8 1 0 !important;
  min-height: 260px !important;
}
body.kiosk-mode .pulse-chart-wrap {
  flex: 1 1 auto !important;
  min-height: 180px !important;
}
body.kiosk-mode .pulse-chart-wrap canvas {
  min-height: 160px !important;
}
body.kiosk-mode .inspire-panel {
  min-height: 4.8rem !important;
}
body.kiosk-mode .inspire-quote-text {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem) !important;
}

/* ==== KIOSK COLUMNS LOCK v16 — never stack farm/ship on wallboard ==== */
body.kiosk-mode .ops-board {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px) !important;
  grid-template-areas: "farm secondary" !important;
  grid-template-rows: minmax(0, 1fr) !important;
}
body.kiosk-mode .ops-board .printers-panel { grid-area: farm !important; }
body.kiosk-mode .ops-board .ops-secondary { grid-area: secondary !important; min-width: 340px !important; }
@media (max-width: 1400px) {
  body.kiosk-mode .ops-board {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px) !important;
    grid-template-areas: "farm secondary" !important;
  }
}
@media (max-width: 1100px) {
  body.kiosk-mode .ops-board {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
    grid-template-areas: "farm secondary" !important;
  }
}

/* ==== KIOSK HARD SPLIT v18 — force farm | ship side-by-side ==== */
html.kiosk-mode body.kiosk-mode .ops-board,
html.kiosk-mode .ops-board,
body.kiosk-mode .ops-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  grid-template-rows: minmax(0, 1fr) !important;
  grid-template-areas: "farm secondary" !important;
  gap: 0.55rem !important;
  align-items: stretch !important;
  width: 100% !important;
}
html.kiosk-mode body.kiosk-mode .ops-board .printers-panel,
html.kiosk-mode .ops-board .printers-panel,
body.kiosk-mode .ops-board .printers-panel {
  grid-area: farm !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: auto !important;
  max-width: none !important;
}
html.kiosk-mode body.kiosk-mode .ops-board .ops-secondary,
html.kiosk-mode .ops-board .ops-secondary,
body.kiosk-mode .ops-board .ops-secondary {
  grid-area: secondary !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
}
html.kiosk-mode body.kiosk-mode .ship-panel,
html.kiosk-mode .ship-panel,
body.kiosk-mode .ship-panel {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
html.kiosk-mode body.kiosk-mode .command-kicker,
html.kiosk-mode body.kiosk-mode .status-board-kicker,
html.kiosk-mode body.kiosk-mode .ship-packing-kicker,
html.kiosk-mode body.kiosk-mode .printer-farm-label,
body.kiosk-mode .command-kicker,
body.kiosk-mode .status-board-kicker,
body.kiosk-mode .ship-packing-kicker,
body.kiosk-mode .printer-farm-label {
  font-size: 0.8rem !important;
  letter-spacing: 0.12em !important;
}
html.kiosk-mode body.kiosk-mode .ship-pack-label,
body.kiosk-mode .ship-pack-label {
  font-size: 0.75rem !important;
}
html.kiosk-mode body.kiosk-mode .ship-pack-value,
body.kiosk-mode .ship-pack-value {
  font-size: 1.15rem !important;
}
html.kiosk-mode body.kiosk-mode .printer-name,
body.kiosk-mode .printer-name {
  font-size: 1.05rem !important;
}
html.kiosk-mode body.kiosk-mode .printer-status,
body.kiosk-mode .printer-status {
  font-size: 0.78rem !important;
}
html.kiosk-mode body.kiosk-mode .printer-card,
body.kiosk-mode .printer-card {
  min-height: 100px !important;
}

/* ==== KIOSK MINMAX FIX v19b — prevent farm min-content from blowing columns ==== */
html.kiosk-mode body.kiosk-mode .ops-board,
body.kiosk-mode .ops-board {
  grid-template-columns: minmax(0, 1fr) 380px !important;
}
html.kiosk-mode body.kiosk-mode .printers-panel,
body.kiosk-mode .printers-panel,
html.kiosk-mode body.kiosk-mode .ops-secondary,
body.kiosk-mode .ops-secondary,
html.kiosk-mode body.kiosk-mode .pulse-panel,
body.kiosk-mode .pulse-panel,
html.kiosk-mode body.kiosk-mode .pulse-chart-wrap,
body.kiosk-mode .pulse-chart-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
}
html.kiosk-mode body.kiosk-mode .pulse-chart-wrap canvas,
body.kiosk-mode .pulse-chart-wrap canvas {
  width: 100% !important;
  max-width: 100% !important;
}
html.kiosk-mode body.kiosk-mode .printer-grid,
body.kiosk-mode .printer-grid {
  min-width: 0 !important;
  max-width: 100% !important;
}
html.kiosk-mode body.kiosk-mode .ops-secondary,
body.kiosk-mode .ops-secondary {
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
}


/* ---- Ship fund row: Postage Label Balance + Visitors Today ---- */
.ship-fund-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.35rem 0 0.45rem;
}
.ship-postage,
.ship-visitors {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0;
  padding: 0.5rem 0.65rem 0.55rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 28, 0.45);
  background:
    linear-gradient(125deg, rgba(255, 184, 28, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.32);
  clip-path: var(--clip-sm);
  box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.12), 0 0 18px rgba(255, 184, 28, 0.18);
  animation: fund-glow-pulse 2.8s ease-in-out infinite;
}
.ship-visitors {
  border-color: rgba(0, 229, 255, 0.45);
  background:
    linear-gradient(125deg, rgba(0, 229, 255, 0.16), transparent 55%),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12), 0 0 18px rgba(0, 229, 255, 0.2);
  animation-name: visitors-glow-pulse;
}
.ship-postage.is-live::after,
.ship-visitors.is-live::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 8px rgba(61, 255, 154, 0.9);
}
.ship-postage-kicker,
.ship-visitors-kicker {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  padding-right: 0.9rem;
}
.ship-visitors-kicker {
  color: #7ef0ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}
.ship-postage-value,
.ship-visitors-value {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.35vw, 1.85rem);
  font-weight: 850;
  color: #fff6d6;
  text-shadow: 0 0 16px rgba(255, 184, 28, 0.55);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.ship-visitors-value {
  color: #e8fbff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
}
.ship-postage-note,
.ship-visitors-note {
  font-size: 0.52rem;
  color: var(--text-dim);
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes fund-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.12), 0 0 14px rgba(255, 184, 28, 0.16); }
  50% { box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.28), 0 0 26px rgba(255, 184, 28, 0.35); }
}
@keyframes visitors-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12), 0 0 14px rgba(0, 229, 255, 0.16); }
  50% { box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.3), 0 0 26px rgba(0, 229, 255, 0.38); }
}

/* ---- Local vendor events (horizontal cards under sales chips) ---- */
.pulse-events {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0.12rem 0 0.15rem;
  padding: 0.32rem 0.4rem 0.3rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.07), transparent 55%), rgba(0, 0, 0, 0.22);
  clip-path: var(--clip-sm);
  overflow: hidden;
}
.pulse-events-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.22rem;
  flex: 0 0 auto;
}
.pulse-events-kicker {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.pulse-events-meta {
  font-size: 0.5rem;
  color: var(--text-dim);
  text-align: right;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pulse-events-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
  overflow: hidden;
  min-height: 0;
  flex: 0 0 auto;
  padding-right: 0;
}
.pulse-event {
  padding: 0.28rem 0.32rem;
  border-left: 2px solid rgba(0, 229, 255, 0.5);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}
.pulse-event.is-empty {
  border-left-color: rgba(255, 184, 28, 0.35);
  color: var(--text-dim);
  font-size: 0.65rem;
  grid-column: 1 / -1;
}
.pulse-event-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e8f7ff;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  min-height: 1.55em;
}
.pulse-event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.52rem;
  color: var(--text-dim);
  margin-top: 0;
}
.pulse-event-when { color: #7ef0ff; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-event-venue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-event-att {
  margin-top: 0.02rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  color: rgba(255, 184, 28, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.kiosk-mode .ship-fund-row {
  gap: 0.32rem !important;
  margin: 0.28rem 0 0.35rem !important;
}
body.kiosk-mode .ship-postage,
body.kiosk-mode .ship-visitors {
  padding: 0.42rem 0.5rem !important;
}
body.kiosk-mode .ship-postage-kicker,
body.kiosk-mode .ship-visitors-kicker { font-size: 0.52rem !important; }
body.kiosk-mode .ship-postage-value,
body.kiosk-mode .ship-visitors-value { font-size: clamp(1.2rem, 2.1vw, 1.6rem) !important; }
body.kiosk-mode .pulse-events {
  min-height: 0 !important;
  flex: 0 0 auto !important;
}
body.kiosk-mode .pulse-events-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.22rem !important;
}
body.kiosk-mode .pulse-event-name { font-size: 0.62rem !important; min-height: 1.45em !important; }
@media (max-width: 1100px) {
  .pulse-events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* LIVE pill beside postage / visitors dollar value */
.ship-postage-value-row,
.ship-visitors-value-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.fund-live-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #041016;
  background: linear-gradient(135deg, #5dffc8, #3ad0ff);
  box-shadow: 0 0 12px rgba(93, 255, 200, 0.55), 0 0 2px rgba(58, 208, 255, 0.8);
  animation: fund-live-glow 2.2s ease-in-out infinite;
}
@keyframes fund-live-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(93, 255, 200, 0.45), 0 0 2px rgba(58, 208, 255, 0.7); }
  50% { box-shadow: 0 0 18px rgba(93, 255, 200, 0.85), 0 0 6px rgba(58, 208, 255, 1); }
}

/* ==== di-header-polish-v21: circular logo + balanced brand bar ==== */
.hero-brand {
  display: grid;
  grid-template-columns: minmax(16rem, 1.35fr) minmax(9rem, 0.9fr) auto auto;
  align-items: center;
  column-gap: 1.1rem;
  row-gap: 0.55rem;
  justify-content: stretch;
}
.hero-brand-inner {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  justify-self: start;
  min-width: 0;
}
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid rgba(0, 229, 255, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 255, 0.18), transparent 60%), #061018;
  box-shadow:
    0 0 0 1px rgba(255, 184, 28, 0.22),
    0 0 22px rgba(0, 229, 255, 0.4),
    0 0 48px rgba(0, 229, 255, 0.18);
  filter: none;
}
.hero-copy {
  min-width: 0;
}
.hero-wx-mid {
  justify-self: center;
  align-self: center;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 0.1rem 0.35rem;
}
.hero-clock {
  justify-self: end;
  margin-left: 0;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.08), transparent 70%);
  clip-path: var(--clip-sm);
}
.hero-actions {
  justify-self: end;
}
body.kiosk-mode .hero-brand {
  grid-template-columns: minmax(14rem, 1.4fr) minmax(8rem, 1fr) auto auto !important;
  column-gap: 0.85rem !important;
  align-items: center !important;
}
body.kiosk-mode .hero-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border-width: 1.5px !important;
}
body.kiosk-mode .hero-brand-inner {
  gap: 0.65rem !important;
}
body.kiosk-mode .hero-clock {
  margin-left: 0 !important;
}
@media (max-height: 900px) {
  body.kiosk-mode .hero-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
  }
}
@media (max-width: 1100px) {
  .hero-brand {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand clock"
      "wx actions";
  }
  .hero-brand-inner { grid-area: brand; }
  .hero-wx-mid { grid-area: wx; justify-self: start; }
  .hero-clock { grid-area: clock; }
  .hero-actions { grid-area: actions; }
}

/* ==== Vendor Markets 15s carousel ==== */
.pulse-events-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
}
.pulse-events-list.is-carousel {
  overflow: hidden;
}
.pulse-events-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
  width: 100%;
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}
.pulse-events-track.is-leaving {
  opacity: 0;
  transform: translateX(-12px);
}
.pulse-events-track.is-entering {
  opacity: 0;
  transform: translateX(12px);
}
.pulse-events-track.is-visible {
  opacity: 1;
  transform: translateX(0);
}
body.kiosk-mode .pulse-events-track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.22rem !important;
}
@media (max-width: 1100px) {
  .pulse-events-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---- Customer Mail strip (inside Business Pulse; compact) ---- */
.pulse-mail {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0.1rem 0 0.12rem;
  padding: 0.3rem 0.4rem 0.28rem;
  border: 1px solid rgba(255, 184, 28, 0.28);
  background: linear-gradient(165deg, rgba(255, 184, 28, 0.07), transparent 55%), rgba(0, 0, 0, 0.22);
  clip-path: var(--clip-sm);
  overflow: hidden;
}
.pulse-mail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.18rem;
  flex: 0 0 auto;
}
.pulse-mail-kicker {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.pulse-mail-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.mail-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #1a1200;
  background: var(--gold);
  border: 1px solid rgba(255, 184, 28, 0.8);
  clip-path: var(--clip-sm);
  box-shadow: 0 0 10px rgba(255, 184, 28, 0.35);
}
.pulse-mail-chip {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.06);
}
.pulse-mail-chip[data-status="live"] {
  color: var(--green);
  border-color: rgba(61, 255, 154, 0.4);
  background: rgba(61, 255, 154, 0.08);
}
.pulse-mail-chip[data-status="needs_auth"] {
  color: var(--gold);
  border-color: rgba(255, 184, 28, 0.45);
  background: rgba(255, 184, 28, 0.1);
}
.pulse-mail-chip[data-status="error"] {
  color: #ff8aa0;
  border-color: rgba(255, 77, 106, 0.45);
  background: rgba(255, 77, 106, 0.1);
}
.pulse-mail-list.mail-messages {
  max-height: none;
  overflow: hidden;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pulse-mail .mail-msg {
  padding: 0.28rem 0.4rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 229, 255, 0.14);
}
.pulse-mail .mail-msg.is-unread {
  border-color: rgba(255, 184, 28, 0.4);
  background: rgba(255, 184, 28, 0.06);
}
.pulse-mail .mail-msg-top { margin-bottom: 0.05rem; }
.pulse-mail .mail-msg-from {
  font-size: 0.62rem;
  max-width: 70%;
}
.pulse-mail .mail-msg-time { font-size: 0.58rem; }
.pulse-mail .mail-msg-subject {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pulse-mail .mail-msg-preview { display: none; }
.pulse-mail-foot {
  margin: 0.18rem 0 0;
  font-size: 0.48rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
body.kiosk-mode .pulse-mail {
  margin: 0.08rem 0 0.1rem;
  padding: 0.22rem 0.32rem 0.2rem;
}
body.kiosk-mode .pulse-mail-list .mail-msg { padding: 0.2rem 0.32rem; }
body.kiosk-mode .pulse-mail .mail-msg-subject { font-size: 0.66rem !important; }
body.kiosk-mode .pulse-mail .mail-msg-from { font-size: 0.56rem !important; }


/* ==== di-pulse-v29: bigger Vendor Markets + Customer Mail carousel strip ==== */
.pulse-events {
  margin: 0.14rem 0 0.18rem;
  padding: 0.42rem 0.5rem 0.4rem;
}
.pulse-events-list,
.pulse-events-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  justify-content: space-around;
  align-items: stretch;
}
.pulse-event {
  padding: 0.48rem 0.55rem 0.5rem;
  min-height: 4.6rem;
  gap: 0.12rem;
  border-left-width: 3px;
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.08), transparent 60%), rgba(0, 0, 0, 0.28);
}
.pulse-event-name {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  min-height: 2.1em;
  -webkit-line-clamp: 2;
}
.pulse-event-meta {
  font-size: 0.6rem;
  gap: 0.08rem;
  margin-top: 0.08rem;
}
.pulse-event-when { font-size: 0.62rem; }
.pulse-event-venue { font-size: 0.58rem; }
.pulse-event-att {
  margin-top: 0.1rem;
  font-size: 0.6rem;
}
body.kiosk-mode .pulse-events {
  padding: 0.4rem 0.48rem 0.38rem !important;
}
body.kiosk-mode .pulse-events-list,
body.kiosk-mode .pulse-events-track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.42rem !important;
}
body.kiosk-mode .pulse-event {
  padding: 0.45rem 0.5rem 0.48rem !important;
  min-height: 4.4rem !important;
}
body.kiosk-mode .pulse-event-name {
  font-size: 0.78rem !important;
  min-height: 2em !important;
}
body.kiosk-mode .pulse-event-meta { font-size: 0.58rem !important; }
body.kiosk-mode .pulse-event-att { font-size: 0.58rem !important; }

/* Customer Mail — horizontal cards, same 15s carousel pattern */
.pulse-mail {
  margin: 0.12rem 0 0.14rem;
  padding: 0.36rem 0.45rem 0.32rem;
}
.pulse-mail-list.mail-messages {
  display: block;
  max-height: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pulse-mail-list.is-carousel {
  overflow: hidden;
  position: relative;
}
.pulse-mail-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  align-items: stretch;
  justify-content: space-around;
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}
.pulse-mail-track.is-leaving {
  opacity: 0;
  transform: translateX(-12px);
}
.pulse-mail-track.is-entering {
  opacity: 0;
  transform: translateX(12px);
}
.pulse-mail-track.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.pulse-mail .mail-msg.mail-card,
.pulse-mail .mail-card {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  min-height: 4.2rem;
  padding: 0.4rem 0.45rem;
  border-left: 3px solid rgba(255, 184, 28, 0.55);
  background: linear-gradient(165deg, rgba(255, 184, 28, 0.08), transparent 58%), rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  border-right: 1px solid rgba(0, 229, 255, 0.12);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}
.pulse-mail .mail-msg.is-unread,
.pulse-mail .mail-card.is-unread {
  border-left-color: rgba(255, 184, 28, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 28, 0.18);
}
.pulse-mail .mail-card.is-sample {
  border-left-color: rgba(126, 240, 255, 0.65);
}
.pulse-mail .mail-msg-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.08rem;
}
.pulse-mail .mail-msg-from {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7ef0ff;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pulse-mail .mail-msg-time {
  font-size: 0.58rem;
  font-family: var(--mono);
  color: var(--text-dim);
  flex-shrink: 0;
}
.pulse-mail .mail-msg-subject {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.04rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  color: #e8f7ff;
}
.pulse-mail .mail-msg-preview {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1.25;
  color: var(--text-dim);
  margin-top: 0.06rem;
}
.pulse-mail .mail-empty {
  grid-column: 1 / -1;
  padding: 0.45rem 0.5rem;
  border-left: 2px solid rgba(255, 184, 28, 0.35);
}
.mail-sample-tag {
  display: inline-block;
  margin-left: 0.28rem;
  padding: 0.04rem 0.28rem;
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #041016;
  background: rgba(126, 240, 255, 0.85);
  border-radius: 3px;
}
body.kiosk-mode .pulse-mail {
  margin: 0.1rem 0 0.12rem !important;
  padding: 0.32rem 0.4rem 0.3rem !important;
}
body.kiosk-mode .pulse-mail-track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.38rem !important;
}
body.kiosk-mode .pulse-mail .mail-card {
  min-height: 4rem !important;
  padding: 0.36rem 0.4rem !important;
}
body.kiosk-mode .pulse-mail .mail-msg-subject { font-size: 0.74rem !important; }
body.kiosk-mode .pulse-mail .mail-msg-from { font-size: 0.64rem !important; }
body.kiosk-mode .pulse-mail .mail-msg-preview { font-size: 0.55rem !important; }
@media (max-width: 1100px) {
  .pulse-mail-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==== di-hub-v30: pulse trim + markets=mail row + farm tighter + flip-clock + op printers ==== */

/* Business Pulse telemetry fonts smaller so Vendor Markets stays readable */
body.kiosk-mode .pulse-panel h2,
html.kiosk-mode body.kiosk-mode .pulse-panel h2 {
  font-size: 0.92rem !important;
}
body.kiosk-mode .pulse-subtitle,
body.kiosk-mode .printers-panel > .pulse-panel .pulse-subtitle {
  font-size: 0.46rem !important;
}
body.kiosk-mode .pulse-health-chip {
  font-size: 0.46rem !important;
  padding: 0.12rem 0.32rem !important;
}
body.kiosk-mode .pulse-sales {
  gap: 0.2rem !important;
  margin: 0.08rem 0 0.14rem !important;
}
body.kiosk-mode .pulse-sales-chip {
  padding: 0.18rem 0.28rem !important;
}
body.kiosk-mode .pulse-sales-kicker { font-size: 0.42rem !important; }
body.kiosk-mode .pulse-sales-value { font-size: clamp(0.72rem, 1.15vw, 0.92rem) !important; }
body.kiosk-mode .pulse-sales-meta { font-size: 0.4rem !important; }
body.kiosk-mode .pulse-backlog { font-size: 0.46rem !important; }
body.kiosk-mode .pulse-meta { font-size: 0.42rem !important; }

/* Vendor Markets: fill whole line like Customer Mail (list is block; track is 4-col) */
.pulse-events-list,
.pulse-events-list.is-carousel {
  display: block !important;
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 0;
}
.pulse-events-track {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.4rem !important;
  width: 100% !important;
  align-items: stretch;
  justify-content: space-around;
}
.pulse-events {
  margin: 0.12rem 0 0.14rem;
  padding: 0.36rem 0.45rem 0.32rem;
}
.pulse-event {
  padding: 0.4rem 0.45rem !important;
  min-height: 4.2rem !important;
  gap: 0.08rem;
  border-left-width: 3px;
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.08), transparent 58%), rgba(0, 0, 0, 0.28);
}
.pulse-event-name {
  font-size: 0.78rem !important;
  font-weight: 750;
  line-height: 1.2;
  min-height: 2em !important;
  -webkit-line-clamp: 2;
}
.pulse-event-meta { font-size: 0.58rem !important; }
.pulse-event-when { font-size: 0.6rem !important; }
.pulse-event-venue { font-size: 0.56rem !important; }
.pulse-event-att { font-size: 0.56rem !important; margin-top: 0.08rem; }
body.kiosk-mode .pulse-events {
  margin: 0.1rem 0 0.12rem !important;
  padding: 0.32rem 0.4rem 0.3rem !important;
}
body.kiosk-mode .pulse-events-track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.38rem !important;
}
body.kiosk-mode .pulse-event {
  padding: 0.36rem 0.4rem !important;
  min-height: 4rem !important;
}
body.kiosk-mode .pulse-event-name { font-size: 0.74rem !important; min-height: 2em !important; }
body.kiosk-mode .pulse-event-meta { font-size: 0.55rem !important; }
body.kiosk-mode .pulse-event-att { font-size: 0.55rem !important; }

/* Customer Mail: keep primary / slightly bigger */
body.kiosk-mode .pulse-mail {
  margin: 0.1rem 0 0.12rem !important;
  padding: 0.34rem 0.42rem 0.32rem !important;
}
body.kiosk-mode .pulse-mail-track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.4rem !important;
  width: 100% !important;
}
body.kiosk-mode .pulse-mail .mail-card {
  min-height: 4.15rem !important;
  padding: 0.4rem 0.45rem !important;
}
body.kiosk-mode .pulse-mail .mail-msg-subject { font-size: 0.78rem !important; }
body.kiosk-mode .pulse-mail .mail-msg-from { font-size: 0.66rem !important; }
body.kiosk-mode .pulse-mail .mail-msg-preview { font-size: 0.56rem !important; }
body.kiosk-mode .pulse-mail-kicker { font-size: 0.6rem !important; }
body.kiosk-mode .pulse-events-kicker { font-size: 0.6rem !important; }

/* Print Farm: tiny bit smaller to free vertical room */
html.kiosk-mode body.kiosk-mode .printer-card,
body.kiosk-mode .printer-card {
  min-height: 86px !important;
  padding: 0.34rem 0.4rem !important;
}
html.kiosk-mode body.kiosk-mode .printer-name,
body.kiosk-mode .printer-name {
  font-size: 0.95rem !important;
}
html.kiosk-mode body.kiosk-mode .printer-status,
body.kiosk-mode .printer-status {
  font-size: 0.68rem !important;
}
body.kiosk-mode .printer-timeleft { font-size: 0.85rem !important; }
html.kiosk-mode body.kiosk-mode .printer-grid,
body.kiosk-mode .printer-grid {
  grid-auto-rows: minmax(86px, auto) !important;
  gap: 0.32rem !important;
}
body.kiosk-mode .farm-summary-chip {
  font-size: 0.62rem !important;
  padding: 0.16rem 0.4rem !important;
}

/* Operation printers icons */
.ship-pack-cell {
  align-items: center;
  text-align: center;
  gap: 0.18rem;
}
.ship-pack-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.05rem;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.35));
}
.ship-pack-label { order: 2; }
.ship-pack-value { order: 3; }
body.kiosk-mode .ship-pack-icon {
  width: 30px !important;
  height: 30px !important;
}
body.kiosk-mode .ship-packing-kicker {
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
}
body.kiosk-mode .ship-pack-cell {
  padding: 0.28rem 0.3rem 0.32rem !important;
}
body.kiosk-mode .ship-pack-label { font-size: 0.55rem !important; }
body.kiosk-mode .ship-pack-value { font-size: 0.95rem !important; }

/* Flip-clock / split-flap for postage + visitors */
.flip-clock {
  display: inline-flex;
  align-items: stretch;
  gap: 0.14rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.flip-tile {
  position: relative;
  display: inline-block;
  width: 0.72em;
  height: 1.15em;
  perspective: 320px;
}
.flip-tile.is-sep {
  width: 0.38em;
}
.flip-tile.is-space {
  width: 0.28em;
}
.flip-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 850;
  font-size: 1em;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 46%, rgba(0,0,0,0.35) 54%, rgba(0,0,0,0.2) 100%),
    #071018;
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 0 8px rgba(0, 229, 255, 0.12);
  color: #e8fbff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}
.flip-tile.is-sep .flip-face {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #ffb81c;
  text-shadow: 0 0 8px rgba(255, 184, 28, 0.45);
}
.ship-postage .flip-face {
  border-color: rgba(255, 184, 28, 0.35);
  color: #fff6d6;
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 0 8px rgba(255, 184, 28, 0.16);
}
.flip-back {
  transform: rotateX(180deg);
}
.flip-card.is-flipping {
  animation: flip-tile-turn 0.52s ease-in-out forwards;
}
.flip-card.is-ambient {
  animation: flip-tile-ambient 0.48s ease-in-out;
}
@keyframes flip-tile-turn {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}
@keyframes flip-tile-ambient {
  0% { transform: rotateX(0deg); filter: brightness(1); }
  40% { transform: rotateX(-18deg); filter: brightness(1.15); }
  100% { transform: rotateX(0deg); filter: brightness(1); }
}
.ship-postage-value-row .flip-clock,
.ship-visitors-value-row .flip-clock {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
body.kiosk-mode .ship-postage-value-row .flip-clock,
body.kiosk-mode .ship-visitors-value-row .flip-clock {
  font-size: clamp(1.05rem, 1.85vw, 1.4rem) !important;
}
/* hide legacy plain value class if any leftover */
.ship-postage-value:not(.flip-clock),
.ship-visitors-value:not(.flip-clock) {
  display: none;
}
/* preserve LIVE badge/glow */
.ship-postage.is-live,
.ship-visitors.is-live {
  /* keep existing glow animations */
}
body.kiosk-mode .ship-postage,
body.kiosk-mode .ship-visitors {
  padding: 0.38rem 0.48rem !important;
}

/* Keep ShipStation column width stable (don't scrunch off-screen) */
html.kiosk-mode body.kiosk-mode .ops-board,
body.kiosk-mode .ops-board {
  grid-template-columns: minmax(0, 1fr) 380px !important;
}


/* v41: eBay live tiles occupy former seed ShipStation KPI slots (same ship-kpi grid) */
.ship-kpi.ship-kpi-ebay {
  border-color: rgba(233, 168, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(233, 168, 0, 0.12);
}
.ship-kpi.ship-kpi-ebay .kpi-flag-ebay {
  color: #f0c14b;
  border-color: rgba(240, 193, 75, 0.45);
}
.ship-kpi.ship-kpi-ebay .kpi-label { color: #f0c14b; }


/* v42: channel tiles (SumUp/Squarespace/eBay) in ShipStation seed strip; Pulse sales hidden for Mail room */
#pulse-sales[hidden],
.pulse-sales[hidden] {
  display: none !important;
}
.ship-kpi.ship-kpi-channel.ship-kpi-sumup {
  border-color: rgba(80, 200, 120, 0.4);
}
.ship-kpi.ship-kpi-channel.ship-kpi-sqsp {
  border-color: rgba(100, 180, 255, 0.4);
}
.ship-kpi.ship-kpi-channel.ship-kpi-ebay {
  border-color: rgba(233, 168, 0, 0.45);
}
body.kiosk-mode .pulse-panel .pulse-mail {
  flex: 1 1 auto !important;
  min-height: 7.5rem !important;
}
body.kiosk-mode .pulse-panel .pulse-mail-list.mail-messages {
  min-height: 4.5rem !important;
  max-height: none !important;
}

/* ==== di-hub-v43: blank mail shimmer (= markets) + Print Farm hybrid (ops + postage LIVE) ==== */

/* Shared shimmer sheen on Vendor Markets cards + blank Customer Mail slots */
.pulse-event,
.pulse-mail .mail-card.is-blank {
  position: relative;
  overflow: hidden;
}
.pulse-event::after,
.pulse-mail .mail-card.is-blank::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.14), rgba(255, 255, 255, 0.06), transparent);
  animation: pulse-card-shimmer 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.pulse-mail .mail-card.is-blank::after {
  animation-duration: 5.2s;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.16), rgba(255, 255, 255, 0.07), transparent);
}
@keyframes pulse-card-shimmer {
  0%, 100% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: translateX(320%); opacity: 0.85; }
  70% { opacity: 0; }
}

/* Blank mail slots: same chrome/size as Vendor Markets pulse-event cards, no text */
.pulse-mail .mail-card.is-blank {
  min-height: 4.2rem;
  padding: 0.4rem 0.45rem;
  border-left: 3px solid rgba(0, 229, 255, 0.5);
  border-top: 1px solid rgba(0, 229, 255, 0.14);
  border-right: 1px solid rgba(0, 229, 255, 0.14);
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.08), transparent 58%), rgba(0, 0, 0, 0.28);
  box-shadow: none;
  pointer-events: none;
}
body.kiosk-mode .pulse-mail .mail-card.is-blank {
  min-height: 4.15rem !important;
  padding: 0.4rem 0.45rem !important;
}
/* Real mail cards stay gold/readable — no blank chrome override */
.pulse-mail .mail-card:not(.is-blank) {
  position: relative;
  z-index: 0;
}

/* ---- Print Farm hybrid: Operation printers polish + Postage LIVE glow ---- */
.printers-panel.hud-panel.is-live {
  box-shadow:
    0 0 0 1px rgba(61, 255, 154, 0.14),
    0 0 22px rgba(0, 229, 255, 0.12),
    0 0 28px rgba(61, 255, 154, 0.08);
}
.printers-panel .farm-head-chips {
  gap: 0.5rem;
}
.farm-summary-chip {
  border-color: rgba(0, 229, 255, 0.45);
  background:
    linear-gradient(125deg, rgba(0, 229, 255, 0.14), transparent 60%),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.16);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}
.farm-summary-chip.has-printing {
  animation: farm-chip-pulse 2.6s ease-in-out infinite;
}
.farm-summary-chip.has-error {
  animation: none;
}
@keyframes farm-chip-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(61, 255, 154, 0.2); }
  50% { box-shadow: 0 0 18px rgba(61, 255, 154, 0.45); }
}

/* Ready badge borrows postage LIVE pill energy */
#printers-status-badge.badge-live {
  color: #041016;
  background: linear-gradient(135deg, #5dffc8, #3ad0ff);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(93, 255, 200, 0.55), 0 0 2px rgba(58, 208, 255, 0.8);
  animation: fund-live-glow 2.2s ease-in-out infinite;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Cards: pack-cell chrome + postage glow for Ready/Idle */
.printer-card {
  background:
    linear-gradient(165deg, rgba(0, 229, 255, 0.07), transparent 58%),
    rgba(0, 0, 0, 0.28);
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.06);
}
.printer-card.printer-card-ready {
  border-color: rgba(61, 255, 154, 0.42);
  background:
    linear-gradient(125deg, rgba(61, 255, 154, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 0 1px rgba(61, 255, 154, 0.12),
    0 0 14px rgba(61, 255, 154, 0.16);
  animation: farm-ready-glow 2.8s ease-in-out infinite;
}
@keyframes farm-ready-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(61, 255, 154, 0.1), 0 0 12px rgba(61, 255, 154, 0.14); }
  50% { box-shadow: 0 0 0 1px rgba(61, 255, 154, 0.28), 0 0 22px rgba(61, 255, 154, 0.32); }
}
.printer-card .printer-name {
  font-weight: 750;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.18);
}
.printer-card.printer-card-ready .printer-status-ready,
.printer-card.printer-card-ready .printer-status-idle,
.printer-card.printer-card-ready .printer-status {
  color: var(--green);
  border-color: rgba(61, 255, 154, 0.5);
  background: rgba(61, 255, 154, 0.12);
  box-shadow: 0 0 10px rgba(61, 255, 154, 0.28);
  font-weight: 800;
}
.printer-farm-label {
  color: #7ef0ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  letter-spacing: 0.16em;
}
body.kiosk-mode .printer-card.printer-card-ready {
  border-color: rgba(61, 255, 154, 0.45) !important;
}

/* ==== di-hub-v44: FULL OPS steampunk theme (layout locked; CSS polish only) ==== */
/* Brass/copper + rivets + warm amber/sepia HUD. Info positions unchanged. */

:root {
  --bg: #0a0705;
  --bg-elev: #120e0a;
  --bg-card: rgba(28, 18, 10, 0.82);
  --bg-card-solid: #1a120c;
  --bg-kpi: rgba(12, 8, 5, 0.78);
  --border: rgba(205, 149, 68, 0.28);
  --border-strong: rgba(218, 165, 78, 0.55);
  --border-gold: rgba(232, 176, 74, 0.58);
  --text: #f3e6cf;
  --text-muted: #b89a72;
  --text-dim: #7a6348;
  --cyan: #e8b84a;
  --cyan-dim: #c4923a;
  --cyan-glow: rgba(232, 184, 74, 0.4);
  --gold: #f0c86a;
  --amber: #ffb347;
  --green: #c8e06a;
  --red: #e07050;
  --shadow: 0 0 24px rgba(180, 110, 40, 0.12), 0 18px 50px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 12px rgba(232, 184, 74, 0.38), 0 0 28px rgba(180, 100, 40, 0.16);
  --glow-gold: 0 0 12px rgba(240, 200, 106, 0.42);
  --brass: #c99542;
  --copper: #b87333;
  --sepia-ink: #2a1c10;
}

/* Warm sepia atmosphere (shop-floor readable, no layout shift) */
.hud-bg {
  background:
    radial-gradient(ellipse 90% 55% at 12% -5%, rgba(232, 184, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(184, 115, 51, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(160, 90, 35, 0.1), transparent 50%),
    var(--bg);
}
.hud-vignette {
  background: radial-gradient(ellipse at center, transparent 38%, rgba(8, 4, 2, 0.62) 100%);
}

/* Brass plate panels + rivet corners */
.hud-panel {
  border-color: rgba(201, 149, 66, 0.48);
  background:
    linear-gradient(180deg, rgba(232, 184, 74, 0.09), transparent 42%),
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(184, 115, 51, 0.08), transparent 55%),
    var(--bg-card);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(232, 184, 74, 0.08),
    inset 0 1px 0 rgba(255, 220, 160, 0.06);
}
.hud-corner::before,
.hud-corner::after {
  background: linear-gradient(135deg, #f0d090, #c99542 45%, #8a5a22);
  box-shadow:
    0 0 6px rgba(232, 184, 74, 0.55),
    inset 0 0 2px rgba(255, 240, 200, 0.35);
  border-radius: 1px;
}
/* Rivet studs at corners (CSS-only, no DOM) */
.hud-corner::before {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(90, 55, 20, 0.85),
    0 0 8px rgba(232, 184, 74, 0.45),
    inset 0 1px 1px rgba(255, 240, 200, 0.55),
    inset 0 -1px 1px rgba(60, 35, 10, 0.45);
}
.hud-corner::after {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50%;
  opacity: 0.92;
  box-shadow:
    0 0 0 1px rgba(90, 55, 20, 0.75),
    inset 0 1px 1px rgba(255, 240, 200, 0.4);
}
.hud-corner.tl::before { top: 0; left: 0; }
.hud-corner.tl::after { top: 10px; left: 10px; width: 5px !important; height: 5px !important; }
.hud-corner.tr::before { top: 0; right: 0; left: auto; }
.hud-corner.tr::after { top: 10px; right: 10px; left: auto; width: 5px !important; height: 5px !important; }
.hud-corner.bl::before { bottom: 0; left: 0; top: auto; }
.hud-corner.bl::after { bottom: 10px; left: 10px; top: auto; width: 5px !important; height: 5px !important; }
.hud-corner.br::before { bottom: 0; right: 0; top: auto; left: auto; }
.hud-corner.br::after { bottom: 10px; right: 10px; top: auto; left: auto; width: 5px !important; height: 5px !important; }

/* Header / brand: Victorian industrial title glow */
.status-board-kicker,
.hero-kicker {
  color: #e8c878 !important;
  text-shadow: 0 0 12px rgba(232, 184, 74, 0.45);
}
.ops-hud-title-text .hud-letter,
.status-board-title-text .hud-letter {
  color: #ffe9b8;
  text-shadow:
    0 0 8px rgba(232, 184, 74, 0.35),
    0 1px 0 rgba(60, 35, 10, 0.8);
}
.tagline { color: #c4a06a !important; }
.status-board-accent span,
.status-live-dot {
  background: linear-gradient(135deg, #f0d090, #c99542) !important;
  box-shadow: 0 0 10px rgba(232, 184, 74, 0.65) !important;
}
.hud-clock-time {
  color: #ffe9b8 !important;
  text-shadow: 0 0 14px rgba(232, 184, 74, 0.4) !important;
  font-variant-numeric: tabular-nums;
}
.hud-clock-date { color: #b89a72 !important; }

/* Buttons: brass bezels */
.btn {
  border-color: rgba(201, 149, 66, 0.4);
  background: rgba(184, 115, 51, 0.1);
  color: #f3e6cf;
}
.btn:hover {
  border-color: rgba(232, 184, 74, 0.7);
  background: rgba(232, 184, 74, 0.16);
  box-shadow: var(--glow-gold);
}
.btn-primary {
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.32), rgba(184, 115, 51, 0.22));
  border-color: rgba(232, 184, 74, 0.62);
  color: #fff6e0;
  box-shadow: var(--glow-gold);
}

/* Live Orders strip */
.order-notice-dock,
.live-orders-strip {
  border-color: rgba(201, 149, 66, 0.4) !important;
  background:
    linear-gradient(90deg, rgba(232, 184, 74, 0.12), transparent 40%, rgba(184, 115, 51, 0.08)),
    rgba(18, 12, 8, 0.85) !important;
  box-shadow: 0 0 18px rgba(180, 100, 40, 0.18) !important;
}
.live-orders-kicker,
.order-notice-label { color: #ffe9b8 !important; }
.order-notice-dot {
  background: #c8e06a !important;
  box-shadow: 0 0 10px rgba(200, 224, 106, 0.7) !important;
}

/* ---- Print Farm: analog gauge / brass machine cards ---- */
.printers-panel.hud-panel {
  border-color: rgba(201, 149, 66, 0.5);
}
.printers-panel.hud-panel.is-live {
  box-shadow:
    0 0 0 1px rgba(200, 224, 106, 0.14),
    0 0 22px rgba(232, 184, 74, 0.16),
    0 0 28px rgba(184, 115, 51, 0.12);
}
.printer-farm-label {
  color: #f0d090 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.4) !important;
  letter-spacing: 0.16em;
}
.farm-summary-chip {
  border-color: rgba(201, 149, 66, 0.55) !important;
  background:
    linear-gradient(125deg, rgba(232, 184, 74, 0.18), transparent 60%),
    rgba(20, 12, 6, 0.45) !important;
  box-shadow:
    0 0 12px rgba(232, 184, 74, 0.22),
    inset 0 0 0 1px rgba(255, 220, 160, 0.08) !important;
  color: #ffe9b8 !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.3) !important;
}
.farm-summary-chip.has-printing {
  animation: farm-chip-pulse-steam 2.6s ease-in-out infinite;
}
@keyframes farm-chip-pulse-steam {
  0%, 100% { box-shadow: 0 0 10px rgba(200, 224, 106, 0.22), inset 0 0 0 1px rgba(255, 220, 160, 0.08); }
  50% { box-shadow: 0 0 20px rgba(200, 224, 106, 0.48), inset 0 0 0 1px rgba(255, 220, 160, 0.14); }
}
#printers-status-badge.badge-live {
  color: #1a1208 !important;
  background: linear-gradient(135deg, #f0d090, #c99542) !important;
  border-color: transparent !important;
  box-shadow: 0 0 14px rgba(232, 184, 74, 0.65), 0 0 2px rgba(240, 200, 106, 0.9) !important;
}
.printer-card {
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(12, 8, 5, 0.42) !important;
  border-color: rgba(201, 149, 66, 0.38) !important;
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 74, 0.08),
    inset 0 1px 0 rgba(255, 220, 160, 0.05) !important;
}
.printer-card.printer-card-ready {
  border-color: rgba(200, 224, 106, 0.45) !important;
  background:
    linear-gradient(125deg, rgba(200, 224, 106, 0.12), transparent 55%),
    rgba(12, 8, 5, 0.4) !important;
  box-shadow:
    0 0 0 1px rgba(200, 224, 106, 0.12),
    0 0 16px rgba(232, 184, 74, 0.18) !important;
  animation: farm-ready-glow-steam 2.8s ease-in-out infinite;
}
@keyframes farm-ready-glow-steam {
  0%, 100% { box-shadow: 0 0 0 1px rgba(200, 224, 106, 0.1), 0 0 12px rgba(232, 184, 74, 0.14); }
  50% { box-shadow: 0 0 0 1px rgba(200, 224, 106, 0.28), 0 0 24px rgba(232, 184, 74, 0.32); }
}
.printer-card.printer-card-printing,
.printer-card.printer-card-glow-print {
  border-color: rgba(232, 184, 74, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.15),
    0 0 18px rgba(255, 179, 71, 0.28) !important;
}
.printer-card .printer-name {
  color: #ffe9b8 !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.25) !important;
}
.printer-status {
  border-color: rgba(201, 149, 66, 0.4);
  background: rgba(40, 28, 14, 0.55);
}
.printer-status-printing,
.printer-status-running {
  color: #ffb347 !important;
  border-color: rgba(255, 179, 71, 0.55) !important;
  background: rgba(255, 179, 71, 0.12) !important;
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.35);
}
.printer-card.printer-card-ready .printer-status-ready,
.printer-card.printer-card-ready .printer-status-idle,
.printer-card.printer-card-ready .printer-status {
  color: #c8e06a !important;
  border-color: rgba(200, 224, 106, 0.5) !important;
  background: rgba(200, 224, 106, 0.12) !important;
  box-shadow: 0 0 10px rgba(200, 224, 106, 0.3) !important;
}
.printer-progress {
  background: rgba(40, 24, 12, 0.7) !important;
  border: 1px solid rgba(201, 149, 66, 0.25);
}
.printer-progress-bar {
  background: linear-gradient(90deg, #b87333, #e8b84a, #f0d090) !important;
  box-shadow: 0 0 8px rgba(232, 184, 74, 0.45);
}
.printer-timeleft { color: #f0d090 !important; }
.office-printer-row {
  border-color: rgba(201, 149, 66, 0.28);
  background: rgba(20, 12, 6, 0.35);
}
.office-printers-label { color: #e8c878 !important; }

/* Operation printers (pack cells / icons) */
.ship-pack-cell {
  border-color: rgba(201, 149, 66, 0.35) !important;
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.08), transparent 55%),
    rgba(12, 8, 5, 0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(232, 184, 74, 0.06);
}
.ship-pack-label { color: #b89a72 !important; }
.ship-pack-value {
  color: #e8b84a !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.35) !important;
}
.ship-packing-kicker { color: #f0c86a !important; text-shadow: var(--glow-gold); }

/* ---- ShipStation + channel chips ---- */
.ship-panel .kpi-label,
.ship-kpi .kpi-label { color: #c4a06a !important; }
.ship-kpi .kpi-value {
  color: #ffe9b8 !important;
  text-shadow: 0 0 12px rgba(232, 184, 74, 0.35) !important;
}
.ship-kpi {
  border-color: rgba(201, 149, 66, 0.35) !important;
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.08), transparent 55%),
    rgba(12, 8, 5, 0.38) !important;
}
.ship-kpi.ship-kpi-ebay,
.ship-kpi.ship-kpi-channel.ship-kpi-ebay {
  border-color: rgba(232, 184, 74, 0.5) !important;
  box-shadow: inset 0 0 0 1px rgba(232, 184, 74, 0.12);
}
.ship-kpi.ship-kpi-channel.ship-kpi-sumup {
  border-color: rgba(200, 224, 106, 0.42) !important;
}
.ship-kpi.ship-kpi-channel.ship-kpi-sqsp {
  border-color: rgba(232, 176, 100, 0.42) !important;
}
.kpi-flag-live,
.kpi-flag-ebay {
  color: #1a1208 !important;
  background: linear-gradient(135deg, #f0d090, #c99542) !important;
  border-color: transparent !important;
  box-shadow: 0 0 8px rgba(232, 184, 74, 0.45);
}

/* Postage + Visitors: deeper flip-clock brass plating */
.ship-postage,
.ship-visitors {
  border-color: rgba(201, 149, 66, 0.55) !important;
  background:
    linear-gradient(125deg, rgba(232, 184, 74, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 220, 160, 0.05), transparent 40%),
    rgba(14, 9, 5, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(201, 149, 66, 0.18),
    0 0 20px rgba(184, 115, 51, 0.28),
    inset 0 1px 0 rgba(255, 220, 160, 0.08) !important;
  animation: fund-glow-pulse-steam 2.8s ease-in-out infinite;
}
.ship-visitors {
  border-color: rgba(232, 176, 100, 0.5) !important;
  background:
    linear-gradient(125deg, rgba(184, 115, 51, 0.2), transparent 55%),
    rgba(14, 9, 5, 0.45) !important;
  animation-name: visitors-glow-pulse-steam;
}
@keyframes fund-glow-pulse-steam {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201, 149, 66, 0.15), 0 0 14px rgba(184, 115, 51, 0.2), inset 0 1px 0 rgba(255, 220, 160, 0.06); }
  50% { box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.35), 0 0 28px rgba(232, 184, 74, 0.38), inset 0 1px 0 rgba(255, 220, 160, 0.1); }
}
@keyframes visitors-glow-pulse-steam {
  0%, 100% { box-shadow: 0 0 0 1px rgba(184, 115, 51, 0.15), 0 0 14px rgba(184, 115, 51, 0.2), inset 0 1px 0 rgba(255, 220, 160, 0.05); }
  50% { box-shadow: 0 0 0 1px rgba(232, 176, 100, 0.35), 0 0 28px rgba(232, 176, 100, 0.36), inset 0 1px 0 rgba(255, 220, 160, 0.1); }
}
.ship-postage-kicker,
.ship-visitors-kicker {
  color: #f0d090 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.5) !important;
}
.ship-visitors-kicker {
  color: #e8c878 !important;
}
.flip-face {
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.12) 0%, transparent 46%, rgba(0, 0, 0, 0.45) 54%, rgba(40, 22, 8, 0.55) 100%),
    #1a1208 !important;
  border: 1px solid rgba(201, 149, 66, 0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 10px rgba(232, 184, 74, 0.18) !important;
  color: #ffe9b8 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.5) !important;
}
.ship-postage .flip-face {
  border-color: rgba(232, 184, 74, 0.5) !important;
  color: #fff6d6 !important;
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 10px rgba(232, 184, 74, 0.28) !important;
}
.ship-visitors .flip-face {
  border-color: rgba(184, 115, 51, 0.5) !important;
  color: #ffe9b8 !important;
  text-shadow: 0 0 10px rgba(184, 115, 51, 0.5) !important;
}
.flip-tile.is-sep .flip-face {
  color: #f0c86a !important;
  text-shadow: 0 0 8px rgba(240, 200, 106, 0.55) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.ship-postage.is-live::after,
.ship-visitors.is-live::after {
  background: #c8e06a !important;
  box-shadow: 0 0 8px rgba(200, 224, 106, 0.9) !important;
}

/* ---- Business Pulse + Vendor Markets + Customer Mail ---- */
.pulse-panel .pulse-subtitle,
.pulse-events-kicker {
  color: #f0c86a !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.3);
}
.pulse-events {
  border-color: rgba(201, 149, 66, 0.35) !important;
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.09), transparent 55%),
    rgba(12, 8, 5, 0.35) !important;
}
.pulse-event {
  border-left-color: rgba(232, 184, 74, 0.55) !important;
  background: rgba(20, 12, 6, 0.4) !important;
}
.pulse-event-name { color: #f3e6cf !important; }
.pulse-event-when { color: #e8c878 !important; }
.pulse-event-att { color: rgba(240, 200, 106, 0.95) !important; }
.pulse-event::after,
.pulse-mail .mail-card.is-blank::after {
  background: linear-gradient(90deg, transparent, rgba(232, 184, 74, 0.16), rgba(255, 240, 200, 0.08), transparent) !important;
}
.pulse-mail .mail-card.is-blank {
  border-left-color: rgba(232, 184, 74, 0.55) !important;
  border-top-color: rgba(201, 149, 66, 0.22) !important;
  border-right-color: rgba(201, 149, 66, 0.22) !important;
  border-bottom-color: rgba(201, 149, 66, 0.22) !important;
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.1), transparent 58%),
    rgba(12, 8, 5, 0.4) !important;
}
.pulse-mail .mail-card:not(.is-blank),
.mail-msg {
  border-color: rgba(201, 149, 66, 0.35);
  background:
    linear-gradient(165deg, rgba(232, 184, 74, 0.07), transparent 55%),
    rgba(14, 9, 5, 0.4);
}
.mail-msg-from,
.mail-msg-subject { color: #ffe9b8 !important; }
.mail-msg-time,
.mail-msg-preview { color: #b89a72 !important; }
.badge-new-mail {
  background: linear-gradient(135deg, #f0d090, #c99542) !important;
  color: #1a1208 !important;
}

/* Badges / chips general */
.badge-live {
  background: linear-gradient(135deg, #f0d090, #c99542) !important;
  color: #1a1208 !important;
  box-shadow: 0 0 10px rgba(232, 184, 74, 0.5) !important;
}
.badge-coming,
.badge-sample,
.badge-login {
  border-color: rgba(201, 149, 66, 0.4);
  color: #e8c878;
}

/* Section cards / fulfill / ticker dock */
.section-card {
  border-color: rgba(201, 149, 66, 0.35);
  box-shadow: var(--shadow);
}
.fulfill-cell {
  border-color: rgba(201, 149, 66, 0.3);
  background: var(--bg-kpi);
}
.fulfill-value {
  color: #e8b84a !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.35) !important;
}
.ss-data-dock.hud-panel {
  border-color: rgba(201, 149, 66, 0.4);
}

/* Weather chip warm chrome */
.hud-weather {
  border-color: rgba(201, 149, 66, 0.35);
  color: #f3e6cf;
}
.wx-temp { color: #ffe9b8 !important; }

/* Keep status semantics readable from afar */
.printer-status-error,
.printer-card-error,
.printer-card-glow-error {
  border-color: rgba(224, 112, 80, 0.55) !important;
}
.printer-status-offline,
.printer-card-offline {
  opacity: 0.78;
  filter: sepia(0.25);
}

@media (prefers-reduced-motion: reduce) {
  .farm-summary-chip.has-printing,
  .printer-card.printer-card-ready,
  .ship-postage,
  .ship-visitors {
    animation: none !important;
  }
}

/* ==== di-hub-v45: LIGHTER industrial steampunk (brick + brass gears + flip farm) ==== */
/* Layout locked. Decorative layer only. Shop-floor readable from afar. */

:root {
  /* Brighter factory floor — not muddy/sepia black */
  --bg: #2c241c;
  --bg-elev: #3a3026;
  --bg-card: rgba(58, 46, 34, 0.92);
  --bg-card-solid: #3f3428;
  --bg-kpi: rgba(48, 38, 28, 0.88);
  --border: rgba(205, 149, 68, 0.42);
  --border-strong: rgba(218, 165, 78, 0.68);
  --border-gold: rgba(232, 176, 74, 0.72);
  --text: #fff8ec;
  --text-muted: #e8d4b0;
  --text-dim: #c4a882;
  --cyan: #e8b84a;
  --cyan-dim: #c4923a;
  --cyan-glow: rgba(232, 184, 74, 0.45);
  --gold: #f5d078;
  --amber: #ffb347;
  --green: #d4ef7a;
  --red: #f08060;
  --shadow: 0 0 20px rgba(120, 70, 25, 0.14), 0 14px 40px rgba(0, 0, 0, 0.35);
  --glow-cyan: 0 0 12px rgba(232, 184, 74, 0.42), 0 0 24px rgba(180, 100, 40, 0.18);
  --glow-gold: 0 0 12px rgba(245, 208, 120, 0.5);
  --brass: #d4a858;
  --copper: #c4844a;
  --sepia-ink: #3a2a1a;
  --brick-mortar: #8a7a68;
  --brick-face: #9a5a42;
  --iron: #5a5048;
}

/* Exposed brick wall atmosphere (readable, not gloomy) */
.hud-bg {
  background:
    /* warm skylight */
    radial-gradient(ellipse 95% 55% at 50% -8%, rgba(255, 220, 160, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at 8% 90%, rgba(200, 120, 60, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 85%, rgba(180, 100, 50, 0.1), transparent 55%),
    /* brick course pattern */
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(60, 40, 28, 0.55) 27px,
      rgba(60, 40, 28, 0.55) 30px
    ),
    repeating-linear-gradient(
      90deg,
      #a86448 0,
      #a86448 58px,
      rgba(70, 50, 38, 0.65) 58px,
      rgba(70, 50, 38, 0.65) 61px,
      #b07050 61px,
      #b07050 119px,
      rgba(70, 50, 38, 0.65) 119px,
      rgba(70, 50, 38, 0.65) 122px
    ),
    linear-gradient(180deg, #6a4838 0%, #5a3c30 40%, #4a3228 100%);
  background-size: auto, auto, auto, auto, 122px 30px, auto;
  background-position: center, center, center, 0 0, 0 0, center;
}
/* Offset alternate brick rows (second mortar pass) */
.hud-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      transparent 27px,
      transparent 30px,
      transparent 30px,
      transparent 57px,
      rgba(60, 40, 28, 0.5) 57px,
      rgba(60, 40, 28, 0.5) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 30px,
      #a05840 30px,
      #a05840 88px,
      transparent 88px,
      transparent 91px,
      #b87858 91px,
      #b87858 149px,
      transparent 149px,
      transparent 152px
    );
  background-size: auto, 152px 60px;
  background-position: 0 15px, 61px 30px;
  mix-blend-mode: multiply;
}
.hud-vignette {
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(40, 28, 18, 0.45) 100%);
  z-index: 1;
}

/* ---- Peripheral gears + iron rails (under content, never cover KPIs) ---- */
.steam-mech {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.steam-gear {
  position: absolute;
  opacity: 0.28;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.steam-gear-tl { top: -36px; left: -40px; width: 168px; height: 168px; opacity: 0.32; }
.steam-gear-tr { top: -18px; right: -28px; width: 124px; height: 124px; opacity: 0.26; }
.steam-gear-bl { bottom: -34px; left: -30px; width: 148px; height: 148px; opacity: 0.28; }
.steam-gear-br { bottom: -42px; right: -38px; width: 180px; height: 180px; opacity: 0.3; }
.steam-gear-ml { top: 42%; left: -28px; width: 96px; height: 96px; opacity: 0.2; }
.steam-gear-mr { top: 38%; right: -22px; width: 84px; height: 84px; opacity: 0.18; }

.steam-gear-spin { transform-origin: center; transform-box: fill-box; }
.steam-gear-spin-cw { animation: steam-gear-cw 48s linear infinite; }
.steam-gear-spin-ccw { animation: steam-gear-ccw 36s linear infinite; }
.steam-gear-spin-cw-slow { animation: steam-gear-cw 72s linear infinite; }
.steam-gear-spin-ccw-slow { animation: steam-gear-ccw 64s linear infinite; }
@keyframes steam-gear-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes steam-gear-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Iron pipe / rivet rails in margins */
.steam-pipe {
  position: absolute;
  left: 0; right: 0;
  height: 10px;
  background:
    linear-gradient(180deg, #8a7a68 0%, #5a5048 35%, #3a342e 70%, #6a5e52 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0.55;
  z-index: 0;
}
.steam-pipe-top { top: 0; }
.steam-pipe-bottom { bottom: 0; }
.steam-pipe::before,
.steam-pipe::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8c878, #8a5a28 55%, #3a2a1a);
  box-shadow: 0 0 0 1px rgba(40, 28, 14, 0.7);
}
.steam-pipe::before { left: 18%; }
.steam-pipe::after { right: 18%; }

.steam-rivet-rail {
  position: absolute;
  top: 12px; bottom: 12px;
  width: 14px;
  background:
    repeating-linear-gradient(
      180deg,
      #6a5e52 0 10px,
      #4a423a 10px 14px,
      #7a6e60 14px 24px,
      #4a423a 24px 28px
    );
  opacity: 0.4;
  box-shadow: inset 0 0 0 1px rgba(200, 160, 100, 0.2);
}
.steam-rivet-rail-l { left: 2px; }
.steam-rivet-rail-r { right: 2px; }
.steam-rivet-rail::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  background:
    radial-gradient(circle, #d4a858 0 35%, transparent 38%) 0 0 / 8px 22px;
  opacity: 0.85;
}

/* Brighter brass panels (high contrast, factory plate) */
.hud-panel {
  border-color: rgba(201, 149, 66, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.16), transparent 40%),
    linear-gradient(165deg, rgba(232, 184, 74, 0.1), transparent 55%),
    rgba(62, 50, 38, 0.94) !important;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 220, 160, 0.14),
    inset 0 1px 0 rgba(255, 240, 200, 0.12) !important;
}
body, .app-shell {
  color: var(--text);
}
.hud-corner::before,
.hud-corner::after {
  background: linear-gradient(135deg, #f5e0a8, #d4a858 45%, #8a5a28) !important;
}

/* Titles / body text: high contrast cream on brass */
.status-board-kicker,
.hero-kicker {
  color: #ffe9b0 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.4) !important;
}
.ops-hud-title-text .hud-letter,
.status-board-title-text .hud-letter {
  color: #fffaf0 !important;
  text-shadow:
    0 0 6px rgba(232, 184, 74, 0.3),
    0 1px 0 rgba(60, 35, 10, 0.55) !important;
}
.tagline { color: #f0dcb8 !important; }
.hud-clock-time {
  color: #fffaf0 !important;
  text-shadow: 0 0 12px rgba(232, 184, 74, 0.35) !important;
}
.hud-clock-date { color: #e8d4b0 !important; }
.command-kicker { color: #f0c86a !important; }
.section-title h2,
#printers-title,
#pulse-title,
.ship-panel h2 {
  color: #fff8ec !important;
  text-shadow: 0 1px 0 rgba(40, 28, 14, 0.5) !important;
}

/* KPI / cards: lighter iron plates */
.ship-kpi,
.fulfill-cell,
.pulse-event,
.mail-msg,
.printer-card,
.ship-pack-cell {
  background:
    linear-gradient(165deg, rgba(255, 220, 160, 0.12), transparent 55%),
    rgba(52, 42, 32, 0.9) !important;
  border-color: rgba(201, 149, 66, 0.42) !important;
}
.kpi-value,
.ship-kpi .kpi-value,
.fulfill-value,
.ship-pack-value {
  color: #fff6e0 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.3) !important;
}
.kpi-label,
.ship-kpi .kpi-label,
.ship-pack-label,
.pulse-subtitle {
  color: #e8d4b0 !important;
}

/* Buttons readable */
.btn {
  border-color: rgba(201, 149, 66, 0.5);
  background: rgba(90, 70, 45, 0.55);
  color: #fff8ec;
}
.btn:hover {
  background: rgba(232, 184, 74, 0.28);
  border-color: rgba(232, 184, 74, 0.75);
}

/* Live orders strip — brighter */
.order-notice-dock,
.live-orders-strip {
  border-color: rgba(201, 149, 66, 0.5) !important;
  background:
    linear-gradient(90deg, rgba(232, 184, 74, 0.2), transparent 45%, rgba(184, 115, 51, 0.12)),
    rgba(56, 44, 32, 0.92) !important;
}

/* ---- Print Farm: analog flip-clock / postage-tile look ---- */
.printers-panel.hud-panel {
  border-color: rgba(201, 149, 66, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.14), transparent 38%),
    rgba(58, 46, 34, 0.95) !important;
}
.printer-farm-label {
  color: #ffe9b0 !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.35) !important;
  letter-spacing: 0.16em;
}
.farm-summary-chip {
  border-color: rgba(201, 149, 66, 0.62) !important;
  background:
    linear-gradient(125deg, rgba(232, 184, 74, 0.28), transparent 60%),
    rgba(48, 36, 24, 0.65) !important;
  color: #fff8ec !important;
  text-shadow: 0 0 6px rgba(232, 184, 74, 0.25) !important;
  box-shadow:
    0 0 12px rgba(232, 184, 74, 0.2),
    inset 0 0 0 1px rgba(255, 220, 160, 0.12) !important;
}
#printers-status-badge.badge-live {
  color: #2a1c10 !important;
  background: linear-gradient(135deg, #f5e0a8, #d4a858) !important;
  border-color: transparent !important;
  box-shadow: 0 0 12px rgba(232, 184, 74, 0.55) !important;
  font-weight: 850;
}

/* Printer cards = brass flip plates */
.printer-card {
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.14) 0%, transparent 46%, rgba(0, 0, 0, 0.22) 54%, rgba(30, 20, 12, 0.28) 100%),
    rgba(48, 38, 28, 0.92) !important;
  border: 1px solid rgba(201, 149, 66, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 10px rgba(232, 184, 74, 0.12) !important;
  border-radius: 4px !important;
}
/* Mid-seam like postage flip tile */
.printer-card::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.45), rgba(255, 230, 180, 0.15), rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.printer-card {
  position: relative;
  overflow: hidden;
}
.printer-card .printer-name {
  color: #fffaf0 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 6px rgba(232, 184, 74, 0.25) !important;
  position: relative;
  z-index: 2;
}
/* Status = mini flip face */
.printer-status {
  position: relative;
  z-index: 2;
  border-radius: 3px !important;
  border: 1px solid rgba(201, 149, 66, 0.5) !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.16) 0%, transparent 46%, rgba(0, 0, 0, 0.35) 54%, rgba(40, 28, 16, 0.45) 100%),
    #2e2418 !important;
  color: #fff6e0 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 8px rgba(232, 184, 74, 0.15) !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.35) !important;
}
.printer-status-printing,
.printer-status-running {
  color: #ffc878 !important;
  border-color: rgba(255, 179, 71, 0.65) !important;
  background:
    linear-gradient(180deg, rgba(255, 200, 120, 0.2) 0%, transparent 46%, rgba(0, 0, 0, 0.35) 54%, rgba(50, 30, 10, 0.5) 100%),
    #322418 !important;
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.35) !important;
}
.printer-card.printer-card-ready .printer-status,
.printer-card.printer-card-ready .printer-status-ready,
.printer-card.printer-card-ready .printer-status-idle {
  color: #e0f090 !important;
  border-color: rgba(200, 224, 106, 0.55) !important;
  background:
    linear-gradient(180deg, rgba(200, 224, 106, 0.18) 0%, transparent 46%, rgba(0, 0, 0, 0.3) 54%, rgba(30, 40, 16, 0.45) 100%),
    #2a2818 !important;
  box-shadow: 0 0 10px rgba(200, 224, 106, 0.3) !important;
}
.printer-card.printer-card-ready {
  border-color: rgba(200, 224, 106, 0.5) !important;
  animation: farm-ready-glow-steam 2.8s ease-in-out infinite;
}
.printer-card.printer-card-printing,
.printer-card.printer-card-glow-print {
  border-color: rgba(232, 184, 74, 0.65) !important;
  box-shadow:
    0 0 0 1px rgba(232, 184, 74, 0.2),
    0 0 16px rgba(255, 179, 71, 0.25),
    inset 0 1px 0 rgba(255, 230, 180, 0.14) !important;
}
.printer-timeleft {
  position: relative;
  z-index: 2;
  color: #ffe9b0 !important;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(232, 184, 74, 0.3) !important;
}
.printer-progress {
  position: relative;
  z-index: 2;
  background: rgba(40, 30, 20, 0.75) !important;
  border: 1px solid rgba(201, 149, 66, 0.35) !important;
}
.printer-progress-bar {
  background: linear-gradient(90deg, #b87333, #e8b84a, #f5e0a8) !important;
  box-shadow: 0 0 8px rgba(232, 184, 74, 0.45);
}
.office-printer-row {
  border-color: rgba(201, 149, 66, 0.35);
  background: rgba(48, 38, 28, 0.7);
}
.office-printers-label { color: #ffe9b0 !important; }

/* Postage + visitors flip-clock: brighter brass postage tiles */
.ship-postage,
.ship-visitors {
  border-color: rgba(201, 149, 66, 0.62) !important;
  background:
    linear-gradient(125deg, rgba(232, 184, 74, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(255, 230, 180, 0.1), transparent 40%),
    rgba(52, 40, 28, 0.92) !important;
  box-shadow:
    0 0 0 1px rgba(201, 149, 66, 0.22),
    0 0 18px rgba(184, 115, 51, 0.25),
    inset 0 1px 0 rgba(255, 230, 180, 0.12) !important;
}
.ship-postage-kicker,
.ship-visitors-kicker {
  color: #ffe9b0 !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.4) !important;
  font-weight: 800;
}
.flip-face {
  background:
    linear-gradient(180deg, rgba(255, 235, 190, 0.22) 0%, transparent 46%, rgba(0, 0, 0, 0.4) 54%, rgba(45, 30, 14, 0.55) 100%),
    #2e2418 !important;
  border: 1px solid rgba(201, 149, 66, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 190, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 0 10px rgba(232, 184, 74, 0.2) !important;
  color: #fffaf0 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.45) !important;
  font-weight: 850 !important;
}
.ship-postage .flip-face {
  border-color: rgba(232, 184, 74, 0.62) !important;
  color: #fffaf0 !important;
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.5) !important;
}
.ship-visitors .flip-face {
  border-color: rgba(184, 115, 51, 0.58) !important;
  color: #fff8ec !important;
}
.flip-tile.is-sep .flip-face {
  color: #f5d078 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Pulse / mail brighter */
.pulse-events,
.pulse-mail .mail-card.is-blank,
.pulse-mail .mail-card:not(.is-blank) {
  background:
    linear-gradient(165deg, rgba(255, 220, 160, 0.12), transparent 55%),
    rgba(52, 42, 32, 0.88) !important;
  border-color: rgba(201, 149, 66, 0.4) !important;
}
.pulse-event-name,
.mail-msg-from,
.mail-msg-subject { color: #fff8ec !important; }
.pulse-event-when { color: #f0d090 !important; }
.mail-msg-time,
.mail-msg-preview { color: #e0c898 !important; }
.pulse-health-chip {
  color: #fff8ec !important;
  border-color: rgba(201, 149, 66, 0.45);
  background: rgba(60, 48, 34, 0.75);
}

/* Weather chip */
.hud-weather {
  border-color: rgba(201, 149, 66, 0.45);
  background: rgba(56, 44, 32, 0.85);
  color: #fff8ec;
}
.wx-temp { color: #fffaf0 !important; }

/* Badges */
.badge-live {
  background: linear-gradient(135deg, #f5e0a8, #d4a858) !important;
  color: #2a1c10 !important;
}
.badge-coming,
.badge-sample,
.badge-login {
  border-color: rgba(201, 149, 66, 0.5);
  color: #ffe9b0;
  background: rgba(60, 48, 34, 0.7);
}

/* Soften kiosk vignette so brick + gears readable but content pops */
body.kiosk-mode .hud-vignette {
  background: radial-gradient(ellipse at center, transparent 48%, rgba(40, 28, 18, 0.38) 100%) !important;
}

/* Keep gears under content always */
.app-shell,
.ops-board,
.hud-panel,
.printers-panel,
.ship-panel,
.pulse-panel,
.hero-brand {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .steam-gear-spin-cw,
  .steam-gear-spin-ccw,
  .steam-gear-spin-cw-slow,
  .steam-gear-spin-ccw-slow,
  .farm-summary-chip.has-printing,
  .printer-card.printer-card-ready,
  .ship-postage,
  .ship-visitors {
    animation: none !important;
  }
}


/* ==== di-hub-v46: PANEL-SHELL industrial chrome (layout locked; info unmoved) ==== */
/* Strong brass/iron frames + plate headers + bolt corners ON the panels.
   Margin gears dialed back; small gears as visible accents in panel headers/corners. */

:root {
  --bg: #322820;
  --bg-elev: #403428;
  --bg-card: rgba(72, 56, 40, 0.94);
  --bg-card-solid: #4a3a2c;
  --bg-kpi: rgba(58, 46, 34, 0.9);
  --border: rgba(210, 160, 80, 0.55);
  --border-strong: rgba(230, 180, 90, 0.78);
  --border-gold: rgba(240, 196, 100, 0.85);
  --text: #fffaf0;
  --text-muted: #f0dcb8;
  --text-dim: #d4b890;
  --brass: #dcb060;
  --copper: #c88848;
  --iron: #6a5e52;
  --plate: #5a4838;
  --brick-face: #b07058;
  --shadow: 0 0 18px rgba(120, 70, 25, 0.18), 0 12px 36px rgba(0, 0, 0, 0.38);
}

/* Keep lighter brick wall, but dial margin mechanica down — not the main look */
.steam-mech .steam-gear {
  opacity: 0.1 !important;
  filter: saturate(0.85) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.steam-pipe,
.steam-rivet-rail {
  opacity: 0.18 !important;
}

/* ---- Shared industrial panel shell (farm / ship / pulse / ticker / hero) ---- */
.printers-panel.hud-panel,
.ship-panel.hud-panel,
.pulse-panel.hud-panel,
.ss-data-dock.hud-panel,
.hero-brand.hud-panel {
  /* Rectangular factory plate — slight chamfer kept via clip, thicker chrome via shadows */
  clip-path: none !important;
  border: 2px solid #c99542 !important;
  border-radius: 3px !important;
  background:
    /* brushed plate highlight */
    linear-gradient(180deg, rgba(255, 236, 190, 0.28) 0%, rgba(255, 220, 160, 0.08) 18%, transparent 42%),
    /* faint brick courses inside shell */
    repeating-linear-gradient(
      0deg,
      transparent 0 11px,
      rgba(80, 50, 35, 0.22) 11px 12px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(176, 112, 88, 0.14) 0 28px,
      rgba(70, 50, 38, 0.18) 28px 29px
    ),
    linear-gradient(165deg, rgba(220, 176, 96, 0.16), transparent 55%),
    rgba(68, 52, 38, 0.96) !important;
  box-shadow:
    /* outer iron rim */
    0 0 0 3px #4a4038,
    0 0 0 5px rgba(201, 149, 66, 0.55),
    0 0 22px rgba(184, 115, 51, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.4),
    /* inner brass lip */
    inset 0 0 0 1px rgba(255, 230, 180, 0.35),
    inset 0 2px 0 rgba(255, 240, 200, 0.18),
    inset 0 -2px 0 rgba(40, 28, 14, 0.35) !important;
  outline: 1px solid rgba(90, 70, 50, 0.65);
  outline-offset: 2px;
}

/* Gauge / meter accent strip along top of major panels */
.printers-panel.hud-panel::before,
.ship-panel.hud-panel::before,
.pulse-panel.hud-panel::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 42px;
  width: 54px;
  height: 14px;
  z-index: 3;
  pointer-events: none;
  border-radius: 2px;
  background:
    linear-gradient(90deg,
      #5a4030 0 14%,
      #c8e06a 14% 28%,
      #5a4030 28% 42%,
      #e8b84a 42% 62%,
      #5a4030 62% 76%,
      #e07050 76% 90%,
      #5a4030 90% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 180, 0.35),
    0 0 0 1px #3a2a1a,
    0 0 8px rgba(232, 184, 74, 0.35);
  opacity: 0.92;
}

/* Visible corner gear accents ON panels (not faint wall margins) */
.printers-panel.hud-panel::after,
.ship-panel.hud-panel::after,
.pulse-panel.hud-panel::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 6px;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='18' fill='none' stroke='%23d4a858' stroke-width='8' stroke-dasharray='5.2 4.6'/%3E%3Ccircle cx='32' cy='32' r='12' fill='%234a3828' stroke='%23c99542' stroke-width='1.6'/%3E%3Ccircle cx='32' cy='32' r='5' fill='%23e8c878' stroke='%235a3a18' stroke-width='1'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%232a1c10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.72;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  animation: steam-gear-cw 40s linear infinite;
}

.ss-data-dock.hud-panel::after {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='18' fill='none' stroke='%23d4a858' stroke-width='8' stroke-dasharray='5.2 4.6'/%3E%3Ccircle cx='32' cy='32' r='12' fill='%234a3828' stroke='%23c99542' stroke-width='1.6'/%3E%3Ccircle cx='32' cy='32' r='5' fill='%23e8c878' stroke='%235a3a18' stroke-width='1'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%232a1c10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
}

/* Bolt / rivet corners — big, obvious studs */
.printers-panel .hud-corner,
.ship-panel .hud-corner,
.pulse-panel .hud-corner,
.ss-data-dock .hud-corner,
.hero-brand .hud-corner {
  width: 18px !important;
  height: 18px !important;
  z-index: 4 !important;
}
.printers-panel .hud-corner::before,
.ship-panel .hud-corner::before,
.pulse-panel .hud-corner::before,
.ss-data-dock .hud-corner::before,
.hero-brand .hud-corner::before {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 35% 30%, #fff0c8 0%, #e8c878 28%, #c99542 55%, #6a4218 100%) !important;
  box-shadow:
    0 0 0 2px #3a2a1a,
    0 0 0 3px rgba(201, 149, 66, 0.75),
    inset 0 1px 1px rgba(255, 245, 210, 0.7),
    inset 0 -1px 1px rgba(60, 35, 10, 0.55),
    0 0 10px rgba(232, 184, 74, 0.45) !important;
}
.printers-panel .hud-corner::after,
.ship-panel .hud-corner::after,
.pulse-panel .hud-corner::after,
.ss-data-dock .hud-corner::after,
.hero-brand .hud-corner::after {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%, #f0d090, #8a5a28) !important;
  opacity: 0.9;
  box-shadow: 0 0 0 1px rgba(40, 28, 14, 0.8) !important;
}
.printers-panel .hud-corner.tl::before,
.ship-panel .hud-corner.tl::before,
.pulse-panel .hud-corner.tl::before { top: -2px; left: -2px; }
.printers-panel .hud-corner.tr::before,
.ship-panel .hud-corner.tr::before,
.pulse-panel .hud-corner.tr::before { top: -2px; right: -2px; left: auto; }
.printers-panel .hud-corner.bl::before,
.ship-panel .hud-corner.bl::before,
.pulse-panel .hud-corner.bl::before { bottom: -2px; left: -2px; top: auto; }
.printers-panel .hud-corner.br::before,
.ship-panel .hud-corner.br::before,
.pulse-panel .hud-corner.br::before { bottom: -2px; right: -2px; top: auto; left: auto; }
.printers-panel .hud-corner.tl::after,
.ship-panel .hud-corner.tl::after,
.pulse-panel .hud-corner.tl::after { top: 12px; left: 12px; }
.printers-panel .hud-corner.tr::after,
.ship-panel .hud-corner.tr::after,
.pulse-panel .hud-corner.tr::after { top: 12px; right: 12px; left: auto; }
.printers-panel .hud-corner.bl::after,
.ship-panel .hud-corner.bl::after,
.pulse-panel .hud-corner.bl::after { bottom: 12px; left: 12px; top: auto; }
.printers-panel .hud-corner.br::after,
.ship-panel .hud-corner.br::after,
.pulse-panel .hud-corner.br::after { bottom: 12px; right: 12px; top: auto; left: auto; }

/* ---- Plate headers (brass nameplates) — do not shift KPI positions ---- */
.printers-panel .mail-head,
.ship-panel .mail-head,
.pulse-panel .mail-head,
.pulse-panel .pulse-head {
  position: relative;
  z-index: 2;
  padding: 0.4rem 2.2rem 0.45rem 0.55rem;
  margin-bottom: 0.7rem !important;
  border: 1px solid rgba(201, 149, 66, 0.7);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.32) 0%, rgba(200, 150, 70, 0.18) 45%, rgba(90, 60, 30, 0.25) 100%),
    #5a4634;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.35),
    inset 0 -1px 0 rgba(40, 28, 14, 0.4),
    0 0 0 1px rgba(60, 45, 30, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
/* Header rivets */
.printers-panel .mail-head::before,
.ship-panel .mail-head::before,
.pulse-panel .mail-head::before,
.pulse-panel .pulse-head::before {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0c8, #c99542 55%, #5a3a18);
  box-shadow:
    0 0 0 1px #2a1c10,
    36px 0 0 0 #c99542,
    36px 0 0 1px #2a1c10;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
.printers-panel .mail-head > *,
.ship-panel .mail-head > *,
.pulse-panel .mail-head > *,
.pulse-panel .pulse-head > * {
  position: relative;
  z-index: 2;
}
.section-title h2,
#printers-title,
#pulse-title,
.ship-panel h2 {
  color: #fffaf0 !important;
  letter-spacing: 0.14em !important;
  text-shadow:
    0 1px 0 rgba(40, 28, 14, 0.7),
    0 0 10px rgba(232, 184, 74, 0.35) !important;
}

/* ---- Print Farm: stronger analog flip-clock machine look ---- */
.printers-panel.hud-panel {
  border-color: #e0b860 !important;
  box-shadow:
    0 0 0 3px #3e342c,
    0 0 0 5px rgba(224, 184, 96, 0.7),
    0 0 28px rgba(232, 184, 74, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 236, 190, 0.4),
    inset 0 2px 0 rgba(255, 240, 200, 0.22),
    inset 0 -2px 0 rgba(40, 28, 14, 0.4) !important;
}
.printer-farm-label {
  color: #ffe9b0 !important;
  letter-spacing: 0.2em !important;
  font-weight: 850 !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.45) !important;
}
.farm-summary-chip {
  border: 1px solid rgba(232, 184, 74, 0.75) !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.28) 0%, transparent 48%, rgba(0, 0, 0, 0.28) 52%, rgba(40, 28, 14, 0.35) 100%),
    #3a2c1e !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 14px rgba(232, 184, 74, 0.3) !important;
  border-radius: 3px !important;
  font-weight: 850 !important;
}
.printer-card {
  border: 1.5px solid rgba(201, 149, 66, 0.62) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.2) 0%, transparent 44%, rgba(0, 0, 0, 0.32) 52%, rgba(35, 24, 14, 0.4) 100%),
    #3a2e22 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(60, 45, 30, 0.5),
    0 0 12px rgba(232, 184, 74, 0.14) !important;
}
/* Flip-seam stronger */
.printer-card::after {
  left: 4% !important;
  right: 4% !important;
  height: 2px !important;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.55),
    rgba(255, 230, 180, 0.28),
    rgba(0, 0, 0, 0.55),
    transparent) !important;
  opacity: 0.85 !important;
  box-shadow: 0 1px 0 rgba(255, 230, 180, 0.08);
}
.printer-status {
  border: 1.5px solid rgba(201, 149, 66, 0.65) !important;
  border-radius: 2px !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.22) 0%, transparent 44%, rgba(0, 0, 0, 0.4) 52%, rgba(40, 28, 16, 0.55) 100%),
    #2a2016 !important;
  letter-spacing: 0.06em !important;
  font-variant-numeric: tabular-nums;
}
.printer-card .printer-name {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.office-printers,
.office-printer-row {
  border-color: rgba(201, 149, 66, 0.5) !important;
  background:
    linear-gradient(165deg, rgba(255, 220, 160, 0.12), transparent 55%),
    rgba(52, 40, 28, 0.85) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 180, 0.08);
}
.office-printers-label {
  color: #ffe9b0 !important;
  letter-spacing: 0.12em;
  font-weight: 800;
}

/* ---- Telemetry / Ship column: match farm energy ---- */
.ship-panel.hud-panel {
  border-color: #e0b860 !important;
  box-shadow:
    0 0 0 3px #3e342c,
    0 0 0 5px rgba(224, 184, 96, 0.65),
    0 0 26px rgba(184, 115, 51, 0.32),
    0 12px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 236, 190, 0.38),
    inset 0 2px 0 rgba(255, 240, 200, 0.2),
    inset 0 -2px 0 rgba(40, 28, 14, 0.38) !important;
}
.ship-kpi,
.ship-pack-cell {
  border: 1.5px solid rgba(201, 149, 66, 0.55) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.16) 0%, transparent 45%, rgba(0, 0, 0, 0.22) 55%),
    rgba(52, 40, 28, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(60, 45, 30, 0.45) !important;
}
.ship-kpi .kpi-value,
.ship-pack-value {
  color: #fffaf0 !important;
  text-shadow: 0 0 12px rgba(232, 184, 74, 0.4) !important;
  font-weight: 850 !important;
}
.ship-kpi .kpi-label,
.ship-pack-label {
  color: #f0dcb8 !important;
  letter-spacing: 0.08em;
}
.ship-packing {
  border: 1.5px solid rgba(201, 149, 66, 0.55) !important;
  border-radius: 3px !important;
  padding: 0.4rem 0.45rem 0.45rem !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.14), transparent 40%),
    rgba(58, 46, 34, 0.9) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 180, 0.12),
    0 0 0 1px rgba(60, 45, 30, 0.4) !important;
}
.ship-packing-head {
  position: relative;
  margin-bottom: 0.35rem;
  padding: 0.2rem 1.6rem 0.2rem 0.35rem;
  border: 1px solid rgba(201, 149, 66, 0.55);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 236, 190, 0.22), rgba(90, 60, 30, 0.2));
}
.ship-packing-head::after {
  content: "";
  position: absolute;
  top: 50%; right: 4px;
  width: 16px; height: 16px;
  margin-top: -8px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='18' fill='none' stroke='%23d4a858' stroke-width='8' stroke-dasharray='5.2 4.6'/%3E%3Ccircle cx='32' cy='32' r='12' fill='%234a3828' stroke='%23c99542' stroke-width='1.6'/%3E%3Ccircle cx='32' cy='32' r='5' fill='%23e8c878' stroke='%235a3a18' stroke-width='1'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%232a1c10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.65;
}
.ship-packing-kicker {
  color: #ffe9b0 !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.35);
}

/* Postage / visitors: heavy flip-clock brass housings */
.ship-postage,
.ship-visitors {
  border: 2px solid rgba(224, 184, 96, 0.78) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.28) 0%, transparent 35%),
    linear-gradient(125deg, rgba(232, 184, 74, 0.3), transparent 55%),
    #463628 !important;
  box-shadow:
    0 0 0 2px #3a2e24,
    0 0 0 3px rgba(201, 149, 66, 0.45),
    0 0 22px rgba(232, 184, 74, 0.32),
    inset 0 1px 0 rgba(255, 236, 190, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4) !important;
}
.ship-postage-kicker,
.ship-visitors-kicker {
  color: #ffe9b0 !important;
  font-weight: 850 !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.5) !important;
}
.flip-face {
  border: 1.5px solid rgba(224, 184, 96, 0.7) !important;
  border-radius: 2px !important;
  background:
    linear-gradient(180deg, rgba(255, 240, 200, 0.28) 0%, transparent 44%, rgba(0, 0, 0, 0.45) 52%, rgba(45, 30, 14, 0.6) 100%),
    #2a2014 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 12px rgba(232, 184, 74, 0.28) !important;
  color: #fffaf0 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255, 200, 100, 0.55) !important;
}

/* ---- Pulse / Vendor Markets / Customer Mail shells ---- */
.pulse-panel.hud-panel {
  border-color: #d4a858 !important;
}
.pulse-events {
  border: 1.5px solid rgba(201, 149, 66, 0.58) !important;
  border-radius: 3px !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.14), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(80, 50, 35, 0.12) 10px 11px),
    rgba(56, 44, 32, 0.92) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 180, 0.12),
    0 0 0 1px rgba(60, 45, 30, 0.4) !important;
  padding: 0.4rem !important;
}
.pulse-events-kicker {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(201, 149, 66, 0.6);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 236, 190, 0.25), rgba(90, 60, 30, 0.22));
  color: #ffe9b0 !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 8px rgba(232, 184, 74, 0.35);
}
.pulse-event {
  border-left: 3px solid #d4a858 !important;
  border-radius: 2px !important;
  background:
    linear-gradient(90deg, rgba(232, 184, 74, 0.12), transparent 40%),
    rgba(48, 38, 28, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(201, 149, 66, 0.2);
}
.pulse-mail {
  border: 1.5px solid rgba(201, 149, 66, 0.5) !important;
  border-radius: 3px !important;
  padding: 0.35rem !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 180, 0.1), transparent 40%),
    rgba(56, 44, 32, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 180, 0.1);
}
.pulse-mail-head,
.pulse-mail-kicker {
  color: #ffe9b0 !important;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.pulse-mail .mail-card.is-blank,
.pulse-mail .mail-card:not(.is-blank),
.mail-msg {
  border: 1px solid rgba(201, 149, 66, 0.45) !important;
  border-radius: 2px !important;
  background:
    linear-gradient(165deg, rgba(255, 220, 160, 0.12), transparent 55%),
    rgba(48, 38, 28, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 180, 0.08);
}

/* Keep content above decorative chrome; gears never cover numbers */
.printers-panel-body,
.ship-panel-body,
.pulse-panel .pulse-body,
.mail-messages,
.ship-kpi .kpi-value,
.flip-face,
.printer-card .printer-name,
.printer-status,
.printer-timeleft,
.printer-progress,
.farm-summary-chip {
  position: relative;
  z-index: 2;
}

/* Live farm glow still reads industrial */
.printers-panel.hud-panel.is-live {
  box-shadow:
    0 0 0 3px #3e342c,
    0 0 0 5px rgba(200, 224, 106, 0.45),
    0 0 30px rgba(232, 184, 74, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 236, 190, 0.4) !important;
}

@media (prefers-reduced-motion: reduce) {
  .printers-panel.hud-panel::after,
  .ship-panel.hud-panel::after,
  .pulse-panel.hud-panel::after {
    animation: none !important;
  }
}


/* ==== di-hub-v47: scoot-up + no gauge swatches + no printer mid-seam ==== */
/* Layout locked; info unmoved. Industrial chrome kept. */

/* 1) Kill decorative color-swatch / gauge-strip accents over status phrases
      (Print Farm logo, Fulfillment LIVE, Telemetry "Running smooth", etc.) */
.printers-panel.hud-panel::before,
.ship-panel.hud-panel::before,
.pulse-panel.hud-panel::before {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* 2) Kill Print Farm printer-card mid-seam / flip-face horizontal divider */
.printer-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* 3) Scoot everything up a little so bottom (op printers / Markets / Mail) fits */
/* v46 plate headers used 0.7rem !important and overrode tighter kiosk margins */
body.kiosk-mode .printers-panel .mail-head,
body.kiosk-mode .ship-panel .mail-head,
body.kiosk-mode .pulse-panel .mail-head,
body.kiosk-mode .pulse-panel .pulse-head {
  margin-bottom: 0.22rem !important;
  padding: 0.28rem 2.0rem 0.3rem 0.5rem !important;
}

body.kiosk-mode .app-shell {
  padding: 0.14rem 0.38rem 0.08rem !important;
  gap: 0.1rem !important;
}

body.kiosk-mode .hero-brand {
  padding: 0.16rem 0.4rem !important;
  margin-bottom: 0 !important;
}

body.kiosk-mode .order-notice-dock,
body.kiosk-mode .live-orders-strip {
  padding: 0.28rem 0.6rem !important;
  gap: 0.32rem 0.55rem !important;
}

body.kiosk-mode .ops-board {
  gap: 0.22rem !important;
}

body.kiosk-mode .printers-panel {
  padding: 0.26rem 0.34rem !important;
}

body.kiosk-mode .ship-panel,
body.kiosk-mode .fulfill-desk,
body.kiosk-mode .printers-panel > .pulse-panel {
  padding: 0.22rem 0.32rem !important;
}

body.kiosk-mode .printers-panel > .pulse-panel {
  margin-top: 0.06rem !important;
}

body.kiosk-mode .ops-secondary {
  gap: 0.14rem !important;
}

body.kiosk-mode .ship-packing-head {
  margin-bottom: 0.22rem !important;
  padding: 0.14rem 1.5rem 0.14rem 0.3rem !important;
}

body.kiosk-mode .pulse-events {
  padding: 0.28rem !important;
}

body.kiosk-mode .pulse-events-kicker {
  margin-bottom: 0.22rem !important;
  padding: 0.1rem 0.35rem !important;
}

body.kiosk-mode .pulse-mail {
  padding: 0.26rem !important;
}

/* ==== di-hub-v48: grass-green accents (was brass-yellow); industrial chrome/layout locked ==== */
/* True grass green — not forest/olive. Iron rims, rivets, plate shells kept. */

:root {
  --border: rgba(74, 190, 70, 0.55);
  --border-strong: rgba(90, 210, 80, 0.78);
  --border-gold: rgba(110, 220, 95, 0.85);
  --cyan: #5ed84a;
  --cyan-dim: #3db82e;
  --cyan-glow: rgba(94, 216, 74, 0.45);
  --gold: #8ae86a;
  --amber: #6fd85a;
  --green: #7ef07a;
  --glow-cyan: 0 0 12px rgba(94, 216, 74, 0.42), 0 0 24px rgba(50, 160, 40, 0.18);
  --glow-gold: 0 0 12px rgba(138, 232, 106, 0.5);
  --brass: #62c84a;
  --copper: #4aaa38;
  --shadow: 0 0 18px rgba(40, 140, 50, 0.16), 0 12px 36px rgba(0, 0, 0, 0.38);
}

/* Panel shells: keep iron outer rim + chrome structure; retint brass lip/border to grass */
.printers-panel.hud-panel,
.ship-panel.hud-panel,
.pulse-panel.hud-panel,
.ss-data-dock.hud-panel,
.hero-brand.hud-panel {
  border-color: #5ecf4a !important;
  background:
    linear-gradient(180deg, rgba(180, 255, 160, 0.18) 0%, rgba(120, 220, 100, 0.06) 18%, transparent 42%),
    repeating-linear-gradient(
      0deg,
      transparent 0 11px,
      rgba(50, 80, 45, 0.18) 11px 12px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(90, 140, 80, 0.10) 0 28px,
      rgba(50, 60, 45, 0.16) 28px 29px
    ),
    linear-gradient(165deg, rgba(94, 216, 74, 0.12), transparent 55%),
    rgba(68, 52, 38, 0.96) !important;
  box-shadow:
    0 0 0 3px #4a4038,
    0 0 0 5px rgba(94, 200, 70, 0.55),
    0 0 22px rgba(70, 180, 60, 0.26),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(200, 255, 180, 0.28),
    inset 0 2px 0 rgba(210, 255, 190, 0.14),
    inset 0 -2px 0 rgba(20, 40, 18, 0.35) !important;
}

/* Generic hud-panel brass borders -> grass */
.hud-panel {
  border-color: rgba(94, 200, 70, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(180, 255, 160, 0.12), transparent 40%),
    linear-gradient(165deg, rgba(94, 216, 74, 0.08), transparent 55%),
    rgba(62, 50, 38, 0.94) !important;
}

/* Corner bolt studs: chrome structure kept, tint grass */
.printers-panel .hud-corner::before,
.ship-panel .hud-corner::before,
.pulse-panel .hud-corner::before,
.ss-data-dock .hud-corner::before,
.hero-brand .hud-corner::before {
  background:
    radial-gradient(circle at 35% 30%, #e8ffe0 0%, #9aef7a 28%, #5ecf4a 55%, #2a6a22 100%) !important;
  box-shadow:
    0 0 0 2px #3a2a1a,
    0 0 0 3px rgba(94, 200, 70, 0.75),
    inset 0 1px 1px rgba(230, 255, 220, 0.7),
    inset 0 -1px 1px rgba(20, 50, 18, 0.55),
    0 0 10px rgba(94, 216, 74, 0.45) !important;
}
.printers-panel .hud-corner::after,
.ship-panel .hud-corner::after,
.pulse-panel .hud-corner::after,
.ss-data-dock .hud-corner::after,
.hero-brand .hud-corner::after {
  background: radial-gradient(circle at 35% 30%, #b8f090, #3a8a28) !important;
}

/* Plate headers: keep plate chrome; brass nameplate -> grass */
.printers-panel .mail-head,
.ship-panel .mail-head,
.pulse-panel .mail-head,
.pulse-panel .pulse-head {
  border-color: rgba(94, 200, 70, 0.7);
  background:
    linear-gradient(180deg, rgba(180, 255, 160, 0.28) 0%, rgba(94, 180, 70, 0.16) 45%, rgba(40, 70, 30, 0.25) 100%),
    #5a4634;
  box-shadow:
    inset 0 1px 0 rgba(210, 255, 190, 0.32),
    inset 0 -1px 0 rgba(20, 40, 18, 0.4),
    0 0 0 1px rgba(60, 45, 30, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.printers-panel .mail-head::before,
.ship-panel .mail-head::before,
.pulse-panel .mail-head::before,
.pulse-panel .pulse-head::before {
  background: radial-gradient(circle at 35% 30%, #e8ffe0, #5ecf4a 55%, #2a6a22);
  box-shadow:
    0 0 0 1px #2a1c10,
    36px 0 0 0 #5ecf4a,
    36px 0 0 1px #2a1c10;
}

/* Corner gear SVG accents — recolor stroke fills via filter toward grass */
.printers-panel.hud-panel::after,
.ship-panel.hud-panel::after,
.pulse-panel.hud-panel::after,
.ss-data-dock.hud-panel::after {
  filter: hue-rotate(75deg) saturate(1.15) brightness(1.05) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Section titles / KPI accents that used brass-yellow */
.section-title h2,
.mail-head h2,
.pulse-head h2 {
  color: #9aef7a !important;
  text-shadow: 0 0 10px rgba(94, 216, 74, 0.35);
}

/* Steam pipe rivets + rail studs that were brass */
.steam-pipe::before,
.steam-pipe::after {
  background: radial-gradient(circle at 35% 30%, #c8f8a8, #4aaa38 55%, #1e4018);
}
.steam-rivet-rail::before {
  background:
    radial-gradient(circle, #62c84a 0 35%, transparent 38%) 0 0 / 8px 22px;
}
.steam-rivet-rail {
  box-shadow: inset 0 0 0 1px rgba(120, 200, 100, 0.22);
}

/* Live / status chips that leaned brass-yellow */
.live-pill,
.status-live,
.badge-live {
  border-color: rgba(94, 200, 70, 0.65) !important;
  color: #9aef7a !important;
  box-shadow: 0 0 8px rgba(94, 216, 74, 0.35) !important;
}

/* ==== di-hub-v49: scoot-up more (SumUp/Squarespace were clipped); color+layout locked ==== */
/* Small vertical tighten only — grass green (v48) and industrial chrome kept. */

body.kiosk-mode .printers-panel .mail-head,
body.kiosk-mode .ship-panel .mail-head,
body.kiosk-mode .pulse-panel .mail-head,
body.kiosk-mode .pulse-panel .pulse-head {
  margin-bottom: 0.12rem !important;
  padding: 0.18rem 1.85rem 0.2rem 0.42rem !important;
}

body.kiosk-mode .app-shell {
  padding: 0.06rem 0.34rem 0.02rem !important;
  gap: 0.05rem !important;
}

body.kiosk-mode .hero-brand {
  padding: 0.1rem 0.34rem !important;
  margin-bottom: 0 !important;
}

body.kiosk-mode .order-notice-dock,
body.kiosk-mode .live-orders-strip {
  padding: 0.18rem 0.48rem !important;
  gap: 0.22rem 0.42rem !important;
  margin-bottom: 0 !important;
}

body.kiosk-mode .ops-board {
  gap: 0.12rem !important;
}

body.kiosk-mode .printers-panel {
  padding: 0.16rem 0.28rem !important;
}

body.kiosk-mode .ship-panel,
body.kiosk-mode .fulfill-desk,
body.kiosk-mode .printers-panel > .pulse-panel {
  padding: 0.14rem 0.26rem !important;
}

body.kiosk-mode .printers-panel > .pulse-panel {
  margin-top: 0.02rem !important;
}

body.kiosk-mode .ops-secondary {
  gap: 0.08rem !important;
}

body.kiosk-mode .ship-packing-head {
  margin-bottom: 0.12rem !important;
  padding: 0.08rem 1.35rem 0.08rem 0.26rem !important;
}

body.kiosk-mode .pulse-events {
  padding: 0.16rem !important;
}

body.kiosk-mode .pulse-events-kicker {
  margin-bottom: 0.12rem !important;
  padding: 0.06rem 0.28rem !important;
}

body.kiosk-mode .pulse-mail {
  padding: 0.16rem !important;
}

/* ShipStation channel strip (SumUp / Squarespace / eBay) — slight compress so bottom clears */
body.kiosk-mode .ship-kpi,
body.kiosk-mode .ship-kpi.ship-kpi-channel {
  padding: 0.18rem 0.28rem !important;
  min-height: 0 !important;
}

body.kiosk-mode .ship-kpi .kpi-value {
  font-size: 0.95em !important;
  line-height: 1.05 !important;
}

body.kiosk-mode .ship-kpi .kpi-label {
  font-size: 0.78em !important;
  line-height: 1.05 !important;
  margin-top: 0.04rem !important;
}

body.kiosk-mode .ship-kpi-grid,
body.kiosk-mode .ship-kpis,
body.kiosk-mode .fulfill-desk .ship-kpi-grid {
  gap: 0.14rem !important;
  row-gap: 0.12rem !important;
}

body.kiosk-mode .fulfill-cell {
  padding: 0.14rem 0.22rem !important;
}

body.kiosk-mode .printer-grid,
body.kiosk-mode .printers-grid {
  gap: 0.14rem !important;
}

body.kiosk-mode .printer-card {
  padding: 0.14rem 0.2rem !important;
}

body.kiosk-mode .ss-data-dock,
body.kiosk-mode .live-orders-strip.ss-data-dock {
  padding: 0.16rem 0.4rem !important;
}

