/**
 * mastery-pro-decoder.css — /decoder (PRO LINEUP DECODER).
 * All selectors are `dz-` prefixed per DESIGN-IMPLEMENTATION-RULES §1.3, so this
 * file cannot collide with any wired hook on any other page.
 */

.dz-main {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

/* ------------------------------------------------------------------ hero -- */

.dz-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 1.75rem;
}
.dz-hero-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dz-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 0 0.75rem;
  color: var(--la-text-muted, #94a3b8);
}
.dz-hero-caveat {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 68ch;
  margin: 0;
  color: var(--la-text-dim, #64748b);
  border-left: 2px solid rgba(148, 163, 184, 0.35);
  padding-left: 0.75rem;
}

/* ----------------------------------------------------------------- panel -- */

.dz-panel {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.dz-panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.dz-panel-sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--la-text-muted, #94a3b8);
}
.dz-step {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  flex: none;
}
.dz-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.dz-save-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
}
.dz-save-grid .dz-field select,
.dz-save-grid .dz-field input {
  width: 100%;
  margin-top: 0.25rem;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: inherit;
  padding: 0.45rem 0.55rem;
  font: inherit;
}
.dz-field-grow { flex: 1 1 280px; min-width: 220px; grid-column: span 2; }
/* Main decoder slate picker (save form) — keep roomy labels there */
#dz-slate {
  min-width: min(100%, 36rem);
  max-width: 100%;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .dz-field-grow { grid-column: span 1; }
}
.dz-lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
  align-items: center;
}
.dz-lib-filters input,
.dz-lib-filters select {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: inherit;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
}
.dz-playbook-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.dz-playbook-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}
.dz-playbook-item strong { display: block; margin-bottom: 0.2rem; }
.dz-playbook-meta { font-size: 0.82rem; color: var(--la-text-muted, #94a3b8); line-height: 1.45; }
.dz-playbook-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.dz-playbook-actions .dz-btn { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
.dz-playbook-test {
  grid-column: 1 / -1;
  margin-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 0.65rem;
}
.dz-playbook-test summary {
  cursor: pointer;
  color: var(--la-accent, #38bdf8);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}
/* Professional one-row control strip: Date | Slate | Provider | Contest | Lineups | Max */
.dz-playbook-test-grid {
  display: grid;
  grid-template-columns:
    minmax(8.75rem, 9.5rem)
    minmax(12rem, 2.4fr)
    minmax(6.5rem, 7.75rem)
    minmax(7rem, 8.5rem)
    minmax(4.75rem, 5.5rem)
    minmax(4.75rem, 5.5rem);
  gap: 0.55rem 0.7rem;
  align-items: end;
  margin-top: 0.75rem;
  width: 100%;
}
.dz-playbook-test-grid .dz-field {
  min-width: 0;
  margin: 0;
  gap: 0.28rem;
}
.dz-playbook-test-grid .dz-field > span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.15;
  min-height: 1rem;
  color: var(--la-text-muted, #94a3b8);
}
.dz-playbook-test-grid .dz-field input,
.dz-playbook-test-grid .dz-field select {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  height: 2.5rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.2;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.dz-playbook-test-grid .dz-field input[type="number"] {
  -moz-appearance: textfield;
  text-align: center;
  padding-right: 0.35rem;
}
.dz-playbook-test-grid .dz-field input[type="number"]::-webkit-outer-spin-button,
.dz-playbook-test-grid .dz-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dz-playbook-test-grid .dz-field input[type="date"] {
  padding-right: 0.35rem;
}
.dz-playbook-test-grid [data-pb-test-slate] {
  min-width: 0 !important;
  max-width: 100%;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}
/* Kill old span-2 grow inside this strip — it was blowing the row apart */
.dz-playbook-test-grid .dz-field-grow {
  grid-column: auto;
  flex: none;
  min-width: 0;
}
.dz-playbook-test-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.75rem;
}
.dz-playbook-test-actions .dz-btn-test-logic {
  height: 2.5rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .dz-playbook-test-grid {
    grid-template-columns:
      minmax(8rem, 1fr)
      minmax(10rem, 2fr)
      minmax(6rem, 1fr)
      minmax(6.5rem, 1fr)
      minmax(4.5rem, 0.7fr)
      minmax(4.5rem, 0.7fr);
  }
}
@media (max-width: 820px) {
  .dz-playbook-test-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dz-playbook-test-grid .dz-tl-slate {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .dz-playbook-test-grid {
    grid-template-columns: 1fr;
  }
  .dz-playbook-test-grid .dz-tl-slate {
    grid-column: auto;
  }
}
.dz-playbook-test-output,
.dz-playbook-test-results {
  margin: 0.65rem 0 0;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.72);
  color: var(--la-text, #e5edf7);
}
.dz-playbook-test-output-plain {
  max-height: 22rem;
  overflow: auto;
  margin: 0;
  padding: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.dz-playbook-test-results {
  max-height: min(70vh, 920px);
  overflow: auto;
  padding: 0.75rem 0.85rem 1rem;
}
.dz-test-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.35rem 0 0.5rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.92));
}
.dz-test-results-title {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f8fafc;
}
.dz-test-results-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.dz-test-results-note { margin: 0 0 0.75rem; font-size: 0.78rem; }
.dz-test-lineup-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dz-test-lineup-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
}
.dz-test-lineup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.45rem 0.65rem;
  background: rgba(30, 41, 59, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}
.dz-test-lineup-num {
  font-size: 0.95rem;
  font-weight: 900;
  color: #38bdf8;
  min-width: 2.2rem;
}
.dz-test-lu-info {
  margin-left: 0;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.dz-test-lu-info:hover,
.dz-test-lu-info:focus-visible {
  transform: scale(1.08);
}
.dz-test-lineup-stack {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.28);
}
.dz-info-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  font-size: 0.68rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  vertical-align: middle;
}
.dz-tl-intel-pop {
  width: min(720px, calc(100vw - 1.25rem));
  max-height: min(92vh, 900px);
}
.dz-tl-intel-body .dz-help-section p {
  font-size: 0.88rem;
  line-height: 1.5;
}
.dz-test-lineup-tot strong { color: #f1f5f9; font-variant-numeric: tabular-nums; }
.dz-test-lineup-tot.is-dks strong { color: #6ee7b7; }
.dz-test-lineup-players {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 900px) {
  .dz-test-lineup-players {
    grid-template-columns: 1fr 1fr;
  }
}
.dz-test-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 0.55rem;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  min-width: 0;
}
.dz-test-player:last-child { border-bottom: none; }
.dz-test-player-media {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.dz-test-player-media .dz-face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1e293b;
}
.dz-test-player-logo {
  position: absolute;
  right: -4px;
  bottom: -3px;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.dz-test-player-logo img,
.dz-test-player-logo svg { width: 16px !important; height: 16px !important; }
.dz-test-player-id { min-width: 0; }
.dz-test-player-id strong {
  display: block;
  font-size: 0.86rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-test-player-sub {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}
.dz-test-player-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dz-test-player-stats em {
  font-style: normal;
  font-weight: 700;
  color: #64748b;
  margin-right: 0.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.dz-test-player-stats .dz-postgame-cell { color: #6ee7b7; }

/* Book exposure + ANCHOR/CORE/SPICE on TEST LOGIC lineups */
.dz-test-exp-summary {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 180, 0.18);
  background: rgba(15, 23, 42, 0.55);
}
.dz-test-exp-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.dz-test-exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dz-test-exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(120, 150, 180, 0.14);
  font-size: 0.78rem;
}
.dz-test-exp-chip strong { font-weight: 650; color: #e2e8f0; }
.dz-test-exp-pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #38bdf8;
  font-style: normal;
}
.dz-test-player-exp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 4px;
}
.dz-test-exp-mega {
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #7dd3fc;
  letter-spacing: 0.01em;
}
.dz-test-exp-unit {
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 2px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.dz-test-exp-bar {
  display: inline-block;
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
  overflow: hidden;
  vertical-align: middle;
}
.dz-test-exp-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #a78bfa);
}
.dz-test-player[data-tier="ANCHOR"] {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.06), transparent 55%);
}
.dz-test-player[data-tier="CORE"] {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.05), transparent 55%);
}
.dz-test-player[data-tier="SPICE"] {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.05), transparent 55%);
}
.dz-test-player.is-redflag {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), transparent 60%);
  border-left: 3px solid rgba(248, 113, 113, 0.75);
  padding-left: calc(0.65rem - 3px);
}
.dz-test-player.is-redflag .dz-test-player-id strong {
  color: #fecaca;
}
.dz-test-player-risk {
  margin-top: 2px;
}

.dz-test-role-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.dz-potential-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 4px;
  color: #ddd6fe;
  background: rgba(91, 33, 182, 0.22);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.dz-test-portfolio-host--first {
  margin: 12px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.24);
}
.dz-test-player-id .dz-tier-pill {
  margin-left: 4px;
  vertical-align: middle;
}
.dz-test-player-id .dz-red-flag-pill {
  margin-left: 4px;
  vertical-align: middle;
}
.dz-test-risk-summary {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.18);
}
.dz-test-risk-summary.is-clear {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(15, 23, 42, 0.4);
}
.dz-test-exp-chip.is-redflag {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.28);
}
.dz-test-lineup-card.has-redflags {
  border-color: rgba(248, 113, 113, 0.28);
}
.dz-test-lineup-risk {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
  letter-spacing: 0.02em;
}

/* ---- TEST LOGIC lineup sort bar ---- */
.dz-test-sort-bar {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(76, 29, 149, 0.15);
}
.dz-test-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
.dz-test-sort-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
  color: #e9d5ff;
  min-width: 10rem;
}
.dz-test-sort-select {
  min-width: min(100%, 22rem);
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.82rem;
}
.dz-test-sort-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #c4b5fd;
}

/* TEST LOGIC build ledger panel */
.dz-test-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

/* Top 10% by FINAL DKS in portfolio summary */
.dz-test-pf-top10 {
  margin-bottom: 0.85rem;
  border-color: rgba(52, 211, 153, 0.35) !important;
  background: rgba(6, 78, 59, 0.18) !important;
}
.dz-test-pf-top10-first td {
  background: rgba(52, 211, 153, 0.08);
}
.dz-test-pf-line-link {
  color: #6ee7b7;
  text-decoration: underline;
  text-decoration-color: rgba(110, 231, 183, 0.4);
  text-underline-offset: 2px;
  font-weight: 800;
}
.dz-test-pf-line-link:hover {
  color: #a7f3d0;
}
.dz-test-lineup-card {
  scroll-margin-top: 0.75rem;
}

/* ---- TEST LOGIC full-book portfolio summary (bottom of results) ---- */
.dz-test-portfolio {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.07), rgba(15, 23, 42, 0.72) 40%);
  scroll-margin-top: 1rem;
}
.dz-test-portfolio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.35);
}
.dz-test-portfolio-title {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #e0f2fe;
}
.dz-test-pf-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.dz-test-pf-kpi {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(100, 116, 139, 0.28);
  min-width: 0;
}
.dz-test-pf-kpi em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.dz-test-pf-kpi strong {
  display: block;
  font-size: 1.05rem;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.dz-test-pf-kpi small {
  display: block;
  font-size: 0.7rem;
  color: #7dd3fc;
  margin-top: 0.1rem;
}
.dz-test-pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 960px) {
  .dz-test-pf-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dz-test-pf-grid .dz-test-pf-section:only-child {
    grid-column: 1 / -1;
  }
}
.dz-test-pf-section {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(100, 116, 139, 0.25);
  min-width: 0;
}
.dz-test-pf-h {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: #e2e8f0;
}
.dz-test-pf-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dz-test-pf-bar-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7rem) 1fr auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
  font-size: 0.8rem;
}
.dz-test-pf-bar-label {
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-test-pf-bar-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.3);
  overflow: hidden;
}
.dz-test-pf-bar-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #a78bfa);
}
.dz-test-pf-bar-num {
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  white-space: nowrap;
  font-size: 0.75rem;
}
.dz-test-pf-bar-num em {
  font-style: normal;
  color: #38bdf8;
  font-weight: 700;
  margin-left: 0.25rem;
}
.dz-test-pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dz-test-pf-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.dz-test-pf-table-tall {
  max-height: 28rem;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, 0.2);
}
.dz-test-pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.dz-test-pf-table th {
  text-align: left;
  padding: 0.35rem 0.45rem;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(100, 116, 139, 0.35);
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 1;
}
.dz-test-pf-table td {
  padding: 0.32rem 0.45rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
  color: #e2e8f0;
  vertical-align: middle;
}
.dz-test-pf-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}
.dz-test-pf-table .dz-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dz-test-pf-team {
  color: #7dd3fc;
  letter-spacing: 0.03em;
}
.dz-test-pf-section-narrow {
  align-self: start;
}
.dz-btn-sm { font-size: 0.78rem; padding: 0.3rem 0.55rem; }
.dz-panel-feature {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.55) 60%);
  border-color: rgba(56, 189, 248, 0.3);
}
.dz-panel-honesty {
  background: rgba(15, 23, 42, 0.35);
  border-style: dashed;
}

/* ------------------------------------------------------------------ bind -- */

.dz-bind-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.dz-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--la-text-muted, #94a3b8);
}
.dz-field input,
.dz-field select {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: inherit;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: normal;
  min-width: 11rem;
}
.dz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: inherit;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, filter 0.15s ease;
}
.dz-btn:hover {
  background: rgba(51, 65, 85, 0.95);
}
.dz-btn:active:not(:disabled) {
  transform: translateY(2px) scale(0.98);
  filter: brightness(1.18);
  box-shadow: inset 0 3px 8px rgba(2, 6, 23, 0.55);
}
.dz-btn.is-busy,
.dz-btn[aria-busy="true"] {
  cursor: wait;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3), 0 0 18px rgba(14, 165, 233, 0.55);
  animation: dz-button-busy-pulse 1.1s ease-in-out infinite;
}
.dz-btn.is-busy::before,
.dz-btn[aria-busy="true"]::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 0.85rem;
  border: 2px solid rgba(248, 250, 252, 0.4);
  border-top-color: #f8fafc;
  border-radius: 50%;
  animation: dz-button-busy-spin 0.7s linear infinite;
}
@keyframes dz-button-busy-spin {
  to { transform: rotate(360deg); }
}
@keyframes dz-button-busy-pulse {
  50% { filter: brightness(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  .dz-btn { transition: none; }
  .dz-btn.is-busy,
  .dz-btn[aria-busy="true"] { animation: none; }
  .dz-btn.is-busy::before,
  .dz-btn[aria-busy="true"]::before { animation-duration: 1.4s; }
}
.dz-btn-primary {
  background: #0284c7;
  border-color: #0ea5e9;
  color: #f8fafc;
}
.dz-btn-primary:hover {
  background: #0369a1;
}
.dz-slate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-left: auto;
}
.dz-pill {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.78rem;
  color: #7dd3fc;
  white-space: nowrap;
}
.dz-pill-warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
}
.dz-pill-busy {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.58);
  color: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 22px rgba(56, 189, 248, 0.16);
}
.dz-spinner {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.45rem;
  border-radius: 999px;
  border: 2px solid rgba(224, 242, 254, 0.35);
  border-top-color: #e0f2fe;
  vertical-align: -0.12em;
  animation: dz-spin 0.75s linear infinite;
}

/* ---------------------------------------------------------------- upload -- */

.dz-dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: rgba(2, 6, 23, 0.35);
}
.dz-dropzone-hot {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
.dz-dropzone-processing {
  border-color: rgba(56, 189, 248, 0.9);
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.08), rgba(56, 189, 248, 0.08)),
    rgba(2, 6, 23, 0.45);
  background-size: 220% 100%;
  animation: dz-scan 1.1s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25), 0 0 24px rgba(56, 189, 248, 0.12);
}
.dz-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dz-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  cursor: pointer;
  text-align: center;
}
.dz-drop-icon {
  font-size: 1.6rem;
  color: #38bdf8;
}
.dz-drop-label {
  font-size: 0.95rem;
  color: var(--la-text-muted, #94a3b8);
}
.dz-paste {
  width: 100%;
  margin: 0.75rem 0;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: inherit;
  padding: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  resize: vertical;
}
.dz-details {
  margin-top: 0.9rem;
}
.dz-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--la-text-muted, #94a3b8);
  padding: 0.35rem 0;
}

/* ---------------------------------------------------------------- status -- */

.dz-status {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  min-height: 1.2em;
  color: var(--la-text-muted, #94a3b8);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.dz-status[data-has-msg="1"] {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.22);
}
.dz-status[data-busy="1"] {
  position: relative;
  padding-left: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.dz-status[data-busy="1"]::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  border-radius: 999px;
  border: 2px solid rgba(224, 242, 254, 0.3);
  border-top-color: #e0f2fe;
  animation: dz-spin 0.75s linear infinite;
}
.dz-status-ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}
.dz-status-busy {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.7);
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.23), rgba(34, 197, 94, 0.16), rgba(14, 165, 233, 0.23)),
    rgba(8, 47, 73, 0.45);
  background-size: 240% 100%;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 30px rgba(56, 189, 248, 0.22);
  animation: dz-scan 1.15s ease-in-out infinite;
}
.dz-note-busy {
  display: block;
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(34, 197, 94, 0.14), rgba(14, 165, 233, 0.2)),
    rgba(8, 47, 73, 0.38);
  background-size: 240% 100%;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 24px rgba(56, 189, 248, 0.18);
  animation: dz-scan 1.15s ease-in-out infinite;
}
.dz-status-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
}
.dz-status-err {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
}
.dz-status-flash {
  animation: dz-status-pulse 0.9s ease;
}
@keyframes dz-status-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.015); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25); }
  100% { transform: scale(1); box-shadow: none; }
}
@keyframes dz-spin {
  to { transform: rotate(360deg); }
}
@keyframes dz-scan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------------------------------------------------------- sample -- */

.dz-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}
.dz-sample-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
}
.dz-sample-val {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}
.dz-sample-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--la-text-dim, #64748b);
}
.dz-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--la-text-muted, #94a3b8);
  margin: 0.75rem 0 0;
}
.dz-note-ok {
  color: #4ade80;
}
.dz-note-warn {
  color: #fbbf24;
}

/* -------------------------------------------------------------- doctrine -- */

.dz-doctrine-text {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------- signals -- */

.dz-lede {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--la-text-muted, #94a3b8);
  margin: 0 0 1rem;
  max-width: 76ch;
}
.dz-table-wrap {
  overflow-x: auto;
}
.dz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dz-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--la-text-dim, #64748b);
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}
.dz-table td {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}
.dz-col {
  min-width: 12rem;
}
.dz-col-name {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
}
.dz-alias {
  display: block;
  font-size: 0.72rem;
  color: var(--la-text-dim, #64748b);
  margin-top: 0.15rem;
}
.dz-view {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dz-view-hitters {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}
.dz-view-pitchers {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}
.dz-loads {
  font-size: 0.85rem;
  color: var(--la-text-muted, #94a3b8);
  white-space: nowrap;
}
.dz-lift-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 11rem;
}
.dz-bar {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  min-width: 4rem;
}
.dz-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.dz-bar-pos {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}
.dz-bar-neg {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.dz-lift {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 2.6rem;
  text-align: right;
}
.dz-lift-pos {
  color: #38bdf8;
}
.dz-lift-neg {
  color: #fbbf24;
}
.dz-n {
  font-variant-numeric: tabular-nums;
  color: var(--la-text-muted, #94a3b8);
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------------------------------------- structure -- */

.dz-struct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.dz-struct-card {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 1rem;
}
.dz-struct-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--la-text-dim, #64748b);
  font-weight: 600;
}
.dz-shapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dz-shapes li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
}
.dz-shape {
  min-width: 5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dz-shape-bar {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}
.dz-shape-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  border-radius: 4px;
}
.dz-sys-mkt-lab {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}

/* Elite column inventory (this slate) */
.dz-col-inventory summary {
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.86rem;
}
.dz-col-inv-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.35rem 0;
}
.dz-col-inv-pill {
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.dz-col-inv-hit {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
}

/* Stack value chart: upside vs salary */
.dz-stack-value-card {
  width: 100%;
}
.dz-stack-value-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .dz-stack-value-wrap {
    grid-template-columns: 1fr;
  }
}
.dz-stack-value-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.dz-sv-axis {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1;
}
.dz-sv-axis-lab {
  fill: #64748b;
  font-size: 9px;
  font-family: system-ui, sans-serif;
}
.dz-sv-median {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.dz-sv-median-lab {
  fill: #64748b;
  font-size: 8px;
  font-family: system-ui, sans-serif;
}
.dz-sv-value-zone {
  fill: rgba(34, 197, 94, 0.08);
  stroke: rgba(34, 197, 94, 0.25);
  stroke-width: 1;
}
.dz-sv-zone-lab {
  fill: #4ade80;
  font-size: 9px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
}
.dz-sv-bubble {
  stroke: rgba(15, 23, 42, 0.8);
  stroke-width: 1;
  opacity: 0.92;
}
.dz-sv-dot-value .dz-sv-bubble { fill: #22c55e; }
.dz-sv-dot-stud .dz-sv-bubble { fill: #38bdf8; }
.dz-sv-dot-thin .dz-sv-bubble { fill: #fbbf24; }
.dz-sv-dot-chalk .dz-sv-bubble { fill: #94a3b8; }
.dz-sv-label {
  fill: #f1f5f9;
  font-size: 8px;
  font-weight: 700;
  font-family: ui-monospace, Menlo, monospace;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.85);
  stroke-width: 2.5px;
}
.dz-sv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: #94a3b8;
}
.dz-sv-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.dz-sv-swatch.dz-sv-dot-value { background: #22c55e; }
.dz-sv-swatch.dz-sv-dot-stud { background: #38bdf8; }
.dz-sv-swatch.dz-sv-dot-thin { background: #fbbf24; }
.dz-sv-swatch.dz-sv-dot-chalk { background: #94a3b8; }
.dz-sv-rank-list li {
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem !important;
}
.dz-sv-rank-n {
  min-width: 1.1rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.dz-sv-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  width: 100%;
  margin-left: 1.6rem;
}
.dz-sv-pieces {
  font-size: 0.65rem;
  color: #64748b;
  width: 100%;
  margin-left: 1.6rem;
}
.dz-sv-q {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  margin-left: 0.25rem;
}
.dz-sv-q-value {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.dz-sv-q-stud {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.dz-sv-callout {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}

/* Team hitter exposure + stack trends */
.dz-team-exp-card {
  min-width: 0;
}
.dz-team-exp-list {
  gap: 0.75rem;
}
.dz-team-exp-row {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.25rem !important;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.dz-team-exp-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dz-team-exp-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.dz-team-exp-main .dz-shape-bar {
  flex: 1;
}
.dz-team-trend-head {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 0.15rem;
}
.dz-team-trend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.2rem;
}
.dz-team-trend-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}
.dz-team-env-pill {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  font-weight: 600;
  letter-spacing: 0;
}
.dz-team-trend-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.dz-team-trend-col {
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
}
.dz-team-trend-sample {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.1rem;
}
.dz-team-shared-block {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.dz-team-shared-summary {
  color: #e2e8f0 !important;
  font-size: 0.78rem !important;
}
.dz-team-shared-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}
.dz-team-shared-col {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
}
.dz-team-shared-col code {
  color: #7dd3fc;
  font-size: 0.7rem;
}
.dz-team-shared-col em {
  font-style: normal;
  color: #fbbf24;
  font-weight: 700;
  margin-left: 0.15rem;
}
.dz-sal-bands .dz-shape {
  min-width: 5.5rem;
}
.dz-sal-band-thin .dz-shape-bar span {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.dz-sal-band-thin .dz-shape-pct {
  color: #fbbf24;
}
.dz-sal-atleast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.25rem;
}
.dz-sal-atleast {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}
.dz-sal-atleast strong {
  color: #e2e8f0;
  font-weight: 700;
  margin-right: 0.15rem;
}
.dz-sp-same {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
  margin-left: 0.15rem;
}
.dz-sp-same-na {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
  font-weight: 600;
}
.dz-shape-pct {
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  text-align: right;
  color: var(--la-text-muted, #94a3b8);
}
.dz-big {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: #38bdf8;
}
.dz-pyramid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.dz-pyramid em {
  color: var(--la-text-dim, #64748b);
  font-style: normal;
  font-size: 0.8rem;
}
.dz-py-val {
  display: inline-block;
  min-width: 1.6rem;
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- exposure -- */

.dz-exp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.dz-exp-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--la-text-muted, #94a3b8);
}
.dz-exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.dz-exp-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--la-text-muted, #94a3b8);
}
.dz-exp-filter select {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: inherit;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.dz-exp-sub {
  font-size: 0.78rem;
  color: var(--la-text-dim, #64748b);
  margin-top: 0.15rem;
}
.dz-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dz-tier-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.dz-tier-anchor {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}
.dz-tier-core {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
}
.dz-tier-spice {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}
.dz-exp-pct-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 7.5rem;
}
.dz-exp-bar {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  min-width: 3.5rem;
}
.dz-exp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 4px;
}
.dz-exp-table td,
.dz-exp-table th {
  vertical-align: middle;
}

/* ----------------------------------------------------------- grok banner -- */

.dz-grok-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(2, 6, 23, 0.55));
}
.dz-grok-brand {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.25rem;
}
.dz-grok-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.dz-kpi {
  min-width: 4.2rem;
  text-align: center;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.dz-kpi-val {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}
.dz-kpi-lab {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--la-text-dim, #64748b);
  margin-top: 0.15rem;
}
.dz-mistake-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------- honesty -- */

.dz-honesty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dz-honesty-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--la-text-muted, #94a3b8);
  padding-left: 0.9rem;
  border-left: 2px solid rgba(148, 163, 184, 0.25);
}
.dz-honesty-list strong {
  color: var(--la-text, #e2e8f0);
}
.dz-thin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.6rem;
}
.dz-thin-pill {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--la-text-dim, #64748b);
}

/* ---- Glowing section notices (e.g. registry rank board honesty) ---- */
.dz-glow-msg {
  display: block;
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  text-align: center;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #fef9c3;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.55), rgba(30, 41, 59, 0.92) 45%, rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.65);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.15),
    0 0 18px rgba(250, 204, 21, 0.35),
    0 0 36px rgba(234, 179, 8, 0.18),
    inset 0 0 24px rgba(250, 204, 21, 0.08);
  text-shadow:
    0 0 8px rgba(250, 204, 21, 0.75),
    0 0 18px rgba(251, 191, 36, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.55);
  animation: dz-glow-pulse 2.4s ease-in-out infinite;
}
.dz-glow-msg-registry {
  color: #fef08a;
  border-color: rgba(251, 191, 36, 0.75);
}
@keyframes dz-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(250, 204, 21, 0.15),
      0 0 16px rgba(250, 204, 21, 0.32),
      0 0 32px rgba(234, 179, 8, 0.16),
      inset 0 0 20px rgba(250, 204, 21, 0.06);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(250, 204, 21, 0.35),
      0 0 28px rgba(250, 204, 21, 0.55),
      0 0 48px rgba(234, 179, 8, 0.32),
      inset 0 0 28px rgba(250, 204, 21, 0.12);
  }
}

/* ---- Registry players board: full list + tie-break sort ---- */
.dz-registry-players-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0.35rem;
}
.dz-registry-players-head .dz-panel-title {
  margin: 0;
}
.dz-registry-tiebreak {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}
.dz-registry-tiebreak select {
  min-width: min(320px, 100%);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.dz-registry-tiebreak select:focus {
  outline: 2px solid rgba(129, 140, 248, 0.55);
  outline-offset: 1px;
}
.dz-registry-sort-note {
  margin: 0 0 0.65rem;
}
.dz-registry-players-scroll {
  max-height: min(70vh, 820px);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}
.dz-registry-players-scroll .dz-registry-players-table {
  margin: 0;
}
.dz-registry-players-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f172a;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.25);
}
.dz-registry-tb-cell {
  color: #a5b4fc;
  white-space: nowrap;
}

/* ---- Position science matrix ---- */
.dz-matrix-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.9rem;
}
.dz-miss-high {
  color: #fbbf24;
}
.dz-miss-title {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  color: #fca5a5;
}
.dz-miss-high strong,
li.dz-miss-high strong {
  color: #fbbf24;
}
li.dz-miss-high {
  border-left: 3px solid #f59e0b;
  padding-left: 0.5rem;
  margin-bottom: 0.45rem;
}
li.dz-miss-medium {
  border-left: 3px solid #64748b;
  padding-left: 0.5rem;
  margin-bottom: 0.45rem;
}
li.dz-miss-low {
  opacity: 0.85;
  margin-bottom: 0.35rem;
}
.dz-pos-matrix {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}
.dz-pos-block {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
}
.dz-pos-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  list-style: none;
}
.dz-pos-summary::-webkit-details-marker { display: none; }
.dz-pos-name {
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 7rem;
  color: #e2e8f0;
}
.dz-pos-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.dz-matrix-table {
  font-size: 0.82rem;
}
.dz-matrix-table td {
  vertical-align: top;
  padding: 0.55rem 0.4rem;
}
.dz-rank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.3rem 0;
}
.dz-rank-pill {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #6ee7b7;
}
.dz-clone-card {
  border-color: rgba(167, 139, 250, 0.35);
}
.dz-clone-steps {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
  color: var(--la-text-muted, #94a3b8);
  font-size: 0.88rem;
  line-height: 1.5;
}
.dz-move-up { color: #6ee7b7; }
.dz-move-down { color: #fca5a5; }
.dz-script-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dz-script-up {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.dz-script-down {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.dz-script-flat {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
.dz-postgame-cell {
  color: #fbbf24;
  font-weight: 600;
}
.dz-postgame-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  white-space: nowrap;
  vertical-align: middle;
}
.dz-postgame-pill strong {
  color: #fbbf24;
  font-weight: 800;
}
.dz-ultimate-card {
  border-color: rgba(167, 139, 250, 0.4);
}
.dz-ult-miss {
  background: rgba(251, 191, 36, 0.06);
}
.dz-flag-miss {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.dz-flag-share {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
/* ---- section "i" help ---- */
.dz-panel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.dz-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
}
.dz-info-btn:hover,
.dz-info-btn:focus-visible {
  background: rgba(99, 102, 241, 0.4);
  border-color: rgba(165, 180, 252, 0.8);
  color: #fff;
  outline: none;
}
.dz-struct-card h3,
.dz-help-inline-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.dz-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(2px);
}
.dz-help-pop {
  position: fixed;
  z-index: 12001;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 1.5rem));
  max-height: min(90vh, 820px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(165deg, #0f172a 0%, #111827 55%, #0b1220 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}
.dz-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 0;
  background: #0f172a;
}
.dz-help-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}
.dz-help-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #a5b4fc;
  line-height: 1.4;
}
.dz-help-close {
  border: none;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.dz-help-close:hover {
  background: rgba(248, 113, 113, 0.25);
}
.dz-help-body {
  padding: 0.85rem 1.1rem 1.25rem;
}
.dz-help-section {
  margin: 0 0 0.95rem;
}
.dz-help-section h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
.dz-help-section p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.dz-help-theory {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.dz-help-laws {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.dz-help-laws h4 {
  color: #fbbf24;
}
body.dz-help-open {
  overflow: hidden;
}

.dz-red-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.dz-red-flag-pill.dz-sev-high,
.dz-hitmiss-badge.dz-sev-high {
  background: rgba(239, 68, 68, 0.28);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.65);
}
.dz-red-flag-pill.dz-sev-medium,
.dz-hitmiss-badge.dz-sev-medium {
  background: rgba(249, 115, 22, 0.22);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.55);
}
.dz-red-flag-pill.dz-sev-low,
.dz-hitmiss-badge.dz-sev-low {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.45);
}
.dz-row-redflag {
  background: rgba(239, 68, 68, 0.06);
}
.dz-rank-pill-new {
  background: rgba(167, 139, 250, 0.18) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #c4b5fd !important;
}
li.dz-red-flag {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(127, 29, 29, 0.12);
}
li.dz-red-flag.dz-sev-medium {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(124, 45, 18, 0.14);
}
li.dz-red-flag.dz-sev-low {
  border-color: rgba(234, 179, 8, 0.28);
  background: rgba(66, 50, 5, 0.16);
}
.dz-replace-block {
  margin-top: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.07);
}
.dz-replace-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.dz-replace-list {
  margin: 0.25rem 0 0;
  padding-left: 1.05rem;
  list-style: disc;
}
.dz-replace-list li {
  margin: 0.35rem 0;
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .dz-bind-row {
    flex-direction: column;
    align-items: stretch;
  }
  .dz-slate-meta {
    margin-left: 0;
  }
  .dz-field input,
  .dz-field select {
    min-width: 0;
    width: 100%;
  }
  .dz-lift-cell {
    min-width: 8rem;
  }
  .dz-pos-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Pro vs Missed · lineup boards · faces ───────────────────────── */
.dz-lineup-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.dz-lineup-board-compact {
  grid-template-columns: 1fr;
}
.dz-player-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dz-player-card-miss {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dz-player-card-pro {
  border-color: rgba(56, 189, 248, 0.35);
}
.dz-player-card-media {
  position: relative;
  flex-shrink: 0;
}
.dz-face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
  border: 2px solid rgba(148, 163, 184, 0.35);
  display: block;
}
.dz-face-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  background: linear-gradient(135deg, #334155, #1e293b);
}
.dz-player-card-logo {
  position: absolute;
  right: -4px;
  bottom: -4px;
  line-height: 0;
}
.dz-player-card-body { flex: 1; min-width: 0; }
.dz-player-card-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.dz-player-card-score {
  text-align: right;
  flex-shrink: 0;
}
.dz-player-card-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  word-break: break-word;
}
.dz-pos-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.dz-pos-btn {
  appearance: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  padding: 0.55rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 5.5rem;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.dz-pos-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}
.dz-pos-btn[aria-pressed="true"] {
  border-color: rgba(167, 139, 250, 0.7);
  background: linear-gradient(145deg, rgba(91, 33, 182, 0.35), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}
.dz-pos-btn-pos {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.dz-pos-btn-miss {
  font-size: 0.78rem;
  color: #fca5a5;
  font-weight: 600;
}
.dz-pos-sev-high {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18);
}
.dz-pos-sev-med {
  border-color: rgba(251, 191, 36, 0.45);
}
.dz-pos-sev-low {
  border-color: rgba(148, 163, 184, 0.35);
}
.dz-pos-sev-ok .dz-pos-btn-miss { color: #86efac; }
.dz-ideas-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.85rem;
}
.dz-idea-chip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(91, 33, 182, 0.28);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.dz-process-tag, .dz-outcome-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
}
.dz-process-tag { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.dz-process-process_candidate .dz-process-tag,
.dz-process-process_candidate { border-left: 3px solid #4ade80; padding-left: 0.45rem; }
.dz-process-env_artifact { opacity: 0.72; border-left: 3px solid #64748b; padding-left: 0.45rem; }
.dz-outcome-tag { background: rgba(251, 191, 36, 0.12); color: #fde68a; }
/* PAID: bright green pill + BLACK letters (never white/light on green) */
.dz-outcome-paid .dz-outcome-tag,
.dz-outcome-tag[data-out="paid"] {
  background: #4ade80 !important;
  color: #0a0a0a !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.dz-outcome-bust .dz-outcome-tag { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.dz-outcome-paid { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25); }
.dz-miss-salary {
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.dz-miss-role-group {
  margin: 0.65rem 0 1rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
}
.dz-miss-role-hitters {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.18);
}
.dz-miss-role-pitchers {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.16);
}
.dz-miss-role-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
  border-left: 4px solid #60a5fa;
}
.dz-miss-role-pitchers .dz-miss-role-h {
  border-left-color: #fbbf24;
}
.dz-miss-role-label {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}
.dz-miss-role-hitters .dz-miss-role-label { color: #bfdbfe; }
.dz-miss-role-pitchers .dz-miss-role-label { color: #fde68a; }
.dz-miss-role-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #94a3b8;
}

/* Multi-position high-exp: TOP PLAY glow vs BUST swap teaching */
.dz-multi-pos-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dz-multi-pos-card {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}
.dz-multi-pos-card--top-play {
  border-color: rgba(74, 222, 128, 0.65);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.45), rgba(15, 23, 42, 0.92));
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.25),
    0 0 22px rgba(74, 222, 128, 0.28),
    0 0 40px rgba(34, 197, 94, 0.12);
  animation: dz-multi-top-glow 2.6s ease-in-out infinite;
}
.dz-multi-pos-card--bust {
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.92));
}
@keyframes dz-multi-top-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(74, 222, 128, 0.22),
      0 0 16px rgba(74, 222, 128, 0.22),
      0 0 28px rgba(34, 197, 94, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(74, 222, 128, 0.45),
      0 0 28px rgba(74, 222, 128, 0.4),
      0 0 48px rgba(34, 197, 94, 0.2);
  }
}
.dz-multi-pos-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.dz-multi-pos-name {
  font-size: 1rem;
  color: #f8fafc;
}
.dz-multi-pos-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
.dz-multi-pos-badge--top {
  background: #4ade80;
  color: #0a0a0a;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
}
.dz-multi-pos-badge--bust {
  background: #f87171;
  color: #0a0a0a;
  font-weight: 900;
}
.dz-multi-pos-glow-alert {
  margin: 0.45rem 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.55);
  background: rgba(6, 78, 59, 0.35);
  color: #d1fae5;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.2);
}
.dz-multi-pos-glow-alert strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bbf7d0;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
  margin-bottom: 0.25rem;
}
.dz-multi-pos-glow-alert p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ecfdf5;
}
.dz-multi-pos-bust-alert {
  margin: 0.45rem 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}
.dz-multi-pos-bust-alert strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fecaca;
  margin-bottom: 0.25rem;
}
.dz-multi-pos-bust-alert p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.dz-multi-pos-swap-board {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.dz-multi-pos-swap-row {
  padding: 0.45rem 0.35rem;
  border-left: 3px solid rgba(248, 113, 113, 0.55);
  margin-bottom: 0.45rem;
}
.dz-multi-pos-swap-arrow {
  display: inline-block;
  margin: 0 0.35rem;
  font-weight: 900;
  color: #fbbf24;
}
.dz-vs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .dz-vs-grid { grid-template-columns: 1fr; }
}
.dz-vs-h {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.dz-vs-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.dz-vs-diff {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.dz-swap-pill, .dz-swap-card {
  margin-top: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 0.85rem;
}
.dz-swap-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.dz-swap-arrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.dz-swap-x {
  color: #4ade80;
  font-weight: 800;
  margin: 0 0.15rem;
}
.dz-team-fallback {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
}

/* D13 Exposure Scouting — role rows */
.dz-row-hit { box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.55); }
.dz-row-miss { box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.55); }
.dz-row-bust { box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.65); }
.dz-exp-role-row .dz-hitmiss-badge,
.dz-exp-role-row .dz-pot-badge { font-size: 0.6rem; }

/* PRO - HIT, MISS OR BUST By POSITION */
.dz-hmb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .dz-hmb-grid { grid-template-columns: minmax(0, 1fr); }
}
.dz-hmb-col {
  min-width: 0;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
}
.dz-hmb-col-hit { border-color: rgba(74, 222, 128, 0.35); }
.dz-hmb-col-miss { border-color: rgba(251, 191, 36, 0.35); }
.dz-hmb-col-bust { border-color: rgba(248, 113, 113, 0.4); }
.dz-hitmiss-card.dz-hitmiss-bust {
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.9));
}
.dz-hitmiss-badge.is-bust {
  background: #f87171;
  color: #0a0a0a;
  font-weight: 900;
}
.dz-bust-tag {
  color: #fca5a5;
  font-weight: 700;
}
.dz-pot-badge {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
}
.dz-pot-hit {
  background: rgba(74, 222, 128, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #bbf7d0;
}
.dz-pot-miss {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
}
.dz-pot-bust {
  background: rgba(248, 113, 113, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

/* ── Per-player WHY cards: 4-across, no overflow, full height ───── */
.dz-why-player-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
  align-items: stretch;
  margin: 0.5rem 0 1rem;
}
@media (max-width: 1280px) {
  .dz-why-player-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dz-why-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dz-why-player-grid { grid-template-columns: minmax(0, 1fr); }
}
.dz-why-player-card {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.72);
  overflow: hidden; /* contain pills/text inside card */
  box-sizing: border-box;
}
.dz-why-player-card--bust {
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(160deg, rgba(127, 29, 29, 0.28), rgba(2, 6, 23, 0.88));
}
.dz-why-player-card--caution {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(160deg, rgba(120, 53, 15, 0.22), rgba(2, 6, 23, 0.88));
}
.dz-why-player-head {
  min-width: 0;
}
.dz-why-player-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}
.dz-why-player-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f1f5f9;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dz-why-player-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}
.dz-why-player-sub span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dz-why-exp strong {
  color: #fbbf24;
  font-weight: 800;
}
.dz-why-dks {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  min-width: 0;
}
.dz-why-dks-main {
  font-size: 0.78rem;
  color: #6ee7b7;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.dz-why-dks-main strong {
  color: #a7f3d0;
  font-weight: 800;
}
.dz-why-dks-game {
  font-size: 0.7rem;
  color: #86efac;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dz-why-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.dz-why-meta code {
  font-size: 0.68rem;
  word-break: break-all;
}
.dz-why-meta-inline {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 0.25rem;
}
.dz-why-stats {
  margin-top: 0.1rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.dz-why-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
  max-width: 100%;
}
.dz-why-pill {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  hyphens: auto;
}
.dz-why-pill em {
  font-style: normal;
  font-weight: 800;
  color: #a7f3d0;
}
.dz-why-pill-tag {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dz-why-pill-elite {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #86efac;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}
.dz-why-risk-badge {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dz-why-risk-bust {
  background: #f87171;
  color: #0a0a0a;
}
.dz-why-risk-caution {
  background: #fbbf24;
  color: #0a0a0a;
}
.dz-why-risk-watch {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}
.dz-why-risk-solid {
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}
.dz-why-bust-box {
  margin-top: 0.2rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.28);
  min-width: 0;
}
.dz-why-bust-box strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fecaca;
  margin-bottom: 0.25rem;
}
.dz-why-bust-box ul {
  margin: 0;
  padding: 0 0 0 0.9rem;
  font-size: 0.72rem;
  color: #fecaca;
  line-height: 1.4;
}
.dz-why-bust-box li {
  margin: 0.15rem 0;
  overflow-wrap: anywhere;
}
.dz-why-risk-sev {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-right: 0.25rem;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
}
.dz-why-sev-hard { background: #f87171; color: #0a0a0a; }
.dz-why-sev-soft { background: #fbbf24; color: #0a0a0a; }
.dz-why-sev-pre { background: rgba(148, 163, 184, 0.3); color: #e2e8f0; }
.dz-why-swap-box {
  margin-top: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(6, 78, 59, 0.28);
  min-width: 0;
}
.dz-why-swap-box strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bbf7d0;
  margin-bottom: 0.25rem;
}
.dz-why-swap-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dz-why-swap-box li {
  margin: 0.3rem 0;
  padding: 0.25rem 0;
  border-top: 1px solid rgba(74, 222, 128, 0.12);
  font-size: 0.75rem;
  color: #d1fae5;
  overflow-wrap: anywhere;
}
.dz-why-swap-box li:first-child { border-top: 0; }
.dz-why-swap-arrow {
  color: #4ade80;
  font-weight: 900;
  margin-right: 0.2rem;
}
.dz-why-lines {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0.35rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  max-height: 9rem;
  overflow-y: auto;
  min-width: 0;
}
.dz-why-lines li {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0.2rem 0;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Solid-look → BUST risk SWAP board */
.dz-why-bust-swap-board {
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    linear-gradient(145deg, rgba(120, 53, 15, 0.18), rgba(15, 23, 42, 0.75));
}
.dz-why-bust-swap-board--empty {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.4);
}
.dz-why-bust-swap-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dz-why-bust-swap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.65rem 0.85rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(2, 6, 23, 0.55);
}
@media (max-width: 800px) {
  .dz-why-bust-swap-row { grid-template-columns: minmax(0, 1fr); }
}
.dz-why-bust-swap-from,
.dz-why-bust-swap-to {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dz-why-swap-offer {
  margin: 0.25rem 0;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.28);
  font-size: 0.78rem;
  color: #d1fae5;
}

/* ── GROK Decoder Certification School ───────────────────────────── */
.dz-school-panel { border-color: rgba(167, 139, 250, 0.35); }
.dz-school-board { margin-top: 0.75rem; }
.dz-school-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.45));
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.dz-school-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 0.25rem;
}
.dz-school-title {
  margin: 0;
  font-size: 1.2rem;
  color: #f5f3ff;
}
.dz-school-sub {
  margin: 0.4rem 0 0;
  max-width: 48rem;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}
.dz-school-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  min-width: 7rem;
}
.dz-school-meta strong { color: #a78bfa; font-size: 1.15rem; }
.dz-school-meta-pending { color: #fde68a; font-weight: 700; font-size: 0.78rem; }
.dz-school-training { margin-bottom: 1.15rem; }
.dz-school-training-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
}
.dz-school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.dz-school-card {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.dz-school-card:hover {
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.2);
}
.dz-school-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(167, 139, 250, 0.35);
  background: #0f172a;
}
.dz-school-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.dz-school-id {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a78bfa;
}
.dz-school-name {
  font-size: 0.92rem;
  color: #f8fafc;
  line-height: 1.25;
}
.dz-school-section {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-school-status {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fde68a;
  margin-top: 0.15rem;
}

/* Inline training badge on each panel H2 */
.dz-panel-title-with-training {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
.dz-training-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: rgba(91, 33, 182, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.35);
  max-width: 100%;
}
.dz-training-badge-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: #0f172a;
}
.dz-training-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.dz-training-badge-id {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c4b5fd;
}
.dz-training-badge-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e9d5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
@media (max-width: 640px) {
  .dz-school-logo { width: 52px; height: 52px; }
  .dz-training-badge-name { max-width: 10rem; }
}

/* Per-pro theory library */
.dz-lib-banner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(91, 33, 182, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  font-size: 0.85rem;
  color: #c4b5fd;
}
.dz-lib-banner strong { color: #f5f3ff; }
.dz-playbook-theory {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #86efac;
  line-height: 1.35;
  word-break: break-word;
}

/* ── Three-training academy ─────────────────────────────────────── */
.dz-train-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.dz-train-nav button {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #e9d5ff;
  background: rgba(91, 33, 182, 0.28);
  border: 1px solid rgba(167, 139, 250, 0.4);
  cursor: pointer;
}
.dz-train-nav button:hover { border-color: #c4b5fd; color: #fff; }
.dz-train-block {
  margin-bottom: 1.75rem;
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
}
.dz-train-block:not([open]) {
  margin-bottom: 0.75rem;
  padding-bottom: 1rem;
}
.dz-train-block > summary {
  list-style: none;
}
.dz-train-block > summary::-webkit-details-marker {
  display: none;
}
.dz-train-block[data-training="mastery"] {
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08);
}
.dz-train-block[data-training="decoding"] {
  border-color: rgba(167, 139, 250, 0.4);
}
.dz-train-block[data-training="system"] {
  border-color: rgba(56, 189, 248, 0.35);
}
.dz-train-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  margin-bottom: 0.9rem;
}
.dz-train-block:not([open]) .dz-train-header {
  margin-bottom: 0;
}
.dz-train-toggle {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(15, 23, 42, 0.85);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.dz-train-toggle::before {
  content: "+";
  color: #e9d5ff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}
.dz-train-block[open] .dz-train-toggle::before {
  content: "−";
}
.dz-train-head-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dz-train-code {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.2rem;
}
.dz-train-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
}
.dz-train-sub {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: #c4b5fd;
  font-weight: 600;
}
.dz-train-blurb {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 52rem;
}
.dz-train-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.dz-train-meta strong { color: #86efac; }
.dz-train-content { margin-top: 0.9rem; }
.dz-train-lessons { display: flex; flex-direction: column; gap: 0.55rem; }
.dz-train-lesson {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  overflow: hidden;
}
.dz-train-lesson > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
}
.dz-train-lesson > summary::-webkit-details-marker { display: none; }
.dz-train-lesson[open] > summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(91, 33, 182, 0.12);
}
.dz-train-lesson-logo { border-radius: 10px !important; width: 48px !important; height: 48px !important; }
.dz-train-lesson-sum {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.dz-train-lesson-sum em {
  font-style: normal;
  font-size: 0.78rem;
  color: #fde68a;
  font-weight: 600;
}
.dz-train-lesson-body {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.dz-train-lesson-body h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
}
.dz-train-hook {
  margin: 0;
  font-weight: 700;
  color: #e9d5ff;
}
.dz-train-story p, .dz-train-math p, .dz-train-drill p {
  margin: 0;
  white-space: pre-line;
}
.dz-train-axioms ul {
  margin: 0;
  padding-left: 1.15rem;
}
.dz-train-axioms li { margin: 0.25rem 0; }
.dz-train-drill {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.dz-train-drill h4 { color: #86efac !important; margin-top: 0 !important; }
.dz-school-card-static { cursor: default; }
.dz-school-card-static:hover { transform: none; }
.dz-train-system-link { margin-top: 0.85rem; }
.dz-train-blurb { margin: 0.25rem 0 0; font-size: 0.75rem; color: #94a3b8; line-height: 1.35; }
@media (max-width: 640px) {
  .dz-train-header {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .dz-train-meta {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Elite continuous search + theory vault */
.dz-combo-table th { font-size: 0.72rem; white-space: nowrap; }
.dz-combo-table td { font-size: 0.82rem; vertical-align: top; }
.dz-lift-good { color: #4ade80; font-weight: 800; }
.dz-lift-mid { color: #fde68a; font-weight: 700; }
.dz-lift-bad { color: #f87171; font-weight: 700; }
.dz-env-flag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: #fbbf24;
}
.dz-col-class {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
}
.dz-theory-vault {
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 47, 73, 0.35);
}
.dz-pos-split-host {
  margin-top: 0.5rem;
  min-height: 2rem;
}
.dz-pos-detail-pro-only {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.22);
}
.dz-pos-detail-miss-only {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.4);
  background: rgba(124, 45, 18, 0.22);
}
.dz-postgame-cell {
  color: #fbbf24;
  font-weight: 700;
}
.dz-postgame-pill {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.dz-game-score {
  color: #86efac;
  font-weight: 700;
  font-size: 0.78rem;
}
.dz-miss-title-paid { color: #86efac; }
.dz-miss-title-soft { color: #fde68a; }
.dz-outcome-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: #94a3b8;
}
.dz-outcome-paid .dz-outcome-tag,
.dz-outcome-tag:is([data-out="paid"]),
.dz-outcome-tag[data-out="paid"] {
  background: #4ade80 !important;
  color: #0a0a0a !important;
  font-weight: 900 !important;
}
li.dz-outcome-paid { border-left: 3px solid #4ade80; padding-left: 0.45rem; }
li.dz-outcome-bust,
li.dz-outcome-flat { border-left: 3px solid #fbbf24; padding-left: 0.45rem; }
li.dz-outcome-ok { border-left: 3px solid #38bdf8; padding-left: 0.45rem; }
.dz-miss-split { margin-top: 0.85rem; }

.dz-pos-summary-help { display: inline-flex; gap: 0.2rem; margin-left: 0.35rem; vertical-align: middle; }
.dz-pos-summary .dz-info-btn { pointer-events: auto; }
.dz-matrix-table th .dz-info-btn { margin-left: 0.15rem; }
.dz-table th.dz-th-info,
.dz-combo-table th.dz-th-info {
  white-space: nowrap;
  vertical-align: bottom;
}
.dz-table th.dz-th-info .dz-th-lab,
.dz-combo-table th.dz-th-info .dz-th-lab {
  vertical-align: middle;
}
.dz-table th.dz-th-info .dz-info-btn,
.dz-combo-table th.dz-th-info .dz-info-btn {
  margin-left: 0.12rem;
  vertical-align: middle;
  transform: scale(0.92);
  transform-origin: center;
}
.dz-combo-meta-line .dz-info-btn {
  margin-left: 0.1rem;
  vertical-align: middle;
}

/* ── PRO HIT & MISS · DPC# ───────────────────────────────────────── */
.dz-hitmiss-banner {
  border-color: rgba(52, 211, 153, 0.35) !important;
  background: linear-gradient(120deg, rgba(6, 78, 59, 0.35), rgba(30, 27, 75, 0.45)) !important;
}
.dz-hitmiss-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}
.dz-hitmiss-board-compact {
  grid-template-columns: 1fr;
}
.dz-hitmiss-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.dz-hitmiss-hit {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15), 0 10px 28px rgba(0, 0, 0, 0.28);
}
.dz-hitmiss-miss {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 10px 28px rgba(0, 0, 0, 0.28);
}
.dz-hitmiss-compact { padding: 0.65rem 0.75rem; }
.dz-hitmiss-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.dz-hitmiss-media { position: relative; flex-shrink: 0; }
.dz-hitmiss-identity { flex: 1; min-width: 0; }
.dz-hitmiss-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}
.dz-hitmiss-score { text-align: right; flex-shrink: 0; }
.dz-hitmiss-dks { font-size: 1.45rem !important; color: #fbbf24; }
.dz-pos-mega {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #e0e7ff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(30, 27, 75, 0.9));
  border: 1px solid rgba(165, 180, 252, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.dz-hitmiss-exp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.dz-hitmiss-badge {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.dz-hitmiss-badge.is-hit {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.55);
}
.dz-hitmiss-badge.is-miss {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.55);
}
.dz-exp-mega {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  color: #34d399;
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
  letter-spacing: -0.02em;
}
.dz-hitmiss-miss .dz-exp-mega { color: #fbbf24; text-shadow: 0 0 18px rgba(251, 191, 36, 0.3); }
.dz-exp-mega-unit {
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 0.2rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  vertical-align: super;
}
.dz-exp-bright {
  color: #6ee7b7;
  font-weight: 800;
}
.dz-hit-tag { color: #6ee7b7; font-weight: 700; }
.dz-miss-tag { color: #fde68a; font-weight: 700; }

.dz-dpc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.dz-dpc-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-right: 0.15rem;
}
.dz-dpc-chip {
  appearance: none;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.55);
  background: rgba(67, 56, 202, 0.35);
  color: #e0e7ff;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.18rem 0.4rem;
  letter-spacing: 0.02em;
}
.dz-dpc-chip:hover,
.dz-dpc-chip:focus-visible {
  background: rgba(99, 102, 241, 0.55);
  border-color: rgba(165, 180, 252, 0.85);
  color: #fff;
  outline: none;
}
.dz-dpc-chip-inline {
  display: inline;
  padding: 0.08rem 0.28rem;
  font-size: 0.65rem;
  vertical-align: middle;
}
.dz-dpc-col {
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.82rem;
}
.dz-dpc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.dz-dpc-stat {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.dz-dpc-stat-lab {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.dz-dpc-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-top: 0.15rem;
}
.dz-top5-btn {
  margin-top: 0.45rem;
  width: 100%;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  border-color: rgba(129, 140, 248, 0.4) !important;
  background: rgba(49, 46, 129, 0.35) !important;
  color: #e0e7ff !important;
}
.dz-top5-btn:hover {
  border-color: rgba(165, 180, 252, 0.7) !important;
  background: rgba(67, 56, 202, 0.45) !important;
}
.dz-dpc-pop, .dz-top5-pop {
  width: min(720px, calc(100vw - 1.5rem));
  max-height: min(92vh, 900px);
}
.dz-dpc-overlay-host { position: relative; z-index: 12000; }

@media (max-width: 640px) {
  .dz-hitmiss-board { grid-template-columns: 1fr; }
  .dz-exp-mega { font-size: 1.35rem; }
  .dz-pos-mega { font-size: 1rem; }
}

/* Success board · pro exp% + clickable DPC player names */
.dz-player-dpc-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 800;
  color: #a5b4fc;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(165, 180, 252, 0.45);
  text-underline-offset: 2px;
}
.dz-player-dpc-link:hover,
.dz-player-dpc-link:focus-visible {
  color: #e0e7ff;
  text-decoration-color: #c7d2fe;
  outline: none;
}
.dz-test-player-name.dz-player-dpc-link {
  display: inline;
  font-size: 0.86rem;
  font-weight: 700;
  color: #c7d2fe;
  max-width: 100%;
  text-align: left;
}
.dz-test-player-name.dz-player-dpc-link:hover {
  color: #eef2ff;
}
.dz-dpc-player-head-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.dz-dpc-player-media {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.dz-dpc-player-media .dz-face {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1e293b;
}
.dz-dpc-player-media img:not(.dz-face),
.dz-dpc-player-media svg {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 18px !important;
  height: 18px !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
.dz-dpc-player-pop {
  max-width: min(720px, 96vw);
  max-height: min(88vh, 900px);
}
.dz-dpc-player-pop .dz-help-body {
  overflow-y: auto;
  max-height: min(70vh, 720px);
}
/* Tier forensics member table — denser columns for DKS / DKS$ / DPC */
.dz-tier-member-table th,
.dz-tier-member-table td {
  vertical-align: top;
}
.dz-tier-member-table .dz-dpc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.dz-exp-mega-table {
  font-size: 1.2rem !important;
  display: inline-block;
}
.dz-success-board-table th:nth-child(3),
.dz-success-board-table td:nth-child(3) {
  min-width: 5.5rem;
}


/* Keep Decoder usable while multi-MB slate pool loads */
body.dz-page-busy {
  cursor: progress;
}
body.dz-page-busy .dz-bind-row,
body.dz-page-busy .dz-dropzone {
  opacity: 0.92;
}
body.dz-page-busy .dz-status[data-busy="1"] {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.dz-report-progress {
  border-color: #18b7e8;
  background: #0c1b2b;
  box-shadow: inset 0 0 0 1px rgba(24, 183, 232, 0.18);
}

.dz-report-progress[hidden] {
  display: none;
}

.dz-report-progress-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dz-report-progress-head .dz-panel-title,
.dz-report-progress-head .dz-note {
  margin: 0;
}

.dz-report-progress-track {
  height: 8px;
  margin: 14px 0 10px;
  overflow: hidden;
  border: 1px solid #244c68;
  background: #07111c;
}

.dz-report-progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  background: #20bff3;
  animation: dz-report-progress-slide 1.1s ease-in-out infinite alternate;
}

.dz-report-progress[data-tone="error"] {
  border-color: #ff6678;
}

.dz-report-progress[data-tone="error"] .dz-report-progress-track span {
  width: 100%;
  animation: none;
  background: #ff6678;
}

.dz-report-progress[data-tone="ok"] .dz-report-progress-track span {
  width: 100%;
  animation: none;
  background: #35d48b;
}

@keyframes dz-report-progress-slide {
  from { transform: translateX(-35%); }
  to { transform: translateX(205%); }
}

/* TEST LOGIC owns one canonical source report. Skip layout/paint for the many
   off-screen analysis sections until the user scrolls to them. */
#dz-test-logic-source-analysis-host > #dz-report > section {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}
