/* Keep unfinished workbench covered while charts retain measurable dimensions. */
body.alpha-session-shell:not(.tx-workbench-ready)::before {
  content: ""; position: fixed; inset: 0; z-index: 2147483000;
  background: #020617 url('/static/brand/video/tradex-reveal-poster.webp') center / cover no-repeat;
}
#txWorkbenchLoader {
  position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: end center;
  overflow: auto; background: #020617; color: #f3f8ff; isolation: isolate;
}
#txWorkbenchLoader video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
#txWorkbenchLoader::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(2,6,23,.5) 55%, #020617 100%); z-index: -1; }
.tx-loader-copy { width: min(92%, 560px); padding: 32px 16px clamp(36px, 8vh, 96px); text-align: center; }
.tx-loader-eyebrow { color: #7be8f4; font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.tx-loader-copy h1 { margin: 14px 0 10px; font-size: clamp(22px, 3vw, 34px); font-weight: 650; }
.tx-loader-copy p { color: #bfd1e4; font-size: 14px; margin: 10px 0 18px; }
.tx-loader-copy progress { display: block; width: 210px; height: 3px; margin: 0 auto; border: 0; border-radius: 9px; background: #24354b; accent-color: #5be1ed; }
.tx-loader-copy progress::-webkit-progress-bar { background: #24354b; border-radius: 9px; }
.tx-loader-copy progress::-webkit-progress-value { background: #5be1ed; border-radius: 9px; transition: width .2s; }
.tx-loader-actions { margin-top: 25px; }
.tx-loader-actions[hidden] { display: none; }
.tx-loader-actions button { margin: 4px; border: 1px solid #51788e; border-radius: 8px; padding: 10px 14px; background: #123146; color: #effaff; cursor: pointer; }
.tx-loader-actions button:focus-visible { outline: 2px solid #7be8f4; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tx-loader-copy progress::-webkit-progress-value { transition: none; } }

:root {
  color-scheme: dark;
  --as-shell: #020617;
  --as-shell-accent: rgba(79, 70, 229, 0.12);
  --as-surface: rgba(15, 23, 42, 0.82);
  --as-border: #1e293b;
  --as-text: #f8fafc;
  --as-muted: #94a3b8;
}

body.alpha-app-shell {
  min-height: 100vh;
  color: var(--as-text);
  background:
    radial-gradient(circle at 12% -8%, var(--as-shell-accent), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #050b19 55%, #020617 100%);
  transition: background-color 180ms ease, color 180ms ease;
}

.as-live-launcher {
  display: flex;
  width: min(38vw, 30rem);
  min-width: 19rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.04);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.as-live-launcher:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.as-live-launcher input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 0.68rem 0.85rem;
  color: #f8fafc;
  font-size: 0.78rem;
  outline: none;
}

.as-live-launcher input::placeholder { color: #64748b; }

.as-live-launcher-action {
  flex: 0 0 auto;
  margin-right: 0.3rem;
  border-radius: 0.62rem;
  background: rgba(5, 150, 105, 0.18);
  padding: 0.48rem 0.66rem;
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.as-live-start-dialog {
  max-height: min(82dvh, 46rem);
  overflow-y: auto;
  scrollbar-color: #334155 transparent;
  scrollbar-width: thin;
}

.as-live-start-dialog[open] { animation: as-dialog-in 150ms ease-out; }

@keyframes as-dialog-in {
  from { opacity: 0; transform: translateY(-0.5rem) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Daily LIVE historical contract planner: keep the provider-owned expiry/date
   flow compact on desktop while retaining a readable single-column mobile
   sequence. The date catalogue scrolls inside its region instead of making
   the entire page excessively tall. */
.as-history-flow-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) minmax(230px, 1fr) minmax(230px, 1fr) minmax(220px, 0.9fr);
  gap: 1rem;
  align-items: end;
}

.as-history-date-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  scrollbar-color: #334155 transparent;
  scrollbar-width: thin;
}

.as-history-lab-controls {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.68fr)
    minmax(190px, 0.92fr)
    minmax(190px, 0.92fr)
    minmax(145px, 0.7fr)
    minmax(150px, 0.72fr)
    minmax(190px, 0.92fr);
  gap: 0.75rem;
  align-items: end;
}

.as-history-replay-stage {
  min-height: 19rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(30, 41, 59, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 50% 15%, rgba(79, 70, 229, 0.1), transparent 28rem),
    #050b18;
  background-size: 3.5rem 3.5rem, 3.5rem 3.5rem, auto, auto;
}

@media (max-width: 980px) {
  .as-live-launcher { order: 4; width: 100%; min-width: 0; }
  .as-history-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-history-date-list { grid-template-columns: 1fr; }
  .as-history-lab-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .as-live-launcher-action { display: none; }
  .as-history-flow-grid { grid-template-columns: 1fr; }
  .as-history-date-list { max-height: none; overflow: visible; }
  .as-history-lab-controls { grid-template-columns: 1fr; }
  .as-history-replay-stage { min-height: 16rem; }
}

/* Desktop LIVE desk final fit.  Every evidence card stays in the left rail;
   the chart stage uses the remaining height and always reserves a real lower
   pane for candle-time-aligned bullish/bearish Pully pressure. */
@media (min-width: 1024px) {
  .as-chart-card > .as-chart-stage {
    height: 0 !important;
    min-height: 0 !important;
    flex: 1 1 0% !important;
    grid-template-rows: minmax(0, 1fr) minmax(118px, 30%) !important;
  }

  .as-chart-stage > #chart,
  .as-chart-stage > #chartFuture {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .as-pully-pane {
    min-height: 118px;
  }

  .as-left-oi-panel .as-chart-oi-body {
    grid-template-columns: minmax(58px, 0.72fr) minmax(160px, 2.15fr) minmax(112px, 1.5fr) minmax(54px, 0.68fr) !important;
    align-items: stretch;
  }

  .as-left-oi-panel .as-oi-diagnostics-stack {
    grid-column: 1 / -1;
    gap: 0.26rem;
  }

  .as-left-oi-panel .as-oi-health-row {
    gap: 0.24rem;
  }

  .as-left-oi-panel .as-oi-diagnostics {
    gap: 0.24rem !important;
  }

  .as-left-oi-panel .as-oi-diagnostics > div {
    min-height: 3.05rem;
    padding: 0.28rem 0.32rem !important;
  }

  .as-left-oi-panel .as-oi-max-pain {
    grid-column: 1;
  }

  .as-left-oi-panel .as-oi-level-cards {
    grid-column: 2;
  }

  .as-left-oi-panel .as-oi-bias {
    grid-column: 3;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  }

  .as-left-oi-panel .as-oi-iv {
    grid-column: 4;
  }

  .as-left-oi-panel .as-oi-pcr-card,
  .as-left-oi-panel .as-oi-call-put-card {
    min-height: 0;
    padding: 0.28rem 0.32rem !important;
  }

  .as-left-oi-panel .as-oi-pcr-card {
    gap: 0.28rem;
  }

  .as-left-oi-panel .as-oi-pcr-card #kpiPCR {
    min-width: 2.55rem;
    padding: 0.18rem 0.26rem;
    font-size: 0.82rem;
  }

  .as-left-oi-panel .as-oi-pcr-card #kpiPcrReason {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.6rem;
    line-height: 0.72rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .as-left-oi-panel .as-oi-call-put-card #kpiCallPutBias {
    min-width: 2.7rem;
    padding: 0.2rem 0.34rem;
    font-size: 0.72rem;
  }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  .as-market-workspace-grid {
    grid-template-columns: minmax(390px, 26.5%) minmax(0, 73.5%);
  }

  .as-chart-session-controls,
  .as-chart-toolbar-actions,
  .as-chart-quick-actions {
    gap: 0.18rem;
  }

  .as-chart-session-controls > label .as-audio-toggle-text {
    display: none;
  }

  .as-chart-session-controls > button,
  .as-chart-session-controls > label,
  .as-chart-quick-action,
  #btnChartFocus {
    padding-right: 0.42rem !important;
    padding-left: 0.42rem !important;
  }

  .as-chart-tf-buttons button {
    min-width: 1.66rem;
  }

  .as-decision-column > .as-predictor-card {
    padding: 0.65rem !important;
  }

  .as-decision-column > .as-predictor-card .as-predictor-body {
    margin-top: 0.48rem !important;
    padding: 0.58rem !important;
  }

  .as-decision-column > .as-predictor-card #kpiSignal {
    font-size: 1.46rem !important;
    line-height: 1.6rem;
  }

  .as-left-oi-panel {
    gap: 0.3rem !important;
    padding: 0.44rem !important;
  }

  .as-left-oi-panel .as-chart-oi-heading {
    min-height: 2.25rem;
    padding-bottom: 0.34rem;
  }

  .as-left-oi-panel .as-oi-strategy-row #activeStrategyName {
    font-size: 0.82rem !important;
  }

  .as-decision-column > .as-execution-stack .as-execution-panel {
    padding: 0.5rem !important;
  }

  .as-execution-plan-list {
    margin-top: 0.34rem !important;
    gap: 0.3rem;
  }

  .as-execution-plan-card {
    padding: 0.46rem !important;
  }

  .as-execution-plan-card.is-no-trade .as-execution-admission {
    margin-top: 0.25rem !important;
    padding: 0.3rem 0.42rem !important;
  }
}

.as-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 0.625rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
  transition: transform 120ms ease;
}

.as-skip-link:focus {
  transform: translateY(0);
}

.as-product-nav {
  position: relative;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.06);
}

.as-product-nav__link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  padding: 0.45rem 0.75rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 120ms ease, background-color 120ms ease;
}

.as-product-nav__link:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.76);
}

.as-product-nav__link:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.as-product-nav__link--active {
  color: #eef2ff;
  background: rgba(79, 70, 229, 0.22);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.48);
}

body.alpha-app-shell header {
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.18);
}

body.theme-light {
  color-scheme: light;
  --as-shell: #f1f5f9;
  --as-shell-accent: rgba(79, 70, 229, 0.10);
  --as-surface: rgba(255, 255, 255, 0.92);
  --as-border: #d8e1ed;
  --as-text: #0f172a;
  --as-muted: #475569;
  background:
    radial-gradient(circle at 12% -8%, var(--as-shell-accent), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #f8fafc 100%) !important;
  color: var(--as-text) !important;
}

.theme-light .as-product-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #d8e1ed !important;
}

.theme-light .as-product-nav__link {
  color: #475569;
}

.theme-light .as-product-nav__link:hover {
  color: #312e81;
  background: #eef2ff;
}

.theme-light .as-product-nav__link--active {
  color: #3730a3;
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px #a5b4fc;
}

.theme-light header,
.theme-light [class*="bg-slate-950/"],
.theme-light [class*="bg-slate-900/"] {
  background-color: rgba(255, 255, 255, 0.92) !important;
}

.theme-light header {
  border-bottom-color: #cbd5e1 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.theme-light main [class*="rounded-2xl"][class*="border"],
.theme-light #sessionStateNotice > div {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.theme-light [class~="bg-slate-950"],
.theme-light [class~="bg-slate-900"] {
  background-color: #ffffff !important;
}

.theme-light [class*="bg-indigo-950/"] { background-color: rgba(238, 242, 255, 0.9) !important; }
.theme-light [class*="bg-rose-950/"] { background-color: rgba(255, 241, 242, 0.92) !important; }
.theme-light [class*="bg-emerald-950/"] { background-color: rgba(236, 253, 245, 0.94) !important; }
.theme-light [class*="bg-amber-950/"] { background-color: rgba(255, 251, 235, 0.94) !important; }
.theme-light [class*="bg-emerald-900/"] { background-color: rgba(209, 250, 229, 0.86) !important; }
.theme-light [class*="bg-cyan-950/"] { background-color: rgba(236, 254, 255, 0.94) !important; }
.theme-light [class*="bg-violet-950/"] { background-color: rgba(245, 243, 255, 0.94) !important; }
.theme-light [class*="text-slate-100"],
.theme-light [class*="text-slate-200"] { color: #0f172a !important; }
.theme-light [class*="text-slate-300"],
.theme-light [class*="text-slate-400"] { color: #475569 !important; }
.theme-light [class*="text-slate-500"] { color: #64748b !important; }
.theme-light [class*="text-indigo-"],
.theme-light [class*="text-violet-"] { color: #4338ca !important; }
.theme-light [class*="text-cyan-"] { color: #0e7490 !important; }
.theme-light [class*="text-emerald-"],
.theme-light [class*="text-green-"] { color: #047857 !important; }
.theme-light [class*="text-rose-"],
.theme-light [class*="text-red-"] { color: #be123c !important; }
.theme-light [class*="text-amber-"],
.theme-light [class*="text-yellow-"] { color: #a16207 !important; }
.theme-light [class*="text-orange-"] { color: #c2410c !important; }
.theme-light [class*="border-slate-700"],
.theme-light [class*="border-slate-800"] { border-color: #d8e1ed !important; }
.theme-light [class*="border-cyan-"] { border-color: #67e8f9 !important; }

.theme-light .tab-off {
  color: #334155 !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

.theme-light .tab-off:hover {
  color: #312e81 !important;
  background: #eef2ff !important;
  border-color: #a5b4fc !important;
}

.theme-light button:disabled,
.theme-light [aria-disabled="true"] {
  color: #64748b !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  opacity: 0.72 !important;
  cursor: not-allowed !important;
}

.theme-light thead,
.theme-light thead[class*="bg-slate-"] {
  color: #334155 !important;
  background-color: #f1f5f9 !important;
}

.theme-light tbody tr:hover {
  background-color: rgba(238, 242, 255, 0.72) !important;
}

.theme-light :focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.32) !important;
  outline-offset: 2px;
}

.theme-light .as-toast {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.98);
  border-color: #cbd5e1;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.theme-light .as-toast-message { color: #475569; }
.theme-light .as-toast-close { color: #64748b; }
.theme-light .as-toast-close:hover { color: #0f172a; }

.theme-light button[class*="bg-emerald-900"] {
  color: #ffffff !important;
  background-color: #047857 !important;
  border-color: #047857 !important;
}

.theme-light button[class*="bg-rose-950"] {
  color: #be123c !important;
  background-color: #fff1f2 !important;
  border-color: #fda4af !important;
}

.theme-light input,
.theme-light select,
.theme-light textarea {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

.theme-light input::placeholder,
.theme-light textarea::placeholder { color: #94a3b8 !important; }

.theme-light article,
.theme-light [role="dialog"] > div > div {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: "+";
  display: inline-grid;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 999px;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

details[open] > summary::after {
  content: "\2212";
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.7);
}

.theme-light details > summary {
  color: #1e293b !important;
  background: rgba(248, 250, 252, 0.96) !important;
  border-color: #cbd5e1 !important;
}

.theme-light details > summary:hover {
  background: #eef2ff !important;
  border-color: #818cf8 !important;
}

.theme-light details > summary::after {
  color: #4338ca;
  border-color: #a5b4fc;
  background: #eef2ff;
}

.theme-light #sessionSwitcher > div {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #d8e1ed !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.theme-light #symbolSessionTabs button {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.theme-light #symbolSessionTabs button[aria-pressed="true"] {
  background: #eef2ff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.alpha-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 6.5rem;
}

.as-feed-health {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.35rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(100, 116, 139, 0.42);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.as-feed-health.hidden { display: none; }

.as-feed-health-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.18rem rgba(148, 163, 184, 0.12);
}

.as-feed-health--live,
.as-feed-health--closed,
.as-feed-health--ready {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(6, 78, 59, 0.28);
}

.as-feed-health--syncing,
.as-feed-health--waiting {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(30, 64, 175, 0.22);
}

.as-feed-health--syncing .as-feed-health-dot,
.as-feed-health--live .as-feed-health-dot {
  animation: as-feed-pulse 1.6s ease-out infinite;
}

.as-feed-health--partial,
.as-feed-health--stale {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.44);
  background: rgba(136, 19, 55, 0.24);
}

.theme-light .as-feed-health {
  color: #334155;
  border-color: #cbd5e1;
  background: rgba(248, 250, 252, 0.96);
}

.theme-light .as-feed-health--live,
.theme-light .as-feed-health--closed,
.theme-light .as-feed-health--ready {
  color: #047857;
  border-color: #6ee7b7;
  background: #ecfdf5;
}

.theme-light .as-feed-health--syncing,
.theme-light .as-feed-health--waiting {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.theme-light .as-feed-health--partial,
.theme-light .as-feed-health--stale {
  color: #be123c;
  border-color: #fda4af;
  background: #fff1f2;
}

@keyframes as-feed-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.34); }
  70% { box-shadow: 0 0 0 0.32rem rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body.alpha-app-shell { transition: none; }
  .as-feed-health-dot { animation: none !important; }
}

.as-market-truth {
  display: flex;
  min-height: 2.35rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 0.8rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 7px 20px rgba(2, 6, 23, 0.16);
  font-size: 0.68rem;
  line-height: 1.15rem;
}

.as-market-truth-heading,
.as-market-truth-values,
.as-market-truth-reference,
.as-market-truth-blocked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.as-market-truth .hidden { display: none; }

.as-market-truth-eyebrow,
.as-market-truth-quote dt {
  color: #94a3b8;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.as-market-regime-badge,
.as-market-regime-phase,
.as-market-truth-quality,
.as-market-truth-kind {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.08rem 0.42rem;
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}

.as-market-regime-badge--normal {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(6, 78, 59, 0.3);
}

.as-market-regime-badge--cas {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(120, 53, 15, 0.32);
}

.as-market-regime-badge--post-cas-fo {
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(22, 78, 99, 0.3);
}

.as-market-regime-badge--closed {
  color: #cbd5e1;
  border-color: rgba(100, 116, 139, 0.5);
  background: rgba(51, 65, 85, 0.42);
}

.as-market-regime-phase { color: #cbd5e1; }
.as-market-truth-values { gap: 0.35rem 0.8rem; }
.as-market-truth-quote { display: flex; align-items: baseline; gap: 0.3rem; }
.as-market-truth-quote dd { margin: 0; color: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 700; }
.as-market-truth-quality { color: #fbbf24; border-color: rgba(245, 158, 11, 0.38); }
.as-market-truth-kind { color: #a5b4fc; border-color: rgba(99, 102, 241, 0.38); }
.as-market-truth-reference { color: #94a3b8; }
.as-market-truth-reference strong { color: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.as-market-truth-legacy { color: #94a3b8; }
.as-market-truth-blocked {
  margin-left: auto;
  padding: 0.08rem 0.5rem;
  border: 1px solid rgba(244, 63, 94, 0.44);
  border-radius: 999px;
  color: #fda4af;
  background: rgba(136, 19, 55, 0.24);
  font-size: 0.62rem;
}

.as-market-truth-blocked span:not(:empty)::before { content: "\00b7"; margin-right: 0.35rem; }

.theme-light .as-market-truth {
  color: #334155;
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.07);
}

.theme-light .as-market-truth-quote dd,
.theme-light .as-market-truth-reference strong { color: #0f172a; }
.theme-light .as-market-regime-badge--normal { color: #047857; background: #ecfdf5; }
.theme-light .as-market-regime-badge--cas { color: #a16207; background: #fffbeb; }
.theme-light .as-market-regime-badge--post-cas-fo { color: #0e7490; background: #ecfeff; }
.theme-light .as-market-regime-badge--closed { color: #475569; background: #f1f5f9; }
.theme-light .as-market-truth-blocked { color: #be123c; border-color: #fda4af; background: #fff1f2; }

@media (max-width: 640px) {
  .as-market-truth { align-items: flex-start; }
  .as-market-truth-heading { width: 100%; }
  .as-market-truth-values { width: 100%; }
  .as-market-truth-blocked { margin-left: 0; }
}

/* Session workspace command bar. Keep the live controls and workspace tabs on
   one dense desktop row so market data remains above the fold. These selectors
   also cover the pre-restart template currently held by the production Jinja
   cache, allowing the spacing improvement to land without interrupting a live
   paper session. */
@media (min-width: 1024px) {
  body.alpha-app-shell > header > div {
    max-width: 1880px;
    flex-wrap: nowrap;
    column-gap: 0.4rem;
    row-gap: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  body.alpha-app-shell > header > div > .text-lg.font-semibold:empty {
    display: none;
  }

  body.alpha-app-shell > header #tabsStrip {
    width: auto;
    flex-wrap: nowrap;
    gap: 0.375rem;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  body.alpha-app-shell > header #tabsStrip button,
  body.alpha-app-shell > header #btnTheme,
  body.alpha-app-shell > header #btnBackPortfolio,
  body.alpha-app-shell > header #btnPause,
  body.alpha-app-shell > header #btnResume,
  body.alpha-app-shell > header #btnStop {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1rem;
  }

  body.alpha-app-shell > header #sessionMarketContext {
    width: auto;
    max-width: 15rem;
    padding: 0.3rem 0.625rem;
  }

  body.alpha-app-shell > header label[title="Alert sound"],
  body.alpha-app-shell > header label[title^="Speech commentary"] {
    gap: 0;
    padding: 0.375rem 0.5rem;
    font-size: 0;
  }

  body.alpha-app-shell > header label[title="Alert sound"] input,
  body.alpha-app-shell > header label[title^="Speech commentary"] input {
    margin: 0;
  }

  body.alpha-app-shell > header #status {
    font-size: 0.7rem;
    line-height: 1rem;
  }

}

#sessionGlobalActions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
}

#sessionGlobalActions #armAlertsBtn,
#sessionGlobalActions #alertBellBtn {
  min-height: 2rem;
  white-space: nowrap;
}

#sessionGlobalActions #alertDropdown {
  top: calc(100% + 0.35rem);
  margin-top: 0;
}

/* Chart-first market workspace. The compact decision rail keeps predictor plus
   execution plans; the candle and OI workspace owns the dominant 75%. */
.as-predictor-card {
  min-height: 0;
}

.as-predictor-card > .flex:first-child {
  align-items: flex-start;
}

.as-predictor-body {
  padding: 0.75rem;
}

.as-predictor-details > summary::-webkit-details-marker,
.as-chart-more > summary::-webkit-details-marker {
  display: none;
}

.as-strategy-info > summary::-webkit-details-marker {
  display: none;
}

.as-strategy-info > summary::after,
.as-chart-more > summary::after {
  content: none !important;
  display: none !important;
}

.as-predictor-details > summary::after {
  content: "Show";
  float: right;
  color: #818cf8;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.as-predictor-details[open] > summary::after {
  content: "Hide";
}

.as-predictor-details-body {
  padding-top: 0.1rem;
}

.as-chart-more-menu {
  top: 100%;
}

.as-chart-more:not([open]) .as-chart-more-menu {
  display: none;
}

.theme-light .as-chart-more-menu {
  border-color: #cbd5e1;
  background: #ffffff;
}

@media (min-width: 1024px) {
  html,
body.alpha-app-shell.alpha-session-shell {
    height: 100%;
  }

  body.alpha-app-shell.alpha-session-shell {
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  #mainContent,
  #sectionCandles,
  .as-market-workspace-grid,
  .as-chart-column,
  .as-chart-shell,
  .as-chart-body,
  .as-chart-view {
    min-height: 0;
  }

  body.alpha-session-shell #mainContent {
    overflow: hidden;
  }

  .as-market-workspace-grid {
    grid-template-columns: minmax(300px, 25%) minmax(0, 75%);
    grid-template-rows: minmax(0, 1fr);
  }

  .as-predictor-column,
  .as-chart-column,
  .as-execution-column {
    grid-column: auto !important;
    min-width: 0;
  }

  .as-predictor-column {
    grid-column: 1 !important;
  }

  .as-chart-column {
    grid-column: 2 !important;
  }

  .as-execution-column {
    grid-column: auto !important;
  }

  .as-predictor-column {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .as-execution-column.as-execution-stack {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .as-decision-column {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .as-execution-panel {
    height: 100% !important;
  }

  .as-execution-plan-list {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .as-execution-plan-card {
    min-height: 0;
    overflow: hidden;
  }

  .as-chart-column,
  .as-chart-shell,
  .as-chart-body,
  .as-chart-view,
  .as-chart-card {
    height: 100%;
  }

  .as-chart-shell,
  .as-chart-body,
  .as-chart-view,
  .as-chart-card {
    display: flex;
    flex-direction: column;
  }

  .as-chart-shell,
  .as-chart-body,
  .as-chart-view,
  .as-chart-wrap,
  .as-chart-card {
    min-width: 0;
  }

  .as-chart-shell,
  .as-chart-body,
  .as-chart-wrap:not(.hidden),
  .as-chart-card,
  #chart,
  #chartFuture {
    flex: 1 1 auto;
  }

  .as-chart-body,
  .as-chart-view,
  .as-chart-wrap:not(.hidden),
  .as-chart-card {
    overflow: hidden;
  }

  .as-chart-wrap:not(.hidden) {
    display: flex !important;
    min-height: 0;
  }

  .as-chart-toolbar {
    flex: 0 0 auto;
  }

  #chart,
  #chartFuture {
    height: auto !important;
    min-height: 220px !important;
  }

  body.as-chart-focus-active #marketTruthPanel,
  body.as-chart-focus-active #sessionSwitcher,
  body.as-chart-focus-active .as-predictor-column {
    display: none !important;
  }

  body.as-chart-focus-active .as-market-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.as-chart-focus-active #mainContent,
  body.as-chart-focus-active .as-chart-body {
    padding-top: 0 !important;
  }

  body.as-chart-focus-active .as-chart-column {
    grid-column: 1 !important;
  }
}

.as-decision-column {
  gap: 0.55rem !important;
}

.as-decision-column > .as-predictor-card {
  flex: 0 0 auto;
}

.as-execution-panel {
  height: auto !important;
  padding: 0.65rem !important;
  border-radius: 0.9rem !important;
}

.as-execution-panel > .flex:first-child {
  align-items: center;
}

.as-execution-panel > .flex:first-child > div:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.5rem;
}

.as-execution-panel > .flex:first-child .mt-1 {
  margin-top: 0 !important;
  font-size: 0.68rem;
}

.as-execution-plan-list {
  display: grid;
  margin-top: 0.5rem !important;
  gap: 0.5rem;
}

.as-execution-plan-list > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

.as-execution-plan-card {
  position: relative;
  min-width: 0;
  padding: 0.6rem !important;
  border-radius: 0.8rem !important;
  box-shadow: none !important;
}

.as-execution-plan-card > .uppercase {
  font-size: 0.64rem !important;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.as-execution-metrics {
  display: grid !important;
  grid-template-columns: 0.78fr 0.9fr 1.35fr 0.7fr 0.78fr !important;
  margin-top: 0.38rem !important;
  gap: 0.28rem !important;
}

.as-execution-metrics > div {
  grid-column: auto !important;
  min-width: 0;
  padding: 0.38rem 0.42rem !important;
  border-radius: 0.55rem !important;
}

.as-execution-metrics > div > div:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.55rem !important;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.as-execution-metrics > div > div:last-child {
  margin-top: 0.16rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.73rem !important;
  font-weight: 750;
}

.as-execution-reason {
  margin-top: 0.35rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem !important;
  font-weight: 650;
  line-height: 0.9rem !important;
}

.as-execution-admission {
  margin-top: 0.35rem !important;
  margin-right: 6.25rem !important;
  padding: 0.4rem 0.5rem !important;
  border-radius: 0.6rem !important;
  font-size: 0.64rem !important;
  font-weight: 600;
  line-height: 0.9rem !important;
}

.as-execution-admission > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-execution-plan-card.is-no-trade .as-execution-admission > div:last-child {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* NO_TRADE is a decision, not an empty trade ticket. Collapse fields that have
   no meaning until a setup exists and give the operator the blocking reason. */
.as-execution-plan-card.is-no-trade .as-execution-metrics {
  display: flex !important;
  grid-template-columns: none !important;
}

.as-execution-plan-card.is-no-trade .as-execution-metrics > div:not(:first-child) {
  display: none !important;
}

.as-execution-plan-card.is-no-trade .as-execution-metrics > div:first-child {
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.as-execution-plan-card.is-no-trade .as-execution-metrics > div:first-child > div:first-child,
.as-execution-plan-card.is-no-trade .as-execution-reason {
  display: none !important;
}

.as-execution-plan-card.is-no-trade .as-execution-metrics > div:first-child > div:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  margin: 0 !important;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  letter-spacing: 0.06em;
}

.as-execution-plan-card > button[id^="alphaSignalAiExplain"] {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 5.75rem !important;
  min-height: 1.65rem;
  margin: 0 !important;
  padding: 0.28rem 0.55rem !important;
  font-size: 0.6rem !important;
}

/* Dense chart command surface. The selected session already provides status;
   keep the candle workflow free of repeated regime and session rows. */
#marketTruthPanel,
#sessionSwitcher {
  display: none !important;
}

.as-chart-toolbar {
  margin-bottom: 0.35rem !important;
  border-radius: 0.8rem !important;
  padding: 0.35rem 0.45rem !important;
}

.as-chart-toolbar > .flex.flex-wrap.items-center.gap-2 {
  width: 100%;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.as-chart-toolbar-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
}

.as-chart-session-controls,
.as-chart-toolbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.3rem;
}

.as-chart-toolbar-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.as-chart-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.as-chart-quick-action {
  min-height: 2rem;
  flex: 0 0 auto;
  border: 1px solid #334155;
  border-radius: 0.62rem;
  background: rgba(15, 23, 42, 0.86);
  padding: 0.32rem 0.58rem;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 780;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.as-chart-quick-action:hover {
  border-color: #6366f1;
  background: rgba(49, 46, 129, 0.28);
  color: #ffffff;
}

.as-chart-quick-action[aria-pressed="true"] {
  border-color: #6366f1;
  background: rgba(79, 70, 229, 0.34);
  color: #ffffff;
}

.as-chart-history-toggle {
  min-height: 2rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid #334155;
  border-radius: 0.62rem;
  background: rgba(15, 23, 42, 0.86);
  padding: 0.32rem 0.5rem;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 780;
  cursor: pointer;
}

.as-chart-history-toggle:hover,
.as-chart-history-toggle:focus-within {
  border-color: #6366f1;
  color: #ffffff;
}

.as-chart-history-toggle input {
  width: 0.82rem;
  height: 0.82rem;
  margin: 0;
  accent-color: #6366f1;
}

.as-chart-session-controls > button,
.as-chart-session-controls > label {
  min-height: 2rem;
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem !important;
  border-radius: 0.62rem !important;
  font-size: 0.68rem !important;
  font-weight: 700;
}

.as-chart-session-controls > label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.as-chart-session-controls #status {
  display: inline-flex !important;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.15rem;
  padding: 0.32rem 0.62rem !important;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.24);
  font-size: 0.68rem !important;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.as-chart-session-controls #sessionMarketContext {
  order: initial;
  width: auto;
  max-width: 13.5rem;
  min-height: 2rem;
  padding: 0.24rem 0.5rem !important;
  border-radius: 0.62rem !important;
}

.as-chart-session-controls #sessionContextTitle,
.as-chart-session-controls #status,
.as-chart-session-controls #liveFeedHealthLabel {
  font-size: 0.58rem !important;
  font-weight: 800;
}

.as-chart-session-controls #sessionContextClock {
  margin-top: 0 !important;
  font-size: 0.52rem !important;
  opacity: 0.72;
}

.as-header-session-context {
  order: initial !important;
  width: auto !important;
  max-width: none !important;
  min-height: 2.15rem;
  padding: 0.34rem 0.65rem !important;
  border-color: rgba(16, 185, 129, 0.34) !important;
  background: rgba(6, 78, 59, 0.16) !important;
}

.as-header-session-context #sessionContextTitle {
  font-size: 0.7rem !important;
  font-weight: 850;
}

.as-header-session-context #liveFeedHealthLabel {
  font-size: 0.66rem !important;
  font-weight: 850;
}

#sessionContextClock {
  display: none !important;
}

.as-chart-tf-select-fallback {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.as-chart-tf-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.16rem;
  border: 1px solid #334155;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.86);
}

.as-chart-tf-buttons button {
  min-width: 2rem;
  height: 1.62rem;
  border-radius: 0.45rem;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 750;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.as-chart-tf-buttons button:hover {
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.72);
}

.as-chart-tf-buttons button.is-active {
  color: #ffffff;
  background: #4f46e5;
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.34);
}

.as-chart-tf-buttons button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.as-chart-toolbar > .mt-2.flex {
  display: none !important;
}

.as-chart-card-with-floating-quotes {
  position: relative;
}

.as-chart-floating-quotes {
  z-index: 14;
  border-color: rgba(99, 102, 241, 0.54) !important;
  background: rgba(2, 6, 23, 0.9) !important;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(12px);
}

.as-chart-floating-quotes #chartInstrumentSpot,
.as-chart-floating-quotes #chartInstrumentFuture {
  min-width: 6.9rem !important;
  padding: 0.46rem 0.66rem !important;
}

.as-chart-floating-quotes #chartInstrumentSpot > span:first-child,
.as-chart-floating-quotes #chartInstrumentFuture > span:first-child {
  display: block;
  margin: 0 0 0.08rem;
  font-size: 0.58rem;
  font-weight: 800;
}

.as-chart-floating-quotes #chartInstrumentSpot > span:last-child,
.as-chart-floating-quotes #chartInstrumentFuture > span:last-child {
  display: block;
  font-size: 1rem;
  line-height: 1.1rem;
  font-weight: 850;
}

.as-chart-floating-insights {
  display: none;
  z-index: 13;
  width: calc(100% - 17rem);
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.72);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.91);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(12px);
}

.as-floating-insight-primary,
.as-floating-insight-pressure {
  display: grid;
  min-width: 0;
}

.as-floating-insight-primary {
  grid-template-columns: 1.18fr 0.9fr 0.82fr 1.1fr 0.76fr 1.1fr 0.92fr 0.82fr;
}

.as-floating-insight-pressure {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.46);
}

.as-floating-insight-piece {
  min-width: 0;
  padding: 0.55rem 0.75rem 0.58rem;
}

.as-floating-insight-piece + .as-floating-insight-piece {
  border-left: 1px solid rgba(71, 85, 105, 0.82);
}

.as-floating-insight-piece > span {
  display: block;
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.as-floating-insight-piece > b {
  display: block;
  overflow: hidden;
  margin-top: 0.18rem;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-floating-insight-piece > small {
  display: block;
  overflow: hidden;
  margin-top: 0.1rem;
  color: #94a3b8;
  font-size: 0.5rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-floating-insight-piece > small em {
  color: #cbd5e1;
  font-style: normal;
  font-weight: 850;
}

.as-floating-clock-piece {
  background: rgba(30, 41, 59, 0.46);
}

.as-floating-clock-piece > b {
  color: #c7d2fe;
  font-size: 0.76rem;
}

.as-floating-insight-piece[data-tone="positive"] > b { color: #5eead4; }
.as-floating-insight-piece[data-tone="negative"] > b { color: #fb7185; }
.as-floating-insight-piece[data-tone="warning"] > b { color: #facc15; }

@media (min-width: 1024px) {
  .as-chart-floating-quotes {
    position: absolute !important;
    top: 2.55rem;
    left: 0.9rem;
  }

  body.as-chart-focus-active .as-chart-floating-insights {
    position: absolute;
    top: 0.55rem;
    left: 16rem;
    display: block;
  }

  body.as-chart-focus-active .as-chart-floating-quotes {
    top: 0.55rem;
  }

  body.as-chart-focus-active .as-chart-data-bar {
    display: none !important;
  }
}

.as-chart-ohlc-tooltip {
  position: absolute;
  z-index: 30;
  display: none;
  width: max-content;
  max-width: min(42rem, calc(100% - 1rem));
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(99, 102, 241, 0.62);
  border-radius: 0.55rem;
  background: rgba(2, 6, 23, 0.94) !important;
  padding: 0.34rem 0.52rem !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.52);
  color: #e2e8f0;
  font-size: 0.66rem;
  pointer-events: none;
  white-space: nowrap;
}

.as-chart-ohlc-tooltip.is-visible { display: block; }

#chartTfSelect,
#btnChartFocus {
  height: 2rem;
  border-radius: 0.65rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

#spotChartClock,
#futureChartClock {
  padding: 0.26rem 0.6rem !important;
  border: 1px solid rgba(71, 85, 105, 0.52);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1 !important;
  font-size: 0.7rem !important;
  font-weight: 780;
  opacity: 0.94;
}

.as-chart-more > summary {
  width: auto !important;
  min-width: 3.25rem;
  height: 2rem !important;
  border-radius: 0.65rem !important;
}

.as-chart-data-bar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem !important;
  min-height: 1.9rem;
  padding: 0 0.35rem 0.35rem !important;
}

.as-chart-ohlc-inline {
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  text-overflow: ellipsis;
  font-size: 0.68rem !important;
  font-weight: 650;
}

.as-chart-oi-panel {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.35rem;
  margin: 0 0 0.35rem !important;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.35rem;
}

.as-chart-oi-heading {
  display: flex;
  min-width: 0;
  cursor: default;
  list-style: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  border-right: 1px solid rgba(51, 65, 85, 0.72);
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
}

.as-chart-oi-heading::-webkit-details-marker {
  display: none;
}

.as-chart-oi-heading::after {
  content: none !important;
}

.as-chart-oi-heading > span[data-oi-heading-copy] strong,
.as-chart-oi-heading > span[data-oi-heading-copy] small {
  display: block;
}

.as-chart-oi-heading > span[data-oi-heading-copy] strong {
  color: #e0e7ff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 0.9rem;
}

.as-chart-oi-heading > span[data-oi-heading-copy] small {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.56rem;
  line-height: 0.72rem;
}

.as-chart-oi-imbalance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.6rem !important;
  font-weight: 650;
}

.as-chart-oi-imbalance #kpiRiskMeter {
  color: #fde68a;
  font-size: 0.66rem;
  font-weight: 800;
}

.as-chart-oi-status {
  margin: 0 !important;
  padding: 0.25rem 0.35rem !important;
  font-size: 0.5rem !important;
  line-height: 0.68rem;
}

.as-chart-oi-body {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(180px, 1.15fr) 86px minmax(210px, 1.2fr) minmax(140px, 0.82fr) 60px;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 !important;
  scrollbar-color: #334155 transparent;
  scrollbar-width: thin;
}

.as-chart-oi-body > * {
  min-width: 0;
  margin: 0 !important;
}

.as-oi-diagnostics {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem !important;
}

.as-oi-diagnostics > div {
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 0.52rem !important;
  padding: 0.28rem 0.38rem !important;
}

.as-oi-diagnostics > div > div:first-child {
  overflow: hidden;
  font-size: 0.54rem !important;
  font-weight: 650;
  line-height: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-oi-diagnostics > div > div:last-child {
  margin-top: 0.06rem !important;
  font-size: 0.68rem;
  font-weight: 750;
}

.as-oi-max-pain,
.as-oi-iv {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column;
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 0.52rem;
  background: rgba(15, 23, 42, 0.46);
  padding: 0.32rem !important;
  text-align: center;
}

.as-oi-max-pain > span:first-child,
.as-oi-iv > span:first-child {
  font-size: 0.5rem;
}

.as-oi-max-pain #kpiMaxPain {
  margin-top: 0.12rem;
  font-size: 0.84rem !important;
}

.as-oi-level-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem !important;
}

.as-oi-level-cards > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 0.52rem !important;
  padding: 0.3rem !important;
}

.as-oi-level-cards > div > div:first-child {
  font-size: 0.53rem !important;
  font-weight: 700;
  line-height: 0.65rem;
}

.as-oi-level-cards #kpiResist,
.as-oi-level-cards #kpiSupport {
  margin-top: 0.08rem !important;
  font-size: 0.92rem !important;
  font-weight: 850;
}

.as-oi-level-cards > div > div:last-child {
  margin-top: 0.04rem !important;
  font-size: 0.52rem !important;
}

.as-oi-bias {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.25rem !important;
}

.as-oi-bias > div {
  min-height: 0;
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 0.52rem !important;
  background: rgba(15, 23, 42, 0.46) !important;
  padding: 0.28rem 0.38rem !important;
  font-size: 0.58rem;
  font-weight: 650;
}

.theme-light .as-chart-oi-panel,
.theme-light .as-oi-diagnostics > div,
.theme-light .as-oi-max-pain,
.theme-light .as-oi-iv,
.theme-light .as-oi-bias > div {
  border-color: #cbd5e1;
  background: rgba(248, 250, 252, 0.94) !important;
}

@media (max-width: 767px) {
  .as-chart-toolbar > .flex.flex-wrap.items-center.gap-2 {
    flex-wrap: wrap;
  }

  .as-execution-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .as-execution-metrics > div:nth-child(3) {
    grid-column: span 2 !important;
  }

  #btnChartFocus {
    display: none;
  }

  .as-chart-oi-panel {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .as-chart-data-bar {
    grid-template-columns: auto minmax(9rem, 1fr) auto;
    overflow-x: auto;
  }
}

@media (max-width: 767px) {
  #sessionGlobalActions #armAlertsBtn {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.alpha-app-shell {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #mainContent {
    overflow: visible;
  }

  .as-chart-toolbar-row,
  .as-chart-session-controls {
    flex-wrap: wrap;
  }

  .as-chart-session-controls,
  .as-chart-toolbar-actions {
    width: 100%;
  }

  .as-chart-toolbar-actions {
    margin-left: 0;
    justify-content: flex-end;
    overflow-x: auto;
  }

  .as-chart-floating-quotes {
    position: static !important;
    width: max-content;
    margin: 0.45rem 0.55rem;
  }

  .as-chart-column {
    order: 1;
  }

  .as-predictor-column {
    order: 2;
  }

  .as-execution-column {
    order: 3;
  }

  .as-chart-wrap:not(.hidden) {
    display: block;
  }

  #chart,
  #chartFuture {
    height: clamp(420px, 62vh, 620px) !important;
    min-height: 420px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .as-chart-session-controls > label .as-audio-toggle-text {
    display: none;
  }

  .as-chart-session-controls #sessionMarketContext {
    max-width: 9rem;
  }

  .as-chart-tf-buttons button {
    min-width: 1.72rem;
  }
}

/* High-legibility operator mode. The primary market evidence should remain
   comfortably readable for long sessions and older operators without browser
   zoom, while the chart still keeps the dominant share of the workspace. */
.as-product-nav__link {
  font-size: 0.82rem;
  font-weight: 750;
}

.as-predictor-card,
.as-execution-panel,
.as-chart-shell {
  font-weight: 560;
}

.as-execution-panel > .flex:first-child .mt-1,
.as-execution-plan-card > .uppercase {
  font-size: 0.72rem !important;
  font-weight: 800;
}

.as-execution-admission {
  font-size: 0.72rem !important;
  font-weight: 650;
  line-height: 1rem !important;
}

.as-execution-admission > div:last-child {
  font-size: 0.67rem !important;
  line-height: 0.94rem;
}

.as-chart-oi-panel {
  position: relative;
  grid-template-columns: 12.25rem minmax(0, 1fr);
  gap: 0.58rem;
  min-height: 8.65rem;
  margin-bottom: 0.45rem !important;
  overflow: visible;
  padding: 0.5rem;
  border-color: rgba(99, 102, 241, 0.5);
  border-radius: 0.9rem;
  background: linear-gradient(115deg, rgba(30, 27, 75, 0.34), rgba(15, 23, 42, 0.58) 32%, rgba(2, 6, 23, 0.54));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 10px 28px rgba(2, 6, 23, 0.18);
}

.as-chart-oi-heading {
  gap: 0.42rem;
  padding: 0.38rem 0.75rem 0.38rem 0.35rem;
}

.as-oi-strategy-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.as-oi-strategy-eyebrow {
  color: #818cf8;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 0.8rem;
  text-transform: uppercase;
}

.as-oi-strategy-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.as-oi-strategy-row #activeStrategyName {
  min-width: 0;
  color: #f8fafc;
  font-size: 1rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.015em;
  line-height: 1.15rem;
}

.as-oi-strategy-row #activeStrategyVersion {
  border-color: rgba(99, 102, 241, 0.72) !important;
  background: rgba(49, 46, 129, 0.32);
  padding: 0.18rem 0.42rem !important;
  color: #c7d2fe !important;
  font-size: 0.68rem !important;
  font-weight: 850;
  line-height: 0.8rem;
}

.as-oi-strategy-info {
  position: relative;
  z-index: 24;
}

.as-oi-strategy-info-trigger {
  display: inline-flex;
  min-height: 1.75rem;
  cursor: help;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(71, 85, 105, 0.88);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  padding: 0.24rem 0.42rem 0.24rem 0.55rem;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 0.78rem;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.as-oi-strategy-info-trigger:hover,
.as-oi-strategy-info-trigger:focus-visible,
.as-oi-strategy-info.is-open .as-oi-strategy-info-trigger {
  border-color: rgba(129, 140, 248, 0.9);
  background: rgba(49, 46, 129, 0.48);
  color: #ffffff;
  outline: none;
}

.as-oi-info-mark {
  display: inline-flex;
  width: 1.08rem;
  height: 1.08rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.as-oi-strategy-tooltip {
  position: absolute !important;
  top: calc(100% + 0.25rem) !important;
  left: 50% !important;
  z-index: 80;
  width: min(23rem, calc(100vw - 2rem)) !important;
  margin: 0 !important;
  visibility: hidden;
  transform: translate(-36%, -0.2rem);
  border: 1px solid rgba(99, 102, 241, 0.62) !important;
  border-radius: 0.8rem !important;
  background: rgba(2, 6, 23, 0.98) !important;
  padding: 0.72rem 0.78rem !important;
  opacity: 0;
  color: #cbd5e1 !important;
  font-size: 0.76rem !important;
  font-weight: 600;
  line-height: 1.08rem !important;
  pointer-events: none;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.58);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.as-oi-strategy-info:hover .as-oi-strategy-tooltip,
.as-oi-strategy-info:focus-within .as-oi-strategy-tooltip,
.as-oi-strategy-info.is-open .as-oi-strategy-tooltip {
  visibility: visible;
  transform: translate(-36%, 0);
  opacity: 1;
  pointer-events: auto;
}

.as-oi-diagnostics-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.38rem;
}

.as-oi-health-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.28rem;
}

.as-chart-oi-heading > span[data-oi-heading-copy] strong {
  font-size: 1rem;
  line-height: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.as-chart-oi-heading > span[data-oi-heading-copy] small {
  margin-top: 0.18rem;
  color: #94a3b8;
  font-size: 0.7rem;
  line-height: 0.88rem;
  font-weight: 650;
}

.as-chart-oi-imbalance {
  min-height: 1.8rem;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 0.58rem;
  background: rgba(15, 23, 42, 0.52);
  padding: 0.28rem 0.48rem;
  font-size: 0.76rem !important;
  font-weight: 720;
}

.as-chart-oi-imbalance #kpiRiskMeter {
  font-size: 0.9rem;
  font-weight: 850;
}

.as-chart-oi-status {
  min-height: 1.8rem;
  margin: 0 !important;
  padding: 0.34rem 0.48rem !important;
  font-size: 0.64rem !important;
  line-height: 0.82rem;
  letter-spacing: 0.035em;
}

.as-chart-oi-body {
  grid-template-columns: minmax(205px, 1.1fr) 96px minmax(235px, 1.22fr) minmax(205px, 0.95fr) 70px;
  gap: 0.52rem;
  overflow-x: hidden;
}

.as-oi-diagnostics {
  gap: 0.38rem !important;
}

.as-oi-diagnostics > div {
  border-radius: 0.65rem !important;
  background: rgba(15, 23, 42, 0.52);
  padding: 0.42rem 0.5rem !important;
}

.as-oi-diagnostics > div > div:first-child {
  display: flex;
  min-height: 1.45rem;
  align-items: center;
  overflow: visible;
  color: #94a3b8;
  font-size: 0.7rem !important;
  line-height: 0.84rem;
  font-weight: 700;
  text-overflow: clip;
  white-space: normal;
}

.as-oi-diagnostics > div > div:last-child {
  margin-top: 0.12rem !important;
  color: #f8fafc;
  font-size: 0.96rem;
  line-height: 1.06rem;
  font-weight: 820;
}

.as-oi-max-pain,
.as-oi-iv {
  border-radius: 0.65rem;
  padding: 0.45rem !important;
}

.as-oi-max-pain > span:first-child,
.as-oi-iv > span:first-child {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
}

.as-oi-max-pain #kpiMaxPain {
  margin-top: 0.2rem;
  font-size: 1.18rem !important;
  line-height: 1.24rem;
  font-weight: 850;
}

.as-oi-level-cards {
  gap: 0.42rem !important;
}

.as-oi-level-cards > div {
  border-radius: 0.68rem !important;
  padding: 0.42rem !important;
}

.as-oi-level-cards > div > div:first-child {
  font-size: 0.7rem !important;
  line-height: 0.84rem;
  font-weight: 750;
}

.as-oi-level-cards #kpiResist,
.as-oi-level-cards #kpiSupport {
  margin-top: 0.14rem !important;
  font-size: 1.28rem !important;
  line-height: 1.34rem;
  font-weight: 900;
}

.as-oi-level-cards > div > div:last-child {
  margin-top: 0.1rem !important;
  font-size: 0.68rem !important;
  font-weight: 650;
}

.as-oi-bias {
  gap: 0.38rem !important;
}

.as-oi-bias > div {
  border-radius: 0.65rem !important;
  padding: 0.4rem 0.48rem !important;
  font-size: 0.74rem;
  font-weight: 700;
}

.as-oi-pcr-card,
.as-oi-call-put-card {
  min-height: 2.9rem;
  border: 1px solid rgba(71, 85, 105, 0.62);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.48)) !important;
}

.as-oi-pcr-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center !important;
  gap: 0.5rem;
}

.as-oi-pcr-card > span:first-child,
.as-oi-call-put-card > span:first-child {
  color: #94a3b8 !important;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.as-oi-pcr-card > span:last-child {
  display: grid !important;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem !important;
}

.as-oi-pcr-card #kpiPCR {
  display: inline-flex;
  min-width: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 63, 94, 0.42);
  border-radius: 0.5rem;
  background: rgba(136, 19, 55, 0.22);
  padding: 0.25rem 0.38rem;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1rem;
}

.as-oi-pcr-card #kpiPcrReason {
  min-width: 0;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 0.9rem;
  text-transform: none;
  white-space: normal;
}

.as-oi-call-put-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem;
}

.as-oi-call-put-card #kpiCallPutBias {
  display: inline-flex;
  min-width: 3.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.26);
  padding: 0.28rem 0.55rem;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.045em;
}

.as-oi-iv #kpiIV {
  margin-top: 0.2rem;
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 820;
}

@media (max-width: 1023px) {
  .as-chart-oi-panel {
    grid-template-columns: minmax(9.5rem, 11.5rem) minmax(48rem, 1fr);
    overflow-x: auto;
  }

  .as-oi-strategy-tooltip {
    left: 0 !important;
    width: min(20rem, calc(100vw - 2rem)) !important;
    transform: translate(0, -0.2rem);
  }

  .as-oi-strategy-info:hover .as-oi-strategy-tooltip,
  .as-oi-strategy-info:focus-within .as-oi-strategy-tooltip,
  .as-oi-strategy-info.is-open .as-oi-strategy-tooltip {
    transform: translate(0, 0);
  }
}

/* Global paper-trade moment. Entry and exit take one rich, dismissible surface;
   a minimized live trade remains available without stealing chart layout. */
.as-trade-flash {
  position: fixed;
  top: 5.25rem;
  right: 1rem;
  z-index: 118;
  width: min(34rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.55);
  border-radius: 1.1rem;
  background: rgba(2, 6, 23, 0.97);
  color: #f8fafc;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(18px);
}

.as-trade-flash.hidden,
.as-trade-live-dock.hidden {
  display: none !important;
}

.as-trade-flash.is-exit {
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.as-trade-flash.is-loss {
  border-color: rgba(251, 113, 133, 0.66);
}

.as-trade-flash-accent {
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #22d3ee 55%, transparent 100%);
}

.as-trade-flash.is-exit .as-trade-flash-accent {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 55%, transparent 100%);
}

.as-trade-flash.is-loss .as-trade-flash-accent {
  background: linear-gradient(90deg, #fb7185 0%, #f97316 55%, transparent 100%);
}

.as-trade-flash-header,
.as-trade-flash-footer,
.as-trade-flash-rationale {
  padding: 0.9rem 1rem;
}

.as-trade-flash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.as-trade-flash-eyebrow {
  color: #6ee7b7;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.as-trade-flash.is-exit .as-trade-flash-eyebrow {
  color: #fcd34d;
}

.as-trade-flash-header h2 {
  margin-top: 0.28rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.as-trade-flash-header p {
  margin-top: 0.2rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
}

.as-trade-flash-close,
.as-trade-flash-footer button {
  flex: none;
  border: 1px solid #334155;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.82);
  padding: 0.42rem 0.68rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 700;
}

.as-trade-flash-close:hover,
.as-trade-flash-footer button:hover {
  border-color: #64748b;
  color: #ffffff;
}

.as-trade-flash-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid #1e293b;
  background: #1e293b;
}

.as-trade-flash-prices > div {
  min-width: 0;
  background: rgba(15, 23, 42, 0.96);
  padding: 0.72rem 0.78rem;
}

.as-trade-flash-prices span,
.as-trade-flash-levels small,
.as-trade-dock-metric small {
  display: block;
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.as-trade-flash-prices strong,
.as-trade-flash-levels strong,
.as-trade-dock-metric strong {
  display: block;
  margin-top: 0.2rem;
  overflow: hidden;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-trade-flash .is-profit strong,
.as-trade-dock-metric.is-profit strong {
  color: #6ee7b7;
}

.as-trade-flash .is-loss strong,
.as-trade-dock-metric.is-loss strong {
  color: #fda4af;
}

.as-trade-flash-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.7rem 1rem 0;
}

.as-trade-flash-levels > span {
  min-width: 0;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.56);
  padding: 0.55rem 0.62rem;
}

.as-trade-flash-rationale-title,
.as-trade-flash-footer,
.as-trade-dock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.as-trade-flash-rationale-title span {
  font-size: 0.76rem;
  font-weight: 800;
}

.as-trade-flash-rationale-title small {
  max-width: 60%;
  overflow: hidden;
  color: #818cf8;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-trade-flash-rationale ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  line-height: 1.15rem;
}

.as-trade-flash-rationale p {
  margin-top: 0.5rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  line-height: 1.1rem;
}

.as-trade-flash-risk {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
  border-left: 2px solid #f59e0b;
  padding-left: 0.6rem;
  color: #fcd34d;
  font-size: 0.65rem;
  line-height: 1rem;
}

.as-trade-flash-footer {
  border-top: 1px solid #1e293b;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  color: #64748b;
  font-size: 0.62rem;
}

.as-trade-flash-pulse {
  animation: as-trade-flash-in 460ms cubic-bezier(0.2, 0.9, 0.25, 1), as-trade-flash-glow 900ms ease-out;
}

@keyframes as-trade-flash-in {
  from { opacity: 0; transform: translate3d(24px, -6px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes as-trade-flash-glow {
  0%, 100% { filter: brightness(1); }
  35% { filter: brightness(1.17); }
}

.as-trade-live-dock {
  position: fixed;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 108;
  width: min(42rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.95);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.as-trade-dock-heading {
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  padding: 0.35rem 0.65rem;
  color: #64748b;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.as-trade-dock-heading strong {
  color: #6ee7b7;
  font-size: 0.58rem;
}

.as-trade-dock-list {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.38rem;
}

.as-trade-dock-card {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #1e293b;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.76);
  padding: 0.45rem 0.55rem;
  color: #e2e8f0;
  text-align: left;
}

.as-trade-dock-card:hover {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.88);
}

.as-trade-live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
  animation: as-trade-live-dot 1.8s ease-in-out infinite;
}

@keyframes as-trade-live-dot {
  50% { opacity: 0.52; transform: scale(0.82); }
}

.as-trade-dock-copy {
  min-width: 0;
}

.as-trade-dock-copy strong,
.as-trade-dock-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-trade-dock-copy strong {
  font-size: 0.68rem;
}

.as-trade-dock-copy small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.54rem;
}

.as-trade-dock-metric {
  min-width: 4.15rem;
  text-align: right;
}

.as-trade-dock-more {
  display: flex;
  align-items: center;
  padding: 0 0.45rem;
  color: #94a3b8;
  font-size: 0.62rem;
  white-space: nowrap;
}

.theme-light .as-trade-flash,
.theme-light .as-trade-live-dock {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: 0 22px 64px rgba(15, 23, 42, 0.2);
}

.theme-light .as-trade-flash-prices,
.theme-light .as-trade-flash-prices > div,
.theme-light .as-trade-flash-levels > span,
.theme-light .as-trade-dock-card {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.theme-light .as-trade-flash-header h2,
.theme-light .as-trade-flash-prices strong,
.theme-light .as-trade-flash-levels strong,
.theme-light .as-trade-dock-card {
  color: #0f172a;
}

@media (max-width: 767px) {
  .as-trade-flash {
    top: auto;
    right: 0.65rem;
    bottom: 0.65rem;
    width: calc(100vw - 1.3rem);
    max-height: calc(100dvh - 1.3rem);
    overflow-y: auto;
  }

  .as-trade-flash-prices,
  .as-trade-flash-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-trade-live-dock {
    right: 0.65rem;
    bottom: 0.65rem;
    width: calc(100vw - 1.3rem);
  }

  .as-trade-dock-list {
    overflow-x: auto;
  }

  .as-trade-dock-card {
    min-width: min(26rem, calc(100vw - 2.1rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-trade-flash-pulse,
  .as-trade-live-dot {
    animation: none;
  }
}

/* Premium two-column authentication workspace. */
.alpha-auth-shell {
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgba(79, 70, 229, 0.14), transparent 34rem),
    #020617;
  color: #f8fafc;
}

.alpha-auth-page {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.alpha-auth-layout {
  width: min(96rem, 100%);
  height: calc(100dvh - 2rem);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(25rem, 0.86fr) minmax(34rem, 1.14fr);
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 1.6rem;
  background: rgba(3, 9, 24, 0.8);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.alpha-auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(2rem, 3.5vw, 4rem);
  border-right: 1px solid rgba(51, 65, 85, 0.72);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.92));
}

.alpha-auth-story::after {
  position: absolute;
  inset: auto 0 0;
  height: 12rem;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.08));
}

.alpha-auth-brand,
.alpha-auth-brand > div,
.alpha-auth-capabilities article,
.alpha-auth-card-top,
.alpha-auth-google,
.alpha-auth-trust {
  display: flex;
  align-items: center;
}

.alpha-auth-brand {
  position: relative;
  z-index: 1;
  gap: 0.9rem;
}

.alpha-auth-brand img {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(99, 102, 241, 0.55);
  border-radius: 1rem;
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.28);
}

.alpha-auth-brand > div {
  align-items: flex-start;
  flex-direction: column;
}

.alpha-auth-brand strong {
  color: #f8fafc;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.alpha-auth-brand strong span,
.alpha-auth-story-copy h2 span { color: #38bdf8; }

.alpha-auth-brand small {
  margin-top: 0.4rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alpha-auth-story-copy {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.25rem, 5vh, 4.75rem);
}

.alpha-auth-eyebrow {
  color: #818cf8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.alpha-auth-story-copy h2 {
  max-width: 37rem;
  margin-top: 0.8rem;
  color: #f8fafc;
  font-size: clamp(2.15rem, 3.4vw, 3.65rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.alpha-auth-story-copy > p:last-child {
  max-width: 37rem;
  margin-top: 1.15rem;
  color: #a8b5c9;
  font-size: clamp(0.98rem, 1.15vw, 1.13rem);
  line-height: 1.72;
}

.alpha-auth-capabilities {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(1.7rem, 3.8vh, 3rem);
}

.alpha-auth-capabilities article { gap: 0.85rem; min-width: 0; }

.alpha-auth-capability-tag {
  flex: 0 0 4.2rem;
  border: 1px solid currentColor;
  border-radius: 0.55rem;
  padding: 0.42rem 0.3rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.alpha-auth-capability-tag.is-blue { color: #60a5fa; }
.alpha-auth-capability-tag.is-cyan { color: #2dd4bf; }
.alpha-auth-capability-tag.is-amber { color: #fbbf24; }
.alpha-auth-capability-tag.is-violet { color: #a78bfa; }
.alpha-auth-capabilities article > div { min-width: 0; }
.alpha-auth-capabilities strong,
.alpha-auth-capabilities small { display: block; }
.alpha-auth-capabilities strong { color: #e2e8f0; font-size: 0.88rem; }
.alpha-auth-capabilities small { margin-top: 0.18rem; color: #7f8da3; font-size: 0.74rem; line-height: 1.35; }

.alpha-auth-market-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.58);
}

.alpha-auth-market-card > div { min-width: 0; padding: 1rem; }
.alpha-auth-market-card > div + div { border-left: 1px solid rgba(51, 65, 85, 0.72); }
.alpha-auth-market-card small,
.alpha-auth-market-card strong { display: block; }
.alpha-auth-market-card small { color: #64748b; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.alpha-auth-market-card strong { margin-top: 0.35rem; color: #cbd5e1; font-size: 0.78rem; }

.alpha-auth-trust {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 700;
}
.alpha-auth-trust span + span::before { margin-right: 1rem; color: #334155; content: "|"; }

.alpha-auth-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.6rem, 2.7vw, 3rem);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.93), rgba(4, 11, 28, 0.97));
}

.alpha-auth-card-top { justify-content: space-between; gap: 1.5rem; }
.alpha-auth-card-top h1 { margin-top: 0.35rem; color: #f8fafc; font-size: clamp(2rem, 2.6vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.alpha-auth-card-top #authSubtitle { margin-top: 0.55rem; color: #94a3b8; font-size: 0.93rem; }

.alpha-auth-theme {
  flex: 0 0 auto;
  border: 1px solid #334155;
  border-radius: 0.7rem;
  background: rgba(2, 6, 23, 0.62);
  padding: 0.55rem 0.78rem;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
}
.alpha-auth-theme:hover { border-color: #6366f1; color: #fff; }

.alpha-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem;
  border: 1px solid #263349;
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.68);
  padding: 0.28rem;
}
.alpha-auth-tabs button { border-radius: 0.62rem; padding: 0.7rem 1rem; font-size: 0.82rem; font-weight: 800; }

.alpha-auth-content {
  min-height: 0;
  margin-top: 1.2rem;
  overflow-y: auto;
  padding-right: 0.28rem;
  scrollbar-color: #334155 transparent;
  scrollbar-width: thin;
}

.alpha-auth-primary-access { display: grid; gap: 0.55rem; }
.alpha-auth-google { width: 100%; justify-content: flex-start; gap: 0.9rem; border: 1px solid #cbd5e1; border-radius: 0.85rem; background: #fff; padding: 0.86rem 1rem; color: #0f172a; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2); }
.alpha-auth-google:hover { border-color: #fff; background: #f8fafc; transform: translateY(-1px); }
.alpha-auth-google:disabled { cursor: wait; opacity: 0.65; }
.alpha-auth-google svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.alpha-auth-google span { flex: 1 1 auto; font-size: 0.94rem; font-weight: 800; text-align: left; }
.alpha-auth-google small { color: #64748b; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.alpha-auth-google-help,
.alpha-auth-recovery-copy { color: #7f8da3; font-size: 0.7rem; line-height: 1.45; }

.alpha-auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.85rem 0; color: #64748b; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.alpha-auth-divider::before,
.alpha-auth-divider::after { height: 1px; flex: 1 1 auto; content: ""; background: #243044; }

.alpha-auth-form,
.alpha-auth-signup,
.alpha-auth-mfa { display: grid; gap: 0.8rem; }
.alpha-auth-form.hidden,
.alpha-auth-signup.hidden,
.alpha-auth-mfa.hidden,
.alpha-auth-notice.hidden { display: none; }
.alpha-auth-form label,
.alpha-auth-signup label { display: block; }
.alpha-auth-form label > span,
.alpha-auth-signup label > span { display: block; margin-bottom: 0.35rem; color: #cbd5e1; font-size: 0.72rem; font-weight: 800; }
.alpha-auth-form input,
.alpha-auth-signup input,
.alpha-auth-signup select { width: 100%; border: 1px solid #334155; border-radius: 0.72rem; background: rgba(2, 6, 23, 0.72); padding: 0.72rem 0.84rem; color: #f8fafc; font-size: 0.85rem; outline: none; }
.alpha-auth-form input:focus,
.alpha-auth-signup input:focus,
.alpha-auth-signup select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }
.alpha-auth-form input::placeholder,
.alpha-auth-signup input::placeholder { color: #526176; }

.alpha-auth-signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.alpha-auth-signup-grid .is-wide { grid-column: 1 / -1; }
.alpha-auth-signup-grid label > small { display: block; margin-top: 0.3rem; color: #64748b; font-size: 0.62rem; }

.alpha-auth-submit { width: 100%; border: 1px solid rgba(96, 165, 250, 0.35); border-radius: 0.75rem; background: linear-gradient(90deg, #2563eb, #4f46e5); padding: 0.75rem 1rem; color: #fff; font-size: 0.83rem; font-weight: 900; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2); }
.alpha-auth-submit:hover { filter: brightness(1.08); }
.alpha-auth-submit:disabled { cursor: wait; opacity: 0.6; }

.alpha-auth-notice { border: 1px solid #334155; border-radius: 0.75rem; padding: 0.72rem 0.82rem; font-size: 0.69rem; line-height: 1.5; }
.alpha-auth-notice.is-warning { border-color: rgba(217, 119, 6, 0.46); background: rgba(120, 53, 15, 0.12); color: #fcd34d; }
.alpha-auth-notice.is-info { border-color: rgba(99, 102, 241, 0.42); background: rgba(49, 46, 129, 0.15); color: #c7d2fe; }
.alpha-auth-status { min-height: 1rem; font-size: 0.72rem; line-height: 1.35; }
.alpha-auth-mfa h2 { color: #f8fafc; font-size: 1.2rem; font-weight: 800; }
.alpha-auth-mfa > p { color: #94a3b8; font-size: 0.8rem; }
.alpha-auth-mfa-code { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.45rem !important; letter-spacing: 0.35em; }

.alpha-auth-legal { margin-top: 1rem; border-top: 1px solid #243044; padding-top: 0.85rem; color: #64748b; font-size: 0.62rem; line-height: 1.45; }

.alpha-auth-shell.theme-light { background: radial-gradient(circle at 10% 10%, #dbeafe, transparent 35rem), #eef2ff; }
.theme-light .alpha-auth-layout,
.theme-light .alpha-auth-card,
.theme-light .alpha-auth-story { border-color: #cbd5e1; background: rgba(255, 255, 255, 0.95); color: #0f172a; }
.theme-light .alpha-auth-brand strong,
.theme-light .alpha-auth-story-copy h2,
.theme-light .alpha-auth-card-top h1,
.theme-light .alpha-auth-capabilities strong,
.theme-light .alpha-auth-market-card strong,
.theme-light .alpha-auth-form label > span,
.theme-light .alpha-auth-signup label > span,
.theme-light .alpha-auth-mfa h2 { color: #0f172a; }
.theme-light .alpha-auth-story-copy > p:last-child,
.theme-light .alpha-auth-card-top #authSubtitle { color: #475569; }
.theme-light .alpha-auth-market-card,
.theme-light .alpha-auth-tabs,
.theme-light .alpha-auth-form input,
.theme-light .alpha-auth-signup input,
.theme-light .alpha-auth-signup select,
.theme-light .alpha-auth-theme { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }

@media (max-width: 1100px) {
  .alpha-auth-page { height: auto; align-items: flex-start; overflow: visible; padding: 1.25rem; }
  .alpha-auth-layout { height: auto; min-height: calc(100dvh - 2.5rem); grid-template-columns: 1fr; overflow: visible; }
  .alpha-auth-story { border-right: 0; border-bottom: 1px solid rgba(51, 65, 85, 0.72); }
  .alpha-auth-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alpha-auth-story-copy { margin-top: 2rem; }
  .alpha-auth-market-card { margin-top: 2rem; }
  .alpha-auth-card { max-height: none; }
  .alpha-auth-content { overflow: visible; }
}

@media (max-width: 640px) {
  .alpha-auth-page { padding: 0; }
  .alpha-auth-layout { min-height: 100dvh; border: 0; border-radius: 0; }
  .alpha-auth-story,
  .alpha-auth-card { padding: 1.25rem; }
  .alpha-auth-story-copy h2 { font-size: 2.15rem; }
  .alpha-auth-capabilities,
  .alpha-auth-market-card,
  .alpha-auth-signup-grid { grid-template-columns: 1fr; }
  .alpha-auth-market-card > div + div { border-top: 1px solid rgba(51, 65, 85, 0.72); border-left: 0; }
  .alpha-auth-trust,
  .alpha-auth-google small { display: none; }
  .alpha-auth-signup-grid .is-wide { grid-column: auto; }
}

/* LIVE desk: keep all analytical evidence in the left decision rail so the
   candle workspace owns the full 75% column. The lower Pully pane is a real,
   time-synchronised chart rather than an overlay on the candle price scale. */
.as-chart-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 3.2fr) minmax(112px, 0.95fr);
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 0.85rem;
  background: #0b1220;
}

.as-oi-reach-overlay {
  position: absolute;
  z-index: 12;
  top: 4.75rem;
  left: 0.8rem;
  width: min(20rem, calc(100% - 5.5rem));
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.48);
  border-radius: 0.72rem;
  background: rgba(2, 6, 23, 0.88);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.42);
  color: #e2e8f0;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.as-oi-reach-overlay.hidden { display: none; }

.as-oi-reach-heading,
.as-oi-reach-row {
  display: grid;
  min-width: 0;
  align-items: center;
}

.as-oi-reach-heading {
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.62);
}

.as-oi-reach-heading strong {
  color: #c7d2fe;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.as-oi-reach-heading span {
  justify-self: end;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 999px;
  padding: 0.13rem 0.38rem;
  color: #fde047;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.as-oi-reach-overlay.is-data-stale .as-oi-reach-heading span {
  border-color: rgba(251, 113, 133, 0.52);
  color: #fda4af;
}

.as-oi-reach-row {
  grid-template-columns: 4.4rem 4.25rem minmax(0, 1fr) 2.65rem;
  gap: 0.38rem;
  padding: 0.38rem 0.55rem;
  font-size: 0.62rem;
}

.as-oi-reach-row + .as-oi-reach-row {
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.as-oi-reach-row > span {
  font-weight: 850;
  text-transform: uppercase;
}

.as-oi-reach-row > b,
.as-oi-reach-row > small em,
.as-oi-reach-row > i {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}

.as-oi-reach-row > b { font-size: 0.84rem; font-weight: 900; }
.as-oi-reach-row > small { overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.as-oi-reach-row > small em { color: #cbd5e1; }
.as-oi-reach-row > i { justify-self: end; font-size: 0.72rem; font-weight: 900; }
.as-oi-reach-row.is-bull > span,
.as-oi-reach-row.is-bull > b,
.as-oi-reach-row.is-bull > i { color: #4ade80; }
.as-oi-reach-row.is-bear > span,
.as-oi-reach-row.is-bear > b,
.as-oi-reach-row.is-bear > i { color: #fb7185; }

@media (min-width: 1024px) {
  body.as-chart-focus-active .as-oi-reach-overlay {
    top: 8rem;
  }
}

@media (max-width: 720px) {
  .as-oi-reach-overlay {
    top: 0.55rem;
    width: min(17rem, calc(100% - 4.5rem));
  }
  .as-oi-reach-row {
    grid-template-columns: 3.9rem 3.8rem minmax(0, 1fr);
  }
  .as-oi-reach-row > i { display: none; }
}

.as-chart-stage > #chart,
.as-chart-stage > #chartFuture {
  position: relative;
  min-width: 0;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.as-chart-day-boundaries {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.as-chart-day-boundary {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(129, 140, 248, 0.68);
}

.as-chart-day-boundary > span {
  position: absolute;
  bottom: 0.35rem;
  left: 0.3rem;
  border: 1px solid rgba(99, 102, 241, 0.55);
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.12rem 0.34rem;
  color: #c7d2fe;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.as-pully-pane {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-top: 1px solid rgba(71, 85, 105, 0.82);
  background: rgba(11, 18, 32, 0.98);
}

.as-pully-pane-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.32rem 0.72rem 0.24rem;
  color: #cbd5e1;
}

.as-pully-pane-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.5rem;
}

.as-pully-pane-header strong {
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.as-pully-pane-title > span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-pully-focus-insights {
  display: none;
  min-width: 0;
}

.as-focus-insight {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.68);
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.78);
  padding: 0.26rem 0.4rem;
  line-height: 1.05;
}

.as-focus-insight > span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.as-focus-insight > b {
  display: block;
  overflow: hidden;
  margin-top: 0.14rem;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-focus-insight > small {
  display: block;
  overflow: hidden;
  margin-top: 0.08rem;
  color: #94a3b8;
  font-size: 0.48rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-focus-insight > small em {
  color: #cbd5e1;
  font-style: normal;
  font-weight: 800;
}

.as-focus-insight[data-tone="positive"] > b { color: #5eead4; }
.as-focus-insight[data-tone="negative"] > b { color: #fda4af; }
.as-focus-insight[data-tone="warning"] > b { color: #facc15; }

@media (min-width: 1024px) {
  body.as-chart-focus-active .as-pully-pane-header {
    display: flex;
    position: relative;
    z-index: 8;
    min-height: 2.45rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.22rem 0.7rem;
  }

  .as-pully-pane-header {
    position: relative;
    z-index: 8;
  }

  body.as-chart-focus-active .as-pully-pane-title {
    flex: 0 1 auto;
  }

  body.as-chart-focus-active .as-pully-focus-insights {
    display: none;
  }

  body.as-chart-focus-active .as-pully-header-actions {
    flex: 0 0 auto;
  }

  body.as-chart-focus-active .as-pully-latest {
    display: none;
  }

  body.as-chart-focus-active .as-pully-chart-toolbar {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.24rem;
    margin-left: auto;
  }

  body.as-chart-focus-active .as-pully-chart-toolbar .as-chart-tf-buttons,
  body.as-chart-focus-active .as-pully-chart-toolbar .as-chart-quick-actions {
    flex: 0 0 auto;
  }

  body.as-chart-focus-active .as-pully-chart-toolbar .as-chart-quick-action,
  body.as-chart-focus-active .as-pully-chart-toolbar #btnChartFocus {
    min-height: 1.75rem;
    height: 1.75rem;
    padding: 0.22rem 0.48rem;
    font-size: 0.61rem;
  }
}

.as-pully-header-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.as-pully-latest {
  display: inline-flex;
  pointer-events: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 780;
}

.as-pully-latest span {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
}

.as-pully-latest span::before {
  width: 0.42rem;
  height: 0.16rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.as-pully-latest .is-bull { color: #4ade80; background: rgba(20, 83, 45, 0.2); }
.as-pully-latest .is-bear { color: #fb7185; background: rgba(136, 19, 55, 0.18); }
.as-pully-latest .is-net { color: #a5b4fc; background: rgba(49, 46, 129, 0.2); }
.as-pully-latest .is-ratio { color: #facc15; background: rgba(113, 63, 18, 0.18); }
.as-pully-latest b { color: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.as-pully-fullscreen {
  flex: 0 0 auto;
  border: 1px solid rgba(99, 102, 241, 0.72);
  border-radius: 0.55rem;
  background: rgba(49, 46, 129, 0.24);
  padding: 0.22rem 0.5rem;
  color: #c7d2fe;
  font-size: 0.65rem;
  font-weight: 800;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.as-pully-fullscreen:hover,
.as-pully-fullscreen[aria-pressed="true"] {
  border-color: rgba(129, 140, 248, 0.96);
  background: rgba(67, 56, 202, 0.42);
  color: #ffffff;
}

.as-pully-chart {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.as-chart-shell:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  border-radius: 0 !important;
  background: #020617;
  padding: 0.55rem;
}

.as-fullscreen-execution-plan {
  display: none;
}

.as-chart-shell:fullscreen .as-fullscreen-execution-plan.has-running-trade:not([hidden]) {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 44dvh;
  overflow: auto;
  align-items: start;
}
.as-fullscreen-execution-plan.has-running-trade .as-fullscreen-execution-heading {
  grid-column: 1;
  grid-row: 1;
}
.as-fullscreen-execution-plan.has-running-trade .as-fullscreen-execution-cards {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
}
.as-fullscreen-running {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  min-height: 0;
}
#fullscreenRunningTradeStatus {
  min-width: 0;
  max-height: calc(44dvh - 1rem);
  overflow: auto;
  border: 1px solid #285565;
  border-radius: 8px;
  background: #091c29;
  padding: 8px;
}
#fullscreenPositionManagement:not(.hidden) {
  margin: 0 0 8px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .as-chart-shell:fullscreen .as-fullscreen-execution-plan.has-running-trade:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .as-fullscreen-running { grid-column: 1; grid-row: 1; }
  .as-fullscreen-execution-plan.has-running-trade .as-fullscreen-execution-heading { display: none; }
}

.as-chart-shell:fullscreen .as-fullscreen-execution-plan:not([hidden]) {
  display: grid;
  min-width: 0;
  flex: 0 0 auto;
  grid-template-columns: 10.75rem minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 0.42rem;
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 0.78rem;
  background: rgba(15, 23, 42, 0.96);
  padding: 0.42rem;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.34);
}

.as-fullscreen-execution-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  border-right: 1px solid rgba(51, 65, 85, 0.82);
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
}

.as-fullscreen-execution-heading > span {
  color: #818cf8;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.as-fullscreen-execution-heading > strong {
  color: #f8fafc;
  font-size: 0.78rem;
  line-height: 1rem;
}

.as-fullscreen-execution-heading > small {
  color: #64748b;
  font-size: 0.55rem;
}

.as-fullscreen-execution-cards {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.as-fullscreen-execution-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.25rem 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.46);
  border-radius: 0.62rem;
  background: rgba(30, 27, 75, 0.22);
  padding: 0.36rem 0.45rem;
}

.as-fullscreen-execution-card.is-future {
  border-color: rgba(8, 145, 178, 0.42);
  background: rgba(8, 47, 73, 0.2);
}

.as-fullscreen-execution-card-title {
  align-self: center;
  color: #a5b4fc;
  font-size: 0.59rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 0.78rem;
  text-transform: uppercase;
}

.as-fullscreen-execution-card.is-future .as-fullscreen-execution-card-title {
  color: #67e8f9;
}

.as-fullscreen-execution-metrics {
  display: grid;
  min-width: 0;
  grid-template-columns: 0.65fr 0.8fr 1.35fr 0.72fr 0.78fr;
  gap: 0.24rem;
}

.as-fullscreen-execution-metrics > div {
  min-width: 0;
  border: 1px solid rgba(51, 65, 85, 0.76);
  border-radius: 0.42rem;
  background: rgba(2, 6, 23, 0.38);
  padding: 0.18rem 0.28rem;
}

.as-fullscreen-execution-metrics span,
.as-fullscreen-execution-metrics b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-fullscreen-execution-metrics span {
  color: #64748b;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.as-fullscreen-execution-metrics b {
  margin-top: 0.08rem;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  line-height: 0.72rem;
}

.as-fullscreen-execution-detail {
  min-width: 0;
  grid-column: 1 / -1;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.53rem;
  line-height: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .as-chart-shell:fullscreen .as-fullscreen-execution-plan:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }

  .as-fullscreen-execution-heading {
    display: none;
  }
}

.as-pully-pane:fullscreen {
  width: 100vw;
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
  border: 0;
  background: #020617;
  padding: 0.65rem;
}

.as-pully-pane:fullscreen .as-pully-pane-header {
  padding: 0.45rem 0.35rem 0.65rem;
}

.as-pully-pane:fullscreen .as-pully-chart {
  min-height: 0;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 0.75rem;
}

.as-chart-shell:fullscreen .as-chart-body,
.as-chart-shell:fullscreen .as-chart-view,
.as-chart-shell:fullscreen .as-chart-wrap:not(.hidden),
.as-chart-shell:fullscreen .as-chart-card,
.as-chart-shell:fullscreen .as-chart-stage {
  min-height: 0;
  flex: 1 1 auto;
}

#btnChartFullscreen[aria-pressed="true"] {
  border-color: rgba(129, 140, 248, 0.9);
  background: rgba(49, 46, 129, 0.48);
  color: #ffffff;
}

.theme-light .as-chart-stage,
.theme-light .as-pully-pane {
  border-color: #cbd5e1;
  background: #ffffff;
}

.as-session-terminal-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.66);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.28);
  padding: 0.12rem 0.42rem;
  color: #fcd34d;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1rem;
  white-space: nowrap;
}

.as-session-terminal-chip.hidden { display: none; }

.as-session-primary-context {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.as-session-primary-context #btnTheme,
.as-session-primary-context #btnBackPortfolio {
  min-height: 2.15rem;
  border-color: rgba(71, 85, 105, 0.76) !important;
  background: rgba(15, 23, 42, 0.82) !important;
}

.as-session-primary-context #sessionMarketContext {
  max-width: 18rem !important;
  min-height: 2.15rem;
}

@media (min-width: 1024px) {
  body.alpha-session-shell > header .as-session-commandbar {
    justify-content: space-between;
    min-height: 3.05rem;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
  }

  body.alpha-session-shell .as-session-controls-in-header {
    flex: 0 0 auto;
    gap: 0.22rem;
  }

  body.alpha-session-shell .as-session-controls-in-header > button,
  body.alpha-session-shell .as-session-controls-in-header > label,
  body.alpha-session-shell .as-session-controls-in-header #status {
    min-height: 1.9rem;
    height: 1.9rem;
    padding: 0.24rem 0.48rem !important;
    font-size: 0.62rem !important;
  }

  body.alpha-session-shell #tabsStrip {
    position: relative;
    display: inline-flex !important;
    overflow: hidden;
    gap: 0 !important;
    width: auto;
    margin-left: auto;
    border: 1px solid rgba(71, 85, 105, 0.82) !important;
    border-radius: 0.78rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
    padding: 0.18rem !important;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08), 0 8px 24px rgba(2, 6, 23, 0.28);
  }

  body.alpha-session-shell #tabsStrip > button[role="tab"] {
    position: relative;
    min-height: 2.05rem;
    border: 0 !important;
    border-radius: 0.58rem !important;
    background: transparent;
    padding: 0.34rem 0.78rem !important;
    color: #94a3b8;
    font-size: 0.68rem !important;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  }

  body.alpha-session-shell #tabsStrip > button[role="tab"] + button[role="tab"]::before {
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: -1px;
    width: 1px;
    background: rgba(71, 85, 105, 0.48);
    content: "";
  }

  body.alpha-session-shell #tabsStrip > button[role="tab"][aria-selected="true"] {
    z-index: 1;
    background: linear-gradient(135deg, #4f46e5, #6366f1 62%, #2563eb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px rgba(79, 70, 229, 0.34);
    color: #ffffff;
    transform: translateY(-1px);
  }

  body.alpha-session-shell #tabsStrip > button[role="tab"][aria-selected="true"]::before,
  body.alpha-session-shell #tabsStrip > button[role="tab"][aria-selected="true"] + button[role="tab"]::before {
    opacity: 0;
  }
}

@media (max-width: 1320px) {
  .as-session-primary-context #btnBackPortfolio { display: none; }
  .as-session-primary-context #sessionMarketContext { max-width: 14rem !important; }
}

@media (max-width: 1180px) {
  .as-pully-pane-header { align-items: flex-start; }
  .as-pully-header-actions { flex-wrap: wrap; }
  .as-pully-latest {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.24rem;
    font-size: 0.58rem;
  }
  .as-pully-latest span {
    padding: 0.14rem 0.32rem;
  }
}

@media (min-width: 1024px) {
  .as-decision-column {
    display: flex !important;
    min-height: 0;
    flex-direction: column;
  }

  .as-decision-column > .as-predictor-card {
    flex: 0 0 auto;
    padding: 0.78rem !important;
  }

  .as-decision-column > .as-predictor-card .as-predictor-body {
    margin-top: 0.65rem !important;
    padding: 0.72rem !important;
  }

  .as-decision-column > .as-predictor-card .mt-1.flex:empty {
    display: none;
  }

  .as-decision-column > .as-predictor-card #kpiSignal {
    font-size: 1.62rem !important;
    line-height: 1.85rem;
  }

  .as-left-oi-panel {
    display: grid;
    min-height: 0;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.45rem !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0.58rem !important;
  }

  .as-left-oi-panel .as-chart-oi-heading {
    min-height: 2.8rem;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.55rem;
    border-right: 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.72);
    padding: 0.1rem 0.15rem 0.5rem;
  }

  .as-left-oi-panel .as-oi-strategy-identity {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.55rem;
  }

  .as-left-oi-panel .as-oi-strategy-eyebrow {
    flex: 0 0 auto;
  }

  .as-left-oi-panel .as-oi-strategy-row {
    justify-content: flex-end;
  }

  .as-left-oi-panel .as-oi-strategy-row #activeStrategyName {
    font-size: 0.88rem !important;
    line-height: 1rem;
  }

  .as-left-oi-panel .as-chart-oi-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.38rem !important;
    overflow: visible !important;
  }

  .as-left-oi-panel .as-oi-diagnostics-stack {
    grid-column: 1 / -1;
  }

  .as-left-oi-panel .as-oi-health-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-left-oi-panel .as-oi-diagnostics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .as-left-oi-panel .as-oi-diagnostics > div {
    padding: 0.32rem 0.36rem !important;
  }

  .as-left-oi-panel .as-oi-diagnostics > div > div:first-child {
    min-height: 1.7rem;
    font-size: 0.61rem !important;
    line-height: 0.74rem;
  }

  .as-left-oi-panel .as-oi-diagnostics > div > div:last-child {
    font-size: 0.84rem;
  }

  .as-left-oi-panel .as-oi-max-pain,
  .as-left-oi-panel .as-oi-iv {
    grid-column: span 1;
  }

  .as-left-oi-panel .as-oi-level-cards {
    grid-column: span 2;
  }

  .as-left-oi-panel .as-oi-bias {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .as-left-oi-panel .as-oi-pcr-card,
  .as-left-oi-panel .as-oi-call-put-card {
    min-height: 2.7rem;
  }

  .as-left-oi-panel .as-oi-strategy-tooltip {
    left: auto !important;
    right: 0 !important;
    transform: translate(0, -0.2rem);
  }

  .as-left-oi-panel .as-oi-strategy-info:hover .as-oi-strategy-tooltip,
  .as-left-oi-panel .as-oi-strategy-info:focus-within .as-oi-strategy-tooltip,
  .as-left-oi-panel .as-oi-strategy-info.is-open .as-oi-strategy-tooltip {
    transform: translate(0, 0);
  }

  .as-chart-card > .as-chart-stage {
    flex: 1 1 auto;
  }

  /* Execution is the final decision produced by the chart evidence, so it
     reads left-to-right beneath the time-aligned Pully pane instead of taking
     away either the analytical rail or candle width. */
  .as-chart-column > .as-execution-bottom {
    display: block !important;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 0 0 11.65rem;
    overflow: hidden;
  }

  .as-chart-column > .as-execution-bottom .as-execution-panel {
    display: grid;
    height: 100% !important;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.25rem;
    padding: 0.45rem !important;
    border-radius: 0.9rem !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-panel > .flex:first-child {
    align-items: center;
    align-self: auto;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0 0.2rem 0.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  }

  .as-chart-column > .as-execution-bottom .as-execution-panel > .flex:first-child > div:first-child {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.55rem;
  }

  .as-chart-column > .as-execution-bottom .as-execution-panel > .flex:first-child .mt-1 {
    margin-top: 0 !important;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom .as-execution-panel > .has-inline-trade-dock {
    position: relative;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline {
    position: static;
    z-index: auto;
    display: grid;
    width: min(34rem, 58%);
    min-width: 22rem;
    max-height: 2.15rem;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: 0.58rem;
    background: rgba(2, 6, 23, 0.72);
    box-shadow: none;
    backdrop-filter: none;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-heading {
    display: flex;
    min-width: 7.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    border-right: 1px solid rgba(30, 41, 59, 0.9);
    border-bottom: 0;
    padding: 0.12rem 0.34rem;
    font-size: 0.48rem;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-list {
    min-width: 0;
    gap: 0.2rem;
    overflow: hidden;
    padding: 0.08rem 0.16rem;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-card {
    min-width: 0;
    gap: 0.34rem;
    border: 0;
    background: transparent;
    padding: 0.1rem 0.24rem;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-copy strong,
  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-metric strong {
    font-size: 0.6rem;
    line-height: 0.72rem;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-copy small {
    display: none;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-metric {
    min-width: 3.35rem;
  }

  .as-chart-column > .as-execution-bottom .as-trade-live-dock.is-inline .as-trade-dock-more {
    padding: 0 0.25rem;
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-list {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 0.55rem;
    margin-top: 0 !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-card {
    display: grid;
    min-height: 0;
    grid-template-rows: repeat(5, auto);
    gap: 0.1rem;
    overflow: hidden;
    padding: 0.38rem 0.5rem !important;
    border-radius: 0.72rem !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-card > .uppercase {
    font-size: 0.64rem !important;
    line-height: 0.78rem;
  }

  .as-chart-column > .as-execution-bottom .as-execution-metrics {
    display: grid !important;
    grid-template-columns: 0.62fr 0.8fr 1.35fr 0.7fr 0.75fr !important;
    gap: 0.3rem !important;
    margin-top: 0 !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-metrics > div {
    min-width: 0;
    grid-column: auto !important;
    padding: 0.28rem 0.38rem !important;
    border-radius: 0.48rem !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-metrics > div > div:first-child {
    font-size: 0.52rem !important;
    line-height: 0.64rem;
  }

  .as-chart-column > .as-execution-bottom .as-execution-metrics > div > div:last-child {
    margin-top: 0.1rem !important;
    overflow: hidden;
    font-size: 0.7rem !important;
    line-height: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom .as-execution-reason {
    min-width: 0;
    margin-top: 0 !important;
    overflow: hidden;
    font-size: 0.61rem !important;
    line-height: 0.76rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom .as-execution-admission {
    display: flex;
    min-width: 0;
    min-height: 1.14rem;
    align-items: center;
    gap: 0.38rem;
    margin-top: 0 !important;
    margin-right: 6.25rem !important;
    overflow: hidden;
    padding: 0.16rem 0.36rem !important;
    font-size: 0.59rem !important;
    line-height: 0.72rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom .as-execution-admission > div {
    min-width: 0;
    margin-top: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom .as-execution-admission > div:first-child {
    flex: 0 0 auto;
  }

  .as-chart-column > .as-execution-bottom details[id$="ResearchRationale"] {
    min-width: 0;
    min-height: 1.2rem;
    margin: 0 6.25rem 0 0 !important;
    overflow: hidden;
    padding: 0.17rem 0.38rem !important;
    border-radius: 0.52rem !important;
  }

  .as-chart-column > .as-execution-bottom details[id$="ResearchRationale"] > summary {
    overflow: hidden;
    font-size: 0.62rem !important;
    line-height: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .as-chart-column > .as-execution-bottom details[id$="ResearchRationale"][open] {
    position: absolute;
    z-index: 40;
    right: 0.55rem;
    bottom: 0.55rem;
    left: 0.55rem;
    max-height: min(24rem, 66vh);
    margin: 0 !important;
    overflow: auto;
    border-color: rgba(99, 102, 241, 0.72);
    background: #020617;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.72);
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-card.is-no-trade {
    display: flex;
    min-height: 2.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.38rem 0.55rem !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-card.is-no-trade .as-execution-metrics {
    grid-template-columns: minmax(5.5rem, 0.42fr) !important;
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-card.is-no-trade .as-execution-metrics > div:first-child {
    min-height: 1.55rem;
  }

  .as-chart-column > .as-execution-bottom .as-execution-plan-card.is-no-trade .as-execution-admission,
  .as-chart-column > .as-execution-bottom .as-execution-plan-card.is-no-trade details[id$="ResearchRationale"],
  .as-chart-column > .as-execution-bottom .as-execution-plan-card.is-no-trade > button[id^="alphaSignalAiExplain"] {
    display: none !important;
  }

  .as-chart-column > .as-execution-bottom.is-all-no-trade {
    flex-basis: 5.45rem;
  }
}

@media (max-width: 1023px) {
  .as-chart-stage {
    height: clamp(560px, 78vh, 760px);
    grid-template-rows: minmax(390px, 3fr) minmax(145px, 1fr);
  }

  .as-left-oi-panel {
    overflow-x: auto !important;
  }
}

@media (max-width: 640px) {
  .as-pully-pane-header > div:first-child span {
    display: none;
  }

  .as-pully-latest {
    font-size: 0.6rem;
  }
}

/* Operator line controls and readable, compact OI observation strip. */
.as-chart-lines-menu{position:relative;font-family:ui-sans-serif,system-ui,sans-serif;z-index:60}
.as-chart-lines-menu>summary{cursor:pointer;list-style:none;border:1px solid #5966aa;border-radius:10px;padding:9px 12px;color:#e0e7ff;background:#192444;font-size:12px;font-weight:750;white-space:nowrap}
.as-chart-lines-menu>summary::-webkit-details-marker{display:none}.as-chart-lines-menu>summary:focus-visible,.as-chart-lines-panel :focus-visible{outline:2px solid #47d6ed;outline-offset:3px}
.as-chart-lines-panel{position:absolute;bottom:calc(100% + 9px);right:0;width:310px;max-width:calc(100vw - 45px);max-height:min(470px,65dvh);overflow:auto;padding:16px;background:#101d31;color:#edf5ff;border:1px solid #506885;border-radius:12px;box-shadow:0 10px 40px #0009;z-index:70}
.as-chart-lines-actions{display:flex;gap:10px;margin-bottom:12px}.as-chart-lines-actions button{padding:7px 12px;border-radius:6px;background:#263e5b;color:#e8f5ff;font-size:12px;border:1px solid #587493}
.as-chart-lines-panel fieldset{margin:12px 0 0;padding:8px 0 0;border:0;border-top:1px solid #35465d}.as-chart-lines-panel legend{padding:0 7px 0 0;font-size:11px;color:#8ed8ed;text-transform:uppercase;letter-spacing:.06em}
.as-chart-lines-panel label{display:flex;align-items:center;gap:10px;padding:5px 2px;font-size:13px;line-height:1.4;cursor:pointer}.as-chart-lines-panel input{width:16px;height:16px;accent-color:#22c6e1}
.as-oi-reach-overlay{width:min(440px,calc(100% - 85px))}.as-oi-reach-heading strong{font-size:13px}.as-oi-reach-heading span{font-size:10px}
.as-oi-reach-row{grid-template-columns:auto auto auto auto auto;gap:10px;padding:10px 12px;font-size:12px}.as-oi-reach-row>b{font-size:19px}.as-oi-reach-row>small{font-size:12px;overflow:visible}.as-oi-reach-row>i{font-size:13px;display:block}
.as-oi-points{font:800 14px/1.4 ui-monospace,monospace;padding:5px 8px;border:1px solid #228657;border-radius:6px;background:#0a412e;color:#86efac;white-space:nowrap}
.as-oi-reach-row.is-bear .as-oi-points{color:#fda4af;background:#4c1626;border-color:#a6405a}
@media(min-width:1200px){.as-oi-reach-overlay{display:flex;align-items:center;width:max-content;max-width:calc(100% - 90px);border-color:#486582}.as-oi-reach-heading{display:flex;gap:10px;border:0;padding:12px}.as-oi-reach-heading span{font-size:9px}.as-oi-reach-row{display:flex;gap:12px;white-space:nowrap;border-left:1px solid #40516b}.as-oi-reach-row+.as-oi-reach-row{border-top:0}.as-oi-reach-row>b{font-size:20px}.as-oi-reach-row>span{font-size:12px}}
@media(max-width:720px){.as-oi-reach-overlay{width:min(390px,calc(100% - 60px))}.as-oi-reach-row{display:flex;flex-wrap:wrap;gap:7px 10px}.as-oi-reach-row>b{font-size:17px}.as-oi-reach-row>i{display:block}.as-oi-points{font-size:12px}.as-chart-lines-menu>summary{padding:8px;font-size:11px}}
.as-chart-lines-menu>[data-lines-trigger]{cursor:pointer;border:1px solid #5966aa;border-radius:10px;padding:9px 12px;color:#e0e7ff;background:#192444;font-size:12px;font-weight:750;white-space:nowrap}
dialog.as-chart-lines-panel{position:fixed;inset:50% 24px auto auto;transform:translateY(-50%);margin:0;width:340px;max-height:85dvh;z-index:10000}dialog.as-chart-lines-panel::backdrop{background:#02061780}
#spotChartWrap .as-chart-floating-insights{display:none!important}
body.as-chart-focus-active #spotChartWrap .as-oi-reach-overlay,#spotChartWrap .as-oi-reach-overlay{top:4.4rem;width:max-content;max-width:calc(100% - 90px);display:flex;flex-wrap:wrap;pointer-events:auto}
#spotChartWrap .as-oi-reach-overlay.hidden{display:none}
.as-oi-context{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;flex-basis:100%;padding:10px 14px;border-top:1px solid #35455e;background:#101c30;font-family:ui-sans-serif,system-ui,sans-serif}
.as-oi-context>span{display:flex;gap:8px;align-items:center;color:#9cacbf;font-size:11px;line-height:1.4}.as-oi-context b{color:#e4f4ff;font-size:13px;font-weight:750}.as-oi-context .as-oi-context-clock b{font-size:12px}.as-oi-context-clock{margin-right:auto}
@media(max-width:1199px){#spotChartWrap .as-oi-reach-overlay{width:calc(100% - 85px);max-width:680px}.as-oi-reach-heading{width:100%}.as-oi-reach-row{flex:1 1 300px}.as-oi-context{gap:8px 16px}.as-oi-context-clock{flex-basis:100%}}
@media(max-width:720px){#spotChartWrap .as-oi-reach-overlay{top:3.8rem;width:calc(100% - 70px)}.as-oi-context{padding:8px;gap:7px}.as-oi-context>span{font-size:10px}.as-oi-context b{font-size:11px}.as-oi-reach-row{padding:7px}.as-oi-reach-heading{padding:6px 8px}dialog.as-chart-lines-panel{right:12px;max-width:calc(100vw - 24px)}}
/* One stationary market strip, never covering the candle canvas. */
#spotChartWrap .as-chart-card>#oiReachOverlay,body.as-chart-focus-active #spotChartWrap .as-chart-card>#oiReachOverlay{position:relative;inset:auto;display:flex;flex:0 0 auto;flex-wrap:nowrap;width:100%;max-width:100%;min-height:61px;border:0;border-bottom:1px solid #35475e;border-radius:0;box-shadow:none;backdrop-filter:none;overflow-x:auto;overflow-y:hidden;padding:5px 9px;gap:0;background:#091426}
#spotChartWrap .as-chart-card>#oiReachOverlay.hidden{display:none}
#oiReachOverlay>.as-chart-floating-quotes{position:static!important;inset:auto!important;width:auto!important;flex:0 0 auto;min-width:0;display:flex;gap:3px;margin:0 10px 0 0;border:0;box-shadow:none;border-radius:6px;padding:0;background:transparent}
#oiReachOverlay .as-chart-floating-quotes button{min-width:95px;padding:6px 9px}#oiReachOverlay .as-chart-floating-quotes button b{font-size:17px}
#oiReachOverlay>.as-oi-context-clock{flex:none;margin:0 10px 0 0;display:flex;flex-direction:column;color:#94afc1;font:10px/1.4 ui-sans-serif,system-ui,sans-serif;padding-right:12px;border-right:1px solid #33455e;white-space:nowrap}#oiReachOverlay>.as-oi-context-clock b{font-size:12px;color:#e6f2ff;font-weight:700}
#oiReachOverlay>.as-oi-reach-heading{display:flex;flex-direction:column;justify-content:center;gap:4px;width:auto;flex:none;padding:5px 10px;border:0}#oiReachOverlay>.as-oi-reach-heading strong{font-size:11px}#oiReachOverlay>.as-oi-reach-heading span{font-size:8px;letter-spacing:0}
#oiReachOverlay>.as-oi-reach-row{display:flex;flex-wrap:nowrap;flex:none;gap:9px;padding:8px 10px;border-top:0;border-left:1px solid #33455e}#oiReachOverlay>.as-oi-reach-row>span{font-size:11px}#oiReachOverlay>.as-oi-reach-row>b{font-size:18px}#oiReachOverlay>.as-oi-reach-row small{font-size:11px}#oiReachOverlay .as-oi-points{font-size:13px;padding:4px 7px}#oiReachOverlay>.as-oi-reach-row i{font-size:11px}
.as-oi-more{flex:none;padding:8px 10px;margin-left:auto;border:1px solid #4b6079;background:#1b304a;border-radius:6px;font-size:11px;color:#d9eaf9}
.as-chart-metrics-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(550px,90vw);padding:20px;background:#102237;border:1px solid #4f6a81;border-radius:12px;color:#e4f3ff;max-height:85dvh;overflow:auto}.as-chart-metrics-dialog::backdrop{background:#02061790}.as-chart-metrics-dialog .as-oi-context{border:0;background:transparent;display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:5px}.as-chart-metrics-dialog .as-oi-context>span{display:flex;flex-direction:column;align-items:flex-start}.as-chart-metrics-dialog .as-oi-context b{font-size:20px}.as-chart-metrics-dialog>button{margin-top:20px;padding:8px 14px;background:#284963;border-radius:6px;font-size:13px}
@media(max-width:767px){#spotChartWrap .as-chart-card>#oiReachOverlay{flex-wrap:wrap;overflow:visible;gap:5px;min-height:60px}#oiReachOverlay>.as-oi-reach-row{padding:5px;gap:7px;flex:1 1 auto}#oiReachOverlay>.as-oi-reach-heading{padding:5px}#oiReachOverlay>.as-oi-context-clock{margin:0;font-size:9px;padding:0;border:0}#oiReachOverlay>.as-oi-context-clock b{font-size:10px}#oiReachOverlay>.as-chart-floating-quotes{margin:0 5px 0 0}#oiReachOverlay .as-chart-floating-quotes button{min-width:70px;padding:4px 7px}}
.as-metric-info{display:inline-grid!important;place-items:center;flex:none;width:16px;height:16px;min-width:16px;min-height:16px;margin-left:5px;padding:0!important;border:1px solid #6e91ad;border-radius:50%;background:#153048;color:#b8e8ff;font:700 10px/1 ui-sans-serif,system-ui,sans-serif;cursor:help;vertical-align:middle;text-transform:none!important;letter-spacing:0!important}.as-metric-info:hover,.as-metric-info:focus-visible{background:#237896;color:#fff;outline:2px solid #76d9ed;outline-offset:2px}
.as-metric-tooltip{position:fixed;inset:auto;margin:0;width:min(355px,calc(100vw - 24px));max-height:min(330px,80dvh);overflow:auto;padding:16px 18px;border:1px solid #46798f;border-radius:10px;background:#102637;color:#e6f5fc;box-shadow:0 10px 40px #0009;text-align:left;z-index:100000;font-family:ui-sans-serif,system-ui,sans-serif}.as-metric-tooltip strong{display:block;font-size:14px;color:#6bd9ed;margin-bottom:8px}.as-metric-tooltip p{font-size:13px;line-height:1.65;margin:0}
#oiCompactMarketClock{position:relative;padding-right:23px!important;gap:3px}#oiCompactMarketClock>span{display:flex;align-items:center;gap:6px}#oiCompactMarketClock svg{width:13px;height:13px;fill:none;stroke:#7ec1d6;stroke-width:1.5}#oiCompactMarketClock>.as-metric-info{position:absolute;right:2px;top:13px}
#oiReachOverlay .as-oi-value-help{display:inline-flex;align-items:center;flex:none;gap:0;text-transform:none}#oiReachOverlay .as-oi-value-help>i{font-style:normal;font:800 12px/1.3 ui-monospace,monospace}#oiReachOverlay .is-bull .as-oi-value-help>i{color:#4ade80}#oiReachOverlay .is-bear .as-oi-value-help>i{color:#fb7185}
#oiReachOverlay .as-oi-reach-row>small{display:flex;align-items:center;gap:4px}#oiReachOverlay .as-oi-reach-row>small .as-metric-info{margin-left:0}
.vi-product-brand{display:flex;align-items:center;gap:11px;min-width:0;text-decoration:none}.vi-product-brand img{display:block;width:45px;height:34px;object-fit:contain}.vi-product-brand>span{display:flex;flex-direction:column;gap:4px}.vi-product-brand strong{font:750 16px/1.2 ui-sans-serif,system-ui,sans-serif;color:#f1f7fa;white-space:nowrap}.vi-product-brand em{font-style:normal;color:#36cadd}.vi-product-brand small{font:600 8px/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:.16em;color:#8eabbc}
.as-product-nav{background:#061c2a!important;border-bottom-color:#1a4d62!important}.as-product-nav__link--active{background:#123b4d!important;border-color:#2a9cb2!important;color:#8be7f3!important}.as-chart-tf-buttons button.is-active{background:#0d819b!important;border-color:#25c4de!important;box-shadow:0 0 12px #1ec2dc35!important}
.as-chart-card{border-color:#29465b!important}.vi-chart-signature{position:absolute;right:85px;top:15px;z-index:3;pointer-events:none;display:flex;gap:9px;align-items:center;opacity:.34}.vi-chart-signature img{width:27px;height:27px;object-fit:contain}.vi-chart-signature strong{display:block;color:#a8d6e5;font:650 13px/1.4 ui-sans-serif,system-ui,sans-serif}.vi-chart-signature small{display:block;color:#a0b5c5;font:500 9px/1.4 ui-sans-serif,system-ui,sans-serif}
.theme-light .vi-product-brand strong{color:#eaf8ff}
/* Research workspace: navigation above, chart tools above the canvas, status below. */
.as-product-nav>div{min-height:62px;padding-top:7px!important;padding-bottom:7px!important;gap:16px!important}
.as-product-nav .as-product-nav__link{padding:8px 12px;font-size:12px}
.as-product-nav .as-session-primary-context{gap:8px}
#sessionMarketContext.as-header-session-context{padding:6px 10px;min-height:0;gap:4px;border-color:#254757;background:#0a2633}
.as-session-commandbar{padding-top:5px!important;padding-bottom:5px!important}
.as-session-controls-in-header button{padding:6px 10px!important}
.as-session-controls-in-header label{width:auto!important;min-width:0!important;gap:5px;padding:6px!important}
.as-session-controls-in-header .as-audio-toggle-text{display:inline!important;font-size:10px}
#sessionStateNotice{padding-top:6px!important}
#sessionStateNotice>div{padding:8px 14px!important;border-radius:8px!important}
#sessionStateNoticeTitle{font-size:12px!important}
#sessionStateNoticeMessage{font-size:11px!important;line-height:1.45!important;margin-top:2px!important}
.as-chart-card>.vi-chart-toolbar{position:relative!important;display:flex!important;flex:0 0 auto;flex-wrap:wrap!important;align-items:center;justify-content:flex-start!important;gap:8px!important;width:100%!important;margin:0!important;padding:7px 10px!important;background:#102234;border-bottom:1px solid #29485c;min-height:46px}
.vi-chart-toolbar .as-chart-tf-select-fallback,.vi-chart-toolbar label[for="chartTfSelect"]{display:none!important}
.vi-chart-toolbar #chartQuickActions{margin-left:auto}
.vi-chart-toolbar button,.vi-chart-toolbar .as-chart-history-toggle{border-radius:6px!important;font:650 11px/1.2 ui-sans-serif,system-ui,sans-serif!important}
.as-chart-card>.as-chart-stage.vi-resizable-stage{grid-template-rows:minmax(0,var(--candle-track,68fr)) 12px minmax(90px,var(--pully-track,32fr))!important;min-height:0!important;border-radius:0!important;flex:1 1 0%!important}
.vi-resizable-stage>.as-pully-pane{display:flex!important;flex-direction:column;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;grid-row:3}
.vi-resizable-stage>.as-pully-pane>.as-pully-chart{flex:1 1 auto;min-height:0!important;height:100%!important}
.vi-pane-divider{grid-row:2;position:relative;display:flex;align-items:center;justify-content:center;cursor:row-resize;touch-action:none;background:#112334;border-top:1px solid #294252;border-bottom:1px solid #294252;z-index:10}
.vi-pane-divider>span{width:44px;height:3px;border-radius:3px;background:#537386}.vi-pane-divider:hover,.vi-pane-divider:focus-visible{background:#155369;outline:2px solid #40d7eb;outline-offset:-2px}.vi-pane-divider:hover>span{background:#79e1f0}
.vi-chart-footer{flex:none;min-height:40px;background:#091c29;border:1px solid #29485c;border-top:0;border-radius:0 0 8px 8px;padding:6px 12px}
.vi-chart-footer .as-pully-pane-header{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:0!important;min-height:0!important;background:none!important;border:0!important}
.vi-chart-footer .as-pully-pane-title{display:flex;align-items:center;gap:9px}.vi-chart-footer .as-pully-pane-title strong{font:750 11px/1.3 ui-sans-serif,system-ui,sans-serif;color:#c6e6ef}.vi-chart-footer .as-pully-pane-title span{font:500 10px/1.4 ui-sans-serif,system-ui,sans-serif;color:#8ca4b5}
.vi-chart-footer .as-pully-header-actions{display:flex;align-items:center;gap:14px;margin:0!important}.vi-chart-footer .as-pully-latest,.vi-chart-footer .as-pully-focus-insights,.vi-chart-footer [hidden]{display:none!important}
.vi-layout-control{display:flex;align-items:center;gap:6px;font:600 10px/1.4 ui-sans-serif,system-ui,sans-serif;color:#a7bdca;white-space:nowrap}.vi-layout-control select{padding:4px 22px 4px 7px;background:#153346;border:1px solid #345a70;border-radius:5px;color:#e3f4fb;font-size:11px}
.vi-time-linked{color:#66d1ca;font:650 10px/1.4 ui-sans-serif,system-ui,sans-serif;white-space:nowrap}
#oiReachOverlay>.as-oi-reach-heading{position:relative;padding-right:25px;min-height:44px}#oiReachOverlay>.as-oi-reach-heading>.as-metric-info{position:absolute;right:4px;top:14px}
#oiReachOverlay .as-chart-floating-quotes button{min-width:82px}.as-chart-card>#oiReachOverlay .as-oi-reach-row>b{font-size:19px}
@media(max-width:1100px){.as-product-nav>div{flex-wrap:wrap}.as-product-nav .as-session-primary-context{order:3;flex-basis:100%}.as-chart-card>.as-chart-stage.vi-resizable-stage{height:460px!important;flex:none!important}.vi-chart-toolbar #chartQuickActions{margin-left:0}.vi-chart-footer .as-pully-pane-title span{display:none}}
@media(prefers-reduced-motion:reduce){.vi-pane-divider{transition:none}}
@media(max-width:767px){.vi-product-brand strong{font-size:13px}.vi-product-brand small{font-size:7px}.vi-product-brand img{width:32px;height:27px}.vi-chart-signature{right:65px;top:8px}.vi-chart-signature small{display:none}}

.as-chart-card>.vi-chart-footer{flex:0 0 auto!important}.as-chart-card>.vi-chart-toolbar{flex:0 0 auto!important}.vi-chart-footer .as-pully-pane-header{width:100%}.as-chart-card>.vi-chart-toolbar .as-chart-tf-buttons{margin-right:4px}

.vi-chart-zoom{display:flex;gap:2px;margin-left:auto}.vi-chart-zoom button{width:30px;height:29px;border:1px solid #45657b;background:#143044;color:#d3edf5;font-size:17px!important}.vi-chart-toolbar #chartQuickActions{margin-left:0}.vi-chart-toolbar :focus-visible,.vi-chart-footer :focus-visible{outline:2px solid #46d5eb;outline-offset:2px}

.vi-chart-toolbar .vi-inline-metrics{display:flex;flex:1 1 auto;flex-basis:auto;flex-wrap:wrap;gap:7px 13px;margin:0;padding:0 6px;border:0;background:none;min-width:0}
.vi-chart-toolbar .vi-inline-metrics>span{display:grid;grid-template-columns:auto auto;gap:2px 4px;font:550 9px/1.3 ui-sans-serif,system-ui,sans-serif;text-transform:none;position:relative;padding:0 22px 0 0;min-width:65px;color:#94b3c6}
.vi-chart-toolbar .vi-inline-metrics b{grid-column:1/-1;font:750 13px/1.3 ui-monospace,monospace;color:#e7f6fc}
.vi-chart-toolbar .vi-inline-metrics .as-metric-info{position:absolute;right:0;top:7px;width:14px;height:14px;min-width:14px;min-height:14px;font-size:9px!important}
.vi-inline-metrics [data-focus-insight-source="kpiBrainRatio"]{color:#fbd65d!important}.vi-inline-metrics [data-focus-insight-source="kpiBrainNetPull"]{color:#82e2db!important}
.vi-chart-toolbar .vi-inline-metrics[hidden]{display:none!important}
@media(max-width:1250px){.vi-chart-toolbar .vi-inline-metrics{order:4;flex-basis:100%;padding:5px 0 0;border-top:1px solid #29485c}.vi-chart-zoom{margin-left:auto}}

.as-chart-card-with-floating-quotes #chart,.as-chart-card-with-floating-quotes #chartFuture{scroll-margin-top:100px}
#sessionStateNotice.vi-history-toast{position:fixed;right:18px;bottom:18px;top:auto;left:auto;z-index:500;max-width:min(450px,calc(100vw - 28px));width:450px;padding:0!important;margin:0!important;filter:drop-shadow(0 8px 25px #0008)}
#sessionStateNotice.vi-history-toast>div{position:relative;background:#17232d!important;border:1px solid #a77d2d!important;border-left:3px solid #e3b84e!important;padding:15px 40px 13px 15px!important;border-radius:9px!important;gap:10px}
#sessionStateNotice.vi-history-toast #sessionStateNoticeTitle{font-size:13px!important;color:#f8d578}
#sessionStateNotice.vi-history-toast #sessionStateNoticeMessage{font-size:12px!important;line-height:1.55!important;color:#c5d5e1;margin-top:6px!important}
#sessionStateNotice.vi-history-toast a{font-size:11px;padding:6px 10px;border-radius:5px}
.vi-toast-close{position:absolute;top:7px;right:8px;width:28px;height:28px;display:grid;place-items:center;border-radius:5px;background:#30404b;color:#f0f8ff;font-size:23px;line-height:1;cursor:pointer}.vi-toast-close:hover{background:#4b5e6a}.vi-toast-close:focus-visible{outline:2px solid #5cdaef;outline-offset:2px}.vi-toast-close[hidden]{display:none}

body.as-chart-focus-active .as-predictor-column{display:none!important}#futureChartWrap .as-chart-floating-insights{display:none!important}

/* Entry blockers must remain readable in the compact chart layout. */
.as-chart-column > .as-execution-bottom .as-execution-admission.is-confidence-blocked {
  display: block;
  white-space: normal;
  overflow: visible;
}
.as-chart-column > .as-execution-bottom .as-execution-admission.is-confidence-blocked > div {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

/* Keep the actual entry rejection visible instead of clipping it to a tooltip. */
.as-chart-column > .as-execution-bottom .as-execution-admission.is-entry-blocked,
.as-chart-column > .as-execution-bottom .as-execution-admission.is-entry-blocked > div,
.as-chart-column > .as-execution-bottom .as-execution-reason {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.as-chart-column > .as-execution-bottom .as-execution-admission.is-entry-blocked {
  display: block;
}
