/* BEGIN SCREEN COMMAND CENTER STYLES */
/* Deep-Space Obsidian 4K Industrial Command Center + Full Mobile Parity (v116) */

html,
body.screen-clean,
body.screen-clean.screen-grand,
body.screen-clean.screen-glass-aurora {
  background:
    radial-gradient(ellipse 72% 45% at 50% 0%, rgba(14, 165, 233, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 12% 85%, rgba(37, 99, 235, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, #020617 0%, #050f27 52%, #020718 100%) !important;
  color: #e2e8f0 !important;
  overflow: hidden;
}

body.screen-clean::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* ==================== MAJESTIC OBSIDIAN ARCH HEADER ==================== */
body.screen-clean .screen-header {
  position: relative;
  z-index: 10;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 20px !important;
  min-height: 58px !important;
  background: linear-gradient(180deg, rgba(4, 14, 38, 0.96) 0%, rgba(5, 18, 48, 0.86) 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.32) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(56, 189, 248, 0.25) !important;
}
body.screen-clean .screen-header::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #38bdf8, #10b981, transparent);
}
body.screen-clean .screen-brand {
  grid-column: 2;
  justify-content: center;
  text-align: center;
  gap: 10px !important;
}
body.screen-clean .screen-logo {
  background: linear-gradient(135deg, #00f0ff, #2563eb) !important;
  color: #020617 !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5) !important;
}
body.screen-clean .screen-brand p {
  color: #38bdf8 !important;
  letter-spacing: 0.22em !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
body.screen-clean .screen-brand h1 {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  background: linear-gradient(90deg, #e0f2fe 0%, #ffffff 45%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 26px rgba(56, 189, 248, 0.4);
  margin: 0 !important;
}
body.screen-clean .screen-clock-box {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  background: rgba(6, 20, 52, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.34) !important;
  color: #7dd3fc !important;
  font-family: Consolas, "JetBrains Mono", monospace !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.14);
}
body.screen-clean .screen-live-pulse {
  background: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.32) !important;
}
body.screen-clean .screen-tools {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 6px !important;
}
body.screen-clean .screen-tools button,
body.screen-clean .screen-tools a {
  background: rgba(8, 24, 58, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease;
}
body.screen-clean .screen-tools button:hover,
body.screen-clean .screen-tools a:hover {
  background: rgba(14, 165, 233, 0.28) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

/* ==================== DARK GLASS 11-SCREEN NAV RIBBON ==================== */
body.screen-clean .screen-pages {
  position: relative;
  z-index: 9;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 16px !important;
  background: rgba(4, 12, 32, 0.9) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow: none !important;
  overflow-x: auto;
}
body.screen-clean .screen-pages > button {
  background: rgba(10, 25, 58, 0.72) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
body.screen-clean .screen-pages > button span {
  color: #38bdf8 !important;
  margin-right: 4px;
  font-family: Consolas, monospace;
}
body.screen-clean .screen-pages > button:hover {
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: rgba(14, 165, 233, 0.18) !important;
}
body.screen-clean .screen-pages > button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.85), rgba(37, 99, 235, 0.9)) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45) !important;
}
body.screen-clean .screen-pages > button[aria-pressed="true"] span {
  color: #e0f2fe !important;
}

.screen-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.screen-step-btn {
  appearance: none;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(10, 26, 62, 0.85);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.screen-step-btn:hover { background: rgba(14, 165, 233, 0.32); color: #ffffff; }
body.screen-clean .screen-rotate-control {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
}
body.screen-clean .screen-rotate-control select {
  background: rgba(10, 26, 62, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #e0f2fe !important;
  border-radius: 7px !important;
  padding: 3px 6px !important;
}

.screen-rotate-progress {
  position: relative;
  z-index: 9;
  height: 2px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}
.screen-rotate-progress[hidden] { display: none; }
.screen-rotate-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00f0ff, #38bdf8, #10b981);
  transform-origin: left center;
}
.screen-rotate-bar.is-15 { animation: cmdRotFill 15s linear infinite; }
.screen-rotate-bar.is-30 { animation: cmdRotFill 30s linear infinite; }
.screen-rotate-bar.is-60 { animation: cmdRotFill 60s linear infinite; }
@keyframes cmdRotFill { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* FULL-BLEED VIEWPORT STAGE FOR COMMAND SCREENS (ZERO WASTED MARGINS!) */
body.screen-clean #screen-content {
  position: relative !important;
  z-index: 2;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.screen-clean #screen-content .screen-fit-stage.is-fullbleed {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  padding: 10px 14px 10px !important;
  box-sizing: border-box !important;
}
body.screen-clean .screen-footer {
  position: relative !important;
  z-index: 9;
  background: rgba(3, 10, 26, 0.94) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #64748b !important;
  font-size: 11px !important;
  padding: 5px 18px !important;
}

/* ==================== UNIFIED DARK OBSIDIAN SKIN FOR CLASSIC SCREENS (00~06) ==================== */
body.screen-clean .hub-screen-dashboard,
body.screen-clean .wall-scene-heading {
  color: #e2e8f0 !important;
}
body.screen-clean .wall-scene-heading h2 {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}
body.screen-clean .hub-panel,
body.screen-clean .hub-metric,
body.screen-clean .wall-process-card,
body.screen-clean .dt-kpi-pill,
body.screen-clean .dt-screen-canvas-card,
body.screen-clean .dt-screen-list-card,
body.screen-clean .dt-inspector-pane.is-screen {
  background: linear-gradient(160deg, rgba(8, 22, 54, 0.88) 0%, rgba(5, 14, 36, 0.92) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.26) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(125, 211, 252, 0.12) !important;
}
body.screen-clean .hub-panel h3,
body.screen-clean .hub-metric strong,
body.screen-clean .dt-kpi-pill strong,
body.screen-clean .dt-screen-list-card h3,
body.screen-clean .dt-inspector-card h3,
body.screen-clean .dt-row-name,
body.screen-clean .wall-process-card h4 {
  color: #ffffff !important;
}
body.screen-clean .dt-kpi-pill span,
body.screen-clean .dt-inspector-sub,
body.screen-clean .hub-metric span,
body.screen-clean .dt-screen-canvas-bar {
  color: #93c5fd !important;
}
body.screen-clean .dt-screen-row {
  background: rgba(10, 26, 62, 0.72) !important;
  border-color: rgba(56, 189, 248, 0.18) !important;
  color: #e2e8f0 !important;
}
body.screen-clean .dt-screen-row.is-selected {
  background: rgba(14, 165, 233, 0.22) !important;
  border-color: #38bdf8 !important;
}
body.screen-clean .dt-inspector-hero,
body.screen-clean .dt-inspector-grid > div {
  background: rgba(6, 18, 46, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.22) !important;
  color: #e2e8f0 !important;
}
body.screen-clean .dt-mode-btn {
  background: rgba(8, 22, 54, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.28) !important;
  color: #cbd5e1 !important;
}
body.screen-clean .dt-mode-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}
body.screen-clean .dt-flow-ribbon {
  background: rgba(6, 18, 46, 0.88) !important;
  border-color: rgba(56, 189, 248, 0.26) !important;
}
body.screen-clean .dt-flow-node {
  background: rgba(10, 28, 66, 0.85) !important;
  border-color: rgba(56, 189, 248, 0.22) !important;
  color: #e2e8f0 !important;
}

/* ==================== FLAGSHIP 3-COLUMN CINEMA COMMAND LAYOUT ==================== */
.cmd-root {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  color: #e2e8f0;
}
.cmd-main-wall {
  display: grid;
  grid-template-columns: minmax(290px, 26%) minmax(480px, 1fr) minmax(290px, 26%);
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.cmd-wing {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.cmd-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

/* HUD GLASS PANELS WITH CORNER ACCENTS */
.cmd-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(8, 24, 58, 0.88) 0%, rgba(4, 13, 34, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.26);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(125, 211, 252, 0.14);
  overflow: hidden;
  min-height: 0;
}
.cmd-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.65), transparent);
}
.cmd-panel.is-grow { flex: 1 1 auto; }
.cmd-phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0.02));
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  flex-shrink: 0;
}
.cmd-phead h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: 0.03em;
}
.cmd-phead h3 i {
  width: 4px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00f0ff, #2563eb);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.75);
}
.cmd-sub-tag { font-size: 10.5px; color: #7dd3fc; font-weight: 700; }
.cmd-pbody {
  padding: 9px 11px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cmd-mini-jump {
  appearance: none;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.cmd-mini-jump:hover { background: rgba(56, 189, 248, 0.36); color: #ffffff; }

/* CENTER HERO 4 LUMINOUS LED KPIs */
.cmd-hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex-shrink: 0;
}
.cmd-hkpi {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 28, 66, 0.92), rgba(5, 15, 38, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-top: 2px solid #00f0ff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.85), inset 0 0 22px rgba(0, 240, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cmd-hkpi.is-emerald { border-top-color: #10b981; }
.cmd-hkpi.is-blue { border-top-color: #60a5fa; }
.cmd-hkpi.is-gold { border-top-color: #fbbf24; }
.cmd-hkpi.is-rose { border-top-color: #f43f5e; background: linear-gradient(160deg, rgba(64, 12, 28, 0.86), rgba(28, 7, 18, 0.94)); }
.cmd-hkpi span { font-size: 11px; font-weight: 750; color: #93c5fd; }
.cmd-hkpi strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.42);
}
.cmd-hkpi.is-emerald strong { color: #6ee7b7; text-shadow: 0 0 18px rgba(16, 185, 129, 0.45); }
.cmd-hkpi.is-gold strong { color: #fde68a; text-shadow: 0 0 18px rgba(251, 191, 36, 0.42); }
.cmd-hkpi strong small { font-size: 12px; font-weight: 750; color: #94a3b8; margin-left: 3px; }
.cmd-hkpi em { font-style: normal; font-size: 10.5px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* GIANT CENTER 3D DIGITAL TWIN CYBER VIEWPORT */
.cmd-twin-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #020817;
  border: 1px solid rgba(0, 240, 255, 0.38);
  box-shadow: 0 0 36px -12px rgba(0, 240, 255, 0.35), inset 0 0 42px rgba(14, 165, 233, 0.16);
}
.cmd-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 6;
  pointer-events: none;
  border-color: #00f0ff;
  border-style: solid;
}
.cmd-corner.is-tl { top: 6px; left: 6px; border-width: 2.5px 0 0 2.5px; }
.cmd-corner.is-tr { top: 6px; right: 6px; border-width: 2.5px 2.5px 0 0; }
.cmd-corner.is-bl { bottom: 44px; left: 6px; border-width: 0 0 2.5px 2.5px; }
.cmd-corner.is-br { bottom: 44px; right: 6px; border-width: 0 2.5px 2.5px 0; }

.cmd-twin-hud-top {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cmd-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #e0f2fe;
  background: rgba(3, 14, 38, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.55);
  backdrop-filter: blur(8px);
}
.cmd-live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.35);
}
.cmd-twin-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cmd-twin-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.16) brightness(0.92);
}
.cmd-twin-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.65) 0%, rgba(2, 8, 23, 0.08) 26%, rgba(2, 8, 23, 0.14) 72%, rgba(2, 8, 23, 0.78) 100%),
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(2, 8, 23, 0.56) 100%);
}
.cmd-twin-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.1) 50%, transparent 100%);
  background-size: 100% 240%;
  animation: cmdScan 6s linear infinite;
}
@keyframes cmdScan { 0% { background-position: 0 -100%; } 100% { background-position: 0 200%; } }

.cmd-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.cmd-beam-path {
  animation: cmdFlowDash 2.2s linear infinite;
}
@keyframes cmdFlowDash {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}

.cmd-beacons { position: absolute; inset: 0; z-index: 4; }
.cmd-beacon {
  position: absolute;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.48);
  background: rgba(3, 14, 38, 0.84);
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 240, 255, 0.22);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.cmd-beacon:hover { transform: translateY(-2px) scale(1.04); border-color: #00f0ff; }
.cmd-b-ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}
.cmd-beacon.is-on .cmd-b-ring {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35), 0 0 12px #10b981;
}
.cmd-b-box b { display: block; font-size: 11px; font-weight: 850; color: #ffffff; white-space: nowrap; }
.cmd-b-box em { display: block; font-style: normal; font-size: 10.5px; font-weight: 750; color: #00f0ff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmd-beacon.is-b1 { left: 4%; top: 18%; }
.cmd-beacon.is-b2 { left: 37%; top: 15%; }
.cmd-beacon.is-b3 { right: 4%; bottom: 16%; }
.cmd-beacon.is-b4 { left: 35%; bottom: 14%; }
.cmd-beacon.is-b5 { left: 4%; bottom: 16%; }

.cmd-cam-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(4, 13, 34, 0.96);
  border-top: 1px solid rgba(56, 189, 248, 0.24);
  flex-shrink: 0;
}
.cmd-cam-pill {
  appearance: none;
  flex: 1 1 0;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(10, 26, 62, 0.8);
  color: #94a3b8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.cmd-cam-pill:hover { color: #ffffff; border-color: rgba(56, 189, 248, 0.6); }
.cmd-cam-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

/* LIVE SCROLLING MARQUEE TICKER */
.cmd-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(6, 18, 46, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  overflow: hidden;
  flex-shrink: 0;
}
.cmd-ticker-tag {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}
.cmd-ticker-track { flex: 1; overflow: hidden; white-space: nowrap; }
.cmd-ticker-inner {
  display: inline-flex;
  gap: 28px;
  font-size: 11.5px;
  font-weight: 700;
  color: #bae6fd;
  animation: cmdMarquee 32s linear infinite;
}
@keyframes cmdMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CHARTS & WING COMPONENTS */
.cmd-chart-svg { width: 100%; height: auto; display: block; }
.cmd-link-list { justify-content: flex-start; gap: 6px; }
.cmd-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(10, 26, 62, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-left: 3px solid #10b981;
  font-size: 11.5px;
  color: #e2e8f0;
}
.cmd-link-row.is-warn { border-left-color: #f59e0b; }
.cmd-link-row.is-alert { border-left-color: #f43f5e; background: rgba(68, 14, 30, 0.55); }
.cmd-link-row.is-pending { border-left-color: #64748b; }
.cmd-link-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cmd-tag-st {
  font-size: 10px;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(100, 116, 139, 0.3);
  color: #cbd5e1;
}
.cmd-tag-st.is-ok { background: rgba(16, 185, 129, 0.24); color: #6ee7b7; }
.cmd-tag-st.is-warn { background: rgba(245, 158, 11, 0.24); color: #fcd34d; }
.cmd-tag-st.is-alert { background: rgba(244, 63, 94, 0.26); color: #fda4af; }

.cmd-eq-top-mix {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cmd-eq-top-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cmd-eq-top-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(8, 22, 54, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.16);
  font-size: 11.5px;
  color: #94a3b8;
}
.cmd-eq-top-stats b { color: #ffffff; font-weight: 850; }
.cmd-eq-top-stats b.is-green { color: #6ee7b7; }
.cmd-eq-top-stats b.is-amber { color: #fcd34d; }
.cmd-eq-top-stats b.is-red { color: #fda4af; }

.cmd-eq-list { display: flex; flex-direction: column; gap: 5px; }
.cmd-eq-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(10, 26, 62, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.16);
}
.cmd-led { width: 7px; height: 7px; border-radius: 50%; background: #64748b; flex-shrink: 0; }
.cmd-eq-row.is-RUNNING .cmd-led { background: #10b981; box-shadow: 0 0 8px #10b981; }
.cmd-eq-row.is-IDLE .cmd-led { background: #38bdf8; }
.cmd-eq-row.is-FAULT .cmd-led { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
.cmd-eq-info { flex: 1; min-width: 0; }
.cmd-eq-info b { display: block; font-size: 11.5px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-eq-info small { display: block; font-size: 10px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cmd-st-pill {
  font-size: 10px;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(100, 116, 139, 0.26);
  color: #cbd5e1;
}
.cmd-st-pill.is-RUNNING { background: rgba(16, 185, 129, 0.24); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.45); }
.cmd-st-pill.is-IDLE { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.cmd-st-pill.is-FAULT { background: rgba(244, 63, 94, 0.26); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.5); }

.cmd-ord-list { justify-content: flex-start; gap: 6px; }
.cmd-ord-item,
.cmd-ord-bigcard {
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(10, 26, 62, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmd-ord-top { display: flex; align-items: center; gap: 6px; }
.cmd-ord-top b { font-size: 11.5px; color: #ffffff; white-space: nowrap; }
.cmd-ord-top span { font-size: 11px; color: #7dd3fc; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-ord-top em { font-style: normal; font-size: 10px; color: #94a3b8; white-space: nowrap; }
.cmd-ord-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cmd-ord-tags i {
  font-style: normal;
  font-size: 10px;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-ord-tags i.is-p { background: rgba(56, 189, 248, 0.2); color: #bae6fd; }
.cmd-ord-tags i.is-r { background: rgba(245, 158, 11, 0.22); color: #fde68a; }
.cmd-ord-bars { display: flex; flex-direction: column; gap: 3px; }
.cmd-prog-line { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #cbd5e1; }
.cmd-prog-line progress { flex: 1; height: 6px; accent-color: #10b981; }
.cmd-prog-line.is-ship progress { accent-color: #00f0ff; }
.cmd-prog-line b { color: #ffffff; font-size: 10.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ==================== DEDICATED SUB-SCREENS (07 / 08 / 09) ==================== */
.cmd-subscreen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}
.cmd-sub-top {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 1.4fr);
  gap: 10px;
  flex-shrink: 0;
}
.cmd-gauge-strip {
  flex-direction: row !important;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}
.cmd-eyebrow { display: block; font-size: 10px; font-weight: 850; letter-spacing: 0.14em; color: #00f0ff; margin-bottom: 3px; }
.cmd-gs-copy h2 { margin: 0 0 4px; font-size: 19px; font-weight: 900; color: #ffffff; }
.cmd-gs-copy p { margin: 0; font-size: 11.5px; color: #94a3b8; line-height: 1.4; }
.cmd-sub-kpis-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.cmd-eq-grid-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cmd-eq-bigcard {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 26, 62, 0.9), rgba(5, 14, 36, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-left: 4px solid #64748b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmd-eq-bigcard.is-RUNNING { border-left-color: #10b981; }
.cmd-eq-bigcard.is-IDLE { border-left-color: #38bdf8; }
.cmd-eq-bigcard.is-FAULT { border-left-color: #f43f5e; }
.cmd-ebc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cmd-ebc-code { font-size: 10.5px; font-weight: 800; color: #38bdf8; }
.cmd-ebc-head h4 { margin: 2px 0 0; font-size: 14.5px; color: #ffffff; }
.cmd-ebc-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmd-ebc-val { font-size: 13px; font-weight: 750; color: #e2e8f0; }
.cmd-ebc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px dashed rgba(148, 163, 184, 0.2); font-size: 11px; color: #94a3b8; }

.cmd-sub-bottom-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; min-height: 0; }
.cmd-maint-list { justify-content: flex-start; gap: 7px; }
.cmd-maint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(65, 14, 30, 0.52);
  border: 1px solid rgba(244, 63, 94, 0.34);
  font-size: 12px;
}
.cmd-maint-row.is-warn { background: rgba(68, 42, 12, 0.5); border-color: rgba(245, 158, 11, 0.36); }
.cmd-maint-row b { color: #ffffff; flex: 1; }
.cmd-maint-row small { color: #cbd5e1; white-space: nowrap; }

.cmd-pipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cmd-pipe-card {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(10, 26, 62, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-top: 3px solid #10b981;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cmd-pipe-card.is-warn { border-top-color: #f59e0b; }
.cmd-pipe-card.is-alert { border-top-color: #f43f5e; background: rgba(65, 14, 30, 0.55); }
.cmd-pipe-card.is-pending { border-top-color: #64748b; }
.cmd-pipe-top { display: flex; align-items: center; justify-content: space-between; }
.cmd-pipe-step { font-family: Consolas, monospace; font-size: 11px; font-weight: 900; color: #38bdf8; }
.cmd-pipe-card h4 { margin: 0; font-size: 12.5px; color: #ffffff; }
.cmd-pipe-vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cmd-pipe-vals span { display: block; font-size: 10px; color: #94a3b8; }
.cmd-pipe-vals b { display: block; font-size: 13.5px; color: #00f0ff; font-variant-numeric: tabular-nums; }
.cmd-pipe-card p { margin: 0; font-size: 10.5px; color: #cbd5e1; line-height: 1.35; }

.cmd-ord-grid-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; }
.cmd-empty { padding: 14px; text-align: center; font-size: 12px; color: #64748b; }
.cmd-ok-banner { padding: 10px 12px; border-radius: 9px; background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; font-size: 12px; font-weight: 700; }

/* ==================== FULL MOBILE / WECHAT PARITY (<= 860px) ==================== */
@media (max-width: 860px) {
  html, body.screen-clean {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
  }
  body.screen-clean .screen-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  body.screen-clean .screen-brand { justify-content: flex-start !important; text-align: left !important; }
  body.screen-clean .screen-brand h1 { font-size: 16px !important; }
  body.screen-clean .screen-clock-box { align-self: flex-start; font-size: 12px !important; }
  body.screen-clean .screen-tools { display: flex !important; flex-wrap: wrap !important; width: 100%; }
  body.screen-clean .screen-tools button, body.screen-clean .screen-tools a { min-height: 36px; flex: 1 1 auto; text-align: center; }
  body.screen-clean #screen-content { overflow: visible !important; height: auto !important; }
  body.screen-clean #screen-content .screen-fit-stage,
  body.screen-clean #screen-content .screen-fit-stage.is-fullbleed {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    padding: 8px 10px 16px !important;
  }
  .cmd-main-wall {
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
  }
  .cmd-center { order: -1; }
  .cmd-hero-kpis, .cmd-sub-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cmd-hkpi strong { font-size: 22px; }
  .cmd-twin-viewport { height: 220px; }
  .cmd-beacons {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: #040d24;
  }
  .cmd-beacon { position: static; width: 100%; }
  .cmd-cam-dock { overflow-x: auto; }
  .cmd-cam-pill { flex: 0 0 auto; min-height: 36px; }
  .cmd-sub-top, .cmd-eq-grid-6, .cmd-pipe-grid, .cmd-sub-bottom-2, .cmd-ord-grid-6 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .cmd-gauge-strip { flex-direction: column !important; text-align: center; }
  .cmd-maint-row { flex-direction: column; align-items: flex-start; }
  body.screen-clean .screen-footer { flex-wrap: wrap !important; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; }
}
/* END SCREEN COMMAND CENTER STYLES */
