:root {
  color-scheme: dark;
  --xr-bg: #050706;
  --xr-bg-soft: #09100d;
  --xr-panel: rgba(255,255,255,.055);
  --xr-panel-strong: rgba(255,255,255,.082);
  --xr-line: rgba(255,255,255,.14);
  --xr-line-soft: rgba(255,255,255,.08);
  --xr-ink: #f8f2e4;
  --xr-muted: rgba(248,242,228,.52);
  --xr-dim: rgba(248,242,228,.34);
  --xr-green: #36f2b0;
  --xr-green-soft: rgba(54,242,176,.10);
  --xr-red: #ff7069;
  --xr-amber: #e5bd69;
  --xr-blue: #78b8ff;
  --xr-max: 1500px;
  --xr-content: 1380px;
  --xr-sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --xr-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
}

html { background: var(--xr-bg) !important; }
.core-page {
  min-width: 0;
  margin: 0;
  color: var(--xr-ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(20,103,73,.24), transparent 32%),
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px),
    var(--xr-bg);
  background-size: auto, 72px 72px, 72px 72px, auto;
  font-family: var(--xr-sans);
}
.core-page a { color: inherit; }
.core-page button, .core-page input, .core-page select { font-family: inherit; }
.core-page :focus-visible { outline: 2px solid var(--xr-green); outline-offset: 3px; }

.core-topbar {
  position: sticky;
  top: 14px;
  left: auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  width: min(var(--xr-max), calc(100% - 28px));
  height: auto;
  margin: 14px auto 0;
  padding: 8px 10px;
  border: 1px solid var(--xr-line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.19), rgba(255,255,255,.048) 42%, rgba(255,255,255,.12)), rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(255,255,255,.08), 0 28px 90px rgba(0,0,0,.30);
  backdrop-filter: blur(18px) saturate(145%);
}
.core-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-width: 0;
  padding-left: 2px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.core-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
}
.core-brand small {
  display: block;
  margin-top: 2px;
  color: var(--xr-muted);
  font: 500 9px var(--xr-mono);
  white-space: nowrap;
}
.core-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.core-nav::-webkit-scrollbar { display: none; }
.core-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(248,242,228,.56);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.core-nav a:hover { color: var(--xr-ink); text-shadow: 0 0 14px rgba(54,242,176,.38); }
.core-nav a[aria-current="page"] { color: var(--xr-green); font-weight: 950; text-shadow: 0 0 16px rgba(54,242,176,.34); }
.core-profile {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.core-profile span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #07100d;
  background: var(--xr-green);
  box-shadow: 0 0 0 3px rgba(54,242,176,.16);
  font: 10px var(--xr-mono);
}

.core-main { width: min(var(--xr-content), calc(100% - 36px)); margin: 0 auto; padding: 34px 0 64px; }
.workspace-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: 42px 4px 28px;
  border-bottom: 1px solid var(--xr-line);
}
.workspace-kicker { color: var(--xr-green); font: 700 10px/1.4 var(--xr-mono); letter-spacing: .14em; text-transform: uppercase; }
.workspace-title { max-width: 840px; margin: 10px 0 12px; color: var(--xr-ink); font-size: clamp(30px, 4vw, 58px); line-height: .98; letter-spacing: -.055em; }
.workspace-copy { max-width: 720px; margin: 0; color: var(--xr-muted); font-size: 14px; line-height: 1.75; }
.workspace-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.workspace-chip { padding: 6px 9px; border: 1px solid var(--xr-line); border-radius: 999px; color: var(--xr-muted); font: 10px var(--xr-mono); }
.workspace-chip.safe { border-color: rgba(54,242,176,.24); color: var(--xr-green); background: var(--xr-green-soft); }
.decision-rail { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--xr-line); border-radius: 18px; background: rgba(255,255,255,.035); overflow: hidden; }
.decision-step { min-width: 0; padding: 16px; border-left: 1px solid var(--xr-line-soft); }
.decision-step:first-child { border-left: 0; }
.decision-step b { display: block; margin-bottom: 7px; color: var(--xr-dim); font: 650 9px var(--xr-mono); letter-spacing: .12em; }
.decision-step strong { display: block; color: var(--xr-ink); font-size: 13px; line-height: 1.35; }
.decision-step span { display: block; margin-top: 6px; color: var(--xr-green); font: 700 10px var(--xr-mono); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.section-heading h2 { margin: 0; color: var(--xr-ink); font-size: 17px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--xr-muted); font-size: 11px; }
.core-footer { padding: 14px 24px 22px; border-top: 1px solid var(--xr-line); color: var(--xr-dim); text-align: center; font: 10px/1.6 var(--xr-mono); }

/* Shared execution panel: futures-like shell reused by spot and Alpha. */
.xr-desk-panel { margin-top: 18px; overflow: hidden; border: 1px solid var(--xr-line); border-radius: 18px; background: var(--xr-panel); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.xr-desk-panel.is-loading { min-height: 180px; display: grid; place-items: center; }
.xr-desk-tools { display: flex; align-items: center; gap: 9px; padding: 11px 13px; overflow-x: auto; border-bottom: 1px solid var(--xr-line-soft); scrollbar-width: none; }
.xr-desk-tools::-webkit-scrollbar { display: none; }
.xr-desk-tools label, .xr-desk-field { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.xr-desk-tools label > span, .xr-desk-field > span { color: var(--xr-dim); font: 9px var(--xr-mono); }
.xr-desk-tools select { min-height: 30px; max-width: 190px; padding: 0 28px 0 9px; border: 1px solid var(--xr-line); border-radius: 8px; color: var(--xr-ink); background: #111613; font-size: 11px; font-weight: 750; }
.xr-desk-spacer { flex: 1 1 auto; min-width: 4px; }
.xr-desk-modes, .xr-desk-periods { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--xr-line-soft); border-radius: 9px; background: rgba(255,255,255,.022); }
.xr-desk-modes button, .xr-desk-periods button { min-height: 25px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--xr-muted); background: transparent; font-size: 10.5px; font-weight: 750; cursor: pointer; }
.xr-desk-modes button.active, .xr-desk-periods button.active { color: var(--xr-green); background: transparent; box-shadow: none; }
.xr-desk-chart { position: relative; height: 480px; min-height: 300px; overflow: hidden; background: rgba(0,0,0,.12); }
.xr-tv-chart > div:not(.xr-tv-empty) { z-index: 0; }
.xr-tv-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 22px; color: var(--xr-muted); background: rgba(7,9,8,.82); font-size: 11px; text-align: center; pointer-events: none; }
.xr-tv-empty[hidden] { display: none; }
.xr-chart-modebar { display: flex; min-height: 37px; align-items: center; gap: 4px; padding: 5px 12px; overflow-x: auto; border-bottom: 1px solid var(--xr-line-soft); background: #080b09; scrollbar-width: none; }
.xr-chart-modebar::-webkit-scrollbar { display: none; }
.xr-chart-modebar button { min-height: 27px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: var(--xr-muted); background: transparent; font-size: 10px; font-weight: 720; cursor: pointer; }
.xr-chart-modebar > button { flex: 0 0 auto; white-space: nowrap; }
.xr-chart-modebar button.active { color: var(--xr-green); background: transparent; border-color: transparent; box-shadow: none; }
.xr-chart-modebar button:disabled { opacity: .46; cursor: not-allowed; }
.xr-chart-modebar span { min-width: 0; margin-left: 4px; overflow: hidden; color: var(--xr-dim); font: 9px var(--xr-mono); text-overflow: ellipsis; white-space: nowrap; }
.xr-indicator-strip { display: flex; flex: 0 0 auto; align-items: center; gap: 1px; margin-left: 5px; padding-left: 7px; border-left: 1px solid var(--xr-line-soft); }
.xr-indicator-strip button { display: inline-flex; min-height: 25px; align-items: center; gap: 5px; padding: 0 7px; color: var(--xr-dim); font: 650 9px var(--xr-mono); white-space: nowrap; }
.xr-indicator-strip button::before { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ''; opacity: .35; }
.xr-indicator-strip button.active { color: var(--xr-ink); background: transparent; border-color: transparent; box-shadow: none; }
.xr-indicator-strip button.active::before { background: var(--indicator-color); opacity: .9; }
.xr-indicator-strip button:not(.active) { color: rgba(238,234,222,.30); }
.xr-indicator-strip button:not(.active)::before { box-sizing: border-box; border: 1px solid currentColor; background: transparent; opacity: .8; }
.xr-chart-load-state { margin-left: auto !important; color: var(--xr-green) !important; }
.xr-chart-load-state:empty { display: none; }
.xr-professional-chart { position: relative; }
.xr-professional-tv, .xr-professional-tv .tradingview-widget-container__widget { width: 100%; height: 100%; }
.xr-professional-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; color: var(--xr-muted); background: #070908; font-size: 11px; text-align: center; pointer-events: none; }
.xr-professional-loading[hidden] { display: none; }
@media (max-width: 760px) {
  .xr-chart-modebar { padding-inline: 8px; }
  .xr-chart-modebar > button { padding-inline: 7px; }
  .xr-chart-modebar > [data-role="chartModeNote"],
  .xr-chart-modebar > #futures-chart-mode-note { display: none; }
  .xr-indicator-strip { margin-left: 2px; padding-left: 4px; }
  .xr-indicator-strip button { padding-inline: 5px; font-size: 8px; }
}
.xr-candle-svg { display: block; width: 100%; height: 100%; }
.xr-candle-svg .grid line { stroke: rgba(255,255,255,.055); stroke-width: 1; vector-effect: non-scaling-stroke; }
.xr-candle-svg .grid text { fill: var(--xr-dim); font: 9px var(--xr-mono); }
.xr-candle-svg .wick { stroke-width: 1; vector-effect: non-scaling-stroke; }
.xr-desk-empty { display: grid; min-height: 160px; place-items: center; padding: 22px; color: var(--xr-muted); font-size: 11px; text-align: center; }
.xr-desk-empty.compact { min-height: 80px; }
.xr-desk-resizer { position: relative; z-index: 4; display: grid; height: 10px; margin-top: -10px; place-items: end center; border: 0; background: transparent; cursor: ns-resize; touch-action: none; }
.xr-desk-resizer i { width: 34px; height: 1px; margin-bottom: 2px; border-radius: 999px; background: var(--xr-green); opacity: .45; transition: width .15s ease, opacity .15s ease; }
.xr-desk-resizer b { position: absolute; right: 13px; bottom: 11px; padding: 2px 5px; border-radius: 4px; color: var(--xr-muted); background: rgba(7,9,8,.86); font: 9px var(--xr-mono); opacity: 0; pointer-events: none; }
.xr-desk-resizer:hover i, .xr-desk-resizer:focus-visible i, .xr-desk-resizer.dragging i { width: 44px; opacity: 1; }
.xr-desk-resizer:focus-visible b, .xr-desk-resizer.dragging b { opacity: 1; }
.xr-desk-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 13px; border-bottom: 1px solid var(--xr-line-soft); color: var(--xr-dim); font: 9px var(--xr-mono); }
.xr-desk-governance { display: flex; min-width: 0; overflow-x: auto; border-bottom: 1px solid var(--xr-line-soft); scrollbar-width: none; }
.xr-desk-governance::-webkit-scrollbar { display: none; }
.xr-desk-gov-step { flex: 1 1 0; min-width: 140px; padding: 10px 12px; border-left: 1px solid var(--xr-line-soft); }
.xr-desk-gov-step:first-child { border-left: 0; }
.xr-desk-gov-step span { display: flex; align-items: center; gap: 6px; color: var(--xr-dim); font: 9px var(--xr-mono); }
.xr-desk-gov-step span::before { width: 6px; height: 6px; border-radius: 50%; background: var(--xr-dim); content: ''; }
.xr-desk-gov-step b { display: block; margin-top: 5px; overflow: hidden; color: var(--xr-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.xr-desk-gov-step small { display: block; margin-top: 3px; overflow: hidden; color: var(--xr-dim); font: 8.5px var(--xr-mono); text-overflow: ellipsis; white-space: nowrap; }
.xr-desk-gov-step.active span::before, .xr-desk-gov-step.pass span::before { background: var(--xr-green); }
.xr-desk-gov-step.pending span::before { background: var(--xr-amber); }
.xr-desk-gov-step.block span::before { background: var(--xr-red); }
.xr-desk-gov-step.locked { opacity: .58; }
.xr-desk-section-label, .xr-desk-detail-head { display: flex; justify-content: space-between; gap: 12px; padding: 8px 13px; border-bottom: 1px solid var(--xr-line-soft); }
.xr-desk-section-label b, .xr-desk-detail-head b { color: var(--xr-ink); font-size: 11px; }
.xr-desk-section-label span, .xr-desk-detail-head span { color: var(--xr-dim); font: 9px var(--xr-mono); }
.xr-desk-fund-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 1px solid var(--xr-line-soft); }
.xr-desk-fund { min-width: 0; padding: 11px 13px; border-left: 1px solid var(--xr-line-soft); }
.xr-desk-fund:first-child { border-left: 0; }
.xr-desk-fund span { display: block; color: var(--xr-muted); font-size: 9px; }
.xr-desk-fund b { display: block; margin-top: 5px; overflow: hidden; color: var(--xr-ink); font: 750 16px var(--xr-mono); text-overflow: ellipsis; white-space: nowrap; }
.xr-desk-fund small { display: block; margin-top: 4px; overflow: hidden; color: var(--xr-dim); font: 8.5px var(--xr-mono); text-overflow: ellipsis; white-space: nowrap; }
.xr-desk-fund.positive b { color: var(--xr-green); }.xr-desk-fund.negative b { color: var(--xr-red); }
.xr-desk-details { display: grid; grid-template-columns: 1fr 1fr; }
.xr-desk-details-shell { border-top: 1px solid var(--xr-line-soft); background: var(--xr-panel); }
.xr-desk-details-shell > summary { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 13px; color: var(--xr-muted); cursor: pointer; list-style: none; user-select: none; }
.xr-desk-details-shell > summary::-webkit-details-marker { display: none; }
.xr-desk-details-shell > summary span { color: var(--xr-ink); font-size: 10px; font-weight: 680; }
.xr-desk-details-shell > summary small { color: var(--xr-dim); font: 9px var(--xr-mono); }
.xr-desk-details-shell > summary::after { width: 7px; height: 7px; margin-left: auto; border-right: 1px solid var(--xr-muted); border-bottom: 1px solid var(--xr-muted); content: ""; transform: rotate(45deg) translate(-2px,-2px); }
.xr-desk-details-shell[open] > summary { border-bottom: 1px solid var(--xr-line-soft); }
.xr-desk-details-shell[open] > summary::after { transform: rotate(225deg); }
.xr-desk-detail { min-width: 0; border-left: 1px solid var(--xr-line-soft); }.xr-desk-detail:first-child { border-left: 0; }
.xr-desk-table-wrap { overflow-x: auto; }
.xr-desk-detail table { width: 100%; border-collapse: collapse; font-size: 10px; }
.xr-desk-detail th, .xr-desk-detail td { padding: 8px 10px; border-bottom: 1px solid var(--xr-line-soft); color: var(--xr-muted); text-align: left; white-space: nowrap; }
.xr-desk-detail th { color: var(--xr-dim); font: 8.5px var(--xr-mono); }

/* Futures desk: keep the existing data/rendering code, replace its visual shell. */
.core-futures {
  --bg: var(--xr-bg); --surface: var(--xr-panel); --surface2: rgba(255,255,255,.038); --surface3: rgba(255,255,255,.07);
  --border: var(--xr-line); --border2: rgba(255,255,255,.20);
  --t1: var(--xr-ink); --t2: rgba(248,242,228,.72); --t3: var(--xr-muted); --t4: var(--xr-dim);
  --red: var(--xr-red); --green: var(--xr-green); --blue: var(--xr-blue); --amber: var(--xr-amber);
  --red-soft: rgba(255,112,105,.10); --green-soft: var(--xr-green-soft); --blue-soft: rgba(120,184,255,.10); --amber-soft: rgba(229,189,105,.10);
  padding-bottom: 0 !important;
}
.core-futures > header { background: transparent; border: 0; position: static; }
.core-futures main.wrap { width: 100%; max-width: 1160px; padding: 0 32px 64px; }
.core-futures #spot-view, .core-futures #journal-card { display: none !important; }
.core-futures .main-card, .core-futures .eye-strip, .core-futures .trades-card, .core-futures .pm-card {
  border: 1px solid var(--xr-line); background: var(--xr-panel); box-shadow: inset 0 1px rgba(255,255,255,.06); border-radius: 18px;
}
.core-futures .eye-strip { margin-top: 12px; }
.core-futures .tools { flex-wrap: nowrap; gap: 12px; min-height: 56px; overflow-x: auto; padding: 9px 14px; border-color: var(--xr-line-soft); scrollbar-width: none; }
.core-futures .tools::-webkit-scrollbar { display: none; }
.core-futures .tools .sp { min-width: 0; }
.core-futures .trades-hdr { border-color: var(--xr-line-soft); }
.core-futures .execution-header { flex-wrap: wrap; }
.core-futures .execution-header > .trades-tag:first-of-type { margin-left: auto; }
.core-futures .execution-pane-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--xr-line-soft); color: var(--xr-muted); font-size: 11px; }
.core-futures .execution-pane-head span:first-child { color: var(--xr-ink); font-weight: 800; }
.core-futures .execution-pane-head span:last-child { margin-left: auto; font-family: var(--xr-mono); font-size: 9px; }
.core-futures .governance-rail { border-bottom: 1px solid var(--xr-line-soft); background: rgba(255,255,255,.012); }
.core-futures .governance-loading { padding: 12px 14px; color: var(--xr-dim); font: 10px var(--xr-mono); }
.core-futures .strategy-context { display: grid; grid-template-columns: minmax(210px,.75fr) minmax(0,2.25fr); }
.core-futures .strategy-current { min-width: 0; padding: 11px 14px; border-right: 1px solid var(--xr-line-soft); }
.core-futures .strategy-current > span { display: block; color: var(--xr-dim); font: 700 9px var(--xr-mono); }
.core-futures .strategy-current > strong { display: block; margin-top: 4px; overflow: hidden; color: var(--xr-ink); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.core-futures .strategy-current > small { display: block; margin-top: 3px; color: var(--xr-dim); font: 9px var(--xr-mono); }
.core-futures .strategy-checks { display: flex; min-width: 0; align-items: center; gap: 7px; padding: 10px 14px; flex-wrap: wrap; }
.core-futures .strategy-check { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 5px 7px; min-height: 28px; padding: 5px 9px; border: 1px solid var(--xr-line-soft); border-radius: 999px; background: rgba(255,255,255,.024); }
.core-futures .strategy-check::before { grid-row: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--xr-dim); content: ''; }
.core-futures .strategy-check > span { grid-column: 2; grid-row: 1; color: var(--xr-dim); font: 700 8.5px var(--xr-mono); }
.core-futures .strategy-check > b { grid-column: 1 / -1; grid-row: 2; overflow: hidden; max-width: 150px; color: var(--xr-muted); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.core-futures .strategy-check.active::before, .core-futures .strategy-check.pass::before { background: var(--xr-green); box-shadow: 0 0 0 3px rgba(54,242,176,.08); }
.core-futures .strategy-check.block::before { background: var(--xr-red); box-shadow: 0 0 0 3px rgba(255,112,105,.08); }
.core-futures .strategy-check.pending::before { background: var(--xr-amber); }
.core-futures .governance-source { padding: 6px 14px; border-top: 1px solid var(--xr-line-soft); color: var(--xr-dim); font: 8.5px var(--xr-mono); text-align: right; }
.core-futures .fund-overview { border-bottom: 1px solid var(--xr-line-soft); background: rgba(255,255,255,.016); }
.core-futures .fund-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 8px 14px; border-bottom: 1px solid var(--xr-line-soft); }
.core-futures .fund-overview-head b { color: var(--xr-ink); font-size: 12px; }
.core-futures .fund-overview-head span { color: var(--xr-dim); font: 9px var(--xr-mono); text-align: right; }
.core-futures .fund-metrics { display: grid; grid-template-columns: 1.15fr repeat(4,minmax(0,1fr)); }
.core-futures .fund-metric { min-width: 0; padding: 12px 14px; border-left: 1px solid var(--xr-line-soft); }
.core-futures .fund-metric:first-child { border-left: 0; }
.core-futures .fund-metric > span { display: block; color: var(--xr-muted); font-size: 10px; }
.core-futures .fund-metric > strong { display: block; margin-top: 5px; overflow: hidden; color: var(--xr-ink); font: 750 17px/1.2 var(--xr-mono); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.core-futures .fund-metric > small { display: block; min-height: 14px; margin-top: 4px; overflow: hidden; color: var(--xr-dim); font: 9px/1.45 var(--xr-mono); text-overflow: ellipsis; white-space: nowrap; }
.core-futures .fund-metric.positive > strong { color: var(--xr-green); }
.core-futures .fund-metric.negative > strong { color: var(--xr-red); }
.core-futures .cell-sub { color: var(--xr-dim); font-size: 9px; white-space: nowrap; }
.core-futures .trade-review { padding: 11px 14px; border-bottom: 1px solid var(--xr-line-soft); background: rgba(255,255,255,.022); }
.core-futures .trade-review-title { margin-bottom: 7px; color: var(--xr-muted); font: 700 10px var(--xr-mono); }
.core-futures .trade-review-row { display: grid; grid-template-columns: minmax(90px,.35fr) minmax(0,1fr); gap: 12px; padding: 4px 0; color: var(--xr-muted); font-size: 11px; line-height: 1.55; }
.core-futures .trade-review-row b { color: var(--xr-dim); font-weight: 650; }
.core-futures .tab-btn, .core-futures .syn-chip, .core-futures .rb-tf, .core-futures .cyc-chip { color: var(--xr-muted); background: rgba(255,255,255,.035); }
.core-futures .sym-btn.active, .core-futures .iv-btn.active { color: var(--xr-green); background: transparent; border-color: transparent; box-shadow: none; }
.core-futures .chart-box { height: 520px; min-height: 300px; max-height: 900px; }
.core-futures .chart-resizer { position: relative; z-index: 4; display: grid; height: 10px; margin-top: -10px; place-items: end center; border: 0; color: var(--xr-dim); background: transparent; cursor: ns-resize; touch-action: none; user-select: none; }
.core-futures .chart-resizer span { width: 34px; height: 1px; margin-bottom: 2px; border-radius: 999px; background: var(--xr-green); opacity: .45; transition: width .15s ease, opacity .15s ease; }
.core-futures .chart-resizer b { position: absolute; right: 14px; bottom: 11px; padding: 2px 5px; border-radius: 4px; color: var(--xr-muted); background: rgba(7,9,8,.86); font: 600 9px var(--xr-mono); opacity: 0; pointer-events: none; }
.core-futures .chart-resizer:hover span, .core-futures .chart-resizer:focus-visible span, .core-futures .chart-resizer.dragging span { width: 44px; opacity: 1; }
.core-futures .chart-resizer:focus-visible b, .core-futures .chart-resizer.dragging b { opacity: 1; }
.core-futures .market-context { min-width: 0; align-items: center; overflow: hidden; border-left: 1px solid var(--xr-line-soft); border-right: 1px solid var(--xr-line-soft); }
.core-futures .market-context .ms-seg { padding: 0 8px; border-left: 1px solid var(--xr-line-soft); color: var(--xr-muted); font-size: 10px; line-height: 1.5; white-space: nowrap; }
.core-futures .market-context .ms-seg:first-child { border-left: 0; }
.core-futures .market-context .ms-seg b { margin-right: 4px; color: var(--xr-dim); font: 700 9px var(--xr-mono); }
.core-futures .rtable thead { background: #111613; }
.core-futures .rtable th, .core-futures .rtable td { border-color: var(--xr-line-soft); }
.core-futures .rtable tbody tr:hover td { background: rgba(255,255,255,.04); }

/* Alpha desk: remove the old template skin and excessive ambient motion. */
.core-alpha {
  --bg: var(--xr-bg); --bg-card: var(--xr-panel); --bg-hover: rgba(255,255,255,.05);
  --text-primary: var(--xr-ink); --text-sec: rgba(248,242,228,.68); --text-muted: var(--xr-muted);
  --green: var(--xr-green); --green-deep: var(--xr-green); --green-light: var(--xr-green-soft);
  --red: var(--xr-red); --red-deep: var(--xr-red); --red-light: rgba(255,112,105,.10);
  --blue: var(--xr-blue); --blue-light: rgba(120,184,255,.10); --gold: var(--xr-amber); --gold-light: rgba(229,189,105,.10);
  --border: var(--xr-line); --shadow-sm: inset 0 1px rgba(255,255,255,.06); --shadow-md: 0 16px 40px rgba(0,0,0,.24);
}
.core-alpha::before, .core-alpha #ambient-glow { display: none !important; }
.core-alpha .banner-warn { display: none; }
.core-alpha .main-content { width: min(var(--xr-content), calc(100% - 36px)); max-width: none; padding: 0 0 64px; gap: 18px; }
.core-alpha .alpha-context { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; margin: 18px 0 6px; }
.core-alpha .lane-tabs { min-width: 0; overflow-x: auto; background: rgba(255,255,255,.035); border: 1px solid var(--xr-line); scrollbar-width: none; }
.core-alpha .lane-tab-slider { background: var(--xr-green); }
.core-alpha .lane-tab.active { color: #07100d; }
.core-alpha .nav-stats { padding: 0 4px; }
.core-alpha .nav-nav-value { font-size: 22px; }
.core-alpha .nav-roi { font-size: 16px; }
.core-alpha .lane-grid { gap: 12px; }
.core-alpha .lane-card, .core-alpha .chart-panel, .core-alpha .signals-panel, .core-alpha .trades-panel, .core-alpha .watchlist-panel {
  border: 1px solid var(--xr-line); background: var(--xr-panel); box-shadow: inset 0 1px rgba(255,255,255,.06); border-radius: 18px;
}
.core-alpha .lane-card { padding: 18px; cursor: pointer; transform: none !important; }
.core-alpha .lane-card::after { display: none; }
.core-alpha .lane-card:hover { transform: translateY(-2px) !important; border-color: rgba(54,242,176,.34); }
.core-alpha .lane-roi-value { font-size: clamp(28px, 3.2vw, 40px); }
.core-alpha .bottom-row { grid-template-columns: minmax(0,1fr) 360px; gap: 12px; }
.core-alpha .bottom-row2 { gap: 12px; }
.core-alpha .signal-card, .core-alpha .roi-bar-track, .core-alpha .search-input, .core-alpha .sort-btn, .core-alpha .chart-range-btn { background: rgba(255,255,255,.035); border-color: var(--xr-line-soft); }
.core-alpha .watchlist-table th, .core-alpha .watchlist-table td, .core-alpha .trade-row { border-color: var(--xr-line-soft); }
.core-alpha .watchlist-table tr.clickable:hover td { background: rgba(255,255,255,.04); }
.core-alpha .page-footer { border-color: var(--xr-line); background: rgba(255,255,255,.025); color: var(--xr-muted); }
.core-alpha .tmodal { color: var(--xr-ink); background: #101512; border: 1px solid var(--xr-line); }
.core-spot .core-main { padding-top: 18px; }
.core-spot .spot-status { margin-top: 0; }

@media (max-width: 1080px) {
  .core-topbar { gap: 8px; }
  .core-nav a { min-height: 30px; padding-inline: 8px; font-size: 11px; }
  .core-brand small, .core-profile b { display: none; }
  .core-profile { min-height: 34px; padding: 3px; }
  .workspace-intro { grid-template-columns: 1fr; gap: 22px; }
  .core-alpha .lane-grid { grid-template-columns: repeat(2, 1fr); }
  .core-alpha .bottom-row { grid-template-columns: 1fr; }
  .core-alpha .bottom-row2 { grid-template-columns: 1fr; }
  .core-alpha .signals-panel { max-height: none; }
}

@media (max-width: 760px) {
  .core-topbar { position: relative; top: 0; grid-template-columns: auto minmax(0,1fr) auto; width: calc(100% - 24px); margin-top: 12px; padding: 7px 9px; border-radius: 22px; }
  .core-nav { justify-self: stretch; justify-content: center; width: 100%; }
  .core-nav a { min-height: 29px; padding-inline: 7px; font-size: 10.5px; }
  .core-brand { gap: 7px; font-size: 12px; }
  .core-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; }
  .core-profile { min-height: 34px; padding: 3px; }
  .core-main, .core-alpha .main-content { width: min(100% - 24px, var(--xr-content)); }
  .core-futures main.wrap { width: 100%; padding-inline: 12px; }
  .workspace-intro { padding-top: 28px; }
  .workspace-title { font-size: clamp(30px, 10vw, 46px); }
  .decision-rail { grid-template-columns: 1fr; }
  .decision-step { border-left: 0; border-top: 1px solid var(--xr-line-soft); }
  .decision-step:first-child { border-top: 0; }
  .core-futures .chart-box { min-height: 300px; }
  .core-futures .tools { gap: 8px; padding-inline: 10px; }
  .core-futures .execution-header > .trades-tag:first-of-type { margin-left: 0; }
  .xr-desk-tools { padding-inline: 10px; }
  .xr-desk-governance .xr-desk-gov-step { flex: 0 0 154px; }
  .xr-desk-fund-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .xr-desk-fund:first-child { grid-column: 1/-1; }
  .xr-desk-details { grid-template-columns: 1fr; }
  .xr-desk-detail { border-left: 0; border-top: 1px solid var(--xr-line-soft); }
  .core-futures .strategy-context { grid-template-columns: 1fr; }
  .core-futures .strategy-current { border-right: 0; border-bottom: 1px solid var(--xr-line-soft); }
  .core-futures .governance-source { text-align: left; }
  .core-futures .fund-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .core-futures .fund-metric { border-top: 1px solid var(--xr-line-soft); }
  .core-futures .fund-metric:first-child { grid-column: 1 / -1; border-top: 0; }
  .core-futures .fund-metric:nth-child(2) { border-left: 0; }
  .core-alpha .alpha-context { grid-template-columns: 1fr; }
  .core-alpha .nav-stats { justify-content: flex-start; }
  .core-alpha .bottom-row2 { grid-template-columns: 1fr; }
  .core-alpha .watchlist-panel { max-width: 100%; overflow-x: auto; }
  .core-alpha .watchlist-header, .core-alpha .watchlist-table { min-width: 520px; }
}

@media (max-width: 480px) {
  .core-topbar { gap: 11px; }
  .core-brand > span:last-child { display: none; }
  .core-nav { gap: 1px; }
  .core-nav a { min-height: 28px; padding-inline: 5px; font-size: 10px; }
  .core-profile span { width: 26px; height: 26px; }
  .workspace-title { font-size: 36px; }
  .workspace-copy { font-size: 13px; }
  .core-futures .chart-box { min-height: 300px; }
  .core-futures .fund-overview-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .core-futures .fund-overview-head span { text-align: left; }
  .core-futures .fund-metric:nth-child(4) { border-left: 0; }
  .core-futures .trade-review-row { grid-template-columns: 1fr; gap: 2px; }
  .core-alpha .lane-grid { grid-template-columns: 1fr; }
  .core-alpha .chart-kpis { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
  .core-alpha .watchlist-panel { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .core-page *, .core-page *::before, .core-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v9 three-desk unification: one ledger shell, three different decision jobs. */
.core-page {
  --xr-bg: #080a09;
  --xr-bg-soft: #0a0d0b;
  --xr-panel: #0b0e0c;
  --xr-panel-strong: #101411;
  --xr-line: rgba(235,238,228,.13);
  --xr-line-soft: rgba(235,238,228,.075);
  --xr-ink: #eeeade;
  --xr-muted: rgba(238,234,222,.58);
  --xr-dim: rgba(238,234,222,.34);
  --xr-green: #9cdfc0;
  --xr-green-soft: rgba(125,211,174,.10);
  --xr-red: #e67870;
  --xr-content: 1240px;
  --xr-max: 1240px;
  background: radial-gradient(circle at 80% 0%,rgba(57,95,75,.13),transparent 30%), var(--xr-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.core-page,
.core-page *,
.core-page *::before,
.core-page *::after { box-sizing: border-box; }
.core-page .core-topbar {
  top: 10px;
  width: min(var(--xr-max),calc(100% - 28px));
  margin-top: 10px;
  padding: 7px 9px;
  border-color: var(--xr-line);
  border-radius: 14px;
  background: rgba(16,20,17,.96);
  box-shadow: 0 14px 42px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}
.core-page .core-mark { border-color: rgba(235,238,228,.16); border-radius: 8px; background: #191d1a; }
.core-page .core-nav a { min-height: 30px; border-radius: 7px; color: rgba(238,234,222,.52); text-shadow: none; }
.core-page .core-nav a:hover { color: var(--xr-ink); background: rgba(255,255,255,.035); text-shadow: none; }
.core-page .core-nav a[aria-current="page"] { color: #b8ead4; background: rgba(125,211,174,.08); text-shadow: none; }
.core-page .core-profile span { color: #0a1510; background: var(--xr-green); box-shadow: none; }

.core-page .core-main,
.core-alpha .main-content,
.core-futures main.wrap {
  width: min(var(--xr-content),calc(100% - 28px));
  max-width: none;
  margin: 0 auto;
  padding: 24px 0 64px;
}
.core-alpha .main-content { gap: 16px; }
.core-futures .sec { padding-top: 0; }
.core-page .xr-desk-panel { margin-top: 0; overflow: visible; border-radius: 14px; background: var(--xr-panel); box-shadow: 0 22px 60px rgba(0,0,0,.22); }
.core-futures .main-card,
.core-futures .eye-strip,
.core-futures .trades-card,
.core-futures .pm-card,
.core-alpha .lane-card,
.core-alpha .chart-panel,
.core-alpha .signals-panel,
.core-alpha .trades-panel,
.core-alpha .watchlist-panel,
.core-spot .spot-workspace {
  border-color: var(--xr-line);
  border-radius: 14px;
  background: var(--xr-panel);
  box-shadow: none;
}

.core-page .xr-desk-tools,
.core-futures .tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 56px;
  min-width: 0;
  gap: 12px;
  padding: 9px 12px;
  overflow: visible;
  border-color: var(--xr-line-soft);
  border-radius: 13px 13px 0 0;
  background: var(--xr-panel-strong);
  font-size: 16px;
}
.core-page .xr-desk-field > span,
.core-futures .tab-label { color: var(--xr-dim); font: 9px var(--xr-mono); }
.core-futures .xr-desk-field { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.core-futures .xr-desk-field > .tab-label { align-self: auto; margin-right: 0; letter-spacing: normal; text-transform: none; }
.core-page .xr-desk-tools select,
.core-futures .futures-compact-field select {
  min-height: 34px;
  height: 34px;
  border-color: var(--xr-line);
  border-radius: 7px;
  color: var(--xr-ink);
  background: #090b0a;
  font-size: 11px;
  font-weight: 680;
}
.core-page .xr-desk-modes,
.core-page .xr-desk-periods,
.core-futures .execution-tabs {
  gap: 0;
  padding: 2px;
  border-color: var(--xr-line-soft);
  border-radius: 7px;
  background: #090b0a;
}
.core-page .xr-desk-modes button,
.core-page .xr-desk-periods button,
.core-futures .execution-tab { min-height: 29px; border-radius: 5px; color: rgba(238,234,222,.46); font-weight: 680; }
.core-page .xr-desk-modes button.active,
.core-page .xr-desk-periods button.active,
.core-futures .execution-tab.active,
.core-futures .iv-btn.active { color: var(--xr-green); background: transparent; border-color: transparent; box-shadow: none; }

.core-page .xr-native-select { position: absolute; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px; min-height: 0 !important; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; opacity: 0; pointer-events: none; }
.core-page .xr-custom-select { position: relative; width: 176px; }
.core-page .xr-desk-field:nth-child(2) .xr-custom-select { width: 170px; }
.core-page .xr-custom-select-trigger { display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; border: 1px solid var(--xr-line); border-radius: 7px; color: var(--xr-ink); background: #090b0a; font-size: 11px; font-weight: 680; cursor: pointer; }
.core-page .xr-custom-select-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.core-page .xr-custom-select-trigger > i { width: 7px; height: 7px; flex: 0 0 auto; border-right: 1.5px solid rgba(238,234,222,.70); border-bottom: 1.5px solid rgba(238,234,222,.70); transform: rotate(45deg) translateY(-2px); }
.core-page .xr-custom-select.open .xr-custom-select-trigger > i { transform: rotate(225deg) translate(-1px,-1px); }
.core-page .xr-custom-select-trigger:focus-visible { outline: 0; border-color: var(--xr-green); box-shadow: 0 0 0 2px rgba(125,211,174,.14); }
.core-page .xr-custom-select-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 120; width: 100%; min-width: 190px; max-height: min(360px,calc(100vh - 180px)); padding: 5px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--xr-line); border-radius: 9px; background: #101411; box-shadow: 0 18px 48px rgba(0,0,0,.52); }
.core-page .xr-custom-select-menu[hidden] { display: none; }
.core-page .xr-custom-select-menu button { display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--xr-muted); background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.core-page .xr-custom-select-menu button:hover,
.core-page .xr-custom-select-menu button:focus-visible,
.core-page .xr-custom-select-menu button[aria-selected="true"] { outline: 0; color: var(--xr-ink); background: rgba(125,211,174,.08); }
.core-page .xr-custom-select-menu button[aria-selected="true"] i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--xr-green); }

.core-page .xr-desk-chart,
.core-futures .chart-box { height: 480px; background: #070908; }
.core-page .xr-desk-resizer,
.core-futures .chart-resizer { height: 10px; margin-top: -10px; border: 0; background: transparent; }
.core-page .xr-desk-resizer i,
.core-futures .chart-resizer span { width: 34px; height: 1px; background: var(--xr-green); opacity: .45; }
.core-page .xr-desk-foot,
.core-futures .chart-foot { min-height: 34px; padding: 6px 12px; border-color: var(--xr-line-soft); background: #090b0a; }

.core-page .xr-desk-governance {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 20px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--xr-line-soft);
  background: #0d100e;
}
.core-page .xr-desk-governance .xr-desk-gov-step { display: grid; grid-template-columns: auto auto; flex: 0 0 auto; min-width: 0; align-items: center; gap: 0 6px; padding: 0; border: 0; }
.core-page .xr-desk-governance .xr-desk-gov-step span { color: var(--xr-dim); white-space: nowrap; }
.core-page .xr-desk-governance .xr-desk-gov-step span::before { width: 5px; height: 5px; }
.core-page .xr-desk-governance .xr-desk-gov-step b { margin: 0; color: rgba(238,234,222,.76); font-size: 10px; font-weight: 650; }
.core-page .xr-desk-governance .xr-desk-gov-step small { display: none; }

.core-page .xr-desk-section-label,
.core-futures .fund-overview-head { min-height: 36px; align-items: center; padding: 9px 13px 7px; border-color: var(--xr-line-soft); background: var(--xr-panel); }
.core-page .xr-desk-fund-grid,
.core-futures .fund-metrics { grid-template-columns: 1.25fr repeat(4,minmax(0,1fr)); gap: 1px; padding: 1px 0; border-color: var(--xr-line-soft); background: var(--xr-line-soft); }
.core-page .xr-desk-fund,
.core-futures .fund-metric { padding: 12px 14px; border: 0; background: var(--xr-panel); }
.core-page .xr-desk-fund b,
.core-futures .fund-metric > strong { font-size: 16px; font-weight: 680; letter-spacing: -.035em; }
.core-page .xr-desk-fund:first-child b,
.core-futures .fund-metric:first-child > strong { color: #f4f0e5; font-size: 21px; }
.core-page .xr-desk-details.is-tabbed { display: block; background: var(--xr-panel); }
.core-page .xr-desk-detail-tabs { display: flex; gap: 18px; padding: 0 13px; border-bottom: 1px solid var(--xr-line-soft); }
.core-page .xr-desk-detail-tabs button { position: relative; min-height: 38px; padding: 0; border: 0; color: var(--xr-dim); background: transparent; font-size: 10px; font-weight: 680; cursor: pointer; }
.core-page .xr-desk-detail-tabs button span { margin-left: 6px; color: rgba(238,234,222,.26); font: 9px var(--xr-mono); }
.core-page .xr-desk-detail-tabs button.active { color: var(--xr-ink); }
.core-page .xr-desk-detail-tabs button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--xr-green); content: ""; }
.core-page .xr-desk-detail-ledger { border: 0; }
.core-page .xr-desk-detail-ledger .xr-desk-detail-head { display: none; }
.core-page .xr-desk-detail th { color: var(--xr-dim); background: #090b0a; }

.core-futures .main-card { border-radius: 14px 14px 0 0; border-bottom: 0; }
.core-futures #paper-execution-card { margin-top: 0; border-top: 1px solid var(--xr-line-soft); border-radius: 0 0 14px 14px; }
.core-futures .execution-header { display: none; }
.core-futures .governance-rail > .xr-desk-governance { border-bottom: 0; }
.core-futures .governance-source { display: none; }
.core-futures .execution-pane-head { min-height: 36px; padding: 9px 13px; background: var(--xr-panel); }
.core-futures .rtable th { color: var(--xr-dim); background: #090b0a; }
.core-futures .rtable td { color: var(--xr-muted); }
.core-futures .eye-strip,
.core-futures .pm-card { margin-top: 16px; }

.core-spot .spot-status { margin-top: 16px; border: 1px solid var(--xr-line); border-radius: 14px; background: var(--xr-panel); }
.core-spot .section-heading { margin: 24px 0 10px; }
.core-alpha .alpha-context { min-height: 54px; margin: 0; padding: 8px 10px; border: 1px solid var(--xr-line); border-radius: 14px; background: var(--xr-panel); }
.core-alpha .lane-tabs { border: 0; background: #090b0a; }
.core-alpha .nav-stats { padding: 0 6px; }
.core-alpha .lane-grid { gap: 0; overflow: hidden; border: 1px solid var(--xr-line); border-radius: 14px; background: var(--xr-panel); }
.core-alpha .lane-card { min-height: 0; padding: 12px 14px; border: 0; border-left: 1px solid var(--xr-line-soft); border-radius: 0; background: var(--xr-panel); transform: none !important; }
.core-alpha .lane-card:first-child { border-left: 0; }
.core-alpha .lane-card.active-lane { border-color: var(--xr-green); box-shadow: inset 0 2px var(--xr-green); }
.core-alpha .lane-card:hover { background: #0f1410; transform: none !important; }
.core-alpha .lane-roi-value { font-size: 26px; }
.core-alpha .lane-card-header { margin-bottom: 8px; }
.core-alpha .lane-alloc { margin-bottom: 10px; }
.core-alpha .roi-bars { gap: 4px; margin-bottom: 10px; }
.core-alpha .lane-footer { padding-top: 9px; }
.core-alpha .lane-active-dot { animation: none; }
.core-alpha .chart-panel,
.core-alpha .signals-panel,
.core-alpha .trades-panel,
.core-alpha .watchlist-panel { padding: 16px; border-radius: 14px; background: var(--xr-panel); }
.core-alpha .bottom-row { grid-template-columns: minmax(0,1fr) minmax(320px,360px); }
.core-alpha .bottom-row2 { grid-template-columns: 280px minmax(0,1fr); }
.core-alpha .bottom-row,
.core-alpha .bottom-row2 { gap: 16px; }
.core-alpha .page-footer,
.core-footer { border-color: var(--xr-line); background: transparent; color: var(--xr-dim); }

@media (max-width: 1080px) {
  .core-alpha .lane-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--xr-line-soft); }
  .core-alpha .lane-card:nth-child(4) { border-top: 1px solid var(--xr-line-soft); }
}

/* Keep the desktop control bar on one line through compact split-window widths.
   The labels stay readable while fields and period padding give back space. */
@media (min-width: 701px) and (max-width: 960px) {
  .core-page .xr-desk-tools,
  .core-futures .tools { flex-wrap: nowrap; gap: 7px; }
  .core-page .xr-desk-field,
  .core-futures .xr-desk-field { order: 1; min-width: 0; }
  .core-page .xr-custom-select { width: 112px; }
  .core-page .xr-desk-field:nth-child(2) .xr-custom-select { width: 104px; }
  .core-page .xr-desk-spacer,
  .core-futures .xr-desk-spacer { display: none; }
  .core-page .xr-desk-modes,
  .core-futures .execution-tabs { order: 2; flex: 0 0 auto; margin: 0; }
  .core-page .xr-desk-periods { order: 3; flex: 0 0 auto; min-width: 0; margin: 0 0 0 auto; overflow: visible; justify-content: flex-start; }
  .core-page .xr-desk-modes button,
  .core-page .xr-desk-periods button,
  .core-futures .execution-tab,
  .core-futures .iv-btn { padding-inline: 3px; }
}

/* Narrow split panes still have enough room for one compact row. Preserve the
   same control order and trim chrome before falling back to the mobile stack. */
@media (min-width: 530px) and (max-width: 700px) {
  .core-page .xr-desk-tools,
  .core-futures .tools { flex-wrap: nowrap; gap: 4px; }
  .core-page .xr-desk-field,
  .core-futures .xr-desk-field { order: 1; min-width: 0; gap: 4px; }
  .core-page .xr-custom-select { width: 82px; }
  .core-page .xr-desk-field:nth-child(2) .xr-custom-select { width: 78px; }
  .core-page .xr-custom-select-trigger { gap: 5px; padding-inline: 6px; }
  .core-page .xr-desk-spacer,
  .core-futures .xr-desk-spacer { display: none; }
  .core-page .xr-desk-modes,
  .core-futures .execution-tabs { order: 2; flex: 0 0 auto; margin: 0; }
  .core-page .xr-desk-periods { order: 3; flex: 0 0 auto; min-width: 0; margin: 0 0 0 auto; overflow: visible; justify-content: flex-start; }
  .core-page .xr-desk-modes button,
  .core-page .xr-desk-periods button,
  .core-futures .execution-tab,
  .core-futures .iv-btn { padding-inline: 1px; font-size: 9.5px; }
}

/* Once the compact row genuinely no longer fits, move modes and periods as a
   complete unit instead of squeezing labels or letting controls escape. */
@media (max-width: 529px) {
  .core-page .xr-desk-tools,
  .core-futures .tools { flex-wrap: wrap; row-gap: 0; }
  .core-page .xr-desk-field,
  .core-futures .xr-desk-field { order: 1; min-width: 0; }
  .core-page .xr-desk-spacer,
  .core-futures .xr-desk-spacer { display: block; order: 2; flex: 0 0 100%; width: 100%; min-width: 100%; height: 0; }
  .core-page .xr-desk-modes,
  .core-futures .execution-tabs { order: 3; flex: 0 0 auto; margin-top: 11px; }
  .core-page .xr-desk-periods { order: 4; flex: 1 1 0; min-width: 0; margin: 11px 0 0; overflow-x: auto; justify-content: flex-end; scrollbar-width: none; }
  .core-page .xr-desk-periods::-webkit-scrollbar { display: none; }
}

@media (max-width: 529px) {
  .core-page .xr-custom-select { width: 138px; }
  .core-page .xr-desk-field:nth-child(2) .xr-custom-select { width: 126px; }
  .core-page .xr-desk-modes,
  .core-page .xr-desk-periods { display: flex; width: auto; }
  .core-page .xr-desk-modes button,
  .core-page .xr-desk-periods button,
  .core-futures .execution-tab { padding-inline: 3px; }
}

@media (max-width: 760px) {
  .core-page .core-topbar { position: relative; top: 0; width: calc(100% - 24px); margin-top: 12px; border-radius: 14px; }
  .core-page .core-main,
  .core-alpha .main-content,
  .core-futures main.wrap { width: calc(100% - 24px); padding: 14px 0 48px; }
  .core-page .xr-desk-fund-grid,
  .core-futures .fund-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .core-page .xr-desk-fund:first-child,
  .core-futures .fund-metric:first-child { grid-column: 1 / -1; }
  .core-futures .fund-metric:nth-child(2),
  .core-futures .fund-metric:nth-child(4) { border-left: 0; }
  .core-alpha .alpha-context { grid-template-columns: 1fr; }
  .core-alpha .lane-grid { display: block; }
  .core-alpha .lane-card { display: grid; border: 0; border-top: 1px solid var(--xr-line-soft); }
  .core-alpha #card-0 { border-top: 0; }
  .core-alpha .bottom-row,
  .core-alpha .bottom-row2 { display: flex; align-items: stretch; flex-direction: column; }
  .core-alpha .signals-panel,
  .core-alpha .watchlist-panel { order: -1; }
  .core-alpha .watchlist-header { align-items: stretch; flex-direction: column; gap: 10px; }
  .core-alpha .watchlist-controls { width: 100%; flex-wrap: wrap; }
  .core-alpha .search-wrap { flex: 1 1 150px; }
  .core-alpha .search-input { width: 100%; }
}

@media (max-width: 480px) {
  .core-page .xr-desk-panel,
  .core-futures .main-card,
  .core-futures #paper-execution-card { border-radius: 12px; }
  .core-futures .main-card { border-radius: 12px 12px 0 0; }
  .core-futures #paper-execution-card { border-radius: 0 0 12px 12px; }
  .core-page .xr-desk-tools { display: flex; flex-wrap: wrap; row-gap: 11px; padding-block: 8px; overflow: visible; }
  .core-page .xr-desk-field { display: flex; grid-template-columns: none; }
  .core-page .xr-desk-spacer { display: none; }
  .core-page .xr-custom-select { width: 138px; }
  .core-page .xr-desk-field:nth-child(2) .xr-custom-select { width: 126px; }
  .core-page .xr-desk-modes,
  .core-page .xr-desk-periods { display: flex; width: auto; margin-top: 0; }
  .core-page .xr-desk-modes button,
  .core-page .xr-desk-periods button { padding-inline: 3px; }
  .core-page .xr-desk-modes { order: 3; }
  .core-page .xr-desk-periods { order: 4; flex: 1 1 0; min-width: 0; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .core-page .xr-desk-periods::-webkit-scrollbar { display: none; }
  .core-alpha .lane-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; overflow: visible; }
  .core-alpha .lane-tab-slider { display: none; }
  .core-alpha .lane-tab { min-width: 0; padding-inline: 8px; text-align: center; }
  .core-alpha .lane-tab.active { color: var(--xr-green); background: transparent; box-shadow: inset 0 -2px rgba(54,242,176,.78); }
  .core-alpha .lane-card { border-left: 0; border-top: 1px solid var(--xr-line-soft); }
  .core-alpha .lane-card:first-child { border-top: 0; }
}

@media (max-width: 360px) {
  .core-page .xr-desk-periods {
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .core-page .xr-desk-periods button { flex: 0 0 auto; min-width: 30px; padding-inline: 4px; }
}

/* Alpha workbench: one primary scan table, with compact context above and an
   auditable attribution strip below. Keep business data intact; remove the
   card pile and the narrow feed that made the page feel fragmented. */
.core-alpha .bottom-row { align-items: stretch; }
.core-alpha .chart-panel,
.core-alpha .signals-panel { height: 420px; min-height: 420px; }
.core-alpha .chart-panel,
.core-alpha .chart-wrap { min-width: 0; }
.core-alpha .signals-panel { max-height: none; overflow: hidden; }
.core-alpha .signals-header { min-height: 28px; margin-bottom: 8px; }
.core-alpha .signals-list { gap: 0; padding-right: 0; border-top: 1px solid var(--xr-line-soft); }
.core-alpha .signal-card {
  min-width: 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--xr-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.core-alpha .signal-card:hover { border-color: var(--xr-line-soft); background: rgba(255,255,255,.025); box-shadow: none; }
.core-alpha .signal-top { margin-bottom: 4px; }
.core-alpha .signal-icon { width: 24px; height: 24px; border-radius: 7px; background: var(--xr-green-soft); color: var(--xr-green); }
.core-alpha .signal-sym,
.core-alpha .signal-chg { font-size: 13px; }
.core-alpha .signal-sector { margin: 2px 0; }
.core-alpha .signal-type { margin-bottom: 5px; }
.core-alpha .signal-odds-yes { font-size: 13px; }
.core-alpha .signal-odds-no { font-size: 11px; }
.core-alpha .signal-btn,
.core-alpha .signal-new-badge { display: none; }

.core-alpha .bottom-row2 { display: flex; flex-direction: column; gap: 16px; }
.core-alpha .watchlist-panel { width: 100%; min-width: 0; overflow: hidden; }
.core-alpha .watchlist-table-wrap { max-height: 640px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--xr-line) transparent; }
.core-alpha .watchlist-table { min-width: 680px; }
.core-alpha .watchlist-table thead { position: sticky; top: 0; z-index: 2; background: #090b0a; }
.core-alpha .watchlist-table th { background: #090b0a; }
.core-alpha .watchlist-table td { padding-block: 7px; }
.core-alpha .watchlist-footer { margin-top: 9px; }

.core-alpha .trades-panel { width: 100%; min-width: 0; }
.core-alpha .trades-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-height: none; overflow: visible; }
.core-alpha .trade-row { min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--xr-line-soft); border-left: 1px solid var(--xr-line-soft); }
.core-alpha .trade-row:nth-child(4n+1) { border-left: 0; }
.core-alpha .trade-row:nth-last-child(-n+4) { border-bottom: 0; }

@media (max-width: 1080px) {
  .core-alpha .bottom-row { grid-template-columns: 1fr; }
  .core-alpha .chart-panel,
  .core-alpha .signals-panel { height: auto; min-height: 0; }
  .core-alpha .signals-list { max-height: 430px; }
  .core-alpha .trades-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .core-alpha .trade-row:nth-child(n) { border-left: 1px solid var(--xr-line-soft); border-bottom: 1px solid var(--xr-line-soft); }
  .core-alpha .trade-row:nth-child(2n+1) { border-left: 0; }
  .core-alpha .trade-row:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .core-alpha .signals-panel,
  .core-alpha .watchlist-panel { order: initial; }
  .core-alpha .watchlist-panel { overflow: hidden; }
  .core-alpha .watchlist-table-wrap { max-height: 560px; overflow: auto; }
  .core-alpha .watchlist-header,
  .core-alpha .watchlist-table { min-width: 0; }
  .core-alpha .watchlist-table { min-width: 560px; }
}

@media (max-width: 480px) {
  .core-alpha .chart-panel,
  .core-alpha .signals-panel,
  .core-alpha .trades-panel,
  .core-alpha .watchlist-panel { padding: 13px; }
  .core-alpha .chart-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .core-alpha .chart-range-tabs { width: 100%; }
  .core-alpha .chart-range-btn { flex: 1 1 0; padding-inline: 4px; }
  .core-alpha .trades-list { grid-template-columns: 1fr; }
  .core-alpha .trade-row:nth-child(n) { border-left: 0; border-bottom: 1px solid var(--xr-line-soft); }
  .core-alpha .trade-row:last-child { border-bottom: 0; }
}

/* Alpha strategy comparison: treat the four lanes as one decision matrix,
   not four promotional cards. The existing IDs and click targets stay intact. */
.core-alpha .lane-grid-head { display: none; }
.core-alpha .lane-card-name { font-size: 12px; font-weight: 700; color: var(--xr-ink); }
.core-alpha .lane-roi-value {
  margin: 0;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -.04em;
  transform: none !important;
}
.core-alpha .lane-alloc { margin: 0; color: var(--xr-muted); font-size: 10.5px; }
.core-alpha .roi-bars { margin: 0; }
.core-alpha .roi-bar-row { min-width: 0; gap: 5px; }
.core-alpha .roi-bar-label { width: 12px; font-size: 9px; }
.core-alpha .roi-bar-track { min-width: 24px; height: 4px; overflow: hidden; }
.core-alpha .roi-bar-num { width: auto; min-width: 48px; font-size: 9.5px; white-space: nowrap; }
.core-alpha .lane-footer { margin: 0; padding: 0; border: 0; }
.core-alpha .lane-meta { gap: 2px 10px; }
.core-alpha .lane-meta-item { white-space: nowrap; }
.core-alpha .sparkline-wrap { flex: 0 0 auto; }

@media (min-width: 1081px) {
  .core-alpha .lane-grid { display: block; }
  .core-alpha .lane-grid-head,
  .core-alpha .lane-card {
    grid-template-columns: minmax(140px,1.05fr) 104px minmax(150px,1.05fr) minmax(330px,2.15fr) minmax(190px,1.15fr);
    align-items: center;
    column-gap: 18px;
  }
  .core-alpha .lane-grid-head {
    display: grid;
    min-height: 34px;
    padding: 0 16px;
    color: var(--xr-dim);
    background: #090b0a;
    font: 8.5px var(--xr-mono);
    letter-spacing: .04em;
  }
  .core-alpha .lane-card {
    display: grid;
    min-height: 78px;
    padding: 11px 16px;
    border: 0;
    border-top: 1px solid var(--xr-line-soft);
  }
  .core-alpha .lane-card:first-of-type { border-top: 1px solid var(--xr-line-soft); }
  .core-alpha .lane-card.active-lane {
    border-color: var(--xr-line-soft);
    background: rgba(54,242,176,.035);
    box-shadow: inset 3px 0 var(--xr-green);
  }
  .core-alpha .lane-card-header { justify-content: flex-start; gap: 9px; margin: 0; }
  .core-alpha .roi-bars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .core-alpha .roi-bar-row { display: grid; grid-template-columns: 12px minmax(24px,1fr) auto; }
  .core-alpha .lane-footer { gap: 12px; }
  .core-alpha .lane-meta { flex: 1 1 auto; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .core-alpha .lane-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .core-alpha .lane-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "name roi" "alloc alloc" "bars bars" "footer footer";
    gap: 9px 14px;
    padding: 14px;
    border: 0;
    border-top: 1px solid var(--xr-line-soft);
    border-left: 1px solid var(--xr-line-soft);
  }
  .core-alpha #card-0,
  .core-alpha #card-1 { border-top: 0; }
  .core-alpha #card-0,
  .core-alpha #card-2 { border-left: 0; }
  .core-alpha .lane-card.active-lane { border-color: var(--xr-line-soft); box-shadow: inset 0 2px var(--xr-green); }
  .core-alpha .lane-card-header { grid-area: name; margin: 0; }
  .core-alpha .lane-roi-value { grid-area: roi; }
  .core-alpha .lane-alloc { grid-area: alloc; }
  .core-alpha .roi-bars { grid-area: bars; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .core-alpha .roi-bar-row { display: grid; grid-template-columns: 12px minmax(24px,1fr) auto; }
  .core-alpha .lane-footer { grid-area: footer; }
  .core-alpha .lane-meta { flex-direction: row; flex-wrap: wrap; }
}

/* With account NAV living in Personal Center, Alpha's lower section becomes a
   compact candidate strip instead of leaving the old chart column empty. */
.core-alpha .bottom-row { display: block; }
.core-alpha .signals-panel { width: 100%; height: auto; min-height: 0; }
.core-alpha .signals-list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  max-height: none;
  overflow: visible;
  border-top: 0;
  background: var(--xr-line-soft);
}
.core-alpha .signal-card,
.core-alpha .signal-card:hover {
  min-height: 112px;
  padding: 12px;
  border: 0;
  background: var(--xr-panel);
}

@media (max-width: 1080px) {
  .core-alpha .signals-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
}

@media (max-width: 760px) {
  .core-alpha .signals-list { grid-template-columns: 1fr; }
  .core-alpha .signal-card,
  .core-alpha .signal-card:hover { min-height: 0; }
}

/* Homepage material alignment ------------------------------------------------
   Keep the public site and all three desks on the same matte operational shell.
   Page chrome stays quiet; grids belong inside charts, never behind the product. */
.core-page {
  --xr-bg: #050706;
  --xr-bg-soft: #09100d;
  --xr-panel: rgba(9,12,11,.82);
  --xr-panel-strong: rgba(255,255,255,.065);
  --xr-line: rgba(255,255,255,.15);
  --xr-line-soft: rgba(255,255,255,.08);
  --xr-ink: #f8f2e4;
  --xr-muted: rgba(248,242,228,.52);
  --xr-dim: rgba(248,242,228,.34);
  --xr-green: #36f2b0;
  --xr-green-soft: rgba(54,242,176,.10);
  --xr-red: #ff7069;
  --xr-content: 1240px;
  --xr-max: 1240px;
  background: var(--xr-bg);
  font-family: "Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;
}

.core-page .core-topbar {
  position: sticky;
  top: 14px;
  isolation: isolate;
  overflow: hidden;
  width: min(var(--xr-max),calc(100% - 28px));
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid var(--xr-line);
  border-radius: 12px;
  background: rgba(12,15,13,.96);
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.core-page .core-topbar::before {
  display: none;
}
.core-page .core-topbar > * { position: relative; z-index: 1; }
.core-page .core-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  font-family: "Songti SC","Noto Serif CJK SC",Georgia,serif;
  font-size: 15px;
}
.core-page .core-nav a {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 7px;
  color: rgba(248,242,228,.56);
  font-size: 12px;
  font-weight: 850;
  background: transparent;
  text-shadow: none;
}
.core-page .core-nav a:hover {
  color: var(--xr-ink);
  background: transparent;
  text-shadow: 0 0 12px rgba(248,242,228,.22);
}
.core-page .core-nav a[aria-current="page"] {
  color: var(--xr-green);
  background: transparent;
  font-weight: 950;
  text-shadow: 0 0 16px rgba(54,242,176,.54);
}
.core-page .core-profile span {
  color: #07100d;
  background: var(--xr-green);
  box-shadow: 0 0 0 3px rgba(54,242,176,.16);
}

.core-page .core-main,
.core-alpha .main-content,
.core-futures main.wrap { padding-top: 28px; }

.core-page .xr-desk-panel,
.core-futures .main-card,
.core-futures .eye-strip,
.core-futures .trades-card,
.core-futures .pm-card,
.core-alpha .lane-grid,
.core-alpha .signals-panel,
.core-alpha .watchlist-panel,
.core-spot .spot-workspace,
.core-spot .spot-status {
  border-color: var(--xr-line);
  background: #0b0e0c;
  box-shadow: 0 16px 46px rgba(0,0,0,.24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.core-page .xr-desk-panel,
.core-alpha .lane-grid,
.core-alpha .signals-panel,
.core-alpha .watchlist-panel,
.core-spot .spot-workspace,
.core-spot .spot-status { border-radius: 14px; }
.core-page .xr-desk-tools,
.core-futures .tools {
  border-radius: 13px 13px 0 0;
  background: #0c0f0d;
}
.core-page .xr-custom-select-trigger,
.core-page .xr-desk-modes,
.core-page .xr-desk-periods,
.core-futures .execution-tabs,
.core-futures .futures-compact-field select {
  border-color: rgba(255,255,255,.12);
  background: rgba(4,7,5,.78);
}
.core-page .xr-desk-chart,
.core-futures .chart-box { background: rgba(3,6,4,.96); }
.core-page .xr-desk-foot,
.core-futures .chart-foot,
.core-page .xr-desk-resizer,
.core-futures .chart-resizer,
.core-page .xr-desk-detail th,
.core-futures .rtable th { background: rgba(4,7,5,.88); }
.core-page .xr-desk-governance { background: rgba(9,14,11,.82); }
.core-page .xr-desk-fund,
.core-futures .fund-metric,
.core-page .xr-desk-details.is-tabbed,
.core-alpha .lane-card,
.core-alpha .signal-card,
.core-alpha .signal-card:hover { background: rgba(6,9,7,.78); }

.core-futures .main-card { border-radius: 14px 14px 0 0; }
.core-futures #paper-execution-card { border-radius: 0 0 14px 14px; }
.core-alpha .lane-grid-head { background: rgba(4,7,5,.88); }
.core-alpha .lane-card:hover { background: rgba(16,28,21,.74); }
.core-alpha .lane-card.active-lane { background: rgba(54,242,176,.035); }

@media (max-width: 760px) {
  .core-page .core-topbar {
    position: relative;
    top: 0;
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 7px 9px;
    border-radius: 14px;
  }
  .core-page .core-nav a { min-height: 29px; padding-inline: 7px; font-size: 10.5px; }
  .core-page .core-main,
  .core-alpha .main-content,
  .core-futures main.wrap { padding-top: 18px; }
  .core-page .xr-desk-panel,
  .core-alpha .lane-grid,
  .core-alpha .signals-panel,
  .core-alpha .watchlist-panel,
  .core-spot .spot-workspace,
  .core-spot .spot-status { border-radius: 12px; }
  .core-futures .main-card { border-radius: 12px 12px 0 0; }
  .core-futures #paper-execution-card { border-radius: 0 0 12px 12px; }
  .core-page .xr-desk-tools,
  .core-futures .tools { border-radius: 11px 11px 0 0; }
}

@media (max-width: 480px) {
  .core-page .core-nav a { min-height: 28px; padding-inline: 5px; font-size: 10px; }
}

@media (max-width: 760px) {
  .core-alpha .lane-grid-head { display: none; }
  .core-alpha .lane-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "name roi" "alloc alloc" "bars bars" "footer footer";
    gap: 9px 12px;
    padding: 13px;
    background: var(--xr-panel);
  }
  .core-alpha .lane-card.active-lane {
    box-shadow: inset 0 2px var(--xr-green);
  }
  .core-alpha .lane-card-header { grid-area: name; margin: 0; }
  .core-alpha .lane-roi-value { grid-area: roi; }
  .core-alpha .lane-alloc { grid-area: alloc; }
  .core-alpha .roi-bars { grid-area: bars; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .core-alpha .roi-bar-row { display: grid; grid-template-columns: 12px minmax(16px,1fr) auto; }
  .core-alpha .lane-footer { grid-area: footer; }
  .core-alpha .lane-meta { flex-direction: row; flex-wrap: wrap; }
}

/* Alpha observation switcher ------------------------------------------------
   Candidates and the wider market list are two views of the same workflow,
   so they share one shell instead of competing as stacked panels. */
.core-alpha .alpha-market-panel {
  display: block;
  overflow: hidden;
  border: 1px solid var(--xr-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),
    rgba(7,10,8,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 24px 72px rgba(0,0,0,.28);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
.core-alpha .alpha-market-header {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--xr-line-soft);
  background: #101411;
}
.core-alpha .alpha-market-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 0 15px;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}
.core-alpha .alpha-market-tabs::-webkit-scrollbar { display: none; }
.core-alpha .alpha-market-tab {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 45px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(238,234,222,.40);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 660;
  white-space: nowrap;
  cursor: pointer;
}
.core-alpha .alpha-market-tab:hover { color: rgba(238,234,222,.78); }
.core-alpha .alpha-market-tab:focus-visible {
  outline: 2px solid rgba(54,242,176,.72);
  outline-offset: 2px;
}
.core-alpha .alpha-market-tab.is-active {
  color: #eeeade;
  background: transparent;
  box-shadow: none;
}
.core-alpha .alpha-market-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #9cdfc0;
  content: "";
}
.core-alpha .alpha-market-tab-count,
.core-alpha .alpha-market-tab .signals-count {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  color: rgba(238,234,222,.28);
  background: transparent;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.core-alpha .alpha-market-tab.is-active .alpha-market-tab-count,
.core-alpha .alpha-market-tab.is-active .signals-count {
  color: rgba(238,234,222,.46);
  background: transparent;
}
.core-alpha .alpha-market-view[hidden] { display: none !important; }
.core-alpha .alpha-market-panel .alpha-market-view {
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  transition: opacity .14s ease;
}
.core-alpha .alpha-market-panel .alpha-market-view.is-entering { opacity: .72; }
.core-alpha .alpha-market-panel .signals-panel {
  width: 100%;
  height: auto;
  padding: 16px;
  overflow: hidden;
}
.core-alpha .alpha-market-panel .signals-list {
  width: 100%;
  max-height: none;
  overflow-y: auto;
}
.core-alpha .alpha-market-loading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(560px,100%);
  padding: 8px 2px;
  color: var(--xr-dim);
  font-size: 11px;
}
.core-alpha .alpha-market-loading strong { color: var(--xr-muted); font-size: 12px; font-weight: 650; }
.core-alpha .alpha-market-loading span { margin-bottom: 4px; }
.core-alpha .alpha-market-loading i {
  display: block;
  height: 36px;
  border-top: 1px solid var(--xr-line-soft);
  background: linear-gradient(90deg,rgba(255,255,255,.025),rgba(255,255,255,.055),rgba(255,255,255,.025));
  background-size: 220% 100%;
  animation: xr-alpha-loading 1.35s ease-in-out infinite;
}
@keyframes xr-alpha-loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.alpha-cache-hydrated .core-alpha .alpha-market-loading { display: none; }
.core-alpha .alpha-market-panel .watchlist-panel {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
  flex-direction: column;
}
.core-alpha .alpha-market-panel .watchlist-header {
  justify-content: flex-end;
  margin-bottom: 12px;
}
.core-alpha .alpha-market-panel .watchlist-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.core-alpha .alpha-market-panel .watchlist-table td { padding: 6px 10px; }
.core-alpha .alpha-market-panel .watchlist-table { table-layout: fixed; }
.core-alpha .alpha-market-panel .wl-col-token { width: 16%; }
.core-alpha .alpha-market-panel .wl-col-name { width: 18%; }
.core-alpha .alpha-market-panel .wl-col-sector { width: 20%; }
.core-alpha .alpha-market-panel .wl-col-chain { width: 12%; }
.core-alpha .alpha-market-panel .wl-col-change { width: 12%; }
.core-alpha .alpha-market-panel .wl-col-mc,
.core-alpha .alpha-market-panel .wl-col-volume { width: 11%; }
.core-alpha .alpha-market-panel .token-cell { gap: 8px; min-width: 0; }
.core-alpha .alpha-market-panel .token-avatar { width: 24px; height: 24px; font-size: 9px; }
.core-alpha .alpha-market-panel .token-sym {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.core-alpha .alpha-market-panel .token-name-cell {
  overflow: hidden;
  color: var(--xr-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.core-alpha .alpha-market-panel .token-sector-cell { overflow: hidden; }
.core-alpha .alpha-market-panel .token-sub {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.core-alpha .alpha-market-panel .mobile-token-chain { display: none; }
.core-alpha .alpha-market-panel .token-sub .sector-chip,
.core-alpha .alpha-market-panel .token-sub .tag-chip { padding: 1px 6px; font-size: 9px; line-height: 1.45; }
.core-alpha .alpha-market-panel .go-arrow { color: var(--xr-dim); font-size: 9px; font-weight: 500; }
.core-alpha .alpha-market-panel .watchlist-table tr { height: 42px; }

@media (max-width: 760px) {
  .core-alpha .alpha-market-panel { border-radius: 16px; }
  .core-alpha .alpha-market-header { padding: 0; }
  .core-alpha .alpha-market-tabs { width: 100%; gap: 18px; padding-inline: 13px; }
  .core-alpha .alpha-market-tab { gap: 5px; font-size: 11px; }
  .core-alpha .alpha-market-tab-count,
  .core-alpha .alpha-market-tab .signals-count { min-width: 0; padding: 0; font-size: 9px; }
  .core-alpha .alpha-market-panel .alpha-market-view {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
  }
  .core-alpha .alpha-market-panel .signals-panel,
  .core-alpha .alpha-market-panel .watchlist-panel { padding: 12px; }
  .core-alpha .alpha-market-panel .watchlist-header { justify-content: stretch; }
  .core-alpha .alpha-market-panel .watchlist-controls { width: 100%; }
  .core-alpha .alpha-market-panel .search-wrap { flex: 1 1 140px; }
  .core-alpha .alpha-market-panel .search-input { width: 100%; }
  .core-alpha .alpha-market-panel .watchlist-table-wrap { max-height: 500px; overflow-x: auto; }
  .core-alpha .alpha-market-panel .watchlist-table { width: 100%; min-width: 0; table-layout: fixed; }
  .core-alpha .alpha-market-panel .wl-col-token { width: 44%; }
  .core-alpha .alpha-market-panel .wl-col-name,
  .core-alpha .alpha-market-panel .wl-col-sector,
  .core-alpha .alpha-market-panel .wl-col-chain { display: none; }
  .core-alpha .alpha-market-panel .wl-col-change { width: 20%; }
  .core-alpha .alpha-market-panel .wl-col-mc,
  .core-alpha .alpha-market-panel .wl-col-volume { width: 18%; }
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(1) { width: 44%; }
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(2),
  .core-alpha .alpha-market-panel .watchlist-table td:nth-child(2),
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(3),
  .core-alpha .alpha-market-panel .watchlist-table td:nth-child(3),
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(4),
  .core-alpha .alpha-market-panel .watchlist-table td:nth-child(4) { display: none; }
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(5) { width: 20%; }
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(6),
  .core-alpha .alpha-market-panel .watchlist-table th:nth-child(7) { width: 18%; }
  .core-alpha .alpha-market-panel .watchlist-table th,
  .core-alpha .alpha-market-panel .watchlist-table td { padding: 5px 4px; }
  .core-alpha .alpha-market-panel .token-cell { gap: 5px; }
  .core-alpha .alpha-market-panel .mobile-token-chain {
    display: inline;
    max-width: 48px;
    overflow: hidden;
    color: var(--xr-dim);
    font-size: 8px;
    text-overflow: ellipsis;
  }
  .core-alpha .alpha-market-panel .chg-cell { font-size: 10px; }
  .core-alpha .alpha-market-panel .num-cell { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .core-alpha .alpha-market-loading i { animation: none; }
  .core-alpha .alpha-market-panel .alpha-market-view { transition: none; }
}

/* Alpha colour discipline ---------------------------------------------------
   Keep colour for outcomes and the active control only. Strategy identity,
   scenario ordering, chains and sectors are carried by labels and position. */
.core-alpha {
  --font-body: var(--xr-sans);
  --font-mono: var(--xr-mono);
  --green: var(--xr-green);
  --red: var(--xr-red);
}
.core-alpha .lane-card-header > div {
  background: rgba(238,234,222,.28) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.core-alpha .lane-card.active-lane .lane-card-header > div {
  background: var(--xr-green) !important;
}
.core-alpha .roi-bar-label { color: var(--xr-dim) !important; }
.core-alpha .roi-bar-num { color: var(--xr-muted) !important; }
.core-alpha .roi-bar-fill {
  background: rgba(238,234,222,.24) !important;
  box-shadow: none !important;
}
.core-alpha .signal-icon,
.core-alpha .token-avatar {
  color: rgba(238,234,222,.70) !important;
  background: #121713 !important;
}
.core-alpha .signal-chain,
.core-alpha .chain-pill,
.core-alpha .sector-chip,
.core-alpha .tag-chip {
  color: rgba(238,234,222,.56) !important;
  border-color: rgba(238,234,222,.15) !important;
  background: rgba(238,234,222,.035) !important;
}
.core-alpha .source-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: rgba(238,234,222,.28);
  vertical-align: middle;
}
.core-alpha .signal-new-badge {
  color: rgba(238,234,222,.78);
  background: #171b18;
}
.core-alpha .signal-chg.is-positive,
.core-alpha .chg-cell.is-positive { color: var(--xr-green); }
.core-alpha .signal-chg.is-negative,
.core-alpha .chg-cell.is-negative { color: var(--xr-red); }
.core-alpha .signal-odds-yes { color: rgba(238,234,222,.82); }
.core-alpha .signal-odds-bar { background: rgba(238,234,222,.075); }
.core-alpha .signal-odds-bar-fill { background: rgba(156,223,192,.58) !important; }

/* Shared ambient field for the three trading desks. The profile page does not
   render this layer. It stays behind every control and never receives input. */
.core-page { isolation: isolate; }
.core-particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.core-particle-field canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.core-page > :not(.core-particle-field) {
  position: relative;
  z-index: 1;
}
