/* ==========================================================================
   Knet Forma · Customer Showcase Wallboard (show.knet.city)
   Unified Single-Screen Daylight Glass (Default) & Precision Obsidian Dark.
   Zero external fonts/CDNs, zero inline data URIs, strictly CSP style-src 'self'.
   Optimized for 1920x1080 & 4K (3840x2160) TVs at 5m, plus laptops & tablets.
   ========================================================================== */

:root,
html[data-theme="light"] {
  --bg-canvas: #f5f8f6;
  --bg-canvas-b: #eaf1f3;
  --bg-ambient-a: rgba(36, 141, 120, 0.11);
  --bg-ambient-b: rgba(77, 130, 184, 0.09);
  --bg-ambient-c: rgba(195, 154, 74, 0.07);

  --surface: rgba(255, 255, 255, 0.80);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-sub: rgba(246, 250, 248, 0.88);
  --surface-pill: rgba(241, 246, 244, 0.92);
  --border: rgba(255, 255, 255, 0.94);
  --hairline: rgba(36, 95, 73, 0.12);
  --border-strong: rgba(36, 95, 73, 0.22);

  --ink: #1b3432;
  --ink-2: #435f5d;
  --ink-3: #68817e;

  --accent-mint: #149a82;
  --accent-mint-deep: #245f49;
  --accent-mint-soft: rgba(20, 154, 130, 0.11);
  --accent-mint-border: rgba(20, 154, 130, 0.28);

  /* Brand-compliant light mint primary action button (apps/web/AGENTS.md) */
  --primary-bg: #e2f2e7;
  --primary-bg-hover: #d3ebdd;
  --primary-bg-active: #c3e2d0;
  --primary-ink: #245f49;
  --primary-border: #b8dfc6;

  --accent-azure: #4d82b8;
  --accent-azure-soft: rgba(77, 130, 184, 0.12);
  --accent-azure-border: rgba(77, 130, 184, 0.28);

  --accent-teal: #14889a;
  --accent-teal-soft: rgba(20, 136, 154, 0.11);

  --accent-gold: #b88c3e;
  --accent-gold-soft: rgba(184, 140, 62, 0.12);

  --accent-violet: #8767ad;
  --accent-violet-soft: rgba(135, 103, 173, 0.12);

  --bar-track: rgba(36, 95, 73, 0.09);
  --pip-free: rgba(36, 95, 73, 0.12);

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 8px 28px rgba(26, 62, 58, 0.055);
  --shadow-elevated: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 54px rgba(24, 58, 54, 0.10);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg-canvas: #071019;
  --bg-canvas-b: #0b1623;
  --bg-ambient-a: rgba(56, 214, 183, 0.12);
  --bg-ambient-b: rgba(88, 180, 240, 0.10);
  --bg-ambient-c: rgba(230, 190, 108, 0.08);

  --surface: rgba(14, 24, 38, 0.80);
  --surface-strong: rgba(18, 31, 48, 0.92);
  --surface-sub: rgba(16, 27, 42, 0.90);
  --surface-pill: rgba(22, 36, 54, 0.92);
  --border: rgba(148, 179, 194, 0.16);
  --hairline: rgba(148, 179, 194, 0.14);
  --border-strong: rgba(148, 179, 194, 0.30);

  --ink: #eef7f7;
  --ink-2: #b9cfd4;
  --ink-3: #839da3;

  --accent-mint: #38d6b7;
  --accent-mint-deep: #7ef2da;
  --accent-mint-soft: rgba(56, 214, 183, 0.15);
  --accent-mint-border: rgba(56, 214, 183, 0.36);

  --primary-bg: rgba(56, 214, 183, 0.18);
  --primary-bg-hover: rgba(56, 214, 183, 0.26);
  --primary-bg-active: rgba(56, 214, 183, 0.32);
  --primary-ink: #9bf7e4;
  --primary-border: rgba(56, 214, 183, 0.44);

  --accent-azure: #58b4f0;
  --accent-azure-soft: rgba(88, 180, 240, 0.16);
  --accent-azure-border: rgba(88, 180, 240, 0.36);

  --accent-teal: #22d3ee;
  --accent-teal-soft: rgba(34, 211, 238, 0.16);

  --accent-gold: #e6be6c;
  --accent-gold-soft: rgba(230, 190, 108, 0.16);

  --accent-violet: #a98ee0;
  --accent-violet-soft: rgba(169, 142, 224, 0.16);

  --bar-track: rgba(148, 179, 194, 0.15);
  --pip-free: rgba(148, 179, 194, 0.18);

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.34);
  --shadow-elevated: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 64px rgba(0, 0, 0, 0.56);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  height: 100%;
}

/* 4K TV crisp scaling at 5m viewing distance */
@media (min-width: 2400px) {
  html {
    font-size: 24px;
  }
  .showcase-shell {
    max-width: 156rem;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(56rem 34rem at 12% -6%, var(--bg-ambient-a), transparent 65%),
    radial-gradient(54rem 32rem at 92% -4%, var(--bg-ambient-b), transparent 65%),
    radial-gradient(48rem 32rem at 52% 108%, var(--bg-ambient-c), transparent 65%),
    linear-gradient(125deg, var(--bg-canvas) 0%, var(--bg-canvas-b) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

.num {
  font-variant-numeric: tabular-nums;
}

button:focus-visible,
canvas:focus-visible,
.node-chip:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 2px;
}

/* ==========================================================================
   Main Showroom Shell (Single-Screen Unified Layout)
   ========================================================================== */

.showcase-shell {
  min-height: 100vh;
  max-width: 122rem;
  margin: 0 auto;
  padding: 0.85rem 1.35rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (min-width: 1281px) and (min-height: 780px) {
  .showcase-shell {
    height: 100vh;
    overflow: hidden;
  }
}

.topbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  padding: 0.68rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-subtitle {
  margin: 0.08rem 0 0;
  font-size: 0.74rem;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Topbar Live Compute Pool Status Pill ------------------------------------ */

.pool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
  color: var(--ink-2);
}

.pool-pill--producing {
  background: var(--primary-bg);
  border-color: var(--primary-border);
  color: var(--primary-ink);
}

.pool-pill--ready {
  background: var(--accent-azure-soft);
  border-color: var(--accent-azure-border);
  color: var(--accent-azure);
}

.pool-pill--neutral {
  background: var(--surface-strong);
  border-color: var(--hairline);
  color: var(--ink-3);
}

.pool-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.pool-pill--producing .pool-pill-dot {
  background: var(--accent-mint);
  animation: pulse-soft 2.2s ease-in-out infinite;
}

/* Topbar Right Controls --------------------------------------------------- */

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  background: var(--accent-mint-soft);
  border: 1px solid var(--accent-mint-border);
  color: var(--accent-mint-deep);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.sync-pill--preparing,
.sync-pill--syncing {
  background: var(--accent-azure-soft);
  border-color: var(--accent-azure-border);
  color: var(--accent-azure);
}

.sync-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.sync-sep {
  opacity: 0.45;
}

.sync-clock {
  font-family: var(--font-mono);
  font-weight: 700;
}

.ctrl-btn {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.78rem;
  border-radius: 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ctrl-btn:hover {
  background: var(--surface-pill);
  border-color: var(--border-strong);
  color: var(--ink);
}

.ctrl-btn.is-paused {
  background: var(--accent-azure-soft);
  border-color: var(--accent-azure-border);
  color: var(--accent-azure);
}

.ctrl-btn--subtle {
  color: var(--ink-3);
}

/* ==========================================================================
   Main Stage & Unified 2-Column Showroom Grid
   ========================================================================== */

.stage {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.unified-grid {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: minmax(0, 1.88fr) minmax(20rem, 25.5rem);
  gap: 0.85rem;
  min-height: 0;
}

.unified-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  min-height: 0;
}

.unified-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.rail-stack {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
}

/* Preparing State --------------------------------------------------------- */

.preparing-panel {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 26rem;
}

.preparing-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-elevated);
  padding: 2.8rem 3.2rem;
  text-align: center;
  max-width: 30rem;
}

.preparing-orb {
  width: 3.8rem;
  height: 3.8rem;
  margin: 0 auto 1.2rem;
}

.preparing-ring {
  width: 100%;
  height: 100%;
  animation: spin-calm 2.2s linear infinite;
}

.preparing-ring-track {
  stroke: var(--bar-track);
}

.preparing-ring-arc {
  stroke: var(--accent-mint);
}

.preparing-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
}

.preparing-desc {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* ==========================================================================
   Top-Left: 4-Card Hero Strip (Today + Cumulative Recorded)
   ========================================================================== */

.hero-band {
  flex: 0 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-card {
  padding: 0.85rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hero-accent, var(--accent-mint));
  opacity: 0.85;
}

.hero-card--mint {
  --hero-accent: var(--accent-mint);
  --hero-soft: var(--accent-mint-soft);
}

.hero-card--azure {
  --hero-accent: var(--accent-azure);
  --hero-soft: var(--accent-azure-soft);
}

.hero-card--gold {
  --hero-accent: var(--accent-gold);
  --hero-soft: var(--accent-gold-soft);
}

.hero-card--violet {
  --hero-accent: var(--accent-violet);
  --hero-soft: var(--accent-violet-soft);
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.hero-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.hero-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.52rem;
  background: var(--hero-soft);
  color: var(--hero-accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero-icon-svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.hero-scope-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--hero-accent);
  background: var(--hero-soft);
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-height: 2.35rem;
}

.hero-number {
  font-size: clamp(1.65rem, 2.05vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

.hero-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-caption {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-pill);
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
}

.hero-milestone {
  margin-top: auto;
  padding-top: 0.46rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero-milestone-label {
  font-size: 0.74rem;
  color: var(--ink-3);
  font-weight: 500;
}

.hero-milestone-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ==========================================================================
   Center-Left: Holographic Quantum Mac Compute Constellation Stage
   ========================================================================== */

.constellation-panel {
  flex: 1.65 1 0;
  min-height: 20.5rem;
  display: flex;
  flex-direction: column;
}

.neural-stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.neural-canvas-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.stage-badge-tl {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.stage-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.stage-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stage-legend {
  position: absolute;
  top: 0.82rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
  pointer-events: none;
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.leg-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
}

.leg-dot--busy {
  background: var(--accent-mint);
}

.leg-dot--ready {
  background: var(--accent-azure);
}

.leg-dot--pulse {
  background: var(--accent-gold);
}

.stage-hover-tip {
  position: absolute;
  bottom: 0.72rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0.85rem;
  border-radius: 0.7rem;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--ink-2);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.stage-hover-main {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.stage-hover-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.stage-hover-stat {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-weight: 600;
}

/* ==========================================================================
   Bottom-Left: Compact Real-Time Output Trend Dock (24H / 7D)
   ========================================================================== */

.trend-panel {
  flex: 0.78 1 0;
  min-height: 11.2rem;
  display: flex;
  flex-direction: column;
}

.trend-card {
  flex: 1 1 0;
  min-height: 0;
  padding: 0.72rem 1rem 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.trend-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
  flex-wrap: wrap;
}

.panel-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.panel-subtitle-inline {
  font-size: 0.74rem;
  color: var(--ink-3);
}

.trend-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.trend-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  color: var(--ink-2);
  font-weight: 500;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-item.is-muted {
  color: var(--ink-3);
  opacity: 0.72;
}

.legend-swatch {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
}

.legend-swatch--video {
  background: var(--accent-mint);
}

.legend-swatch--image {
  background: var(--accent-azure);
}

.segmented-group {
  display: inline-flex;
  padding: 0.16rem;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  border-radius: 0.56rem;
  gap: 0.16rem;
}

.seg-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.62rem;
  border-radius: 0.42rem;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.is-active {
  background: var(--primary-bg);
  border-color: var(--primary-border);
  color: var(--primary-ink);
}

.trend-canvas-wrap {
  flex: 1 1 0;
  min-height: 7.4rem;
  position: relative;
  overflow: hidden;
}

.trend-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  cursor: crosshair;
}

/* ==========================================================================
   Right Column: Healthy Node Snapshot + Live Anonymized Delivery Feed
   ========================================================================== */

.side-card {
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  min-height: 0;
  overflow: hidden;
}

.side-card--nodes {
  flex: 1 1 0;
}

.side-card--feed {
  flex: 1.05 1 0;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.side-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.side-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary-ink);
  border: 1px solid var(--primary-border);
  white-space: nowrap;
}

.side-state-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-sub);
  border: 1px dashed var(--hairline);
}

.side-state-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.side-state-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  max-width: 18rem;
}

.node-mini-grid {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.node-chip {
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
  border-radius: 0.62rem;
  padding: 0.48rem 0.58rem;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.node-chip:hover,
.node-chip.is-hl {
  border-color: var(--accent-mint);
  transform: translateY(-1px);
}

.node-chip--busy {
  background: linear-gradient(135deg, var(--accent-mint-soft), var(--surface-strong));
  border-color: var(--accent-mint-border);
}

.node-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.node-chip-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.node-chip-ratio {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-3);
}

.slot-pips {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.slot-pip {
  flex: 1 1 0;
  height: 0.26rem;
  border-radius: 999px;
}

.slot-pip--used {
  background: var(--accent-mint);
}

.slot-pip--free {
  background: var(--pip-free);
}

/* Delivery Stream --------------------------------------------------------- */

.feed-empty {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.84rem;
  color: var(--ink-3);
  background: var(--surface-sub);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0 0.2rem 0 0;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.node-mini-grid::-webkit-scrollbar,
.feed-list::-webkit-scrollbar {
  width: 5px;
}

.node-mini-grid::-webkit-scrollbar-track,
.feed-list::-webkit-scrollbar-track {
  background: transparent;
}

.node-mini-grid::-webkit-scrollbar-thumb,
.feed-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.feed-item {
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  border-radius: 0.65rem;
  padding: 0.48rem 0.68rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.feed-item.is-flash {
  border-color: var(--accent-gold);
  background: var(--accent-mint-soft);
}

.feed-role {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-ink);
  background: var(--primary-bg);
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  white-space: nowrap;
}

.feed-role--beat-showcase-video {
  color: var(--accent-azure);
  background: var(--accent-azure-soft);
}

.feed-role--copy-video {
  color: var(--accent-teal);
  background: var(--accent-teal-soft);
}

.feed-role--openmotion-video {
  color: var(--accent-violet);
  background: var(--accent-violet-soft);
}

.feed-role--lead-gen-video {
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.feed-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.feed-duration {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-2);
}

.feed-time {
  color: var(--ink-3);
  font-weight: 600;
}

.feed-time.is-fresh {
  color: var(--accent-mint);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  flex-wrap: wrap;
  padding: 0 0.2rem;
  font-size: 0.74rem;
  color: var(--ink-3);
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-chip {
  font-weight: 700;
  color: var(--ink-2);
}

.footer-hint kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.08rem 0.34rem;
  border-radius: 0.28rem;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}

/* ==========================================================================
   Auth Screen (Single-Password Showroom Unlock · Knet Brand Rules)
   ========================================================================== */

.auth-screen {
  min-height: 100vh;
  padding: 2rem 1.25rem;
  display: grid;
  place-items: center;
  position: relative;
}

.auth-toolbar {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 26.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(18px);
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-azure), var(--accent-gold));
}

.auth-emblem {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.auth-emblem-svg {
  width: 2.25rem;
  height: 2.25rem;
}

.auth-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-mint-deep);
}

.auth-title {
  margin: 0.4rem 0 0;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-subtitle {
  margin: 0.42rem 0 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.auth-field {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Strictly zero focus ring, border color change, or glow on text/password inputs */
.auth-input {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-sub);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  box-shadow: none;
}

.auth-input:focus,
.auth-input:focus-visible {
  outline: none;
  border-color: var(--border-strong);
  background: var(--surface-sub);
  box-shadow: none;
}

/* Brand-compliant light mint primary button (no solid dark-green white-text fill) */
.auth-submit {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.82rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--primary-border);
  background: var(--primary-bg);
  color: var(--primary-ink);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.auth-submit:hover:not(:disabled) {
  background: var(--primary-bg-hover);
}

.auth-submit:active:not(:disabled) {
  background: var(--primary-bg-active);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-feedback {
  width: 100%;
  margin: 0.85rem 0 0;
  padding: 0.62rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--accent-azure-soft);
  border: 1px solid var(--accent-azure-border);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
}

.auth-footnote {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.auth-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-mint);
}

/* ==========================================================================
   Responsive Breakpoints (1080p TV / Laptop / Tablet)
   ========================================================================== */

@media (max-width: 1280px), (max-height: 779px) {
  .stage,
  .unified-grid,
  .unified-left,
  .unified-right,
  .rail-stack {
    flex: 0 0 auto;
    min-height: auto;
  }
  .constellation-panel {
    flex: 0 0 auto;
    height: 24rem;
    min-height: 24rem;
  }
  .trend-panel {
    flex: 0 0 auto;
    height: 14rem;
    min-height: 14rem;
  }
}

@media (max-width: 1280px) {
  .showcase-shell {
    padding: 0.85rem 1rem 0.9rem;
  }
  .unified-grid {
    grid-template-columns: 1fr;
  }
  .rail-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-card {
    max-height: 22rem;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail-stack {
    grid-template-columns: 1fr;
  }
  .pool-pill {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .hero-grid,
  .node-mini-grid {
    grid-template-columns: 1fr;
  }
  .brand-title {
    font-size: 0.96rem;
    white-space: normal;
  }
  .brand-subtitle,
  .panel-subtitle-inline,
  .stage-legend {
    display: none;
  }
}

/* ==========================================================================
   Animations & Reduced Motion
   ========================================================================== */

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}

@keyframes spin-calm {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sync-dot,
  .pool-pill--producing .pool-pill-dot,
  .preparing-ring {
    animation: none;
  }
  .node-chip {
    transition: none;
  }
}
