/*!
 * launch-polish.css — ALLDAY EDGE launch polish (additive, CSS-only)
 * Loaded AFTER design-tokens / components-v2 / site-v2-polish / allday-v31-premium
 * so these rules may safely override. Scoped to .le-* classes injected by
 * launch-edge.js plus conservative mobile media queries. No engine impact.
 *
 * Palette: OLED base #060e1a · neon-green #00ff9c · gold #ffd000 · red #ff3b3b
 * Type: Barlow Condensed (display) · Inter (body) · JetBrains Mono (stats)
 */

:root {
  --le-base: #060e1a;
  --le-panel: #0b1626;
  --le-panel-2: #0f1d31;
  --le-line: rgba(0, 255, 156, 0.14);
  --le-green: #00ff9c;
  --le-gold: #ffd000;
  --le-red: #ff3b3b;
  --le-text: #e9f2ff;
  --le-dim: #8aa0bd;
}

/* ======================================================================
 * 0. AUTH GATE SCROLL FIX
 * ======================================================================
 * site.css centers #authGate as a fixed full-viewport flex layer. The launch
 * paywall now injects unlock, pricing, and QA content into .ag-box, so the
 * logged-out page can be taller than the viewport. Make the gate the scroll
 * container while leaving logged-in dashboard/body scrolling untouched.
 */
#authGate {
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
}
#authGate .ag-box {
  max-height: none;
  overflow: visible;
  margin: auto 0;
}

@media (max-width: 640px) {
  #authGate {
    align-items: flex-start;
    padding: max(14px, env(safe-area-inset-top, 0px)) 12px max(48px, env(safe-area-inset-bottom, 0px));
  }
  #authGate .ag-box {
    width: min(100%, 94vw);
    margin: 0 auto;
    padding: 26px 18px 24px;
    border-radius: 18px;
  }
  #authGate #agPlans > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ======================================================================
 * 1. PAYWALL — "What you unlock" feature list + CTA
 * ==================================================================== */
.le-unlock {
  margin: 18px 0 22px;
  padding: 18px 18px 20px;
  border: 1px solid var(--le-line);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 255, 156, 0.08), transparent 60%),
    var(--le-panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.le-unlock-head {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--le-text);
  margin-bottom: 12px;
}
.le-unlock-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.le-unlock-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--le-text);
}
.le-check {
  flex: 0 0 auto;
  color: var(--le-green);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
}
.le-feat { color: #cfe0f5; }
.le-cta-primary {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 16px;
  color: #04130c;
  background: linear-gradient(180deg, #2bffb4, var(--le-green));
  box-shadow: 0 8px 22px rgba(0, 255, 156, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.le-cta-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.le-cta-primary:active { transform: translateY(0); }
.le-unlock-sub {
  margin-top: 10px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--le-dim);
}
.le-pulse {
  animation: le-pulse 0.8s ease 0s 2;
  box-shadow: 0 0 0 2px var(--le-gold) !important;
}
@keyframes le-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 208, 0, 0.0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.85); }
}

/* ======================================================================
 * 2. TODAY'S EDGE — dashboard summary cards
 * ==================================================================== */
.le-todays-edge {
  margin: 0 0 20px;
  padding: 16px 16px 18px;
  border: 1px solid var(--le-line);
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 208, 0, 0.06), transparent 55%),
    linear-gradient(180deg, var(--le-panel-2), var(--le-panel));
}
.le-te-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.le-te-h {
  margin: 0;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 24px;
  color: var(--le-text);
}
.le-te-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #04130c;
  background: var(--le-green);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.le-edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.le-edge-card {
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 78px;
}
.le-edge-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--le-dim);
  margin-bottom: 6px;
}
.le-edge-value {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  color: var(--le-text);
}
.le-edge-sub {
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9fb6d4;
}
.le-te-cta {
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--le-green);
  border-radius: 10px;
  background: transparent;
  color: var(--le-green);
  cursor: pointer;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.12s ease, color 0.12s ease;
}
.le-te-cta:hover { background: var(--le-green); color: #04130c; }

/* ======================================================================
 * 3. REFRESH / FRESHNESS LABELS
 * ==================================================================== */
.le-fresh {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.le-fresh-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--le-dim);
}
.le-fresh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--le-green);
  box-shadow: 0 0 6px rgba(0, 255, 156, 0.7);
  animation: le-blink 2.4s ease-in-out infinite;
}
@keyframes le-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.le-fresh-k { color: var(--le-dim); }
.le-fresh-v { color: #cfe0f5; }

/* ======================================================================
 * 4. ADMIN-ONLY V3.2 PROOF PANEL
 * ==================================================================== */
.le-admin-proof {
  margin: 16px 0 0;
  padding: 14px 15px;
  border: 1px dashed rgba(255, 208, 0, 0.4);
  border-radius: 12px;
  background: rgba(255, 208, 0, 0.04);
}
.le-admin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.le-admin-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #1a1400;
  background: var(--le-gold);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
}
.le-admin-title {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--le-text);
}
.le-admin-rows { display: grid; gap: 6px; }
.le-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.le-admin-k { color: var(--le-dim); }
.le-admin-v { color: var(--le-gold); }
.le-admin-note {
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--le-dim);
  font-style: italic;
}

/* ======================================================================
 * 5. MOBILE POLISH (<= 640px)
 * ==================================================================== */
@media (max-width: 640px) {
  /* feature list to single column on phones */
  .le-unlock-list { grid-template-columns: 1fr; }
  .le-unlock { margin: 14px 0 18px; padding: 14px; }
  .le-te-h { font-size: 21px; }
  .le-edge-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .le-edge-card { min-height: 70px; padding: 10px; }
  .le-edge-value { font-size: 17px; }

  /* sticky slate status bar — keep slate/refresh visible while scrolling.
     Targets the existing top toolbar if present; safe no-op otherwise. */
  .ad-shell .topbar,
  .ad-shell header.app-header,
  .ad-shell .app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
  }

  /* keep the unlock CTA reachable on the paywall */
  .le-cta-primary { font-size: 15px; padding: 14px 16px; }

  /* less cramped tables: allow horizontal scroll instead of crushing cols */
  .dash table,
  #view table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dash table th,
  .dash table td,
  #view table th,
  #view table td {
    white-space: nowrap;
    padding: 8px 10px !important;
    font-size: 12.5px;
  }

  /* hide debug-heavy labels on mobile to reduce clutter */
  .debug-label,
  .dev-only,
  [data-debug="true"],
  .le-hide-mobile { display: none !important; }
}

/* ======================================================================
 * 6. PREMIUM BADGE STYLING (shared)
 * ==================================================================== */
.le-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04130c;
  background: linear-gradient(180deg, var(--le-gold), #e6bd00);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .le-fresh-dot,
  .le-pulse,
  .le-cta-primary { animation: none !important; transition: none !important; }
}

/* ===========================================================================
   launch-pricing.js — standalone marketing / pricing conversion section
   Additive, palette-matched (.lp-* namespace). Loaded after the .le-* layer.
   =========================================================================== */
.lp-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 255, 156, 0.14);
  text-align: left;
}

/* Why ALLDAY MLB EDGE */
.lp-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #00ff9c;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lp-why-title {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.12;
  color: #e9f2ff;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.lp-feat {
  background: #0b1626;
  border: 1px solid rgba(138, 160, 189, 0.16);
  border-radius: 10px;
  padding: 11px 13px;
}
.lp-feat-k {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 3px;
}
.lp-feat-v {
  font-size: 12px;
  line-height: 1.4;
  color: #9fb6d4;
}

/* Plan / pricing cards */
.lp-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.lp-plan {
  position: relative;
  background: #0f1d31;
  border: 1px solid rgba(138, 160, 189, 0.18);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}
.lp-plan-featured {
  border-color: #00ff9c;
  box-shadow: 0 0 0 1px rgba(0, 255, 156, 0.4), 0 8px 26px rgba(0, 255, 156, 0.08);
}
.lp-plan-flag {
  position: absolute;
  top: -10px;
  left: 14px;
  background: #00ff9c;
  color: #04130c;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
}
.lp-plan-name {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.lp-plan-tag {
  font-size: 11.5px;
  color: #8aa0bd;
  margin-bottom: 12px;
  min-height: 28px;
  line-height: 1.3;
}
.lp-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lp-plan-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #cfe0f5;
  line-height: 1.35;
}
.lp-plan-check {
  color: #00ff9c;
  font-weight: 700;
  flex: 0 0 auto;
}

/* CTA + proof */
.lp-cta-wrap {
  text-align: center;
}
.lp-cta-primary {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  border: none;
  cursor: pointer;
  background: #00ff9c;
  color: #04130c;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 20px rgba(0, 255, 156, 0.18);
}
.lp-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 255, 156, 0.28);
}
.lp-proof {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8aa0bd;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: stack cards, keep CTA prominent, avoid crushed grids */
@media (max-width: 640px) {
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-why-title { font-size: 20px; }
  .lp-plan-tag { min-height: 0; }
  .lp-cta-primary { font-size: 17px; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cta-primary { transition: none !important; }
  .lp-cta-primary:hover { transform: none !important; }
}

/* ===========================================================================
   launch-revenue-qa.js — admin Revenue QA + Launch Checklist + onboarding
   Additive, palette-matched (.rq-* admin panels, .lq-* onboarding card).
   =========================================================================== */
.rq-panel {
  margin: 18px 0;
  background: #0b1626;
  border: 1px solid rgba(0, 255, 156, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
}
.rq-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rq-badge {
  background: #ffd000;
  color: #1a1400;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 4px;
}
.rq-title {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #e9f2ff;
}
.rq-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(138, 160, 189, 0.08);
}
.rq-k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb6d4;
}
.rq-k-label { color: #cfe0f5; }
.rq-v {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: #e9f2ff;
  text-align: right;
}
.rq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-block;
  background: #8aa0bd;
}
.rq-dot.rq-ok { background: #00ff9c; box-shadow: 0 0 6px rgba(0, 255, 156, 0.5); }
.rq-dot.rq-bad { background: #ff3b3b; box-shadow: 0 0 6px rgba(255, 59, 59, 0.45); }
.rq-note {
  margin-top: 10px;
  font-size: 10.5px;
  color: #8aa0bd;
  font-style: italic;
}

/* Subscriber onboarding quickstart card */
.lq-card {
  position: relative;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #0f1d31 0%, #0b1626 100%);
  border: 1px solid #00ff9c;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 26px rgba(0, 255, 156, 0.08);
}
.lq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.lq-title {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.lq-close {
  background: transparent;
  border: none;
  color: #8aa0bd;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.lq-close:hover { color: #ffffff; }
.lq-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00ff9c;
  margin-bottom: 10px;
}
.lq-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.lq-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b1626;
  border: 1px solid rgba(138, 160, 189, 0.16);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  color: #cfe0f5;
}
.lq-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00ff9c;
  color: #04130c;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .rq-v { font-size: 10.5px; }
  .lq-title { font-size: 20px; }
  .lq-steps { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Premium dashboard command center (frontend-only presentation layer).
   =========================================================================== */
.pd-command {
  --pd-bg: #030914;
  --pd-panel: rgba(6, 15, 29, 0.82);
  --pd-panel-2: rgba(9, 22, 40, 0.92);
  --pd-line: rgba(86, 169, 255, 0.22);
  --pd-line-hot: rgba(0, 255, 209, 0.34);
  --pd-text: #f3f8ff;
  --pd-muted: #91a8c4;
  --pd-dim: #5f7897;
  --pd-green: #00ff9c;
  --pd-blue: #56a9ff;
  --pd-gold: #ffd000;
  --pd-pink: #ff4fd8;
  --pd-cyan: #00ffd1;
  color: var(--pd-text);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-command * {
  box-sizing: border-box;
}

.pd-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  min-height: 142px;
  padding: 24px;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 15, 29, 0.96), rgba(3, 9, 20, 0.8)),
    radial-gradient(circle at 18% 0%, rgba(0, 255, 209, 0.16), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(86, 169, 255, 0.14), transparent 34%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pd-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(86, 169, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(86, 169, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 76%);
}

.pd-kicker,
.pd-section-head em,
.pd-stat__label,
.pd-game__time,
.pd-game__lineup,
.pd-model-line,
.pd-step em,
.pd-muted,
.pd-alert-row span {
  font-family: "Inter", system-ui, sans-serif;
}

.pd-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--pd-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd-hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", "Inter", system-ui, sans-serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pd-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #bdd0e9;
  font-size: 14px;
  line-height: 1.45;
}

.pd-hero__badge {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 255, 156, 0.32);
  border-radius: 8px;
  background: rgba(0, 255, 156, 0.07);
  box-shadow: 0 0 28px rgba(0, 255, 156, 0.08);
}

.pd-hero__badge strong {
  display: block;
  color: var(--pd-green);
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
}

.pd-hero__badge span {
  display: block;
  margin-top: 3px;
  color: #a9bdd6;
  font-size: 12px;
}

.pd-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pd-stat,
.pd-panel,
.pd-upload,
.pd-step {
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--pd-panel-2), var(--pd-panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.2);
}

.pd-stat {
  position: relative;
  min-height: 126px;
  padding: 14px;
  overflow: hidden;
}

.pd-stat:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--pd-blue);
  box-shadow: 0 0 18px var(--pd-blue);
}

.pd-stat--green:before { background: var(--pd-green); box-shadow: 0 0 18px rgba(0, 255, 156, 0.55); }
.pd-stat--gold:before { background: var(--pd-gold); box-shadow: 0 0 18px rgba(255, 208, 0, 0.5); }
.pd-stat--pink:before { background: var(--pd-pink); box-shadow: 0 0 18px rgba(255, 79, 216, 0.5); }
.pd-stat--cyan:before { background: var(--pd-cyan); box-shadow: 0 0 18px rgba(0, 255, 209, 0.5); }

.pd-stat__label {
  color: var(--pd-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pd-stat__title {
  margin-top: 8px;
  color: #fff;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-stat__meta {
  margin-top: 5px;
  color: var(--pd-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-stat__value {
  margin-top: 13px;
  color: var(--pd-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 800;
}

.pd-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-style: dashed;
  cursor: pointer;
}

.pd-upload--hot {
  border-color: var(--pd-gold);
  background: rgba(255, 208, 0, 0.07);
}

.pd-upload__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 208, 0, 0.14);
  color: var(--pd-gold);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
}

.pd-upload__copy {
  flex: 1 1 auto;
  min-width: 180px;
}

.pd-upload__copy strong,
.pd-upload__copy span {
  display: block;
}

.pd-upload__copy strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}

.pd-upload__copy span {
  color: var(--pd-muted);
  font-size: 12px;
}

.pd-upload__btn {
  flex: 0 0 auto;
}

.pd-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 14px;
  align-items: start;
}

.pd-shell main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-panel {
  padding: 14px;
}

.pd-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pd-section-head span {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pd-section-head em {
  color: var(--pd-muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.pd-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(86, 169, 255, 0.12);
  border-radius: 8px;
}

.pd-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 12px;
}

.pd-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 9px;
  background: #081529;
  color: #8fb9e8;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.pd-table td {
  padding: 10px 9px;
  border-top: 1px solid rgba(86, 169, 255, 0.1);
  color: #dceafe;
  vertical-align: middle;
}

.pd-table tbody tr:nth-child(even) td {
  background: rgba(86, 169, 255, 0.025);
}

.pd-table .num {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.pd-hot {
  color: var(--pd-green) !important;
  font-weight: 800;
}

.pd-lev {
  color: var(--pd-pink) !important;
  font-weight: 800;
}

.pd-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  margin-right: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 255, 156, 0.1);
  color: var(--pd-green);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 900;
}

.pd-chip {
  display: inline-flex;
  margin: 1px 3px 1px 0;
  padding: 3px 6px;
  border: 1px solid rgba(0, 255, 209, 0.18);
  border-radius: 999px;
  background: rgba(0, 255, 209, 0.06);
  color: #c8fbff;
  font-size: 10px;
  white-space: nowrap;
}

.pd-chip--dim {
  border-color: rgba(145, 168, 196, 0.18);
  background: rgba(145, 168, 196, 0.06);
  color: var(--pd-muted);
}

.pd-empty-row {
  color: var(--pd-muted) !important;
  text-align: center;
}

.pd-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 9px;
}

.pd-game {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(86, 169, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 9, 20, 0.72);
  color: var(--pd-text);
  text-align: left;
  cursor: pointer;
}

.pd-game:hover,
.pd-game--selected {
  border-color: var(--pd-line-hot);
  box-shadow: 0 0 22px rgba(0, 255, 209, 0.08);
}

.pd-game--live {
  border-color: rgba(255, 79, 216, 0.36);
}

.pd-game__time,
.pd-game__lineup {
  display: block;
  color: var(--pd-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pd-game__teams {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
}

.pd-game__teams b {
  color: #fff;
}

.pd-game__teams i {
  color: var(--pd-muted);
  font-style: normal;
}

.pd-game__lineup {
  margin-top: 8px;
  color: var(--pd-cyan);
}

.pd-stack-row,
.pd-mini-row,
.pd-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(86, 169, 255, 0.1);
}

.pd-stack-row:first-of-type,
.pd-mini-row:first-of-type,
.pd-alert-row:first-of-type {
  border-top: 0;
}

.pd-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(86, 169, 255, 0.12);
  color: var(--pd-blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}

.pd-stack-row div,
.pd-mini-row span {
  flex: 1 1 auto;
  min-width: 0;
}

.pd-stack-row strong,
.pd-mini-row strong,
.pd-alert-row strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.pd-stack-row em,
.pd-mini-row em {
  display: block;
  color: var(--pd-muted);
  font-size: 11px;
  font-style: normal;
}

.pd-stack-row b,
.pd-mini-row b {
  color: var(--pd-green);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.pd-slate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pd-slate-grid div {
  padding: 12px;
  border: 1px solid rgba(86, 169, 255, 0.12);
  border-radius: 8px;
  background: rgba(3, 9, 20, 0.46);
}

.pd-slate-grid b,
.pd-slate-grid span {
  display: block;
}

.pd-slate-grid b {
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
}

.pd-slate-grid span {
  color: var(--pd-muted);
  font-size: 11px;
}

.pd-model-line {
  margin-top: 12px;
  color: var(--pd-muted);
  font-size: 12px;
  line-height: 1.45;
}

.pd-model-line strong {
  color: var(--pd-green);
}

.pd-model-line span {
  display: block;
  margin-top: 4px;
  color: var(--pd-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  word-break: break-all;
}

/* Honest-state tone modifiers — engine, ownership, and feed status share one
   palette: green = live, gold = retrying/pending, muted = loading. Driven by
   _pdEngineStatus / _pdOwnershipState / _pdProjFeedState in app-main.js. */
.pd-model-line + .pd-model-line { margin-top: 8px; }
.pd-model-line--live strong { color: var(--pd-green); }
.pd-model-line--warn strong { color: var(--pd-gold); }
.pd-model-line--dim strong { color: var(--pd-muted); }

.pd-hero__badge--warn {
  border-color: rgba(255, 208, 0, 0.34);
  background: rgba(255, 208, 0, 0.07);
  box-shadow: 0 0 28px rgba(255, 208, 0, 0.08);
}
.pd-hero__badge--warn strong { color: var(--pd-gold); }
.pd-hero__badge--dim {
  border-color: rgba(145, 168, 196, 0.28);
  background: rgba(145, 168, 196, 0.06);
  box-shadow: none;
}
.pd-hero__badge--dim strong { color: var(--pd-muted); }

.pd-empty-row--warn { color: var(--pd-gold) !important; }
.pd-empty-row--dim { color: var(--pd-muted) !important; }
.pd-empty-row--live { color: var(--pd-green) !important; }

.pd-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pd-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pd-step {
  position: relative;
  min-height: 112px;
  padding: 14px 14px 14px 52px;
}

.pd-step span {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(0, 255, 156, 0.12);
  color: var(--pd-green);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
}

.pd-step strong {
  display: block;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.pd-step em {
  display: block;
  margin-top: 8px;
  color: var(--pd-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.pd-lower {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pd-alert-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.pd-alert-row span,
.pd-muted {
  color: var(--pd-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .pd-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pd-shell {
    grid-template-columns: 1fr;
  }
  .pd-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pd-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
  }
  .pd-hero h1 {
    font-size: 34px;
  }
  .pd-hero__badge {
    width: 100%;
  }
  .pd-stat-strip,
  .pd-rail,
  .pd-workflow,
  .pd-lower {
    grid-template-columns: 1fr;
  }
  .pd-upload {
    align-items: flex-start;
    flex-direction: column;
  }
  .pd-upload__btn {
    width: 100%;
  }
  .pd-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .pd-section-head em {
    text-align: left;
  }
}
