:root {
  /* Launch palette trial: keep this block small so the green consolidation is easy to revert. */
  --launch-bg: #e4f2e8;
  --launch-bg-soft: #cdeedc;
  --launch-brand: #00a86b;
  --launch-brand-dark: #007f51;
  --launch-action: #10b981;
  --launch-action-bright: #20c997;
  --launch-success: #8fd36e;
  --launch-success-soft: #72ca74;
  --launch-success-light: #a1e78b;
  --launch-success-light-end: #83d584;
  --launch-lime: #c7ea46;
  --launch-lime-soft: #eef8bf;

  --bg: var(--launch-bg);
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --ink: #031410;
  --muted: #587168;
  --line: rgba(6, 31, 22, 0.1);
  --accent: var(--launch-brand);
  --accent-dark: var(--launch-brand-dark);
  --accent-soft: var(--launch-bg-soft);
  --lime: var(--launch-lime);
  --lime-soft: var(--launch-lime-soft);
  --hunter: #3f704d;
  --accent-2: #0018e9;
  --danger: #e0524d;
  --shadow: 0 12px 28px rgba(2, 30, 18, 0.08);
  --sans: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Change"],
body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Percent"] {
  background: linear-gradient(180deg, #d96464 0%, #bc4747 100%) !important;
}

body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Change"] .result-metric-label,
body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Percent"] .result-metric-label {
  color: rgba(26, 10, 10, 0.84) !important;
}

body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Change"] .result-metric-value,
body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Percent"] .result-metric-value,
body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-app-mode="movers"][data-default-direction="losers"] .results-panel td[data-label="Percent"] .result-metric-value strong {
  color: #ffffff !important;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg-sealed"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"] .result-metric-value strong,
body[data-source="mtg"] .results-panel td[data-label="Percent"] .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] .result-metric-value strong,
body[data-source="mtg-sealed"] .results-panel td[data-label="Percent"] .result-metric-value strong {
  display: inline-flex !important;
  align-items: center;
  gap: 0.34rem;
  white-space: nowrap;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"] .metric-arrow,
body[data-source="mtg"] .results-panel td[data-label="Change"] .metric-arrow,
body[data-source="mtg-echo"] .results-panel td[data-label="Change"] .metric-arrow,
body[data-source="mtg-sealed"] .results-panel td[data-label="Change"] .metric-arrow,
body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"] .metric-arrow,
body[data-source="mtg"] .results-panel td[data-label="Percent"] .metric-arrow,
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] .metric-arrow,
body[data-source="mtg-sealed"] .results-panel td[data-label="Percent"] .metric-arrow {
  margin-right: 0 !important;
  flex: 0 0 auto;
  line-height: 1;
}

body[data-source="mtg-mixed"] .results-panel,
body[data-source="mtg"] .results-panel,
body[data-source="mtg-tournaments"] .results-panel,
body[data-source="mtg-sealed"] .results-panel,
body[data-source="mtg-echo"] .results-panel,
body[data-app-mode="echo-sets"] .set-summary-panel,
body[data-app-mode="echo-sets"] .set-spotlight-panel,
body[data-app-mode="echo-sets"] .set-results-panel {
  background: linear-gradient(180deg, #0d1112 0%, #0a0d0e 100%);
  border: 1px solid rgba(199, 234, 70, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

body[data-source="mtg-mixed"] .results-panel::before,
body[data-source="mtg"] .results-panel::before,
body[data-source="mtg-tournaments"] .results-panel::before,
body[data-source="mtg-sealed"] .results-panel::before,
body[data-source="mtg-echo"] .results-panel::before,
body[data-app-mode="echo-sets"] .set-summary-panel::before,
body[data-app-mode="echo-sets"] .set-spotlight-panel::before,
body[data-app-mode="echo-sets"] .set-results-panel::before {
  content: none;
}

body[data-source="mtg-mixed"] .results-panel .panel-header,
body[data-source="mtg"] .results-panel .panel-header,
body[data-source="mtg-tournaments"] .results-panel .panel-header,
body[data-source="mtg-sealed"] .results-panel .panel-header,
body[data-source="mtg-echo"] .results-panel .panel-header,
body[data-app-mode="echo-sets"] .panel-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-source="mtg-mixed"] .results-panel .panel-header h2,
body[data-source="mtg"] .results-panel .panel-header h2,
body[data-source="mtg-tournaments"] .results-panel .panel-header h2,
body[data-source="mtg-sealed"] .results-panel .panel-header h2,
body[data-source="mtg-echo"] .results-panel .panel-header h2,
body[data-app-mode="echo-sets"] .panel-header h2 {
  color: #ffffff;
}

body[data-source="mtg-mixed"] .results-panel .panel-header p,
body[data-source="mtg"] .results-panel .panel-header p,
body[data-source="mtg-tournaments"] .results-panel .panel-header p,
body[data-source="mtg-sealed"] .results-panel .panel-header p,
body[data-source="mtg-echo"] .results-panel .panel-header p,
body[data-source="mtg-mixed"] .results-panel > p,
body[data-source="mtg"] .results-panel > p,
body[data-source="mtg-tournaments"] .results-panel > p,
body[data-source="mtg-sealed"] .results-panel > p,
body[data-source="mtg-echo"] .results-panel > p,
body[data-app-mode="echo-sets"] .panel p {
  color: rgba(255, 255, 255, 0.72);
}

body[data-source="mtg-mixed"] .results-panel .table-wrap table,
body[data-source="mtg"] .results-panel .table-wrap table,
body[data-source="mtg-tournaments"] .results-panel .table-wrap table,
body[data-source="mtg-sealed"] .results-panel .table-wrap table,
body[data-source="mtg-echo"] .results-panel .table-wrap table,
body[data-app-mode="echo-sets"] .table-wrap table {
  border-collapse: separate;
  border-spacing: 0 16px;
}

body[data-source="mtg-mixed"] .results-panel tbody tr.result-row,
body[data-source="mtg"] .results-panel tbody tr.result-row,
body[data-source="mtg-tournaments"] .results-panel tbody tr.result-row,
body[data-source="mtg-sealed"] .results-panel tbody tr.result-row,
body[data-source="mtg-echo"] .results-panel tbody tr.result-row,
body[data-app-mode="echo-sets"] tbody tr.result-row {
  position: relative;
}

body[data-source="mtg-mixed"] .results-panel tbody tr.result-row::after,
body[data-source="mtg"] .results-panel tbody tr.result-row::after,
body[data-source="mtg-tournaments"] .results-panel tbody tr.result-row::after,
body[data-source="mtg-sealed"] .results-panel tbody tr.result-row::after,
body[data-source="mtg-echo"] .results-panel tbody tr.result-row::after,
body[data-app-mode="echo-sets"] tbody tr.result-row::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 72px;
  height: 72px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
  filter: saturate(0);
}

body[data-source="mtg-mixed"] .results-panel tbody td,
body[data-source="mtg"] .results-panel tbody td,
body[data-source="mtg-tournaments"] .results-panel tbody td,
body[data-source="mtg-sealed"] .results-panel tbody td,
body[data-source="mtg-echo"] .results-panel tbody td,
body[data-app-mode="echo-sets"] tbody td {
  padding: 16px 10px;
  background: linear-gradient(180deg, #111617 0%, #0b0e0f 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(199, 234, 70, 0.16);
  border-bottom: 1px solid rgba(199, 234, 70, 0.16);
  box-shadow: none;
  vertical-align: top;
}

body[data-source="mtg-mixed"] .results-panel tbody td:first-child,
body[data-source="mtg"] .results-panel tbody td:first-child,
body[data-source="mtg-tournaments"] .results-panel tbody td:first-child,
body[data-source="mtg-sealed"] .results-panel tbody td:first-child,
body[data-source="mtg-echo"] .results-panel tbody td:first-child,
body[data-app-mode="echo-sets"] tbody td:first-child {
  padding-left: 14px;
  border-left: 1px solid rgba(199, 234, 70, 0.16);
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

body[data-source="mtg-mixed"] .results-panel tbody td:last-child,
body[data-source="mtg"] .results-panel tbody td:last-child,
body[data-source="mtg-tournaments"] .results-panel tbody td:last-child,
body[data-source="mtg-sealed"] .results-panel tbody td:last-child,
body[data-source="mtg-echo"] .results-panel tbody td:last-child,
body[data-app-mode="echo-sets"] tbody td:last-child {
  padding-right: 14px;
  border-right: 1px solid rgba(199, 234, 70, 0.16);
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

body[data-source="mtg-mixed"] .results-panel tbody td p,
body[data-source="mtg"] .results-panel tbody td p,
body[data-source="mtg-tournaments"] .results-panel tbody td p,
body[data-source="mtg-sealed"] .results-panel tbody td p,
body[data-source="mtg-echo"] .results-panel tbody td p,
body[data-app-mode="echo-sets"] tbody td p,
body[data-source="mtg-mixed"] .results-panel tbody td a,
body[data-source="mtg"] .results-panel tbody td a,
body[data-source="mtg-tournaments"] .results-panel tbody td a,
body[data-source="mtg-sealed"] .results-panel tbody td a,
body[data-source="mtg-echo"] .results-panel tbody td a,
body[data-app-mode="echo-sets"] tbody td a {
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-mixed"] .results-panel tbody td .small,
body[data-source="mtg"] .results-panel tbody td .small,
body[data-source="mtg-tournaments"] .results-panel tbody td .small,
body[data-source="mtg-sealed"] .results-panel tbody td .small,
body[data-source="mtg-echo"] .results-panel tbody td .small,
body[data-app-mode="echo-sets"] tbody td .small {
  color: rgba(255, 255, 255, 0.66);
}

body[data-source="mtg-mixed"] .results-panel tbody td strong,
body[data-source="mtg"] .results-panel tbody td strong,
body[data-source="mtg-tournaments"] .results-panel tbody td strong,
body[data-source="mtg-sealed"] .results-panel tbody td strong,
body[data-source="mtg-echo"] .results-panel tbody td strong,
body[data-app-mode="echo-sets"] tbody td strong {
  color: #ffffff;
}

body[data-source="mtg-mixed"] .results-panel tbody td a:hover,
body[data-source="mtg-mixed"] .results-panel tbody td a:focus-visible,
body[data-source="mtg"] .results-panel tbody td a:hover,
body[data-source="mtg"] .results-panel tbody td a:focus-visible,
body[data-source="mtg-tournaments"] .results-panel tbody td a:hover,
body[data-source="mtg-tournaments"] .results-panel tbody td a:focus-visible,
body[data-source="mtg-sealed"] .results-panel tbody td a:hover,
body[data-source="mtg-sealed"] .results-panel tbody td a:focus-visible,
body[data-source="mtg-echo"] .results-panel tbody td a:hover,
body[data-source="mtg-echo"] .results-panel tbody td a:focus-visible,
body[data-app-mode="echo-sets"] tbody td a:hover,
body[data-app-mode="echo-sets"] tbody td a:focus-visible {
  color: var(--lime);
}

body[data-source="mtg-mixed"] .results-panel .result-card-copy,
body[data-source="mtg"] .results-panel .result-card-copy,
body[data-source="mtg-sealed"] .results-panel .result-card-copy,
body[data-source="mtg-echo"] .results-panel .result-card-copy,
body[data-app-mode="echo-sets"] .result-card-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

body[data-source="mtg-mixed"] .results-panel .result-card-copy strong,
body[data-source="mtg"] .results-panel .result-card-copy strong,
body[data-source="mtg-sealed"] .results-panel .result-card-copy strong,
body[data-source="mtg-echo"] .results-panel .result-card-copy strong,
body[data-app-mode="echo-sets"] .result-card-copy strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

body[data-source="mtg-mixed"] .results-panel .result-metric,
body[data-source="mtg"] .results-panel .result-metric,
body[data-source="mtg-sealed"] .results-panel .result-metric,
body[data-source="mtg-echo"] .results-panel .result-metric,
body[data-app-mode="echo-sets"] .result-metric {
  display: grid;
  gap: 8px;
  min-height: 84px;
  align-content: start;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

body[data-source="mtg-mixed"] .results-panel .result-metric-label,
body[data-source="mtg"] .results-panel .result-metric-label,
body[data-source="mtg-sealed"] .results-panel .result-metric-label,
body[data-source="mtg-echo"] .results-panel .result-metric-label,
body[data-app-mode="echo-sets"] .result-metric-label {
  display: block;
  color: rgba(199, 234, 70, 0.95);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-source="mtg-mixed"] .results-panel .result-metric-value,
body[data-source="mtg"] .results-panel .result-metric-value,
body[data-source="mtg-sealed"] .results-panel .result-metric-value,
body[data-source="mtg-echo"] .results-panel .result-metric-value,
body[data-app-mode="echo-sets"] .result-metric-value {
  color: rgba(255, 255, 255, 0.9);
}

body[data-source="mtg-mixed"] .results-panel .result-metric-value strong,
body[data-source="mtg"] .results-panel .result-metric-value strong,
body[data-source="mtg-sealed"] .results-panel .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel .result-metric-value strong,
body[data-app-mode="echo-sets"] .result-metric-value strong {
  display: block;
  color: #ffffff;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

body[data-source="mtg-mixed"] .results-panel .result-shop-wrap,
body[data-source="mtg"] .results-panel .result-shop-wrap,
body[data-source="mtg-sealed"] .results-panel .result-shop-wrap,
body[data-source="mtg-echo"] .results-panel .result-shop-wrap,
body[data-app-mode="echo-sets"] .result-shop-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 84px;
}

body[data-source="mtg-mixed"] .results-panel .price-compare,
body[data-source="mtg"] .results-panel .price-compare,
body[data-source="mtg-sealed"] .results-panel .price-compare,
body[data-source="mtg-echo"] .results-panel .price-compare,
body[data-app-mode="echo-sets"] .price-compare {
  margin-top: 6px;
  line-height: 1.35;
}

body[data-source="mtg-mixed"] .results-panel .shop-button,
body[data-source="mtg"] .results-panel .shop-button,
body[data-source="mtg-tournaments"] .results-panel .shop-button,
body[data-source="mtg-echo"] .results-panel .shop-button,
body[data-app-mode="echo-sets"] .shop-button {
  border-color: rgba(199, 234, 70, 0.2);
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%);
  color: #09140d;
  box-shadow: none;
}

body[data-source="mtg-mixed"] .results-panel .shop-button:hover,
body[data-source="mtg-mixed"] .results-panel .shop-button:focus-visible,
body[data-source="mtg"] .results-panel .shop-button:hover,
body[data-source="mtg"] .results-panel .shop-button:focus-visible,
body[data-source="mtg-tournaments"] .results-panel .shop-button:hover,
body[data-source="mtg-tournaments"] .results-panel .shop-button:focus-visible,
body[data-source="mtg-echo"] .results-panel .shop-button:hover,
body[data-source="mtg-echo"] .results-panel .shop-button:focus-visible,
body[data-app-mode="echo-sets"] .shop-button:hover,
body[data-app-mode="echo-sets"] .shop-button:focus-visible {
  border-color: rgba(199, 234, 70, 0.28);
  background: linear-gradient(180deg, var(--launch-success-light) 0%, var(--launch-success-light-end) 100%);
  color: #09140d;
}

body[data-source="mtg-mixed"] .results-panel .up,
body[data-source="mtg"] .results-panel .up,
body[data-source="mtg-tournaments"] .results-panel .up,
body[data-source="mtg-echo"] .results-panel .up,
body[data-app-mode="echo-sets"] .up {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(199, 234, 70, 0.12);
}

body[data-source="mtg-mixed"] .results-panel .down,
body[data-source="mtg"] .results-panel .down,
body[data-source="mtg-tournaments"] .results-panel .down,
body[data-source="mtg-echo"] .results-panel .down,
body[data-app-mode="echo-sets"] .down {
  color: #ff6b6b;
}

body[data-app-mode="echo-sets"] .summary-grid > div,
body[data-app-mode="echo-sets"] .random-card {
  position: relative;
  background: linear-gradient(180deg, #111617 0%, #0b0e0f 100%);
  border: 1px solid rgba(199, 234, 70, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

body[data-app-mode="echo-sets"] .summary-grid > div::after,
body[data-app-mode="echo-sets"] .random-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 86px;
  height: 86px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  filter: saturate(0);
}

body[data-app-mode="echo-sets"] .summary-grid strong,
body[data-app-mode="echo-sets"] .random-card .eyebrow,
body[data-app-mode="echo-sets"] .random-card-stats strong {
  color: rgba(199, 234, 70, 0.95);
}

body[data-app-mode="echo-sets"] .summary-grid p,
body[data-app-mode="echo-sets"] .random-card h3,
body[data-app-mode="echo-sets"] .random-card p,
body[data-app-mode="echo-sets"] .random-card a {
  color: rgba(255, 255, 255, 0.92);
}

body[data-app-mode="echo-sets"] .random-card-stats span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 680px) {
  body[data-source="mtg-mixed"] .results-panel .result-metric,
  body[data-source="mtg"] .results-panel .result-metric,
  body[data-source="mtg-sealed"] .results-panel .result-metric,
  body[data-source="mtg-echo"] .results-panel .result-metric,
  body[data-app-mode="echo-sets"] .result-metric,
  body[data-source="mtg-mixed"] .results-panel .result-shop-wrap,
  body[data-source="mtg"] .results-panel .result-shop-wrap,
  body[data-source="mtg-sealed"] .results-panel .result-shop-wrap,
  body[data-source="mtg-echo"] .results-panel .result-shop-wrap,
  body[data-app-mode="echo-sets"] .result-shop-wrap {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-source="mtg-mixed"] .results-panel tbody tr.result-row::after,
  body[data-source="mtg"] .results-panel tbody tr.result-row::after,
  body[data-source="mtg-tournaments"] .results-panel tbody tr.result-row::after,
  body[data-source="mtg-sealed"] .results-panel tbody tr.result-row::after,
  body[data-source="mtg-echo"] .results-panel tbody tr.result-row::after,
  body[data-app-mode="echo-sets"] tbody tr.result-row::after {
    width: 54px;
    height: 54px;
  }
}

body[data-source="mtg-mixed"] .results-panel tbody td,
body[data-source="mtg"] .results-panel tbody td,
body[data-source="mtg-sealed"] .results-panel tbody td,
body[data-source="mtg-echo"] .results-panel tbody td {
  background: linear-gradient(180deg, #181d1f 0%, #121618 100%) !important;
}

body[data-source="mtg-mixed"] .results-panel .result-metric,
body[data-source="mtg"] .results-panel .result-metric,
body[data-source="mtg-sealed"] .results-panel .result-metric,
body[data-source="mtg-echo"] .results-panel .result-metric {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-source="mtg-mixed"] .results-panel tbody td:not(:first-child):not(:last-child),
body[data-source="mtg"] .results-panel tbody td:not(:first-child):not(:last-child),
body[data-source="mtg-sealed"] .results-panel tbody td:not(:first-child):not(:last-child),
body[data-source="mtg-echo"] .results-panel tbody td:not(:first-child):not(:last-child) {
  border-left: 1px solid rgba(199, 234, 70, 0.18) !important;
}

body[data-source="mtg-mixed"] .results-panel .result-card-copy,
body[data-source="mtg"] .results-panel .result-card-copy,
body[data-source="mtg-sealed"] .results-panel .result-card-copy,
body[data-source="mtg-echo"] .results-panel .result-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

body[data-source="mtg-mixed"] .results-panel .result-card-copy strong,
body[data-source="mtg"] .results-panel .result-card-copy strong,
body[data-source="mtg-sealed"] .results-panel .result-card-copy strong,
body[data-source="mtg-echo"] .results-panel .result-card-copy strong {
  font-size: 1.14rem !important;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

body[data-source="mtg-mixed"] .results-panel .result-metric-label,
body[data-source="mtg"] .results-panel .result-metric-label,
body[data-source="mtg-sealed"] .results-panel .result-metric-label,
body[data-source="mtg-echo"] .results-panel .result-metric-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(199, 234, 70, 0.96) !important;
  font-size: 0.7rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-source="mtg-mixed"] .results-panel .result-metric-value,
body[data-source="mtg"] .results-panel .result-metric-value,
body[data-source="mtg-sealed"] .results-panel .result-metric-value,
body[data-source="mtg-echo"] .results-panel .result-metric-value {
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-mixed"] .results-panel .result-metric-value strong,
body[data-source="mtg"] .results-panel .result-metric-value strong,
body[data-source="mtg-sealed"] .results-panel .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel .result-metric-value strong {
  display: block;
  color: #ffffff !important;
  font-size: 1.08rem !important;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

body[data-source="mtg-mixed"] .results-panel td.up .result-metric-value strong,
body[data-source="mtg"] .results-panel td.up .result-metric-value strong,
body[data-source="mtg-sealed"] .results-panel td.up .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td.up .result-metric-value strong {
  color: var(--lime) !important;
  text-shadow: 0 0 12px rgba(199, 234, 70, 0.12);
}

body[data-source="mtg-mixed"] .results-panel td.down .result-metric-value strong,
body[data-source="mtg"] .results-panel td.down .result-metric-value strong,
body[data-source="mtg-sealed"] .results-panel td.down .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td.down .result-metric-value strong {
  color: #ff6b6b !important;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"],
body[data-source="mtg"] .results-panel td[data-label="Change"],
body[data-source="mtg-sealed"] .results-panel td[data-label="Change"],
body[data-source="mtg-echo"] .results-panel td[data-label="Change"],
body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"],
body[data-source="mtg"] .results-panel td[data-label="Percent"],
body[data-source="mtg-sealed"] .results-panel td[data-label="Percent"],
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] {
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%) !important;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"] .result-metric-label,
body[data-source="mtg"] .results-panel td[data-label="Change"] .result-metric-label,
body[data-source="mtg-sealed"] .results-panel td[data-label="Change"] .result-metric-label,
body[data-source="mtg-echo"] .results-panel td[data-label="Change"] .result-metric-label,
body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"] .result-metric-label,
body[data-source="mtg"] .results-panel td[data-label="Percent"] .result-metric-label,
body[data-source="mtg-sealed"] .results-panel td[data-label="Percent"] .result-metric-label,
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] .result-metric-label {
  color: rgba(10, 18, 12, 0.82) !important;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"] .result-metric-value,
body[data-source="mtg"] .results-panel td[data-label="Change"] .result-metric-value,
body[data-source="mtg-echo"] .results-panel td[data-label="Change"] .result-metric-value,
body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"] .result-metric-value,
body[data-source="mtg"] .results-panel td[data-label="Percent"] .result-metric-value,
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] .result-metric-value {
  color: #ffffff !important;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td[data-label="Change"] .result-metric-value strong,
body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"] .result-metric-value strong,
body[data-source="mtg"] .results-panel td[data-label="Percent"] .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] .result-metric-value strong {
  color: #ffffff !important;
  text-shadow: none !important;
}

body[data-source="mtg-mixed"] .results-panel .metric-arrow,
body[data-source="mtg"] .results-panel .metric-arrow,
body[data-source="mtg-echo"] .results-panel .metric-arrow {
  display: inline-block;
  margin-right: 0.34rem;
  animation: metricArrowFloat 2.2s ease-in-out infinite;
  will-change: transform;
}

body[data-source="mtg-mixed"] .summary-box,
body[data-source="mtg-mixed"] .watchlist-panel {
  color: rgba(255, 255, 255, 0.9);
}

body[data-source="mtg-mixed"] .panel:has(> .summary-box),
body[data-source="mtg-mixed"] .watchlist-panel {
  position: relative;
  background: linear-gradient(180deg, #14191b 0%, #0f1315 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.18) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg-mixed"] .panel:has(> .summary-box) .panel-header,
body[data-source="mtg-mixed"] .watchlist-panel .panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-source="mtg-mixed"] .panel:has(> .summary-box) .panel-header h2,
body[data-source="mtg-mixed"] .watchlist-panel .panel-header h2,
body[data-source="mtg-mixed"] .watchlist-panel .panel-header p,
body[data-source="mtg-mixed"] .panel:has(> .summary-box) .panel-header p {
  color: #ffffff !important;
}

body[data-source="mtg-mixed"] .summary-collapsible,
body[data-source="mtg-mixed"] .summary-details,
body[data-source="mtg-mixed"] .summary-toggle,
body[data-source="mtg-mixed"] .summary-toggle-body {
  background: linear-gradient(180deg, #14191b 0%, #0f1315 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg-mixed"] .summary-details {
  border: 1px solid rgba(199, 234, 70, 0.18) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
}

body[data-source="mtg-mixed"] .summary-toggle {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-source="mtg-mixed"] .summary-toggle,
body[data-source="mtg-mixed"] .summary-toggle strong,
body[data-source="mtg-mixed"] .summary-toggle-body,
body[data-source="mtg-mixed"] .summary-toggle-body p,
body[data-source="mtg-mixed"] .summary-toggle-body a {
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg-mixed"] .summary-toggle::after {
  color: rgba(199, 234, 70, 0.92) !important;
}

body[data-source="mtg-mixed"] .summary-toggle-body .panel-refresh-note,
body[data-source="mtg-mixed"] .summary-toggle-body .small,
body[data-source="mtg-mixed"] .summary-toggle-body .summary-warning {
  color: rgba(255, 255, 255, 0.72) !important;
}

body[data-source="mtg-mixed"] .summary-toggle-body a:hover,
body[data-source="mtg-mixed"] .summary-toggle-body a:focus-visible {
  color: var(--lime) !important;
}

body[data-source="mtg-mixed"] .summary-box .summary-grid > div,
body[data-source="mtg-mixed"] .watch-card {
  position: relative;
  background: linear-gradient(180deg, #1a2022 0%, #13181a 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.14) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg-mixed"] .summary-box .summary-grid > div::after,
body[data-source="mtg-mixed"] .watch-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}

body[data-source="mtg-mixed"] .summary-box .summary-grid strong,
body[data-source="mtg-mixed"] .watch-card .watch-card-head h3,
body[data-source="mtg-mixed"] .watchlist-details summary,
body[data-source="mtg-mixed"] .watchlist-meta strong {
  color: rgba(199, 234, 70, 0.95) !important;
}

body[data-source="mtg-mixed"] .summary-box .summary-grid p,
body[data-source="mtg-mixed"] .watch-card p,
body[data-source="mtg-mixed"] .watch-card a,
body[data-source="mtg-mixed"] .watchlist-meta span,
body[data-source="mtg-mixed"] .watchlist-details p,
body[data-source="mtg-mixed"] .watchlist-details a,
body[data-source="mtg-mixed"] .watchlist-diagnostics,
body[data-source="mtg-mixed"] .source-diagnostic {
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg-mixed"] .watchlist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-source="mtg-mixed"] .watchlist-meta span {
  border-color: rgba(199, 234, 70, 0.12) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

body[data-source="mtg-mixed"] .watch-card .watch-card-head span {
  background: rgba(199, 234, 70, 0.16) !important;
  color: rgba(199, 234, 70, 0.96) !important;
  border: 1px solid rgba(199, 234, 70, 0.22);
}

body[data-source="mtg-mixed"] .watch-card {
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
}

body[data-source="mtg-mixed"] .watch-card h3 {
  margin: 0;
  color: #ffffff !important;
}

body[data-source="mtg-mixed"] .watch-card p {
  margin: 10px 0 0;
  line-height: 1.45;
}

body[data-source="mtg-mixed"] .watch-card .small {
  color: rgba(255, 255, 255, 0.68) !important;
}

body[data-source="mtg-mixed"] .watch-card .affiliate-stack {
  margin-top: 14px;
}

body[data-source="mtg-mixed"] .watchlist-details summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(199, 234, 70, 0.14);
}

body[data-source="mtg-mixed"] .watchlist-details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body[data-source="mtg-mixed"] .watchlist-details .watchlist-explainer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(199, 234, 70, 0.12);
  border-top: 0;
}

body[data-source="mtg-mixed"] .watchlist-details,
body[data-source="mtg-mixed"] .watchlist-details .watchlist-explainer,
body[data-source="mtg-mixed"] .watchlist-details .watchlist-source-note,
body[data-source="mtg-mixed"] .watchlist-details .source-diagnostic,
body[data-source="mtg-mixed"] .watchlist-details .source-diagnostic span,
body[data-source="mtg-mixed"] .watchlist-details .source-diagnostic strong {
  color: rgba(255, 255, 255, 0.88) !important;
}

body[data-source="mtg-mixed"] .watchlist-details .watchlist-source-note {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(199, 234, 70, 0.12) !important;
}

body[data-source="mtg-mixed"] .watchlist-details .source-diagnostic {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)) !important;
  border: 1px solid rgba(199, 234, 70, 0.1) !important;
  padding: 10px 12px;
  border-radius: 14px;
}

body[data-source="mtg-mixed"] .summary-grid > div {
  border-radius: 16px !important;
  padding: 16px !important;
}

body[data-source="mtg-mixed"] .summary-box .summary-grid strong {
  color: rgba(199, 234, 70, 0.95) !important;
}

body[data-source="mtg-mixed"] .summary-box .summary-grid p {
  color: rgba(255, 255, 255, 0.92) !important;
}

body[data-source="mtg-mixed"] .watch-card .shop-button {
  border-color: rgba(199, 234, 70, 0.2) !important;
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%) !important;
  color: #09140d !important;
  box-shadow: none !important;
}

body[data-source="mtg-mixed"] .watch-card .shop-button:hover,
body[data-source="mtg-mixed"] .watch-card .shop-button:focus-visible {
  border-color: rgba(199, 234, 70, 0.28) !important;
  background: linear-gradient(180deg, var(--launch-success-light) 0%, var(--launch-success-light-end) 100%) !important;
  color: #09140d !important;
}

body[data-source="mtg-mixed"] .watchlist-details,
body[data-source="mtg-mixed"] .watchlist-details[open],
body[data-source="mtg-mixed"] .watchlist-details[open] .watchlist-explainer,
body[data-source="mtg-mixed"] .watchlist-details[open] .watchlist-source-note,
body[data-source="mtg-mixed"] .watchlist-details[open] .source-diagnostic {
  background: linear-gradient(180deg, #14191b 0%, #0f1315 100%) !important;
}

@keyframes metricArrowFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

body[data-source="mtg-mixed"] .results-panel .price-compare,
body[data-source="mtg"] .results-panel .price-compare,
body[data-source="mtg-echo"] .results-panel .price-compare {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-source="mtg-mixed"] .results-panel .result-shop-wrap,
body[data-source="mtg"] .results-panel .result-shop-wrap,
body[data-source="mtg-echo"] .results-panel .result-shop-wrap {
  min-height: 0 !important;
}

body[data-source="mtg-mixed"] .results-panel td.metric-set,
body[data-source="mtg"] .results-panel td.metric-set,
body[data-source="mtg-echo"] .results-panel td.metric-set {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

body[data-source="mtg-mixed"] .results-panel td.metric-set .result-metric,
body[data-source="mtg"] .results-panel td.metric-set .result-metric,
body[data-source="mtg-echo"] .results-panel td.metric-set .result-metric {
  align-items: flex-start;
}

body[data-source="mtg-mixed"] .results-panel td.metric-set .result-metric-value strong,
body[data-source="mtg"] .results-panel td.metric-set .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td.metric-set .result-metric-value strong {
  white-space: nowrap;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Source"],
body[data-source="mtg"] .results-panel td[data-label="Source"],
body[data-source="mtg-echo"] .results-panel td[data-label="Source"] {
  width: 130px;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Change"],
body[data-source="mtg"] .results-panel td[data-label="Change"],
body[data-source="mtg-echo"] .results-panel td[data-label="Change"] {
  width: 118px;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Current Price"],
body[data-source="mtg"] .results-panel td[data-label="Current Price"],
body[data-source="mtg-echo"] .results-panel td[data-label="Current Price"] {
  width: 180px;
}

body[data-source="mtg-mixed"] .results-panel td[data-label="Percent"],
body[data-source="mtg"] .results-panel td[data-label="Percent"],
body[data-source="mtg-echo"] .results-panel td[data-label="Percent"] {
  width: 94px;
}

body[data-source="mtg-mixed"] .results-panel .result-metric,
body[data-source="mtg"] .results-panel .result-metric,
body[data-source="mtg-echo"] .results-panel .result-metric,
body[data-app-mode="echo-sets"] .result-metric {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-source="mtg-mixed"] .results-panel .result-metric-value strong,
body[data-source="mtg"] .results-panel .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel .result-metric-value strong,
body[data-app-mode="echo-sets"] .result-metric-value strong {
  font-size: 1.08rem;
}

body[data-source="mtg-mixed"] .results-panel td.up .result-metric-value strong,
body[data-source="mtg"] .results-panel td.up .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td.up .result-metric-value strong,
body[data-app-mode="echo-sets"] td.up .result-metric-value strong {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(199, 234, 70, 0.12);
}

body[data-source="mtg-mixed"] .results-panel td.down .result-metric-value strong,
body[data-source="mtg"] .results-panel td.down .result-metric-value strong,
body[data-source="mtg-echo"] .results-panel td.down .result-metric-value strong,
body[data-app-mode="echo-sets"] td.down .result-metric-value strong {
  color: #ff6b6b;
}

body[data-source="mtg-mixed"] .results-panel .result-shop-wrap,
body[data-source="mtg"] .results-panel .result-shop-wrap,
body[data-source="mtg-echo"] .results-panel .result-shop-wrap,
body[data-app-mode="echo-sets"] .result-shop-wrap {
  min-height: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--launch-bg);
  overflow-x: hidden;
}

body[data-source="mtg-sealed"] .results-panel tbody td,
body[data-source="mtg-sealed"] .results-panel tbody td p,
body[data-source="mtg-sealed"] .results-panel tbody td a,
body[data-source="mtg-sealed"] .results-panel tbody td strong {
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-sealed"] .results-panel tbody td .small {
  color: rgba(255, 255, 255, 0.66);
}

body[data-source="mtg-sealed"] .results-panel tbody td {
  background: linear-gradient(180deg, #181d1f 0%, #121618 100%) !important;
}

body[data-source="mtg-sealed"] .results-panel tbody td:not(:first-child):not(:last-child) {
  border-left: 1px solid rgba(199, 234, 70, 0.18) !important;
}

body[data-source="mtg-sealed"] .results-panel .result-card-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

body[data-source="mtg-sealed"] .results-panel .result-card-copy strong {
  font-size: 1.14rem !important;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

body[data-source="mtg-sealed"] .results-panel .result-metric,
body[data-source="mtg-sealed"] .results-panel .result-shop-wrap {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-source="mtg-sealed"] .results-panel .result-metric-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(199, 234, 70, 0.96) !important;
  font-size: 0.7rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-source="mtg-sealed"] .results-panel .result-metric-value {
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-sealed"] .results-panel .result-metric-value strong {
  font-size: 1.08rem !important;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

body[data-source="mtg-sealed"] .results-panel .price-compare {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-source="mtg-sealed"] .results-panel td.metric-set {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

body[data-source="mtg-sealed"] .results-panel td.metric-set .result-metric-value strong {
  white-space: nowrap;
}

body[data-source="mtg-sealed"] .results-panel td[data-label="Source"] {
  width: 130px;
}

body[data-source="mtg-sealed"] .results-panel td[data-label="Change"] {
  width: 118px;
}

body[data-source="mtg-sealed"] .results-panel td[data-label="Current Price"] {
  width: 180px;
}

body[data-source="mtg-sealed"] .results-panel td[data-label="Percent"] {
  width: 94px;
}

body[data-source="mtg-sealed"] .results-panel .shop-button {
  border-color: rgba(199, 234, 70, 0.2) !important;
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%) !important;
  color: #09140d !important;
  box-shadow: none !important;
}

body[data-source="mtg-sealed"] .results-panel .shop-button:hover,
body[data-source="mtg-sealed"] .results-panel .shop-button:focus-visible {
  border-color: rgba(199, 234, 70, 0.28) !important;
  background: linear-gradient(180deg, var(--launch-success-light) 0%, var(--launch-success-light-end) 100%) !important;
  color: #09140d !important;
}

body[data-app-mode="movers"] .results-panel td.up[data-label="Change"],
body[data-app-mode="movers"] .results-panel td.up[data-label="Percent"] {
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%) !important;
}

body[data-app-mode="movers"] .results-panel td.up[data-label="Change"] .result-metric-label,
body[data-app-mode="movers"] .results-panel td.up[data-label="Percent"] .result-metric-label {
  color: rgba(10, 18, 12, 0.82) !important;
}

body[data-app-mode="movers"] .results-panel td.up[data-label="Change"] .result-metric-value,
body[data-app-mode="movers"] .results-panel td.up[data-label="Percent"] .result-metric-value,
body[data-app-mode="movers"] .results-panel td.up[data-label="Change"] .result-metric-value strong,
body[data-app-mode="movers"] .results-panel td.up[data-label="Percent"] .result-metric-value strong {
  color: #ffffff !important;
  text-shadow: none !important;
}

body[data-app-mode="movers"] .results-panel td.down[data-label="Change"],
body[data-app-mode="movers"] .results-panel td.down[data-label="Percent"] {
  background: linear-gradient(180deg, #d96464 0%, #bc4747 100%) !important;
}

body[data-app-mode="movers"] .results-panel td.down[data-label="Change"] .result-metric-label,
body[data-app-mode="movers"] .results-panel td.down[data-label="Percent"] .result-metric-label {
  color: rgba(26, 10, 10, 0.84) !important;
}

body[data-app-mode="movers"] .results-panel td.down[data-label="Change"] .result-metric-value,
body[data-app-mode="movers"] .results-panel td.down[data-label="Percent"] .result-metric-value,
body[data-app-mode="movers"] .results-panel td.down[data-label="Change"] .result-metric-value strong,
body[data-app-mode="movers"] .results-panel td.down[data-label="Percent"] .result-metric-value strong {
  color: #ffffff !important;
  text-shadow: none !important;
}

body[data-source="mtg"] .hero,
body[data-source="mtg-sealed"] .hero,
body[data-source="mtg-tournaments"] .hero,
body[data-source="mtg"] .status-card,
body[data-source="mtg-sealed"] .status-card,
body[data-source="mtg-tournaments"] .status-card,
body[data-source="mtg-sealed"] .results-panel,
body[data-source="mtg"] .controls,
body[data-source="mtg-sealed"] .controls,
body[data-source="mtg-tournaments"] .controls,
body[data-source="mtg"] .panel:has(> .summary-box),
body[data-source="mtg-sealed"] .panel:has(> .summary-box),
body[data-source="mtg-tournaments"] .panel:has(> .summary-box) {
  background: linear-gradient(180deg, #14191b 0%, #0f1315 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.18) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg"] .hero::before,
body[data-source="mtg-sealed"] .hero::before,
body[data-source="mtg-tournaments"] .hero::before,
body[data-source="mtg"] .status-card::before,
body[data-source="mtg-sealed"] .status-card::before,
body[data-source="mtg-tournaments"] .status-card::before,
body[data-source="mtg-sealed"] .results-panel::before,
body[data-source="mtg"] .controls::before,
body[data-source="mtg-sealed"] .controls::before,
body[data-source="mtg-tournaments"] .controls::before,
body[data-source="mtg"] .panel:has(> .summary-box)::before,
body[data-source="mtg-sealed"] .panel:has(> .summary-box)::before,
body[data-source="mtg-tournaments"] .panel:has(> .summary-box)::before {
  content: none !important;
}

body[data-source="mtg"] .hero h1,
body[data-source="mtg-sealed"] .hero h1,
body[data-source="mtg-tournaments"] .hero h1,
body[data-source="mtg"] .status-card h2,
body[data-source="mtg-sealed"] .status-card h2,
body[data-source="mtg-tournaments"] .status-card h2,
body[data-source="mtg"] .panel-header h2,
body[data-source="mtg-sealed"] .panel-header h2,
body[data-source="mtg-tournaments"] .panel-header h2 {
  color: #ffffff !important;
}

body[data-source="mtg"] .hero .intro,
body[data-source="mtg-sealed"] .hero .intro,
body[data-source="mtg-tournaments"] .hero .intro,
body[data-source="mtg"] .status-card p,
body[data-source="mtg-sealed"] .status-card p,
body[data-source="mtg-tournaments"] .status-card p,
body[data-source="mtg"] .panel-header p,
body[data-source="mtg-sealed"] .panel-header p,
body[data-source="mtg-tournaments"] .panel-header p,
body[data-source="mtg"] .controls label span,
body[data-source="mtg-sealed"] .controls label span,
body[data-source="mtg-tournaments"] .controls label span,
body[data-source="mtg"] .summary-box,
body[data-source="mtg-sealed"] .summary-box,
body[data-source="mtg-tournaments"] .summary-box,
body[data-source="mtg"] .summary-box a,
body[data-source="mtg-sealed"] .summary-box a,
body[data-source="mtg-tournaments"] .summary-box a {
  color: rgba(255, 255, 255, 0.88) !important;
}

body[data-source="mtg"] .controls .panel-header,
body[data-source="mtg-sealed"] .controls .panel-header,
body[data-source="mtg-tournaments"] .controls .panel-header,
body[data-source="mtg-sealed"] .results-panel .panel-header,
body[data-source="mtg"] .panel:has(> .summary-box) .panel-header,
body[data-source="mtg-sealed"] .panel:has(> .summary-box) .panel-header,
body[data-source="mtg-tournaments"] .panel:has(> .summary-box) .panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-source="mtg"] .summary-collapsible,
body[data-source="mtg-sealed"] .summary-collapsible,
body[data-source="mtg-tournaments"] .summary-collapsible,
body[data-source="mtg"] .summary-details,
body[data-source="mtg-sealed"] .summary-details,
body[data-source="mtg-tournaments"] .summary-details,
body[data-source="mtg"] .summary-toggle,
body[data-source="mtg-sealed"] .summary-toggle,
body[data-source="mtg-tournaments"] .summary-toggle,
body[data-source="mtg"] .summary-toggle-body,
body[data-source="mtg-sealed"] .summary-toggle-body,
body[data-source="mtg-tournaments"] .summary-toggle-body {
  background: linear-gradient(180deg, #14191b 0%, #0f1315 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg"] .summary-details,
body[data-source="mtg-sealed"] .summary-details,
body[data-source="mtg-tournaments"] .summary-details {
  border: 1px solid rgba(199, 234, 70, 0.18) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
}

body[data-source="mtg"] .summary-toggle,
body[data-source="mtg-sealed"] .summary-toggle,
body[data-source="mtg-tournaments"] .summary-toggle {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-source="mtg"] .summary-toggle::after,
body[data-source="mtg-sealed"] .summary-toggle::after,
body[data-source="mtg-tournaments"] .summary-toggle::after {
  color: rgba(199, 234, 70, 0.92) !important;
}

body[data-source="mtg"] .summary-grid > div,
body[data-source="mtg-sealed"] .summary-grid > div,
body[data-source="mtg-tournaments"] .summary-grid > div {
  position: relative;
  background: linear-gradient(180deg, #1a2022 0%, #13181a 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.14) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-source="mtg"] .summary-grid > div::after,
body[data-source="mtg-sealed"] .summary-grid > div::after,
body[data-source="mtg-tournaments"] .summary-grid > div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}

body[data-source="mtg"] .summary-grid strong,
body[data-source="mtg-sealed"] .summary-grid strong,
body[data-source="mtg-tournaments"] .summary-grid strong {
  color: rgba(199, 234, 70, 0.95) !important;
}

body[data-source="mtg"] .summary-grid p,
body[data-source="mtg-sealed"] .summary-grid p,
body[data-source="mtg-tournaments"] .summary-grid p {
  color: rgba(255, 255, 255, 0.92) !important;
}

body[data-app-mode="movers"],
body[data-app-mode="pokemon-daily"],
body[data-app-mode="echo-sets"] {
  position: relative;
  background: var(--launch-brand);
}

body[data-source="mtg-card"] {
  --top-band-height: 560px;
}

body[data-source="mtg-card"] {
  background:
    radial-gradient(circle at top right, rgba(199, 234, 70, 0.08), transparent 24%),
    linear-gradient(180deg, #050505 0, #050505 var(--top-band-height), var(--launch-brand) var(--top-band-height), var(--launch-brand) 100%);
}

body[data-app-mode="movers"]::before,
body[data-app-mode="pokemon-daily"]::before,
body[data-app-mode="echo-sets"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-band-height, 680px);
  background: #050505;
  z-index: 0;
  pointer-events: none;
}

body[data-app-mode="hub"] {
  background: var(--launch-brand);
}

body[data-app-mode="hub"] .hub-top-band {
  margin: 0 calc(50% - 50vw) 34px;
  padding: 0 0 34px;
  background: #050505;
}

body[data-app-mode="movers"] .movers-hero-band {
  margin: 0 calc(50% - 50vw) 16px;
  padding: 0 0 12px;
  background: #050505;
}

body[data-source="mtg-sealed"] .movers-hero-band {
  background: transparent;
}

body[data-app-mode="hub"] .top-nav {
  margin: 0 calc(50% - 50vw);
  border-bottom: 0;
}

body[data-app-mode="echo-sets"] {
  position: relative;
  background: var(--launch-brand);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 48px;
}

body[data-app-mode="movers"] .shell,
body[data-app-mode="pokemon-daily"] .shell,
body[data-app-mode="echo-sets"] .shell {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

body[data-source="mtg-card"] .shell {
  margin-top: 10px;
}

.top-nav {
  position: relative;
  z-index: 50;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  box-sizing: border-box;
  margin: -18px calc(50% - 50vw) 12px;
  padding: 18px 24px 16px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #050505;
  color: #ffffff;
  box-shadow: 0 20px 46px rgba(2, 6, 4, 0.24);
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #ffffff;
}

.brand::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: brandWiggle 1s ease-out 0.2s both;
}

.brand-home {
  gap: 12px;
}

.brand-home::before {
  content: none;
}

.top-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-search {
  position: relative;
  flex: 1 1 380px;
  max-width: 460px;
  min-width: 220px;
  margin-left: auto;
}

.nav-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-search-box {
  position: relative;
}

.nav-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.top-nav .nav-search-input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 16px 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 650;
  outline: none;
  box-shadow: none;
}

.top-nav .nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.top-nav .nav-search-input:focus {
  border-color: rgba(199, 234, 70, 0.52);
  box-shadow: 0 0 0 4px rgba(199, 234, 70, 0.12);
}

body[data-app-mode="movers"] .top-nav .nav-search-input,
body[data-app-mode="pokemon-daily"] .top-nav .nav-search-input,
body[data-app-mode="echo-sets"] .top-nav .nav-search-input,
body[data-app-mode="hub"] .top-nav .nav-search-input,
body[data-source="mtg-card"] .top-nav .nav-search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body[data-app-mode="movers"] .top-nav .nav-search-input:focus,
body[data-app-mode="pokemon-daily"] .top-nav .nav-search-input:focus,
body[data-app-mode="echo-sets"] .top-nav .nav-search-input:focus,
body[data-app-mode="hub"] .top-nav .nav-search-input:focus,
body[data-source="mtg-card"] .top-nav .nav-search-input:focus {
  border-color: rgba(199, 234, 70, 0.52);
  outline: 0;
}

.market-ticker {
  width: 100vw;
  box-sizing: border-box;
  margin: -14px calc(50% - 50vw) 22px;
  padding: 10px 24px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #ffffff;
  overflow: hidden;
}

.market-ticker-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.market-ticker-label {
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-ticker-viewport {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.market-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  padding-right: 18px;
  animation: tickerScroll 40s linear infinite;
}

.market-ticker:hover .market-ticker-track {
  animation-play-state: paused;
}

.market-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.market-ticker-item.is-placeholder {
  border-right: 0;
  opacity: 0.8;
}

.market-ticker-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.market-ticker-price {
  color: rgba(255, 255, 255, 0.82);
}

.market-ticker-change {
  font-weight: 850;
}

.market-ticker-change.up {
  color: var(--lime);
}

.market-ticker-change.down {
  color: var(--danger);
}

.nav-dropdowns {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-dropdown {
  position: relative;
  z-index: 60;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 18px;
  min-width: 120px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown[open] summary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(0, 168, 107, 0.3);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  z-index: 1000;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(7, 27, 24, 0.1);
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(2, 12, 8, 0.22);
}

.nav-link {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(10, 168, 107, 0.25);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group + .nav-group {
  margin-top: 2px;
}

.nav-group-label {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px 4px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-group-label::-webkit-details-marker {
  display: none;
}

.nav-submenu-toggle .nav-submenu {
  display: none;
}

.nav-submenu-toggle[open] .nav-submenu {
  display: flex;
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.portal-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.portal-card {
  display: block;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 168, 107, 0.35);
  box-shadow: 0 18px 44px rgba(10, 168, 107, 0.1);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 0;
}

body[data-app-mode="movers"] .hero,
body[data-app-mode="pokemon-daily"] .hero,
body[data-app-mode="echo-sets"] .hero {
  display: block;
  margin-bottom: 24px;
  padding: 26px 0 8px;
}

body[data-source="mtg-mixed"] .hero.hero-with-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas:
    "copy art"
    "status status";
  gap: 22px;
  align-items: center;
  margin: 0 calc(50% - 50vw) 24px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2 + 16px)) 32px;
  background: #050505;
}

body[data-app-mode="movers"] .hero::before,
body[data-app-mode="pokemon-daily"] .hero::before,
body[data-app-mode="echo-sets"] .hero::before {
  content: none;
}

body[data-app-mode="movers"] .hero > div:first-child,
body[data-app-mode="pokemon-daily"] .hero > div:first-child,
body[data-app-mode="echo-sets"] .hero > div:first-child {
  padding: 0;
}

body[data-source="mtg-mixed"] .hero.hero-with-art .hero-copy {
  grid-area: copy;
  padding: 0;
  max-width: 860px;
}

body[data-app-mode="movers"] .hero h1,
body[data-app-mode="pokemon-daily"] .hero h1,
body[data-app-mode="echo-sets"] .hero h1 {
  max-width: 760px;
}

body[data-source="mtg-mixed"] .hero.hero-with-art h1 {
  max-width: 700px;
  font-size: clamp(3.35rem, 6vw, 5rem);
}

body[data-source="mtg-mixed"] .hero.hero-with-art .intro {
  max-width: 680px;
  font-size: 1.12rem;
  line-height: 1.55;
}

body[data-app-mode="movers"] .hero .eyebrow,
body[data-app-mode="pokemon-daily"] .hero .eyebrow,
body[data-app-mode="echo-sets"] .hero .eyebrow {
  color: var(--lime);
}

body[data-app-mode="movers"] .hero-text-only,
body[data-app-mode="pokemon-daily"] .hero-text-only,
body[data-app-mode="echo-sets"] .hero-text-only {
  max-width: 900px;
}

body[data-source="mtg-mixed"] .hero.hero-with-art .hero-float-logo-wrap {
  grid-area: art;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 340px;
}

body[data-source="mtg-mixed"] .hero.hero-with-art .hero-float-logo {
  display: block;
  width: min(100%, 400px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 58%;
  animation: heroLogoWiggle 1.35s ease-out 0.25s both, heroFloatLogoDrift 4.8s ease-in-out 1.6s infinite;
  transition: transform 180ms ease, filter 180ms ease;
}

body[data-source="mtg-mixed"] .hero.hero-with-art .hero-float-logo:hover,
body[data-source="mtg-mixed"] .hero.hero-with-art .hero-float-logo:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

body[data-source="mtg-mixed"] .hero.hero-with-art .status-card {
  grid-area: status;
  max-width: 520px;
}

body[data-app-mode="movers"] .hero.hero-home-like {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 42px max(24px, calc((100vw - 1180px) / 2 + 16px)) 24px;
  background: transparent;
}

body[data-source="mtg-sealed"] .hero.hero-home-like {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-source="mtg-tournaments"] .hero.hero-single-column {
  display: block;
  margin: 0 0 14px;
  padding: 26px 0 8px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-source="mtg-tournaments"] .hero.hero-single-column::before {
  content: none !important;
}

body[data-source="mtg-tournaments"] .hero.hero-single-column > div:first-child {
  padding: 0;
  max-width: 860px;
}

body[data-source="mtg-tournaments"] .hero.hero-single-column h1 {
  max-width: 860px;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
}

body[data-source="mtg-tournaments"] .hero.hero-single-column .intro {
  max-width: 760px;
  font-size: 1.12rem;
  line-height: 1.55;
}

body[data-app-mode="echo-sets"] .hero.hero-single-column {
  display: block;
  margin: 0 0 14px;
  padding: 26px 0 8px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-app-mode="echo-sets"] .hero.hero-single-column::before {
  content: none !important;
}

body[data-app-mode="echo-sets"] .hero.hero-single-column > div:first-child {
  padding: 0;
  max-width: 860px;
}

body[data-app-mode="echo-sets"] .hero.hero-single-column h1 {
  max-width: 860px;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
}

body[data-app-mode="echo-sets"] .hero.hero-single-column .intro {
  max-width: 760px;
  font-size: 1.12rem;
  line-height: 1.55;
}

body[data-app-mode="movers"] .hero.hero-home-like::before {
  content: none;
}

body[data-app-mode="movers"] .hero.hero-home-like > div:first-child {
  padding: 0;
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-copy {
  max-width: 700px;
  padding: 0;
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-copy h1 {
  max-width: 700px;
  font-size: clamp(3.35rem, 6vw, 5rem);
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-copy .eyebrow {
  color: var(--lime);
  font-size: 0.82rem;
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-copy .intro {
  max-width: 680px;
  font-size: 1.12rem;
  line-height: 1.55;
}

body[data-app-mode="movers"] .movers-hero-band {
  margin-bottom: 22px;
  padding-bottom: 10px;
}

body[data-app-mode="movers"] .hero.hero-home-like {
  padding-block: 28px 18px;
}

body[data-app-mode="movers"] .hero-inline-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

body[data-app-mode="movers"] .hero-inline-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
}

body[data-app-mode="movers"] .hero-inline-filter span {
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-app-mode="movers"] .hero-inline-filter select {
  min-height: 44px;
  border: 1px solid rgba(196, 255, 96, 0.32);
  border-radius: 12px;
  background: rgba(19, 22, 21, 0.94);
  color: #f6f8f4;
  padding: 0 14px;
  font-size: 0.98rem;
  font-weight: 700;
}

body[data-app-mode="movers"] .hero-inline-filter select:disabled {
  color: rgba(246, 248, 244, 0.52);
}

.results-inline-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.results-inline-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.results-inline-filter span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-inline-filter select {
  min-height: 42px;
  border: 1px solid rgba(196, 255, 96, 0.28);
  border-radius: 12px;
  background: #f4f5ef;
  color: #101413;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.results-inline-filter select:disabled {
  color: rgba(16, 20, 19, 0.5);
}

.results-related-views {
  margin-top: 16px;
}

.results-related-views h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 340px;
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-logo {
  display: block;
  width: min(100%, 360px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 58%;
  animation: heroFloatLogoDrift 4.3s ease-in-out infinite;
}

body[data-app-mode="movers"] .hero.hero-home-like .hero-home-logo:hover,
body[data-app-mode="movers"] .hero.hero-home-like .hero-home-logo:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

body[data-app-mode="movers"] .movers-hero-band .hero-status-card {
  max-width: 520px;
  margin: 0 max(24px, calc((100vw - 1180px) / 2 + 16px));
}

body[data-app-mode="movers"] .page-source-panel,
body[data-app-mode="pokemon-daily"] .page-source-panel,
body[data-app-mode="echo-sets"] .page-source-panel {
  margin-top: 28px;
}

body[data-app-mode="movers"] .top-band-controls,
body[data-app-mode="pokemon-daily"] .top-band-controls,
body[data-app-mode="echo-sets"] .top-band-controls {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 42px;
  padding-bottom: 26px !important;
}

body[data-app-mode="movers"] .top-band-controls .panel-header,
body[data-app-mode="pokemon-daily"] .top-band-controls .panel-header,
body[data-app-mode="echo-sets"] .top-band-controls .panel-header {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

body[data-app-mode="movers"] .top-band-controls .panel-header h2,
body[data-app-mode="pokemon-daily"] .top-band-controls .panel-header h2,
body[data-app-mode="echo-sets"] .top-band-controls .panel-header h2 {
  color: #ffffff;
}

body[data-app-mode="movers"] .top-band-controls label span,
body[data-app-mode="pokemon-daily"] .top-band-controls label span,
body[data-app-mode="echo-sets"] .top-band-controls label span {
  color: rgba(255, 255, 255, 0.86);
}

body[data-app-mode="movers"] .top-band-controls .actions,
body[data-app-mode="pokemon-daily"] .top-band-controls .actions,
body[data-app-mode="echo-sets"] .top-band-controls .actions {
  margin-top: 18px;
}

body[data-app-mode="movers"] .summary-collapsible,
body[data-app-mode="pokemon-daily"] .summary-collapsible,
body[data-app-mode="echo-sets"] .summary-collapsible {
  padding: 0;
  margin-top: 28px;
}

body[data-app-mode="movers"] .summary-details,
body[data-app-mode="pokemon-daily"] .summary-details,
body[data-app-mode="echo-sets"] .summary-details {
  display: block;
}

body[data-app-mode="movers"] .summary-toggle,
body[data-app-mode="pokemon-daily"] .summary-toggle,
body[data-app-mode="echo-sets"] .summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 850;
  color: #08221a;
}

body[data-app-mode="movers"] .summary-toggle::-webkit-details-marker,
body[data-app-mode="pokemon-daily"] .summary-toggle::-webkit-details-marker,
body[data-app-mode="echo-sets"] .summary-toggle::-webkit-details-marker {
  display: none;
}

body[data-app-mode="movers"] .summary-toggle::after,
body[data-app-mode="pokemon-daily"] .summary-toggle::after,
body[data-app-mode="echo-sets"] .summary-toggle::after {
  content: "▾";
  font-size: 1rem;
  line-height: 1;
  color: #08221a;
  transition: transform 140ms ease;
}

body[data-app-mode="movers"] .summary-details[open] .summary-toggle::after,
body[data-app-mode="pokemon-daily"] .summary-details[open] .summary-toggle::after,
body[data-app-mode="echo-sets"] .summary-details[open] .summary-toggle::after {
  transform: rotate(180deg);
}

body[data-app-mode="movers"] .summary-toggle-body,
body[data-app-mode="pokemon-daily"] .summary-toggle-body,
body[data-app-mode="echo-sets"] .summary-toggle-body {
  padding: 0 22px 22px;
}

body[data-app-mode="movers"] .page-source-panel .panel-header,
body[data-app-mode="pokemon-daily"] .page-source-panel .panel-header,
body[data-app-mode="echo-sets"] .page-source-panel .panel-header {
  margin: -22px -22px 0;
  padding: 18px 22px;
  border-bottom: 0;
  background: #050505;
}

body[data-app-mode="movers"] .page-source-panel .panel-header h2,
body[data-app-mode="pokemon-daily"] .page-source-panel .panel-header h2,
body[data-app-mode="echo-sets"] .page-source-panel .panel-header h2 {
  color: #ffffff;
}

body[data-app-mode="movers"] .page-source-body,
body[data-app-mode="pokemon-daily"] .page-source-body,
body[data-app-mode="echo-sets"] .page-source-body {
  padding-top: 18px;
}

body[data-app-mode="movers"] .page-source-body p,
body[data-app-mode="pokemon-daily"] .page-source-body p,
body[data-app-mode="echo-sets"] .page-source-body p {
  color: #152236;
}

body[data-app-mode="hub"] .shell {
  margin-top: 0;
}

body[data-app-mode="hub"] .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: center;
  margin: 0 0 28px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2 + 16px)) 32px;
  background: transparent;
}

body[data-app-mode="hub"] .hero::before {
  content: none;
}

body[data-app-mode="hub"] .hero-home-copy {
  max-width: 860px;
  padding: 0;
}

body[data-app-mode="hub"] .hero-home-copy h1 {
  max-width: 720px;
  font-size: clamp(3.35rem, 6vw, 5rem);
}

body[data-app-mode="hub"] .hero-home-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

body[data-app-mode="hub"] .hero-home-logo {
  display: block;
  width: min(100%, 360px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 58%;
  animation: heroLogoWiggle 1.35s ease-out 0.25s both;
}

body[data-app-mode="hub"] .hero-home-copy .eyebrow {
  font-size: 0.82rem;
}

body[data-app-mode="hub"] .hero-home-copy .intro {
  font-size: 1.12rem;
  line-height: 1.55;
}

body[data-app-mode="hub"] .mobile-home-feed {
  display: none;
}

body[data-app-mode="hub"] .mobile-home-ticker {
  overflow: hidden;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-app-mode="hub"] .mobile-home-ticker-label {
  display: none;
}

body[data-app-mode="hub"] .mobile-home-ticker-viewport {
  overflow: hidden;
}

body[data-app-mode="hub"] .mobile-home-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  padding-right: 16px;
  animation: tickerScroll 32s linear infinite;
}

body[data-app-mode="hub"] .mobile-home-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  white-space: nowrap;
}

body[data-app-mode="hub"] .mobile-home-ticker-item.is-placeholder {
  border-right: 0;
  opacity: 0.82;
}

body[data-app-mode="hub"] .mobile-home-ticker-name {
  font-weight: 800;
}

body[data-app-mode="hub"] .mobile-home-ticker-price {
  color: rgba(255, 255, 255, 0.78);
}

body[data-app-mode="hub"] .mobile-home-ticker-change {
  font-weight: 850;
}

body[data-app-mode="hub"] .mobile-home-ticker-change.up {
  color: var(--lime);
}

body[data-app-mode="hub"] .mobile-home-ticker-change.down {
  color: var(--danger);
}

body[data-app-mode="hub"] .mobile-home-mover-panel {
  position: relative;
  overflow: hidden;
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

body[data-app-mode="hub"] .mobile-home-mover-panel-spike {
  border-color: rgba(150, 237, 124, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(210, 241, 106, 0.24), transparent 38%),
    linear-gradient(160deg, rgba(82, 183, 109, 0.98) 0%, rgba(42, 112, 63, 0.98) 62%, rgba(20, 69, 36, 0.98) 100%);
}

body[data-app-mode="hub"] .mobile-home-mover-panel-drop {
  border-color: rgba(255, 150, 150, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 210, 210, 0.18), transparent 38%),
    linear-gradient(160deg, rgba(196, 74, 74, 0.98) 0%, rgba(140, 39, 39, 0.98) 62%, rgba(88, 18, 18, 0.98) 100%);
}

body[data-app-mode="hub"] .mobile-home-mover-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 14%, transparent 86%, rgba(255,255,255,0.05));
  pointer-events: none;
  z-index: -1;
}

body[data-app-mode="hub"] .mobile-home-mover-panel .eyebrow {
  margin-bottom: 12px;
  color: #ffffff;
  opacity: 0.98;
}

body[data-app-mode="hub"] .mobile-home-mover-card,
body[data-app-mode="hub"] .mobile-home-mover-main,
body[data-app-mode="hub"] .mobile-home-mover-copy,
body[data-app-mode="hub"] .mobile-home-mover-actions {
  display: flex;
}

body[data-app-mode="hub"] .mobile-home-mover-card {
  flex-direction: column;
  gap: 14px;
}

body[data-app-mode="hub"] .mobile-home-mover-main {
  gap: 14px;
  align-items: flex-start;
}

body[data-app-mode="hub"] .mobile-home-mover-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

body[data-app-mode="hub"] .mobile-home-mover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-app-mode="hub"] .mobile-home-mover-thumb.is-empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

body[data-app-mode="hub"] .mobile-home-mover-copy {
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
}

body[data-app-mode="hub"] .mobile-home-mover-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

body[data-app-mode="hub"] .mobile-home-mover-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-app-mode="hub"] .mobile-home-mover-metric {
  min-width: 0;
  padding: 10px 10px 11px;
  background: linear-gradient(180deg, rgba(6, 8, 7, 0.96), rgba(8, 10, 9, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-app-mode="hub"] .mobile-home-mover-metric span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-app-mode="hub"] .mobile-home-mover-metric strong {
  color: #ffffff;
  display: block;
  font-size: 1.06rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

body[data-app-mode="hub"] .mobile-home-mover-metric.up strong {
  color: var(--lime);
}

body[data-app-mode="hub"] .mobile-home-mover-metric.down strong {
  color: var(--danger);
}

body[data-app-mode="hub"] .mobile-home-mover-actions {
  justify-content: center;
}

body[data-app-mode="hub"] .mobile-home-mover-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 12px 18px;
  background: rgba(4, 5, 5, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

body[data-app-mode="hub"] .mobile-home-mover-cta:hover {
  background: rgba(8, 10, 10, 0.96);
}

body[data-app-mode="hub"] .mobile-home-mover-cta-up {
  border-color: rgba(199, 234, 70, 0.34);
}

body[data-app-mode="hub"] .mobile-home-mover-cta-down {
  border-color: rgba(231, 103, 103, 0.36);
}

body[data-app-mode="hub"] .panel,
body[data-app-mode="hub"] .status-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body[data-app-mode="hub"] .panel::before,
body[data-app-mode="hub"] .status-card::before {
  content: none;
}

body[data-app-mode="hub"] .panel {
  margin-bottom: 38px;
}

body[data-app-mode="hub"] .hub-pokemon-section,
body[data-app-mode="hub"] .hub-source-section {
  border-radius: 0;
  overflow: visible;
}

body[data-app-mode="hub"] .hub-top-band .panel {
  padding: 0 max(24px, calc((100vw - 1180px) / 2 + 16px));
}

body[data-app-mode="hub"] .hub-top-band .portal-card {
  background: #050505;
}

body[data-app-mode="hub"] .hub-top-band .portal-card::before,
body[data-app-mode="hub"] .hub-top-band .portal-card::after {
  content: none;
}

body[data-app-mode="hub"] .hub-top-band .portal-copy {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

body[data-app-mode="hub"] .hub-top-band .portal-upper,
body[data-app-mode="hub"] .hub-top-band .portal-lower {
  display: flex;
  flex-direction: column;
}

body[data-app-mode="hub"] .hub-top-band .portal-lower {
  padding-top: 22px;
  padding-right: 12px;
  margin-left: 0;
  width: 100%;
}

body[data-app-mode="hub"] .hub-top-band .portal-lower > p {
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.5;
}

body[data-app-mode="hub"] .hub-top-band .portal-cta {
  margin-top: 22px;
}

body[data-app-mode="hub"] .panel-header {
  margin-bottom: 18px;
}

body[data-app-mode="hub"] .panel-header h2 {
  color: #ffffff;
}

body[data-app-mode="hub"] .hub-copy-panel {
  padding: 28px 30px 30px;
  background: linear-gradient(180deg, rgba(2, 18, 12, 0.2), rgba(2, 18, 12, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 34px rgba(3, 20, 16, 0.08);
}

body[data-app-mode="hub"] .hub-copy-panel .panel-header {
  margin-bottom: 16px;
}

body[data-app-mode="hub"] .hub-copy-panel .summary-box {
  margin-top: 0;
}

body[data-app-mode="hub"] .hub-copy-panel .summary-box p {
  max-width: 1080px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.72;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

body[data-app-mode="hub"] .hub-copy-panel .summary-box p:last-child {
  margin-bottom: 0;
}

body[data-app-mode="hub"] .portal-grid {
  gap: 18px;
}

body[data-app-mode="hub"] .portal-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 22px 22px 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  --portal-upper-min-height: 128px;
  --portal-split-height: 128px;
}

body[data-app-mode="hub"] .portal-card:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(3, 20, 16, 0.12);
}

body[data-app-mode="hub"] .portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--portal-split-height);
  background: #050505;
  z-index: 0;
}

body[data-app-mode="hub"] .portal-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--portal-split-height);
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  z-index: 0;
}

body[data-app-mode="hub"] .portal-card h3,
body[data-app-mode="hub"] .portal-card p,
body[data-app-mode="hub"] .panel .small,
body[data-app-mode="hub"] .hub-footnote p {
  color: rgba(255, 255, 255, 0.94);
}

body[data-app-mode="hub"] .portal-card h3 {
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

body[data-app-mode="hub"] .portal-stat {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.97rem;
  font-weight: 800;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

body[data-app-mode="hub"] .portal-stat-label {
  color: rgba(199, 234, 70, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-right: 6px;
}

body[data-app-mode="hub"] .portal-card .eyebrow,
body[data-app-mode="hub"] .hub-footnote .eyebrow {
  color: var(--lime);
  position: relative;
  z-index: 1;
}

body[data-app-mode="hub"] .portal-copy {
  display: grid;
  grid-template-rows: var(--portal-split-height) 1fr;
  align-self: stretch;
  min-height: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

body[data-app-mode="hub"] .portal-upper,
body[data-app-mode="hub"] .portal-lower {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-app-mode="hub"] .portal-upper {
  justify-content: flex-start;
  padding-top: 4px;
  padding-bottom: 12px;
}

body[data-app-mode="hub"] .portal-lower {
  justify-content: flex-start;
  padding-top: 24px;
  padding-right: 12px;
  margin-left: -120px;
  width: calc(100% + 120px);
}

body[data-app-mode="hub"] .portal-lower > *:first-child {
  margin-top: 0;
}

body[data-app-mode="hub"] .portal-lower > p {
  margin-bottom: 0;
  color: #152236;
  line-height: 1.5;
}

body[data-app-mode="hub"] .portal-upper h3 {
  margin-bottom: 18px;
}

body[data-app-mode="hub"] .portal-upper .portal-stat {
  margin-bottom: 8px;
}

body[data-app-mode="hub"] .portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 22px;
  min-width: 124px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--launch-action-bright);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: none;
}

body[data-app-mode="hub"] .portal-cta::after {
  content: ">";
  margin-left: 8px;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
}

body[data-app-mode="hub"] a.portal-card[data-thumb-source] {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 210px;
}

body[data-app-mode="hub"] .portal-thumb {
  position: relative;
  display: block;
  width: 100px;
  aspect-ratio: 5 / 7;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

body[data-app-mode="hub"] .portal-thumb::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

body[data-app-mode="hub"] .portal-thumb.is-loading::before {
  content: "";
  inset: 14px;
  width: auto;
  height: auto;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--lime);
  animation: spin 0.9s linear infinite;
}

body[data-app-mode="hub"] .portal-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-app-mode="hub"] .portal-thumb.is-empty::before {
  content: "";
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  animation: none;
}

body[data-app-mode="hub"] .hub-footnote .portal-card {
  border-color: rgba(255, 255, 255, 0.82);
}

body[data-app-mode="hub"] .hub-dark-section {
  margin: 6px 0 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body[data-app-mode="hub"] .hub-dark-section .panel-header {
  margin-bottom: 20px;
}

body[data-app-mode="hub"] .hub-dark-section .portal-card {
  background: #ffffff;
}

body[data-app-mode="hub"] .hub-dark-section .section-kicker {
  margin: 22px 0 14px;
  color: rgba(199, 234, 70, 0.92);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-app-mode="hub"] .hub-dark-section .section-kicker:first-of-type {
  margin-top: 0;
}

body[data-app-mode="hub"] .hub-dark-section .featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

body[data-app-mode="hub"] .hub-dark-section .featured-card {
  min-height: 266px;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 30px;
  padding: 22px 22px 24px;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  --portal-upper-min-height: 154px;
}

body[data-app-mode="hub"] .hub-dark-section .featured-card .portal-copy {
  padding-left: 10px;
}


body[data-app-mode="hub"] .hub-dark-section .featured-card .portal-thumb {
  width: 118px;
  border-radius: 18px;
}

body[data-app-mode="hub"] .hub-dark-section .featured-card h3 {
  font-size: 1.7rem;
  line-height: 1.05;
  margin-bottom: 16px;
  color: #ffffff;
}

body[data-app-mode="hub"] .hub-dark-section .featured-card p:last-child {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.45;
}

body[data-app-mode="hub"] .hub-dark-section .format-grid,
body[data-app-mode="hub"] .hub-dark-section .specialty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-app-mode="hub"] .hub-dark-section .format-grid .portal-card,
body[data-app-mode="hub"] .hub-dark-section .specialty-grid .portal-card {
  min-height: 160px;
}

body[data-app-mode="hub"] .hub-dark-section .format-grid .portal-card {
  min-height: 182px;
  --portal-upper-min-height: 136px;
}

body[data-app-mode="hub"] .hub-dark-section .specialty-grid .portal-card {
  min-height: 206px;
  --portal-upper-min-height: 148px;
}

body[data-app-mode="hub"] .hub-dark-section .specialty-grid .portal-stat {
  font-size: 0.92rem;
  line-height: 1.4;
}

body[data-app-mode="hub"] .hub-dark-section .specialty-grid .portal-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

body[data-app-mode="hub"] .hub-dark-section .specialty-grid .source-mtg-mana-rocks .portal-upper h3 {
  margin-bottom: 14px;
}

body[data-app-mode="hub"] .hub-dark-section .specialty-grid .source-mtg-mana-rocks .portal-stat {
  font-size: 0.88rem;
  line-height: 1.32;
}

body[data-app-mode="hub"] .hub-dark-section .specialty-grid .source-mtg-mana-rocks .portal-stat-label {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

body[data-app-mode="hub"] .hub-pokemon-section .portal-lower {
  padding-top: 44px;
}

body[data-app-mode="hub"] .hub-pokemon-section .portal-lower > p {
  line-height: 1.55;
}

body[data-app-mode="hub"] .hub-dark-section .portal-card:hover {
  background: #ffffff;
}

body[data-app-mode="hub"] .hub-pokemon-section .portal-card,
body[data-app-mode="hub"] .hub-source-section .portal-card,
body[data-app-mode="hub"] .hub-pokemon-section a.portal-card[data-thumb-source],
body[data-app-mode="hub"] .hub-source-section a.portal-card[data-thumb-source],
body[data-app-mode="hub"] .hub-pokemon-section .portal-card::before,
body[data-app-mode="hub"] .hub-pokemon-section .portal-card::after,
body[data-app-mode="hub"] .hub-source-section .portal-card::before,
body[data-app-mode="hub"] .hub-source-section .portal-card::after {
  border-radius: 0 !important;
}

body[data-app-mode="hub"] .hub-pokemon-section .portal-card,
body[data-app-mode="hub"] .hub-source-section .portal-card,
body[data-app-mode="hub"] .hub-pokemon-section a.portal-card[data-thumb-source],
body[data-app-mode="hub"] .hub-source-section a.portal-card[data-thumb-source] {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

body[data-app-mode="hub"] .portal-change.up {
  color: var(--launch-lime);
}

body[data-app-mode="hub"] .portal-change.down {
  color: #e0524d;
}

body[data-app-mode="hub"] .portal-stat.down {
  color: #e0524d;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes brandWiggle {
  0% {
    transform: rotate(0deg) scale(0.96);
  }
  22% {
    transform: rotate(-10deg) scale(1.03);
  }
  42% {
    transform: rotate(9deg) scale(1.04);
  }
  62% {
    transform: rotate(-6deg) scale(1.02);
  }
  82% {
    transform: rotate(3deg) scale(1.01);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes heroLogoWiggle {
  0% {
    transform: translateY(10px) rotate(0deg) scale(0.96);
    opacity: 0;
  }
  20% {
    transform: translateY(0) rotate(-7deg) scale(1.03);
    opacity: 1;
  }
  40% {
    transform: rotate(6deg) scale(1.04);
  }
  58% {
    transform: rotate(-4deg) scale(1.02);
  }
  78% {
    transform: rotate(2deg) scale(1.01);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  body[data-app-mode="hub"] .mobile-home-feed {
    display: grid;
    gap: 12px;
    margin: 0 calc(50% - 50vw) 12px;
    padding: 0 16px 18px;
    background: #050505;
  }

  body[data-app-mode="hub"] .hero {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
    padding-top: 12px;
    padding-bottom: 4px;
  }

  body[data-app-mode="hub"] .hub-top-band,
  body[data-app-mode="hub"] .hub-spotlight-panel {
    display: none;
  }

  body[data-app-mode="hub"] .hero-home-logo-wrap {
    display: none;
  }

  body[data-app-mode="hub"] .hero-home-logo {
    display: none;
  }

  body[data-app-mode="hub"] .hub-dark-section .featured-grid {
    grid-template-columns: 1fr;
  }

  body[data-app-mode="hub"] .hub-dark-section .format-grid,
  body[data-app-mode="hub"] .hub-dark-section .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-app-mode="movers"]::before,
  body[data-app-mode="pokemon-daily"]::before,
  body[data-app-mode="echo-sets"]::before {
    height: 820px;
  }

  .market-ticker {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -14px;
    padding: 10px 16px;
  }

  .market-ticker-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .market-ticker-track {
    gap: 14px;
    animation-duration: 28s;
  }

  .market-ticker-item {
    gap: 8px;
    padding-right: 14px;
  }

  body[data-app-mode="hub"] .hub-dark-section .format-grid,
  body[data-app-mode="hub"] .hub-dark-section .specialty-grid {
    grid-template-columns: 1fr;
  }

  body[data-app-mode="hub"] .mobile-home-mover-panel {
    padding: 14px 14px 16px;
    border-radius: 20px;
  }

  body[data-app-mode="hub"] .mobile-home-mover-main {
    gap: 12px;
  }

  body[data-app-mode="hub"] .mobile-home-mover-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 90px;
  }

  body[data-app-mode="hub"] .mobile-home-mover-copy h2 {
    font-size: 1.62rem;
  }

  body[data-app-mode="hub"] .mobile-home-mover-metrics {
    gap: 8px;
  }

  body[data-app-mode="hub"] .mobile-home-mover-metric {
    padding: 10px 9px 11px;
  }

  body[data-app-mode="hub"] .mobile-home-mover-metric strong {
    font-size: 0.96rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 28px;
  background: var(--accent);
  border: 0;
}

.hero > div:first-child,
.hero .status-card {
  position: relative;
  z-index: 1;
}

.hero > div:first-child {
  padding: 38px 32px 30px;
}

.hero .status-card {
  min-height: 100%;
  background: #ffffff;
  border-color: rgba(0, 168, 107, 0.18);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lime);
  font-family: var(--sans);
  font-weight: 850;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

h1,
h2,
h3,
strong {
  font-family: var(--sans);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 0 0 12px;
  color: #ffffff;
}

.intro,
.small,
p,
label span {
  color: var(--muted);
}

.hero .intro,
.hero > div:first-child p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.92);
}

.price-compare {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.panel,
.status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

body[data-app-mode="movers"] .panel,
body[data-app-mode="pokemon-daily"] .panel,
body[data-app-mode="echo-sets"] .panel,
body[data-app-mode="movers"] .status-card,
body[data-app-mode="pokemon-daily"] .status-card,
body[data-app-mode="echo-sets"] .status-card {
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
  filter: none;
  overflow: visible;
}

.status-card,
.panel {
  padding: 20px;
}

body[data-app-mode="movers"] .status-card,
body[data-app-mode="movers"] .panel,
body[data-app-mode="pokemon-daily"] .status-card,
body[data-app-mode="pokemon-daily"] .panel,
body[data-app-mode="echo-sets"] .status-card,
body[data-app-mode="echo-sets"] .panel {
  padding: 22px;
}

.panel-header,
.filter-toolbar,
.actions,
.grid,
.summary-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.panel-refresh-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--hunter);
  font-weight: 700;
}

.summary-warning {
  color: #9a5a10;
  font-weight: 700;
}

.controls .grid label,
.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
}

.controls-nav-panel .panel-header {
  margin-bottom: 12px;
}

.controls-nav-panel .controls-state {
  display: none !important;
}

.nav-dropdown-menu a[href="/standard.html"],
.nav-dropdown-menu a[href="/modern.html"],
.nav-dropdown-menu a[href="/pioneer.html"],
.nav-dropdown-menu a[href="/pauper.html"],
.nav-dropdown-menu a[href="/legacy.html"],
.nav-dropdown-menu a[href="/vintage.html"],
.portal-grid a[href="/standard.html"],
.portal-grid a[href="/modern.html"],
.portal-grid a[href="/pioneer.html"],
.portal-grid a[href="/pauper.html"],
.portal-grid a[href="/legacy.html"],
.portal-grid a[href="/vintage.html"] {
  display: none !important;
}

.controls-mobile-toggle {
  display: none;
}

.mobile-collapsible-controls .controls-mobile-section[hidden] {
  display: none !important;
}

.view-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.view-jump-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(199, 234, 70, 0.38);
  background: linear-gradient(180deg, rgba(168, 233, 82, 0.22), rgba(84, 186, 86, 0.18));
  color: #f6ffe3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.view-jump-button:hover,
.view-jump-button:focus-visible {
  border-color: rgba(199, 234, 70, 0.62);
  background: linear-gradient(180deg, rgba(185, 244, 94, 0.3), rgba(101, 205, 98, 0.26));
  color: #ffffff;
  transform: translateY(-1px);
}

.check-row {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 168, 107, 0.24);
  border-radius: 18px;
  background: var(--lime-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
}

body[data-app-mode="movers"] .check-row,
body[data-app-mode="pokemon-daily"] .check-row,
body[data-app-mode="echo-sets"] .check-row {
  border-radius: 0;
  background: #ffffff;
  border: 2px solid rgba(5, 5, 5, 0.14);
}

.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.quality-filter-callout {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(199, 234, 70, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(199, 234, 70, 0.12), rgba(0, 168, 107, 0.08)),
    linear-gradient(180deg, rgba(16, 24, 20, 0.94), rgba(8, 12, 10, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quality-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  color: #ffffff;
}

.quality-filter-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--lime);
  flex: 0 0 auto;
}

.quality-filter-toggle span {
  display: grid;
  gap: 0.2rem;
}

.quality-filter-toggle strong {
  color: #ffffff;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quality-filter-toggle small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
}

.quality-filter-subtoggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  cursor: pointer;
}

.quality-filter-subtoggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.quality-filter-subtoggle span {
  color: rgba(255, 255, 255, 0.8);
}

.results-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: end;
}

.results-panel-header-copy {
  position: relative;
}

.results-panel-header-copy h2 {
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  line-height: 1.02;
  margin: 0 0 10px;
}

.results-panel-header-accent {
  position: relative;
  min-height: 52px;
  align-self: center;
}

.results-panel-header-accent::before,
.results-panel-header-accent::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  transform: translateY(-50%);
}

.results-panel-header-accent::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(199, 234, 70, 0.28), transparent);
}

.results-panel-header-accent::after {
  width: 42px;
  right: 18px;
  left: auto;
  background: rgba(199, 234, 70, 0.9);
  box-shadow: 0 0 14px rgba(199, 234, 70, 0.35);
}

.results-panel-header-accent span {
  position: absolute;
  top: 50%;
  right: 54px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(199, 234, 70, 0.08), 0 0 18px rgba(199, 234, 70, 0.26);
  animation: resultsHeadingPulse 2.6s ease-in-out infinite;
}

.results-heading-band {
  margin: -28px -16px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: end;
  padding: 20px 38px 18px;
  border-radius: 0;
  position: relative;
  overflow: visible;
}

.results-heading-band::before {
  content: "";
  position: absolute;
  inset: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 33%, rgba(0, 0, 0, 0.1) 61%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.results-heading-band > * {
  position: relative;
  z-index: 1;
}

.results-heading-copy {
  position: relative;
  padding-bottom: 16px;
}

.results-heading-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 234, 70, 0.6), rgba(0, 168, 107, 0.28), transparent 82%);
}

.results-heading-kicker {
  margin: 0 0 10px;
  color: rgba(199, 234, 70, 0.98);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.results-heading-band h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.8rem, 2.35vw, 2.3rem);
  line-height: 1.04;
}

.results-heading-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.results-heading-accent {
  position: relative;
  min-height: 52px;
  align-self: center;
}

.results-heading-accent::before,
.results-heading-accent::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  transform: translateY(-50%);
}

.results-heading-accent::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(199, 234, 70, 0.28), transparent);
}

.results-heading-accent::after {
  width: 42px;
  right: 18px;
  left: auto;
  background: rgba(199, 234, 70, 0.9);
  box-shadow: 0 0 14px rgba(199, 234, 70, 0.35);
}

.results-heading-accent span {
  position: absolute;
  top: 50%;
  right: 54px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(199, 234, 70, 0.08), 0 0 18px rgba(199, 234, 70, 0.26);
  animation: resultsHeadingPulse 2.6s ease-in-out infinite;
}

@keyframes resultsHeadingPulse {
  0%, 100% {
    opacity: 0.55;
    transform: translateY(-50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
  }
}

@keyframes heroFloatLogoDrift {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

select,
input,
button {
  font: inherit;
}

select,
input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(63, 112, 77, 0.18);
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

body[data-app-mode="movers"] select,
body[data-app-mode="movers"] input,
body[data-app-mode="pokemon-daily"] select,
body[data-app-mode="pokemon-daily"] input,
body[data-app-mode="echo-sets"] select,
body[data-app-mode="echo-sets"] input {
  border-radius: 0;
  border: 2px solid rgba(5, 5, 5, 0.12);
  background: #ffffff;
}

select:focus,
input:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 24, 233, 0.16);
  outline-offset: 2px;
  border-color: rgba(0, 24, 233, 0.3);
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(0, 168, 107, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

body[data-app-mode="movers"] button,
body[data-app-mode="pokemon-daily"] button,
body[data-app-mode="echo-sets"] button {
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--launch-action-bright);
  color: #ffffff;
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 14px 24px rgba(0, 168, 107, 0.2);
}

body[data-app-mode="movers"] button:hover,
body[data-app-mode="pokemon-daily"] button:hover,
body[data-app-mode="echo-sets"] button:hover {
  background: #14ba8f;
  box-shadow: none;
}

button.ghost {
  background: #ffffff;
  color: var(--hunter);
  border: 1px solid rgba(63, 112, 77, 0.18);
  box-shadow: 0 10px 24px rgba(63, 112, 77, 0.08);
}

body[data-app-mode="movers"] button.ghost,
body[data-app-mode="pokemon-daily"] button.ghost,
body[data-app-mode="echo-sets"] button.ghost {
  background: #050505;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-values select {
  min-height: 130px;
  border-radius: 14px;
}

.summary-box,
.snapshot-list {
  margin-top: 14px;
}

.summary-box,
.summary-box a,
.small a,
.watch-card a,
.source-diagnostic,
.chatter-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-grid > div {
  flex: 1 1 180px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 168, 107, 0.14);
  box-shadow: none;
}

body[data-app-mode="movers"] .summary-grid > div,
body[data-app-mode="pokemon-daily"] .summary-grid > div,
body[data-app-mode="echo-sets"] .summary-grid > div {
  border-radius: 0;
  border: 2px solid rgba(5, 5, 5, 0.08);
}

.snapshot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.snapshot-item {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.set-spotlight-panel {
  position: relative;
  overflow: hidden;
}

.set-spotlight-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 0%, rgba(199, 234, 70, 0.26), transparent 28%),
    radial-gradient(circle at 100% 20%, rgba(10, 168, 107, 0.14), transparent 24%);
}

.set-spotlight-panel > * {
  position: relative;
}

.random-card-box {
  margin-top: 14px;
}

.random-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(10, 168, 107, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(4, 28, 18, 0.08);
}

.random-card .card-image-frame,
.random-card .card-image-frame img {
  width: 86px;
  height: 120px;
}

.random-card .card-image-frame {
  justify-self: center;
}

.random-card .art-card-image-frame,
.random-card .art-card-image-frame img {
  width: 180px;
  height: 128px;
}

.random-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.random-card p {
  margin: 8px 0 0;
}

.random-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.random-card-stats span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.82rem;
}

.random-card-stats strong {
  color: var(--ink);
}

.random-card-stats em {
  font-style: normal;
}

.results-panel {
  margin-top: 38px;
}

.watchlist-panel {
  margin-top: 30px;
}

.results-preview-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 4px;
}

.results-preview-toggle {
  min-width: 170px;
}

.chatter-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.chatter-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.chatter-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.chatter-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--lime-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hunter);
}

.chatter-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatter-link {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-decoration: none;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

thead {
  background: #d9efe2;
}

body[data-app-mode="movers"] thead,
body[data-app-mode="pokemon-daily"] thead,
body[data-app-mode="echo-sets"] thead {
  background: #050505;
}

th {
  color: #47645a;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-app-mode="movers"] th,
body[data-app-mode="pokemon-daily"] th,
body[data-app-mode="echo-sets"] th {
  color: rgba(255, 255, 255, 0.9);
}

th,
td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.shop-cell {
  min-width: 214px;
}

.affiliate-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  width: 210px;
  max-width: 100%;
}

.shop-button {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(7, 27, 24, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 9px 20px rgba(7, 27, 24, 0.05);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.shop-button:hover,
.shop-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(10, 168, 107, 0.32);
  background: linear-gradient(135deg, #ffffff, var(--lime-soft));
}

.shop-button.tcgplayer {
  color: var(--accent-2);
}

.shop-button.ebay {
  color: #334155;
}

.shop-button.amazon {
  color: var(--hunter);
}

.shop-button.card-kingdom {
  color: var(--danger);
}

.shop-button.cardhoarder {
  color: var(--accent);
}

.card-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.result-row-warning {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 220, 140, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 224, 148, 0.06) 45%, rgba(186, 214, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 206, 112, 0.16), rgba(255, 206, 112, 0.05));
  color: #fff0c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.result-row-warning::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 221, 138, 0.88) 52%, rgba(158, 211, 255, 0.84));
  box-shadow: 0 0 10px rgba(255, 233, 166, 0.22);
  flex: 0 0 auto;
}

.card-image-frame {
  width: 56px;
  height: 78px;
  flex: 0 0 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff, #efffd8);
  color: var(--muted);
  font-size: 0;
  overflow: hidden;
}

.card-image-frame.image-missing::after {
  content: attr(data-label);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-cell img,
.card-image-frame img {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: inherit;
  border: 0;
  background: white;
}

.art-card-image-frame {
  width: 92px;
  height: 66px;
  flex-basis: 92px;
  background: #ffffff;
}

.art-card-image-frame img {
  width: 92px;
  height: 66px;
  object-fit: contain;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.up {
  color: var(--accent);
  font-weight: 850;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.watchlist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.watchlist-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.watchlist-meta .watchlist-aging {
  border-color: rgba(199, 234, 70, 0.72);
  background: var(--lime-soft);
  color: var(--hunter);
}

.watchlist-meta .watchlist-stale {
  border-color: rgba(224, 82, 77, 0.26);
  background: #fff1f0;
  color: var(--danger);
}

.watchlist-details {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.watchlist-details summary {
  cursor: pointer;
  padding: 12px 14px;
  font-family: var(--sans);
  font-weight: 800;
}

.watchlist-explainer {
  padding: 0 14px 14px;
}

.watchlist-explainer p {
  margin-top: 0;
}

.watchlist-source-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7fbf9;
}

.watchlist-diagnostics {
  display: grid;
  gap: 8px;
}

.source-diagnostic {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: #ffffff;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.source-diagnostic strong {
  min-width: 150px;
}

.source-diagnostic span {
  color: var(--muted);
}

.source-diagnostic em {
  color: var(--danger);
  font-style: normal;
}

.source-warning {
  border: 1px solid rgba(224, 82, 77, 0.25);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.watch-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 27, 24, 0.08);
}

body[data-app-mode="movers"] .watch-card,
body[data-app-mode="pokemon-daily"] .watch-card,
body[data-app-mode="echo-sets"] .watch-card {
  border-radius: 0;
  border: 2px solid rgba(5, 5, 5, 0.08);
  box-shadow: none;
  filter: none;
}

.watch-card h3 {
  margin: 0;
  font-size: 1rem;
}

.watch-card p {
  margin: 8px 0 0;
}

.watch-card .affiliate-stack {
  margin-top: 12px;
}

.prediction-module-panel {
  background: #101515;
  border: 1px solid rgba(199, 234, 70, 0.24);
  margin-top: 22px;
}

.signal-layer-stack {
  display: grid;
  gap: 22px;
  isolation: isolate;
}

.signal-layer-stack > .fundamentals-intro-panel {
  margin: 34px 0 0;
}

.signal-layer-stack > .prediction-module-panel {
  margin-top: 0;
}

.fundamentals-intro-panel {
  margin: 34px 0 12px;
  padding: 0 6px 8px;
  position: relative;
}

.fundamentals-transition-rail {
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
}

.fundamentals-transition-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 18, 16, 0.88), rgba(7, 11, 10, 0.96));
  border: 1px solid rgba(199, 234, 70, 0.2);
  color: rgba(199, 234, 70, 0.96);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.fundamentals-transition-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 234, 70, 0.42), rgba(0, 168, 107, 0.3), transparent 88%);
}

.fundamentals-transition-pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(199, 234, 70, 0.1), 0 0 20px rgba(199, 234, 70, 0.34);
  animation: fundamentalsTransitionPulse 2.7s ease-in-out infinite;
}

.fundamentals-intro-grid {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.fundamentals-intro-mark {
  display: grid;
  gap: 14px;
  align-content: center;
}

.fundamentals-intro-logo {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(199, 234, 70, 0.2), transparent 58%),
    linear-gradient(160deg, rgba(13, 20, 18, 0.92), rgba(7, 10, 10, 0.98));
  border: 1px solid rgba(199, 234, 70, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 18px 40px rgba(0, 0, 0, 0.26);
  position: relative;
  overflow: hidden;
}

.fundamentals-intro-logo::before {
  content: "";
  position: absolute;
  inset: 16px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.78;
  filter: drop-shadow(0 0 14px rgba(199, 234, 70, 0.12));
  animation: fundamentalsLogoFloat 5.2s ease-in-out infinite;
}

.fundamentals-intro-signal {
  height: 14px;
  position: relative;
  overflow: hidden;
}

.fundamentals-intro-signal::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 234, 70, 0.18), rgba(199, 234, 70, 0.04));
}

.fundamentals-intro-signal span {
  position: absolute;
  top: 1px;
  left: -12%;
  width: 34%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 234, 70, 0), rgba(199, 234, 70, 0.95) 40%, rgba(255, 255, 255, 0.9) 52%, rgba(0, 168, 107, 0.95) 72%, rgba(0, 168, 107, 0));
  filter: blur(0.2px);
  animation: fundamentalsSignalSweep 3.8s linear infinite;
}

.fundamentals-intro-copy {
  position: relative;
  padding-bottom: 20px;
}

.fundamentals-intro-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 234, 70, 0.55), rgba(199, 234, 70, 0.12), transparent 78%);
}

.fundamentals-intro-kicker {
  margin: 0 0 10px;
  color: rgba(6, 20, 14, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fundamentals-intro-panel h2 {
  margin: 0 0 12px;
  color: rgba(4, 16, 12, 0.96);
  font-size: clamp(2.22rem, 3.24vw, 2.94rem);
  line-height: 1.02;
}

.fundamentals-intro-panel p {
  margin: 0;
  max-width: 980px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1.68;
}

@keyframes fundamentalsLogoFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.012);
  }
}

@keyframes fundamentalsSignalSweep {
  0% {
    transform: translateX(0%);
    opacity: 0.35;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(360%);
    opacity: 0.4;
  }
}

@keyframes fundamentalsTransitionPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@media (max-width: 760px) {
  body[data-source="mtg-mixed"] .hero.hero-with-art {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "art"
      "status";
    gap: 16px;
    margin: 0 0 24px;
    padding: 26px 0 8px;
    background: transparent;
  }

  body[data-source="mtg-mixed"] .hero.hero-with-art .hero-float-logo-wrap {
    min-height: 0;
    justify-content: flex-start;
  }

  body[data-source="mtg-mixed"] .hero.hero-with-art .hero-float-logo {
    width: min(280px, 70vw);
    max-height: 320px;
  }

  body[data-source="mtg-mixed"] .hero.hero-with-art .status-card {
    max-width: none;
  }

  body[data-app-mode="movers"] .movers-hero-band {
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
  }

  body[data-app-mode="movers"] .hero.hero-home-like {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 0 8px;
  }

  body[data-app-mode="movers"] .hero.hero-home-like .hero-home-logo-wrap {
    display: none;
  }

  body[data-app-mode="movers"] .hero.hero-home-like .hero-home-logo {
    display: none;
  }

  body[data-app-mode="movers"] .movers-hero-band .hero-status-card {
    max-width: none;
    margin: 0;
  }

  .fundamentals-transition-rail {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .fundamentals-transition-line {
    display: none;
  }

  .results-panel-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .results-panel-header-accent {
    min-height: 24px;
  }

  .results-heading-band {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 18px 20px 16px;
  }

  .results-heading-accent {
    min-height: 24px;
  }

  .results-heading-band h2 {
    font-size: 1.72rem;
  }

  .fundamentals-intro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fundamentals-intro-mark {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
  }

  .fundamentals-intro-logo {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }

  .fundamentals-intro-copy {
    padding-bottom: 16px;
  }

  .fundamentals-intro-panel h2 {
    font-size: 1.72rem;
  }
}

@media (max-width: 680px) {
  .results-heading-band {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.prediction-module-list {
  display: grid;
  gap: 16px;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(110px, 0.55fr) minmax(110px, 0.5fr) minmax(260px, 1.35fr);
  gap: 0;
  border: 1px solid rgba(199, 234, 70, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(21, 27, 27, 0.98), rgba(23, 28, 28, 0.98));
}

.prediction-row > * {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid rgba(199, 234, 70, 0.14);
}

.prediction-row > *:last-child {
  border-right: 0;
}

.prediction-row-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.prediction-row-copy strong {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.96);
}

.prediction-row-copy p,
.prediction-row-metric p {
  margin: 6px 0 0;
  color: rgba(214, 232, 226, 0.92);
}

.prediction-row-label {
  display: block;
  margin: 0 0 8px;
  color: rgba(199, 234, 70, 0.95);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-row-metric strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.05rem;
}

.prediction-module-panel .panel-header h2,
.prediction-module-panel .panel-header h3,
.prediction-module-panel .panel-header p,
.prediction-module-panel .ghost,
.prediction-module-panel a,
.prediction-module-panel .small {
  color: rgba(255, 255, 255, 0.96);
}

.prediction-module-panel .panel-header h2,
.prediction-module-panel .panel-header h3 {
  font-size: 1.42rem;
  line-height: 1.1;
}

.prediction-module-panel .ghost {
  border-color: rgba(199, 234, 70, 0.28);
}

.signal-layer-stack .prediction-module-panel,
.signal-layer-stack .prediction-module-panel .panel-header,
.signal-layer-stack .prediction-module-panel .panel-header div,
.signal-layer-stack .prediction-module-panel .prediction-module-list,
.signal-layer-stack .prediction-module-panel .prediction-row,
.signal-layer-stack .prediction-module-panel .prediction-row-card,
.signal-layer-stack .prediction-module-panel .prediction-row-copy,
.signal-layer-stack .prediction-module-panel .prediction-row-metric {
  color: rgba(214, 232, 226, 0.92) !important;
}

.signal-layer-stack .prediction-module-panel .panel-header h2,
.signal-layer-stack .prediction-module-panel .panel-header h3,
.signal-layer-stack .prediction-module-panel .prediction-row a,
.signal-layer-stack .prediction-module-panel .prediction-row-copy strong,
.signal-layer-stack .prediction-module-panel .prediction-row-metric strong,
.signal-layer-stack .prediction-module-panel .ghost,
.signal-layer-stack .prediction-module-panel .ghost:visited {
  color: rgba(255, 255, 255, 0.96) !important;
}

.signal-layer-stack .prediction-module-panel .panel-header p,
.signal-layer-stack .prediction-module-panel .prediction-row p,
.signal-layer-stack .prediction-module-panel .prediction-row div,
.signal-layer-stack .prediction-module-panel .prediction-row span,
.signal-layer-stack .prediction-module-panel .small {
  color: rgba(214, 232, 226, 0.92) !important;
}

.signal-layer-stack .prediction-module-panel .prediction-row-label {
  color: rgba(199, 234, 70, 0.95) !important;
}

.signal-layer-stack .prediction-module-panel a:hover,
.signal-layer-stack .prediction-module-panel a:focus-visible {
  color: var(--lime) !important;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.diagnostics-card {
  border: 1px solid rgba(199, 234, 70, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(21, 27, 27, 0.98), rgba(23, 28, 28, 0.98));
  padding: 18px;
}

.diagnostics-card h3 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
}

.diagnostics-stat {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.35rem;
  font-weight: 800;
}

.diagnostics-label {
  margin: 0 0 8px;
  color: rgba(199, 234, 70, 0.95);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnostics-meta,
.diagnostics-list li,
.diagnostics-table td,
.diagnostics-table th,
.diagnostics-empty {
  color: rgba(214, 232, 226, 0.92);
}

.diagnostics-meta {
  margin: 6px 0 0;
}

.diagnostics-list {
  margin: 0;
  padding-left: 18px;
}

.diagnostics-list li + li {
  margin-top: 8px;
}

.diagnostics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnostics-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(199, 234, 70, 0.24);
  background: rgba(199, 234, 70, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 700;
}

.watch-accuracy-trend {
  display: grid;
  gap: 14px;
}

.watch-accuracy-trend-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(199, 234, 70, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(196, 240, 69, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 20, 20, 0.98), rgba(22, 27, 27, 0.98));
}

.watch-accuracy-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(214, 232, 226, 0.9);
  font-size: 0.84rem;
}

.watch-accuracy-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.watch-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.watch-legend-dot.is-blended {
  background: var(--launch-lime);
}

.watch-legend-dot.is-seven {
  background: #39d0ff;
}

.watch-legend-dot.is-fourteen {
  background: #ff8a4c;
}

.watch-legend-dot.is-target {
  background: transparent;
  border: 2px dashed rgba(207, 244, 70, 0.65);
}

.diagnostics-pill.is-warning {
  border-color: rgba(255, 176, 90, 0.24);
  background: rgba(255, 176, 90, 0.1);
}

.diagnostics-pill.is-good {
  border-color: rgba(100, 212, 140, 0.24);
  background: rgba(100, 212, 140, 0.1);
}

.diagnostics-table-wrap {
  overflow-x: auto;
}

.diagnostics-table {
  width: 100%;
  border-collapse: collapse;
}

.diagnostics-table th,
.diagnostics-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(199, 234, 70, 0.12);
  text-align: left;
  vertical-align: top;
}

.diagnostics-table th {
  color: rgba(199, 234, 70, 0.95);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-source="mtg-mixed"] .prediction-module-panel .panel-header h2,
body[data-source="mtg-mixed"] .prediction-module-panel .panel-header h3,
body[data-source="mtg-mixed"] .prediction-module-panel .panel-header p,
body[data-source="mtg-mixed"] .prediction-module-panel .ghost,
body[data-source="mtg-mixed"] .prediction-module-panel .small {
  color: rgba(255, 255, 255, 0.96) !important;
}

body[data-source="mtg-mixed"] .prediction-row {
  color: rgba(214, 232, 226, 0.92) !important;
}

body[data-source="mtg-mixed"] .prediction-row a,
body[data-source="mtg-mixed"] .prediction-row-copy strong,
body[data-source="mtg-mixed"] .prediction-row-metric strong {
  color: rgba(255, 255, 255, 0.96) !important;
}

body[data-source="mtg-mixed"] .prediction-row p,
body[data-source="mtg-mixed"] .prediction-row div,
body[data-source="mtg-mixed"] .prediction-row span,
body[data-source="mtg-mixed"] .prediction-row-copy p,
body[data-source="mtg-mixed"] .prediction-row-metric p {
  color: rgba(214, 232, 226, 0.92) !important;
}

body[data-source="mtg-mixed"] .prediction-row-label {
  color: rgba(199, 234, 70, 0.95) !important;
}

body[data-source="mtg-mixed"] .prediction-module-panel a:hover,
body[data-source="mtg-mixed"] .prediction-module-panel a:focus-visible,
body[data-source="mtg-mixed"] .prediction-row a,
body[data-source="mtg-mixed"] .prediction-row a:hover,
body[data-source="mtg-mixed"] .prediction-row a:focus-visible {
  color: var(--lime) !important;
}

.watch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.watch-card-head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: #24402d;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.down {
  color: var(--danger);
  font-weight: 850;
}

a {
  color: inherit;
}

code {
  background: #edf6ff;
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 6px;
}

.status-card,
.panel {
  position: relative;
  overflow: hidden;
}

.status-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--lime));
  opacity: 1;
}

body[data-app-mode="movers"] .status-card::before,
body[data-app-mode="movers"] .panel::before,
body[data-app-mode="pokemon-daily"] .status-card::before,
body[data-app-mode="pokemon-daily"] .panel::before,
body[data-app-mode="echo-sets"] .status-card::before,
body[data-app-mode="echo-sets"] .panel::before {
  height: 0;
  background: #050505;
}

body[data-app-mode="movers"] .panel-header,
body[data-app-mode="pokemon-daily"] .panel-header,
body[data-app-mode="echo-sets"] .panel-header {
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(5, 5, 5, 0.08);
}

body[data-app-mode="movers"] .panel.top-band-controls,
body[data-app-mode="pokemon-daily"] .panel.top-band-controls,
body[data-app-mode="echo-sets"] .panel.top-band-controls {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0 26px !important;
  overflow: visible !important;
}

body[data-app-mode="movers"] .panel.top-band-controls::before,
body[data-app-mode="pokemon-daily"] .panel.top-band-controls::before,
body[data-app-mode="echo-sets"] .panel.top-band-controls::before {
  content: none !important;
}

body[data-app-mode="movers"] .panel:has(> .summary-box),
body[data-app-mode="pokemon-daily"] .panel:has(> .summary-box),
body[data-app-mode="echo-sets"] .panel:has(> .summary-box) {
  display: none !important;
}

body[data-app-mode="movers"] .panel.top-band-controls .panel-header,
body[data-app-mode="pokemon-daily"] .panel.top-band-controls .panel-header,
body[data-app-mode="echo-sets"] .panel.top-band-controls .panel-header {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body[data-source="mtg-card"] .card-detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

body[data-source="mtg-card"] .card-page-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
  margin: 8px 0 24px;
  padding: 8px 0 6px;
}

body[data-source="mtg-card"] .card-page-intro {
  max-width: 760px;
  position: relative;
}

body[data-source="mtg-card"] .card-page-intro h1 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 0.96;
  max-width: none;
}

body[data-source="mtg-card"] .card-page-intro .intro {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

body[data-source="mtg-card"] .card-page-toolbar {
  display: grid;
  gap: 14px;
  justify-items: start;
}

body[data-source="mtg-card"] .card-page-toolbar-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199, 234, 70, 0.28);
  background:
    linear-gradient(180deg, rgba(14, 20, 18, 0.96), rgba(9, 12, 11, 0.94));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
  padding: 18px 20px 20px;
  min-width: min(100%, 320px);
}

body[data-source="mtg-card"] .card-page-toolbar-box::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 116px;
  height: 116px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

body[data-source="mtg-card"] .card-page-toolbar-box .eyebrow {
  color: var(--lime);
  margin-bottom: 10px;
}

body[data-source="mtg-card"] .card-page-toolbar-box p,
body[data-source="mtg-card"] .card-page-toolbar-box label span {
  color: rgba(255, 255, 255, 0.9);
}

body[data-source="mtg-card"] .card-page-toolbar-box .small {
  color: rgba(255, 255, 255, 0.72);
}

body[data-source="mtg-card"] .card-set-picker {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

body[data-source="mtg-card"] .card-detail-panel {
  margin-bottom: 22px;
  position: relative;
  overflow: visible;
}

body[data-source="mtg-card"] .card-source-panel {
  margin-top: 22px;
}

body[data-source="mtg-card"] .card-history-panel {
  margin-bottom: 22px;
}

body[data-source="mtg-card"] .card-detail-panel::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 170px;
  background: #050505;
  z-index: -1;
  pointer-events: none;
}

body[data-source="mtg-card"] .card-detail-panel::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 160px;
  height: 160px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  filter: saturate(0);
}

body[data-source="mtg-mixed"] .results-panel .table-wrap table,
body[data-source="mtg"] .results-panel .table-wrap table,
body[data-source="mtg-tournaments"] .results-panel .table-wrap table,
body[data-source="mtg-echo"] .results-panel .table-wrap table,
body[data-app-mode="echo-sets"] .table-wrap table {
  border-collapse: separate;
  border-spacing: 0 14px;
}

body[data-source="mtg-mixed"] .results-panel tbody td,
body[data-source="mtg"] .results-panel tbody td,
body[data-source="mtg-tournaments"] .results-panel tbody td,
body[data-source="mtg-echo"] .results-panel tbody td,
body[data-app-mode="echo-sets"] tbody td {
  position: relative;
  background: linear-gradient(180deg, #111617 0%, #0b0e0f 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(199, 234, 70, 0.16);
  border-bottom: 1px solid rgba(199, 234, 70, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

body[data-source="mtg-mixed"] .results-panel tbody td:first-child,
body[data-source="mtg"] .results-panel tbody td:first-child,
body[data-source="mtg-tournaments"] .results-panel tbody td:first-child,
body[data-source="mtg-echo"] .results-panel tbody td:first-child,
body[data-app-mode="echo-sets"] tbody td:first-child {
  border-left: 1px solid rgba(199, 234, 70, 0.16);
}

body[data-source="mtg-mixed"] .results-panel tbody td:last-child,
body[data-source="mtg"] .results-panel tbody td:last-child,
body[data-source="mtg-tournaments"] .results-panel tbody td:last-child,
body[data-source="mtg-echo"] .results-panel tbody td:last-child,
body[data-app-mode="echo-sets"] tbody td:last-child {
  border-right: 1px solid rgba(199, 234, 70, 0.16);
}

body[data-source="mtg-mixed"] .results-panel tbody td:first-child,
body[data-source="mtg"] .results-panel tbody td:first-child,
body[data-source="mtg-tournaments"] .results-panel tbody td:first-child,
body[data-source="mtg-echo"] .results-panel tbody td:first-child,
body[data-app-mode="echo-sets"] tbody td:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

body[data-source="mtg-mixed"] .results-panel tbody td:last-child,
body[data-source="mtg"] .results-panel tbody td:last-child,
body[data-source="mtg-tournaments"] .results-panel tbody td:last-child,
body[data-source="mtg-echo"] .results-panel tbody td:last-child,
body[data-app-mode="echo-sets"] tbody td:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

body[data-source="mtg-mixed"] .results-panel tbody td[data-label="Card"]::after,
body[data-source="mtg"] .results-panel tbody td[data-label="Card"]::after,
body[data-source="mtg-tournaments"] .results-panel tbody td[data-label="Cards"]::after,
body[data-source="mtg-echo"] .results-panel tbody td[data-label="Card"]::after,
body[data-app-mode="echo-sets"] tbody td[data-label="Card"]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 68px;
  height: 68px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
  filter: saturate(0);
}

body[data-source="mtg-mixed"] .results-panel tbody td p,
body[data-source="mtg"] .results-panel tbody td p,
body[data-source="mtg-tournaments"] .results-panel tbody td p,
body[data-source="mtg-echo"] .results-panel tbody td p,
body[data-app-mode="echo-sets"] tbody td p,
body[data-source="mtg-mixed"] .results-panel tbody td a,
body[data-source="mtg"] .results-panel tbody td a,
body[data-source="mtg-tournaments"] .results-panel tbody td a,
body[data-source="mtg-echo"] .results-panel tbody td a,
body[data-app-mode="echo-sets"] tbody td a {
  color: rgba(255, 255, 255, 0.9);
}

body[data-source="mtg-mixed"] .results-panel tbody td .small,
body[data-source="mtg"] .results-panel tbody td .small,
body[data-source="mtg-tournaments"] .results-panel tbody td .small,
body[data-source="mtg-echo"] .results-panel tbody td .small,
body[data-app-mode="echo-sets"] tbody td .small {
  color: rgba(255, 255, 255, 0.66);
}

body[data-source="mtg-mixed"] .results-panel tbody td strong,
body[data-source="mtg"] .results-panel tbody td strong,
body[data-source="mtg-tournaments"] .results-panel tbody td strong,
body[data-source="mtg-echo"] .results-panel tbody td strong,
body[data-app-mode="echo-sets"] tbody td strong {
  color: #ffffff;
}

body[data-source="mtg-mixed"] .results-panel tbody td a:hover,
body[data-source="mtg-mixed"] .results-panel tbody td a:focus-visible,
body[data-source="mtg"] .results-panel tbody td a:hover,
body[data-source="mtg"] .results-panel tbody td a:focus-visible,
body[data-source="mtg-tournaments"] .results-panel tbody td a:hover,
body[data-source="mtg-tournaments"] .results-panel tbody td a:focus-visible,
body[data-source="mtg-echo"] .results-panel tbody td a:hover,
body[data-source="mtg-echo"] .results-panel tbody td a:focus-visible,
body[data-app-mode="echo-sets"] tbody td a:hover,
body[data-app-mode="echo-sets"] tbody td a:focus-visible {
  color: var(--lime);
}

body[data-source="mtg-mixed"] .results-panel .card-image-frame,
body[data-source="mtg"] .results-panel .card-image-frame,
body[data-source="mtg-tournaments"] .results-panel .card-image-frame,
body[data-source="mtg-echo"] .results-panel .card-image-frame,
body[data-app-mode="echo-sets"] .card-image-frame {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border-color: rgba(199, 234, 70, 0.22);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

body[data-source="mtg-mixed"] .results-panel .card-image-frame.image-missing::after,
body[data-source="mtg"] .results-panel .card-image-frame.image-missing::after,
body[data-source="mtg-tournaments"] .results-panel .card-image-frame.image-missing::after,
body[data-source="mtg-echo"] .results-panel .card-image-frame.image-missing::after,
body[data-app-mode="echo-sets"] .card-image-frame.image-missing::after {
  color: rgba(199, 234, 70, 0.9);
}

body[data-source="mtg-mixed"] .results-panel .shop-button,
body[data-source="mtg"] .results-panel .shop-button,
body[data-source="mtg-tournaments"] .results-panel .shop-button,
body[data-source="mtg-echo"] .results-panel .shop-button,
body[data-app-mode="echo-sets"] .shop-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body[data-source="mtg-mixed"] .results-panel .shop-button:hover,
body[data-source="mtg-mixed"] .results-panel .shop-button:focus-visible,
body[data-source="mtg"] .results-panel .shop-button:hover,
body[data-source="mtg"] .results-panel .shop-button:focus-visible,
body[data-source="mtg-tournaments"] .results-panel .shop-button:hover,
body[data-source="mtg-tournaments"] .results-panel .shop-button:focus-visible,
body[data-source="mtg-echo"] .results-panel .shop-button:hover,
body[data-source="mtg-echo"] .results-panel .shop-button:focus-visible,
body[data-app-mode="echo-sets"] .shop-button:hover,
body[data-app-mode="echo-sets"] .shop-button:focus-visible {
  border-color: rgba(199, 234, 70, 0.34);
  background: #ffffff;
}

body[data-source="mtg-mixed"] .results-panel .shop-button,
body[data-source="mtg"] .results-panel .shop-button,
body[data-source="mtg-tournaments"] .results-panel .shop-button,
body[data-source="mtg-echo"] .results-panel .shop-button,
body[data-app-mode="echo-sets"] .shop-button {
  border-color: rgba(199, 234, 70, 0.2) !important;
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%) !important;
  color: #09140d !important;
  box-shadow: none !important;
}

body[data-source="mtg-mixed"] .results-panel .shop-button:hover,
body[data-source="mtg-mixed"] .results-panel .shop-button:focus-visible,
body[data-source="mtg"] .results-panel .shop-button:hover,
body[data-source="mtg"] .results-panel .shop-button:focus-visible,
body[data-source="mtg-tournaments"] .results-panel .shop-button:hover,
body[data-source="mtg-tournaments"] .results-panel .shop-button:focus-visible,
body[data-source="mtg-echo"] .results-panel .shop-button:hover,
body[data-source="mtg-echo"] .results-panel .shop-button:focus-visible,
body[data-app-mode="echo-sets"] .shop-button:hover,
body[data-app-mode="echo-sets"] .shop-button:focus-visible {
  border-color: rgba(199, 234, 70, 0.28) !important;
  background: linear-gradient(180deg, var(--launch-success-light) 0%, var(--launch-success-light-end) 100%) !important;
  color: #09140d !important;
}

body[data-source="mtg-mixed"] .results-panel .empty,
body[data-source="mtg"] .results-panel .empty,
body[data-source="mtg-tournaments"] .results-panel .empty,
body[data-source="mtg-echo"] .results-panel .empty,
body[data-app-mode="echo-sets"] .empty {
  color: rgba(255, 255, 255, 0.7);
}

body[data-source="mtg-mixed"] .results-panel .up,
body[data-source="mtg"] .results-panel .up,
body[data-source="mtg-tournaments"] .results-panel .up,
body[data-source="mtg-echo"] .results-panel .up,
body[data-app-mode="echo-sets"] .up {
  color: var(--lime);
  text-shadow: 0 0 12px rgba(199, 234, 70, 0.12);
}

body[data-source="mtg-mixed"] .results-panel .down,
body[data-source="mtg"] .results-panel .down,
body[data-source="mtg-tournaments"] .results-panel .down,
body[data-source="mtg-echo"] .results-panel .down,
body[data-app-mode="echo-sets"] .down {
  color: #ff6b6b;
}

body[data-source="mtg-tournaments"] .results-panel td strong {
  color: #ffffff;
}

body[data-app-mode="echo-sets"] .summary-grid > div,
body[data-app-mode="echo-sets"] .random-card {
  position: relative;
  background: linear-gradient(180deg, #111617 0%, #0b0e0f 100%);
  border: 1px solid rgba(199, 234, 70, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

body[data-app-mode="echo-sets"] .summary-grid > div::after,
body[data-app-mode="echo-sets"] .random-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 86px;
  height: 86px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  filter: saturate(0);
}

body[data-app-mode="echo-sets"] .summary-grid strong,
body[data-app-mode="echo-sets"] .random-card .eyebrow,
body[data-app-mode="echo-sets"] .random-card-stats strong {
  color: rgba(199, 234, 70, 0.95);
}

body[data-app-mode="echo-sets"] .summary-grid p,
body[data-app-mode="echo-sets"] .random-card h3,
body[data-app-mode="echo-sets"] .random-card p,
body[data-app-mode="echo-sets"] .random-card a {
  color: rgba(255, 255, 255, 0.92);
}

body[data-app-mode="echo-sets"] .random-card-stats span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

body[data-app-mode="echo-sets"] .set-spotlight-panel::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(199, 234, 70, 0.16), transparent 28%),
    radial-gradient(circle at 100% 20%, rgba(10, 168, 107, 0.1), transparent 24%);
}

body[data-source="mtg-card"] .panel,
body[data-source="mtg-card"] .status-card {
  background: linear-gradient(180deg, #0d1112 0%, #0a0d0e 100%);
  border: 1px solid rgba(199, 234, 70, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

body[data-source="mtg-card"] .panel::before,
body[data-source="mtg-card"] .status-card::before {
  content: none;
}

body[data-source="mtg-card"] .panel-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-source="mtg-card"] .panel-header h2,
body[data-source="mtg-card"] .status-card h2 {
  color: #ffffff;
}

body[data-source="mtg-card"] .summary-box,
body[data-source="mtg-card"] .card-rulings,
body[data-source="mtg-card"] .card-signal-grid,
body[data-source="mtg-card"] .card-source-body,
body[data-source="mtg-card"] .sealed-set-cards-box {
  color: rgba(255, 255, 255, 0.88);
}

body[data-source="mtg-card"] .card-source-body p {
  color: rgba(255, 255, 255, 0.88);
}

body[data-app-mode="echo-sets"] .hero,
body[data-app-mode="echo-sets"] .status-card,
body[data-app-mode="echo-sets"] .controls,
body[data-app-mode="echo-sets"] .set-summary-panel,
body[data-app-mode="echo-sets"] .set-spotlight-panel,
body[data-app-mode="echo-sets"] .set-results-panel {
  background: linear-gradient(180deg, #14191b 0%, #0f1315 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.18) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-app-mode="echo-sets"] .hero::before,
body[data-app-mode="echo-sets"] .status-card::before,
body[data-app-mode="echo-sets"] .controls::before,
body[data-app-mode="echo-sets"] .set-summary-panel::before,
body[data-app-mode="echo-sets"] .set-spotlight-panel::before,
body[data-app-mode="echo-sets"] .set-results-panel::before {
  content: none !important;
}

body[data-app-mode="echo-sets"] .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 22px;
}

body[data-app-mode="echo-sets"] .hero > div:first-child {
  padding: 8px 0 0;
}

body[data-app-mode="echo-sets"] .hero h1,
body[data-app-mode="echo-sets"] .status-card h2,
body[data-app-mode="echo-sets"] .panel-header h2 {
  color: #ffffff !important;
}

body[data-app-mode="echo-sets"] .hero .intro,
body[data-app-mode="echo-sets"] .hero p,
body[data-app-mode="echo-sets"] .status-card p,
body[data-app-mode="echo-sets"] .panel-header p,
body[data-app-mode="echo-sets"] .summary-box,
body[data-app-mode="echo-sets"] .summary-box a,
body[data-app-mode="echo-sets"] .random-card-box,
body[data-app-mode="echo-sets"] .random-card-box p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body[data-app-mode="echo-sets"] .status-card {
  min-height: 100%;
  padding: 22px;
}

body[data-app-mode="echo-sets"] .summary-grid > div {
  position: relative;
  background: linear-gradient(180deg, #1a2022 0%, #13181a 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.14) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-app-mode="echo-sets"] .summary-grid > div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}

body[data-app-mode="echo-sets"] .summary-grid strong {
  color: rgba(199, 234, 70, 0.95) !important;
}

body[data-app-mode="echo-sets"] .summary-grid p {
  color: rgba(255, 255, 255, 0.92) !important;
}

body[data-app-mode="echo-sets"] .random-card {
  position: relative;
  background: linear-gradient(180deg, #1a2022 0%, #13181a 100%) !important;
  border: 1px solid rgba(199, 234, 70, 0.14) !important;
  box-shadow: none !important;
}

body[data-app-mode="echo-sets"] .random-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 64px;
  height: 64px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}

body[data-app-mode="echo-sets"] .random-card p,
body[data-app-mode="echo-sets"] .random-card a,
body[data-app-mode="echo-sets"] .random-card span,
body[data-app-mode="echo-sets"] .random-card strong {
  color: rgba(255, 255, 255, 0.92) !important;
}

body[data-app-mode="echo-sets"] .random-card .eyebrow,
body[data-app-mode="echo-sets"] .random-card strong > a:hover,
body[data-app-mode="echo-sets"] .random-card strong > a:focus-visible,
body[data-app-mode="echo-sets"] .random-card-stats strong {
  color: rgba(199, 234, 70, 0.95) !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td[data-label="Weekly Change"],
body[data-app-mode="echo-sets"] .set-results-panel td[data-label="Weekly Percent"] {
  width: 13.5%;
  min-width: 132px;
}

body[data-app-mode="echo-sets"] .set-results-panel td[data-label="Current Price"] {
  width: 17%;
  min-width: 164px;
}

body[data-app-mode="echo-sets"] .set-results-panel td[data-label="Current Price"] .result-metric-value strong {
  font-size: 1.14rem;
  white-space: nowrap;
}

body[data-app-mode="echo-sets"] .set-results-panel th br,
body[data-app-mode="echo-sets"] .set-results-panel .result-metric-label br {
  display: block;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell {
  padding: 0 !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.up {
  background: linear-gradient(180deg, var(--launch-success) 0%, var(--launch-success-soft) 100%) !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.down {
  background: linear-gradient(180deg, #d96464 0%, #bc4747 100%) !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.neutral {
  background: linear-gradient(180deg, #111617 0%, #0b0e0f 100%) !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell .result-metric {
  min-height: 100%;
  height: 100%;
  padding: 16px 14px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.up .result-metric {
  border-color: transparent !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.down .result-metric {
  border-color: transparent !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.neutral .result-metric {
  border-color: transparent !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.up .result-metric-label,
body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.down .result-metric-label {
  color: rgba(18, 12, 12, 0.8) !important;
}

body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.up .result-metric-value,
body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.down .result-metric-value,
body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.up .result-metric-value strong,
body[data-app-mode="echo-sets"] .set-results-panel td.set-movement-cell.down .result-metric-value strong {
  color: #ffffff !important;
}

body[data-source="mtg-card"] .source-status-card {
  margin: 14px 0 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-source="mtg-card"] .source-status-header {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

body[data-source="mtg-card"] .source-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .source-status-pill.is-fresh {
  background: rgba(199, 234, 70, 0.95);
  color: #0b0f10;
}

body[data-source="mtg-card"] .source-status-pill.is-reused {
  background: rgba(255, 116, 116, 0.95);
  color: #180a0a;
}

body[data-source="mtg-card"] .source-status-pill.is-unknown {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

body[data-source="mtg-card"] .source-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body[data-source="mtg-card"] .source-status-grid > div {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-source="mtg-card"] .source-status-grid strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(199, 234, 70, 0.95);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .source-status-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-card"] .source-status-warning {
  margin: 0 0 12px;
  color: #ff9696;
}

body[data-source="mtg-card"] .summary-grid > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-source="mtg-card"] .summary-grid strong,
body[data-source="mtg-card"] .summary-grid p {
  color: rgba(255, 255, 255, 0.9);
}

body[data-source="mtg-card"] .summary-grid strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(199, 234, 70, 0.95);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .card-detail-media .card-image-frame {
  width: 320px;
  height: 448px;
  flex-basis: 320px;
  border-width: 2px;
  border-color: rgba(199, 234, 70, 0.22);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
}

body[data-source="mtg-card"] .card-detail-media .card-image-frame img {
  width: 320px;
  height: 448px;
}

body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-layout {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media .card-image-frame {
  width: 320px;
  height: 248px;
  flex-basis: 320px;
  border-width: 2px;
  border-color: rgba(199, 234, 70, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media .card-image-frame img {
  width: 320px;
  height: 248px;
  object-fit: contain;
  background: transparent;
}

body[data-source="mtg-card"] .card-detail-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

body[data-source="mtg-card"] .card-detail-kpis > div,
body[data-source="mtg-card"] .card-signal-card,
body[data-source="mtg-card"] .card-ruling {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  padding: 14px 16px;
}

body[data-source="mtg-card"] .card-detail-content {
  display: grid;
  gap: 18px;
}

body[data-source="mtg-card"] .sealed-set-cards-intro {
  margin-bottom: 16px;
}

body[data-source="mtg-card"] .sealed-set-cards-list {
  display: grid;
  gap: 14px;
}

body[data-source="mtg-card"] .sealed-set-card-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

body[data-source="mtg-card"] .sealed-set-card-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(199, 234, 70, 0.95);
  border: 1px solid rgba(199, 234, 70, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

body[data-source="mtg-card"] .sealed-set-card-main {
  display: grid;
  gap: 14px;
}

body[data-source="mtg-card"] .sealed-set-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body[data-source="mtg-card"] .sealed-set-card-head .card-image-frame {
  width: 72px;
  height: 100px;
  flex-basis: 72px;
  border-width: 1px;
}

body[data-source="mtg-card"] .sealed-set-card-head .card-image-frame img {
  width: 72px;
  height: 100px;
}

body[data-source="mtg-card"] .sealed-set-card-copy h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

body[data-source="mtg-card"] .sealed-set-card-copy p {
  margin: 0;
}

body[data-source="mtg-card"] .sealed-set-card-copy strong {
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-card"] .sealed-set-card-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(4, minmax(0, 0.72fr));
  gap: 12px;
}

body[data-source="mtg-card"] .sealed-set-card-price,
body[data-source="mtg-card"] .sealed-set-card-usage,
body[data-source="mtg-card"] .sealed-set-card-movement {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  min-height: 100%;
}

body[data-source="mtg-card"] .sealed-set-card-price span,
body[data-source="mtg-card"] .sealed-set-card-usage span,
body[data-source="mtg-card"] .sealed-set-card-movement span {
  display: block;
  margin-bottom: 8px;
  color: rgba(199, 234, 70, 0.95);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .sealed-set-card-price strong,
body[data-source="mtg-card"] .sealed-set-card-usage strong,
body[data-source="mtg-card"] .sealed-set-card-movement strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.96);
}

body[data-source="mtg-card"] .sealed-set-card-usage {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

body[data-source="mtg-card"] .sealed-set-card-usage-tournament {
  border-color: rgba(156, 117, 255, 0.38);
  background: linear-gradient(180deg, rgba(140, 110, 244, 0.34), rgba(96, 72, 188, 0.22));
}

body[data-source="mtg-card"] .sealed-set-card-usage-tournament span {
  color: rgba(233, 225, 255, 0.96);
}

body[data-source="mtg-card"] .sealed-set-card-movement.is-up {
  background: linear-gradient(180deg, rgba(124, 198, 111, 0.88), rgba(88, 177, 106, 0.88));
  border-color: rgba(124, 198, 111, 0.95);
}

body[data-source="mtg-card"] .sealed-set-card-movement.is-down {
  background: linear-gradient(180deg, rgba(210, 95, 95, 0.9), rgba(190, 72, 72, 0.9));
  border-color: rgba(220, 116, 116, 0.95);
}

body[data-source="mtg-card"] .sealed-set-card-movement.is-neutral {
  background: rgba(255, 255, 255, 0.035);
}

body[data-source="mtg-card"] .sealed-set-card-movement.is-up span,
body[data-source="mtg-card"] .sealed-set-card-movement.is-down span,
body[data-source="mtg-card"] .sealed-set-card-movement.is-neutral span {
  color: rgba(8, 15, 16, 0.92);
}

body[data-source="mtg-card"] .sealed-set-card-movement.is-up strong,
body[data-source="mtg-card"] .sealed-set-card-movement.is-down strong {
  color: #ffffff;
}

body[data-source="mtg-card"] .sealed-set-card-movement.is-neutral span,
body[data-source="mtg-card"] .sealed-set-card-movement.is-neutral strong {
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-card"] .card-history-box {
  display: grid;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
}

body[data-source="mtg-card"] .card-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

body[data-source="mtg-card"] .card-history-timeframes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-source="mtg-card"] .card-history-timeframe {
  min-width: 86px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(199, 234, 70, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  box-shadow: none;
}

body[data-source="mtg-card"] .card-history-timeframe.is-active {
  background: var(--launch-success);
  color: #050505;
  border-color: rgba(143, 211, 110, 0.7);
}

body[data-source="mtg-card"] .card-history-timeframe:hover,
body[data-source="mtg-card"] .card-history-timeframe:focus-visible {
  background: rgba(143, 211, 110, 0.18);
}

body[data-source="mtg-card"] .card-history-timeframe.is-active:hover,
body[data-source="mtg-card"] .card-history-timeframe.is-active:focus-visible {
  background: var(--launch-success);
}

body[data-source="mtg-card"] .card-history-range {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body[data-source="mtg-card"] .card-history-range.up {
  color: var(--launch-success);
}

body[data-source="mtg-card"] .card-history-range.down {
  color: #e0524d;
}

body[data-source="mtg-card"] .card-history-spotlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-source="mtg-card"] .card-history-spotlight-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  padding: 14px 16px;
}

body[data-source="mtg-card"] .card-history-spotlight-block span {
  display: block;
  margin-bottom: 8px;
  color: rgba(199, 234, 70, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .card-history-spotlight-block strong {
  color: #ffffff;
  font-size: 1rem;
}

body[data-source="mtg-card"] .card-history-spotlight-block small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  line-height: 1.4;
}

body[data-source="mtg-card"] .card-history-chart-wrap {
  position: relative;
  padding: 12px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 18, 0.96), rgba(11, 14, 13, 0.98));
  overflow: hidden;
}

body[data-source="mtg-card"] .card-history-chart-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 120px;
  height: 120px;
  background: url("/brand-logo-white.png") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

body[data-source="mtg-card"] .card-history-svg {
  display: block;
  width: 100%;
  height: auto;
}

body[data-source="mtg-card"] .card-history-volume-area {
  fill: rgba(120, 216, 255, 0.22);
}

body[data-source="mtg-card"] .card-history-volume-line {
  fill: none;
  stroke: rgba(120, 216, 255, 0.88);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-source="mtg-card"] .card-history-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

body[data-source="mtg-card"] .card-history-bars .card-history-bar {
  fill: rgba(214, 219, 224, 0.52);
  transition: fill 120ms ease, opacity 120ms ease;
}

body[data-source="mtg-card"] .card-history-bars .card-history-bar-tournament {
  fill: rgba(134, 100, 245, 0.92);
  transition: fill 120ms ease, opacity 120ms ease;
}

body[data-source="mtg-card"] .card-history-bars .card-history-bar-hit {
  fill: transparent;
}

body[data-source="mtg-card"] .card-history-bars .card-history-bar-group {
  cursor: pointer;
}

body[data-source="mtg-card"] .card-history-bars .card-history-bar-group:hover .card-history-bar,
body[data-source="mtg-card"] .card-history-bars .card-history-bar-group:focus .card-history-bar {
  fill: rgba(228, 233, 238, 0.66);
}

body[data-source="mtg-card"] .card-history-bars .card-history-bar-group:hover .card-history-bar-tournament,
body[data-source="mtg-card"] .card-history-bars .card-history-bar-group:focus .card-history-bar-tournament {
  fill: rgba(151, 121, 250, 0.98);
}

body[data-source="mtg-card"] .card-history-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-source="mtg-card"] .card-history-area {
  opacity: 0.16;
}

body[data-source="mtg-card"] .card-history-svg-flat .card-history-line {
  stroke-width: 5;
  stroke-dasharray: 0;
}

body[data-source="mtg-card"] .card-history-svg-up .card-history-line {
  stroke: var(--launch-success);
  filter: drop-shadow(0 0 10px rgba(143, 211, 110, 0.18));
}

body[data-source="mtg-card"] .card-history-svg-up .card-history-area {
  fill: rgba(143, 211, 110, 0.22);
}

body[data-source="mtg-card"] .card-history-svg-down .card-history-line {
  stroke: #e0524d;
  filter: drop-shadow(0 0 10px rgba(224, 82, 77, 0.18));
}

body[data-source="mtg-card"] .card-history-svg-down .card-history-area {
  fill: rgba(224, 82, 77, 0.22);
}

body[data-source="mtg-card"] .card-history-point {
  cursor: pointer;
}

body[data-source="mtg-card"] .card-history-point-hit {
  fill: transparent;
}

body[data-source="mtg-card"] .card-history-point-ring {
  fill: rgba(255, 255, 255, 0.04);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

body[data-source="mtg-card"] .card-history-point-dot {
  fill: #ffffff;
  stroke: rgba(5, 5, 5, 0.85);
  stroke-width: 2;
  transition: fill 120ms ease;
  vector-effect: non-scaling-stroke;
}

body[data-source="mtg-card"] .card-history-svg-up .card-history-point.is-active .card-history-point-ring {
  stroke: rgba(143, 211, 110, 0.55);
}

body[data-source="mtg-card"] .card-history-svg-up .card-history-point.is-active .card-history-point-dot,
body[data-source="mtg-card"] .card-history-svg-up .card-history-point:hover .card-history-point-dot {
  fill: var(--launch-success);
}

body[data-source="mtg-card"] .card-history-svg-down .card-history-point.is-active .card-history-point-ring {
  stroke: rgba(224, 82, 77, 0.55);
}

body[data-source="mtg-card"] .card-history-svg-down .card-history-point.is-active .card-history-point-dot,
body[data-source="mtg-card"] .card-history-svg-down .card-history-point:hover .card-history-point-dot {
  fill: #e0524d;
}

body[data-source="mtg-card"] .card-history-flat-overlay text {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .card-history-axis-labels text {
  fill: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-family: var(--sans);
}

body[data-source="mtg-card"] .card-history-y-axis-labels text {
  fill: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-family: var(--sans);
}

body[data-source="mtg-card"] .card-history-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 234, 70, 0.28);
  background: rgba(10, 12, 11, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

body[data-source="mtg-card"] .card-history-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 0.92rem;
}

body[data-source="mtg-card"] .card-history-tooltip span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  line-height: 1.45;
}

body[data-source="mtg-card"] .card-history-flat-note {
  margin: -2px 0 4px;
  padding: 10px 14px;
  border: 1px solid rgba(199, 234, 70, 0.18);
  background: rgba(199, 234, 70, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

body[data-source="mtg-card"] .card-price-caution-note {
  margin: -2px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 181, 72, 0.24);
  background: linear-gradient(180deg, rgba(255, 181, 72, 0.1), rgba(255, 181, 72, 0.04));
  color: rgba(255, 239, 210, 0.96);
  font-weight: 700;
}

body[data-source="mtg-card"] .card-primary-actions {
  display: flex;
  justify-content: flex-start;
}

body[data-source="mtg-card"] .card-primary-buy {
  min-width: 220px;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

body[data-source="mtg-card"] .card-shop-stack-wrap {
  width: min(100%, 210px);
}

body[data-source="mtg-card"] .card-mobile-filter-slot {
  display: none;
}

body[data-source="mtg-card"] .card-detail-kpis span {
  display: block;
  margin-bottom: 8px;
  color: rgba(199, 234, 70, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .card-detail-kpis strong {
  font-size: 1.1rem;
  color: #ffffff;
}

body[data-source="mtg-card"] .card-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 16px;
}

body[data-source="mtg-card"] .card-detail-meta p,
body[data-source="mtg-card"] .card-detail-copy p {
  margin: 0;
}

body[data-source="mtg-card"] .card-oracle-inline {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

body[data-source="mtg-card"] .card-oracle-inline .eyebrow {
  margin: 0;
  color: var(--lime);
}

body[data-source="mtg-card"] .card-oracle-inline p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

body[data-source="mtg-card"] .card-oracle-inline .small {
  color: rgba(255, 255, 255, 0.68);
}

body[data-source="mtg-card"] .card-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}

body[data-source="mtg-card"] .card-meta-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

body[data-source="mtg-card"] .card-copy-grid {
  grid-template-columns: 1fr;
}

body[data-source="mtg-card"] .card-signal-row,
body[data-source="mtg-card"] .card-signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-source="mtg-card"] .card-signal-row {
  margin-bottom: 14px;
}

body[data-source="mtg-card"] .card-signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

body[data-source="mtg-card"] .card-signal-chip.up {
  color: var(--lime);
}

body[data-source="mtg-card"] .card-signal-chip.down {
  color: #ff7b74;
}

body[data-source="mtg-card"] .card-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body[data-source="mtg-card"] .summary-grid {
  justify-content: flex-start;
}

body[data-source="mtg-card"] .card-signal-card h3,
body[data-source="mtg-card"] .card-ruling p {
  margin: 0;
}

body[data-source="mtg-card"] .card-detail-meta p,
body[data-source="mtg-card"] .card-ruling .small,
body[data-source="mtg-card"] .card-ruling p,
body[data-source="mtg-card"] .card-signal-card .small {
  color: rgba(255, 255, 255, 0.86);
}

body[data-source="mtg-card"] .card-detail-meta strong,
body[data-source="mtg-card"] .card-signal-card .eyebrow {
  color: rgba(199, 234, 70, 0.95);
}

body[data-source="mtg-card"] .card-signal-card h3 {
  color: #ffffff;
}

body[data-source="mtg-card"] .card-signal-card .shop-button,
body[data-source="mtg-card"] #runBtn {
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, var(--launch-action-bright) 0%, var(--launch-action) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
}

body[data-source="mtg-card"] #runBtn:hover,
body[data-source="mtg-card"] .card-signal-card .shop-button:hover {
  background: linear-gradient(180deg, #2ed8a7 0%, #14c78c 100%);
}

body[data-source="mtg-card"] .card-page-toolbar-box select {
  background: #f8fafb;
}

body[data-source="mtg-card"] .card-signal-card .shop-button {
  margin-top: 10px;
  width: fit-content;
}

body[data-source="mtg-card"] .card-rulings {
  display: grid;
  gap: 12px;
}

body[data-source="mtg-card"] .card-tournament-list {
  display: grid;
  gap: 14px;
}

body[data-source="mtg-card"] .card-tournament-list-wrap {
  display: grid;
  gap: 14px;
}

body[data-source="mtg-card"] .card-tournament-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
}

body[data-source="mtg-card"] .card-tournament-item[hidden] {
  display: none !important;
}

body[data-source="mtg-card"] .card-tournament-list-actions {
  display: flex;
  justify-content: center;
}

body[data-source="mtg-card"] .card-tournament-list-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

body[data-source="mtg-card"] .card-tournament-list-toggle:hover,
body[data-source="mtg-card"] .card-tournament-list-toggle:focus-visible {
  border-color: rgba(199, 234, 70, 0.45);
  background: rgba(199, 234, 70, 0.1);
}

body[data-source="mtg-card"] .card-tournament-list-toggle[aria-expanded="true"] {
  border-color: rgba(10, 168, 107, 0.35);
}

body[data-source="mtg-card"] .card-tournament-item .eyebrow,
body[data-source="mtg-card"] .card-tournament-item .small {
  margin: 0;
}

body[data-source="mtg-card"] .card-tournament-item h3,
body[data-source="mtg-card"] .card-tournament-item p {
  margin: 0;
}

body[data-source="mtg-card"] .card-tournament-item h3 {
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

body[data-source="mtg-card"] .card-tournament-item a {
  color: #ffffff;
}

body[data-source="mtg-card"] .card-tournament-item a:hover,
body[data-source="mtg-card"] .card-tournament-item a:focus-visible {
  color: var(--lime);
}

body[data-source="mtg-card"] .card-tournament-item .eyebrow {
  color: rgba(199, 234, 70, 0.95);
}

body[data-source="mtg-card"] .card-tournament-item .small {
  color: rgba(255, 255, 255, 0.7);
}

body[data-source="mtg-card"] .card-tournament-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournament-deck-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-items: center;
  margin-top: 6px;
}

.tournament-card-separator {
  color: rgba(8, 34, 26, 0.35);
}

body[data-source="mtg-card"] .tournament-card-separator {
  color: rgba(255, 255, 255, 0.24);
}

.tournament-card-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.tournament-card-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.tournament-card-link:hover,
.tournament-card-link:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.tournament-card-count {
  font-weight: 700;
}

.tournament-card-zone {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  border: 1px solid rgba(8, 34, 26, 0.12);
  background: rgba(8, 34, 26, 0.04);
  color: rgba(8, 34, 26, 0.7);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .tournament-card-zone {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.tournament-card-hover {
  display: none;
}

.tournament-deck-toggle-wrap {
  margin-top: 8px;
}

.tournament-deck-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(8, 34, 26, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: #08221a;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.tournament-deck-toggle:hover,
.tournament-deck-toggle:focus-visible {
  border-color: rgba(10, 168, 107, 0.3);
  background: rgba(238, 255, 201, 0.86);
}

body[data-source="mtg-card"] .tournament-deck-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body[data-source="mtg-card"] .tournament-deck-toggle:hover,
body[data-source="mtg-card"] .tournament-deck-toggle:focus-visible {
  border-color: rgba(199, 234, 70, 0.4);
  background: rgba(199, 234, 70, 0.1);
}

.tournament-deck-expanded {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 34, 26, 0.08);
  background: rgba(8, 34, 26, 0.03);
}

.tournament-deck-expanded[hidden] {
  display: none !important;
}

#sealedSetCardsSection[hidden] {
  display: none !important;
}

body[data-source="mtg-card"] .tournament-deck-expanded {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tournament-deck-section {
  display: grid;
  gap: 8px;
}

.tournament-deck-section-label {
  margin: 0;
  color: var(--hunter);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-source="mtg-card"] .tournament-deck-section-label {
  color: var(--lime);
}

.tournament-deck-section-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

body[data-source="mtg-tournaments"] .results-panel th,
body[data-source="mtg-tournaments"] .results-panel td {
  vertical-align: top;
}

body[data-source="mtg-tournaments"] .results-panel td[data-label="Tournament"] strong,
body[data-source="mtg-tournaments"] .results-panel td[data-label="Archetype"] strong {
  display: block;
}

body[data-source="mtg-tournaments"] .results-panel td[data-label="Tournament"] p,
body[data-source="mtg-tournaments"] .results-panel td[data-label="Cards"] p {
  margin: 4px 0 0;
}

body[data-source="mtg-tournaments"] .results-panel td[data-label="Cards"] {
  min-width: 280px;
}

body[data-source="mtg-tournaments"] .results-panel td strong {
  display: block;
  color: #08221a;
}

body[data-source="mtg-tournaments"] .tournament-deck-preview,
body[data-source="mtg-tournaments"] .tournament-deck-toggle-wrap {
  margin-top: 8px;
}

body[data-source="mtg-tournaments"] .tournament-deck-expanded {
  margin-top: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .tournament-card-hover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 30;
    display: block;
    width: 180px;
    padding: 6px;
    border: 1px solid rgba(8, 34, 26, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(7, 27, 24, 0.22);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
  }

  body[data-source="mtg-card"] .tournament-card-hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(6, 10, 9, 0.98);
  }

  .tournament-card-hover img {
    display: block;
    width: 100%;
    height: auto;
  }

  .tournament-card-entry:hover .tournament-card-hover,
  .tournament-card-entry:focus-within .tournament-card-hover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.tournament-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.tournament-source-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(6, 31, 22, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.tournament-source-card p {
  margin: 0;
}

@media (max-width: 980px) {
  body[data-source="mtg-card"] .card-page-top,
  body[data-source="mtg-card"] .card-meta-grid,
  body[data-source="mtg-card"] .card-copy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-source="mtg-card"] .shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body[data-source="mtg-card"] .top-nav {
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: -14px;
    margin-bottom: 12px;
    padding: 12px 16px 14px;
  }

  body[data-source="mtg-card"] .brand {
    width: 100%;
    justify-content: center;
    font-size: 1.02rem;
    text-align: center;
  }

  body[data-source="mtg-card"] .nav-dropdowns {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  body[data-source="mtg-card"] .nav-dropdown {
    flex: 1 1 0;
    max-width: 150px;
  }

  body[data-source="mtg-card"] .nav-dropdown summary {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
  }

  body[data-source="mtg-card"] #marketTicker {
    display: none;
  }

  body[data-source="mtg-card"] .card-page-top {
    display: contents;
  }

  body[data-source="mtg-card"] .card-page-intro {
    order: 2;
  }

  body[data-source="mtg-card"] .card-detail-panel {
    order: 3;
  }

  body[data-source="mtg-card"] .card-page-toolbar {
    order: 4;
  }

  body[data-source="mtg-card"] .card-history-panel {
    order: 5;
  }

  body[data-source="mtg-card"] .card-meta-grid {
    order: 6;
  }

  body[data-source="mtg-card"] .card-copy-grid {
    order: 7;
  }

  body[data-source="mtg-card"] .card-howto-panel {
    order: 8;
  }

  body[data-source="mtg-card"] .card-source-panel {
    order: 9;
  }

  body[data-source="mtg-card"] .card-related-panel {
    order: 10;
  }

  body[data-source="mtg-card"] .card-page-intro {
    text-align: center;
    max-width: none;
    margin-bottom: 2px;
  }

  body[data-source="mtg-card"] .card-page-intro h1 {
    margin: 0 0 6px;
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 0.94;
    text-wrap: balance;
  }

  body[data-source="mtg-card"] .card-page-intro .intro {
    margin: 0 auto;
    max-width: 36ch;
    font-size: 0.95rem;
  }

  body[data-source="mtg-card"] .card-page-toolbar {
    justify-items: center;
  }

  body[data-source="mtg-card"] .card-page-toolbar-box {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: end;
    padding: 10px 12px 12px;
  }

  body[data-source="mtg-card"] .card-page-toolbar-box .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 0.68rem;
  }

  body[data-source="mtg-card"] .card-set-picker {
    margin-bottom: 0;
  }

  body[data-source="mtg-card"] .card-set-picker span {
    font-size: 0.84rem;
  }

  body[data-source="mtg-card"] .card-page-toolbar-box select {
    min-height: 42px;
    padding: 10px 40px 10px 12px;
    font-size: 0.98rem;
  }

  body[data-source="mtg-card"] #runBtn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.94rem;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
  }

  body[data-source="mtg-card"] .card-detail-panel::before {
    top: -16px;
    height: 120px;
  }

  body[data-source="mtg-card"] .panel-header {
    justify-content: center;
    text-align: center;
  }

  body[data-source="mtg-card"] .card-detail-panel .panel-header {
    display: none;
  }

  body[data-source="mtg-card"] .card-detail-layout {
      grid-template-columns: 148px minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }

  body[data-source="mtg-card"] .card-detail-media {
    display: flex;
    justify-content: center;
  }

  body[data-source="mtg-card"] .card-detail-media .card-image-frame,
  body[data-source="mtg-card"] .card-detail-media .card-image-frame img {
      width: 148px;
      height: 207px;
    }

  body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media .card-image-frame,
  body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media .card-image-frame img {
    width: min(100%, 260px);
    height: auto;
    aspect-ratio: 200 / 156;
  }

  body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-content {
    width: 100%;
    min-width: 0;
  }

  body[data-source="mtg-card"] .card-detail-content {
    gap: 14px;
  }

  body[data-source="mtg-card"] .card-history-spotlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-source="mtg-card"] .card-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
  }

  body[data-source="mtg-card"] .card-detail-kpis > div:first-child {
    grid-column: 1 / -1;
  }

  body[data-source="mtg-card"] .card-detail-kpis > div:first-child strong {
    font-size: 1.45rem;
  }

  body[data-source="mtg-card"] .card-primary-actions {
    justify-content: flex-start;
  }

  body[data-source="mtg-card"] .card-primary-buy {
    min-width: 0;
    width: 100%;
  }

  body[data-source="mtg-card"] .card-shop-stack-wrap {
    width: 100%;
  }

  body[data-source="mtg-card"] .card-detail-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-source="mtg-card"] .card-detail-meta p,
  body[data-source="mtg-card"] .card-oracle-inline p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-source="mtg-card"] .card-signal-row {
    margin-bottom: 4px;
  }

  body[data-source="mtg-card"] .card-signal-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body[data-source="mtg-card"] .summary-grid {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-source="mtg-card"] .card-signal-grid {
    grid-template-columns: 1fr;
  }

  body[data-source="mtg-card"] .card-tournament-item {
    padding: 14px;
  }

  .tournament-deck-section-cards {
    gap: 6px 8px;
  }
}

@media (max-width: 520px) {
  body[data-source="mtg-card"] .top-nav {
    padding: 8px 12px 10px;
  }

  body[data-source="mtg-card"] .brand {
    font-size: 0.94rem;
    gap: 8px;
  }

  body[data-source="mtg-card"] .brand::before {
    width: 22px;
    height: 22px;
  }

  body[data-source="mtg-card"] .nav-dropdowns {
    gap: 10px;
  }

  body[data-source="mtg-card"] .nav-dropdown {
    max-width: none;
  }

  body[data-source="mtg-card"] .nav-dropdown summary {
    padding: 8px 11px;
    font-size: 0.88rem;
  }

  body[data-source="mtg-card"] .card-page-intro .eyebrow {
    display: none;
  }

  body[data-source="mtg-card"] .card-page-intro h1 {
    margin: 0 0 4px;
    font-size: clamp(1.65rem, 8.2vw, 2.1rem);
    line-height: 0.96;
  }

  body[data-source="mtg-card"] .card-page-intro .intro {
    display: none;
  }

  body[data-source="mtg-card"] .card-detail-panel,
  body[data-source="mtg-card"] .card-meta-grid > .panel,
  body[data-source="mtg-card"] .card-copy-grid > .panel,
  body[data-source="mtg-card"] .card-source-panel {
    padding: 12px 10px;
  }

  body[data-source="mtg-card"] .card-detail-layout {
      grid-template-columns: 1fr;
      gap: 6px;
    }

  body[data-source="mtg-card"] .card-page-toolbar-box {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 6px 8px 8px;
  }

  body[data-source="mtg-card"] .card-mobile-filter-slot {
    display: block;
    margin-top: 0;
  }

  body[data-source="mtg-card"] .card-mobile-filter-slot .card-page-toolbar-box {
    border-color: rgba(199, 234, 70, 0.16);
    background: linear-gradient(180deg, rgba(14, 20, 18, 0.84), rgba(9, 12, 11, 0.8));
  }

  body[data-source="mtg-card"] .card-mobile-filter-slot .card-page-toolbar-box::after {
    opacity: 0.04;
  }

  body[data-source="mtg-card"] .card-page-toolbar-box .eyebrow {
    display: none;
  }

  body[data-source="mtg-card"] .card-set-picker span {
    display: none;
  }

  body[data-source="mtg-card"] #runBtn {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  body[data-source="mtg-card"] .card-detail-media {
    justify-content: center;
  }

  body[data-source="mtg-card"] .card-detail-media .card-image-frame,
  body[data-source="mtg-card"] .card-detail-media .card-image-frame img {
      width: 156px;
      height: 218px;
    }

  body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media .card-image-frame,
  body[data-source="mtg-card"][data-card-kind="sealed"] .card-detail-media .card-image-frame img {
      width: min(100%, 260px);
      height: 186px;
    }

  body[data-source="mtg-card"] .card-detail-content {
    width: 100%;
    gap: 6px;
  }

  body[data-source="mtg-card"] .card-detail-kpis {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body[data-source="mtg-card"] .card-history-toolbar {
    align-items: stretch;
  }

  body[data-source="mtg-card"] .card-history-timeframes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-source="mtg-card"] .card-history-timeframe {
    min-width: 0;
    padding: 8px 10px;
  }

  body[data-source="mtg-card"] .card-history-spotlight {
    grid-template-columns: 1fr;
  }

  body[data-source="mtg-card"] .card-history-chart-wrap {
    margin-left: -12px;
    margin-right: -12px;
    padding: 4px 0 14px;
    border-left: 0;
    border-right: 0;
  }

  body[data-source="mtg-card"] .card-history-svg {
    display: block;
    width: 100%;
    height: auto;
  }

  body[data-source="mtg-card"] .card-history-chart-wrap::after {
    right: 10px;
    bottom: 10px;
    width: 96px;
    height: 96px;
    opacity: 0.028;
  }

  body[data-source="mtg-card"] .card-history-y-axis-labels text {
    font-size: 0.84rem;
  }

  body[data-source="mtg-card"] .card-history-axis-labels text {
    font-size: 0.92rem;
  }

  body[data-source="mtg-card"] .card-history-tooltip {
    z-index: 20;
  }

  body[data-source="mtg-card"] .card-history-line {
    stroke-width: 5.5;
  }

  body[data-source="mtg-card"] .card-history-volume-line {
    stroke-width: 3;
  }

  body[data-source="mtg-card"] .card-history-point.is-active .card-history-point-ring {
    stroke-width: 3.5;
  }

  body[data-source="mtg-card"] .card-detail-kpis > div {
    min-width: 0;
  }

  body[data-source="mtg-card"] .card-detail-kpis > div:first-child {
    grid-column: auto;
  }

  body[data-source="mtg-card"] .card-detail-kpis > div:first-child strong {
    font-size: 1.55rem;
  }

  body[data-source="mtg-card"] .card-detail-kpis > div:not(:first-child) {
    display: none;
  }

  body[data-source="mtg-card"] .card-detail-kpis strong {
    overflow-wrap: anywhere;
  }

  body[data-source="mtg-card"] .card-primary-buy {
    min-height: 36px;
    font-size: 0.88rem;
  }

  body[data-source="mtg-card"] .card-primary-actions {
    margin-top: 0;
    margin-bottom: 0;
  }

  body[data-source="mtg-card"] .card-signal-row,
  body[data-source="mtg-card"] .card-detail-content > .small {
    display: none;
  }

  body[data-source="mtg-card"] .card-detail-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 0.96rem;
  }

  body[data-source="mtg-card"] .card-oracle-inline {
    display: grid;
    gap: 8px;
    margin-top: 0;
  }

  body[data-source="mtg-card"] .card-oracle-inline,
  body[data-source="mtg-card"] .card-detail-kpis > div,
  body[data-source="mtg-card"] .card-ruling,
  body[data-source="mtg-card"] .card-signal-card {
    padding: 12px;
  }

  body[data-source="mtg-card"] .summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body[data-source="mtg-card"] .source-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body[data-source="mtg-card"] .summary-grid > div {
    min-height: 0;
    padding: 10px 10px 12px;
  }

  body[data-source="mtg-card"] .summary-grid strong {
    margin-bottom: 6px;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  body[data-source="mtg-card"] .summary-grid p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body[data-source="mtg-card"] .card-meta-grid {
    gap: 14px;
  }

  body[data-source="mtg-card"] .sealed-set-card-row {
    grid-template-columns: 1fr;
  }

  body[data-source="mtg-card"] .sealed-set-card-rank {
    width: 48px;
    min-height: 48px;
  }

  body[data-source="mtg-card"] .sealed-set-card-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  body[data-source="mtg-card"] .sealed-set-card-head .card-image-frame {
    width: 64px;
    height: 90px;
    flex-basis: 64px;
  }

  body[data-source="mtg-card"] .sealed-set-card-head .card-image-frame img {
    width: 64px;
    height: 90px;
  }

  body[data-source="mtg-card"] .sealed-set-card-stats {
    grid-template-columns: 1fr;
  }
}

.status-card h2,
.panel-header h2 {
  color: #08221a;
  letter-spacing: -0.03em;
}

.up {
  color: var(--launch-brand);
  text-shadow: 0 0 14px rgba(0, 168, 107, 0.08);
}

.down {
  color: #d94b46;
}

@media (max-width: 860px) {
  .top-nav {
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin-top: -20px;
    margin-bottom: 8px;
    padding-bottom: 10px;
    padding-inline: 16px;
  }

  .nav-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .nav-dropdowns {
    align-self: auto;
    justify-content: flex-end;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 10px;
    min-width: min(260px, 100%);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 1180px);
    margin-top: 20px;
  }

  .panel.controls.mobile-collapsible-controls {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .panel.controls.mobile-collapsible-controls .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 0;
  }

  .panel.controls.mobile-collapsible-controls .panel-header h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
  }

  .panel.controls.mobile-collapsible-controls .controls-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--sans);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: none;
  }

  .panel.controls.mobile-collapsible-controls.is-open {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 20, 21, 0.98), rgba(11, 14, 15, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .panel.controls.mobile-collapsible-controls.is-open .panel-header {
    margin-bottom: 12px;
  }

  .panel.controls.mobile-collapsible-controls .controls-mobile-section + .controls-mobile-section {
    margin-top: 12px;
  }

  .shop-cell {
    min-width: 178px;
  }

  .affiliate-stack {
    grid-template-columns: 1fr;
    max-width: 178px;
    width: 178px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 16px, 1180px);
    margin-top: 12px;
  }

  .top-nav .nav-search-input {
    min-height: 44px;
    font-size: 0.94rem;
  }

  .status-card,
  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 14px;
  }

  tr {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(7, 27, 24, 0.07);
  }

  td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) 1fr;
    gap: 12px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(7, 27, 24, 0.07);
  }

  td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  td[data-label="Card"] {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  td[data-label="Card"]::before {
    display: none;
  }

  .card-cell {
    gap: 10px;
  }

  .shop-cell {
    min-width: 0;
  }

  .shop-cell .affiliate-stack,
  .watch-card .affiliate-stack {
    width: 100%;
    max-width: 100%;
  }

  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .prediction-row {
    grid-template-columns: 1fr;
  }

  .prediction-row > * {
    border-right: 0;
    border-bottom: 1px solid rgba(199, 234, 70, 0.14);
  }

  .prediction-row > *:last-child {
    border-bottom: 0;
  }

  .watch-card {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }

  .random-card {
    grid-template-columns: 1fr;
  }

  .random-card .card-image-frame,
  .random-card .card-image-frame img {
    width: 74px;
    height: 104px;
  }

  .random-card .art-card-image-frame,
  .random-card .art-card-image-frame img {
    width: 100%;
    max-width: 180px;
    height: 128px;
  }

  body[data-source="mtg-mixed"] .results-panel tr,
  body[data-source="mtg"] .results-panel tr,
  body[data-source="mtg-tournaments"] .results-panel tr,
  body[data-source="mtg-sealed"] .results-panel tr,
  body[data-source="mtg-echo"] .results-panel tr,
  body[data-app-mode="echo-sets"] tr {
    border-color: rgba(199, 234, 70, 0.18);
    background: linear-gradient(180deg, #111617 0%, #0b0e0f 100%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  }

  body[data-source="mtg-mixed"] .results-panel td,
  body[data-source="mtg"] .results-panel td,
  body[data-source="mtg-tournaments"] .results-panel td,
  body[data-source="mtg-sealed"] .results-panel td,
  body[data-source="mtg-echo"] .results-panel td,
  body[data-app-mode="echo-sets"] td {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.9);
  }

  body[data-source="mtg-mixed"] .results-panel tbody tr,
  body[data-source="mtg"] .results-panel tbody tr,
  body[data-source="mtg-tournaments"] .results-panel tbody tr,
  body[data-source="mtg-sealed"] .results-panel tbody tr,
  body[data-source="mtg-echo"] .results-panel tbody tr,
  body[data-app-mode="echo-sets"] tbody tr {
    border-radius: 0;
  }

  body[data-source="mtg-mixed"] .results-panel tbody td:first-child,
  body[data-source="mtg"] .results-panel tbody td:first-child,
  body[data-source="mtg-tournaments"] .results-panel tbody td:first-child,
  body[data-source="mtg-sealed"] .results-panel tbody td:first-child,
  body[data-source="mtg-echo"] .results-panel tbody td:first-child,
  body[data-app-mode="echo-sets"] tbody td:first-child,
  body[data-source="mtg-mixed"] .results-panel tbody td:last-child,
  body[data-source="mtg"] .results-panel tbody td:last-child,
  body[data-source="mtg-tournaments"] .results-panel tbody td:last-child,
  body[data-source="mtg-sealed"] .results-panel tbody td:last-child,
  body[data-source="mtg-echo"] .results-panel tbody td:last-child,
  body[data-app-mode="echo-sets"] tbody td:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  body[data-source="mtg-mixed"] .results-panel td::before,
  body[data-source="mtg"] .results-panel td::before,
  body[data-source="mtg-tournaments"] .results-panel td::before,
  body[data-source="mtg-sealed"] .results-panel td::before,
  body[data-source="mtg-echo"] .results-panel td::before,
  body[data-app-mode="echo-sets"] td::before {
    color: rgba(199, 234, 70, 0.92);
  }

  body[data-app-mode="movers"] .results-panel td.metric-set,
  body[data-app-mode="movers"] .results-panel td[data-label="Source"],
  body[data-app-mode="movers"] .results-panel td[data-label="Change"],
  body[data-app-mode="movers"] .results-panel td[data-label="Current Price"],
  body[data-app-mode="movers"] .results-panel td[data-label="Percent"] {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body[data-app-mode="movers"] .results-panel td:not([data-label="Card"]):not([data-label="Shop"]) {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-app-mode="movers"] .results-panel td:not([data-label="Card"]):not([data-label="Shop"])::before {
    display: none;
  }

  body[data-app-mode="movers"] .results-panel td[data-label="Shop"] {
    grid-template-columns: 1fr;
  }

  body[data-app-mode="movers"] .results-panel td[data-label="Shop"]::before {
    margin-bottom: 8px;
  }

  body[data-app-mode="echo-sets"] .summary-grid > div::after,
  body[data-app-mode="echo-sets"] .random-card::after {
    width: 64px;
    height: 64px;
  }
}

